xaml-ui 1.0.12 → 1.0.14
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 +275 -162
- package/fesm2022/xaml-ui.mjs.map +1 -1
- package/lib/Common.d.ts +1 -0
- package/lib/status-and-info/ProgressBar.d.ts +15 -0
- package/lib/status-and-info/ProgressRing.d.ts +17 -0
- package/lib/text/TextBox.d.ts +5 -2
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
package/fesm2022/xaml-ui.mjs
CHANGED
|
@@ -1921,6 +1921,157 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
1921
1921
|
args: ['xaml-dialog-presenter']
|
|
1922
1922
|
}] } });
|
|
1923
1923
|
|
|
1924
|
+
class TextBlockComponent extends FrameworkElementComponent {
|
|
1925
|
+
constructor() {
|
|
1926
|
+
super(...arguments);
|
|
1927
|
+
this.FontWeight = 'Normal';
|
|
1928
|
+
this.TextAlignment = 'Left';
|
|
1929
|
+
this.TextTrimming = 'None';
|
|
1930
|
+
this.TextWrapping = 'NoWrap';
|
|
1931
|
+
}
|
|
1932
|
+
get width() {
|
|
1933
|
+
if (this.Width !== undefined)
|
|
1934
|
+
return this.Width;
|
|
1935
|
+
return this.HorizontalAlignment === 'Stretch' || this.TextTrimming !== 'None' ? undefined : 'min-content';
|
|
1936
|
+
}
|
|
1937
|
+
get minWidth() {
|
|
1938
|
+
if (this.MinWidth !== undefined)
|
|
1939
|
+
return this.MinWidth;
|
|
1940
|
+
return this.MaxWidth === undefined && this.HorizontalAlignment === 'Stretch' && this.TextTrimming === 'None' ? 'min-content' : undefined;
|
|
1941
|
+
}
|
|
1942
|
+
get fontWeight() {
|
|
1943
|
+
return TextBlockComponent.ToFontWeight(this.FontWeight);
|
|
1944
|
+
}
|
|
1945
|
+
static ToFontWeight(value) {
|
|
1946
|
+
switch (value) {
|
|
1947
|
+
case 'Black':
|
|
1948
|
+
return 900;
|
|
1949
|
+
case 'Bold':
|
|
1950
|
+
return 700;
|
|
1951
|
+
case 'ExtraBlack':
|
|
1952
|
+
return 950;
|
|
1953
|
+
case 'ExtraBold':
|
|
1954
|
+
return 800;
|
|
1955
|
+
case 'ExtraLight':
|
|
1956
|
+
return 200;
|
|
1957
|
+
case 'Light':
|
|
1958
|
+
return 300;
|
|
1959
|
+
case 'Medium':
|
|
1960
|
+
return 500;
|
|
1961
|
+
case 'Normal':
|
|
1962
|
+
return 400;
|
|
1963
|
+
case 'SemiBold':
|
|
1964
|
+
return 600;
|
|
1965
|
+
case 'SemiLight':
|
|
1966
|
+
return 350;
|
|
1967
|
+
case 'Thin':
|
|
1968
|
+
return 100;
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
get userSelect() {
|
|
1972
|
+
return this.IsTextSelectionEnabled === 'True' ? 'text' : 'none';
|
|
1973
|
+
}
|
|
1974
|
+
get textDecorationLine() {
|
|
1975
|
+
switch (this.TextDecorations) {
|
|
1976
|
+
case 'None':
|
|
1977
|
+
return 'none';
|
|
1978
|
+
case 'Strikethrough':
|
|
1979
|
+
return 'line-through';
|
|
1980
|
+
case 'Underline':
|
|
1981
|
+
return 'underline';
|
|
1982
|
+
default:
|
|
1983
|
+
return undefined;
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
get textOverflow() {
|
|
1987
|
+
switch (this.TextTrimming) {
|
|
1988
|
+
case 'None':
|
|
1989
|
+
case 'Clip':
|
|
1990
|
+
return 'clip';
|
|
1991
|
+
case 'CharacterEllipsis':
|
|
1992
|
+
return 'Ellipsis';
|
|
1993
|
+
default:
|
|
1994
|
+
return undefined;
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
get whiteSpace() {
|
|
1998
|
+
switch (this.TextWrapping) {
|
|
1999
|
+
case 'NoWrap':
|
|
2000
|
+
return 'nowrap';
|
|
2001
|
+
case 'Wrap':
|
|
2002
|
+
return 'pre-line';
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBlockComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2006
|
+
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>
|
|
2007
|
+
<ng-content *ngIf="Text === undefined"/>
|
|
2008
|
+
<ng-container *ngIf="Text !== undefined">{{Text}}</ng-container>
|
|
2009
|
+
</ng-container>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2010
|
+
}
|
|
2011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBlockComponent, decorators: [{
|
|
2012
|
+
type: Component,
|
|
2013
|
+
args: [{
|
|
2014
|
+
selector: 'TextBlock',
|
|
2015
|
+
imports: [CommonModule],
|
|
2016
|
+
template: `<ng-container>
|
|
2017
|
+
<ng-content *ngIf="Text === undefined"/>
|
|
2018
|
+
<ng-container *ngIf="Text !== undefined">{{Text}}</ng-container>
|
|
2019
|
+
</ng-container>`
|
|
2020
|
+
}]
|
|
2021
|
+
}], propDecorators: { FontFamily: [{
|
|
2022
|
+
type: Input
|
|
2023
|
+
}, {
|
|
2024
|
+
type: HostBinding,
|
|
2025
|
+
args: ['style.font-family']
|
|
2026
|
+
}], Text: [{
|
|
2027
|
+
type: Input
|
|
2028
|
+
}], FontSize: [{
|
|
2029
|
+
type: Input
|
|
2030
|
+
}, {
|
|
2031
|
+
type: HostBinding,
|
|
2032
|
+
args: ['style.font-size']
|
|
2033
|
+
}], FontStyle: [{
|
|
2034
|
+
type: Input
|
|
2035
|
+
}, {
|
|
2036
|
+
type: HostBinding,
|
|
2037
|
+
args: ['style.font-style']
|
|
2038
|
+
}], FontWeight: [{
|
|
2039
|
+
type: Input
|
|
2040
|
+
}], Foreground: [{
|
|
2041
|
+
type: Input
|
|
2042
|
+
}, {
|
|
2043
|
+
type: HostBinding,
|
|
2044
|
+
args: ['style.color']
|
|
2045
|
+
}], TextAlignment: [{
|
|
2046
|
+
type: Input
|
|
2047
|
+
}, {
|
|
2048
|
+
type: HostBinding,
|
|
2049
|
+
args: ['style.text-align']
|
|
2050
|
+
}], IsTextSelectionEnabled: [{
|
|
2051
|
+
type: Input
|
|
2052
|
+
}], TextDecorations: [{
|
|
2053
|
+
type: Input
|
|
2054
|
+
}], TextTrimming: [{
|
|
2055
|
+
type: Input
|
|
2056
|
+
}], TextWrapping: [{
|
|
2057
|
+
type: Input
|
|
2058
|
+
}], fontWeight: [{
|
|
2059
|
+
type: HostBinding,
|
|
2060
|
+
args: ['style.font-weight']
|
|
2061
|
+
}], userSelect: [{
|
|
2062
|
+
type: HostBinding,
|
|
2063
|
+
args: ['style.user-select']
|
|
2064
|
+
}], textDecorationLine: [{
|
|
2065
|
+
type: HostBinding,
|
|
2066
|
+
args: ['style.text-decoration-line']
|
|
2067
|
+
}], textOverflow: [{
|
|
2068
|
+
type: HostBinding,
|
|
2069
|
+
args: ['style.text-overflow']
|
|
2070
|
+
}], whiteSpace: [{
|
|
2071
|
+
type: HostBinding,
|
|
2072
|
+
args: ['style.white-space']
|
|
2073
|
+
}] } });
|
|
2074
|
+
|
|
1924
2075
|
var ContentDialogResult;
|
|
1925
2076
|
(function (ContentDialogResult) {
|
|
1926
2077
|
ContentDialogResult[ContentDialogResult["None"] = 0] = "None";
|
|
@@ -1981,7 +2132,7 @@ class ContentDialog extends Dialog {
|
|
|
1981
2132
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ContentDialog, isStandalone: true, selector: "ContentDialog", inputs: { Title: "Title", PrimaryButtonText: "PrimaryButtonText", IsPrimaryButtonEnabled: "IsPrimaryButtonEnabled", SecondaryButtonText: "SecondaryButtonText", IsSecondaryButtonEnabled: "IsSecondaryButtonEnabled", CloseButtonText: "CloseButtonText", Content: "Content", DefaultButton: "DefaultButton" }, outputs: { PrimaryButtonClicked: "PrimaryButtonClicked", SecondaryButtonClicked: "SecondaryButtonClicked", CloseButtonClicked: "CloseButtonClicked" }, usesInheritance: true, ngImport: i0, template: `<ng-template #template>
|
|
1982
2133
|
<DialogPresenter>
|
|
1983
2134
|
<div Header>{{Title}}</div>
|
|
1984
|
-
{{Content}}
|
|
2135
|
+
<TextBlock TextWrapping="Wrap">{{Content}}</TextBlock>
|
|
1985
2136
|
<ng-content/>
|
|
1986
2137
|
<Grid RowDefinitions="auto" Orientation="Horizontal" ColumnSpacing="6px" AutoColumnDefinition="minmax(0, 1fr)" Footer>
|
|
1987
2138
|
<Button *ngIf="PrimaryButtonText !== undefined" [IsEnabled]="IsPrimaryButtonEnabled" (Click)="onPrimaryButtonClicked()" [class.AccentButtonStyle]="isPrimaryButtonDefault">{{PrimaryButtonText}}</Button>
|
|
@@ -1989,14 +2140,14 @@ class ContentDialog extends Dialog {
|
|
|
1989
2140
|
<Button *ngIf="CloseButtonText !== undefined" (Click)="onCloseButtonClicked()" [class.AccentButtonStyle]="isCloseButtonDefault">{{CloseButtonText}}</Button>
|
|
1990
2141
|
</Grid>
|
|
1991
2142
|
</DialogPresenter>
|
|
1992
|
-
</ng-template>`, isInline: true, styles: [""], dependencies: [{ kind: "component", type: DialogPresenter, selector: "DialogPresenter", inputs: ["IsVisible"] }, { kind: "ngmodule", type: GridModule }, { kind: "component", type: GridComponent, selector: "Grid", inputs: ["ColumnDefinitions", "RowDefinitions", "AutoColumnDefinition", "AutoRowDefinition", "ColumnSpacing", "RowSpacing", "Orientation"] }, { kind: "component", type: ButtonComponent, selector: "Button", inputs: ["IsEnabled", "HorizontalContentAlignment", "VerticalContentAlignment"], outputs: ["Click"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2143
|
+
</ng-template>`, isInline: true, styles: [""], dependencies: [{ kind: "component", type: DialogPresenter, selector: "DialogPresenter", inputs: ["IsVisible"] }, { kind: "ngmodule", type: GridModule }, { kind: "component", type: GridComponent, selector: "Grid", inputs: ["ColumnDefinitions", "RowDefinitions", "AutoColumnDefinition", "AutoRowDefinition", "ColumnSpacing", "RowSpacing", "Orientation"] }, { kind: "component", type: ButtonComponent, selector: "Button", inputs: ["IsEnabled", "HorizontalContentAlignment", "VerticalContentAlignment"], outputs: ["Click"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TextBlockComponent, selector: "TextBlock", inputs: ["FontFamily", "Text", "FontSize", "FontStyle", "FontWeight", "Foreground", "TextAlignment", "IsTextSelectionEnabled", "TextDecorations", "TextTrimming", "TextWrapping"] }] }); }
|
|
1993
2144
|
}
|
|
1994
2145
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ContentDialog, decorators: [{
|
|
1995
2146
|
type: Component,
|
|
1996
2147
|
args: [{ selector: 'ContentDialog', template: `<ng-template #template>
|
|
1997
2148
|
<DialogPresenter>
|
|
1998
2149
|
<div Header>{{Title}}</div>
|
|
1999
|
-
{{Content}}
|
|
2150
|
+
<TextBlock TextWrapping="Wrap">{{Content}}</TextBlock>
|
|
2000
2151
|
<ng-content/>
|
|
2001
2152
|
<Grid RowDefinitions="auto" Orientation="Horizontal" ColumnSpacing="6px" AutoColumnDefinition="minmax(0, 1fr)" Footer>
|
|
2002
2153
|
<Button *ngIf="PrimaryButtonText !== undefined" [IsEnabled]="IsPrimaryButtonEnabled" (Click)="onPrimaryButtonClicked()" [class.AccentButtonStyle]="isPrimaryButtonDefault">{{PrimaryButtonText}}</Button>
|
|
@@ -2004,7 +2155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2004
2155
|
<Button *ngIf="CloseButtonText !== undefined" (Click)="onCloseButtonClicked()" [class.AccentButtonStyle]="isCloseButtonDefault">{{CloseButtonText}}</Button>
|
|
2005
2156
|
</Grid>
|
|
2006
2157
|
</DialogPresenter>
|
|
2007
|
-
</ng-template>`, imports: [DialogPresenter, GridModule, ButtonComponent, CommonModule] }]
|
|
2158
|
+
</ng-template>`, imports: [DialogPresenter, GridModule, ButtonComponent, CommonModule, TextBlockComponent] }]
|
|
2008
2159
|
}], propDecorators: { Title: [{
|
|
2009
2160
|
type: Input
|
|
2010
2161
|
}], PrimaryButtonText: [{
|
|
@@ -2127,157 +2278,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2127
2278
|
}]
|
|
2128
2279
|
}], ctorParameters: () => [{ type: ItemContainerComponent }, { type: i0.ViewContainerRef }] });
|
|
2129
2280
|
|
|
2130
|
-
class TextBlockComponent extends FrameworkElementComponent {
|
|
2131
|
-
constructor() {
|
|
2132
|
-
super(...arguments);
|
|
2133
|
-
this.FontWeight = 'Normal';
|
|
2134
|
-
this.TextAlignment = 'Left';
|
|
2135
|
-
this.TextTrimming = 'None';
|
|
2136
|
-
this.TextWrapping = 'NoWrap';
|
|
2137
|
-
}
|
|
2138
|
-
get width() {
|
|
2139
|
-
if (this.Width !== undefined)
|
|
2140
|
-
return this.Width;
|
|
2141
|
-
return this.HorizontalAlignment === 'Stretch' || this.TextTrimming !== 'None' ? undefined : 'min-content';
|
|
2142
|
-
}
|
|
2143
|
-
get minWidth() {
|
|
2144
|
-
if (this.MinWidth !== undefined)
|
|
2145
|
-
return this.MinWidth;
|
|
2146
|
-
return this.MaxWidth === undefined && this.HorizontalAlignment === 'Stretch' && this.TextTrimming === 'None' ? 'min-content' : undefined;
|
|
2147
|
-
}
|
|
2148
|
-
get fontWeight() {
|
|
2149
|
-
return TextBlockComponent.ToFontWeight(this.FontWeight);
|
|
2150
|
-
}
|
|
2151
|
-
static ToFontWeight(value) {
|
|
2152
|
-
switch (value) {
|
|
2153
|
-
case 'Black':
|
|
2154
|
-
return 900;
|
|
2155
|
-
case 'Bold':
|
|
2156
|
-
return 700;
|
|
2157
|
-
case 'ExtraBlack':
|
|
2158
|
-
return 950;
|
|
2159
|
-
case 'ExtraBold':
|
|
2160
|
-
return 800;
|
|
2161
|
-
case 'ExtraLight':
|
|
2162
|
-
return 200;
|
|
2163
|
-
case 'Light':
|
|
2164
|
-
return 300;
|
|
2165
|
-
case 'Medium':
|
|
2166
|
-
return 500;
|
|
2167
|
-
case 'Normal':
|
|
2168
|
-
return 400;
|
|
2169
|
-
case 'SemiBold':
|
|
2170
|
-
return 600;
|
|
2171
|
-
case 'SemiLight':
|
|
2172
|
-
return 350;
|
|
2173
|
-
case 'Thin':
|
|
2174
|
-
return 100;
|
|
2175
|
-
}
|
|
2176
|
-
}
|
|
2177
|
-
get userSelect() {
|
|
2178
|
-
return this.IsTextSelectionEnabled === 'True' ? 'text' : 'none';
|
|
2179
|
-
}
|
|
2180
|
-
get textDecorationLine() {
|
|
2181
|
-
switch (this.TextDecorations) {
|
|
2182
|
-
case 'None':
|
|
2183
|
-
return 'none';
|
|
2184
|
-
case 'Strikethrough':
|
|
2185
|
-
return 'line-through';
|
|
2186
|
-
case 'Underline':
|
|
2187
|
-
return 'underline';
|
|
2188
|
-
default:
|
|
2189
|
-
return undefined;
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
|
-
get textOverflow() {
|
|
2193
|
-
switch (this.TextTrimming) {
|
|
2194
|
-
case 'None':
|
|
2195
|
-
case 'Clip':
|
|
2196
|
-
return 'clip';
|
|
2197
|
-
case 'CharacterEllipsis':
|
|
2198
|
-
return 'Ellipsis';
|
|
2199
|
-
default:
|
|
2200
|
-
return undefined;
|
|
2201
|
-
}
|
|
2202
|
-
}
|
|
2203
|
-
get whiteSpace() {
|
|
2204
|
-
switch (this.TextWrapping) {
|
|
2205
|
-
case 'NoWrap':
|
|
2206
|
-
return 'nowrap';
|
|
2207
|
-
case 'Wrap':
|
|
2208
|
-
return 'normal';
|
|
2209
|
-
}
|
|
2210
|
-
}
|
|
2211
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBlockComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2212
|
-
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>
|
|
2213
|
-
<ng-content *ngIf="Text === undefined"/>
|
|
2214
|
-
<ng-container *ngIf="Text !== undefined">{{Text}}</ng-container>
|
|
2215
|
-
</ng-container>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2216
|
-
}
|
|
2217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBlockComponent, decorators: [{
|
|
2218
|
-
type: Component,
|
|
2219
|
-
args: [{
|
|
2220
|
-
selector: 'TextBlock',
|
|
2221
|
-
imports: [CommonModule],
|
|
2222
|
-
template: `<ng-container>
|
|
2223
|
-
<ng-content *ngIf="Text === undefined"/>
|
|
2224
|
-
<ng-container *ngIf="Text !== undefined">{{Text}}</ng-container>
|
|
2225
|
-
</ng-container>`
|
|
2226
|
-
}]
|
|
2227
|
-
}], propDecorators: { FontFamily: [{
|
|
2228
|
-
type: Input
|
|
2229
|
-
}, {
|
|
2230
|
-
type: HostBinding,
|
|
2231
|
-
args: ['style.font-family']
|
|
2232
|
-
}], Text: [{
|
|
2233
|
-
type: Input
|
|
2234
|
-
}], FontSize: [{
|
|
2235
|
-
type: Input
|
|
2236
|
-
}, {
|
|
2237
|
-
type: HostBinding,
|
|
2238
|
-
args: ['style.font-size']
|
|
2239
|
-
}], FontStyle: [{
|
|
2240
|
-
type: Input
|
|
2241
|
-
}, {
|
|
2242
|
-
type: HostBinding,
|
|
2243
|
-
args: ['style.font-style']
|
|
2244
|
-
}], FontWeight: [{
|
|
2245
|
-
type: Input
|
|
2246
|
-
}], Foreground: [{
|
|
2247
|
-
type: Input
|
|
2248
|
-
}, {
|
|
2249
|
-
type: HostBinding,
|
|
2250
|
-
args: ['style.color']
|
|
2251
|
-
}], TextAlignment: [{
|
|
2252
|
-
type: Input
|
|
2253
|
-
}, {
|
|
2254
|
-
type: HostBinding,
|
|
2255
|
-
args: ['style.text-align']
|
|
2256
|
-
}], IsTextSelectionEnabled: [{
|
|
2257
|
-
type: Input
|
|
2258
|
-
}], TextDecorations: [{
|
|
2259
|
-
type: Input
|
|
2260
|
-
}], TextTrimming: [{
|
|
2261
|
-
type: Input
|
|
2262
|
-
}], TextWrapping: [{
|
|
2263
|
-
type: Input
|
|
2264
|
-
}], fontWeight: [{
|
|
2265
|
-
type: HostBinding,
|
|
2266
|
-
args: ['style.font-weight']
|
|
2267
|
-
}], userSelect: [{
|
|
2268
|
-
type: HostBinding,
|
|
2269
|
-
args: ['style.user-select']
|
|
2270
|
-
}], textDecorationLine: [{
|
|
2271
|
-
type: HostBinding,
|
|
2272
|
-
args: ['style.text-decoration-line']
|
|
2273
|
-
}], textOverflow: [{
|
|
2274
|
-
type: HostBinding,
|
|
2275
|
-
args: ['style.text-overflow']
|
|
2276
|
-
}], whiteSpace: [{
|
|
2277
|
-
type: HostBinding,
|
|
2278
|
-
args: ['style.white-space']
|
|
2279
|
-
}] } });
|
|
2280
|
-
|
|
2281
2281
|
class FontIconComponent extends FrameworkElementComponent {
|
|
2282
2282
|
constructor() {
|
|
2283
2283
|
super(...arguments);
|
|
@@ -2520,6 +2520,108 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2520
2520
|
}]
|
|
2521
2521
|
}] });
|
|
2522
2522
|
|
|
2523
|
+
class ProgressBarComponent extends FrameworkElementComponent {
|
|
2524
|
+
constructor() {
|
|
2525
|
+
super(...arguments);
|
|
2526
|
+
this.Minimum = 0;
|
|
2527
|
+
this.Maximum = 1;
|
|
2528
|
+
this.Value = 0;
|
|
2529
|
+
this.IsIndeterminate = false;
|
|
2530
|
+
}
|
|
2531
|
+
get indicatorStyle() {
|
|
2532
|
+
if (this.IsIndeterminate) {
|
|
2533
|
+
return {};
|
|
2534
|
+
}
|
|
2535
|
+
else {
|
|
2536
|
+
let width = ((this.Value - this.Minimum) / (this.Maximum - this.Minimum)) * 100;
|
|
2537
|
+
return {
|
|
2538
|
+
width: width + '%'
|
|
2539
|
+
};
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ProgressBarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2543
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ProgressBarComponent, isStandalone: true, selector: "ProgressBar", inputs: { Minimum: "Minimum", Maximum: "Maximum", Value: "Value", IsIndeterminate: "IsIndeterminate" }, host: { properties: { "class.indeterminate": "this.IsIndeterminate" } }, usesInheritance: true, ngImport: i0, template: `<div class="indicator" [ngStyle]="indicatorStyle"></div>`, isInline: true, styles: [":host{width:100%;height:4px;display:flex;align-items:center;overflow:hidden;position:relative}:host .indicator{height:100%;background:var(--AccentFillColorDefault);border-radius:var(--ControlCornerRadius);transition:width var(--ControlNormalAnimationDuration, .25s) cubic-bezier(.4,0,.2,1)}:host.indeterminate .indicator{position:absolute;left:0;width:30%;animation:indeterminate-bar 1.2s infinite linear}@keyframes indeterminate-bar{0%{left:-30%}to{left:100%}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
2544
|
+
}
|
|
2545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
2546
|
+
type: Component,
|
|
2547
|
+
args: [{ selector: 'ProgressBar', standalone: true, imports: [CommonModule], template: `<div class="indicator" [ngStyle]="indicatorStyle"></div>`, styles: [":host{width:100%;height:4px;display:flex;align-items:center;overflow:hidden;position:relative}:host .indicator{height:100%;background:var(--AccentFillColorDefault);border-radius:var(--ControlCornerRadius);transition:width var(--ControlNormalAnimationDuration, .25s) cubic-bezier(.4,0,.2,1)}:host.indeterminate .indicator{position:absolute;left:0;width:30%;animation:indeterminate-bar 1.2s infinite linear}@keyframes indeterminate-bar{0%{left:-30%}to{left:100%}}\n"] }]
|
|
2548
|
+
}], propDecorators: { Minimum: [{
|
|
2549
|
+
type: Input
|
|
2550
|
+
}], Maximum: [{
|
|
2551
|
+
type: Input
|
|
2552
|
+
}], Value: [{
|
|
2553
|
+
type: Input
|
|
2554
|
+
}], IsIndeterminate: [{
|
|
2555
|
+
type: HostBinding,
|
|
2556
|
+
args: ['class.indeterminate']
|
|
2557
|
+
}, {
|
|
2558
|
+
type: Input
|
|
2559
|
+
}] } });
|
|
2560
|
+
|
|
2561
|
+
class ProgressRingComponent extends FrameworkElementComponent {
|
|
2562
|
+
get indeterminateClass() {
|
|
2563
|
+
return this.IsIndeterminate;
|
|
2564
|
+
}
|
|
2565
|
+
constructor() {
|
|
2566
|
+
super();
|
|
2567
|
+
this.Minimum = 0;
|
|
2568
|
+
this.Maximum = 1;
|
|
2569
|
+
this.Value = 0;
|
|
2570
|
+
this.IsIndeterminate = false;
|
|
2571
|
+
this._size = 40;
|
|
2572
|
+
this._radius = 16;
|
|
2573
|
+
this._strokeWidth = 4;
|
|
2574
|
+
this._circumference = 2 * Math.PI * this._radius;
|
|
2575
|
+
this.Width = this._size + 'px';
|
|
2576
|
+
this.Height = this._size + 'px';
|
|
2577
|
+
}
|
|
2578
|
+
get dashOffset() {
|
|
2579
|
+
let progress = (this.Value - this.Minimum) / (this.Maximum - this.Minimum);
|
|
2580
|
+
return this._circumference * (1 - progress);
|
|
2581
|
+
}
|
|
2582
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ProgressRingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2583
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ProgressRingComponent, isStandalone: true, selector: "ProgressRing", inputs: { Minimum: "Minimum", Maximum: "Maximum", Value: "Value", IsIndeterminate: "IsIndeterminate" }, host: { properties: { "class.indeterminate": "this.indeterminateClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
2584
|
+
<svg class="progress-ring-svg" [attr.viewBox]="'0 0 ' + _size + ' ' + _size" [style.width]="Width" [style.height]="Height">
|
|
2585
|
+
<circle class="progress-ring-indicator"
|
|
2586
|
+
[attr.cx]="_size/2"
|
|
2587
|
+
[attr.cy]="_size/2"
|
|
2588
|
+
[attr.r]="_radius"
|
|
2589
|
+
fill="none"
|
|
2590
|
+
[attr.stroke-width]="_strokeWidth"
|
|
2591
|
+
[attr.stroke-dasharray]="_circumference"
|
|
2592
|
+
[attr.stroke-dashoffset]="IsIndeterminate ? null : dashOffset"
|
|
2593
|
+
/>
|
|
2594
|
+
</svg>
|
|
2595
|
+
`, isInline: true, styles: [":host{display:grid;align-items:center;justify-content:center}:host.indeterminate .progress-ring-indicator{animation:progress-ring-spin 1s linear infinite;stroke-dasharray:20 100;stroke-dashoffset:0;transform-origin:center}@keyframes progress-ring-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.progress-ring-svg{transform:rotate(-90deg)}.progress-ring-indicator{stroke:var(--AccentFillColorDefault);transition:stroke-dashoffset var(--ControlNormalAnimationDuration) cubic-bezier(.4,0,.2,1);stroke-linecap:round}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
2596
|
+
}
|
|
2597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ProgressRingComponent, decorators: [{
|
|
2598
|
+
type: Component,
|
|
2599
|
+
args: [{ selector: 'ProgressRing', standalone: true, imports: [CommonModule], template: `
|
|
2600
|
+
<svg class="progress-ring-svg" [attr.viewBox]="'0 0 ' + _size + ' ' + _size" [style.width]="Width" [style.height]="Height">
|
|
2601
|
+
<circle class="progress-ring-indicator"
|
|
2602
|
+
[attr.cx]="_size/2"
|
|
2603
|
+
[attr.cy]="_size/2"
|
|
2604
|
+
[attr.r]="_radius"
|
|
2605
|
+
fill="none"
|
|
2606
|
+
[attr.stroke-width]="_strokeWidth"
|
|
2607
|
+
[attr.stroke-dasharray]="_circumference"
|
|
2608
|
+
[attr.stroke-dashoffset]="IsIndeterminate ? null : dashOffset"
|
|
2609
|
+
/>
|
|
2610
|
+
</svg>
|
|
2611
|
+
`, styles: [":host{display:grid;align-items:center;justify-content:center}:host.indeterminate .progress-ring-indicator{animation:progress-ring-spin 1s linear infinite;stroke-dasharray:20 100;stroke-dashoffset:0;transform-origin:center}@keyframes progress-ring-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.progress-ring-svg{transform:rotate(-90deg)}.progress-ring-indicator{stroke:var(--AccentFillColorDefault);transition:stroke-dashoffset var(--ControlNormalAnimationDuration) cubic-bezier(.4,0,.2,1);stroke-linecap:round}\n"] }]
|
|
2612
|
+
}], ctorParameters: () => [], propDecorators: { Minimum: [{
|
|
2613
|
+
type: Input
|
|
2614
|
+
}], Maximum: [{
|
|
2615
|
+
type: Input
|
|
2616
|
+
}], Value: [{
|
|
2617
|
+
type: Input
|
|
2618
|
+
}], IsIndeterminate: [{
|
|
2619
|
+
type: Input
|
|
2620
|
+
}], indeterminateClass: [{
|
|
2621
|
+
type: HostBinding,
|
|
2622
|
+
args: ['class.indeterminate']
|
|
2623
|
+
}] } });
|
|
2624
|
+
|
|
2523
2625
|
class NumberBoxComponent extends FrameworkElementComponent {
|
|
2524
2626
|
get flyoutTarget() {
|
|
2525
2627
|
return this._input?.nativeElement;
|
|
@@ -2653,7 +2755,7 @@ class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
2653
2755
|
<RepeatButton Class="InlineButtonStyle" (Click)="onDecreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph=""/></RepeatButton>
|
|
2654
2756
|
</Flyout>
|
|
2655
2757
|
<div class="unit" *ngIf="Unit !== undefined">{{Unit}}</div>
|
|
2656
|
-
</label>`, isInline: true, styles: [":host{position:relative}:host{display:grid;cursor:text;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)}:host:hover{background-color:var(--ControlFillColorSecondary)}:host:focus-within,:host:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}:host.disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault)}textarea{resize:none}
|
|
2758
|
+
</label>`, isInline: true, styles: [":host{position:relative}:host{display:grid;cursor:text;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)}:host:hover{background-color:var(--ControlFillColorSecondary)}:host:focus-within,:host:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}:host.disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault)}textarea{resize:none}.text-box{background-color:transparent;border:0 none transparent;outline:0 none transparent;color:var(--TextFillColorPrimary);font-family:var(--SystemFontFamily);font-size:var(--SystemFontSize)}.text-box::placeholder{color:var(--TextFillColorSecondary)}.text-box:disabled{color:var(--TextFillColorDisabled)}::selection{background-color:var(--SystemAccentColor)}\n", "label{display:grid;position:relative;grid-template-columns:auto 1fr auto auto}.icon{align-self:center;font-family:var(--SymbolFontFamily);color:var(--TextFillColorSecondary);pointer-events:none}.unit{align-self:center;color:var(--TextFillColorSecondary);pointer-events:none}.InlineButtonStyle{padding:5px}input:focus+.popup,input:active+.popup{display:flex}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: RepeatButtonComponent, selector: "RepeatButton", inputs: ["Delay", "Interval"] }, { kind: "component", type: FontIconComponent, selector: "FontIcon", inputs: ["FontFamily", "FontSize", "FontStyle", "Foreground", "FontWeight", "Glyph"] }, { kind: "component", type: FlyoutComponent, selector: "Flyout" }] }); }
|
|
2657
2759
|
}
|
|
2658
2760
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NumberBoxComponent, decorators: [{
|
|
2659
2761
|
type: Component,
|
|
@@ -2665,7 +2767,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2665
2767
|
<RepeatButton Class="InlineButtonStyle" (Click)="onDecreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph=""/></RepeatButton>
|
|
2666
2768
|
</Flyout>
|
|
2667
2769
|
<div class="unit" *ngIf="Unit !== undefined">{{Unit}}</div>
|
|
2668
|
-
</label>`, imports: [CommonModule, RepeatButtonComponent, FontIconComponent, FlyoutComponent], styles: [":host{position:relative}:host{display:grid;cursor:text;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)}:host:hover{background-color:var(--ControlFillColorSecondary)}:host:focus-within,:host:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}:host.disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault)}textarea{resize:none}
|
|
2770
|
+
</label>`, imports: [CommonModule, RepeatButtonComponent, FontIconComponent, FlyoutComponent], styles: [":host{position:relative}:host{display:grid;cursor:text;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)}:host:hover{background-color:var(--ControlFillColorSecondary)}:host:focus-within,:host:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}:host.disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault)}textarea{resize:none}.text-box{background-color:transparent;border:0 none transparent;outline:0 none transparent;color:var(--TextFillColorPrimary);font-family:var(--SystemFontFamily);font-size:var(--SystemFontSize)}.text-box::placeholder{color:var(--TextFillColorSecondary)}.text-box:disabled{color:var(--TextFillColorDisabled)}::selection{background-color:var(--SystemAccentColor)}\n", "label{display:grid;position:relative;grid-template-columns:auto 1fr auto auto}.icon{align-self:center;font-family:var(--SymbolFontFamily);color:var(--TextFillColorSecondary);pointer-events:none}.unit{align-self:center;color:var(--TextFillColorSecondary);pointer-events:none}.InlineButtonStyle{padding:5px}input:focus+.popup,input:active+.popup{display:flex}\n"] }]
|
|
2669
2771
|
}], ctorParameters: () => [], propDecorators: { IsEnabled: [{
|
|
2670
2772
|
type: Input
|
|
2671
2773
|
}], PlaceholderText: [{
|
|
@@ -2716,6 +2818,7 @@ class TextBoxComponent extends FrameworkElementComponent {
|
|
|
2716
2818
|
this.PlaceholderText = '';
|
|
2717
2819
|
this.TextAlignment = 'Left';
|
|
2718
2820
|
this.TextWrapping = 'NoWrap';
|
|
2821
|
+
this.UpdateTrigger = 'PropertyChanged';
|
|
2719
2822
|
this._text = '';
|
|
2720
2823
|
this.TextChange = new EventEmitter();
|
|
2721
2824
|
}
|
|
@@ -2729,6 +2832,14 @@ class TextBoxComponent extends FrameworkElementComponent {
|
|
|
2729
2832
|
this.TextChange.emit(value);
|
|
2730
2833
|
}
|
|
2731
2834
|
onInput(event) {
|
|
2835
|
+
if (this.UpdateTrigger == 'PropertyChanged')
|
|
2836
|
+
this.update(event);
|
|
2837
|
+
}
|
|
2838
|
+
onBlur(event) {
|
|
2839
|
+
if (this.UpdateTrigger == 'LostFocus')
|
|
2840
|
+
this.update(event);
|
|
2841
|
+
}
|
|
2842
|
+
update(event) {
|
|
2732
2843
|
this.Text = (event.target).value;
|
|
2733
2844
|
}
|
|
2734
2845
|
get disabled() {
|
|
@@ -2746,13 +2857,13 @@ class TextBoxComponent extends FrameworkElementComponent {
|
|
|
2746
2857
|
}, 0);
|
|
2747
2858
|
}
|
|
2748
2859
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2749
|
-
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: { "click": "onClick()", "contextmenu": "onContextMenu($event)" }, properties: { "class.disabled": "this.disabled" } }, viewQueries: [{ propertyName: "_input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<input #input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (input)="onInput($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"/>
|
|
2750
|
-
<textarea *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (
|
|
2860
|
+
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", UpdateTrigger: "UpdateTrigger", Text: "Text" }, outputs: { TextChange: "TextChange" }, host: { listeners: { "click": "onClick()", "contextmenu": "onContextMenu($event)" }, properties: { "class.disabled": "this.disabled" } }, viewQueries: [{ propertyName: "_input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<input class="text-box" #input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (input)="onInput($event)" (blur)="onBlur($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"/>
|
|
2861
|
+
<textarea class="text-box" #input *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (input)="onInput($event)" (blur)="onBlur($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"></textarea>`, isInline: true, styles: [":host{position:relative}:host{display:grid;cursor:text;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)}:host:hover{background-color:var(--ControlFillColorSecondary)}:host:focus-within,:host:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}:host.disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault)}textarea{resize:none}.text-box{background-color:transparent;border:0 none transparent;outline:0 none transparent;color:var(--TextFillColorPrimary);font-family:var(--SystemFontFamily);font-size:var(--SystemFontSize)}.text-box::placeholder{color:var(--TextFillColorSecondary)}.text-box:disabled{color:var(--TextFillColorDisabled)}::selection{background-color:var(--SystemAccentColor)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2751
2862
|
}
|
|
2752
2863
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBoxComponent, decorators: [{
|
|
2753
2864
|
type: Component,
|
|
2754
|
-
args: [{ selector: 'TextBox', imports: [CommonModule], template: `<input #input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (input)="onInput($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"/>
|
|
2755
|
-
<textarea *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (
|
|
2865
|
+
args: [{ selector: 'TextBox', imports: [CommonModule], template: `<input class="text-box" #input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (input)="onInput($event)" (blur)="onBlur($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"/>
|
|
2866
|
+
<textarea class="text-box" #input *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (input)="onInput($event)" (blur)="onBlur($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"></textarea>`, styles: [":host{position:relative}:host{display:grid;cursor:text;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)}:host:hover{background-color:var(--ControlFillColorSecondary)}:host:focus-within,:host:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}:host.disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault)}textarea{resize:none}.text-box{background-color:transparent;border:0 none transparent;outline:0 none transparent;color:var(--TextFillColorPrimary);font-family:var(--SystemFontFamily);font-size:var(--SystemFontSize)}.text-box::placeholder{color:var(--TextFillColorSecondary)}.text-box:disabled{color:var(--TextFillColorDisabled)}::selection{background-color:var(--SystemAccentColor)}\n"] }]
|
|
2756
2867
|
}], propDecorators: { IsEnabled: [{
|
|
2757
2868
|
type: Input
|
|
2758
2869
|
}], PlaceholderText: [{
|
|
@@ -2761,6 +2872,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2761
2872
|
type: Input
|
|
2762
2873
|
}], TextWrapping: [{
|
|
2763
2874
|
type: Input
|
|
2875
|
+
}], UpdateTrigger: [{
|
|
2876
|
+
type: Input
|
|
2764
2877
|
}], _input: [{
|
|
2765
2878
|
type: ViewChild,
|
|
2766
2879
|
args: ['input']
|
|
@@ -2788,5 +2901,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2788
2901
|
* Generated bundle index. Do not edit.
|
|
2789
2902
|
*/
|
|
2790
2903
|
|
|
2791
|
-
export { AppBarButtonComponent, BorderComponent, ButtonComponent, CheckBoxComponent, ColorPickerComponent, ComboBoxComponent, CommandBarComponent, ContentDialog, ContentDialogButton, ContentDialogResult, ContextFlyoutDirective, Dialog, DialogPresenter, DropDownButtonComponent, FlyoutBaseComponent, FlyoutComponent, FlyoutDirective, FlyoutPresenter, FontIconComponent, FrameworkElementComponent, GridColumnDirective, GridColumnSpanDirective, GridComponent, GridDirective, GridModule, GridProperty, GridRowDirective, GridRowSpanDirective, ImageComponent, ItemFlyoutDirective, ListBoxComponent, ListViewComponent, MenuFlyoutComponent, MenuFlyoutItemBase, MenuFlyoutItemComponent, MenuFlyoutSeparator, NumberBoxComponent, PanelComponent, PopupTemplate, RadioButtonComponent, RadioButtonGroupComponent, RadioToggleButtonComponent, RepeatButtonComponent, ScrollBarComponent, ScrollViewerComponent, SelectorComponent, SelectorItemTemplate, SliderComponent, SplitButtonComponent, StackPanelComponent, TextBlockComponent, TextBoxComponent, ToggleButtonComponent, ToggleMenuFlyoutItemComponent, ToggleSwitchComponent, ToolTipDirective, ToolTipServiceModule, XamlRootComponent, colorToRgb, colorToString, resume_after, resume_on_event, rgbToHsl, stringToColor, toAlignment, toJustification };
|
|
2904
|
+
export { AppBarButtonComponent, BorderComponent, ButtonComponent, CheckBoxComponent, ColorPickerComponent, ComboBoxComponent, CommandBarComponent, ContentDialog, ContentDialogButton, ContentDialogResult, ContextFlyoutDirective, Dialog, DialogPresenter, DropDownButtonComponent, FlyoutBaseComponent, FlyoutComponent, FlyoutDirective, FlyoutPresenter, FontIconComponent, FrameworkElementComponent, GridColumnDirective, GridColumnSpanDirective, GridComponent, GridDirective, GridModule, GridProperty, GridRowDirective, GridRowSpanDirective, ImageComponent, ItemFlyoutDirective, ListBoxComponent, ListViewComponent, MenuFlyoutComponent, MenuFlyoutItemBase, MenuFlyoutItemComponent, MenuFlyoutSeparator, NumberBoxComponent, PanelComponent, PopupTemplate, ProgressBarComponent, ProgressRingComponent, RadioButtonComponent, RadioButtonGroupComponent, RadioToggleButtonComponent, RepeatButtonComponent, ScrollBarComponent, ScrollViewerComponent, SelectorComponent, SelectorItemTemplate, SliderComponent, SplitButtonComponent, StackPanelComponent, TextBlockComponent, TextBoxComponent, ToggleButtonComponent, ToggleMenuFlyoutItemComponent, ToggleSwitchComponent, ToolTipDirective, ToolTipServiceModule, XamlRootComponent, colorToRgb, colorToString, resume_after, resume_on_event, rgbToHsl, stringToColor, toAlignment, toJustification };
|
|
2792
2905
|
//# sourceMappingURL=xaml-ui.mjs.map
|