xaml-ui 1.0.11 → 1.0.13

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.
@@ -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,110 +2278,25 @@ 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 {
2281
+ class FontIconComponent extends FrameworkElementComponent {
2131
2282
  constructor() {
2132
2283
  super(...arguments);
2133
2284
  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
2285
  }
2148
2286
  get fontWeight() {
2149
2287
  return TextBlockComponent.ToFontWeight(this.FontWeight);
2150
2288
  }
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"] }] }); }
2289
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FontIconComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2290
+ 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", Foreground: "Foreground", FontWeight: "FontWeight", Glyph: "Glyph" }, host: { properties: { "style.font-family": "this.FontFamily", "style.font-size": "this.FontSize", "style.font-style": "this.FontStyle", "style.color": "this.Foreground", "style.font-weight": "this.fontWeight" } }, usesInheritance: true, ngImport: i0, template: `{{Glyph}}`, isInline: true, styles: [":host{font-family:Segoe Fluent Icons,Segoe MDL2 Assets}\n"] }); }
2216
2291
  }
2217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBlockComponent, decorators: [{
2292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FontIconComponent, decorators: [{
2218
2293
  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
- }]
2294
+ args: [{ selector: 'FontIcon', template: `{{Glyph}}`, styles: [":host{font-family:Segoe Fluent Icons,Segoe MDL2 Assets}\n"] }]
2227
2295
  }], propDecorators: { FontFamily: [{
2228
2296
  type: Input
2229
2297
  }, {
2230
2298
  type: HostBinding,
2231
2299
  args: ['style.font-family']
2232
- }], Text: [{
2233
- type: Input
2234
2300
  }], FontSize: [{
2235
2301
  type: Input
2236
2302
  }, {
@@ -2241,72 +2307,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
2241
2307
  }, {
2242
2308
  type: HostBinding,
2243
2309
  args: ['style.font-style']
2244
- }], FontWeight: [{
2245
- type: Input
2246
2310
  }], Foreground: [{
2247
2311
  type: Input
2248
2312
  }, {
2249
2313
  type: HostBinding,
2250
2314
  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
- class FontIconComponent extends FrameworkElementComponent {
2282
- constructor() {
2283
- super(...arguments);
2284
- this.FontWeight = 'Normal';
2285
- }
2286
- get fontWeight() {
2287
- return TextBlockComponent.ToFontWeight(this.FontWeight);
2288
- }
2289
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FontIconComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2290
- 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"] }); }
2291
- }
2292
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FontIconComponent, decorators: [{
2293
- type: Component,
2294
- args: [{ selector: 'FontIcon', template: `{{Glyph}}`, styles: [":host{font-family:Segoe Fluent Icons,Segoe MDL2 Assets}\n"] }]
2295
- }], propDecorators: { FontFamily: [{
2296
- type: Input
2297
- }, {
2298
- type: HostBinding,
2299
- args: ['style.font-family']
2300
- }], FontSize: [{
2301
- type: Input
2302
- }, {
2303
- type: HostBinding,
2304
- args: ['style.font-size']
2305
- }], FontStyle: [{
2306
- type: Input
2307
- }, {
2308
- type: HostBinding,
2309
- args: ['style.font-style']
2310
2315
  }], FontWeight: [{
2311
2316
  type: Input
2312
2317
  }], Glyph: [{
@@ -2355,11 +2360,11 @@ class AppBarButtonComponent extends FrameworkElementComponent {
2355
2360
  this._flyout?.Show();
2356
2361
  }
2357
2362
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppBarButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2358
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: AppBarButtonComponent, isStandalone: true, selector: "AppBarButton", inputs: { IsEnabled: "IsEnabled", Text: "Text", Icon: "Icon" }, outputs: { Click: "Click" }, host: { listeners: { "click": "onHostPointerEvent($event)" }, properties: { "class.disabled": "this.disabled" } }, queries: [{ propertyName: "_flyout", first: true, predicate: ["xaml-flyout"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<div class="icon">{{Icon}}</div><div class="text">{{Text}}</div><ng-content/>`, isInline: true, styles: [":host{position:relative}:host{display:flex;flex-direction:row;align-items:center;transition:background-color var(--ControlNormalAnimationDuration);border-radius:var(--ControlCornerRadius);gap:4px;padding:6px;background-color:var(--SubtleFillColorTransparent)}:host *{color:var(--TextFillColorPrimary)}:host:hover{background-color:var(--SubtleFillColorSecondary)}:host:hover *{color:var(--TextFillColorPrimary)}:host:active{background-color:var(--SubtleFillColorTertiary)}:host:active *{color:var(--TextFillColorSecondary)}:host.disabled{background-color:var(--SubtleFillColorDisabled)}:host.disabled *{color:var(--TextFillColorDisabled)}:host .icon{padding-top:2px;font-family:var(--SymbolFontFamily)}:host .text{white-space:nowrap}\n"] }); }
2363
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: AppBarButtonComponent, isStandalone: true, selector: "AppBarButton", inputs: { IsEnabled: "IsEnabled", Text: "Text", Icon: "Icon" }, outputs: { Click: "Click" }, host: { listeners: { "click": "onHostPointerEvent($event)" }, properties: { "class.disabled": "this.disabled" } }, queries: [{ propertyName: "_flyout", first: true, predicate: ["xaml-flyout"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<div class="icon">{{Icon}}<ng-content select="[Icon]"/></div><div class="text">{{Text}}</div><ng-content/>`, isInline: true, styles: [":host{position:relative}:host{display:flex;flex-direction:row;align-items:center;transition:background-color var(--ControlNormalAnimationDuration);border-radius:var(--ControlCornerRadius);gap:4px;padding:6px;background-color:var(--SubtleFillColorTransparent)}:host *{color:var(--TextFillColorPrimary)}:host:hover{background-color:var(--SubtleFillColorSecondary)}:host:hover *{color:var(--TextFillColorPrimary)}:host:active{background-color:var(--SubtleFillColorTertiary)}:host:active *{color:var(--TextFillColorSecondary)}:host.disabled{background-color:var(--SubtleFillColorDisabled)}:host.disabled *{color:var(--TextFillColorDisabled)}:host .icon{padding-top:2px;font-family:var(--SymbolFontFamily)}:host .text{white-space:nowrap}\n"] }); }
2359
2364
  }
2360
2365
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppBarButtonComponent, decorators: [{
2361
2366
  type: Component,
2362
- args: [{ selector: 'AppBarButton', template: `<div class="icon">{{Icon}}</div><div class="text">{{Text}}</div><ng-content/>`, styles: [":host{position:relative}:host{display:flex;flex-direction:row;align-items:center;transition:background-color var(--ControlNormalAnimationDuration);border-radius:var(--ControlCornerRadius);gap:4px;padding:6px;background-color:var(--SubtleFillColorTransparent)}:host *{color:var(--TextFillColorPrimary)}:host:hover{background-color:var(--SubtleFillColorSecondary)}:host:hover *{color:var(--TextFillColorPrimary)}:host:active{background-color:var(--SubtleFillColorTertiary)}:host:active *{color:var(--TextFillColorSecondary)}:host.disabled{background-color:var(--SubtleFillColorDisabled)}:host.disabled *{color:var(--TextFillColorDisabled)}:host .icon{padding-top:2px;font-family:var(--SymbolFontFamily)}:host .text{white-space:nowrap}\n"] }]
2367
+ args: [{ selector: 'AppBarButton', template: `<div class="icon">{{Icon}}<ng-content select="[Icon]"/></div><div class="text">{{Text}}</div><ng-content/>`, styles: [":host{position:relative}:host{display:flex;flex-direction:row;align-items:center;transition:background-color var(--ControlNormalAnimationDuration);border-radius:var(--ControlCornerRadius);gap:4px;padding:6px;background-color:var(--SubtleFillColorTransparent)}:host *{color:var(--TextFillColorPrimary)}:host:hover{background-color:var(--SubtleFillColorSecondary)}:host:hover *{color:var(--TextFillColorPrimary)}:host:active{background-color:var(--SubtleFillColorTertiary)}:host:active *{color:var(--TextFillColorSecondary)}:host.disabled{background-color:var(--SubtleFillColorDisabled)}:host.disabled *{color:var(--TextFillColorDisabled)}:host .icon{padding-top:2px;font-family:var(--SymbolFontFamily)}:host .text{white-space:nowrap}\n"] }]
2363
2368
  }], propDecorators: { IsEnabled: [{
2364
2369
  type: Input
2365
2370
  }], Text: [{
@@ -2402,18 +2407,20 @@ class MenuFlyoutItemComponent extends MenuFlyoutItemBase {
2402
2407
  return !this.IsEnabled;
2403
2408
  }
2404
2409
  onClick() {
2410
+ if (!this.IsEnabled)
2411
+ return;
2405
2412
  this.Click.emit();
2406
2413
  }
2407
2414
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MenuFlyoutItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2408
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: MenuFlyoutItemComponent, isStandalone: true, selector: "MenuFlyoutItem", inputs: { IsEnabled: "IsEnabled", Text: "Text", Icon: "Icon" }, outputs: { Click: "Click" }, host: { listeners: { "click": "onClick()" }, properties: { "class.disabled": "this.disabled" } }, usesInheritance: true, ngImport: i0, template: `<div class="icon">{{Icon}}</div>
2415
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: MenuFlyoutItemComponent, isStandalone: true, selector: "MenuFlyoutItem", inputs: { IsEnabled: "IsEnabled", Text: "Text", Icon: "Icon" }, outputs: { Click: "Click" }, host: { listeners: { "click": "onClick()" }, properties: { "class.disabled": "this.disabled" } }, usesInheritance: true, ngImport: i0, template: `<div class="icon">{{Icon}}<ng-content select="[Icon]"/></div>
2409
2416
  <div class="text">{{Text}}</div>
2410
- <div class="submenu-indicator"></div>`, isInline: true, styles: [":host{position:relative}:host{display:table-row}:host:hover:not(.disabled)>*{background-color:var(--SubtleFillColorSecondary)}:host.disabled>*{color:var(--TextFillColorDisabled)}.icon{display:table-cell;padding:3px 6px;border-radius:var(--ControlCornerRadius) 0 0 var(--ControlCornerRadius);font-family:var(--SymbolFontFamily)}.text{display:table-cell;padding:3px;margin:6px 0;white-space:nowrap}.submenu-indicator{display:table-cell;padding:3px 6px;border-radius:0 var(--ControlCornerRadius) var(--ControlCornerRadius) 0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
2417
+ <div class="submenu-indicator"></div>`, isInline: true, styles: [":host{position:relative}:host{display:table-row}:host:hover:not(.disabled)>*{background-color:var(--SubtleFillColorSecondary)}:host.disabled>*{color:var(--TextFillColorDisabled)}.icon{display:table-cell;padding:3px 6px;border-radius:var(--ControlCornerRadius) 0 0 var(--ControlCornerRadius);font-family:var(--SymbolFontFamily);vertical-align:middle}.text{display:table-cell;padding:3px;margin:6px 0;white-space:nowrap}.submenu-indicator{display:table-cell;padding:3px 6px;border-radius:0 var(--ControlCornerRadius) var(--ControlCornerRadius) 0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
2411
2418
  }
2412
2419
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MenuFlyoutItemComponent, decorators: [{
2413
2420
  type: Component,
2414
- args: [{ selector: 'MenuFlyoutItem', imports: [CommonModule], template: `<div class="icon">{{Icon}}</div>
2421
+ args: [{ selector: 'MenuFlyoutItem', imports: [CommonModule], template: `<div class="icon">{{Icon}}<ng-content select="[Icon]"/></div>
2415
2422
  <div class="text">{{Text}}</div>
2416
- <div class="submenu-indicator"></div>`, styles: [":host{position:relative}:host{display:table-row}:host:hover:not(.disabled)>*{background-color:var(--SubtleFillColorSecondary)}:host.disabled>*{color:var(--TextFillColorDisabled)}.icon{display:table-cell;padding:3px 6px;border-radius:var(--ControlCornerRadius) 0 0 var(--ControlCornerRadius);font-family:var(--SymbolFontFamily)}.text{display:table-cell;padding:3px;margin:6px 0;white-space:nowrap}.submenu-indicator{display:table-cell;padding:3px 6px;border-radius:0 var(--ControlCornerRadius) var(--ControlCornerRadius) 0}\n"] }]
2423
+ <div class="submenu-indicator"></div>`, styles: [":host{position:relative}:host{display:table-row}:host:hover:not(.disabled)>*{background-color:var(--SubtleFillColorSecondary)}:host.disabled>*{color:var(--TextFillColorDisabled)}.icon{display:table-cell;padding:3px 6px;border-radius:var(--ControlCornerRadius) 0 0 var(--ControlCornerRadius);font-family:var(--SymbolFontFamily);vertical-align:middle}.text{display:table-cell;padding:3px;margin:6px 0;white-space:nowrap}.submenu-indicator{display:table-cell;padding:3px 6px;border-radius:0 var(--ControlCornerRadius) var(--ControlCornerRadius) 0}\n"] }]
2417
2424
  }], propDecorators: { IsEnabled: [{
2418
2425
  type: Input
2419
2426
  }], Text: [{
@@ -2430,6 +2437,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
2430
2437
  args: ['click', []]
2431
2438
  }] } });
2432
2439
 
2440
+ class ToggleMenuFlyoutItemComponent extends MenuFlyoutItemBase {
2441
+ constructor() {
2442
+ super(...arguments);
2443
+ this.IsEnabled = true;
2444
+ this.Text = '';
2445
+ this.IsChecked = false;
2446
+ this.IsCheckedChange = new EventEmitter();
2447
+ }
2448
+ get disabled() {
2449
+ return !this.IsEnabled;
2450
+ }
2451
+ onPointerUp(event) {
2452
+ if (!this.IsEnabled)
2453
+ return;
2454
+ this.IsChecked = !this.IsChecked;
2455
+ this.IsCheckedChange.emit(this.IsChecked);
2456
+ }
2457
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleMenuFlyoutItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2458
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleMenuFlyoutItemComponent, isStandalone: true, selector: "ToggleMenuFlyoutItem", inputs: { IsEnabled: "IsEnabled", Text: "Text", IsChecked: "IsChecked" }, outputs: { IsCheckedChange: "IsCheckedChange" }, host: { listeners: { "pointerup": "onPointerUp($event)" }, properties: { "class.checked": "this.IsChecked", "class.disabled": "this.disabled" } }, usesInheritance: true, ngImport: i0, template: `<div class="icon">{{IsChecked ? '\uE73E' : '' }}</div>
2459
+ <div class="text">{{Text}}</div>`, isInline: true, styles: [":host{position:relative}:host{display:table-row}:host:hover:not(.disabled)>*{background-color:var(--SubtleFillColorSecondary)}:host.disabled>*{color:var(--TextFillColorDisabled)}.icon{display:table-cell;padding:3px 6px;border-radius:var(--ControlCornerRadius) 0 0 var(--ControlCornerRadius);font-family:var(--SymbolFontFamily);vertical-align:middle}.text{display:table-cell;padding:3px;margin:6px 0;white-space:nowrap}.submenu-indicator{display:table-cell;padding:3px 6px;border-radius:0 var(--ControlCornerRadius) var(--ControlCornerRadius) 0}\n"] }); }
2460
+ }
2461
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleMenuFlyoutItemComponent, decorators: [{
2462
+ type: Component,
2463
+ args: [{ selector: 'ToggleMenuFlyoutItem', template: `<div class="icon">{{IsChecked ? '\uE73E' : '' }}</div>
2464
+ <div class="text">{{Text}}</div>`, styles: [":host{position:relative}:host{display:table-row}:host:hover:not(.disabled)>*{background-color:var(--SubtleFillColorSecondary)}:host.disabled>*{color:var(--TextFillColorDisabled)}.icon{display:table-cell;padding:3px 6px;border-radius:var(--ControlCornerRadius) 0 0 var(--ControlCornerRadius);font-family:var(--SymbolFontFamily);vertical-align:middle}.text{display:table-cell;padding:3px;margin:6px 0;white-space:nowrap}.submenu-indicator{display:table-cell;padding:3px 6px;border-radius:0 var(--ControlCornerRadius) var(--ControlCornerRadius) 0}\n"] }]
2465
+ }], propDecorators: { IsEnabled: [{
2466
+ type: Input
2467
+ }], Text: [{
2468
+ type: Input
2469
+ }], IsChecked: [{
2470
+ type: Input
2471
+ }, {
2472
+ type: HostBinding,
2473
+ args: ['class.checked']
2474
+ }], IsCheckedChange: [{
2475
+ type: Output
2476
+ }], disabled: [{
2477
+ type: HostBinding,
2478
+ args: ['class.disabled']
2479
+ }], onPointerUp: [{
2480
+ type: HostListener,
2481
+ args: ['pointerup', ['$event']]
2482
+ }] } });
2483
+
2433
2484
  class MenuFlyoutSeparator extends MenuFlyoutItemBase {
2434
2485
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MenuFlyoutSeparator, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2435
2486
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: MenuFlyoutSeparator, isStandalone: true, selector: "MenuFlyoutSeparator", usesInheritance: true, ngImport: i0, template: `<div class="separator"></div>`, isInline: true, styles: [":host{position:relative}:host{display:table-row;position:relative}:host>.separator{position:absolute;display:block;inset:-.5px -2px;background-color:var(--DividerStrokeColorDefault)}\n"] }); }
@@ -2602,7 +2653,7 @@ class NumberBoxComponent extends FrameworkElementComponent {
2602
2653
  <RepeatButton Class="InlineButtonStyle" (Click)="onDecreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph="&#xE70D;"/></RepeatButton>
2603
2654
  </Flyout>
2604
2655
  <div class="unit" *ngIf="Unit !== undefined">{{Unit}}</div>
2605
- </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}input,textarea{background-color:transparent;border:0 none transparent;outline:0 none transparent;color:var(--TextFillColorPrimary)}input::placeholder,textarea::placeholder{color:var(--TextFillColorSecondary)}input:disabled,textarea: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", "FontWeight", "Glyph"] }, { kind: "component", type: FlyoutComponent, selector: "Flyout" }] }); }
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}input,textarea{background-color:transparent;border:0 none transparent;outline:0 none transparent;color:var(--TextFillColorPrimary)}input::placeholder,textarea::placeholder{color:var(--TextFillColorSecondary)}input:disabled,textarea: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" }] }); }
2606
2657
  }
2607
2658
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NumberBoxComponent, decorators: [{
2608
2659
  type: Component,
@@ -2737,5 +2788,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
2737
2788
  * Generated bundle index. Do not edit.
2738
2789
  */
2739
2790
 
2740
- 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, ToggleSwitchComponent, ToolTipDirective, ToolTipServiceModule, XamlRootComponent, colorToRgb, colorToString, resume_after, resume_on_event, rgbToHsl, stringToColor, toAlignment, toJustification };
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 };
2741
2792
  //# sourceMappingURL=xaml-ui.mjs.map