xaml-ui 1.0.1 → 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 +1354 -641
- package/fesm2022/xaml-ui.mjs.map +1 -1
- package/lib/{layout/Common.d.ts → Common.d.ts} +3 -0
- package/lib/FrameworkElement.d.ts +22 -0
- package/lib/XamlRoot.d.ts +6 -0
- package/lib/basic-input/Button.d.ts +19 -0
- package/lib/basic-input/CheckBox.d.ts +11 -0
- package/lib/basic-input/ComboBox.d.ts +17 -0
- package/lib/basic-input/DropDownButton.d.ts +6 -0
- package/lib/basic-input/RadioButton.d.ts +26 -0
- package/lib/basic-input/Slider.d.ts +16 -0
- package/lib/basic-input/ToggleButton.d.ts +10 -0
- package/lib/basic-input/ToggleSwitch.d.ts +6 -0
- package/lib/collections/ListBox.d.ts +6 -0
- package/lib/collections/ListView.d.ts +6 -0
- package/lib/dialogs-and-flyouts/Flyout.d.ts +21 -0
- package/lib/icons/FontIcon.d.ts +13 -0
- package/lib/layout/Border.d.ts +4 -9
- package/lib/layout/Grid.d.ts +57 -0
- package/lib/layout/Panel.d.ts +11 -0
- package/lib/layout/StackPanel.d.ts +5 -5
- package/lib/primitives/Popup.d.ts +19 -0
- package/lib/primitives/Selector.d.ts +34 -0
- package/lib/scrolling/ScrollBar.d.ts +51 -0
- package/lib/scrolling/ScrollViewer.d.ts +30 -0
- package/lib/status-and-info/ToolTipService.d.ts +11 -0
- package/lib/text/TextBlock.d.ts +24 -0
- package/lib/text/TextBox.d.ts +18 -0
- package/package.json +1 -1
- package/public-api.d.ts +24 -16
- package/styles/XamlGlobals.css +124 -0
- package/lib/indicators/FontIcon.d.ts +0 -13
- package/lib/indicators/TextBlock.d.ts +0 -24
- package/lib/inputs/Button.d.ts +0 -18
- package/lib/inputs/CheckBox.d.ts +0 -11
- package/lib/inputs/ListBox.d.ts +0 -18
- package/lib/inputs/RadioButton.d.ts +0 -26
- package/lib/inputs/Slider.d.ts +0 -16
- package/lib/inputs/TextBox.d.ts +0 -15
- package/lib/inputs/ToggleButton.d.ts +0 -10
- package/lib/inputs/ToggleSwitch.d.ts +0 -6
- package/lib/layout/FrameworkElement.d.ts +0 -15
- package/lib/layout/ScrollViewer.d.ts +0 -12
- package/lib/layout/ToolTipService.d.ts +0 -11
- package/lib/layout/XamlRoot.d.ts +0 -5
- package/lib/overlays/Flyout.d.ts +0 -12
package/fesm2022/xaml-ui.mjs
CHANGED
|
@@ -1,35 +1,51 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { HostBinding, Input, Component,
|
|
2
|
+
import { HostBinding, Input, Component, EventEmitter, HostListener, ContentChild, Output, TemplateRef, ViewChild, Optional, Directive, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
function toJustification(value) {
|
|
7
|
+
return value.toLowerCase();
|
|
8
|
+
}
|
|
9
|
+
function toAlignment(value) {
|
|
10
|
+
switch (value) {
|
|
11
|
+
case 'Top':
|
|
12
|
+
return 'flex-start';
|
|
13
|
+
case 'Center':
|
|
14
|
+
return 'center';
|
|
15
|
+
case 'Bottom':
|
|
16
|
+
return 'flex-end';
|
|
17
|
+
case 'Stretch':
|
|
18
|
+
return 'stretch';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class FrameworkElementComponent {
|
|
7
23
|
constructor() {
|
|
8
24
|
this.HorizontalAlignment = 'Stretch';
|
|
9
25
|
this.VerticalAlignment = 'Stretch';
|
|
26
|
+
this._id = FrameworkElementComponent._nextId++;
|
|
27
|
+
}
|
|
28
|
+
get width() {
|
|
29
|
+
if (this.Width !== undefined)
|
|
30
|
+
return this.Width;
|
|
31
|
+
return this.HorizontalAlignment === 'Stretch' ? undefined : 'min-content';
|
|
32
|
+
}
|
|
33
|
+
get height() {
|
|
34
|
+
if (this.Height !== undefined)
|
|
35
|
+
return this.Height;
|
|
36
|
+
return this.VerticalAlignment === 'Stretch' ? undefined : 'min-content';
|
|
10
37
|
}
|
|
11
38
|
get justifySelf() {
|
|
12
|
-
return this.HorizontalAlignment
|
|
39
|
+
return toJustification(this.HorizontalAlignment);
|
|
13
40
|
}
|
|
14
41
|
get alignSelf() {
|
|
15
|
-
|
|
16
|
-
case 'Top':
|
|
17
|
-
return 'flex-start';
|
|
18
|
-
case 'Center':
|
|
19
|
-
return 'center';
|
|
20
|
-
case 'Bottom':
|
|
21
|
-
return 'flex-end';
|
|
22
|
-
case 'Stretch':
|
|
23
|
-
return 'stretch';
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
get overflow() {
|
|
27
|
-
return 'clip';
|
|
42
|
+
return toAlignment(this.VerticalAlignment);
|
|
28
43
|
}
|
|
29
|
-
static { this
|
|
30
|
-
static { this.ɵ
|
|
44
|
+
static { this._nextId = 1; }
|
|
45
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FrameworkElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
46
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: FrameworkElementComponent, isStandalone: true, selector: "FrameworkElement", inputs: { Width: "Width", MinWidth: "MinWidth", MaxWidth: "MaxWidth", Height: "Height", MinHeight: "MinHeight", MaxHeight: "MaxHeight", HorizontalAlignment: "HorizontalAlignment", VerticalAlignment: "VerticalAlignment", Margin: "Margin", Padding: "Padding" }, host: { properties: { "style.min-width": "this.MinWidth", "style.max-width": "this.MaxWidth", "style.min-height": "this.MinHeight", "style.max-height": "this.MaxHeight", "style.margin": "this.Margin", "style.padding": "this.Padding", "style.width": "this.width", "style.height": "this.height", "style.justify-self": "this.justifySelf", "style.align-self": "this.alignSelf" } }, ngImport: i0, template: `<ng-container/>`, isInline: true }); }
|
|
31
47
|
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FrameworkElementComponent, decorators: [{
|
|
33
49
|
type: Component,
|
|
34
50
|
args: [{
|
|
35
51
|
selector: 'FrameworkElement',
|
|
@@ -37,14 +53,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
37
53
|
}]
|
|
38
54
|
}], propDecorators: { Width: [{
|
|
39
55
|
type: Input
|
|
56
|
+
}], MinWidth: [{
|
|
57
|
+
type: Input
|
|
40
58
|
}, {
|
|
41
59
|
type: HostBinding,
|
|
42
|
-
args: ['style.width']
|
|
60
|
+
args: ['style.min-width']
|
|
61
|
+
}], MaxWidth: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}, {
|
|
64
|
+
type: HostBinding,
|
|
65
|
+
args: ['style.max-width']
|
|
43
66
|
}], Height: [{
|
|
44
67
|
type: Input
|
|
68
|
+
}], MinHeight: [{
|
|
69
|
+
type: Input
|
|
45
70
|
}, {
|
|
46
71
|
type: HostBinding,
|
|
47
|
-
args: ['style.height']
|
|
72
|
+
args: ['style.min-height']
|
|
73
|
+
}], MaxHeight: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}, {
|
|
76
|
+
type: HostBinding,
|
|
77
|
+
args: ['style.max-height']
|
|
48
78
|
}], HorizontalAlignment: [{
|
|
49
79
|
type: Input
|
|
50
80
|
}], VerticalAlignment: [{
|
|
@@ -59,583 +89,767 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
59
89
|
}, {
|
|
60
90
|
type: HostBinding,
|
|
61
91
|
args: ['style.padding']
|
|
92
|
+
}], width: [{
|
|
93
|
+
type: HostBinding,
|
|
94
|
+
args: ['style.width']
|
|
95
|
+
}], height: [{
|
|
96
|
+
type: HostBinding,
|
|
97
|
+
args: ['style.height']
|
|
62
98
|
}], justifySelf: [{
|
|
63
99
|
type: HostBinding,
|
|
64
100
|
args: ['style.justify-self']
|
|
65
101
|
}], alignSelf: [{
|
|
66
102
|
type: HostBinding,
|
|
67
103
|
args: ['style.align-self']
|
|
68
|
-
}], overflow: [{
|
|
69
|
-
type: HostBinding,
|
|
70
|
-
args: ['style.overflow']
|
|
71
104
|
}] } });
|
|
72
105
|
|
|
73
|
-
class
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
this.FontWeight = 'Normal';
|
|
77
|
-
this.TextAlignment = 'Left';
|
|
78
|
-
this.TextWrapping = 'NoWrap';
|
|
79
|
-
}
|
|
80
|
-
get fontWeight() {
|
|
81
|
-
return TextBlock.ToFontWeight(this.FontWeight);
|
|
82
|
-
}
|
|
83
|
-
static ToFontWeight(value) {
|
|
84
|
-
switch (value) {
|
|
85
|
-
case 'Black':
|
|
86
|
-
return 900;
|
|
87
|
-
case 'Bold':
|
|
88
|
-
return 700;
|
|
89
|
-
case 'ExtraBlack':
|
|
90
|
-
return 950;
|
|
91
|
-
case 'ExtraBold':
|
|
92
|
-
return 800;
|
|
93
|
-
case 'ExtraLight':
|
|
94
|
-
return 200;
|
|
95
|
-
case 'Light':
|
|
96
|
-
return 300;
|
|
97
|
-
case 'Medium':
|
|
98
|
-
return 500;
|
|
99
|
-
case 'Normal':
|
|
100
|
-
return 400;
|
|
101
|
-
case 'SemiBold':
|
|
102
|
-
return 600;
|
|
103
|
-
case 'SemiLight':
|
|
104
|
-
return 350;
|
|
105
|
-
case 'Thin':
|
|
106
|
-
return 100;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
get userSelect() {
|
|
110
|
-
return this.IsTextSelectionEnabled === 'True' ? 'text' : 'none';
|
|
111
|
-
}
|
|
112
|
-
get textDecorationLine() {
|
|
113
|
-
switch (this.TextDecorations) {
|
|
114
|
-
case 'None':
|
|
115
|
-
return 'none';
|
|
116
|
-
case 'Strikethrough':
|
|
117
|
-
return 'line-through';
|
|
118
|
-
case 'Underline':
|
|
119
|
-
return 'underline';
|
|
120
|
-
default:
|
|
121
|
-
return undefined;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
get textOverflow() {
|
|
125
|
-
switch (this.TextTrimming) {
|
|
126
|
-
case 'None':
|
|
127
|
-
case 'Clip':
|
|
128
|
-
return 'clip';
|
|
129
|
-
case 'CharacterEllipsis':
|
|
130
|
-
return 'Ellipsis';
|
|
131
|
-
default:
|
|
132
|
-
return undefined;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
get whiteSpace() {
|
|
136
|
-
switch (this.TextWrapping) {
|
|
137
|
-
case 'NoWrap':
|
|
138
|
-
return 'nowrap';
|
|
139
|
-
case 'Wrap':
|
|
140
|
-
return 'normal';
|
|
141
|
-
}
|
|
106
|
+
class PanelComponent extends FrameworkElementComponent {
|
|
107
|
+
get borderStyle() {
|
|
108
|
+
return this.BorderThickness !== undefined ? 'solid' : undefined;
|
|
142
109
|
}
|
|
143
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
144
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type:
|
|
145
|
-
<ng-content *ngIf="Text === undefined"/>
|
|
146
|
-
<ng-container *ngIf="Text !== undefined">{{Text}}</ng-container>
|
|
147
|
-
</ng-container>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PanelComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
111
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: PanelComponent, isStandalone: true, selector: "Border", inputs: { Background: "Background", CornerRadius: "CornerRadius", BorderThickness: "BorderThickness", BorderBrush: "BorderBrush" }, host: { properties: { "style.background": "this.Background", "style.border-radius": "this.CornerRadius", "style.border-width": "this.BorderThickness", "style.border-color": "this.BorderBrush", "style.border-style": "this.borderStyle" } }, usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:grid;position:relative}\n"] }); }
|
|
148
112
|
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PanelComponent, decorators: [{
|
|
150
114
|
type: Component,
|
|
151
|
-
args: [{
|
|
152
|
-
|
|
153
|
-
imports: [CommonModule],
|
|
154
|
-
template: `<ng-container>
|
|
155
|
-
<ng-content *ngIf="Text === undefined"/>
|
|
156
|
-
<ng-container *ngIf="Text !== undefined">{{Text}}</ng-container>
|
|
157
|
-
</ng-container>`
|
|
158
|
-
}]
|
|
159
|
-
}], propDecorators: { FontFamily: [{
|
|
160
|
-
type: Input
|
|
161
|
-
}, {
|
|
162
|
-
type: HostBinding,
|
|
163
|
-
args: ['style.font-family']
|
|
164
|
-
}], Text: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}], FontSize: [{
|
|
115
|
+
args: [{ selector: 'Border', template: `<ng-content/>`, styles: [":host{display:grid;position:relative}\n"] }]
|
|
116
|
+
}], propDecorators: { Background: [{
|
|
167
117
|
type: Input
|
|
168
118
|
}, {
|
|
169
119
|
type: HostBinding,
|
|
170
|
-
args: ['style.
|
|
171
|
-
}],
|
|
120
|
+
args: ['style.background']
|
|
121
|
+
}], CornerRadius: [{
|
|
172
122
|
type: Input
|
|
173
123
|
}, {
|
|
174
124
|
type: HostBinding,
|
|
175
|
-
args: ['style.
|
|
176
|
-
}],
|
|
177
|
-
type: Input
|
|
178
|
-
}], Foreground: [{
|
|
125
|
+
args: ['style.border-radius']
|
|
126
|
+
}], BorderThickness: [{
|
|
179
127
|
type: Input
|
|
180
128
|
}, {
|
|
181
129
|
type: HostBinding,
|
|
182
|
-
args: ['style.
|
|
183
|
-
}],
|
|
130
|
+
args: ['style.border-width']
|
|
131
|
+
}], BorderBrush: [{
|
|
184
132
|
type: Input
|
|
185
133
|
}, {
|
|
186
134
|
type: HostBinding,
|
|
187
|
-
args: ['style.
|
|
188
|
-
}],
|
|
189
|
-
type: Input
|
|
190
|
-
}], TextDecorations: [{
|
|
191
|
-
type: Input
|
|
192
|
-
}], TextTrimming: [{
|
|
193
|
-
type: Input
|
|
194
|
-
}], TextWrapping: [{
|
|
195
|
-
type: Input
|
|
196
|
-
}], fontWeight: [{
|
|
197
|
-
type: HostBinding,
|
|
198
|
-
args: ['style.font-weight']
|
|
199
|
-
}], userSelect: [{
|
|
200
|
-
type: HostBinding,
|
|
201
|
-
args: ['style.user-select']
|
|
202
|
-
}], textDecorationLine: [{
|
|
203
|
-
type: HostBinding,
|
|
204
|
-
args: ['style.text-decoration-line']
|
|
205
|
-
}], textOverflow: [{
|
|
206
|
-
type: HostBinding,
|
|
207
|
-
args: ['style.text-overflow']
|
|
208
|
-
}], whiteSpace: [{
|
|
135
|
+
args: ['style.border-color']
|
|
136
|
+
}], borderStyle: [{
|
|
209
137
|
type: HostBinding,
|
|
210
|
-
args: ['style.
|
|
138
|
+
args: ['style.border-style']
|
|
211
139
|
}] } });
|
|
212
140
|
|
|
213
|
-
class
|
|
141
|
+
class BorderComponent extends PanelComponent {
|
|
142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: BorderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
143
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: BorderComponent, isStandalone: true, selector: "Border", usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:grid;position:relative}\n"] }); }
|
|
144
|
+
}
|
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: BorderComponent, decorators: [{
|
|
146
|
+
type: Component,
|
|
147
|
+
args: [{ selector: 'Border', template: `<ng-content/>`, styles: [":host{display:grid;position:relative}\n"] }]
|
|
148
|
+
}] });
|
|
149
|
+
|
|
150
|
+
class ButtonComponent extends BorderComponent {
|
|
214
151
|
constructor() {
|
|
215
152
|
super(...arguments);
|
|
216
|
-
this.
|
|
153
|
+
this.IsEnabled = true;
|
|
154
|
+
this.Click = new EventEmitter();
|
|
155
|
+
this.HorizontalContentAlignment = 'Center';
|
|
156
|
+
this.VerticalContentAlignment = 'Center';
|
|
157
|
+
this.type = 'button';
|
|
217
158
|
}
|
|
218
|
-
get
|
|
219
|
-
return
|
|
159
|
+
get alignContent() {
|
|
160
|
+
return toAlignment(this.VerticalContentAlignment);
|
|
161
|
+
}
|
|
162
|
+
get justifyContent() {
|
|
163
|
+
return toJustification(this.HorizontalContentAlignment);
|
|
164
|
+
}
|
|
165
|
+
get disabled() {
|
|
166
|
+
return this.IsEnabled ? undefined : true;
|
|
167
|
+
}
|
|
168
|
+
get flyoutOpen() {
|
|
169
|
+
return this._popup?.IsOpen;
|
|
220
170
|
}
|
|
221
|
-
|
|
222
|
-
|
|
171
|
+
onHostPointerEvent(event) {
|
|
172
|
+
if (!this.IsEnabled)
|
|
173
|
+
return;
|
|
174
|
+
this.Click.emit();
|
|
175
|
+
this._popup?.Show();
|
|
176
|
+
}
|
|
177
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
178
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ButtonComponent, isStandalone: true, selector: "Button", inputs: { IsEnabled: "IsEnabled", HorizontalContentAlignment: "HorizontalContentAlignment", VerticalContentAlignment: "VerticalContentAlignment" }, outputs: { Click: "Click" }, host: { listeners: { "click": "onHostPointerEvent($event)" }, properties: { "style.align-content": "this.alignContent", "style.justify-content": "this.justifyContent", "attr.type": "this.type", "attr.disabled": "this.disabled", "class.disabled": "this.disabled", "class.popup-open": "this.flyoutOpen" } }, queries: [{ propertyName: "_popup", first: true, predicate: ["ButtonFlyout"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n"] }); }
|
|
223
179
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
225
181
|
type: Component,
|
|
226
|
-
args: [{ selector: '
|
|
227
|
-
}], propDecorators: {
|
|
182
|
+
args: [{ selector: 'Button', template: `<ng-content/>`, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n"] }]
|
|
183
|
+
}], propDecorators: { IsEnabled: [{
|
|
228
184
|
type: Input
|
|
229
|
-
}, {
|
|
230
|
-
type:
|
|
231
|
-
|
|
232
|
-
}], FontSize: [{
|
|
185
|
+
}], Click: [{
|
|
186
|
+
type: Output
|
|
187
|
+
}], HorizontalContentAlignment: [{
|
|
233
188
|
type: Input
|
|
234
|
-
}, {
|
|
235
|
-
type: HostBinding,
|
|
236
|
-
args: ['style.font-size']
|
|
237
|
-
}], FontStyle: [{
|
|
189
|
+
}], VerticalContentAlignment: [{
|
|
238
190
|
type: Input
|
|
191
|
+
}], alignContent: [{
|
|
192
|
+
type: HostBinding,
|
|
193
|
+
args: ['style.align-content']
|
|
194
|
+
}], justifyContent: [{
|
|
195
|
+
type: HostBinding,
|
|
196
|
+
args: ['style.justify-content']
|
|
197
|
+
}], type: [{
|
|
198
|
+
type: HostBinding,
|
|
199
|
+
args: ['attr.type']
|
|
200
|
+
}], disabled: [{
|
|
201
|
+
type: HostBinding,
|
|
202
|
+
args: ['attr.disabled']
|
|
239
203
|
}, {
|
|
240
204
|
type: HostBinding,
|
|
241
|
-
args: ['
|
|
242
|
-
}],
|
|
243
|
-
type: Input
|
|
244
|
-
}], Glyph: [{
|
|
245
|
-
type: Input
|
|
246
|
-
}], fontWeight: [{
|
|
205
|
+
args: ['class.disabled']
|
|
206
|
+
}], flyoutOpen: [{
|
|
247
207
|
type: HostBinding,
|
|
248
|
-
args: ['
|
|
208
|
+
args: ['class.popup-open']
|
|
209
|
+
}], _popup: [{
|
|
210
|
+
type: ContentChild,
|
|
211
|
+
args: ['ButtonFlyout']
|
|
212
|
+
}], onHostPointerEvent: [{
|
|
213
|
+
type: HostListener,
|
|
214
|
+
args: ['click', ['$event']]
|
|
249
215
|
}] } });
|
|
250
216
|
|
|
251
|
-
class
|
|
252
|
-
|
|
253
|
-
|
|
217
|
+
class CheckBoxComponent extends BorderComponent {
|
|
218
|
+
constructor() {
|
|
219
|
+
super(...arguments);
|
|
220
|
+
this.IsEnabled = true;
|
|
221
|
+
this.IsChecked = false;
|
|
222
|
+
this.IsCheckedChange = new EventEmitter();
|
|
254
223
|
}
|
|
255
|
-
|
|
256
|
-
|
|
224
|
+
onChange(event) {
|
|
225
|
+
this.IsChecked = (event.target).checked;
|
|
226
|
+
this.IsCheckedChange.emit(this.IsChecked);
|
|
227
|
+
}
|
|
228
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CheckBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
229
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: CheckBoxComponent, isStandalone: true, selector: "CheckBox", inputs: { IsEnabled: "IsEnabled", IsChecked: "IsChecked" }, outputs: { IsCheckedChange: "IsCheckedChange" }, usesInheritance: true, ngImport: i0, template: `<label class="container">
|
|
230
|
+
<input type="checkbox" [checked]="IsChecked" (change)="onChange($event)" [disabled]="!IsEnabled">
|
|
231
|
+
<div class="checkBox">
|
|
232
|
+
<div class="checkMark"></div>
|
|
233
|
+
</div>
|
|
234
|
+
<div class="content">
|
|
235
|
+
<ng-content/>
|
|
236
|
+
</div>
|
|
237
|
+
</label>`, isInline: true, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input[type=checkbox]:checked+.checkBox>.checkMark{display:grid;color:var(--TextOnAccentFillColorPrimary);animation:fade-in-animation var(--ControlNormalAnimationDuration) ease-out forwards}@keyframes fade-in-animation{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}input[type=checkbox]:not(:checked):not(:hover):not(:active):not(:disabled)+.checkBox{background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input[type=checkbox]:not(:checked):hover:not(:active):not(:disabled)+.checkBox{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input[type=checkbox]:not(:checked):active+.checkBox{background-color:var(--SubtleFillColorTransparent);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=checkbox]:checked:not(:hover):not(:disabled)+.checkBox{background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input[type=checkbox]:checked:hover:not(:disabled)+.checkBox{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input[type=checkbox]:checked:active:not(:disabled)+.checkBox{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input[type=checkbox]:checked:active:not(:disabled)+.checkBox>.checkMark{color:var(--TextOnAccentFillColorSecondary)}input[type=checkbox]:not(:checked):disabled+.checkBox{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=checkbox]:checked:disabled+.checkBox{background-color:var(--AccentFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=checkbox]:checked:disabled+.checkBox>.checkMark{color:var(--TextOnAccentFillColorDisabled)}.checkBox{display:grid;width:20px;height:20px;border-radius:var(--ControlCornerRadius);border-style:solid;border-width:var(--ControlBorderThickness)}.checkMark{display:none;font-family:var(--SymbolFontFamily);font-size:12pt;align-self:center;justify-self:center;color:var(--TextOnAccentFillColorPrimary)}@media (prefers-color-scheme: dark){.checkMark{color:var(--TextOnAccentFillColorPrimaryDark)}}.content{align-self:center}\n"] }); }
|
|
257
238
|
}
|
|
258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CheckBoxComponent, decorators: [{
|
|
259
240
|
type: Component,
|
|
260
|
-
args: [{ selector: '
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
args: ['style.border-radius']
|
|
271
|
-
}], BorderThickness: [{
|
|
241
|
+
args: [{ selector: 'CheckBox', template: `<label class="container">
|
|
242
|
+
<input type="checkbox" [checked]="IsChecked" (change)="onChange($event)" [disabled]="!IsEnabled">
|
|
243
|
+
<div class="checkBox">
|
|
244
|
+
<div class="checkMark"></div>
|
|
245
|
+
</div>
|
|
246
|
+
<div class="content">
|
|
247
|
+
<ng-content/>
|
|
248
|
+
</div>
|
|
249
|
+
</label>`, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input[type=checkbox]:checked+.checkBox>.checkMark{display:grid;color:var(--TextOnAccentFillColorPrimary);animation:fade-in-animation var(--ControlNormalAnimationDuration) ease-out forwards}@keyframes fade-in-animation{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}input[type=checkbox]:not(:checked):not(:hover):not(:active):not(:disabled)+.checkBox{background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input[type=checkbox]:not(:checked):hover:not(:active):not(:disabled)+.checkBox{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input[type=checkbox]:not(:checked):active+.checkBox{background-color:var(--SubtleFillColorTransparent);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=checkbox]:checked:not(:hover):not(:disabled)+.checkBox{background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input[type=checkbox]:checked:hover:not(:disabled)+.checkBox{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input[type=checkbox]:checked:active:not(:disabled)+.checkBox{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input[type=checkbox]:checked:active:not(:disabled)+.checkBox>.checkMark{color:var(--TextOnAccentFillColorSecondary)}input[type=checkbox]:not(:checked):disabled+.checkBox{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=checkbox]:checked:disabled+.checkBox{background-color:var(--AccentFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=checkbox]:checked:disabled+.checkBox>.checkMark{color:var(--TextOnAccentFillColorDisabled)}.checkBox{display:grid;width:20px;height:20px;border-radius:var(--ControlCornerRadius);border-style:solid;border-width:var(--ControlBorderThickness)}.checkMark{display:none;font-family:var(--SymbolFontFamily);font-size:12pt;align-self:center;justify-self:center;color:var(--TextOnAccentFillColorPrimary)}@media (prefers-color-scheme: dark){.checkMark{color:var(--TextOnAccentFillColorPrimaryDark)}}.content{align-self:center}\n"] }]
|
|
250
|
+
}], propDecorators: { IsEnabled: [{
|
|
272
251
|
type: Input
|
|
273
|
-
}, {
|
|
274
|
-
type: HostBinding,
|
|
275
|
-
args: ['style.border-width']
|
|
276
|
-
}], BorderBrush: [{
|
|
252
|
+
}], IsChecked: [{
|
|
277
253
|
type: Input
|
|
278
|
-
}, {
|
|
279
|
-
type:
|
|
280
|
-
args: ['style.border-color']
|
|
281
|
-
}], borderStyle: [{
|
|
282
|
-
type: HostBinding,
|
|
283
|
-
args: ['style.border-style']
|
|
254
|
+
}], IsCheckedChange: [{
|
|
255
|
+
type: Output
|
|
284
256
|
}] } });
|
|
285
257
|
|
|
286
|
-
|
|
258
|
+
const SelectorItemTemplate = `<ng-container *ngIf="ItemTemplate">
|
|
259
|
+
<ng-container *ngTemplateOutlet="ItemTemplate; context: { $implicit: item }"/>
|
|
260
|
+
</ng-container>
|
|
261
|
+
<ng-container *ngIf="!ItemTemplate">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container>`;
|
|
262
|
+
class SelectorComponent extends FrameworkElementComponent {
|
|
287
263
|
constructor() {
|
|
288
|
-
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
264
|
+
super(...arguments);
|
|
265
|
+
this.IsEnabled = true;
|
|
266
|
+
this.HorizontalContentAlignment = 'Left';
|
|
267
|
+
this.VerticalContentAlignment = 'Center';
|
|
268
|
+
//ItemSource
|
|
269
|
+
this._itemSource = [];
|
|
270
|
+
//Selected index
|
|
271
|
+
this._selectedIndex = -1;
|
|
272
|
+
this.SelectedIndexChange = new EventEmitter();
|
|
273
|
+
this.SelectedValueChange = new EventEmitter();
|
|
274
|
+
this.SelectedItemChange = new EventEmitter();
|
|
291
275
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
let anchor = `--${this.Id}-host`;
|
|
295
|
-
let top;
|
|
296
|
-
let left;
|
|
297
|
-
let right;
|
|
298
|
-
let bottom;
|
|
299
|
-
let alignSelf;
|
|
300
|
-
let justifySelf;
|
|
301
|
-
let margin;
|
|
302
|
-
switch (this.PlacementMode) {
|
|
303
|
-
case 'Top':
|
|
304
|
-
case 'TopEdgeAlignedLeft':
|
|
305
|
-
case 'TopEdgeAlignedRight':
|
|
306
|
-
bottom = `anchor(${anchor} top)`;
|
|
307
|
-
left = `anchor(${anchor} left)`;
|
|
308
|
-
right = `anchor(${anchor} right)`;
|
|
309
|
-
alignSelf = 'flex-end';
|
|
310
|
-
break;
|
|
311
|
-
case 'Bottom':
|
|
312
|
-
case 'BottomEdgeAlignedLeft':
|
|
313
|
-
case 'BottomEdgeAlignedRight':
|
|
314
|
-
top = `anchor(${anchor} bottom)`;
|
|
315
|
-
left = `anchor(${anchor} left)`;
|
|
316
|
-
right = `anchor(${anchor} right)`;
|
|
317
|
-
alignSelf = 'flex-start';
|
|
318
|
-
break;
|
|
319
|
-
case 'Left':
|
|
320
|
-
case 'LeftEdgeAlignedBottom':
|
|
321
|
-
case 'LeftEdgeAlignedTop':
|
|
322
|
-
right = `anchor(${anchor} left)`;
|
|
323
|
-
top = `anchor(${anchor} top)`;
|
|
324
|
-
bottom = `anchor(${anchor} bottom)`;
|
|
325
|
-
justifySelf = 'right';
|
|
326
|
-
break;
|
|
327
|
-
case 'Right':
|
|
328
|
-
case 'RightEdgeAlignedBottom':
|
|
329
|
-
case 'RightEdgeAlignedTop':
|
|
330
|
-
left = `anchor(${anchor} right)`;
|
|
331
|
-
top = `anchor(${anchor} top)`;
|
|
332
|
-
bottom = `anchor(${anchor} bottom)`;
|
|
333
|
-
justifySelf = 'left';
|
|
334
|
-
break;
|
|
335
|
-
}
|
|
336
|
-
switch (this.PlacementMode) {
|
|
337
|
-
case 'Top':
|
|
338
|
-
case 'Bottom':
|
|
339
|
-
justifySelf = 'center';
|
|
340
|
-
margin = '0 -100% 0 -100%';
|
|
341
|
-
break;
|
|
342
|
-
case 'TopEdgeAlignedLeft':
|
|
343
|
-
case 'BottomEdgeAlignedLeft':
|
|
344
|
-
justifySelf = 'left';
|
|
345
|
-
margin = '0 -100% 0 0';
|
|
346
|
-
break;
|
|
347
|
-
case 'TopEdgeAlignedRight':
|
|
348
|
-
case 'BottomEdgeAlignedRight':
|
|
349
|
-
justifySelf = 'right';
|
|
350
|
-
margin = '0 0 0 -100%';
|
|
351
|
-
break;
|
|
352
|
-
case 'Left':
|
|
353
|
-
case 'Right':
|
|
354
|
-
alignSelf = 'center';
|
|
355
|
-
margin = '-100% 0 -100% 0';
|
|
356
|
-
break;
|
|
357
|
-
case 'LeftEdgeAlignedTop':
|
|
358
|
-
case 'RightEdgeAlignedTop':
|
|
359
|
-
alignSelf = 'flex-start';
|
|
360
|
-
break;
|
|
361
|
-
case 'LeftEdgeAlignedBottom':
|
|
362
|
-
case 'RightEdgeAlignedBottom':
|
|
363
|
-
alignSelf = 'flex-end';
|
|
364
|
-
break;
|
|
365
|
-
}
|
|
366
|
-
return {
|
|
367
|
-
'position-anchor': anchor,
|
|
368
|
-
'top': top,
|
|
369
|
-
'left': left,
|
|
370
|
-
'right': right,
|
|
371
|
-
'bottom': bottom,
|
|
372
|
-
'align-self': alignSelf,
|
|
373
|
-
'justify-self': justifySelf,
|
|
374
|
-
'margin': margin
|
|
375
|
-
};
|
|
276
|
+
get alignContent() {
|
|
277
|
+
return toAlignment(this.VerticalContentAlignment);
|
|
376
278
|
}
|
|
377
|
-
get
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
case 'LeftEdgeAlignedTop':
|
|
390
|
-
return "roll-left";
|
|
391
|
-
case 'Right':
|
|
392
|
-
case 'RightEdgeAlignedBottom':
|
|
393
|
-
case 'RightEdgeAlignedTop':
|
|
394
|
-
return "roll-right";
|
|
395
|
-
}
|
|
279
|
+
get justifyContent() {
|
|
280
|
+
return toJustification(this.HorizontalContentAlignment);
|
|
281
|
+
}
|
|
282
|
+
get disabled() {
|
|
283
|
+
return !this.IsEnabled;
|
|
284
|
+
}
|
|
285
|
+
get ItemSource() {
|
|
286
|
+
return this._itemSource;
|
|
287
|
+
}
|
|
288
|
+
set ItemSource(value) {
|
|
289
|
+
this._itemSource = value;
|
|
290
|
+
this.SelectedIndex = this.SelectedIndex;
|
|
396
291
|
}
|
|
397
|
-
|
|
398
|
-
|
|
292
|
+
get SelectedIndex() {
|
|
293
|
+
return this._selectedIndex;
|
|
294
|
+
}
|
|
295
|
+
set SelectedIndex(value) {
|
|
296
|
+
if (value < 0 && this.ItemSource.length > 0)
|
|
297
|
+
value = 0;
|
|
298
|
+
if (value >= this.ItemSource.length)
|
|
299
|
+
value = this.ItemSource.length - 1;
|
|
300
|
+
if (value == this._selectedIndex)
|
|
301
|
+
return;
|
|
302
|
+
this._selectedIndex = value;
|
|
303
|
+
this.SelectedIndexChange.emit(this.SelectedIndex);
|
|
304
|
+
this.SelectedValueChange.emit(this.SelectedValue);
|
|
305
|
+
this.SelectedItemChange.emit(this.SelectedItem);
|
|
306
|
+
}
|
|
307
|
+
//Selected value
|
|
308
|
+
get SelectedValue() {
|
|
309
|
+
if (this.SelectedIndex < 0 || this.SelectedIndex >= this.ItemSource.length)
|
|
310
|
+
return null;
|
|
311
|
+
return this.getValue(-1, this.ItemSource[this.SelectedIndex]);
|
|
312
|
+
}
|
|
313
|
+
set SelectedValue(value) {
|
|
314
|
+
this.SelectedIndex = this.ItemSource.findIndex(p => this.getValue(-1, p) == value);
|
|
315
|
+
}
|
|
316
|
+
//Selected item
|
|
317
|
+
get SelectedItem() {
|
|
318
|
+
if (this.SelectedIndex < 0 || this.SelectedIndex >= this.ItemSource.length)
|
|
319
|
+
return null;
|
|
320
|
+
return this.ItemSource[this.SelectedIndex];
|
|
321
|
+
}
|
|
322
|
+
set SelectedItem(value) {
|
|
323
|
+
this.SelectedIndex = this.ItemSource.findIndex(value);
|
|
324
|
+
}
|
|
325
|
+
getValue(index, item) {
|
|
326
|
+
return this.SelectedValuePath ? item[this.SelectedValuePath] : item;
|
|
327
|
+
}
|
|
328
|
+
onItemClick(event, index, item) {
|
|
329
|
+
if (this.SelectedIndex === index || !this.IsEnabled)
|
|
330
|
+
return;
|
|
331
|
+
this.SelectedIndex = index;
|
|
332
|
+
event.stopPropagation();
|
|
333
|
+
}
|
|
334
|
+
GetElement(index) {
|
|
335
|
+
return document.querySelector(`#xaml-selector-${this._id}-item-${index}`);
|
|
336
|
+
}
|
|
337
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
338
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SelectorComponent, isStandalone: true, selector: "Selector", inputs: { IsEnabled: "IsEnabled", HorizontalContentAlignment: "HorizontalContentAlignment", VerticalContentAlignment: "VerticalContentAlignment", ItemSource: "ItemSource", SelectedIndex: "SelectedIndex", SelectedValue: "SelectedValue", SelectedItem: "SelectedItem", DisplayMemberPath: "DisplayMemberPath", SelectedValuePath: "SelectedValuePath" }, outputs: { SelectedIndexChange: "SelectedIndexChange", SelectedValueChange: "SelectedValueChange", SelectedItemChange: "SelectedItemChange" }, host: { properties: { "class.disabled": "this.disabled" } }, queries: [{ propertyName: "ItemTemplate", first: true, predicate: TemplateRef, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
399
339
|
}
|
|
400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectorComponent, decorators: [{
|
|
401
341
|
type: Component,
|
|
402
|
-
args: [{
|
|
403
|
-
|
|
342
|
+
args: [{
|
|
343
|
+
selector: 'Selector',
|
|
344
|
+
template: '',
|
|
345
|
+
}]
|
|
346
|
+
}], propDecorators: { ItemTemplate: [{
|
|
347
|
+
type: ContentChild,
|
|
348
|
+
args: [TemplateRef]
|
|
349
|
+
}], IsEnabled: [{
|
|
404
350
|
type: Input
|
|
405
|
-
}],
|
|
406
|
-
type:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
args: ['attr.popover']
|
|
411
|
-
}], styles: [{
|
|
412
|
-
type: HostBinding,
|
|
413
|
-
args: ['style']
|
|
414
|
-
}], class: [{
|
|
351
|
+
}], HorizontalContentAlignment: [{
|
|
352
|
+
type: Input
|
|
353
|
+
}], VerticalContentAlignment: [{
|
|
354
|
+
type: Input
|
|
355
|
+
}], disabled: [{
|
|
415
356
|
type: HostBinding,
|
|
416
|
-
args: ['class']
|
|
357
|
+
args: ['class.disabled']
|
|
358
|
+
}], ItemSource: [{
|
|
359
|
+
type: Input
|
|
360
|
+
}], SelectedIndex: [{
|
|
361
|
+
type: Input
|
|
362
|
+
}], SelectedIndexChange: [{
|
|
363
|
+
type: Output
|
|
364
|
+
}], SelectedValue: [{
|
|
365
|
+
type: Input
|
|
366
|
+
}], SelectedValueChange: [{
|
|
367
|
+
type: Output
|
|
368
|
+
}], SelectedItem: [{
|
|
369
|
+
type: Input
|
|
370
|
+
}], SelectedItemChange: [{
|
|
371
|
+
type: Output
|
|
372
|
+
}], DisplayMemberPath: [{
|
|
373
|
+
type: Input
|
|
374
|
+
}], SelectedValuePath: [{
|
|
375
|
+
type: Input
|
|
417
376
|
}] } });
|
|
418
377
|
|
|
419
|
-
class
|
|
378
|
+
class ScrollBarComponent extends FrameworkElementComponent {
|
|
420
379
|
constructor() {
|
|
421
380
|
super(...arguments);
|
|
381
|
+
this.Orientation = 'Vertical';
|
|
382
|
+
this.ViewportSize = 0;
|
|
383
|
+
this.ScrollSize = 0;
|
|
384
|
+
this.StepSize = 5;
|
|
385
|
+
this._value = 0;
|
|
386
|
+
this.ValueChange = new EventEmitter();
|
|
422
387
|
this.IsEnabled = true;
|
|
423
|
-
this.
|
|
424
|
-
this.
|
|
425
|
-
this.
|
|
388
|
+
this._isScrolling = false;
|
|
389
|
+
this._startPointerPosition = 0;
|
|
390
|
+
this._startScrollPosition = 0;
|
|
426
391
|
}
|
|
427
|
-
get
|
|
428
|
-
return this.
|
|
392
|
+
get Value() {
|
|
393
|
+
return this._value;
|
|
394
|
+
}
|
|
395
|
+
;
|
|
396
|
+
set Value(value) {
|
|
397
|
+
let scrollRange = this.ScrollSize - this.ViewportSize;
|
|
398
|
+
if (value > scrollRange)
|
|
399
|
+
value = scrollRange;
|
|
400
|
+
if (value < 0)
|
|
401
|
+
value = 0;
|
|
402
|
+
this._value = value;
|
|
403
|
+
this.ValueChange.emit(value);
|
|
404
|
+
}
|
|
405
|
+
get decreaseGlyph() {
|
|
406
|
+
return this.Orientation === 'Vertical' ? '\ueddb' : '\uedd9';
|
|
407
|
+
}
|
|
408
|
+
get increaseGlyph() {
|
|
409
|
+
return this.Orientation === 'Vertical' ? '\ueddc' : '\uedda';
|
|
410
|
+
}
|
|
411
|
+
get class() {
|
|
412
|
+
return this.Orientation.toLowerCase();
|
|
429
413
|
}
|
|
430
|
-
|
|
431
|
-
|
|
414
|
+
getElementSize(element) {
|
|
415
|
+
return this.Orientation === 'Vertical' ? element.offsetHeight : element.offsetWidth;
|
|
416
|
+
}
|
|
417
|
+
getPointerPosition(event) {
|
|
418
|
+
return this.Orientation === 'Vertical' ? event.clientY : event.clientX;
|
|
419
|
+
}
|
|
420
|
+
get thumbStyle() {
|
|
421
|
+
if (!this._track)
|
|
422
|
+
return {};
|
|
423
|
+
let trackLength = this.getElementSize(this._track.nativeElement);
|
|
424
|
+
let scrollPosition = this.Value / (this.ScrollSize - this.ViewportSize);
|
|
425
|
+
let size = trackLength * (this.ViewportSize / this.ScrollSize);
|
|
426
|
+
let position = scrollPosition * (trackLength - size);
|
|
427
|
+
switch (this.Orientation) {
|
|
428
|
+
case 'Vertical':
|
|
429
|
+
return {
|
|
430
|
+
'height': size + 'px',
|
|
431
|
+
'top': position + 'px'
|
|
432
|
+
};
|
|
433
|
+
case 'Horizontal':
|
|
434
|
+
return {
|
|
435
|
+
'width': size + 'px',
|
|
436
|
+
'left': position + 'px'
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
onButtonDown(event, direction) {
|
|
441
|
+
event.target.setPointerCapture(event.pointerId);
|
|
442
|
+
this._interval = setInterval(() => {
|
|
443
|
+
this.Value += direction ? this.StepSize : -this.StepSize;
|
|
444
|
+
}, 50);
|
|
445
|
+
}
|
|
446
|
+
onButtonUp(event) {
|
|
447
|
+
event.target.releasePointerCapture(event.pointerId);
|
|
448
|
+
clearInterval(this._interval);
|
|
449
|
+
}
|
|
450
|
+
onTrackDown(event) {
|
|
451
|
+
let direction;
|
|
452
|
+
if (this.Orientation === 'Vertical') {
|
|
453
|
+
if (event.offsetY < this._thumb.nativeElement.offsetTop) {
|
|
454
|
+
direction = false;
|
|
455
|
+
}
|
|
456
|
+
if (this._thumb.nativeElement.offsetTop + this._thumb.nativeElement.offsetHeight < event.offsetY) {
|
|
457
|
+
direction = true;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
if (event.offsetX < this._thumb.nativeElement.offsetLeft) {
|
|
462
|
+
direction = false;
|
|
463
|
+
}
|
|
464
|
+
if (this._thumb.nativeElement.offsetLeft + this._thumb.nativeElement.offsetWidth < event.offsetX) {
|
|
465
|
+
direction = true;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
if (direction === undefined)
|
|
432
469
|
return;
|
|
433
|
-
|
|
470
|
+
event.target.setPointerCapture(event.pointerId);
|
|
471
|
+
this.Value += direction ? this.ViewportSize : -this.ViewportSize;
|
|
472
|
+
this._interval = setInterval(() => {
|
|
473
|
+
this.Value += direction ? this.ViewportSize : -this.ViewportSize;
|
|
474
|
+
}, 250);
|
|
434
475
|
}
|
|
435
|
-
|
|
436
|
-
|
|
476
|
+
onTrackUp(event) {
|
|
477
|
+
event.target.releasePointerCapture(event.pointerId);
|
|
478
|
+
clearInterval(this._interval);
|
|
437
479
|
}
|
|
438
|
-
|
|
439
|
-
|
|
480
|
+
onPointerDown(event) {
|
|
481
|
+
if (event.buttons !== 1)
|
|
482
|
+
return;
|
|
483
|
+
this._thumb.nativeElement.setPointerCapture(event.pointerId);
|
|
484
|
+
this._isScrolling = true;
|
|
485
|
+
this._startPointerPosition = this.getPointerPosition(event);
|
|
486
|
+
this._startScrollPosition = this.Value;
|
|
487
|
+
event.stopPropagation();
|
|
488
|
+
}
|
|
489
|
+
onPointerMove(event) {
|
|
490
|
+
if (!this._isScrolling)
|
|
491
|
+
return;
|
|
492
|
+
if (event.buttons !== 1) {
|
|
493
|
+
this._isScrolling = false;
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
let delta = this.getPointerPosition(event) - this._startPointerPosition;
|
|
497
|
+
let trackLength = this.getElementSize(this._track.nativeElement);
|
|
498
|
+
let thumbLength = this.getElementSize(this._thumb.nativeElement);
|
|
499
|
+
let scrollPercent = delta / (trackLength - thumbLength);
|
|
500
|
+
this.Value = this._startScrollPosition + scrollPercent * (this.ScrollSize - this.ViewportSize);
|
|
501
|
+
event.stopPropagation();
|
|
440
502
|
}
|
|
441
|
-
|
|
442
|
-
|
|
503
|
+
onPointerUp(event) {
|
|
504
|
+
if (event.buttons !== 1)
|
|
505
|
+
return;
|
|
506
|
+
this._isScrolling = false;
|
|
507
|
+
this._thumb.nativeElement.releasePointerCapture(event.pointerId);
|
|
508
|
+
event.stopPropagation();
|
|
443
509
|
}
|
|
444
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
445
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type:
|
|
510
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ScrollBarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
511
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ScrollBarComponent, isStandalone: true, selector: "ScrollBar", inputs: { Orientation: "Orientation", ViewportSize: "ViewportSize", ScrollSize: "ScrollSize", StepSize: "StepSize", Value: "Value", IsEnabled: "IsEnabled" }, outputs: { ValueChange: "ValueChange" }, host: { properties: { "class": "this.class" } }, viewQueries: [{ propertyName: "_track", first: true, predicate: ["track"], descendants: true }, { propertyName: "_thumb", first: true, predicate: ["thumb"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<div class="buttons" (pointerdown)="onButtonDown($event, false)" (pointerup)="onButtonUp($event)">{{decreaseGlyph}}</div>
|
|
512
|
+
<div #track class="track" (pointerdown)="onTrackDown($event)" (pointerup)="onTrackUp($event)">
|
|
513
|
+
<div #thumb class="thumb" [ngStyle]="thumbStyle" (pointerdown)="onPointerDown($event)" (pointermove)="onPointerMove($event)" (pointerup)="onPointerUp($event)"></div>
|
|
514
|
+
</div>
|
|
515
|
+
<div class="buttons" (pointerdown)="onButtonDown($event, true)" (pointerup)="onButtonUp($event)">{{increaseGlyph}}</div>`, isInline: true, styles: [":host{position:relative}:host{display:grid;background-color:var(--SubtleFillColorTransparent)}:host.horizontal{grid-template-columns:auto 1fr auto}:host.horizontal>.buttons{align-self:center}:host.horizontal>.track{transform:translateY(-.75px);align-self:center;margin:0 -2px 0 -3px}:host.horizontal>.track>.thumb{transform:translateY(3px)}:host.vertical{grid-template-rows:auto 1fr auto}:host.vertical>.buttons{justify-self:center}:host.vertical>.track{transform:translate(-.75px);justify-self:center;margin:-3px 0 -2px}:host.vertical>.track>.thumb{transform:translate(3px)}:host:hover{background-color:var(--AcrylicInAppFillColorDefault);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}:host:hover>.buttons{display:grid;opacity:1}:host:hover>.track>.thumb{min-width:10px;min-height:10px;transform:translate(0)}:host>.buttons{display:hidden;font-family:var(--SymbolFontFamily);font-size:8pt;min-width:12px;min-height:12px;margin:4px;transform-origin:center;opacity:0;transition:opacity var(--ControlNormalAnimationDuration);color:var(--ControlStrongFillColorDefault)}:host>.buttons:hover{color:var(--TextFillColorSecondary)}:host>.buttons:active{color:var(--TextFillColorSecondary);transform:scale(.875)}:host>.track{display:grid;position:relative}:host>.track>.thumb{background-color:var(--ControlStrongFillColorDefault);position:relative;border-radius:3px;transition:transform var(--ControlNormalAnimationDuration),min-width var(--ControlNormalAnimationDuration),min-height var(--ControlNormalAnimationDuration);min-width:2px;min-height:2px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
446
516
|
}
|
|
447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ScrollBarComponent, decorators: [{
|
|
448
518
|
type: Component,
|
|
449
|
-
args: [{ selector: '
|
|
450
|
-
|
|
519
|
+
args: [{ selector: 'ScrollBar', imports: [CommonModule], template: `<div class="buttons" (pointerdown)="onButtonDown($event, false)" (pointerup)="onButtonUp($event)">{{decreaseGlyph}}</div>
|
|
520
|
+
<div #track class="track" (pointerdown)="onTrackDown($event)" (pointerup)="onTrackUp($event)">
|
|
521
|
+
<div #thumb class="thumb" [ngStyle]="thumbStyle" (pointerdown)="onPointerDown($event)" (pointermove)="onPointerMove($event)" (pointerup)="onPointerUp($event)"></div>
|
|
522
|
+
</div>
|
|
523
|
+
<div class="buttons" (pointerdown)="onButtonDown($event, true)" (pointerup)="onButtonUp($event)">{{increaseGlyph}}</div>`, styles: [":host{position:relative}:host{display:grid;background-color:var(--SubtleFillColorTransparent)}:host.horizontal{grid-template-columns:auto 1fr auto}:host.horizontal>.buttons{align-self:center}:host.horizontal>.track{transform:translateY(-.75px);align-self:center;margin:0 -2px 0 -3px}:host.horizontal>.track>.thumb{transform:translateY(3px)}:host.vertical{grid-template-rows:auto 1fr auto}:host.vertical>.buttons{justify-self:center}:host.vertical>.track{transform:translate(-.75px);justify-self:center;margin:-3px 0 -2px}:host.vertical>.track>.thumb{transform:translate(3px)}:host:hover{background-color:var(--AcrylicInAppFillColorDefault);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}:host:hover>.buttons{display:grid;opacity:1}:host:hover>.track>.thumb{min-width:10px;min-height:10px;transform:translate(0)}:host>.buttons{display:hidden;font-family:var(--SymbolFontFamily);font-size:8pt;min-width:12px;min-height:12px;margin:4px;transform-origin:center;opacity:0;transition:opacity var(--ControlNormalAnimationDuration);color:var(--ControlStrongFillColorDefault)}:host>.buttons:hover{color:var(--TextFillColorSecondary)}:host>.buttons:active{color:var(--TextFillColorSecondary);transform:scale(.875)}:host>.track{display:grid;position:relative}:host>.track>.thumb{background-color:var(--ControlStrongFillColorDefault);position:relative;border-radius:3px;transition:transform var(--ControlNormalAnimationDuration),min-width var(--ControlNormalAnimationDuration),min-height var(--ControlNormalAnimationDuration);min-width:2px;min-height:2px}\n"] }]
|
|
524
|
+
}], propDecorators: { Orientation: [{
|
|
451
525
|
type: Input
|
|
452
|
-
}],
|
|
453
|
-
type:
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}],
|
|
459
|
-
type:
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
}],
|
|
465
|
-
type:
|
|
466
|
-
args: [
|
|
467
|
-
}],
|
|
468
|
-
type:
|
|
469
|
-
args: ['
|
|
470
|
-
}, {
|
|
471
|
-
type: HostListener,
|
|
472
|
-
args: ['pointerenter', ['$event']]
|
|
473
|
-
}, {
|
|
474
|
-
type: HostListener,
|
|
475
|
-
args: ['pointerup', ['$event']]
|
|
476
|
-
}], anchorName: [{
|
|
526
|
+
}], ViewportSize: [{
|
|
527
|
+
type: Input
|
|
528
|
+
}], ScrollSize: [{
|
|
529
|
+
type: Input
|
|
530
|
+
}], StepSize: [{
|
|
531
|
+
type: Input
|
|
532
|
+
}], Value: [{
|
|
533
|
+
type: Input
|
|
534
|
+
}], ValueChange: [{
|
|
535
|
+
type: Output
|
|
536
|
+
}], IsEnabled: [{
|
|
537
|
+
type: Input
|
|
538
|
+
}], _track: [{
|
|
539
|
+
type: ViewChild,
|
|
540
|
+
args: ['track']
|
|
541
|
+
}], _thumb: [{
|
|
542
|
+
type: ViewChild,
|
|
543
|
+
args: ['thumb']
|
|
544
|
+
}], class: [{
|
|
477
545
|
type: HostBinding,
|
|
478
|
-
args: ['
|
|
546
|
+
args: ['class']
|
|
479
547
|
}] } });
|
|
480
548
|
|
|
481
|
-
class
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
549
|
+
class ScrollViewerComponent extends FrameworkElementComponent {
|
|
550
|
+
get IsHorizontalScrollBarVisible() {
|
|
551
|
+
switch (this.HorizontalScrollMode) {
|
|
552
|
+
case 'Disabled':
|
|
553
|
+
return false;
|
|
554
|
+
case 'Auto':
|
|
555
|
+
return this.ViewportWidth < this.ExtentWidth;
|
|
556
|
+
case 'Enabled':
|
|
557
|
+
return true;
|
|
558
|
+
}
|
|
487
559
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
560
|
+
get IsVerticalScrollBarVisible() {
|
|
561
|
+
switch (this.VerticalScrollMode) {
|
|
562
|
+
case 'Disabled':
|
|
563
|
+
return false;
|
|
564
|
+
case 'Auto':
|
|
565
|
+
return this.ViewportHeight < this.ExtentHeight;
|
|
566
|
+
case 'Enabled':
|
|
567
|
+
return true;
|
|
568
|
+
}
|
|
491
569
|
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
570
|
+
get ExtentWidth() {
|
|
571
|
+
return this._content?.nativeElement.scrollWidth;
|
|
572
|
+
}
|
|
573
|
+
get ExtentHeight() {
|
|
574
|
+
return this._content?.nativeElement.scrollHeight;
|
|
575
|
+
}
|
|
576
|
+
get ViewportWidth() {
|
|
577
|
+
return this._content?.nativeElement.clientWidth;
|
|
578
|
+
}
|
|
579
|
+
get ViewportHeight() {
|
|
580
|
+
return this._content?.nativeElement.clientHeight;
|
|
581
|
+
}
|
|
582
|
+
get HorizontalOffset() {
|
|
583
|
+
return this._content?.nativeElement.scrollLeft;
|
|
584
|
+
}
|
|
585
|
+
set HorizontalOffset(value) {
|
|
586
|
+
if (this._content)
|
|
587
|
+
this._content.nativeElement.scrollLeft = value;
|
|
588
|
+
}
|
|
589
|
+
get VerticalOffset() {
|
|
590
|
+
return this._content?.nativeElement.scrollTop;
|
|
591
|
+
}
|
|
592
|
+
set VerticalOffset(value) {
|
|
593
|
+
if (this._content)
|
|
594
|
+
this._content.nativeElement.scrollTop = value;
|
|
595
|
+
}
|
|
596
|
+
static toOverflow(value) {
|
|
597
|
+
switch (value) {
|
|
598
|
+
case 'Disabled':
|
|
599
|
+
return 'hidden';
|
|
600
|
+
case 'Enabled':
|
|
601
|
+
return 'scroll';
|
|
602
|
+
case 'Auto':
|
|
603
|
+
return 'auto';
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
get contentStyle() {
|
|
607
|
+
return {
|
|
608
|
+
'overflow-x': ScrollViewerComponent.toOverflow(this.HorizontalScrollMode),
|
|
609
|
+
'overflow-y': ScrollViewerComponent.toOverflow(this.VerticalScrollMode)
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
constructor(_changeDetector) {
|
|
613
|
+
super();
|
|
614
|
+
this._changeDetector = _changeDetector;
|
|
615
|
+
this.HorizontalScrollMode = 'Auto';
|
|
616
|
+
this.VerticalScrollMode = 'Auto';
|
|
617
|
+
}
|
|
618
|
+
onScroll() {
|
|
619
|
+
//trigger change detect on scroll
|
|
620
|
+
}
|
|
621
|
+
ngAfterViewInit() {
|
|
622
|
+
//help the layout finish itself
|
|
623
|
+
this._changeDetector.detectChanges();
|
|
624
|
+
}
|
|
625
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ScrollViewerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
626
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ScrollViewerComponent, isStandalone: true, selector: "ScrollViewer", inputs: { HorizontalScrollMode: "HorizontalScrollMode", VerticalScrollMode: "VerticalScrollMode" }, viewQueries: [{ propertyName: "_content", first: true, predicate: ["content"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<div #content class="content" [ngStyle]="contentStyle" (scroll)="onScroll()"><ng-content/></div>
|
|
627
|
+
<ScrollBar *ngIf="IsVerticalScrollBarVisible" HorizontalAlignment="Right" class="scrollbar" Orientation="Vertical" [ScrollSize]="ExtentHeight" [ViewportSize]="ViewportHeight" [(Value)]="VerticalOffset"/>
|
|
628
|
+
<ScrollBar *ngIf="IsHorizontalScrollBarVisible" VerticalAlignment="Bottom" class="scrollbar" Orientation="Horizontal" [ScrollSize]="ExtentWidth" [ViewportSize]="ViewportWidth" [(Value)]="HorizontalOffset"/>`, isInline: true, styles: [":host{display:grid;overflow:auto}:host>.content{overflow:-moz-scrollbars-none;-ms-overflow-style:none;scrollbar-width:none;display:grid;grid-row-start:1;grid-column-start:1;justify-self:stretch;align-self:stretch}:host>.content::-webkit-scrollbar{display:none}:host>.scrollbar{display:grid;grid-row-start:1;grid-column-start:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ScrollBarComponent, selector: "ScrollBar", inputs: ["Orientation", "ViewportSize", "ScrollSize", "StepSize", "Value", "IsEnabled"], outputs: ["ValueChange"] }] }); }
|
|
502
629
|
}
|
|
503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ScrollViewerComponent, decorators: [{
|
|
504
631
|
type: Component,
|
|
505
|
-
args: [{ selector: '
|
|
506
|
-
<
|
|
507
|
-
<
|
|
508
|
-
|
|
509
|
-
</div>
|
|
510
|
-
<div class="content">
|
|
511
|
-
<ng-content/>
|
|
512
|
-
</div>
|
|
513
|
-
</label>`, styles: [".container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input[type=checkbox]:checked+.checkBox>.checkMark{display:grid}input[type=checkbox]:not(:checked):not(:hover):not(:active):not(:disabled)+.checkBox{background-color:#00000006;border-color:#00000072}@media (prefers-color-scheme: dark){input[type=checkbox]:not(:checked):not(:hover):not(:active):not(:disabled)+.checkBox{background-color:#00000019;border-color:#ffffff8b}}input[type=checkbox]:not(:checked):hover:not(:active):not(:disabled)+.checkBox{background-color:#0000000f;border-color:#00000072}@media (prefers-color-scheme: dark){input[type=checkbox]:not(:checked):hover:not(:active):not(:disabled)+.checkBox{background-color:#ffffff0b;border-color:#ffffff8b}}input[type=checkbox]:not(:checked):active+.checkBox{background-color:#fff0;border-color:#00000037}@media (prefers-color-scheme: dark){input[type=checkbox]:not(:checked):active+.checkBox{background-color:#fff0;border-color:#ffffff28}}input[type=checkbox]:checked:not(:hover):not(:disabled)+.checkBox{background-color:#0067c0;border-color:#0067c0}@media (prefers-color-scheme: dark){input[type=checkbox]:checked:not(:hover):not(:disabled)+.checkBox{background-color:#4cc2ff;border-color:#4cc2ff}}input[type=checkbox]:checked:hover:not(:disabled)+.checkBox{background-color:#0067c0e6;border-color:#0067c0e6}@media (prefers-color-scheme: dark){input[type=checkbox]:checked:hover:not(:disabled)+.checkBox{background-color:#4cc2ffe6;border-color:#4cc2ffe6}}input[type=checkbox]:checked:active:not(:disabled)+.checkBox{background-color:#0067c0cc;border-color:#0067c0cc}input[type=checkbox]:checked:active:not(:disabled)+.checkBox>.checkMark{color:#ffffffb3}@media (prefers-color-scheme: dark){input[type=checkbox]:checked:active:not(:disabled)+.checkBox{background-color:#4cc2ffcc;border-color:#4cc2ffcc}input[type=checkbox]:checked:active:not(:disabled)+.checkBox>.checkMark{color:#00000080}}input[type=checkbox]:not(:checked):disabled+.checkBox{background-color:#fff0;border-color:#00000037}@media (prefers-color-scheme: dark){input[type=checkbox]:not(:checked):disabled+.checkBox{background-color:#fff0;border-color:#ffffff28}}input[type=checkbox]:checked:disabled+.checkBox{background-color:#ffffff37;border-color:#00000037}input[type=checkbox]:checked:disabled+.checkBox>.checkMark{color:#fff}@media (prefers-color-scheme: dark){input[type=checkbox]:checked:disabled+.checkBox{background-color:#ffffff28;border-color:#ffffff28}input[type=checkbox]:checked:disabled+.checkBox>.checkMark{color:#ffffff87}}.checkBox{display:grid;width:20px;height:20px;border-radius:4px;border-style:solid;border-width:1px}.checkMark{display:none;font-family:Segoe Fluent Icons,Segoe MDL2 Assets;font-size:12pt;align-self:center;justify-self:center;color:#fff}@media (prefers-color-scheme: dark){.checkMark{color:#000}}.content{align-self:center}\n"] }]
|
|
514
|
-
}], propDecorators: { IsEnabled: [{
|
|
632
|
+
args: [{ selector: 'ScrollViewer', imports: [CommonModule, ScrollBarComponent], template: `<div #content class="content" [ngStyle]="contentStyle" (scroll)="onScroll()"><ng-content/></div>
|
|
633
|
+
<ScrollBar *ngIf="IsVerticalScrollBarVisible" HorizontalAlignment="Right" class="scrollbar" Orientation="Vertical" [ScrollSize]="ExtentHeight" [ViewportSize]="ViewportHeight" [(Value)]="VerticalOffset"/>
|
|
634
|
+
<ScrollBar *ngIf="IsHorizontalScrollBarVisible" VerticalAlignment="Bottom" class="scrollbar" Orientation="Horizontal" [ScrollSize]="ExtentWidth" [ViewportSize]="ViewportWidth" [(Value)]="HorizontalOffset"/>`, styles: [":host{display:grid;overflow:auto}:host>.content{overflow:-moz-scrollbars-none;-ms-overflow-style:none;scrollbar-width:none;display:grid;grid-row-start:1;grid-column-start:1;justify-self:stretch;align-self:stretch}:host>.content::-webkit-scrollbar{display:none}:host>.scrollbar{display:grid;grid-row-start:1;grid-column-start:1}\n"] }]
|
|
635
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { HorizontalScrollMode: [{
|
|
515
636
|
type: Input
|
|
516
|
-
}],
|
|
637
|
+
}], VerticalScrollMode: [{
|
|
517
638
|
type: Input
|
|
518
|
-
}],
|
|
519
|
-
type:
|
|
639
|
+
}], _content: [{
|
|
640
|
+
type: ViewChild,
|
|
641
|
+
args: ['content']
|
|
520
642
|
}] } });
|
|
521
643
|
|
|
522
|
-
class
|
|
644
|
+
class StackPanelComponent extends PanelComponent {
|
|
523
645
|
constructor() {
|
|
524
646
|
super(...arguments);
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.SelectedValue = null;
|
|
528
|
-
this.SelectedValueChange = new EventEmitter();
|
|
647
|
+
this.Orientation = 'Vertical';
|
|
648
|
+
this.Spacing = 0;
|
|
529
649
|
}
|
|
530
|
-
|
|
531
|
-
return this.
|
|
650
|
+
get flexDirection() {
|
|
651
|
+
return this.Orientation === 'Horizontal' ? 'row' : 'column';
|
|
532
652
|
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
this.SelectedValueChange.emit(index);
|
|
538
|
-
}
|
|
539
|
-
get overflow() {
|
|
540
|
-
return 'auto';
|
|
541
|
-
}
|
|
542
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ListBox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
543
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ListBox, isStandalone: true, selector: "ListBox", inputs: { ItemSource: "ItemSource", SelectedIndex: "SelectedIndex", SelectedValue: "SelectedValue", DisplayMemberPath: "DisplayMemberPath", SelectedValuePath: "SelectedValuePath" }, outputs: { SelectedIndexChange: "SelectedIndexChange", SelectedValueChange: "SelectedValueChange" }, queries: [{ propertyName: "ItemTemplate", first: true, predicate: TemplateRef, descendants: true }], usesInheritance: true, ngImport: i0, template: `<div *ngFor="let item of ItemSource; index as index; trackBy: getValue" class="item" [ngClass]="{'selected': index == SelectedIndex}" (click)="onItemClick(index, item)">
|
|
544
|
-
<ng-container *ngIf="ItemTemplate">
|
|
545
|
-
<ng-container *ngTemplateOutlet="ItemTemplate; context: { $implicit: item }"/>
|
|
546
|
-
</ng-container>
|
|
547
|
-
<ng-container *ngIf="!ItemTemplate">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container>
|
|
548
|
-
</div>`, isInline: true, styles: [":host{display:flex;flex-direction:column;background-color:#f2f2f2}@media (prefers-color-scheme: dark){:host{background-color:#2b2b2b}}.item{display:grid;padding:12px;margin:0}.item:not(:hover):not(:active):not(.selected){background-color:transparent;color:#000000e4}@media (prefers-color-scheme: dark){.item:not(:hover):not(:active):not(.selected){color:#fff}}.item:hover:not(.active):not(.selected){background-color:#00000009}@media (prefers-color-scheme: dark){.item:hover:not(.active):not(.selected){background-color:#ffffff0f}}.item:active:not(.selected){background-color:#00000006}@media (prefers-color-scheme: dark){.item:active:not(.selected){background-color:#ffffff0a}}.item:not(:hover):not(:active).selected{background-color:#0078d466}@media (prefers-color-scheme: dark){.item:not(:hover):not(:active).selected{background-color:#0078d499}}.item:hover:not(:active).selected{background-color:#0078d499}@media (prefers-color-scheme: dark){.item:hover:not(:active).selected{background-color:#0078d4cc}}.item:active.selected{background-color:#0078d4b3}@media (prefers-color-scheme: dark){.item:active.selected{background-color:#0078d4e6}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
549
|
-
}
|
|
550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ListBox, decorators: [{
|
|
653
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: StackPanelComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
654
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: StackPanelComponent, isStandalone: true, selector: "StackPanel", inputs: { Orientation: "Orientation", Spacing: "Spacing" }, host: { properties: { "style.gap": "this.Spacing", "style.flex-direction": "this.flexDirection" } }, usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:flex;position:relative}\n"] }); }
|
|
655
|
+
}
|
|
656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: StackPanelComponent, decorators: [{
|
|
551
657
|
type: Component,
|
|
552
|
-
args: [{ selector: '
|
|
553
|
-
|
|
554
|
-
<ng-container *ngTemplateOutlet="ItemTemplate; context: { $implicit: item }"/>
|
|
555
|
-
</ng-container>
|
|
556
|
-
<ng-container *ngIf="!ItemTemplate">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container>
|
|
557
|
-
</div>`, styles: [":host{display:flex;flex-direction:column;background-color:#f2f2f2}@media (prefers-color-scheme: dark){:host{background-color:#2b2b2b}}.item{display:grid;padding:12px;margin:0}.item:not(:hover):not(:active):not(.selected){background-color:transparent;color:#000000e4}@media (prefers-color-scheme: dark){.item:not(:hover):not(:active):not(.selected){color:#fff}}.item:hover:not(.active):not(.selected){background-color:#00000009}@media (prefers-color-scheme: dark){.item:hover:not(.active):not(.selected){background-color:#ffffff0f}}.item:active:not(.selected){background-color:#00000006}@media (prefers-color-scheme: dark){.item:active:not(.selected){background-color:#ffffff0a}}.item:not(:hover):not(:active).selected{background-color:#0078d466}@media (prefers-color-scheme: dark){.item:not(:hover):not(:active).selected{background-color:#0078d499}}.item:hover:not(:active).selected{background-color:#0078d499}@media (prefers-color-scheme: dark){.item:hover:not(:active).selected{background-color:#0078d4cc}}.item:active.selected{background-color:#0078d4b3}@media (prefers-color-scheme: dark){.item:active.selected{background-color:#0078d4e6}}\n"] }]
|
|
558
|
-
}], propDecorators: { ItemSource: [{
|
|
559
|
-
type: Input
|
|
560
|
-
}], ItemTemplate: [{
|
|
561
|
-
type: ContentChild,
|
|
562
|
-
args: [TemplateRef]
|
|
563
|
-
}], SelectedIndex: [{
|
|
658
|
+
args: [{ selector: 'StackPanel', template: `<ng-content/>`, styles: [":host{display:flex;position:relative}\n"] }]
|
|
659
|
+
}], propDecorators: { Orientation: [{
|
|
564
660
|
type: Input
|
|
565
|
-
}],
|
|
566
|
-
type: Output
|
|
567
|
-
}], SelectedValue: [{
|
|
661
|
+
}], Spacing: [{
|
|
568
662
|
type: Input
|
|
569
|
-
}
|
|
663
|
+
}, {
|
|
664
|
+
type: HostBinding,
|
|
665
|
+
args: ['style.gap']
|
|
666
|
+
}], flexDirection: [{
|
|
667
|
+
type: HostBinding,
|
|
668
|
+
args: ['style.flex-direction']
|
|
669
|
+
}] } });
|
|
670
|
+
|
|
671
|
+
class ListViewComponent extends SelectorComponent {
|
|
672
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
673
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ListViewComponent, isStandalone: true, selector: "ListView", usesInheritance: true, ngImport: i0, template: "<ScrollViewer>\n <StackPanel Padding=\"2px 0\">\n <div *ngFor=\"let item of ItemSource; index as index; trackBy: getValue\" class=\"item\" [ngClass]=\"{'selected': index == SelectedIndex}\" (click)=\"onItemClick($event, index, item)\" [id]=\"'xaml-selector-'+_id+'-item-'+index\">\n <div class=\"item-selector\"></div>\n <div class=\"item-content\" [ngStyle]=\"{'align-content': alignContent, 'justify-content': justifyContent}\"><ng-container *ngIf=\"ItemTemplate\">\n <ng-container *ngTemplateOutlet=\"ItemTemplate; context: { $implicit: item }\"/>\n </ng-container>\n <ng-container *ngIf=\"!ItemTemplate\">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container></div>\n </div>\n </StackPanel>\n </ScrollViewer>", isInline: true, styles: [":host{position:relative}:host{display:grid}:host .item{display:grid;margin:2px 4px;border-radius:4px}:host .item>.item-selector,:host .item>.item-content{display:grid;grid-row-start:1;grid-column-start:1;justify-self:stretch}:host .item>.item-selector{justify-self:left;align-self:center;width:4px;height:12px;border-radius:2px;transition:height var(--ControlNormalAnimationDuration)}:host .item>.item-content{padding:8px 12px}:host .item.selected>.item-selector{height:18px}:host:not(.disabled) .item:not(:hover):not(:active):not(.selected){background-color:transparent;color:var(--TextFillColorPrimary)}:host:not(.disabled) .item:hover:not(.active):not(.selected){background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:active:not(.selected){background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:not(:hover):not(:active).selected{background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:hover:not(:active).selected{background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:active.selected{background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item.selected>.item-selector{background-color:var(--AccentFillColorDefault)}:host.disabled .item>.item-content{color:var(--TextFillColorDisabled)}:host.disabled .item:not(.selected){background-color:transparent}:host.disabled .item.selected{background-color:var(--SubtleFillColorSecondary)}:host.disabled .item.selected>.item-selector{background-color:var(--AccentFillColorDisabled)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ScrollViewerComponent, selector: "ScrollViewer", inputs: ["HorizontalScrollMode", "VerticalScrollMode"] }, { kind: "component", type: StackPanelComponent, selector: "StackPanel", inputs: ["Orientation", "Spacing"] }] }); }
|
|
674
|
+
}
|
|
675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ListViewComponent, decorators: [{
|
|
676
|
+
type: Component,
|
|
677
|
+
args: [{ selector: 'ListView', imports: [CommonModule, ScrollViewerComponent, StackPanelComponent], template: `<ScrollViewer>
|
|
678
|
+
<StackPanel Padding="2px 0">
|
|
679
|
+
<div *ngFor="let item of ItemSource; index as index; trackBy: getValue" class="item" [ngClass]="{'selected': index == SelectedIndex}" (click)="onItemClick($event, index, item)" [id]="'xaml-selector-'+_id+'-item-'+index">
|
|
680
|
+
<div class="item-selector"></div>
|
|
681
|
+
<div class="item-content" [ngStyle]="{'align-content': alignContent, 'justify-content': justifyContent}">${SelectorItemTemplate}</div>
|
|
682
|
+
</div>
|
|
683
|
+
</StackPanel>
|
|
684
|
+
</ScrollViewer>`, styles: [":host{position:relative}:host{display:grid}:host .item{display:grid;margin:2px 4px;border-radius:4px}:host .item>.item-selector,:host .item>.item-content{display:grid;grid-row-start:1;grid-column-start:1;justify-self:stretch}:host .item>.item-selector{justify-self:left;align-self:center;width:4px;height:12px;border-radius:2px;transition:height var(--ControlNormalAnimationDuration)}:host .item>.item-content{padding:8px 12px}:host .item.selected>.item-selector{height:18px}:host:not(.disabled) .item:not(:hover):not(:active):not(.selected){background-color:transparent;color:var(--TextFillColorPrimary)}:host:not(.disabled) .item:hover:not(.active):not(.selected){background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:active:not(.selected){background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:not(:hover):not(:active).selected{background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:hover:not(:active).selected{background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:active.selected{background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item.selected>.item-selector{background-color:var(--AccentFillColorDefault)}:host.disabled .item>.item-content{color:var(--TextFillColorDisabled)}:host.disabled .item:not(.selected){background-color:transparent}:host.disabled .item.selected{background-color:var(--SubtleFillColorSecondary)}:host.disabled .item.selected>.item-selector{background-color:var(--AccentFillColorDisabled)}\n"] }]
|
|
685
|
+
}] });
|
|
686
|
+
|
|
687
|
+
class PopupComponent {
|
|
688
|
+
constructor() {
|
|
689
|
+
this.isRendered = false;
|
|
690
|
+
this._isOpen = false;
|
|
691
|
+
this.IsOpenChange = new EventEmitter();
|
|
692
|
+
this.VerticalOffset = 0;
|
|
693
|
+
this.HorizontalOffset = 0;
|
|
694
|
+
}
|
|
695
|
+
get IsOpen() {
|
|
696
|
+
return this._isOpen;
|
|
697
|
+
}
|
|
698
|
+
;
|
|
699
|
+
set IsOpen(value) {
|
|
700
|
+
this._isOpen = value;
|
|
701
|
+
if (this._isRenderedTimeout !== undefined) {
|
|
702
|
+
clearTimeout(this._isRenderedTimeout);
|
|
703
|
+
}
|
|
704
|
+
if (value) {
|
|
705
|
+
this.isRendered = true;
|
|
706
|
+
}
|
|
707
|
+
else {
|
|
708
|
+
this._isRenderedTimeout = setTimeout(() => {
|
|
709
|
+
this.isRendered = false;
|
|
710
|
+
}, 250);
|
|
711
|
+
}
|
|
712
|
+
if (value && this._container) {
|
|
713
|
+
this._container.nativeElement.style.transform = `translate(${this.HorizontalOffset}px, ${this.VerticalOffset - 4}px)`;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
;
|
|
717
|
+
Show() {
|
|
718
|
+
this.IsOpen = true;
|
|
719
|
+
}
|
|
720
|
+
Hide() {
|
|
721
|
+
this.IsOpen = false;
|
|
722
|
+
}
|
|
723
|
+
get containerClass() {
|
|
724
|
+
return this.IsOpen ? 'popup-open' : undefined;
|
|
725
|
+
}
|
|
726
|
+
onBackdropClick(event) {
|
|
727
|
+
this.Hide();
|
|
728
|
+
event.stopPropagation();
|
|
729
|
+
}
|
|
730
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
731
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: PopupComponent, isStandalone: true, selector: "Popup", inputs: { IsOpen: "IsOpen", VerticalOffset: "VerticalOffset", HorizontalOffset: "HorizontalOffset" }, outputs: { IsOpenChange: "IsOpenChange" }, host: { classAttribute: "popup" }, viewQueries: [{ propertyName: "_container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: `<div class="popup-backdrop" (click)="onBackdropClick($event)" (contextmenu)="onBackdropClick($event)" *ngIf="IsOpen"></div>
|
|
732
|
+
<div #container class="popup-container" [ngClass]="containerClass">
|
|
733
|
+
<div class="popup-content" *ngIf="isRendered"><ng-content/></div>
|
|
734
|
+
</div>`, isInline: true, styles: [":host{position:relative}:host{z-index:900}.popup-container{background-color:transparent;display:grid;padding:0;margin:0;border:0;position:absolute;pointer-events:none;z-index:1000}.popup-container>.popup-content{display:grid;padding:16px;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);opacity:0;transition:opacity var(--ControlNormalAnimationDuration);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #0000001a;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault)}.popup-container.popup-open>.popup-content{opacity:1;pointer-events:all}.popup-backdrop{position:fixed;inset:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
735
|
+
}
|
|
736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PopupComponent, decorators: [{
|
|
737
|
+
type: Component,
|
|
738
|
+
args: [{ selector: 'Popup', imports: [CommonModule], template: `<div class="popup-backdrop" (click)="onBackdropClick($event)" (contextmenu)="onBackdropClick($event)" *ngIf="IsOpen"></div>
|
|
739
|
+
<div #container class="popup-container" [ngClass]="containerClass">
|
|
740
|
+
<div class="popup-content" *ngIf="isRendered"><ng-content/></div>
|
|
741
|
+
</div>`, host: {
|
|
742
|
+
class: 'popup'
|
|
743
|
+
}, styles: [":host{position:relative}:host{z-index:900}.popup-container{background-color:transparent;display:grid;padding:0;margin:0;border:0;position:absolute;pointer-events:none;z-index:1000}.popup-container>.popup-content{display:grid;padding:16px;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);opacity:0;transition:opacity var(--ControlNormalAnimationDuration);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #0000001a;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault)}.popup-container.popup-open>.popup-content{opacity:1;pointer-events:all}.popup-backdrop{position:fixed;inset:0}\n"] }]
|
|
744
|
+
}], propDecorators: { IsOpen: [{
|
|
745
|
+
type: Input
|
|
746
|
+
}], IsOpenChange: [{
|
|
570
747
|
type: Output
|
|
571
|
-
}],
|
|
748
|
+
}], VerticalOffset: [{
|
|
572
749
|
type: Input
|
|
573
|
-
}],
|
|
750
|
+
}], HorizontalOffset: [{
|
|
574
751
|
type: Input
|
|
752
|
+
}], _container: [{
|
|
753
|
+
type: ViewChild,
|
|
754
|
+
args: ['container']
|
|
575
755
|
}] } });
|
|
576
756
|
|
|
577
|
-
class
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
757
|
+
class DropDownButtonComponent extends ButtonComponent {
|
|
758
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: DropDownButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
759
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: DropDownButtonComponent, isStandalone: true, selector: "DropDownButton", usesInheritance: true, ngImport: i0, template: `<div class="drop-down-glyph"></div><ng-content/>`, isInline: true, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n", ".drop-down-glyph{display:grid;font-family:var(--SymbolFontFamily);font-size:8pt;position:absolute;right:12px;top:0;bottom:0;align-content:center;transition:transform var(--ControlNormalAnimationDuration)}:host:active:not(.popup-open):not(.disabled) .drop-down-glyph{transform:translateY(3px)}\n"] }); }
|
|
760
|
+
}
|
|
761
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: DropDownButtonComponent, decorators: [{
|
|
762
|
+
type: Component,
|
|
763
|
+
args: [{ selector: 'DropDownButton', template: `<div class="drop-down-glyph"></div><ng-content/>`, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n", ".drop-down-glyph{display:grid;font-family:var(--SymbolFontFamily);font-size:8pt;position:absolute;right:12px;top:0;bottom:0;align-content:center;transition:transform var(--ControlNormalAnimationDuration)}:host:active:not(.popup-open):not(.disabled) .drop-down-glyph{transform:translateY(3px)}\n"] }]
|
|
764
|
+
}] });
|
|
765
|
+
|
|
766
|
+
class ComboBoxComponent extends SelectorComponent {
|
|
767
|
+
get item() {
|
|
768
|
+
return this.SelectedItem;
|
|
582
769
|
}
|
|
583
|
-
get
|
|
584
|
-
return this.
|
|
770
|
+
get index() {
|
|
771
|
+
return this.SelectedIndex;
|
|
772
|
+
}
|
|
773
|
+
constructor(_changeDetector) {
|
|
774
|
+
super();
|
|
775
|
+
this._changeDetector = _changeDetector;
|
|
776
|
+
this._popupOffset = -4;
|
|
777
|
+
this.SelectedIndexChange.subscribe(() => this.onSelectionChanged());
|
|
778
|
+
}
|
|
779
|
+
ngAfterViewInit() {
|
|
780
|
+
//help the layout finish itself
|
|
781
|
+
this._changeDetector.detectChanges();
|
|
782
|
+
}
|
|
783
|
+
get popupOffset() {
|
|
784
|
+
//Cache the value so the change detector will not complain
|
|
785
|
+
let popupOffset = -(this._selector?.GetElement(this.SelectedIndex)?.offsetTop ?? 0);
|
|
786
|
+
if (popupOffset !== 0)
|
|
787
|
+
this._popupOffset = popupOffset;
|
|
788
|
+
return this._popupOffset;
|
|
585
789
|
}
|
|
586
|
-
|
|
587
|
-
|
|
790
|
+
onSelectionChanged() {
|
|
791
|
+
if (this._popup)
|
|
792
|
+
this._popup.IsOpen = false;
|
|
793
|
+
}
|
|
794
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ComboBoxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
795
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ComboBoxComponent, isStandalone: true, selector: "ComboBox", viewQueries: [{ propertyName: "_selector", first: true, predicate: ListViewComponent, descendants: true }, { propertyName: "_popup", first: true, predicate: PopupComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<DropDownButton [HorizontalContentAlignment]=\"HorizontalContentAlignment\" [VerticalContentAlignment]=\"VerticalContentAlignment\" [IsEnabled]=\"IsEnabled\">\n <ng-container *ngIf=\"ItemTemplate\">\n <ng-container *ngTemplateOutlet=\"ItemTemplate; context: { $implicit: item }\"/>\n </ng-container>\n <ng-container *ngIf=\"!ItemTemplate\">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container>\n <Popup #ButtonFlyout [VerticalOffset]=\"popupOffset\">\n <ListView [ItemSource]=\"ItemSource\" [(SelectedIndex)]=\"SelectedIndex\" [HorizontalContentAlignment]=\"HorizontalContentAlignment\" [VerticalContentAlignment]=\"VerticalContentAlignment\"/>\n </Popup>\n </DropDownButton>", isInline: true, styles: [":host ::ng-deep .popup>.popup-container{left:0;right:0;top:0}:host ::ng-deep .popup>.popup-container>.popup-content{padding:0!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DropDownButtonComponent, selector: "DropDownButton" }, { kind: "component", type: PopupComponent, selector: "Popup", inputs: ["IsOpen", "VerticalOffset", "HorizontalOffset"], outputs: ["IsOpenChange"] }, { kind: "component", type: ListViewComponent, selector: "ListView" }] }); }
|
|
588
796
|
}
|
|
589
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ComboBoxComponent, decorators: [{
|
|
590
798
|
type: Component,
|
|
591
|
-
args: [{ selector: '
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
799
|
+
args: [{ selector: 'ComboBox', imports: [CommonModule, DropDownButtonComponent, PopupComponent, ListViewComponent], template: `<DropDownButton [HorizontalContentAlignment]="HorizontalContentAlignment" [VerticalContentAlignment]="VerticalContentAlignment" [IsEnabled]="IsEnabled">
|
|
800
|
+
${SelectorItemTemplate}
|
|
801
|
+
<Popup #ButtonFlyout [VerticalOffset]="popupOffset">
|
|
802
|
+
<ListView [ItemSource]="ItemSource" [(SelectedIndex)]="SelectedIndex" [HorizontalContentAlignment]="HorizontalContentAlignment" [VerticalContentAlignment]="VerticalContentAlignment"/>
|
|
803
|
+
</Popup>
|
|
804
|
+
</DropDownButton>`, styles: [":host ::ng-deep .popup>.popup-container{left:0;right:0;top:0}:host ::ng-deep .popup>.popup-container>.popup-content{padding:0!important}\n"] }]
|
|
805
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { _selector: [{
|
|
806
|
+
type: ViewChild,
|
|
807
|
+
args: [ListViewComponent]
|
|
808
|
+
}], _popup: [{
|
|
809
|
+
type: ViewChild,
|
|
810
|
+
args: [PopupComponent]
|
|
602
811
|
}] } });
|
|
603
812
|
|
|
604
|
-
class
|
|
605
|
-
|
|
606
|
-
|
|
813
|
+
class RadioButtonComponent extends BorderComponent {
|
|
814
|
+
onChange(event) {
|
|
815
|
+
this.IsChecked = (event.target).checked;
|
|
816
|
+
this.IsCheckedChange.emit(this.IsChecked);
|
|
817
|
+
}
|
|
818
|
+
constructor(_group) {
|
|
819
|
+
super();
|
|
820
|
+
this._group = _group;
|
|
607
821
|
this.IsEnabled = true;
|
|
608
822
|
this.IsChecked = false;
|
|
609
823
|
this.IsCheckedChange = new EventEmitter();
|
|
610
824
|
this.Group = "";
|
|
825
|
+
if (this._group)
|
|
826
|
+
this._group.registerOption(this);
|
|
611
827
|
}
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
}
|
|
616
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioButton, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
617
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: RadioButton, isStandalone: true, selector: "RadioButton", inputs: { IsEnabled: "IsEnabled", IsChecked: "IsChecked", Group: "Group", Value: "Value" }, outputs: { IsCheckedChange: "IsCheckedChange" }, usesInheritance: true, ngImport: i0, template: `<label class="container">
|
|
618
|
-
<input type="radio" [name]="Group" [value]="Value" [checked]="IsChecked" (change)="onIsCheckedChange($event)" [disabled]="!IsEnabled">
|
|
828
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioButtonComponent, deps: [{ token: RadioButtonGroup, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
829
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: RadioButtonComponent, isStandalone: true, selector: "RadioButton", inputs: { IsEnabled: "IsEnabled", IsChecked: "IsChecked", Group: "Group", Value: "Value" }, outputs: { IsCheckedChange: "IsCheckedChange" }, usesInheritance: true, ngImport: i0, template: `<label class="container">
|
|
830
|
+
<input type="radio" [name]="Group" [value]="Value" [checked]="IsChecked" (change)="onChange($event)" [disabled]="!IsEnabled">
|
|
619
831
|
<div class="radioButton">
|
|
620
832
|
<div class="circle"></div>
|
|
621
833
|
</div>
|
|
622
834
|
<div class="content">
|
|
623
835
|
<ng-content/>
|
|
624
836
|
</div>
|
|
625
|
-
</label>`, isInline: true, styles: [".container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input[type=radio]:checked+.radioButton>.circle{display:grid}input[type=radio]:not(:checked):not(:hover):not(:active):not(:disabled)+.radioButton{background-color
|
|
837
|
+
</label>`, isInline: true, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input[type=radio]:checked+.radioButton>.circle{display:grid}input[type=radio]:not(:checked):not(:hover):not(:active):not(:disabled)+.radioButton{background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input[type=radio]:not(:checked):hover:not(:active):not(:disabled)+.radioButton{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input[type=radio]:not(:checked):active:not(:disabled)+.radioButton{background-color:var(--SubtleFillColorTransparent);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=radio]:not(:checked):active:not(:disabled)+.radioButton>.circle{transform:scale(1)}input[type=radio]:checked:not(:hover):not(:active):not(:disabled)+.radioButton{background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input[type=radio]:checked:not(:hover):not(:active):not(:disabled)+.radioButton>.circle{transform:scale(1)}input[type=radio]:checked:hover:not(:active):not(:disabled)+.radioButton{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input[type=radio]:checked:hover:not(:active):not(:disabled)+.radioButton>.circle{transform:scale(1.2)}input[type=radio]:checked:active:not(:disabled)+.radioButton{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input[type=radio]:checked:active:not(:disabled)+.radioButton>.circle{transform:scale(1)}input[type=radio]:not(:checked):disabled+.radioButton{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=radio]:checked:disabled+.radioButton{background-color:var(--AccentFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}.radioButton{display:grid;width:20px;height:20px;border-radius:11px;border-style:solid;border-width:var(--ControlBorderThickness);transition:border-color var(--ControlFastAnimationDuration);transition:background-color var(--ControlFastAnimationDuration)}.circle{width:11px;height:11px;border-radius:6.5px;align-self:center;justify-self:center;background-color:var(--TextOnAccentFillColorPrimary);transition:transform var(--ControlNormalAnimationDuration);transform:scale(0)}.content{align-self:center}\n"] }); }
|
|
626
838
|
}
|
|
627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
628
840
|
type: Component,
|
|
629
841
|
args: [{ selector: 'RadioButton', template: `<label class="container">
|
|
630
|
-
<input type="radio" [name]="Group" [value]="Value" [checked]="IsChecked" (change)="
|
|
842
|
+
<input type="radio" [name]="Group" [value]="Value" [checked]="IsChecked" (change)="onChange($event)" [disabled]="!IsEnabled">
|
|
631
843
|
<div class="radioButton">
|
|
632
844
|
<div class="circle"></div>
|
|
633
845
|
</div>
|
|
634
846
|
<div class="content">
|
|
635
847
|
<ng-content/>
|
|
636
848
|
</div>
|
|
637
|
-
</label>`, styles: [".container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input[type=radio]:checked+.radioButton>.circle{display:grid}input[type=radio]:not(:checked):not(:hover):not(:active):not(:disabled)+.radioButton{background-color
|
|
638
|
-
}],
|
|
849
|
+
</label>`, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input[type=radio]:checked+.radioButton>.circle{display:grid}input[type=radio]:not(:checked):not(:hover):not(:active):not(:disabled)+.radioButton{background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input[type=radio]:not(:checked):hover:not(:active):not(:disabled)+.radioButton{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input[type=radio]:not(:checked):active:not(:disabled)+.radioButton{background-color:var(--SubtleFillColorTransparent);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=radio]:not(:checked):active:not(:disabled)+.radioButton>.circle{transform:scale(1)}input[type=radio]:checked:not(:hover):not(:active):not(:disabled)+.radioButton{background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input[type=radio]:checked:not(:hover):not(:active):not(:disabled)+.radioButton>.circle{transform:scale(1)}input[type=radio]:checked:hover:not(:active):not(:disabled)+.radioButton{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input[type=radio]:checked:hover:not(:active):not(:disabled)+.radioButton>.circle{transform:scale(1.2)}input[type=radio]:checked:active:not(:disabled)+.radioButton{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input[type=radio]:checked:active:not(:disabled)+.radioButton>.circle{transform:scale(1)}input[type=radio]:not(:checked):disabled+.radioButton{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=radio]:checked:disabled+.radioButton{background-color:var(--AccentFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}.radioButton{display:grid;width:20px;height:20px;border-radius:11px;border-style:solid;border-width:var(--ControlBorderThickness);transition:border-color var(--ControlFastAnimationDuration);transition:background-color var(--ControlFastAnimationDuration)}.circle{width:11px;height:11px;border-radius:6.5px;align-self:center;justify-self:center;background-color:var(--TextOnAccentFillColorPrimary);transition:transform var(--ControlNormalAnimationDuration);transform:scale(0)}.content{align-self:center}\n"] }]
|
|
850
|
+
}], ctorParameters: () => [{ type: RadioButtonGroup, decorators: [{
|
|
851
|
+
type: Optional
|
|
852
|
+
}] }], propDecorators: { IsEnabled: [{
|
|
639
853
|
type: Input
|
|
640
854
|
}], IsChecked: [{
|
|
641
855
|
type: Input
|
|
@@ -646,16 +860,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
646
860
|
}], Value: [{
|
|
647
861
|
type: Input
|
|
648
862
|
}] } });
|
|
649
|
-
class RadioButtonGroup extends
|
|
863
|
+
class RadioButtonGroup extends StackPanelComponent {
|
|
650
864
|
constructor() {
|
|
651
865
|
super(...arguments);
|
|
652
866
|
this.ValueChange = new EventEmitter();
|
|
653
|
-
this.
|
|
867
|
+
this._children = [];
|
|
654
868
|
}
|
|
655
869
|
set Value(value) {
|
|
656
870
|
if (this._children) {
|
|
657
871
|
for (let item of this._children) {
|
|
658
|
-
if (item.Value
|
|
872
|
+
if (item.Value === value) {
|
|
659
873
|
item.IsChecked = true;
|
|
660
874
|
break;
|
|
661
875
|
}
|
|
@@ -668,37 +882,31 @@ class RadioButtonGroup extends StackPanel {
|
|
|
668
882
|
get Value() {
|
|
669
883
|
return this._value;
|
|
670
884
|
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
this.ValueChange.emit(item.Value);
|
|
683
|
-
});
|
|
684
|
-
}
|
|
885
|
+
registerOption(child) {
|
|
886
|
+
child.Group = 'xaml-radio-button-group-' + this._id;
|
|
887
|
+
if (child.Value === undefined)
|
|
888
|
+
child.Value = this._children.length;
|
|
889
|
+
if (child.Value === this.Value)
|
|
890
|
+
child.IsChecked = true;
|
|
891
|
+
child.IsCheckedChange.subscribe(p => {
|
|
892
|
+
this.Value = child.Value;
|
|
893
|
+
this.ValueChange.emit(child.Value);
|
|
894
|
+
});
|
|
895
|
+
this._children.push(child);
|
|
685
896
|
}
|
|
686
897
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioButtonGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
687
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: RadioButtonGroup, isStandalone: true, selector: "RadioButtonGroup", inputs: { Value: "Value" }, outputs: { ValueChange: "ValueChange" },
|
|
898
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: RadioButtonGroup, isStandalone: true, selector: "RadioButtonGroup", inputs: { Value: "Value" }, outputs: { ValueChange: "ValueChange" }, usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:contents}\n"] }); }
|
|
688
899
|
}
|
|
689
900
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioButtonGroup, decorators: [{
|
|
690
901
|
type: Component,
|
|
691
|
-
args: [{ selector: 'RadioButtonGroup', template: `<ng-
|
|
902
|
+
args: [{ selector: 'RadioButtonGroup', template: `<ng-content/>`, styles: [":host{display:contents}\n"] }]
|
|
692
903
|
}], propDecorators: { Value: [{
|
|
693
904
|
type: Input
|
|
694
905
|
}], ValueChange: [{
|
|
695
906
|
type: Output
|
|
696
|
-
}], _children: [{
|
|
697
|
-
type: ContentChildren,
|
|
698
|
-
args: [RadioButton]
|
|
699
907
|
}] } });
|
|
700
908
|
|
|
701
|
-
class
|
|
909
|
+
class SliderComponent extends FrameworkElementComponent {
|
|
702
910
|
constructor() {
|
|
703
911
|
super(...arguments);
|
|
704
912
|
this.Minimum = 0.0;
|
|
@@ -709,178 +917,626 @@ class Slider extends FrameworkElement {
|
|
|
709
917
|
this.IsEnabled = true;
|
|
710
918
|
this.Orientation = 'Horizontal';
|
|
711
919
|
}
|
|
712
|
-
|
|
713
|
-
this.Value = parseFloat(event.target.value);
|
|
714
|
-
this.ValueChange.emit(this.Value);
|
|
920
|
+
onChange(event) {
|
|
921
|
+
this.Value = parseFloat(event.target.value);
|
|
922
|
+
this.ValueChange.emit(this.Value);
|
|
923
|
+
}
|
|
924
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SliderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
925
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SliderComponent, isStandalone: true, selector: "Slider", inputs: { Minimum: "Minimum", Maximum: "Maximum", StepFrequency: "StepFrequency", Value: "Value", IsEnabled: "IsEnabled", Orientation: "Orientation" }, outputs: { ValueChange: "ValueChange" }, usesInheritance: true, ngImport: i0, template: `<input type="range"
|
|
926
|
+
[min]="Minimum"
|
|
927
|
+
[max]="Maximum"
|
|
928
|
+
[value]="Value"
|
|
929
|
+
[step]="StepFrequency"
|
|
930
|
+
(change)="onChange($event)"
|
|
931
|
+
[disabled]="!IsEnabled"
|
|
932
|
+
[className]="Orientation.toLowerCase()">`, isInline: true, styles: [":host{position:relative}:host{display:grid}input{display:grid;-webkit-appearance:none;appearance:none;background-color:var(--ControlStrongFillColorDefault);border-radius:2px;outline:none}input.horizontal{height:4px;margin:7px 0}input.vertical{width:4px;margin:0 7px;writing-mode:vertical-lr;direction:rtl;vertical-align:middle}input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;border-radius:50%;width:16px;height:16px;border-style:solid;border-width:4px;outline:1px solid var(--ControlStrokeColorOnAccentDefaultDark);border-color:var(--ControlSolidFillColorDefault);background-color:var(--AccentFillColorDefault);transition:border-width var(--ControlFastAnimationDuration)}input::-moz-range-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;border-radius:50%;width:16px;height:16px;border-style:solid;border-width:4px;outline:1px solid var(--ControlStrokeColorOnAccentDefaultDark);border-color:var(--ControlSolidFillColorDefault);background-color:var(--AccentFillColorDefault);transition:border-width var(--ControlFastAnimationDuration)}input:not(:disabled)::-webkit-slider-thumb:hover{border-width:3px;background-color:var(--AccentFillColorSecondary)}input:not(:disabled)::-webkit-slider-thumb:active{border-width:5px;background-color:var(--AccentFillColorTertiary)}input:not(:disabled)::-moz-range-thumb:hover{border-width:3px;background-color:var(--AccentFillColorSecondary)}input:not(:disabled)::-moz-range-thumb:active{border-width:5px;background-color:var(--AccentFillColorTertiary)}input:disabled{background-color:var(--ControlStrongFillColorDisabled)}input:disabled::-webkit-slider-thumb{border-width:2px;background-color:var(--AccentFillColorDisabled)}input:disabled::-moz-range-thumb{border-width:2px;background-color:var(--AccentFillColorDisabled)}\n"] }); }
|
|
933
|
+
}
|
|
934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SliderComponent, decorators: [{
|
|
935
|
+
type: Component,
|
|
936
|
+
args: [{ selector: 'Slider', template: `<input type="range"
|
|
937
|
+
[min]="Minimum"
|
|
938
|
+
[max]="Maximum"
|
|
939
|
+
[value]="Value"
|
|
940
|
+
[step]="StepFrequency"
|
|
941
|
+
(change)="onChange($event)"
|
|
942
|
+
[disabled]="!IsEnabled"
|
|
943
|
+
[className]="Orientation.toLowerCase()">`, styles: [":host{position:relative}:host{display:grid}input{display:grid;-webkit-appearance:none;appearance:none;background-color:var(--ControlStrongFillColorDefault);border-radius:2px;outline:none}input.horizontal{height:4px;margin:7px 0}input.vertical{width:4px;margin:0 7px;writing-mode:vertical-lr;direction:rtl;vertical-align:middle}input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;border-radius:50%;width:16px;height:16px;border-style:solid;border-width:4px;outline:1px solid var(--ControlStrokeColorOnAccentDefaultDark);border-color:var(--ControlSolidFillColorDefault);background-color:var(--AccentFillColorDefault);transition:border-width var(--ControlFastAnimationDuration)}input::-moz-range-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;border-radius:50%;width:16px;height:16px;border-style:solid;border-width:4px;outline:1px solid var(--ControlStrokeColorOnAccentDefaultDark);border-color:var(--ControlSolidFillColorDefault);background-color:var(--AccentFillColorDefault);transition:border-width var(--ControlFastAnimationDuration)}input:not(:disabled)::-webkit-slider-thumb:hover{border-width:3px;background-color:var(--AccentFillColorSecondary)}input:not(:disabled)::-webkit-slider-thumb:active{border-width:5px;background-color:var(--AccentFillColorTertiary)}input:not(:disabled)::-moz-range-thumb:hover{border-width:3px;background-color:var(--AccentFillColorSecondary)}input:not(:disabled)::-moz-range-thumb:active{border-width:5px;background-color:var(--AccentFillColorTertiary)}input:disabled{background-color:var(--ControlStrongFillColorDisabled)}input:disabled::-webkit-slider-thumb{border-width:2px;background-color:var(--AccentFillColorDisabled)}input:disabled::-moz-range-thumb{border-width:2px;background-color:var(--AccentFillColorDisabled)}\n"] }]
|
|
944
|
+
}], propDecorators: { Minimum: [{
|
|
945
|
+
type: Input
|
|
946
|
+
}], Maximum: [{
|
|
947
|
+
type: Input
|
|
948
|
+
}], StepFrequency: [{
|
|
949
|
+
type: Input
|
|
950
|
+
}], Value: [{
|
|
951
|
+
type: Input
|
|
952
|
+
}], ValueChange: [{
|
|
953
|
+
type: Output
|
|
954
|
+
}], IsEnabled: [{
|
|
955
|
+
type: Input
|
|
956
|
+
}], Orientation: [{
|
|
957
|
+
type: Input
|
|
958
|
+
}] } });
|
|
959
|
+
|
|
960
|
+
class ToggleButtonComponent extends ButtonComponent {
|
|
961
|
+
constructor() {
|
|
962
|
+
super(...arguments);
|
|
963
|
+
this.IsChecked = false;
|
|
964
|
+
this.IsCheckedChange = new EventEmitter();
|
|
965
|
+
}
|
|
966
|
+
onPointerUp(event) {
|
|
967
|
+
if (!this.IsEnabled)
|
|
968
|
+
return;
|
|
969
|
+
this.IsChecked = !this.IsChecked;
|
|
970
|
+
this.IsCheckedChange.emit(this.IsChecked);
|
|
971
|
+
}
|
|
972
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
973
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleButtonComponent, isStandalone: true, selector: "ToggleButton", inputs: { IsChecked: "IsChecked" }, outputs: { IsCheckedChange: "IsCheckedChange" }, host: { listeners: { "pointerup": "onPointerUp($event)" }, properties: { "class.checked": "this.IsChecked" } }, usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n"] }); }
|
|
974
|
+
}
|
|
975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleButtonComponent, decorators: [{
|
|
976
|
+
type: Component,
|
|
977
|
+
args: [{ selector: 'ToggleButton', template: `<ng-content/>`, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.popup-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.popup-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n"] }]
|
|
978
|
+
}], propDecorators: { IsChecked: [{
|
|
979
|
+
type: Input
|
|
980
|
+
}, {
|
|
981
|
+
type: HostBinding,
|
|
982
|
+
args: ['class.checked']
|
|
983
|
+
}], IsCheckedChange: [{
|
|
984
|
+
type: Output
|
|
985
|
+
}], onPointerUp: [{
|
|
986
|
+
type: HostListener,
|
|
987
|
+
args: ['pointerup', ['$event']]
|
|
988
|
+
}] } });
|
|
989
|
+
|
|
990
|
+
class ToggleSwitchComponent extends CheckBoxComponent {
|
|
991
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleSwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
992
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleSwitchComponent, isStandalone: true, selector: "ToggleSwitch", usesInheritance: true, ngImport: i0, template: `<label class="container">
|
|
993
|
+
<input type="checkbox" [checked]="IsChecked" (change)="onChange($event)" [disabled]="!IsEnabled">
|
|
994
|
+
<div class="slider">
|
|
995
|
+
<div class="thumb"></div>
|
|
996
|
+
</div>
|
|
997
|
+
<div class="content"><ng-content/></div>
|
|
998
|
+
</label>`, isInline: true, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):not(:active):not(:disabled)+.slider:hover{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):active:not(:disabled)+.slider{background-color:var(--ControlAltFillColorQuarternary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):active:not(:disabled)+.slider>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):disabled+.slider{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input:not(:checked):disabled+.slider>.thumb{background-color:var(--TextFillColorDisabled)}input:checked:not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input:checked:not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:not(:active):not(:disabled)+.slider:hover{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input:checked:not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:active:not(:disabled)+.slider{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input:checked:active:not(:disabled)+.slider>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:disabled+.slider{background-color:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled)}input:checked:disabled+.slider>.thumb{background-color:var(--TextOnAccentFillColorDisabled)}input:checked+.slider>.thumb{transform:translate(22px)}input:not(:disabled):active+.slider>.thumb{width:17px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):hover+.slider>.thumb{width:14px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):checked:hover+.slider>.thumb{transform:translate(21px)}input:not(:disabled):checked:active+.slider>.thumb{transform:translate(18px);width:17px;height:14px}.slider{display:grid;width:40px;height:18px;border-radius:10px;border-style:solid;border-width:1.5px;transition:background-color var(--ControlNormalAnimationDuration);background-color:var(--ControlAltFillColorSecondary)}.thumb{display:grid;width:12px;height:12px;border-radius:7px;align-self:center;margin:0 3px;transition:transform var(--ControlNormalAnimationDuration);transition:width var(--ControlFastAnimationDuration);transition:margin-left var(--ControlFastAnimationDuration)}\n"] }); }
|
|
999
|
+
}
|
|
1000
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleSwitchComponent, decorators: [{
|
|
1001
|
+
type: Component,
|
|
1002
|
+
args: [{ selector: 'ToggleSwitch', template: `<label class="container">
|
|
1003
|
+
<input type="checkbox" [checked]="IsChecked" (change)="onChange($event)" [disabled]="!IsEnabled">
|
|
1004
|
+
<div class="slider">
|
|
1005
|
+
<div class="thumb"></div>
|
|
1006
|
+
</div>
|
|
1007
|
+
<div class="content"><ng-content/></div>
|
|
1008
|
+
</label>`, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):not(:active):not(:disabled)+.slider:hover{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):active:not(:disabled)+.slider{background-color:var(--ControlAltFillColorQuarternary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):active:not(:disabled)+.slider>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):disabled+.slider{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input:not(:checked):disabled+.slider>.thumb{background-color:var(--TextFillColorDisabled)}input:checked:not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input:checked:not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:not(:active):not(:disabled)+.slider:hover{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input:checked:not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:active:not(:disabled)+.slider{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input:checked:active:not(:disabled)+.slider>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:disabled+.slider{background-color:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled)}input:checked:disabled+.slider>.thumb{background-color:var(--TextOnAccentFillColorDisabled)}input:checked+.slider>.thumb{transform:translate(22px)}input:not(:disabled):active+.slider>.thumb{width:17px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):hover+.slider>.thumb{width:14px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):checked:hover+.slider>.thumb{transform:translate(21px)}input:not(:disabled):checked:active+.slider>.thumb{transform:translate(18px);width:17px;height:14px}.slider{display:grid;width:40px;height:18px;border-radius:10px;border-style:solid;border-width:1.5px;transition:background-color var(--ControlNormalAnimationDuration);background-color:var(--ControlAltFillColorSecondary)}.thumb{display:grid;width:12px;height:12px;border-radius:7px;align-self:center;margin:0 3px;transition:transform var(--ControlNormalAnimationDuration);transition:width var(--ControlFastAnimationDuration);transition:margin-left var(--ControlFastAnimationDuration)}\n"] }]
|
|
1009
|
+
}] });
|
|
1010
|
+
|
|
1011
|
+
class ListBoxComponent extends SelectorComponent {
|
|
1012
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ListBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1013
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ListBoxComponent, isStandalone: true, selector: "ListBox", usesInheritance: true, ngImport: i0, template: "<div *ngFor=\"let item of ItemSource; index as index; trackBy: getValue\" class=\"item\" [ngClass]=\"{'selected': index == SelectedIndex}\" (click)=\"onItemClick($event, index, item)\" [id]=\"'xaml-selector-'+_id+'-item-'+index\" [ngStyle]=\"{'align-content': alignContent, 'justify-content': justifyContent}\">\n <ng-container *ngIf=\"ItemTemplate\">\n <ng-container *ngTemplateOutlet=\"ItemTemplate; context: { $implicit: item }\"/>\n </ng-container>\n <ng-container *ngIf=\"!ItemTemplate\">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container>\n </div>", isInline: true, styles: [":host{position:relative}:host{display:flex;flex-direction:column;background-color:var(--SystemChromeMediumLowColor)}:host .item{display:grid;padding:12px;margin:0}:host:not(.disabled) .item:not(:hover):not(:active):not(.selected){color:var(--TextFillColorPrimary)}:host:not(.disabled) .item:hover:not(.active):not(.selected){background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:active:not(.selected){background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:not(:hover):not(:active).selected{background-color:var(--SystemControlHighlightListAccentLow)}:host:not(.disabled) .item:hover:not(:active).selected{background-color:var(--SystemControlHighlightListAccentMedium)}:host:not(.disabled) .item:active.selected{background-color:var(--SystemControlHighlightListAccentHigh)}:host.disabled .item:not(.selected){color:var(--TextFillColorDisabled)}:host.disabled .item.selected{background-color:var(--SubtleFillColorSecondary);color:var(--AccentFillColorDisabled)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1014
|
+
}
|
|
1015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ListBoxComponent, decorators: [{
|
|
1016
|
+
type: Component,
|
|
1017
|
+
args: [{ selector: 'ListBox', imports: [CommonModule], template: `<div *ngFor="let item of ItemSource; index as index; trackBy: getValue" class="item" [ngClass]="{'selected': index == SelectedIndex}" (click)="onItemClick($event, index, item)" [id]="'xaml-selector-'+_id+'-item-'+index" [ngStyle]="{'align-content': alignContent, 'justify-content': justifyContent}">
|
|
1018
|
+
${SelectorItemTemplate}
|
|
1019
|
+
</div>`, styles: [":host{position:relative}:host{display:flex;flex-direction:column;background-color:var(--SystemChromeMediumLowColor)}:host .item{display:grid;padding:12px;margin:0}:host:not(.disabled) .item:not(:hover):not(:active):not(.selected){color:var(--TextFillColorPrimary)}:host:not(.disabled) .item:hover:not(.active):not(.selected){background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:active:not(.selected){background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:not(:hover):not(:active).selected{background-color:var(--SystemControlHighlightListAccentLow)}:host:not(.disabled) .item:hover:not(:active).selected{background-color:var(--SystemControlHighlightListAccentMedium)}:host:not(.disabled) .item:active.selected{background-color:var(--SystemControlHighlightListAccentHigh)}:host.disabled .item:not(.selected){color:var(--TextFillColorDisabled)}:host.disabled .item.selected{background-color:var(--SubtleFillColorSecondary);color:var(--AccentFillColorDisabled)}\n"] }]
|
|
1020
|
+
}] });
|
|
1021
|
+
|
|
1022
|
+
class FlyoutComponent extends PopupComponent {
|
|
1023
|
+
constructor() {
|
|
1024
|
+
super(...arguments);
|
|
1025
|
+
this.Placement = 'Top';
|
|
1026
|
+
}
|
|
1027
|
+
get contentStyle() {
|
|
1028
|
+
let alignSelf;
|
|
1029
|
+
let justifySelf;
|
|
1030
|
+
switch (this.Placement) {
|
|
1031
|
+
case 'Top':
|
|
1032
|
+
case 'Bottom':
|
|
1033
|
+
justifySelf = 'center';
|
|
1034
|
+
break;
|
|
1035
|
+
case 'TopEdgeAlignedLeft':
|
|
1036
|
+
case 'BottomEdgeAlignedLeft':
|
|
1037
|
+
justifySelf = 'left';
|
|
1038
|
+
break;
|
|
1039
|
+
case 'TopEdgeAlignedRight':
|
|
1040
|
+
case 'BottomEdgeAlignedRight':
|
|
1041
|
+
justifySelf = 'right';
|
|
1042
|
+
break;
|
|
1043
|
+
case 'Left':
|
|
1044
|
+
case 'Right':
|
|
1045
|
+
alignSelf = 'center';
|
|
1046
|
+
break;
|
|
1047
|
+
case 'LeftEdgeAlignedTop':
|
|
1048
|
+
case 'RightEdgeAlignedTop':
|
|
1049
|
+
alignSelf = 'flex-start';
|
|
1050
|
+
break;
|
|
1051
|
+
case 'LeftEdgeAlignedBottom':
|
|
1052
|
+
case 'RightEdgeAlignedBottom':
|
|
1053
|
+
alignSelf = 'flex-end';
|
|
1054
|
+
break;
|
|
1055
|
+
}
|
|
1056
|
+
return {
|
|
1057
|
+
'align-self': alignSelf,
|
|
1058
|
+
'justify-self': justifySelf,
|
|
1059
|
+
};
|
|
1060
|
+
}
|
|
1061
|
+
get containerStyle() {
|
|
1062
|
+
let top = '0';
|
|
1063
|
+
let left = '0';
|
|
1064
|
+
let right = '0';
|
|
1065
|
+
let bottom = '0';
|
|
1066
|
+
let transform;
|
|
1067
|
+
function translate(x, y, isOpen) {
|
|
1068
|
+
let result = '';
|
|
1069
|
+
if (x !== 0) {
|
|
1070
|
+
result += `translateX(${x > 0 ? '' : '-'}100%)`;
|
|
1071
|
+
if (!isOpen) {
|
|
1072
|
+
result += `translateX(${x > 0 ? '-' : ''}10px)`;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
if (y !== 0) {
|
|
1076
|
+
result += `translateY(${y > 0 ? '' : '-'}100%)`;
|
|
1077
|
+
if (!isOpen) {
|
|
1078
|
+
result += `translateY(${y > 0 ? '-' : ''}10px)`;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
return result;
|
|
1082
|
+
}
|
|
1083
|
+
switch (this.Placement) {
|
|
1084
|
+
case 'Top':
|
|
1085
|
+
case 'TopEdgeAlignedLeft':
|
|
1086
|
+
case 'TopEdgeAlignedRight':
|
|
1087
|
+
bottom = undefined;
|
|
1088
|
+
transform = translate(0, -1, this.IsOpen);
|
|
1089
|
+
break;
|
|
1090
|
+
case 'Bottom':
|
|
1091
|
+
case 'BottomEdgeAlignedLeft':
|
|
1092
|
+
case 'BottomEdgeAlignedRight':
|
|
1093
|
+
top = undefined;
|
|
1094
|
+
transform = translate(0, 1, this.IsOpen);
|
|
1095
|
+
break;
|
|
1096
|
+
case 'Left':
|
|
1097
|
+
case 'LeftEdgeAlignedBottom':
|
|
1098
|
+
case 'LeftEdgeAlignedTop':
|
|
1099
|
+
right = undefined;
|
|
1100
|
+
transform = translate(-1, 0, this.IsOpen);
|
|
1101
|
+
break;
|
|
1102
|
+
case 'Right':
|
|
1103
|
+
case 'RightEdgeAlignedBottom':
|
|
1104
|
+
case 'RightEdgeAlignedTop':
|
|
1105
|
+
left = undefined;
|
|
1106
|
+
transform = translate(1, 0, this.IsOpen);
|
|
1107
|
+
break;
|
|
1108
|
+
}
|
|
1109
|
+
let margin;
|
|
1110
|
+
switch (this.Placement) {
|
|
1111
|
+
case 'Top':
|
|
1112
|
+
margin = '0 -100vw -100vh -100vw';
|
|
1113
|
+
break;
|
|
1114
|
+
case 'TopEdgeAlignedLeft':
|
|
1115
|
+
margin = '0 -100vw -100vh 0';
|
|
1116
|
+
break;
|
|
1117
|
+
case 'TopEdgeAlignedRight':
|
|
1118
|
+
margin = '0 0 -100vh -100vw';
|
|
1119
|
+
break;
|
|
1120
|
+
case 'Bottom':
|
|
1121
|
+
margin = '-100vh -100vw 0 -100vw';
|
|
1122
|
+
break;
|
|
1123
|
+
case 'BottomEdgeAlignedLeft':
|
|
1124
|
+
margin = '0 -100vw 0 0';
|
|
1125
|
+
break;
|
|
1126
|
+
case 'BottomEdgeAlignedRight':
|
|
1127
|
+
margin = '0 0 0 -100vw';
|
|
1128
|
+
break;
|
|
1129
|
+
case 'Left':
|
|
1130
|
+
margin = '-100vh -100vw -100vh 0';
|
|
1131
|
+
break;
|
|
1132
|
+
case 'LeftEdgeAlignedTop':
|
|
1133
|
+
margin = '0 -100vw -100vh 0';
|
|
1134
|
+
break;
|
|
1135
|
+
case 'LeftEdgeAlignedBottom':
|
|
1136
|
+
margin = '-100vh -100vw 0 0';
|
|
1137
|
+
break;
|
|
1138
|
+
case 'Right':
|
|
1139
|
+
margin = '-100vh 0 -100vh -100vw';
|
|
1140
|
+
break;
|
|
1141
|
+
case 'RightEdgeAlignedTop':
|
|
1142
|
+
margin = '0 0 -100vh -100vw';
|
|
1143
|
+
break;
|
|
1144
|
+
case 'RightEdgeAlignedBottom':
|
|
1145
|
+
margin = '-100vh 0 0 -100vw';
|
|
1146
|
+
break;
|
|
1147
|
+
}
|
|
1148
|
+
return {
|
|
1149
|
+
'top': top,
|
|
1150
|
+
'left': left,
|
|
1151
|
+
'right': right,
|
|
1152
|
+
'bottom': bottom,
|
|
1153
|
+
'transform': transform,
|
|
1154
|
+
'margin': margin,
|
|
1155
|
+
'transition': 'transform var(--ControlNormalAnimationDuration)'
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FlyoutComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1159
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: FlyoutComponent, isStandalone: true, selector: "Flyout", inputs: { Placement: "Placement" }, usesInheritance: true, ngImport: i0, template: `<div class="popup-backdrop" (click)="onBackdropClick($event)" *ngIf="IsOpen"></div>
|
|
1160
|
+
<div class="popup-container" [ngStyle]="containerStyle" [ngClass]="containerClass">
|
|
1161
|
+
<div class="popup-content" [ngStyle]="contentStyle" *ngIf="isRendered"><ng-content/></div>
|
|
1162
|
+
</div>`, isInline: true, styles: [":host{position:relative}:host{z-index:900}.popup-container{background-color:transparent;display:grid;padding:0;margin:0;border:0;position:absolute;pointer-events:none;z-index:1000}.popup-container>.popup-content{display:grid;padding:16px;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);opacity:0;transition:opacity var(--ControlNormalAnimationDuration);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #0000001a;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault)}.popup-container.popup-open>.popup-content{opacity:1;pointer-events:all}.popup-backdrop{position:fixed;inset:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1163
|
+
}
|
|
1164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FlyoutComponent, decorators: [{
|
|
1165
|
+
type: Component,
|
|
1166
|
+
args: [{ selector: 'Flyout', imports: [CommonModule], template: `<div class="popup-backdrop" (click)="onBackdropClick($event)" *ngIf="IsOpen"></div>
|
|
1167
|
+
<div class="popup-container" [ngStyle]="containerStyle" [ngClass]="containerClass">
|
|
1168
|
+
<div class="popup-content" [ngStyle]="contentStyle" *ngIf="isRendered"><ng-content/></div>
|
|
1169
|
+
</div>`, styles: [":host{position:relative}:host{z-index:900}.popup-container{background-color:transparent;display:grid;padding:0;margin:0;border:0;position:absolute;pointer-events:none;z-index:1000}.popup-container>.popup-content{display:grid;padding:16px;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);opacity:0;transition:opacity var(--ControlNormalAnimationDuration);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #0000001a;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault)}.popup-container.popup-open>.popup-content{opacity:1;pointer-events:all}.popup-backdrop{position:fixed;inset:0}\n"] }]
|
|
1170
|
+
}], propDecorators: { Placement: [{
|
|
1171
|
+
type: Input
|
|
1172
|
+
}] } });
|
|
1173
|
+
|
|
1174
|
+
class TextBlockComponent extends FrameworkElementComponent {
|
|
1175
|
+
constructor() {
|
|
1176
|
+
super(...arguments);
|
|
1177
|
+
this.FontWeight = 'Normal';
|
|
1178
|
+
this.TextAlignment = 'Left';
|
|
1179
|
+
this.TextWrapping = 'NoWrap';
|
|
1180
|
+
}
|
|
1181
|
+
get fontWeight() {
|
|
1182
|
+
return TextBlockComponent.ToFontWeight(this.FontWeight);
|
|
1183
|
+
}
|
|
1184
|
+
static ToFontWeight(value) {
|
|
1185
|
+
switch (value) {
|
|
1186
|
+
case 'Black':
|
|
1187
|
+
return 900;
|
|
1188
|
+
case 'Bold':
|
|
1189
|
+
return 700;
|
|
1190
|
+
case 'ExtraBlack':
|
|
1191
|
+
return 950;
|
|
1192
|
+
case 'ExtraBold':
|
|
1193
|
+
return 800;
|
|
1194
|
+
case 'ExtraLight':
|
|
1195
|
+
return 200;
|
|
1196
|
+
case 'Light':
|
|
1197
|
+
return 300;
|
|
1198
|
+
case 'Medium':
|
|
1199
|
+
return 500;
|
|
1200
|
+
case 'Normal':
|
|
1201
|
+
return 400;
|
|
1202
|
+
case 'SemiBold':
|
|
1203
|
+
return 600;
|
|
1204
|
+
case 'SemiLight':
|
|
1205
|
+
return 350;
|
|
1206
|
+
case 'Thin':
|
|
1207
|
+
return 100;
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
get userSelect() {
|
|
1211
|
+
return this.IsTextSelectionEnabled === 'True' ? 'text' : 'none';
|
|
1212
|
+
}
|
|
1213
|
+
get textDecorationLine() {
|
|
1214
|
+
switch (this.TextDecorations) {
|
|
1215
|
+
case 'None':
|
|
1216
|
+
return 'none';
|
|
1217
|
+
case 'Strikethrough':
|
|
1218
|
+
return 'line-through';
|
|
1219
|
+
case 'Underline':
|
|
1220
|
+
return 'underline';
|
|
1221
|
+
default:
|
|
1222
|
+
return undefined;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
get textOverflow() {
|
|
1226
|
+
switch (this.TextTrimming) {
|
|
1227
|
+
case 'None':
|
|
1228
|
+
case 'Clip':
|
|
1229
|
+
return 'clip';
|
|
1230
|
+
case 'CharacterEllipsis':
|
|
1231
|
+
return 'Ellipsis';
|
|
1232
|
+
default:
|
|
1233
|
+
return undefined;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
get whiteSpace() {
|
|
1237
|
+
switch (this.TextWrapping) {
|
|
1238
|
+
case 'NoWrap':
|
|
1239
|
+
return 'nowrap';
|
|
1240
|
+
case 'Wrap':
|
|
1241
|
+
return 'normal';
|
|
1242
|
+
}
|
|
715
1243
|
}
|
|
716
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
717
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type:
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
[step]="StepFrequency"
|
|
722
|
-
(change)="onValueChange($event)"
|
|
723
|
-
[disabled]="!IsEnabled"
|
|
724
|
-
[className]="Orientation.toLowerCase()">`, isInline: true, styles: [":host{display:grid}input{display:grid;-webkit-appearance:none;appearance:none;background-color:#00000072;border-radius:2px;outline:none}input.horizontal{height:4px;margin:7px 0}input.vertical{width:4px;margin:0 7px;writing-mode:vertical-lr;direction:rtl;vertical-align:middle}@media (prefers-color-scheme: dark){input{background-color:#ffffff8b}}input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;border-radius:50%;width:16px;height:16px;border-style:solid;border-width:4px;outline:1px solid rgba(255,255,255,.0784313725);border-color:#fff;background-color:#0067c0;transition:border-width .167s}@media (prefers-color-scheme: dark){input::-webkit-slider-thumb{border-color:#454545;background-color:#4cc2ff}}input::-moz-range-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;border-radius:50%;width:16px;height:16px;border-style:solid;border-width:4px;outline:1px solid rgba(255,255,255,.0784313725);border-color:#fff;background-color:#0067c0;transition:border-width .167s}@media (prefers-color-scheme: dark){input::-moz-range-thumb{border-color:#454545;background-color:#4cc2ff}}input:not(:disabled)::-webkit-slider-thumb:hover{border-width:3px;background-color:#0067c0e6}@media (prefers-color-scheme: dark){input:not(:disabled)::-webkit-slider-thumb:hover{background-color:#4cc2ffe6}}input:not(:disabled)::-webkit-slider-thumb:active{border-width:5px;background-color:#0067c0cc}@media (prefers-color-scheme: dark){input:not(:disabled)::-webkit-slider-thumb:active{background-color:#4cc2ffcc}}input:not(:disabled)::-moz-range-thumb:hover{border-width:3px;background-color:#0067c0e6}@media (prefers-color-scheme: dark){input:not(:disabled)::-moz-range-thumb:hover{background-color:#4cc2ffe6}}input:not(:disabled)::-moz-range-thumb:active{border-width:5px;background-color:#0067c0cc}@media (prefers-color-scheme: dark){input:not(:disabled)::-moz-range-thumb:active{background-color:#4cc2ffcc}}input:disabled{background-color:#00000051}@media (prefers-color-scheme: dark){input:disabled{background-color:#ffffff3f}}input:disabled::-webkit-slider-thumb{border-width:2px;background-color:#ffffff37}@media (prefers-color-scheme: dark){input:disabled::-webkit-slider-thumb{background-color:#ffffff28}}input:disabled::-moz-range-thumb{border-width:2px;background-color:#ffffff37}@media (prefers-color-scheme: dark){input:disabled::-moz-range-thumb{background-color:#ffffff28}}\n"] }); }
|
|
1244
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBlockComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1245
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: TextBlockComponent, isStandalone: true, selector: "TextBlock", inputs: { FontFamily: "FontFamily", Text: "Text", FontSize: "FontSize", FontStyle: "FontStyle", FontWeight: "FontWeight", Foreground: "Foreground", TextAlignment: "TextAlignment", IsTextSelectionEnabled: "IsTextSelectionEnabled", TextDecorations: "TextDecorations", TextTrimming: "TextTrimming", TextWrapping: "TextWrapping" }, host: { properties: { "style.font-family": "this.FontFamily", "style.font-size": "this.FontSize", "style.font-style": "this.FontStyle", "style.color": "this.Foreground", "style.text-align": "this.TextAlignment", "style.font-weight": "this.fontWeight", "style.user-select": "this.userSelect", "style.text-decoration-line": "this.textDecorationLine", "style.text-overflow": "this.textOverflow", "style.white-space": "this.whiteSpace" } }, usesInheritance: true, ngImport: i0, template: `<ng-container>
|
|
1246
|
+
<ng-content *ngIf="Text === undefined"/>
|
|
1247
|
+
<ng-container *ngIf="Text !== undefined">{{Text}}</ng-container>
|
|
1248
|
+
</ng-container>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
725
1249
|
}
|
|
726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBlockComponent, decorators: [{
|
|
727
1251
|
type: Component,
|
|
728
|
-
args: [{
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
}], propDecorators: {
|
|
1252
|
+
args: [{
|
|
1253
|
+
selector: 'TextBlock',
|
|
1254
|
+
imports: [CommonModule],
|
|
1255
|
+
template: `<ng-container>
|
|
1256
|
+
<ng-content *ngIf="Text === undefined"/>
|
|
1257
|
+
<ng-container *ngIf="Text !== undefined">{{Text}}</ng-container>
|
|
1258
|
+
</ng-container>`
|
|
1259
|
+
}]
|
|
1260
|
+
}], propDecorators: { FontFamily: [{
|
|
737
1261
|
type: Input
|
|
738
|
-
}
|
|
1262
|
+
}, {
|
|
1263
|
+
type: HostBinding,
|
|
1264
|
+
args: ['style.font-family']
|
|
1265
|
+
}], Text: [{
|
|
739
1266
|
type: Input
|
|
740
|
-
}],
|
|
1267
|
+
}], FontSize: [{
|
|
741
1268
|
type: Input
|
|
742
|
-
}
|
|
1269
|
+
}, {
|
|
1270
|
+
type: HostBinding,
|
|
1271
|
+
args: ['style.font-size']
|
|
1272
|
+
}], FontStyle: [{
|
|
743
1273
|
type: Input
|
|
744
|
-
}
|
|
745
|
-
type:
|
|
746
|
-
|
|
1274
|
+
}, {
|
|
1275
|
+
type: HostBinding,
|
|
1276
|
+
args: ['style.font-style']
|
|
1277
|
+
}], FontWeight: [{
|
|
747
1278
|
type: Input
|
|
748
|
-
}],
|
|
1279
|
+
}], Foreground: [{
|
|
1280
|
+
type: Input
|
|
1281
|
+
}, {
|
|
1282
|
+
type: HostBinding,
|
|
1283
|
+
args: ['style.color']
|
|
1284
|
+
}], TextAlignment: [{
|
|
1285
|
+
type: Input
|
|
1286
|
+
}, {
|
|
1287
|
+
type: HostBinding,
|
|
1288
|
+
args: ['style.text-align']
|
|
1289
|
+
}], IsTextSelectionEnabled: [{
|
|
1290
|
+
type: Input
|
|
1291
|
+
}], TextDecorations: [{
|
|
1292
|
+
type: Input
|
|
1293
|
+
}], TextTrimming: [{
|
|
1294
|
+
type: Input
|
|
1295
|
+
}], TextWrapping: [{
|
|
749
1296
|
type: Input
|
|
1297
|
+
}], fontWeight: [{
|
|
1298
|
+
type: HostBinding,
|
|
1299
|
+
args: ['style.font-weight']
|
|
1300
|
+
}], userSelect: [{
|
|
1301
|
+
type: HostBinding,
|
|
1302
|
+
args: ['style.user-select']
|
|
1303
|
+
}], textDecorationLine: [{
|
|
1304
|
+
type: HostBinding,
|
|
1305
|
+
args: ['style.text-decoration-line']
|
|
1306
|
+
}], textOverflow: [{
|
|
1307
|
+
type: HostBinding,
|
|
1308
|
+
args: ['style.text-overflow']
|
|
1309
|
+
}], whiteSpace: [{
|
|
1310
|
+
type: HostBinding,
|
|
1311
|
+
args: ['style.white-space']
|
|
750
1312
|
}] } });
|
|
751
1313
|
|
|
752
|
-
class
|
|
1314
|
+
class FontIconComponent extends FrameworkElementComponent {
|
|
753
1315
|
constructor() {
|
|
754
1316
|
super(...arguments);
|
|
755
|
-
this.
|
|
756
|
-
this.PlaceholderText = '';
|
|
757
|
-
this.Text = '';
|
|
758
|
-
this.TextChange = new EventEmitter();
|
|
759
|
-
this.TextAlignment = 'Left';
|
|
760
|
-
this.TextWrapping = 'NoWrap';
|
|
1317
|
+
this.FontWeight = 'Normal';
|
|
761
1318
|
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
this.TextChange.emit(this.Text);
|
|
1319
|
+
get fontWeight() {
|
|
1320
|
+
return TextBlockComponent.ToFontWeight(this.FontWeight);
|
|
765
1321
|
}
|
|
766
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
767
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type:
|
|
768
|
-
<input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"/>
|
|
769
|
-
<textarea *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (change)="onChange($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"></textarea>`, isInline: true, styles: [":host{display:grid}textarea{resize:none}input,textarea{outline-style:none;border-style:solid;border-width:1px;border-radius:4px;padding:6px;background-color:#ffffffb3;border-color:#0000000f;border-bottom-color:#00000072;color:#000000e4}@media (prefers-color-scheme: dark){input,textarea{background-color:#ffffff0f;border-color:#ffffff12;border-bottom-color:#ffffff8b;color:#fff}}input::placeholder,textarea::placeholder{color:#0000009e;opacity:1}@media (prefers-color-scheme: dark){input::placeholder,textarea::placeholder{color:#ffffffc5}}input:hover,textarea:hover{background-color:#f9f9f980}@media (prefers-color-scheme: dark){input:hover,textarea:hover{background-color:#ffffff15}}input:focus,textarea:focus{background-color:#fff;border-bottom-color:#0067c0}@media (prefers-color-scheme: dark){input:focus,textarea:focus{background-color:#1e1e1eb3;border-bottom-color:#4cc2ff}}input:disabled,textarea:disabled{background-color:#f9f9f94d;border-bottom-color:#0000000f;color:#0000005c}@media (prefers-color-scheme: dark){input:disabled,textarea:disabled{background-color:#ffffff0b;border-bottom-color:#ffffff12;color:#ffffff5d}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1322
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FontIconComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1323
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: FontIconComponent, isStandalone: true, selector: "FontIcon", inputs: { FontFamily: "FontFamily", FontSize: "FontSize", FontStyle: "FontStyle", FontWeight: "FontWeight", Glyph: "Glyph" }, host: { properties: { "style.font-family": "this.FontFamily", "style.font-size": "this.FontSize", "style.font-style": "this.FontStyle", "style.font-weight": "this.fontWeight" } }, usesInheritance: true, ngImport: i0, template: `{{Glyph}}`, isInline: true, styles: [":host{font-family:Segoe Fluent Icons,Segoe MDL2 Assets}\n"] }); }
|
|
770
1324
|
}
|
|
771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FontIconComponent, decorators: [{
|
|
772
1326
|
type: Component,
|
|
773
|
-
args: [{ selector: '
|
|
774
|
-
|
|
775
|
-
<textarea *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (change)="onChange($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"></textarea>`, styles: [":host{display:grid}textarea{resize:none}input,textarea{outline-style:none;border-style:solid;border-width:1px;border-radius:4px;padding:6px;background-color:#ffffffb3;border-color:#0000000f;border-bottom-color:#00000072;color:#000000e4}@media (prefers-color-scheme: dark){input,textarea{background-color:#ffffff0f;border-color:#ffffff12;border-bottom-color:#ffffff8b;color:#fff}}input::placeholder,textarea::placeholder{color:#0000009e;opacity:1}@media (prefers-color-scheme: dark){input::placeholder,textarea::placeholder{color:#ffffffc5}}input:hover,textarea:hover{background-color:#f9f9f980}@media (prefers-color-scheme: dark){input:hover,textarea:hover{background-color:#ffffff15}}input:focus,textarea:focus{background-color:#fff;border-bottom-color:#0067c0}@media (prefers-color-scheme: dark){input:focus,textarea:focus{background-color:#1e1e1eb3;border-bottom-color:#4cc2ff}}input:disabled,textarea:disabled{background-color:#f9f9f94d;border-bottom-color:#0000000f;color:#0000005c}@media (prefers-color-scheme: dark){input:disabled,textarea:disabled{background-color:#ffffff0b;border-bottom-color:#ffffff12;color:#ffffff5d}}\n"] }]
|
|
776
|
-
}], propDecorators: { IsEnabled: [{
|
|
1327
|
+
args: [{ selector: 'FontIcon', template: `{{Glyph}}`, styles: [":host{font-family:Segoe Fluent Icons,Segoe MDL2 Assets}\n"] }]
|
|
1328
|
+
}], propDecorators: { FontFamily: [{
|
|
777
1329
|
type: Input
|
|
778
|
-
}
|
|
1330
|
+
}, {
|
|
1331
|
+
type: HostBinding,
|
|
1332
|
+
args: ['style.font-family']
|
|
1333
|
+
}], FontSize: [{
|
|
779
1334
|
type: Input
|
|
780
|
-
}
|
|
1335
|
+
}, {
|
|
1336
|
+
type: HostBinding,
|
|
1337
|
+
args: ['style.font-size']
|
|
1338
|
+
}], FontStyle: [{
|
|
781
1339
|
type: Input
|
|
782
|
-
}
|
|
783
|
-
type:
|
|
784
|
-
|
|
1340
|
+
}, {
|
|
1341
|
+
type: HostBinding,
|
|
1342
|
+
args: ['style.font-style']
|
|
1343
|
+
}], FontWeight: [{
|
|
785
1344
|
type: Input
|
|
786
|
-
}],
|
|
1345
|
+
}], Glyph: [{
|
|
787
1346
|
type: Input
|
|
1347
|
+
}], fontWeight: [{
|
|
1348
|
+
type: HostBinding,
|
|
1349
|
+
args: ['style.font-weight']
|
|
788
1350
|
}] } });
|
|
789
1351
|
|
|
790
|
-
class
|
|
1352
|
+
class GridComponent extends PanelComponent {
|
|
791
1353
|
constructor() {
|
|
792
1354
|
super(...arguments);
|
|
793
|
-
this.
|
|
794
|
-
this.IsCheckedChange = new EventEmitter();
|
|
1355
|
+
this.Orientation = 'Horizontal';
|
|
795
1356
|
}
|
|
796
|
-
|
|
797
|
-
this.
|
|
798
|
-
this.IsCheckedChange.emit(this.IsChecked);
|
|
1357
|
+
get gridAutoFlow() {
|
|
1358
|
+
return this.Orientation == 'Horizontal' ? 'row' : 'column';
|
|
799
1359
|
}
|
|
800
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
801
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type:
|
|
1360
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1361
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: GridComponent, isStandalone: false, selector: "Grid", inputs: { ColumnDefinitions: "ColumnDefinitions", RowDefinitions: "RowDefinitions", ColumnSpacing: "ColumnSpacing", RowSpacing: "RowSpacing", Orientation: "Orientation" }, host: { properties: { "style.grid-template-columns": "this.ColumnDefinitions", "style.grid-template-rows": "this.RowDefinitions", "style.column-gap": "this.ColumnSpacing", "style.row-gap": "this.RowSpacing", "style.grid-auto-flow": "this.gridAutoFlow" } }, usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:grid;position:relative}\n"] }); }
|
|
802
1362
|
}
|
|
803
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridComponent, decorators: [{
|
|
804
1364
|
type: Component,
|
|
805
|
-
args: [{ selector: '
|
|
806
|
-
}], propDecorators: {
|
|
1365
|
+
args: [{ selector: 'Grid', template: `<ng-content/>`, standalone: false, styles: [":host{display:grid;position:relative}\n"] }]
|
|
1366
|
+
}], propDecorators: { ColumnDefinitions: [{
|
|
807
1367
|
type: Input
|
|
808
1368
|
}, {
|
|
809
1369
|
type: HostBinding,
|
|
810
|
-
args: ['
|
|
811
|
-
}],
|
|
812
|
-
type:
|
|
813
|
-
}
|
|
814
|
-
type:
|
|
815
|
-
args: ['
|
|
1370
|
+
args: ['style.grid-template-columns']
|
|
1371
|
+
}], RowDefinitions: [{
|
|
1372
|
+
type: Input
|
|
1373
|
+
}, {
|
|
1374
|
+
type: HostBinding,
|
|
1375
|
+
args: ['style.grid-template-rows']
|
|
1376
|
+
}], ColumnSpacing: [{
|
|
1377
|
+
type: Input
|
|
1378
|
+
}, {
|
|
1379
|
+
type: HostBinding,
|
|
1380
|
+
args: ['style.column-gap']
|
|
1381
|
+
}], RowSpacing: [{
|
|
1382
|
+
type: Input
|
|
1383
|
+
}, {
|
|
1384
|
+
type: HostBinding,
|
|
1385
|
+
args: ['style.row-gap']
|
|
1386
|
+
}], Orientation: [{
|
|
1387
|
+
type: Input
|
|
1388
|
+
}], gridAutoFlow: [{
|
|
1389
|
+
type: HostBinding,
|
|
1390
|
+
args: ['style.grid-auto-flow']
|
|
816
1391
|
}] } });
|
|
817
|
-
|
|
818
|
-
class ToggleSwitch extends CheckBox {
|
|
819
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleSwitch, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
820
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleSwitch, isStandalone: true, selector: "ToggleSwitch", usesInheritance: true, ngImport: i0, template: `<label class="container">
|
|
821
|
-
<input type="checkbox" [checked]="IsChecked" (change)="onIsCheckedChange($event)" [disabled]="!IsEnabled">
|
|
822
|
-
<div class="slider">
|
|
823
|
-
<div class="thumb"></div>
|
|
824
|
-
</div>
|
|
825
|
-
<div class="content"><ng-content/></div>
|
|
826
|
-
</label>`, isInline: true, styles: [".container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover){background-color:#00000006;border-color:#00000072}@media (prefers-color-scheme: dark){input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover){background-color:#00000019;border-color:#ffffff8b}}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:#0000009e}@media (prefers-color-scheme: dark){input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:#ffffffc5}}input:not(:checked):not(:active):not(:disabled)+.slider:hover{background-color:#0000000f;border-color:#00000072}@media (prefers-color-scheme: dark){input:not(:checked):not(:active):not(:disabled)+.slider:hover{background-color:#ffffff0b;border-color:#ffffff8b}}input:not(:checked):not(:active):not(:disabled)+.slider:hover>.thumb{background-color:#0000009e}@media (prefers-color-scheme: dark){input:not(:checked):not(:active):not(:disabled)+.slider:hover>.thumb{background-color:#ffffffc5}}input:not(:checked):active:not(:disabled)+.slider{background-color:#00000018;border-color:#00000072}@media (prefers-color-scheme: dark){input:not(:checked):active:not(:disabled)+.slider{background-color:#ffffff12;border-color:#ffffff8b}}input:not(:checked):active:not(:disabled)+.slider>.thumb{background-color:#0000009e}@media (prefers-color-scheme: dark){input:not(:checked):active:not(:disabled)+.slider>.thumb{background-color:#ffffffc5}}input:not(:checked):disabled+.slider{background-color:#fff0;border-color:#00000037}@media (prefers-color-scheme: dark){input:not(:checked):disabled+.slider{background-color:#fff0;border-color:#ffffff28}}input:not(:checked):disabled+.slider>.thumb{background-color:#0000005c}@media (prefers-color-scheme: dark){input:not(:checked):disabled+.slider>.thumb{background-color:#ffffff5d}}input:checked:not(:active):not(:disabled)+.slider:not(:hover){background-color:#0067c0;border-color:#0067c0}@media (prefers-color-scheme: dark){input:checked:not(:active):not(:disabled)+.slider:not(:hover){background-color:#4cc2ff;border-color:#4cc2ff}}input:checked:not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:#fff}@media (prefers-color-scheme: dark){input:checked:not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:#000}}input:checked:not(:active):not(:disabled)+.slider:hover{background-color:#0067c0e6;border-color:#0067c0e6}@media (prefers-color-scheme: dark){input:checked:not(:active):not(:disabled)+.slider:hover{background-color:#4cc2ffe6;border-color:#4cc2ffe6}}input:checked:not(:active):not(:disabled)+.slider:hover>.thumb{background-color:#fff}@media (prefers-color-scheme: dark){input:checked:not(:active):not(:disabled)+.slider:hover>.thumb{background-color:#000}}input:checked:active:not(:disabled)+.slider{background-color:#0067c0cc;border-color:#0067c0cc}@media (prefers-color-scheme: dark){input:checked:active:not(:disabled)+.slider{background-color:#4cc2ffcc;border-color:#4cc2ffcc}}input:checked:active:not(:disabled)+.slider>.thumb{background-color:#fff}@media (prefers-color-scheme: dark){input:checked:active:not(:disabled)+.slider>.thumb{background-color:#000}}input:checked:disabled+.slider{background-color:#ffffff37;border-color:#ffffff37}@media (prefers-color-scheme: dark){input:checked:disabled+.slider{background-color:#ffffff28;border-color:#ffffff28}}input:checked:disabled+.slider>.thumb{background-color:#fff}@media (prefers-color-scheme: dark){input:checked:disabled+.slider>.thumb{background-color:#ffffff87}}input:checked+.slider>.thumb{transform:translate(22px)}input:not(:disabled):active+.slider>.thumb{width:17px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):hover+.slider>.thumb{width:14px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):checked:hover+.slider>.thumb{transform:translate(21px)}input:not(:disabled):checked:active+.slider>.thumb{transform:translate(18px);width:17px;height:14px}.slider{display:grid;width:40px;height:18px;border-radius:10px;border-style:solid;border-width:1.5px;transition:background-color .25s;background-color:#00000006}@media (prefers-color-scheme: dark){.slider{background-color:#00000019}}.thumb{display:grid;width:12px;height:12px;border-radius:7px;align-self:center;margin:0 3px;transition:transform .25s;transition:width .167s;transition:margin-left .167s}\n"] }); }
|
|
1392
|
+
class GridProperty {
|
|
827
1393
|
}
|
|
828
|
-
|
|
829
|
-
type: Component,
|
|
830
|
-
args: [{ selector: 'ToggleSwitch', template: `<label class="container">
|
|
831
|
-
<input type="checkbox" [checked]="IsChecked" (change)="onIsCheckedChange($event)" [disabled]="!IsEnabled">
|
|
832
|
-
<div class="slider">
|
|
833
|
-
<div class="thumb"></div>
|
|
834
|
-
</div>
|
|
835
|
-
<div class="content"><ng-content/></div>
|
|
836
|
-
</label>`, styles: [".container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover){background-color:#00000006;border-color:#00000072}@media (prefers-color-scheme: dark){input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover){background-color:#00000019;border-color:#ffffff8b}}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:#0000009e}@media (prefers-color-scheme: dark){input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:#ffffffc5}}input:not(:checked):not(:active):not(:disabled)+.slider:hover{background-color:#0000000f;border-color:#00000072}@media (prefers-color-scheme: dark){input:not(:checked):not(:active):not(:disabled)+.slider:hover{background-color:#ffffff0b;border-color:#ffffff8b}}input:not(:checked):not(:active):not(:disabled)+.slider:hover>.thumb{background-color:#0000009e}@media (prefers-color-scheme: dark){input:not(:checked):not(:active):not(:disabled)+.slider:hover>.thumb{background-color:#ffffffc5}}input:not(:checked):active:not(:disabled)+.slider{background-color:#00000018;border-color:#00000072}@media (prefers-color-scheme: dark){input:not(:checked):active:not(:disabled)+.slider{background-color:#ffffff12;border-color:#ffffff8b}}input:not(:checked):active:not(:disabled)+.slider>.thumb{background-color:#0000009e}@media (prefers-color-scheme: dark){input:not(:checked):active:not(:disabled)+.slider>.thumb{background-color:#ffffffc5}}input:not(:checked):disabled+.slider{background-color:#fff0;border-color:#00000037}@media (prefers-color-scheme: dark){input:not(:checked):disabled+.slider{background-color:#fff0;border-color:#ffffff28}}input:not(:checked):disabled+.slider>.thumb{background-color:#0000005c}@media (prefers-color-scheme: dark){input:not(:checked):disabled+.slider>.thumb{background-color:#ffffff5d}}input:checked:not(:active):not(:disabled)+.slider:not(:hover){background-color:#0067c0;border-color:#0067c0}@media (prefers-color-scheme: dark){input:checked:not(:active):not(:disabled)+.slider:not(:hover){background-color:#4cc2ff;border-color:#4cc2ff}}input:checked:not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:#fff}@media (prefers-color-scheme: dark){input:checked:not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:#000}}input:checked:not(:active):not(:disabled)+.slider:hover{background-color:#0067c0e6;border-color:#0067c0e6}@media (prefers-color-scheme: dark){input:checked:not(:active):not(:disabled)+.slider:hover{background-color:#4cc2ffe6;border-color:#4cc2ffe6}}input:checked:not(:active):not(:disabled)+.slider:hover>.thumb{background-color:#fff}@media (prefers-color-scheme: dark){input:checked:not(:active):not(:disabled)+.slider:hover>.thumb{background-color:#000}}input:checked:active:not(:disabled)+.slider{background-color:#0067c0cc;border-color:#0067c0cc}@media (prefers-color-scheme: dark){input:checked:active:not(:disabled)+.slider{background-color:#4cc2ffcc;border-color:#4cc2ffcc}}input:checked:active:not(:disabled)+.slider>.thumb{background-color:#fff}@media (prefers-color-scheme: dark){input:checked:active:not(:disabled)+.slider>.thumb{background-color:#000}}input:checked:disabled+.slider{background-color:#ffffff37;border-color:#ffffff37}@media (prefers-color-scheme: dark){input:checked:disabled+.slider{background-color:#ffffff28;border-color:#ffffff28}}input:checked:disabled+.slider>.thumb{background-color:#fff}@media (prefers-color-scheme: dark){input:checked:disabled+.slider>.thumb{background-color:#ffffff87}}input:checked+.slider>.thumb{transform:translate(22px)}input:not(:disabled):active+.slider>.thumb{width:17px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):hover+.slider>.thumb{width:14px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):checked:hover+.slider>.thumb{transform:translate(21px)}input:not(:disabled):checked:active+.slider>.thumb{transform:translate(18px);width:17px;height:14px}.slider{display:grid;width:40px;height:18px;border-radius:10px;border-style:solid;border-width:1.5px;transition:background-color .25s;background-color:#00000006}@media (prefers-color-scheme: dark){.slider{background-color:#00000019}}.thumb{display:grid;width:12px;height:12px;border-radius:7px;align-self:center;margin:0 3px;transition:transform .25s;transition:width .167s;transition:margin-left .167s}\n"] }]
|
|
837
|
-
}] });
|
|
838
|
-
|
|
839
|
-
class ScrollViewer extends FrameworkElement {
|
|
1394
|
+
class GridDirective {
|
|
840
1395
|
constructor() {
|
|
841
|
-
|
|
842
|
-
this.HorizontalScrollMode = 'Enabled';
|
|
843
|
-
this.VerticalScrollMode = 'Enabled';
|
|
1396
|
+
this.Grid = new GridProperty();
|
|
844
1397
|
}
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
return 'scroll';
|
|
851
|
-
case 'Auto':
|
|
852
|
-
return 'auto';
|
|
853
|
-
}
|
|
1398
|
+
get gridColumnStart() {
|
|
1399
|
+
return this.Grid.Column !== undefined ? this.Grid.Column + 1 : undefined;
|
|
1400
|
+
}
|
|
1401
|
+
get gridRowStart() {
|
|
1402
|
+
return this.Grid.Row !== undefined ? this.Grid.Row + 1 : undefined;
|
|
854
1403
|
}
|
|
855
|
-
get
|
|
856
|
-
return
|
|
1404
|
+
get gridColumnEnd() {
|
|
1405
|
+
return this.Grid.ColumnSpan !== undefined ? ('span ' + this.Grid.ColumnSpan) : undefined;
|
|
857
1406
|
}
|
|
858
|
-
get
|
|
859
|
-
return
|
|
1407
|
+
get gridRowEnd() {
|
|
1408
|
+
return this.Grid.RowSpan !== undefined ? ('span ' + this.Grid.RowSpan) : undefined;
|
|
860
1409
|
}
|
|
861
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
862
|
-
static { this.ɵ
|
|
1410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1411
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: GridDirective, isStandalone: false, selector: "[Grid]", inputs: { Grid: "Grid" }, host: { properties: { "style.grid-column-start": "this.gridColumnStart", "style.grid-row-start": "this.gridRowStart", "style.grid-column-end": "this.gridColumnEnd", "style.grid-row-end": "this.gridRowEnd" } }, ngImport: i0 }); }
|
|
863
1412
|
}
|
|
864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
865
|
-
type:
|
|
866
|
-
args: [{
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
1413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridDirective, decorators: [{
|
|
1414
|
+
type: Directive,
|
|
1415
|
+
args: [{
|
|
1416
|
+
selector: '[Grid]',
|
|
1417
|
+
standalone: false
|
|
1418
|
+
}]
|
|
1419
|
+
}], propDecorators: { Grid: [{
|
|
870
1420
|
type: Input
|
|
871
|
-
}],
|
|
1421
|
+
}], gridColumnStart: [{
|
|
1422
|
+
type: HostBinding,
|
|
1423
|
+
args: ['style.grid-column-start']
|
|
1424
|
+
}], gridRowStart: [{
|
|
1425
|
+
type: HostBinding,
|
|
1426
|
+
args: ['style.grid-row-start']
|
|
1427
|
+
}], gridColumnEnd: [{
|
|
1428
|
+
type: HostBinding,
|
|
1429
|
+
args: ['style.grid-column-end']
|
|
1430
|
+
}], gridRowEnd: [{
|
|
1431
|
+
type: HostBinding,
|
|
1432
|
+
args: ['style.grid-row-end']
|
|
1433
|
+
}] } });
|
|
1434
|
+
class GridRowDirective {
|
|
1435
|
+
get gridRowStart() {
|
|
1436
|
+
return this.Row !== undefined ? parseInt(this.Row) + 1 : undefined;
|
|
1437
|
+
}
|
|
1438
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridRowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1439
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: GridRowDirective, isStandalone: false, selector: "[Grid-Row]", inputs: { Row: ["Grid-Row", "Row"] }, host: { properties: { "style.grid-row-start": "this.gridRowStart" } }, ngImport: i0 }); }
|
|
1440
|
+
}
|
|
1441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridRowDirective, decorators: [{
|
|
1442
|
+
type: Directive,
|
|
1443
|
+
args: [{
|
|
1444
|
+
selector: '[Grid-Row]',
|
|
1445
|
+
standalone: false
|
|
1446
|
+
}]
|
|
1447
|
+
}], propDecorators: { Row: [{
|
|
1448
|
+
type: Input,
|
|
1449
|
+
args: ['Grid-Row']
|
|
1450
|
+
}], gridRowStart: [{
|
|
1451
|
+
type: HostBinding,
|
|
1452
|
+
args: ['style.grid-row-start']
|
|
1453
|
+
}] } });
|
|
1454
|
+
class GridColumnDirective {
|
|
1455
|
+
get gridColumnStart() {
|
|
1456
|
+
return this.Column !== undefined ? parseInt(this.Column) + 1 : undefined;
|
|
1457
|
+
}
|
|
1458
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1459
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: GridColumnDirective, isStandalone: false, selector: "[Grid-Column]", inputs: { Column: ["Grid-Column", "Column"] }, host: { properties: { "style.grid-column-start": "this.gridColumnStart" } }, ngImport: i0 }); }
|
|
1460
|
+
}
|
|
1461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridColumnDirective, decorators: [{
|
|
1462
|
+
type: Directive,
|
|
1463
|
+
args: [{
|
|
1464
|
+
selector: '[Grid-Column]',
|
|
1465
|
+
standalone: false
|
|
1466
|
+
}]
|
|
1467
|
+
}], propDecorators: { Column: [{
|
|
1468
|
+
type: Input,
|
|
1469
|
+
args: ['Grid-Column']
|
|
1470
|
+
}], gridColumnStart: [{
|
|
1471
|
+
type: HostBinding,
|
|
1472
|
+
args: ['style.grid-column-start']
|
|
1473
|
+
}] } });
|
|
1474
|
+
class GridRowSpanDirective {
|
|
1475
|
+
get gridRowEnd() {
|
|
1476
|
+
return this.RowSpan !== undefined ? ('span ' + this.RowSpan) : undefined;
|
|
1477
|
+
}
|
|
1478
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridRowSpanDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1479
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: GridRowSpanDirective, isStandalone: false, selector: "[Grid-RowSpan]", inputs: { RowSpan: ["Grid-RowSpan", "RowSpan"] }, host: { properties: { "style.grid-row-end": "this.gridRowEnd" } }, ngImport: i0 }); }
|
|
1480
|
+
}
|
|
1481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridRowSpanDirective, decorators: [{
|
|
1482
|
+
type: Directive,
|
|
1483
|
+
args: [{
|
|
1484
|
+
selector: '[Grid-RowSpan]',
|
|
1485
|
+
standalone: false
|
|
1486
|
+
}]
|
|
1487
|
+
}], propDecorators: { RowSpan: [{
|
|
1488
|
+
type: Input,
|
|
1489
|
+
args: ['Grid-RowSpan']
|
|
1490
|
+
}], gridRowEnd: [{
|
|
872
1491
|
type: HostBinding,
|
|
873
|
-
args: ['style.
|
|
874
|
-
}]
|
|
1492
|
+
args: ['style.grid-row-end']
|
|
1493
|
+
}] } });
|
|
1494
|
+
class GridColumnSpanDirective {
|
|
1495
|
+
get gridColumnEnd() {
|
|
1496
|
+
return this.ColumnSpan !== undefined ? ('span ' + this.ColumnSpan) : undefined;
|
|
1497
|
+
}
|
|
1498
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridColumnSpanDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1499
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: GridColumnSpanDirective, isStandalone: false, selector: "[Grid-ColumnSpan]", inputs: { ColumnSpan: ["Grid-ColumnSpan", "ColumnSpan"] }, host: { properties: { "style.grid-column-end": "this.gridColumnEnd" } }, ngImport: i0 }); }
|
|
1500
|
+
}
|
|
1501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridColumnSpanDirective, decorators: [{
|
|
1502
|
+
type: Directive,
|
|
1503
|
+
args: [{
|
|
1504
|
+
selector: '[Grid-ColumnSpan]',
|
|
1505
|
+
standalone: false
|
|
1506
|
+
}]
|
|
1507
|
+
}], propDecorators: { ColumnSpan: [{
|
|
1508
|
+
type: Input,
|
|
1509
|
+
args: ['Grid-ColumnSpan']
|
|
1510
|
+
}], gridColumnEnd: [{
|
|
875
1511
|
type: HostBinding,
|
|
876
|
-
args: ['style.
|
|
1512
|
+
args: ['style.grid-column-end']
|
|
877
1513
|
}] } });
|
|
1514
|
+
const GridComponents = [
|
|
1515
|
+
GridComponent,
|
|
1516
|
+
GridDirective,
|
|
1517
|
+
GridRowDirective,
|
|
1518
|
+
GridRowSpanDirective,
|
|
1519
|
+
GridColumnDirective,
|
|
1520
|
+
GridColumnSpanDirective
|
|
1521
|
+
];
|
|
1522
|
+
class GridModule {
|
|
1523
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1524
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: GridModule, declarations: [GridComponent, GridDirective, GridRowDirective, GridRowSpanDirective, GridColumnDirective, GridColumnSpanDirective], exports: [GridComponent, GridDirective, GridRowDirective, GridRowSpanDirective, GridColumnDirective, GridColumnSpanDirective] }); }
|
|
1525
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridModule }); }
|
|
1526
|
+
}
|
|
1527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridModule, decorators: [{
|
|
1528
|
+
type: NgModule,
|
|
1529
|
+
args: [{
|
|
1530
|
+
declarations: GridComponents,
|
|
1531
|
+
exports: GridComponents
|
|
1532
|
+
}]
|
|
1533
|
+
}] });
|
|
878
1534
|
|
|
879
|
-
class
|
|
880
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
881
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type:
|
|
1535
|
+
class ToolTipDirective {
|
|
1536
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToolTipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1537
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ToolTipDirective, isStandalone: false, selector: "[ToolTipService-ToolTip]", inputs: { ToolTip: ["ToolTipService-ToolTip", "ToolTip"] }, host: { properties: { "attr.title": "this.ToolTip" } }, ngImport: i0 }); }
|
|
882
1538
|
}
|
|
883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToolTipDirective, decorators: [{
|
|
884
1540
|
type: Directive,
|
|
885
1541
|
args: [{
|
|
886
1542
|
selector: '[ToolTipService-ToolTip]',
|
|
@@ -893,35 +1549,92 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
893
1549
|
type: HostBinding,
|
|
894
1550
|
args: ['attr.title']
|
|
895
1551
|
}] } });
|
|
896
|
-
class
|
|
897
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
898
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type:
|
|
899
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1552
|
+
class ToolTipServiceModule {
|
|
1553
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToolTipServiceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1554
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: ToolTipServiceModule, declarations: [ToolTipDirective], exports: [ToolTipDirective] }); }
|
|
1555
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToolTipServiceModule }); }
|
|
900
1556
|
}
|
|
901
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToolTipServiceModule, decorators: [{
|
|
902
1558
|
type: NgModule,
|
|
903
1559
|
args: [{
|
|
904
|
-
declarations: [
|
|
905
|
-
exports: [
|
|
1560
|
+
declarations: [ToolTipDirective],
|
|
1561
|
+
exports: [ToolTipDirective]
|
|
906
1562
|
}]
|
|
907
1563
|
}] });
|
|
908
1564
|
|
|
909
|
-
class
|
|
910
|
-
|
|
911
|
-
|
|
1565
|
+
class TextBoxComponent extends FrameworkElementComponent {
|
|
1566
|
+
constructor() {
|
|
1567
|
+
super(...arguments);
|
|
1568
|
+
this.IsEnabled = true;
|
|
1569
|
+
this.PlaceholderText = '';
|
|
1570
|
+
this.TextChange = new EventEmitter();
|
|
1571
|
+
this.TextAlignment = 'Left';
|
|
1572
|
+
this.TextWrapping = 'NoWrap';
|
|
1573
|
+
this._text = '';
|
|
1574
|
+
}
|
|
1575
|
+
get Text() {
|
|
1576
|
+
return this._text;
|
|
1577
|
+
}
|
|
1578
|
+
set Text(value) {
|
|
1579
|
+
if (value == this._text)
|
|
1580
|
+
return;
|
|
1581
|
+
this._text = value;
|
|
1582
|
+
this.TextChange.emit(value);
|
|
1583
|
+
}
|
|
1584
|
+
onChange(event) {
|
|
1585
|
+
this.Text = (event.target).value;
|
|
1586
|
+
}
|
|
1587
|
+
onContextMenu(event) {
|
|
1588
|
+
event.stopPropagation();
|
|
1589
|
+
}
|
|
1590
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1591
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: TextBoxComponent, isStandalone: true, selector: "TextBox", inputs: { IsEnabled: "IsEnabled", PlaceholderText: "PlaceholderText", TextAlignment: "TextAlignment", TextWrapping: "TextWrapping", Text: "Text" }, outputs: { TextChange: "TextChange" }, host: { listeners: { "contextmenu": "onContextMenu($event)" } }, usesInheritance: true, ngImport: i0, template: `<input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"/>
|
|
1592
|
+
<textarea *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (change)="onChange($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"></textarea>`, isInline: true, styles: [":host{position:relative}:host{display:grid}textarea{resize:none}input,textarea{outline-style:none;border-style:solid;border-width:1px;border-radius:var(--ControlCornerRadius);padding:6px;background-color:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);border-bottom-color:var(--ControlStrongStrokeColorDefault);color:var(--TextFillColorPrimary)}input::placeholder,textarea::placeholder{color:var(--TextFillColorSecondary);opacity:1}input:hover,textarea:hover{background-color:var(--ControlFillColorSecondary)}input:focus,input:active,textarea:focus,textarea:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}input:disabled,textarea:disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorDisabled)}::selection{background-color:var(--SystemAccentColor);color:var(--TextOnAccentFillColorPrimary)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1593
|
+
}
|
|
1594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBoxComponent, decorators: [{
|
|
1595
|
+
type: Component,
|
|
1596
|
+
args: [{ selector: 'TextBox', imports: [CommonModule], template: `<input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"/>
|
|
1597
|
+
<textarea *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (change)="onChange($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"></textarea>`, styles: [":host{position:relative}:host{display:grid}textarea{resize:none}input,textarea{outline-style:none;border-style:solid;border-width:1px;border-radius:var(--ControlCornerRadius);padding:6px;background-color:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);border-bottom-color:var(--ControlStrongStrokeColorDefault);color:var(--TextFillColorPrimary)}input::placeholder,textarea::placeholder{color:var(--TextFillColorSecondary);opacity:1}input:hover,textarea:hover{background-color:var(--ControlFillColorSecondary)}input:focus,input:active,textarea:focus,textarea:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}input:disabled,textarea:disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorDisabled)}::selection{background-color:var(--SystemAccentColor);color:var(--TextOnAccentFillColorPrimary)}\n"] }]
|
|
1598
|
+
}], propDecorators: { IsEnabled: [{
|
|
1599
|
+
type: Input
|
|
1600
|
+
}], PlaceholderText: [{
|
|
1601
|
+
type: Input
|
|
1602
|
+
}], TextChange: [{
|
|
1603
|
+
type: Output
|
|
1604
|
+
}], TextAlignment: [{
|
|
1605
|
+
type: Input
|
|
1606
|
+
}], TextWrapping: [{
|
|
1607
|
+
type: Input
|
|
1608
|
+
}], Text: [{
|
|
1609
|
+
type: Input
|
|
1610
|
+
}], onContextMenu: [{
|
|
1611
|
+
type: HostListener,
|
|
1612
|
+
args: ['contextmenu', ['$event']]
|
|
1613
|
+
}] } });
|
|
1614
|
+
|
|
1615
|
+
class XamlRootComponent {
|
|
1616
|
+
onContextMenu(event) {
|
|
1617
|
+
event.preventDefault();
|
|
1618
|
+
}
|
|
1619
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: XamlRootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1620
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: XamlRootComponent, isStandalone: true, selector: "XamlRoot", host: { listeners: { "contextmenu": "onContextMenu($event)" } }, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:grid;background-color:#f3f3f3;overflow:hidden;-webkit-user-select:none;user-select:none}:host::ng-deep *{font-family:Segoe UI,Arial,sans-serif;font-size:10pt;color:#000}@media (prefers-color-scheme: dark){:host{background-color:#202020}:host::ng-deep *{color:#fff}}\n"] }); }
|
|
912
1621
|
}
|
|
913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: XamlRootComponent, decorators: [{
|
|
914
1623
|
type: Component,
|
|
915
|
-
args: [{ selector: 'XamlRoot', template: `<ng-content/>`, styles: [":host{display:grid;background-color:#f3f3f3}:host::ng-deep *{font-family:Segoe UI,Arial,sans-serif;font-size:10pt;color:#000}@media (prefers-color-scheme: dark){:host{background-color:#202020}:host::ng-deep *{color:#fff}}\n"] }]
|
|
916
|
-
}]
|
|
1624
|
+
args: [{ selector: 'XamlRoot', template: `<ng-content/>`, styles: [":host{display:grid;background-color:#f3f3f3;overflow:hidden;-webkit-user-select:none;user-select:none}:host::ng-deep *{font-family:Segoe UI,Arial,sans-serif;font-size:10pt;color:#000}@media (prefers-color-scheme: dark){:host{background-color:#202020}:host::ng-deep *{color:#fff}}\n"] }]
|
|
1625
|
+
}], propDecorators: { onContextMenu: [{
|
|
1626
|
+
type: HostListener,
|
|
1627
|
+
args: ['contextmenu', ['$event']]
|
|
1628
|
+
}] } });
|
|
917
1629
|
|
|
918
1630
|
/*
|
|
919
1631
|
* Public API Surface of xaml-ui
|
|
920
1632
|
*/
|
|
1633
|
+
//Basic input
|
|
921
1634
|
|
|
922
1635
|
/**
|
|
923
1636
|
* Generated bundle index. Do not edit.
|
|
924
1637
|
*/
|
|
925
1638
|
|
|
926
|
-
export {
|
|
1639
|
+
export { BorderComponent, ButtonComponent, CheckBoxComponent, ComboBoxComponent, DropDownButtonComponent, FlyoutComponent, FontIconComponent, FrameworkElementComponent, GridColumnDirective, GridColumnSpanDirective, GridComponent, GridDirective, GridModule, GridProperty, GridRowDirective, GridRowSpanDirective, ListBoxComponent, ListViewComponent, PanelComponent, PopupComponent, RadioButtonComponent, RadioButtonGroup, ScrollBarComponent, ScrollViewerComponent, SelectorComponent, SelectorItemTemplate, SliderComponent, StackPanelComponent, TextBlockComponent, TextBoxComponent, ToggleButtonComponent, ToggleSwitchComponent, ToolTipDirective, ToolTipServiceModule, XamlRootComponent, toAlignment, toJustification };
|
|
927
1640
|
//# sourceMappingURL=xaml-ui.mjs.map
|