xaml-ui 1.0.14 → 1.0.16
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 +164 -11
- package/fesm2022/xaml-ui.mjs.map +1 -1
- package/lib/FrameworkElement.d.ts +2 -1
- package/lib/collections/GridView.d.ts +11 -0
- package/lib/media/PersonPicture.d.ts +13 -0
- package/lib/shapes/Ellipse.d.ts +9 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
package/fesm2022/xaml-ui.mjs
CHANGED
|
@@ -67,7 +67,7 @@ class FrameworkElementComponent {
|
|
|
67
67
|
}
|
|
68
68
|
static { this._nextId = 1; }
|
|
69
69
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FrameworkElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
70
|
-
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.max-width": "this.MaxWidth", "style.max-height": "this.MaxHeight", "style.margin": "this.Margin", "style.padding": "this.Padding", "style.overflow": "this.overflow", "style.min-width": "this.minWidth", "style.min-height": "this.minHeight", "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 }); }
|
|
70
|
+
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", Opacity: "Opacity" }, host: { properties: { "style.max-width": "this.MaxWidth", "style.max-height": "this.MaxHeight", "style.margin": "this.Margin", "style.padding": "this.Padding", "style.opacity": "this.Opacity", "style.overflow": "this.overflow", "style.min-width": "this.minWidth", "style.min-height": "this.minHeight", "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 }); }
|
|
71
71
|
}
|
|
72
72
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FrameworkElementComponent, decorators: [{
|
|
73
73
|
type: Component,
|
|
@@ -107,6 +107,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
107
107
|
}, {
|
|
108
108
|
type: HostBinding,
|
|
109
109
|
args: ['style.padding']
|
|
110
|
+
}], Opacity: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}, {
|
|
113
|
+
type: HostBinding,
|
|
114
|
+
args: ['style.opacity']
|
|
110
115
|
}], overflow: [{
|
|
111
116
|
type: HostBinding,
|
|
112
117
|
args: ['style.overflow']
|
|
@@ -261,7 +266,7 @@ class CheckBoxComponent extends BorderComponent {
|
|
|
261
266
|
<div class="content">
|
|
262
267
|
<ng-content/>
|
|
263
268
|
</div>
|
|
264
|
-
</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"] }); }
|
|
269
|
+
</label>`, isInline: true, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px;align-items:center}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);align-self:center}.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"] }); }
|
|
265
270
|
}
|
|
266
271
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CheckBoxComponent, decorators: [{
|
|
267
272
|
type: Component,
|
|
@@ -273,7 +278,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
273
278
|
<div class="content">
|
|
274
279
|
<ng-content/>
|
|
275
280
|
</div>
|
|
276
|
-
</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"] }]
|
|
281
|
+
</label>`, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px;align-items:center}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);align-self:center}.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"] }]
|
|
277
282
|
}], propDecorators: { IsEnabled: [{
|
|
278
283
|
type: Input
|
|
279
284
|
}], IsChecked: [{
|
|
@@ -1292,7 +1297,7 @@ class RadioButtonComponent extends BorderComponent {
|
|
|
1292
1297
|
<div class="content">
|
|
1293
1298
|
<ng-content/>
|
|
1294
1299
|
</div>
|
|
1295
|
-
</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:
|
|
1300
|
+
</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);place-items:center;transition:border-color var(--ControlFastAnimationDuration);transition:background-color var(--ControlFastAnimationDuration)}.circle{width:10px;height:10px;border-radius:5px;background-color:var(--TextOnAccentFillColorPrimary);transition:transform var(--ControlNormalAnimationDuration);transform:scale(0)}.content{align-self:center}\n"] }); }
|
|
1296
1301
|
}
|
|
1297
1302
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
1298
1303
|
type: Component,
|
|
@@ -1304,7 +1309,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
1304
1309
|
<div class="content">
|
|
1305
1310
|
<ng-content/>
|
|
1306
1311
|
</div>
|
|
1307
|
-
</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:
|
|
1312
|
+
</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);place-items:center;transition:border-color var(--ControlFastAnimationDuration);transition:background-color var(--ControlFastAnimationDuration)}.circle{width:10px;height:10px;border-radius:5px;background-color:var(--TextOnAccentFillColorPrimary);transition:transform var(--ControlNormalAnimationDuration);transform:scale(0)}.content{align-self:center}\n"] }]
|
|
1308
1313
|
}], ctorParameters: () => [{ type: RadioButtonGroupComponent, decorators: [{
|
|
1309
1314
|
type: Optional
|
|
1310
1315
|
}] }], propDecorators: { IsEnabled: [{
|
|
@@ -1456,6 +1461,12 @@ class SliderComponent extends FrameworkElementComponent {
|
|
|
1456
1461
|
if (this.Orientation === 'Vertical' && this.Height !== undefined) {
|
|
1457
1462
|
style['height'] = this.Height;
|
|
1458
1463
|
}
|
|
1464
|
+
let minimum = this.Minimum ?? 0;
|
|
1465
|
+
let maximum = this.Maximum ?? 1;
|
|
1466
|
+
let range = maximum - minimum;
|
|
1467
|
+
let progress = range > 0 ? (this.Value - minimum) / range : 1;
|
|
1468
|
+
progress = Math.min(Math.max(progress, 0), 1);
|
|
1469
|
+
style['--progress'] = (progress * 100).toFixed(4) + '%';
|
|
1459
1470
|
return style;
|
|
1460
1471
|
}
|
|
1461
1472
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SliderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
@@ -1467,7 +1478,7 @@ class SliderComponent extends FrameworkElementComponent {
|
|
|
1467
1478
|
(input)="onInput($event)"
|
|
1468
1479
|
[disabled]="!IsEnabled"
|
|
1469
1480
|
[className]="Orientation.toLowerCase()"
|
|
1470
|
-
[ngStyle]="inputStyle">`, 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;box-shadow:none;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;box-shadow:none;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
|
|
1481
|
+
[ngStyle]="inputStyle">`, 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.horizontal::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--AccentFillColorDefault) 0 var(--progress),var(--ControlStrongFillColorDefault) var(--progress) 100%)}input.horizontal::-moz-range-track,input.horizontal::-moz-range-progress{height:4px}input.vertical{width:4px;margin:0 7px;writing-mode:vertical-lr;direction:rtl;vertical-align:middle}input.vertical::-webkit-slider-runnable-track{width:4px;border-radius:2px;background:linear-gradient(to top,var(--AccentFillColorDefault) 0 var(--progress),var(--ControlStrongFillColorDefault) var(--progress) 100%)}input.vertical::-moz-range-track,input.vertical::-moz-range-progress{width:4px}input::-moz-range-track,input::-moz-range-progress{border-radius:2px}input::-moz-range-track{background:var(--ControlStrongFillColorDefault)}input::-moz-range-progress{background:var(--AccentFillColorDefault)}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;box-shadow:none;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;box-shadow:none;outline:1px solid var(--ControlStrokeColorOnAccentDefaultDark);border-color:var(--ControlSolidFillColorDefault);background-color:var(--AccentFillColorDefault);transition:border-width var(--ControlFastAnimationDuration)}input.horizontal::-webkit-slider-thumb{transform:translateY(-6px)}input.vertical::-webkit-slider-thumb{transform:translate(-6px)}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::-webkit-slider-runnable-track,input:disabled::-moz-range-track{background:var(--ControlStrongFillColorDisabled)}input:disabled::-moz-range-progress{background:var(--AccentFillColorDisabled)}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"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1471
1482
|
}
|
|
1472
1483
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SliderComponent, decorators: [{
|
|
1473
1484
|
type: Component,
|
|
@@ -1479,7 +1490,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
1479
1490
|
(input)="onInput($event)"
|
|
1480
1491
|
[disabled]="!IsEnabled"
|
|
1481
1492
|
[className]="Orientation.toLowerCase()"
|
|
1482
|
-
[ngStyle]="inputStyle">`, imports: [CommonModule], 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;box-shadow:none;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;box-shadow:none;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
|
|
1493
|
+
[ngStyle]="inputStyle">`, imports: [CommonModule], 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.horizontal::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--AccentFillColorDefault) 0 var(--progress),var(--ControlStrongFillColorDefault) var(--progress) 100%)}input.horizontal::-moz-range-track,input.horizontal::-moz-range-progress{height:4px}input.vertical{width:4px;margin:0 7px;writing-mode:vertical-lr;direction:rtl;vertical-align:middle}input.vertical::-webkit-slider-runnable-track{width:4px;border-radius:2px;background:linear-gradient(to top,var(--AccentFillColorDefault) 0 var(--progress),var(--ControlStrongFillColorDefault) var(--progress) 100%)}input.vertical::-moz-range-track,input.vertical::-moz-range-progress{width:4px}input::-moz-range-track,input::-moz-range-progress{border-radius:2px}input::-moz-range-track{background:var(--ControlStrongFillColorDefault)}input::-moz-range-progress{background:var(--AccentFillColorDefault)}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;box-shadow:none;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;box-shadow:none;outline:1px solid var(--ControlStrokeColorOnAccentDefaultDark);border-color:var(--ControlSolidFillColorDefault);background-color:var(--AccentFillColorDefault);transition:border-width var(--ControlFastAnimationDuration)}input.horizontal::-webkit-slider-thumb{transform:translateY(-6px)}input.vertical::-webkit-slider-thumb{transform:translate(-6px)}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::-webkit-slider-runnable-track,input:disabled::-moz-range-track{background:var(--ControlStrongFillColorDisabled)}input:disabled::-moz-range-progress{background:var(--AccentFillColorDisabled)}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"] }]
|
|
1483
1494
|
}], propDecorators: { Minimum: [{
|
|
1484
1495
|
type: Input
|
|
1485
1496
|
}], Maximum: [{
|
|
@@ -1502,7 +1513,14 @@ class GridComponent extends PanelComponent {
|
|
|
1502
1513
|
this.Orientation = 'Vertical';
|
|
1503
1514
|
}
|
|
1504
1515
|
get gridAutoFlow() {
|
|
1505
|
-
|
|
1516
|
+
if (this.ColumnDefinitions == undefined && this.RowDefinitions == undefined) {
|
|
1517
|
+
//Make it work like equal with stack panel
|
|
1518
|
+
return this.Orientation === 'Horizontal' ? 'column' : 'row';
|
|
1519
|
+
}
|
|
1520
|
+
else {
|
|
1521
|
+
//Use proper flow logic
|
|
1522
|
+
return this.Orientation === 'Horizontal' ? 'row' : 'column';
|
|
1523
|
+
}
|
|
1506
1524
|
}
|
|
1507
1525
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1508
1526
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: GridComponent, isStandalone: false, selector: "Grid", inputs: { ColumnDefinitions: "ColumnDefinitions", RowDefinitions: "RowDefinitions", AutoColumnDefinition: "AutoColumnDefinition", AutoRowDefinition: "AutoRowDefinition", ColumnSpacing: "ColumnSpacing", RowSpacing: "RowSpacing", Orientation: "Orientation" }, host: { properties: { "style.grid-template-columns": "this.ColumnDefinitions", "style.grid-template-rows": "this.RowDefinitions", "style.grid-auto-columns": "this.AutoColumnDefinition", "style.grid-auto-rows": "this.AutoRowDefinition", "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"] }); }
|
|
@@ -1795,6 +1813,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
1795
1813
|
</ItemContainer>`, 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"] }]
|
|
1796
1814
|
}] });
|
|
1797
1815
|
|
|
1816
|
+
class GridViewComponent extends SelectorComponent {
|
|
1817
|
+
constructor() {
|
|
1818
|
+
super(...arguments);
|
|
1819
|
+
this.MaximumRowsOrColumns = 2;
|
|
1820
|
+
this.Orientation = "Horizontal";
|
|
1821
|
+
}
|
|
1822
|
+
get columnDefinitions() {
|
|
1823
|
+
return this.Orientation == "Horizontal" ? `repeat(${this.MaximumRowsOrColumns}, 1fr)` : undefined;
|
|
1824
|
+
}
|
|
1825
|
+
get rowDefinitions() {
|
|
1826
|
+
return this.Orientation == "Vertical" ? `repeat(${this.MaximumRowsOrColumns}, 1fr)` : undefined;
|
|
1827
|
+
}
|
|
1828
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1829
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: GridViewComponent, isStandalone: true, selector: "GridView", inputs: { MaximumRowsOrColumns: "MaximumRowsOrColumns", Orientation: "Orientation" }, usesInheritance: true, ngImport: i0, template: "<ScrollViewer>\n <Grid [Orientation]=\"Orientation\" [ColumnDefinitions]=\"columnDefinitions\" [RowDefinitions]=\"rowDefinitions\" RowSpacing=\"3px\" ColumnSpacing=\"3px\">\n <ItemContainer #container *ngFor=\"let item of ItemSource; index as index; trackBy: getValue\" class=\"item\" (click)=\"onItemClick($event, index, item)\" [ngClass]=\"{'selected': index == SelectedIndex}\" [id]=\"'xaml-selector-'+_id+'-item-'+index\" @itemFading>\n <div class=\"item-content\" [ngStyle]=\"{'align-content': alignContent, 'justify-content': justifyContent}\"><ng-container *ngIf=\"ItemTemplate\">\n <ng-container [ngTemplateOutlet]=\"ItemTemplate\" [ngTemplateOutletContext]=\"{ $implicit: item }\" [ngTemplateOutletInjector]=\"container.Injector\" />\n </ng-container>\n <ng-container *ngIf=\"!ItemTemplate\">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container></div>\n <div class=\"selection-indicator\" *ngIf=\"index == SelectedIndex\"></div>\n </ItemContainer>\n </Grid>\n </ScrollViewer>", isInline: true, styles: [":host{position:relative}:host{display:grid}:host .item{border-radius:var(--ControlCornerRadius)}:host .item>.item-content{display:grid;grid-row:1;grid-column:1;padding:8px 12px}:host .item>.selection-indicator{border-radius:var(--ControlCornerRadius);border-style:solid;border-color:var(--AccentFillColorDefault);grid-row:1;grid-column:1}: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: "ngmodule", type: GridModule }, { kind: "component", type: GridComponent, selector: "Grid", inputs: ["ColumnDefinitions", "RowDefinitions", "AutoColumnDefinition", "AutoRowDefinition", "ColumnSpacing", "RowSpacing", "Orientation"] }, { kind: "component", type: ItemContainerComponent, selector: "ItemContainer" }], animations: [
|
|
1830
|
+
trigger('itemFading', [
|
|
1831
|
+
transition(':enter', [animate('500ms ease-in', keyframes([
|
|
1832
|
+
style({ opacity: 0, height: 0 }),
|
|
1833
|
+
style({ opacity: 0, height: '*' }),
|
|
1834
|
+
style({ opacity: 1, height: '*' }),
|
|
1835
|
+
]))]),
|
|
1836
|
+
transition(':leave', [animate('500ms ease-out', keyframes([
|
|
1837
|
+
style({ opacity: 1, height: '*' }),
|
|
1838
|
+
style({ opacity: 0, height: '*' }),
|
|
1839
|
+
style({ opacity: 0, height: 0 }),
|
|
1840
|
+
]))]),
|
|
1841
|
+
])
|
|
1842
|
+
] }); }
|
|
1843
|
+
}
|
|
1844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: GridViewComponent, decorators: [{
|
|
1845
|
+
type: Component,
|
|
1846
|
+
args: [{ selector: 'GridView', imports: [CommonModule, ScrollViewerComponent, GridModule, ItemContainerComponent], template: `<ScrollViewer>
|
|
1847
|
+
<Grid [Orientation]="Orientation" [ColumnDefinitions]="columnDefinitions" [RowDefinitions]="rowDefinitions" RowSpacing="3px" ColumnSpacing="3px">
|
|
1848
|
+
<ItemContainer #container *ngFor="let item of ItemSource; index as index; trackBy: getValue" class="item" (click)="onItemClick($event, index, item)" [ngClass]="{'selected': index == SelectedIndex}" [id]="'xaml-selector-'+_id+'-item-'+index" @itemFading>
|
|
1849
|
+
<div class="item-content" [ngStyle]="{'align-content': alignContent, 'justify-content': justifyContent}">${SelectorItemTemplate}</div>
|
|
1850
|
+
<div class="selection-indicator" *ngIf="index == SelectedIndex"></div>
|
|
1851
|
+
</ItemContainer>
|
|
1852
|
+
</Grid>
|
|
1853
|
+
</ScrollViewer>`, animations: [
|
|
1854
|
+
trigger('itemFading', [
|
|
1855
|
+
transition(':enter', [animate('500ms ease-in', keyframes([
|
|
1856
|
+
style({ opacity: 0, height: 0 }),
|
|
1857
|
+
style({ opacity: 0, height: '*' }),
|
|
1858
|
+
style({ opacity: 1, height: '*' }),
|
|
1859
|
+
]))]),
|
|
1860
|
+
transition(':leave', [animate('500ms ease-out', keyframes([
|
|
1861
|
+
style({ opacity: 1, height: '*' }),
|
|
1862
|
+
style({ opacity: 0, height: '*' }),
|
|
1863
|
+
style({ opacity: 0, height: 0 }),
|
|
1864
|
+
]))]),
|
|
1865
|
+
])
|
|
1866
|
+
], styles: [":host{position:relative}:host{display:grid}:host .item{border-radius:var(--ControlCornerRadius)}:host .item>.item-content{display:grid;grid-row:1;grid-column:1;padding:8px 12px}:host .item>.selection-indicator{border-radius:var(--ControlCornerRadius);border-style:solid;border-color:var(--AccentFillColorDefault);grid-row:1;grid-column:1}: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"] }]
|
|
1867
|
+
}], propDecorators: { MaximumRowsOrColumns: [{
|
|
1868
|
+
type: Input
|
|
1869
|
+
}], Orientation: [{
|
|
1870
|
+
type: Input
|
|
1871
|
+
}] } });
|
|
1872
|
+
|
|
1798
1873
|
class XamlRootComponent {
|
|
1799
1874
|
onContextMenu(event) {
|
|
1800
1875
|
event.preventDefault();
|
|
@@ -2344,6 +2419,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2344
2419
|
type: Input
|
|
2345
2420
|
}] } });
|
|
2346
2421
|
|
|
2422
|
+
class PersonPictureComponent extends FrameworkElementComponent {
|
|
2423
|
+
get fallbackInitials() {
|
|
2424
|
+
if (this.DisplayName) {
|
|
2425
|
+
return this.DisplayName
|
|
2426
|
+
.split(' ')
|
|
2427
|
+
.map(n => n[0])
|
|
2428
|
+
.join('')
|
|
2429
|
+
.substring(0, 2)
|
|
2430
|
+
.toUpperCase();
|
|
2431
|
+
}
|
|
2432
|
+
return '?';
|
|
2433
|
+
}
|
|
2434
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PersonPictureComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2435
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: PersonPictureComponent, isStandalone: true, selector: "PersonPicture2", inputs: { DisplayName: "DisplayName", ProfilePicture: "ProfilePicture", Initials: "Initials", BadgeText: "BadgeText", BadgeGlyph: "BadgeGlyph", BadgeImageSource: "BadgeImageSource" }, usesInheritance: true, ngImport: i0, template: `<div class="avatar">
|
|
2436
|
+
<img *ngIf="ProfilePicture; else initialsTemplate"
|
|
2437
|
+
[src]="ProfilePicture" alt="{{ DisplayName || Initials }}" />
|
|
2438
|
+
<ng-template #initialsTemplate>
|
|
2439
|
+
<span class="initials">{{ Initials || fallbackInitials }}</span>
|
|
2440
|
+
</ng-template>
|
|
2441
|
+
</div>
|
|
2442
|
+
<div *ngIf="BadgeText || BadgeGlyph || BadgeImageSource" class="badge">
|
|
2443
|
+
<img *ngIf="BadgeImageSource" [src]="BadgeImageSource" />
|
|
2444
|
+
<span *ngIf="BadgeText">{{ BadgeText }}</span>
|
|
2445
|
+
<span *ngIf="BadgeGlyph" class="glyph">{{ BadgeGlyph }}</span>
|
|
2446
|
+
</div>`, isInline: true, styles: [":host{width:96px;height:96px;place-self:stretch;overflow:hidden;position:relative;container-type:inline-size}.avatar{position:absolute;width:100%;height:100%;background-color:var(--ControlAltFillColorQuarternary);border-color:var(--ControlAltFillColorSecondary);border-style:solid;border-width:1px;border-radius:50%;box-sizing:border-box;overflow:hidden;display:grid}.avatar>img{place-self:stretch;width:100%;height:100%;object-fit:cover}.avatar>.initials{place-self:center;text-align:center;text-overflow:clip;font-size:40cqw}.badge{position:absolute;min-width:30cqw;height:30cqw;top:0;right:0;background:var(--AccentFillColorDefault);border-radius:50%;overflow:hidden;display:grid;place-self:flex-start right}.badge>img{place-self:center;width:30cqw;height:30cqw;object-fit:cover}.badge>span{place-self:center;font-size:20cqw;text-align:center;color:var(--TextOnAccentFillColorPrimary)}.badge>span.glyph{font-family:Segoe MDL2 Assets}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2447
|
+
}
|
|
2448
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PersonPictureComponent, decorators: [{
|
|
2449
|
+
type: Component,
|
|
2450
|
+
args: [{ selector: 'PersonPicture2', template: `<div class="avatar">
|
|
2451
|
+
<img *ngIf="ProfilePicture; else initialsTemplate"
|
|
2452
|
+
[src]="ProfilePicture" alt="{{ DisplayName || Initials }}" />
|
|
2453
|
+
<ng-template #initialsTemplate>
|
|
2454
|
+
<span class="initials">{{ Initials || fallbackInitials }}</span>
|
|
2455
|
+
</ng-template>
|
|
2456
|
+
</div>
|
|
2457
|
+
<div *ngIf="BadgeText || BadgeGlyph || BadgeImageSource" class="badge">
|
|
2458
|
+
<img *ngIf="BadgeImageSource" [src]="BadgeImageSource" />
|
|
2459
|
+
<span *ngIf="BadgeText">{{ BadgeText }}</span>
|
|
2460
|
+
<span *ngIf="BadgeGlyph" class="glyph">{{ BadgeGlyph }}</span>
|
|
2461
|
+
</div>`, imports: [CommonModule], styles: [":host{width:96px;height:96px;place-self:stretch;overflow:hidden;position:relative;container-type:inline-size}.avatar{position:absolute;width:100%;height:100%;background-color:var(--ControlAltFillColorQuarternary);border-color:var(--ControlAltFillColorSecondary);border-style:solid;border-width:1px;border-radius:50%;box-sizing:border-box;overflow:hidden;display:grid}.avatar>img{place-self:stretch;width:100%;height:100%;object-fit:cover}.avatar>.initials{place-self:center;text-align:center;text-overflow:clip;font-size:40cqw}.badge{position:absolute;min-width:30cqw;height:30cqw;top:0;right:0;background:var(--AccentFillColorDefault);border-radius:50%;overflow:hidden;display:grid;place-self:flex-start right}.badge>img{place-self:center;width:30cqw;height:30cqw;object-fit:cover}.badge>span{place-self:center;font-size:20cqw;text-align:center;color:var(--TextOnAccentFillColorPrimary)}.badge>span.glyph{font-family:Segoe MDL2 Assets}\n"] }]
|
|
2462
|
+
}], propDecorators: { DisplayName: [{
|
|
2463
|
+
type: Input
|
|
2464
|
+
}], ProfilePicture: [{
|
|
2465
|
+
type: Input
|
|
2466
|
+
}], Initials: [{
|
|
2467
|
+
type: Input
|
|
2468
|
+
}], BadgeText: [{
|
|
2469
|
+
type: Input
|
|
2470
|
+
}], BadgeGlyph: [{
|
|
2471
|
+
type: Input
|
|
2472
|
+
}], BadgeImageSource: [{
|
|
2473
|
+
type: Input
|
|
2474
|
+
}] } });
|
|
2475
|
+
|
|
2347
2476
|
class AppBarButtonComponent extends FrameworkElementComponent {
|
|
2348
2477
|
constructor() {
|
|
2349
2478
|
super(...arguments);
|
|
@@ -2490,6 +2619,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2490
2619
|
args: [{ selector: 'MenuFlyoutSeparator', template: `<div class="separator"></div>`, styles: [":host{position:relative}:host{display:table-row;position:relative}:host>.separator{position:absolute;display:block;inset:-.5px -2px;background-color:var(--DividerStrokeColorDefault)}\n"] }]
|
|
2491
2620
|
}] });
|
|
2492
2621
|
|
|
2622
|
+
class EllipseComponent extends FrameworkElementComponent {
|
|
2623
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: EllipseComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2624
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: EllipseComponent, isStandalone: true, selector: "Ellipse", inputs: { Fill: "Fill", Stroke: "Stroke", StrokeThickness: "StrokeThickness" }, host: { properties: { "style.background": "this.Fill", "style.border-color": "this.Stroke", "style.border-width": "this.StrokeThickness" } }, usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:grid;box-sizing:border-box;border-style:solid;border-radius:50%}\n"] }); }
|
|
2625
|
+
}
|
|
2626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: EllipseComponent, decorators: [{
|
|
2627
|
+
type: Component,
|
|
2628
|
+
args: [{ selector: 'Ellipse', template: '', styles: [":host{display:grid;box-sizing:border-box;border-style:solid;border-radius:50%}\n"] }]
|
|
2629
|
+
}], propDecorators: { Fill: [{
|
|
2630
|
+
type: Input
|
|
2631
|
+
}, {
|
|
2632
|
+
type: HostBinding,
|
|
2633
|
+
args: ['style.background']
|
|
2634
|
+
}], Stroke: [{
|
|
2635
|
+
type: Input
|
|
2636
|
+
}, {
|
|
2637
|
+
type: HostBinding,
|
|
2638
|
+
args: ['style.border-color']
|
|
2639
|
+
}], StrokeThickness: [{
|
|
2640
|
+
type: Input
|
|
2641
|
+
}, {
|
|
2642
|
+
type: HostBinding,
|
|
2643
|
+
args: ['style.border-width']
|
|
2644
|
+
}] } });
|
|
2645
|
+
|
|
2493
2646
|
class ToolTipDirective {
|
|
2494
2647
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToolTipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2495
2648
|
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 }); }
|
|
@@ -2749,7 +2902,7 @@ class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
2749
2902
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NumberBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2750
2903
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: NumberBoxComponent, isStandalone: true, selector: "NumberBox", inputs: { IsEnabled: "IsEnabled", PlaceholderText: "PlaceholderText", IsPlaceholderEditable: "IsPlaceholderEditable", TextAlignment: "TextAlignment", InputMode: "InputMode", Minimum: "Minimum", Maximum: "Maximum", SmallChange: "SmallChange", LargeChange: "LargeChange", NumberFormatter: "NumberFormatter", Unit: "Unit", Value: "Value" }, outputs: { ValueChange: "ValueChange" }, host: { listeners: { "click": "onClick()", "focusin": "onFocusIn()", "contextmenu": "onContextMenu($event)" } }, viewQueries: [{ propertyName: "_input", first: true, predicate: ["input"], descendants: true }, { propertyName: "_flyout", first: true, predicate: ["flyout"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<label>
|
|
2751
2904
|
<div class="icon"></div>
|
|
2752
|
-
<input #input type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange()" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}" (blur)="onBlur()" (keydown)="onKeyDown($event)"/>
|
|
2905
|
+
<input class="text-box" #input type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange()" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}" (blur)="onBlur()" (keydown)="onKeyDown($event)"/>
|
|
2753
2906
|
<Flyout #flyout Padding="2px" Placement="Left" [HasBackdrop]="false" [Target]="flyoutTarget">
|
|
2754
2907
|
<RepeatButton Class="InlineButtonStyle" (Click)="onIncreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph=""/></RepeatButton>
|
|
2755
2908
|
<RepeatButton Class="InlineButtonStyle" (Click)="onDecreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph=""/></RepeatButton>
|
|
@@ -2761,7 +2914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2761
2914
|
type: Component,
|
|
2762
2915
|
args: [{ selector: 'NumberBox', template: `<label>
|
|
2763
2916
|
<div class="icon"></div>
|
|
2764
|
-
<input #input type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange()" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}" (blur)="onBlur()" (keydown)="onKeyDown($event)"/>
|
|
2917
|
+
<input class="text-box" #input type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange()" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}" (blur)="onBlur()" (keydown)="onKeyDown($event)"/>
|
|
2765
2918
|
<Flyout #flyout Padding="2px" Placement="Left" [HasBackdrop]="false" [Target]="flyoutTarget">
|
|
2766
2919
|
<RepeatButton Class="InlineButtonStyle" (Click)="onIncreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph=""/></RepeatButton>
|
|
2767
2920
|
<RepeatButton Class="InlineButtonStyle" (Click)="onDecreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph=""/></RepeatButton>
|
|
@@ -2901,5 +3054,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2901
3054
|
* Generated bundle index. Do not edit.
|
|
2902
3055
|
*/
|
|
2903
3056
|
|
|
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 };
|
|
3057
|
+
export { AppBarButtonComponent, BorderComponent, ButtonComponent, CheckBoxComponent, ColorPickerComponent, ComboBoxComponent, CommandBarComponent, ContentDialog, ContentDialogButton, ContentDialogResult, ContextFlyoutDirective, Dialog, DialogPresenter, DropDownButtonComponent, EllipseComponent, FlyoutBaseComponent, FlyoutComponent, FlyoutDirective, FlyoutPresenter, FontIconComponent, FrameworkElementComponent, GridColumnDirective, GridColumnSpanDirective, GridComponent, GridDirective, GridModule, GridProperty, GridRowDirective, GridRowSpanDirective, GridViewComponent, ImageComponent, ItemFlyoutDirective, ListBoxComponent, ListViewComponent, MenuFlyoutComponent, MenuFlyoutItemBase, MenuFlyoutItemComponent, MenuFlyoutSeparator, NumberBoxComponent, PanelComponent, PersonPictureComponent, 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 };
|
|
2905
3058
|
//# sourceMappingURL=xaml-ui.mjs.map
|