xaml-ui 1.0.5 → 1.0.7
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 +571 -344
- package/fesm2022/xaml-ui.mjs.map +1 -1
- package/lib/Common.d.ts +1 -1
- package/lib/FrameworkElement.d.ts +7 -4
- package/lib/basic-input/ComboBox.d.ts +6 -4
- package/lib/basic-input/RadioButton.d.ts +4 -4
- package/lib/basic-input/RadioToggleButton.d.ts +7 -0
- package/lib/basic-input/RepeatButton.d.ts +4 -1
- package/lib/basic-input/Slider.d.ts +1 -1
- package/lib/dialogs-and-flyouts/ContextFlyout.d.ts +0 -3
- package/lib/dialogs-and-flyouts/Flyout.d.ts +5 -18
- package/lib/layout/StackPanel.d.ts +2 -0
- package/lib/menus-and-toolbars/AppBarButton.d.ts +3 -1
- package/lib/menus-and-toolbars/MenuFlyout.d.ts +9 -2
- package/lib/primitives/FlyoutBase.d.ts +39 -0
- package/lib/primitives/FlyoutPresenter.d.ts +13 -0
- package/lib/primitives/Selector.d.ts +2 -1
- package/lib/scrolling/ScrollBar.d.ts +1 -1
- package/lib/text/NumberBox.d.ts +10 -1
- package/lib/text/TextBlock.d.ts +3 -1
- package/lib/text/TextBox.d.ts +6 -2
- package/package.json +1 -1
- package/public-api.d.ts +3 -1
- package/styles/XamlGlobals.css +18 -0
- package/lib/primitives/Popup.d.ts +0 -20
package/fesm2022/xaml-ui.mjs
CHANGED
|
@@ -2,6 +2,11 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { HostBinding, Input, Component, EventEmitter, HostListener, ContentChild, Output, ViewChild, TemplateRef, Optional, Directive, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { CdkScrollable } from '@angular/cdk/scrolling';
|
|
6
|
+
import { trigger, transition, animate, keyframes, style } from '@angular/animations';
|
|
7
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
|
8
|
+
import { OverlayConfig } from '@angular/cdk/overlay';
|
|
9
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
5
10
|
|
|
6
11
|
function toJustification(value) {
|
|
7
12
|
return value.toLowerCase();
|
|
@@ -25,6 +30,19 @@ class FrameworkElementComponent {
|
|
|
25
30
|
this.VerticalAlignment = 'Stretch';
|
|
26
31
|
this._id = FrameworkElementComponent._nextId++;
|
|
27
32
|
}
|
|
33
|
+
get overflow() {
|
|
34
|
+
return 'hidden';
|
|
35
|
+
}
|
|
36
|
+
get minWidth() {
|
|
37
|
+
if (this.MinWidth !== undefined)
|
|
38
|
+
return this.MinWidth;
|
|
39
|
+
return this.MaxWidth === undefined && this.HorizontalAlignment === 'Stretch' ? 'min-content' : undefined;
|
|
40
|
+
}
|
|
41
|
+
get minHeight() {
|
|
42
|
+
if (this.MinHeight !== undefined)
|
|
43
|
+
return this.MinHeight;
|
|
44
|
+
return this.MaxHeight === undefined && this.VerticalAlignment === 'Stretch' ? 'min-content' : undefined;
|
|
45
|
+
}
|
|
28
46
|
get width() {
|
|
29
47
|
if (this.Width !== undefined)
|
|
30
48
|
return this.Width;
|
|
@@ -43,7 +61,7 @@ class FrameworkElementComponent {
|
|
|
43
61
|
}
|
|
44
62
|
static { this._nextId = 1; }
|
|
45
63
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FrameworkElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
46
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: FrameworkElementComponent, isStandalone: true, selector: "FrameworkElement", inputs: { Width: "Width", MinWidth: "MinWidth", MaxWidth: "MaxWidth", Height: "Height", MinHeight: "MinHeight", MaxHeight: "MaxHeight", HorizontalAlignment: "HorizontalAlignment", VerticalAlignment: "VerticalAlignment", Margin: "Margin", Padding: "Padding" }, host: { properties: { "style.
|
|
64
|
+
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 }); }
|
|
47
65
|
}
|
|
48
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FrameworkElementComponent, decorators: [{
|
|
49
67
|
type: Component,
|
|
@@ -55,9 +73,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
55
73
|
type: Input
|
|
56
74
|
}], MinWidth: [{
|
|
57
75
|
type: Input
|
|
58
|
-
}, {
|
|
59
|
-
type: HostBinding,
|
|
60
|
-
args: ['style.min-width']
|
|
61
76
|
}], MaxWidth: [{
|
|
62
77
|
type: Input
|
|
63
78
|
}, {
|
|
@@ -67,9 +82,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
67
82
|
type: Input
|
|
68
83
|
}], MinHeight: [{
|
|
69
84
|
type: Input
|
|
70
|
-
}, {
|
|
71
|
-
type: HostBinding,
|
|
72
|
-
args: ['style.min-height']
|
|
73
85
|
}], MaxHeight: [{
|
|
74
86
|
type: Input
|
|
75
87
|
}, {
|
|
@@ -89,6 +101,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
89
101
|
}, {
|
|
90
102
|
type: HostBinding,
|
|
91
103
|
args: ['style.padding']
|
|
104
|
+
}], overflow: [{
|
|
105
|
+
type: HostBinding,
|
|
106
|
+
args: ['style.overflow']
|
|
107
|
+
}], minWidth: [{
|
|
108
|
+
type: HostBinding,
|
|
109
|
+
args: ['style.min-width']
|
|
110
|
+
}], minHeight: [{
|
|
111
|
+
type: HostBinding,
|
|
112
|
+
args: ['style.min-height']
|
|
92
113
|
}], width: [{
|
|
93
114
|
type: HostBinding,
|
|
94
115
|
args: ['style.width']
|
|
@@ -171,7 +192,7 @@ class ButtonComponent extends BorderComponent {
|
|
|
171
192
|
onHostPointerEvent(event) {
|
|
172
193
|
if (!this.IsEnabled)
|
|
173
194
|
return;
|
|
174
|
-
this.Click.emit();
|
|
195
|
+
this.Click.emit(event);
|
|
175
196
|
this._flyout?.Show();
|
|
176
197
|
}
|
|
177
198
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
@@ -263,10 +284,10 @@ function stringToColor(value) {
|
|
|
263
284
|
}
|
|
264
285
|
function colorToRgb(value) {
|
|
265
286
|
return {
|
|
266
|
-
r: value >>
|
|
267
|
-
g: value >>
|
|
268
|
-
b: value
|
|
269
|
-
a: value & 0xff
|
|
287
|
+
r: value >> 16 & 0xff,
|
|
288
|
+
g: value >> 8 & 0xff,
|
|
289
|
+
b: value & 0xff,
|
|
290
|
+
a: value >> 24 & 0xff
|
|
270
291
|
};
|
|
271
292
|
}
|
|
272
293
|
function rgbToHsl(rgb) {
|
|
@@ -363,10 +384,12 @@ class ColorPickerComponent extends FrameworkElementComponent {
|
|
|
363
384
|
this._selector.nativeElement.style.top = sampleY + 'px';
|
|
364
385
|
let imageData = this._context.getImageData(sampleX, sampleY, 1, 1).data;
|
|
365
386
|
let [r, g, b] = imageData;
|
|
366
|
-
let color = ((
|
|
387
|
+
let color = ((0xff << 24) + (r << 16) + (g << 8) + b) >>> 0;
|
|
367
388
|
this.setColor(color);
|
|
368
389
|
}
|
|
369
390
|
updateSelectorPosition() {
|
|
391
|
+
if (!this._canvas)
|
|
392
|
+
return;
|
|
370
393
|
let rgb = colorToRgb(this.Color);
|
|
371
394
|
let hsl = rgbToHsl(rgb);
|
|
372
395
|
let radius = this._canvas.nativeElement.width / 2;
|
|
@@ -400,19 +423,6 @@ const SelectorItemTemplate = `<ng-container *ngIf="ItemTemplate">
|
|
|
400
423
|
</ng-container>
|
|
401
424
|
<ng-container *ngIf="!ItemTemplate">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container>`;
|
|
402
425
|
class SelectorComponent extends FrameworkElementComponent {
|
|
403
|
-
constructor() {
|
|
404
|
-
super(...arguments);
|
|
405
|
-
this.IsEnabled = true;
|
|
406
|
-
this.HorizontalContentAlignment = 'Left';
|
|
407
|
-
this.VerticalContentAlignment = 'Center';
|
|
408
|
-
//ItemSource
|
|
409
|
-
this._itemSource = [];
|
|
410
|
-
//Selected index
|
|
411
|
-
this._selectedIndex = -1;
|
|
412
|
-
this.SelectedIndexChange = new EventEmitter();
|
|
413
|
-
this.SelectedValueChange = new EventEmitter();
|
|
414
|
-
this.SelectedItemChange = new EventEmitter();
|
|
415
|
-
}
|
|
416
426
|
get alignContent() {
|
|
417
427
|
return toAlignment(this.VerticalContentAlignment);
|
|
418
428
|
}
|
|
@@ -426,23 +436,44 @@ class SelectorComponent extends FrameworkElementComponent {
|
|
|
426
436
|
return this._itemSource;
|
|
427
437
|
}
|
|
428
438
|
set ItemSource(value) {
|
|
439
|
+
let oldIndex = this.SelectedIndex;
|
|
440
|
+
let oldValue = this.SelectedValue;
|
|
441
|
+
let oldItem = this.SelectedItem;
|
|
442
|
+
let newIndex = value.findIndex(p => this.getValue(-1, p) == oldValue);
|
|
443
|
+
let newValue = newIndex !== -1 ? oldValue : null;
|
|
444
|
+
let newItem = newIndex !== -1 ? value[newIndex] : null;
|
|
429
445
|
this._itemSource = value;
|
|
430
|
-
this.
|
|
446
|
+
this._selectedIndex = newIndex;
|
|
447
|
+
if (oldIndex !== newIndex)
|
|
448
|
+
this.SelectedIndexChange.emit(this.SelectedIndex);
|
|
449
|
+
if (oldValue !== newValue)
|
|
450
|
+
this.SelectedValueChange.emit(this.SelectedValue);
|
|
451
|
+
if (oldItem !== newItem)
|
|
452
|
+
this.SelectedItemChange.emit(this.SelectedItem);
|
|
431
453
|
}
|
|
432
454
|
get SelectedIndex() {
|
|
433
455
|
return this._selectedIndex;
|
|
434
456
|
}
|
|
435
457
|
set SelectedIndex(value) {
|
|
458
|
+
if (this.ItemSource === undefined)
|
|
459
|
+
return;
|
|
436
460
|
if (value < 0 && this.ItemSource.length > 0)
|
|
437
|
-
value =
|
|
461
|
+
value = -1;
|
|
438
462
|
if (value >= this.ItemSource.length)
|
|
439
463
|
value = this.ItemSource.length - 1;
|
|
440
|
-
|
|
441
|
-
|
|
464
|
+
let oldIndex = this._selectedIndex;
|
|
465
|
+
let oldValue = this.SelectedValue;
|
|
466
|
+
let oldItem = this.SelectedItem;
|
|
442
467
|
this._selectedIndex = value;
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
445
|
-
this.
|
|
468
|
+
let newIndex = this._selectedIndex;
|
|
469
|
+
let newValue = this.SelectedValue;
|
|
470
|
+
let newItem = this.SelectedItem;
|
|
471
|
+
if (oldIndex !== newIndex)
|
|
472
|
+
this.SelectedIndexChange.emit(this.SelectedIndex);
|
|
473
|
+
if (oldValue !== newValue)
|
|
474
|
+
this.SelectedValueChange.emit(this.SelectedValue);
|
|
475
|
+
if (oldItem !== newItem)
|
|
476
|
+
this.SelectedItemChange.emit(this.SelectedItem);
|
|
446
477
|
}
|
|
447
478
|
//Selected value
|
|
448
479
|
get SelectedValue() {
|
|
@@ -451,6 +482,8 @@ class SelectorComponent extends FrameworkElementComponent {
|
|
|
451
482
|
return this.getValue(-1, this.ItemSource[this.SelectedIndex]);
|
|
452
483
|
}
|
|
453
484
|
set SelectedValue(value) {
|
|
485
|
+
if (this.ItemSource === undefined)
|
|
486
|
+
return;
|
|
454
487
|
this.SelectedIndex = this.ItemSource.findIndex(p => this.getValue(-1, p) == value);
|
|
455
488
|
}
|
|
456
489
|
//Selected item
|
|
@@ -460,11 +493,10 @@ class SelectorComponent extends FrameworkElementComponent {
|
|
|
460
493
|
return this.ItemSource[this.SelectedIndex];
|
|
461
494
|
}
|
|
462
495
|
set SelectedItem(value) {
|
|
496
|
+
if (this.ItemSource === undefined)
|
|
497
|
+
return;
|
|
463
498
|
this.SelectedIndex = this.ItemSource.findIndex(value);
|
|
464
499
|
}
|
|
465
|
-
getValue(index, item) {
|
|
466
|
-
return this.SelectedValuePath ? item[this.SelectedValuePath] : item;
|
|
467
|
-
}
|
|
468
500
|
onItemClick(event, index, item) {
|
|
469
501
|
if (this.SelectedIndex === index || !this.IsEnabled)
|
|
470
502
|
return;
|
|
@@ -474,7 +506,24 @@ class SelectorComponent extends FrameworkElementComponent {
|
|
|
474
506
|
GetElement(index) {
|
|
475
507
|
return document.querySelector(`#xaml-selector-${this._id}-item-${index}`);
|
|
476
508
|
}
|
|
477
|
-
|
|
509
|
+
constructor() {
|
|
510
|
+
super();
|
|
511
|
+
this.IsEnabled = true;
|
|
512
|
+
this.HorizontalContentAlignment = 'Left';
|
|
513
|
+
this.VerticalContentAlignment = 'Center';
|
|
514
|
+
//ItemSource
|
|
515
|
+
this._itemSource = [];
|
|
516
|
+
//Selected index
|
|
517
|
+
this._selectedIndex = -1;
|
|
518
|
+
this.SelectedIndexChange = new EventEmitter();
|
|
519
|
+
this.SelectedValueChange = new EventEmitter();
|
|
520
|
+
this.SelectedItemChange = new EventEmitter();
|
|
521
|
+
//This is required otherwise the SelectedValuePath cannot be read
|
|
522
|
+
this.getValue = (index, item) => {
|
|
523
|
+
return this.SelectedValuePath !== undefined ? item[this.SelectedValuePath] : item;
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
478
527
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SelectorComponent, isStandalone: true, selector: "Selector", inputs: { IsEnabled: "IsEnabled", HorizontalContentAlignment: "HorizontalContentAlignment", VerticalContentAlignment: "VerticalContentAlignment", ItemSource: "ItemSource", SelectedIndex: "SelectedIndex", SelectedValue: "SelectedValue", SelectedItem: "SelectedItem", DisplayMemberPath: "DisplayMemberPath", SelectedValuePath: "SelectedValuePath" }, outputs: { SelectedIndexChange: "SelectedIndexChange", SelectedValueChange: "SelectedValueChange", SelectedItemChange: "SelectedItemChange" }, host: { properties: { "class.disabled": "this.disabled" } }, queries: [{ propertyName: "ItemTemplate", first: true, predicate: TemplateRef, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
479
528
|
}
|
|
480
529
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectorComponent, decorators: [{
|
|
@@ -483,7 +532,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
483
532
|
selector: 'Selector',
|
|
484
533
|
template: '',
|
|
485
534
|
}]
|
|
486
|
-
}], propDecorators: { ItemTemplate: [{
|
|
535
|
+
}], ctorParameters: () => [], propDecorators: { ItemTemplate: [{
|
|
487
536
|
type: ContentChild,
|
|
488
537
|
args: [TemplateRef]
|
|
489
538
|
}], IsEnabled: [{
|
|
@@ -652,7 +701,7 @@ class ScrollBarComponent extends FrameworkElementComponent {
|
|
|
652
701
|
<div #track class="track" (pointerdown)="onTrackDown($event)" (pointerup)="onTrackUp($event)">
|
|
653
702
|
<div #thumb class="thumb" [ngStyle]="thumbStyle" (pointerdown)="onPointerDown($event)" (pointermove)="onPointerMove($event)" (pointerup)="onPointerUp($event)"></div>
|
|
654
703
|
</div>
|
|
655
|
-
<div class="buttons" (pointerdown)="onButtonDown($event, true)" (pointerup)="onButtonUp($event)">{{increaseGlyph}}</div>`, isInline: true, styles: [":host{position:relative}:host{display:grid;background-color:var(--SubtleFillColorTransparent)}:host.horizontal{grid-template-columns:auto 1fr auto}:host.horizontal>.buttons{align-self:center}:host.horizontal>.track{transform:translateY(-.75px);align-self:center;margin:0 -2px 0 -3px}:host.horizontal>.track>.thumb{transform:translateY(3px)}:host.vertical{grid-template-rows:auto 1fr auto}:host.vertical>.buttons{justify-self:center}:host.vertical>.track{transform:translate(-.75px);justify-self:center;margin:-3px 0 -2px}:host.vertical>.track>.thumb{transform:translate(3px)}:host:hover
|
|
704
|
+
<div class="buttons" (pointerdown)="onButtonDown($event, true)" (pointerup)="onButtonUp($event)">{{increaseGlyph}}</div>`, isInline: true, styles: [":host{position:relative}:host{display:grid;background-color:var(--SubtleFillColorTransparent)}:host.horizontal{grid-template-columns:auto 1fr auto}:host.horizontal>.buttons{align-self:center}:host.horizontal>.track{transform:translateY(-.75px);align-self:center;margin:0 -2px 0 -3px}:host.horizontal>.track>.thumb{transform:translateY(3px)}:host.vertical{grid-template-rows:auto 1fr auto}:host.vertical>.buttons{justify-self:center}:host.vertical>.track{transform:translate(-.75px);justify-self:center;margin:-3px 0 -2px}:host.vertical>.track>.thumb{transform:translate(3px)}:host:hover>.buttons{display:grid;opacity:1}:host:hover>.track>.thumb{min-width:10px;min-height:10px;transform:translate(0)}:host>.buttons{display:hidden;font-family:var(--SymbolFontFamily);font-size:8pt;min-width:12px;min-height:12px;margin:4px;transform-origin:center;opacity:0;transition:opacity var(--ControlNormalAnimationDuration);color:var(--ControlStrongFillColorDefault)}:host>.buttons:hover{color:var(--TextFillColorSecondary)}:host>.buttons:active{color:var(--TextFillColorSecondary);transform:scale(.875)}:host>.track{display:grid;position:relative}:host>.track>.thumb{background-color:var(--ControlStrongFillColorDefault);position:relative;border-radius:3px;transition:transform var(--ControlNormalAnimationDuration),min-width var(--ControlNormalAnimationDuration),min-height var(--ControlNormalAnimationDuration);min-width:2px;min-height:2px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
656
705
|
}
|
|
657
706
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ScrollBarComponent, decorators: [{
|
|
658
707
|
type: Component,
|
|
@@ -660,7 +709,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
660
709
|
<div #track class="track" (pointerdown)="onTrackDown($event)" (pointerup)="onTrackUp($event)">
|
|
661
710
|
<div #thumb class="thumb" [ngStyle]="thumbStyle" (pointerdown)="onPointerDown($event)" (pointermove)="onPointerMove($event)" (pointerup)="onPointerUp($event)"></div>
|
|
662
711
|
</div>
|
|
663
|
-
<div class="buttons" (pointerdown)="onButtonDown($event, true)" (pointerup)="onButtonUp($event)">{{increaseGlyph}}</div>`, styles: [":host{position:relative}:host{display:grid;background-color:var(--SubtleFillColorTransparent)}:host.horizontal{grid-template-columns:auto 1fr auto}:host.horizontal>.buttons{align-self:center}:host.horizontal>.track{transform:translateY(-.75px);align-self:center;margin:0 -2px 0 -3px}:host.horizontal>.track>.thumb{transform:translateY(3px)}:host.vertical{grid-template-rows:auto 1fr auto}:host.vertical>.buttons{justify-self:center}:host.vertical>.track{transform:translate(-.75px);justify-self:center;margin:-3px 0 -2px}:host.vertical>.track>.thumb{transform:translate(3px)}:host:hover
|
|
712
|
+
<div class="buttons" (pointerdown)="onButtonDown($event, true)" (pointerup)="onButtonUp($event)">{{increaseGlyph}}</div>`, styles: [":host{position:relative}:host{display:grid;background-color:var(--SubtleFillColorTransparent)}:host.horizontal{grid-template-columns:auto 1fr auto}:host.horizontal>.buttons{align-self:center}:host.horizontal>.track{transform:translateY(-.75px);align-self:center;margin:0 -2px 0 -3px}:host.horizontal>.track>.thumb{transform:translateY(3px)}:host.vertical{grid-template-rows:auto 1fr auto}:host.vertical>.buttons{justify-self:center}:host.vertical>.track{transform:translate(-.75px);justify-self:center;margin:-3px 0 -2px}:host.vertical>.track>.thumb{transform:translate(3px)}:host:hover>.buttons{display:grid;opacity:1}:host:hover>.track>.thumb{min-width:10px;min-height:10px;transform:translate(0)}:host>.buttons{display:hidden;font-family:var(--SymbolFontFamily);font-size:8pt;min-width:12px;min-height:12px;margin:4px;transform-origin:center;opacity:0;transition:opacity var(--ControlNormalAnimationDuration);color:var(--ControlStrongFillColorDefault)}:host>.buttons:hover{color:var(--TextFillColorSecondary)}:host>.buttons:active{color:var(--TextFillColorSecondary);transform:scale(.875)}:host>.track{display:grid;position:relative}:host>.track>.thumb{background-color:var(--ControlStrongFillColorDefault);position:relative;border-radius:3px;transition:transform var(--ControlNormalAnimationDuration),min-width var(--ControlNormalAnimationDuration),min-height var(--ControlNormalAnimationDuration);min-width:2px;min-height:2px}\n"] }]
|
|
664
713
|
}], propDecorators: { Orientation: [{
|
|
665
714
|
type: Input
|
|
666
715
|
}], ViewportSize: [{
|
|
@@ -763,13 +812,13 @@ class ScrollViewerComponent extends FrameworkElementComponent {
|
|
|
763
812
|
this._changeDetector.detectChanges();
|
|
764
813
|
}
|
|
765
814
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ScrollViewerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
766
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ScrollViewerComponent, isStandalone: true, selector: "ScrollViewer", inputs: { HorizontalScrollMode: "HorizontalScrollMode", VerticalScrollMode: "VerticalScrollMode" }, viewQueries: [{ propertyName: "_content", first: true, predicate: ["content"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<div #content class="content" [ngStyle]="contentStyle" (scroll)="onScroll()"><ng-content/></div>
|
|
815
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ScrollViewerComponent, isStandalone: true, selector: "ScrollViewer", inputs: { HorizontalScrollMode: "HorizontalScrollMode", VerticalScrollMode: "VerticalScrollMode" }, viewQueries: [{ propertyName: "_content", first: true, predicate: ["content"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<div #content class="content" [ngStyle]="contentStyle" (scroll)="onScroll()" cdkScrollable><ng-content/></div>
|
|
767
816
|
<ScrollBar *ngIf="IsVerticalScrollBarVisible" HorizontalAlignment="Right" class="scrollbar" Orientation="Vertical" [ScrollSize]="ExtentHeight" [ViewportSize]="ViewportHeight" [(Value)]="VerticalOffset"/>
|
|
768
|
-
<ScrollBar *ngIf="IsHorizontalScrollBarVisible" VerticalAlignment="Bottom" class="scrollbar" Orientation="Horizontal" [ScrollSize]="ExtentWidth" [ViewportSize]="ViewportWidth" [(Value)]="HorizontalOffset"/>`, isInline: true, styles: [":host{display:grid;overflow:auto}:host>.content{overflow:-moz-scrollbars-none;-ms-overflow-style:none;scrollbar-width:none;display:grid;grid-row-start:1;grid-column-start:1;justify-self:stretch;align-self:stretch}:host>.content::-webkit-scrollbar{display:none}:host>.scrollbar{display:grid;grid-row-start:1;grid-column-start:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ScrollBarComponent, selector: "ScrollBar", inputs: ["Orientation", "ViewportSize", "ScrollSize", "StepSize", "Value", "IsEnabled"], outputs: ["ValueChange"] }] }); }
|
|
817
|
+
<ScrollBar *ngIf="IsHorizontalScrollBarVisible" VerticalAlignment="Bottom" class="scrollbar" Orientation="Horizontal" [ScrollSize]="ExtentWidth" [ViewportSize]="ViewportWidth" [(Value)]="HorizontalOffset"/>`, isInline: true, styles: [":host{display:grid;overflow:auto}:host>.content{overflow:-moz-scrollbars-none;-ms-overflow-style:none;scrollbar-width:none;display:grid;grid-row-start:1;grid-column-start:1;justify-self:stretch;align-self:stretch}:host>.content::-webkit-scrollbar{display:none}:host>.scrollbar{display:grid;grid-row-start:1;grid-column-start:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ScrollBarComponent, selector: "ScrollBar", inputs: ["Orientation", "ViewportSize", "ScrollSize", "StepSize", "Value", "IsEnabled"], outputs: ["ValueChange"] }, { kind: "directive", type: CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }] }); }
|
|
769
818
|
}
|
|
770
819
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ScrollViewerComponent, decorators: [{
|
|
771
820
|
type: Component,
|
|
772
|
-
args: [{ selector: 'ScrollViewer', imports: [CommonModule, ScrollBarComponent], template: `<div #content class="content" [ngStyle]="contentStyle" (scroll)="onScroll()"><ng-content/></div>
|
|
821
|
+
args: [{ selector: 'ScrollViewer', imports: [CommonModule, ScrollBarComponent, CdkScrollable], template: `<div #content class="content" [ngStyle]="contentStyle" (scroll)="onScroll()" cdkScrollable><ng-content/></div>
|
|
773
822
|
<ScrollBar *ngIf="IsVerticalScrollBarVisible" HorizontalAlignment="Right" class="scrollbar" Orientation="Vertical" [ScrollSize]="ExtentHeight" [ViewportSize]="ViewportHeight" [(Value)]="VerticalOffset"/>
|
|
774
823
|
<ScrollBar *ngIf="IsHorizontalScrollBarVisible" VerticalAlignment="Bottom" class="scrollbar" Orientation="Horizontal" [ScrollSize]="ExtentWidth" [ViewportSize]="ViewportWidth" [(Value)]="HorizontalOffset"/>`, styles: [":host{display:grid;overflow:auto}:host>.content{overflow:-moz-scrollbars-none;-ms-overflow-style:none;scrollbar-width:none;display:grid;grid-row-start:1;grid-column-start:1;justify-self:stretch;align-self:stretch}:host>.content::-webkit-scrollbar{display:none}:host>.scrollbar{display:grid;grid-row-start:1;grid-column-start:1}\n"] }]
|
|
775
824
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { HorizontalScrollMode: [{
|
|
@@ -786,11 +835,17 @@ class StackPanelComponent extends PanelComponent {
|
|
|
786
835
|
super(...arguments);
|
|
787
836
|
this.Orientation = 'Vertical';
|
|
788
837
|
}
|
|
789
|
-
get
|
|
838
|
+
get gridAutoFlow() {
|
|
790
839
|
return this.Orientation === 'Horizontal' ? 'column' : 'row';
|
|
791
840
|
}
|
|
841
|
+
get gridAutoRows() {
|
|
842
|
+
return this.Orientation === 'Vertical' ? 'min-content' : undefined;
|
|
843
|
+
}
|
|
844
|
+
get gridAutoColumns() {
|
|
845
|
+
return this.Orientation === 'Horizontal' ? 'min-content' : undefined;
|
|
846
|
+
}
|
|
792
847
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: StackPanelComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
793
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: StackPanelComponent, isStandalone: true, selector: "StackPanel", inputs: { Orientation: "Orientation", Spacing: "Spacing" }, host: { properties: { "style.gap": "this.Spacing", "style.grid-auto-flow": "this.gridAutoColumns" } }, usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:grid;position:relative}\n"] }); }
|
|
848
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: StackPanelComponent, isStandalone: true, selector: "StackPanel", inputs: { Orientation: "Orientation", Spacing: "Spacing" }, host: { properties: { "style.gap": "this.Spacing", "style.grid-auto-flow": "this.gridAutoFlow", "style.grid-auto-rows": "this.gridAutoRows", "style.grid-auto-columns": "this.gridAutoColumns" } }, usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:grid;position:relative}\n"] }); }
|
|
794
849
|
}
|
|
795
850
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: StackPanelComponent, decorators: [{
|
|
796
851
|
type: Component,
|
|
@@ -802,108 +857,330 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
802
857
|
}, {
|
|
803
858
|
type: HostBinding,
|
|
804
859
|
args: ['style.gap']
|
|
805
|
-
}],
|
|
860
|
+
}], gridAutoFlow: [{
|
|
806
861
|
type: HostBinding,
|
|
807
862
|
args: ['style.grid-auto-flow']
|
|
863
|
+
}], gridAutoRows: [{
|
|
864
|
+
type: HostBinding,
|
|
865
|
+
args: ['style.grid-auto-rows']
|
|
866
|
+
}], gridAutoColumns: [{
|
|
867
|
+
type: HostBinding,
|
|
868
|
+
args: ['style.grid-auto-columns']
|
|
808
869
|
}] } });
|
|
809
870
|
|
|
810
871
|
class ListViewComponent extends SelectorComponent {
|
|
811
872
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
812
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ListViewComponent, isStandalone: true, selector: "ListView", usesInheritance: true, ngImport: i0, template: "<ScrollViewer>\n <StackPanel Padding=\"2px 0\">\n <div *ngFor=\"let item of ItemSource; index as index; trackBy: getValue\" class=\"item\" [ngClass]=\"{'selected': index == SelectedIndex}\" (click)=\"onItemClick($event, index, item)\" [id]=\"'xaml-selector-'+_id+'-item-'+index\">\n <div class=\"item-selector\"></div>\n <div class=\"item-content\" [ngStyle]=\"{'align-content': alignContent, 'justify-content': justifyContent}\"><ng-container *ngIf=\"ItemTemplate\">\n <ng-container *ngTemplateOutlet=\"ItemTemplate; context: { $implicit: item }\"/>\n </ng-container>\n <ng-container *ngIf=\"!ItemTemplate\">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container></div>\n </div>\n </StackPanel>\n </ScrollViewer>", isInline: true, styles: [":host{position:relative}:host{display:grid}:host .item{display:grid;margin:2px 4px;border-radius:4px}:host .item>.item-selector,:host .item>.item-content{display:grid;grid-row-start:1;grid-column-start:1;justify-self:stretch}:host .item>.item-selector{justify-self:left;align-self:center;width:4px;height:12px;border-radius:2px;transition:height var(--ControlNormalAnimationDuration)}:host .item>.item-content{padding:8px 12px}:host .item.selected>.item-selector{height:18px}:host:not(.disabled) .item:not(:hover):not(:active):not(.selected){background-color:transparent;color:var(--TextFillColorPrimary)}:host:not(.disabled) .item:hover:not(.active):not(.selected){background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:active:not(.selected){background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:not(:hover):not(:active).selected{background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:hover:not(:active).selected{background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:active.selected{background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item.selected>.item-selector{background-color:var(--AccentFillColorDefault)}:host.disabled .item>.item-content{color:var(--TextFillColorDisabled)}:host.disabled .item:not(.selected){background-color:transparent}:host.disabled .item.selected{background-color:var(--SubtleFillColorSecondary)}:host.disabled .item.selected>.item-selector{background-color:var(--AccentFillColorDisabled)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ScrollViewerComponent, selector: "ScrollViewer", inputs: ["HorizontalScrollMode", "VerticalScrollMode"] }, { kind: "component", type: StackPanelComponent, selector: "StackPanel", inputs: ["Orientation", "Spacing"] }]
|
|
873
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ListViewComponent, isStandalone: true, selector: "ListView", usesInheritance: true, ngImport: i0, template: "<ScrollViewer>\n <StackPanel Padding=\"2px 0\">\n <div *ngFor=\"let item of ItemSource; index as index; trackBy: getValue\" class=\"item\" [ngClass]=\"{'selected': index == SelectedIndex}\" (click)=\"onItemClick($event, index, item)\" [id]=\"'xaml-selector-'+_id+'-item-'+index\" @itemFading>\n <div class=\"item-selector\"></div>\n <div class=\"item-content\" [ngStyle]=\"{'align-content': alignContent, 'justify-content': justifyContent}\"><ng-container *ngIf=\"ItemTemplate\">\n <ng-container *ngTemplateOutlet=\"ItemTemplate; context: { $implicit: item }\"/>\n </ng-container>\n <ng-container *ngIf=\"!ItemTemplate\">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container></div>\n </div>\n </StackPanel>\n </ScrollViewer>", isInline: true, styles: [":host{position:relative}:host{display:grid}:host .item{display:grid;margin:2px 4px;border-radius:4px}:host .item>.item-selector,:host .item>.item-content{display:grid;grid-row-start:1;grid-column-start:1;justify-self:stretch}:host .item>.item-selector{justify-self:left;align-self:center;width:4px;height:12px;border-radius:2px;transition:height var(--ControlNormalAnimationDuration)}:host .item>.item-content{padding:8px 12px}:host .item.selected>.item-selector{height:18px}:host:not(.disabled) .item:not(:hover):not(:active):not(.selected){background-color:transparent;color:var(--TextFillColorPrimary)}:host:not(.disabled) .item:hover:not(.active):not(.selected){background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:active:not(.selected){background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:not(:hover):not(:active).selected{background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:hover:not(:active).selected{background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:active.selected{background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item.selected>.item-selector{background-color:var(--AccentFillColorDefault)}:host.disabled .item>.item-content{color:var(--TextFillColorDisabled)}:host.disabled .item:not(.selected){background-color:transparent}:host.disabled .item.selected{background-color:var(--SubtleFillColorSecondary)}:host.disabled .item.selected>.item-selector{background-color:var(--AccentFillColorDisabled)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ScrollViewerComponent, selector: "ScrollViewer", inputs: ["HorizontalScrollMode", "VerticalScrollMode"] }, { kind: "component", type: StackPanelComponent, selector: "StackPanel", inputs: ["Orientation", "Spacing"] }], animations: [
|
|
874
|
+
trigger('itemFading', [
|
|
875
|
+
transition(':enter', [animate('500ms ease-in', keyframes([
|
|
876
|
+
style({ opacity: 0, height: 0 }),
|
|
877
|
+
style({ opacity: 0, height: '*' }),
|
|
878
|
+
style({ opacity: 1, height: '*' }),
|
|
879
|
+
]))]),
|
|
880
|
+
transition(':leave', [animate('500ms ease-out', keyframes([
|
|
881
|
+
style({ opacity: 1, height: '*' }),
|
|
882
|
+
style({ opacity: 0, height: '*' }),
|
|
883
|
+
style({ opacity: 0, height: 0 }),
|
|
884
|
+
]))]),
|
|
885
|
+
])
|
|
886
|
+
] }); }
|
|
813
887
|
}
|
|
814
888
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ListViewComponent, decorators: [{
|
|
815
889
|
type: Component,
|
|
816
890
|
args: [{ selector: 'ListView', imports: [CommonModule, ScrollViewerComponent, StackPanelComponent], template: `<ScrollViewer>
|
|
817
891
|
<StackPanel Padding="2px 0">
|
|
818
|
-
<div *ngFor="let item of ItemSource; index as index; trackBy: getValue" class="item" [ngClass]="{'selected': index == SelectedIndex}" (click)="onItemClick($event, index, item)" [id]="'xaml-selector-'+_id+'-item-'+index">
|
|
892
|
+
<div *ngFor="let item of ItemSource; index as index; trackBy: getValue" class="item" [ngClass]="{'selected': index == SelectedIndex}" (click)="onItemClick($event, index, item)" [id]="'xaml-selector-'+_id+'-item-'+index" @itemFading>
|
|
819
893
|
<div class="item-selector"></div>
|
|
820
894
|
<div class="item-content" [ngStyle]="{'align-content': alignContent, 'justify-content': justifyContent}">${SelectorItemTemplate}</div>
|
|
821
895
|
</div>
|
|
822
896
|
</StackPanel>
|
|
823
|
-
</ScrollViewer>`,
|
|
897
|
+
</ScrollViewer>`, animations: [
|
|
898
|
+
trigger('itemFading', [
|
|
899
|
+
transition(':enter', [animate('500ms ease-in', keyframes([
|
|
900
|
+
style({ opacity: 0, height: 0 }),
|
|
901
|
+
style({ opacity: 0, height: '*' }),
|
|
902
|
+
style({ opacity: 1, height: '*' }),
|
|
903
|
+
]))]),
|
|
904
|
+
transition(':leave', [animate('500ms ease-out', keyframes([
|
|
905
|
+
style({ opacity: 1, height: '*' }),
|
|
906
|
+
style({ opacity: 0, height: '*' }),
|
|
907
|
+
style({ opacity: 0, height: 0 }),
|
|
908
|
+
]))]),
|
|
909
|
+
])
|
|
910
|
+
], styles: [":host{position:relative}:host{display:grid}:host .item{display:grid;margin:2px 4px;border-radius:4px}:host .item>.item-selector,:host .item>.item-content{display:grid;grid-row-start:1;grid-column-start:1;justify-self:stretch}:host .item>.item-selector{justify-self:left;align-self:center;width:4px;height:12px;border-radius:2px;transition:height var(--ControlNormalAnimationDuration)}:host .item>.item-content{padding:8px 12px}:host .item.selected>.item-selector{height:18px}:host:not(.disabled) .item:not(:hover):not(:active):not(.selected){background-color:transparent;color:var(--TextFillColorPrimary)}:host:not(.disabled) .item:hover:not(.active):not(.selected){background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:active:not(.selected){background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:not(:hover):not(:active).selected{background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:hover:not(:active).selected{background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:active.selected{background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item.selected>.item-selector{background-color:var(--AccentFillColorDefault)}:host.disabled .item>.item-content{color:var(--TextFillColorDisabled)}:host.disabled .item:not(.selected){background-color:transparent}:host.disabled .item.selected{background-color:var(--SubtleFillColorSecondary)}:host.disabled .item.selected>.item-selector{background-color:var(--AccentFillColorDisabled)}\n"] }]
|
|
824
911
|
}] });
|
|
825
912
|
|
|
826
|
-
class
|
|
913
|
+
class DropDownButtonComponent extends ButtonComponent {
|
|
914
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: DropDownButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
915
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: DropDownButtonComponent, isStandalone: true, selector: "DropDownButton", usesInheritance: true, ngImport: i0, template: `<div class="drop-down-glyph"></div><ng-content/>`, isInline: true, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.flyout-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.flyout-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.flyout-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.flyout-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.flyout-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.flyout-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n", ".drop-down-glyph{display:grid;font-family:var(--SymbolFontFamily);font-size:8pt;position:absolute;right:12px;top:0;bottom:0;align-content:center;transition:transform var(--ControlNormalAnimationDuration)}:host:active:not(.flyout-open):not(.disabled) .drop-down-glyph{transform:translateY(3px)}\n"] }); }
|
|
916
|
+
}
|
|
917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: DropDownButtonComponent, decorators: [{
|
|
918
|
+
type: Component,
|
|
919
|
+
args: [{ selector: 'DropDownButton', template: `<div class="drop-down-glyph"></div><ng-content/>`, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.flyout-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.flyout-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.flyout-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.flyout-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.flyout-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.flyout-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n", ".drop-down-glyph{display:grid;font-family:var(--SymbolFontFamily);font-size:8pt;position:absolute;right:12px;top:0;bottom:0;align-content:center;transition:transform var(--ControlNormalAnimationDuration)}:host:active:not(.flyout-open):not(.disabled) .drop-down-glyph{transform:translateY(3px)}\n"] }]
|
|
920
|
+
}] });
|
|
921
|
+
|
|
922
|
+
class FlyoutPresenter {
|
|
827
923
|
constructor() {
|
|
828
|
-
this.
|
|
829
|
-
this.
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
this.
|
|
924
|
+
this.TransitionAnimation = 'Default';
|
|
925
|
+
this.IsVisible = false;
|
|
926
|
+
}
|
|
927
|
+
static { this.TransitionDuration = 250; }
|
|
928
|
+
get transitionClass() {
|
|
929
|
+
return 'transition-' + this.TransitionAnimation.toLowerCase();
|
|
930
|
+
}
|
|
931
|
+
get visible() {
|
|
932
|
+
return this.IsVisible;
|
|
834
933
|
}
|
|
934
|
+
onContextMenu(event) {
|
|
935
|
+
event.preventDefault();
|
|
936
|
+
}
|
|
937
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FlyoutPresenter, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
938
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: FlyoutPresenter, isStandalone: true, selector: "FlyoutPresenter", inputs: { TransitionAnimation: "TransitionAnimation", Padding: "Padding", IsVisible: "IsVisible" }, host: { listeners: { "contextmenu": "onContextMenu($event)" }, properties: { "style.padding": "this.Padding", "class": "this.transitionClass", "class.visible": "this.visible" } }, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:grid;overflow:hidden;-webkit-user-select:none;user-select:none;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #00000080;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault);transition:opacity var(--ControlNormalAnimationDuration),transform var(--ControlNormalAnimationDuration);opacity:0;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px)}:host.transition-slideup{transform:translateY(10px)}:host.transition-slidedown{transform:translateY(-10px)}:host.transition-slideleft{transform:translate(10px)}:host.transition-slideright{transform:translate(-10px)}:host.visible{opacity:1;transform:translate(0)}\n"] }); }
|
|
939
|
+
}
|
|
940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FlyoutPresenter, decorators: [{
|
|
941
|
+
type: Component,
|
|
942
|
+
args: [{ selector: 'FlyoutPresenter', template: `<ng-content/>`, styles: [":host{display:grid;overflow:hidden;-webkit-user-select:none;user-select:none;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #00000080;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault);transition:opacity var(--ControlNormalAnimationDuration),transform var(--ControlNormalAnimationDuration);opacity:0;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px)}:host.transition-slideup{transform:translateY(10px)}:host.transition-slidedown{transform:translateY(-10px)}:host.transition-slideleft{transform:translate(10px)}:host.transition-slideright{transform:translate(-10px)}:host.visible{opacity:1;transform:translate(0)}\n"] }]
|
|
943
|
+
}], propDecorators: { TransitionAnimation: [{
|
|
944
|
+
type: Input
|
|
945
|
+
}], Padding: [{
|
|
946
|
+
type: Input
|
|
947
|
+
}, {
|
|
948
|
+
type: HostBinding,
|
|
949
|
+
args: ['style.padding']
|
|
950
|
+
}], IsVisible: [{
|
|
951
|
+
type: Input
|
|
952
|
+
}], transitionClass: [{
|
|
953
|
+
type: HostBinding,
|
|
954
|
+
args: ['class']
|
|
955
|
+
}], visible: [{
|
|
956
|
+
type: HostBinding,
|
|
957
|
+
args: ['class.visible']
|
|
958
|
+
}], onContextMenu: [{
|
|
959
|
+
type: HostListener,
|
|
960
|
+
args: ['contextmenu', ['$event']]
|
|
961
|
+
}] } });
|
|
962
|
+
|
|
963
|
+
const PopupTemplate = `<ng-template #template><FlyoutPresenter #presenter [IsVisible]="isVisible" [TransitionAnimation]="transitionAnimation" [Padding]="Padding"><ng-content/></FlyoutPresenter></ng-template>`;
|
|
964
|
+
class FlyoutBaseComponent {
|
|
835
965
|
get IsOpen() {
|
|
836
966
|
return this._isOpen;
|
|
837
967
|
}
|
|
838
|
-
;
|
|
839
968
|
set IsOpen(value) {
|
|
969
|
+
if (value === this._isOpen)
|
|
970
|
+
return;
|
|
840
971
|
this._isOpen = value;
|
|
841
|
-
if (this._isRenderedTimeout !== undefined) {
|
|
842
|
-
clearTimeout(this._isRenderedTimeout);
|
|
843
|
-
}
|
|
844
972
|
if (value) {
|
|
845
|
-
this.
|
|
973
|
+
this.updatePlacement();
|
|
974
|
+
this._overlayRef.attach(this._templatePortal);
|
|
975
|
+
if (this.HasBackdrop)
|
|
976
|
+
this._backdropContextMenuSubscription = this._renderer.listen(this._overlayRef.backdropElement, 'contextmenu', p => { p.preventDefault(); this.Hide(); });
|
|
977
|
+
setTimeout(() => this.isVisible = true, 0);
|
|
846
978
|
}
|
|
847
979
|
else {
|
|
848
|
-
this.
|
|
849
|
-
|
|
850
|
-
|
|
980
|
+
this.isVisible = false;
|
|
981
|
+
setTimeout(() => this._overlayRef.detach(), FlyoutPresenter.TransitionDuration);
|
|
982
|
+
if (this._backdropContextMenuSubscription)
|
|
983
|
+
this._backdropContextMenuSubscription();
|
|
984
|
+
}
|
|
985
|
+
this.IsOpenChange.emit(value);
|
|
986
|
+
}
|
|
987
|
+
updatePlacement() {
|
|
988
|
+
if (!this._overlayRef)
|
|
989
|
+
return;
|
|
990
|
+
let target = this.Target ?? this._hostElement;
|
|
991
|
+
let positionStrategy = this._overlay
|
|
992
|
+
.position()
|
|
993
|
+
.flexibleConnectedTo(target)
|
|
994
|
+
.withPositions([this.positioning])
|
|
995
|
+
.withGrowAfterOpen(true)
|
|
996
|
+
.withFlexibleDimensions(true)
|
|
997
|
+
.withPush(true);
|
|
998
|
+
this._overlayRef.updatePositionStrategy(positionStrategy);
|
|
999
|
+
if (this.Placement === 'Cover') {
|
|
1000
|
+
this._overlayRef.updateSize(target);
|
|
851
1001
|
}
|
|
852
|
-
|
|
853
|
-
|
|
1002
|
+
}
|
|
1003
|
+
get Target() {
|
|
1004
|
+
return this._target;
|
|
1005
|
+
}
|
|
1006
|
+
set Target(value) {
|
|
1007
|
+
this._target = value;
|
|
1008
|
+
this.updatePlacement();
|
|
1009
|
+
}
|
|
1010
|
+
get style() {
|
|
1011
|
+
return {
|
|
1012
|
+
'position': 'absolute',
|
|
1013
|
+
'inset': 0,
|
|
1014
|
+
'pointer-events': 'none'
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
get transitionAnimation() {
|
|
1018
|
+
return 'Default';
|
|
1019
|
+
}
|
|
1020
|
+
get positioning() {
|
|
1021
|
+
switch (this.Placement) {
|
|
1022
|
+
case "Top":
|
|
1023
|
+
return {
|
|
1024
|
+
originX: 'center', originY: 'top',
|
|
1025
|
+
overlayX: 'center', overlayY: 'bottom'
|
|
1026
|
+
};
|
|
1027
|
+
case "TopEdgeAlignedLeft":
|
|
1028
|
+
return {
|
|
1029
|
+
originX: 'start', originY: 'top',
|
|
1030
|
+
overlayX: 'start', overlayY: 'bottom'
|
|
1031
|
+
};
|
|
1032
|
+
case "TopEdgeAlignedRight":
|
|
1033
|
+
return {
|
|
1034
|
+
originX: 'end', originY: 'top',
|
|
1035
|
+
overlayX: 'end', overlayY: 'bottom'
|
|
1036
|
+
};
|
|
1037
|
+
case "Bottom":
|
|
1038
|
+
return {
|
|
1039
|
+
originX: 'center', originY: 'bottom',
|
|
1040
|
+
overlayX: 'center', overlayY: 'top'
|
|
1041
|
+
};
|
|
1042
|
+
case "BottomEdgeAlignedLeft":
|
|
1043
|
+
return {
|
|
1044
|
+
originX: 'start', originY: 'bottom',
|
|
1045
|
+
overlayX: 'start', overlayY: 'top'
|
|
1046
|
+
};
|
|
1047
|
+
case "BottomEdgeAlignedRight":
|
|
1048
|
+
return {
|
|
1049
|
+
originX: 'end', originY: 'bottom',
|
|
1050
|
+
overlayX: 'end', overlayY: 'top'
|
|
1051
|
+
};
|
|
1052
|
+
case "Left":
|
|
1053
|
+
return {
|
|
1054
|
+
originX: 'start', originY: 'center',
|
|
1055
|
+
overlayX: 'end', overlayY: 'center'
|
|
1056
|
+
};
|
|
1057
|
+
case "LeftEdgeAlignedTop":
|
|
1058
|
+
return {
|
|
1059
|
+
originX: 'start', originY: 'top',
|
|
1060
|
+
overlayX: 'end', overlayY: 'top'
|
|
1061
|
+
};
|
|
1062
|
+
case "LeftEdgeAlignedBottom":
|
|
1063
|
+
return {
|
|
1064
|
+
originX: 'start', originY: 'bottom',
|
|
1065
|
+
overlayX: 'end', overlayY: 'bottom'
|
|
1066
|
+
};
|
|
1067
|
+
case "Right":
|
|
1068
|
+
return {
|
|
1069
|
+
originX: 'end', originY: 'center',
|
|
1070
|
+
overlayX: 'start', overlayY: 'center'
|
|
1071
|
+
};
|
|
1072
|
+
case "RightEdgeAlignedTop":
|
|
1073
|
+
return {
|
|
1074
|
+
originX: 'end', originY: 'top',
|
|
1075
|
+
overlayX: 'start', overlayY: 'top'
|
|
1076
|
+
};
|
|
1077
|
+
case "RightEdgeAlignedBottom":
|
|
1078
|
+
return {
|
|
1079
|
+
originX: 'end', originY: 'bottom',
|
|
1080
|
+
overlayX: 'start', overlayY: 'bottom'
|
|
1081
|
+
};
|
|
1082
|
+
case "Cover":
|
|
1083
|
+
return {
|
|
1084
|
+
originX: 'start', originY: 'top',
|
|
1085
|
+
overlayX: 'start', overlayY: 'top'
|
|
1086
|
+
};
|
|
854
1087
|
}
|
|
855
1088
|
}
|
|
856
1089
|
;
|
|
1090
|
+
constructor(_viewContainerRef, _overlay, _hostElement, _renderer) {
|
|
1091
|
+
this._viewContainerRef = _viewContainerRef;
|
|
1092
|
+
this._overlay = _overlay;
|
|
1093
|
+
this._hostElement = _hostElement;
|
|
1094
|
+
this._renderer = _renderer;
|
|
1095
|
+
this.Placement = 'Top';
|
|
1096
|
+
this.HasBackdrop = true;
|
|
1097
|
+
this._isOpen = false;
|
|
1098
|
+
this.isVisible = false;
|
|
1099
|
+
this.IsOpenChange = new EventEmitter();
|
|
1100
|
+
this._target = null;
|
|
1101
|
+
}
|
|
1102
|
+
ngOnDestroy() {
|
|
1103
|
+
if (this._backdropContextMenuSubscription)
|
|
1104
|
+
this._backdropContextMenuSubscription();
|
|
1105
|
+
}
|
|
1106
|
+
ngAfterViewInit() {
|
|
1107
|
+
this._templatePortal = new TemplatePortal(this._template, this._viewContainerRef);
|
|
1108
|
+
let config = new OverlayConfig({
|
|
1109
|
+
hasBackdrop: this.HasBackdrop,
|
|
1110
|
+
scrollStrategy: this._overlay.scrollStrategies.reposition()
|
|
1111
|
+
});
|
|
1112
|
+
this._overlayRef = this._overlay.create(config);
|
|
1113
|
+
this._overlayRef.backdropClick().subscribe(() => this.Hide());
|
|
1114
|
+
this.OnOverlay(this._overlayRef);
|
|
1115
|
+
}
|
|
1116
|
+
OnOverlay(overlay) {
|
|
1117
|
+
}
|
|
857
1118
|
Show() {
|
|
858
1119
|
this.IsOpen = true;
|
|
859
1120
|
}
|
|
860
1121
|
Hide() {
|
|
861
1122
|
this.IsOpen = false;
|
|
862
1123
|
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
}
|
|
866
|
-
onBackdropClick(event) {
|
|
867
|
-
this.Hide();
|
|
868
|
-
event.stopImmediatePropagation();
|
|
869
|
-
}
|
|
870
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
871
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: PopupComponent, isStandalone: true, selector: "Popup", inputs: { IsOpen: "IsOpen", VerticalOffset: "VerticalOffset", HorizontalOffset: "HorizontalOffset" }, outputs: { IsOpenChange: "IsOpenChange" }, host: { properties: { "attr.title": "this._title" }, classAttribute: "popup" }, providers: [{ provide: 'xaml-flyout', useExisting: PopupComponent }], viewQueries: [{ propertyName: "_container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: `<div class="popup-backdrop" (click)="onBackdropClick($event)" (contextmenu)="onBackdropClick($event)" *ngIf="IsOpen"></div>
|
|
872
|
-
<div #container class="popup-container" [ngClass]="containerClass">
|
|
873
|
-
<div class="popup-content" *ngIf="isRendered"><ng-content/></div>
|
|
874
|
-
</div>`, isInline: true, styles: [":host{position:relative}:host{position:static}.popup-container{background-color:transparent;display:grid;padding:0;margin:0;border:0;pointer-events:none;position:absolute;z-index:1000}.popup-container>.popup-content{display:grid;padding:16px;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);opacity:0;transition:opacity var(--ControlNormalAnimationDuration);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #00000080;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault)}.popup-container.flyout-open>.popup-content{opacity:1;pointer-events:all}.popup-backdrop{z-index:900;position:fixed;inset:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FlyoutBaseComponent, deps: [{ token: i0.ViewContainerRef }, { token: i1$1.Overlay }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1125
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: FlyoutBaseComponent, isStandalone: true, selector: "FlyoutBase", inputs: { Placement: "Placement", Padding: "Padding", HasBackdrop: "HasBackdrop", IsOpen: "IsOpen", Target: "Target" }, outputs: { IsOpenChange: "IsOpenChange" }, host: { properties: { "style": "this.style" } }, providers: [{ provide: 'xaml-flyout', useExisting: FlyoutBaseComponent }], viewQueries: [{ propertyName: "_template", first: true, predicate: ["template"], descendants: true }], ngImport: i0, template: "<ng-template #template><FlyoutPresenter #presenter [IsVisible]=\"isVisible\" [TransitionAnimation]=\"transitionAnimation\" [Padding]=\"Padding\"><ng-content/></FlyoutPresenter></ng-template>", isInline: true, dependencies: [{ kind: "component", type: FlyoutPresenter, selector: "FlyoutPresenter", inputs: ["TransitionAnimation", "Padding", "IsVisible"] }] }); }
|
|
875
1126
|
}
|
|
876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FlyoutBaseComponent, decorators: [{
|
|
877
1128
|
type: Component,
|
|
878
|
-
args: [{
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
}], propDecorators: {
|
|
885
|
-
type:
|
|
886
|
-
|
|
1129
|
+
args: [{
|
|
1130
|
+
imports: [FlyoutPresenter],
|
|
1131
|
+
selector: 'FlyoutBase',
|
|
1132
|
+
template: PopupTemplate,
|
|
1133
|
+
providers: [{ provide: 'xaml-flyout', useExisting: FlyoutBaseComponent }]
|
|
1134
|
+
}]
|
|
1135
|
+
}], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { Placement: [{
|
|
1136
|
+
type: Input
|
|
1137
|
+
}], Padding: [{
|
|
1138
|
+
type: Input
|
|
1139
|
+
}], HasBackdrop: [{
|
|
1140
|
+
type: Input
|
|
887
1141
|
}], IsOpen: [{
|
|
888
1142
|
type: Input
|
|
889
1143
|
}], IsOpenChange: [{
|
|
890
1144
|
type: Output
|
|
891
|
-
}],
|
|
1145
|
+
}], Target: [{
|
|
892
1146
|
type: Input
|
|
893
|
-
}],
|
|
894
|
-
type: Input
|
|
895
|
-
}], _container: [{
|
|
1147
|
+
}], _template: [{
|
|
896
1148
|
type: ViewChild,
|
|
897
|
-
args: ['
|
|
1149
|
+
args: ['template']
|
|
1150
|
+
}], style: [{
|
|
1151
|
+
type: HostBinding,
|
|
1152
|
+
args: ['style']
|
|
898
1153
|
}] } });
|
|
899
1154
|
|
|
900
|
-
class
|
|
901
|
-
|
|
902
|
-
|
|
1155
|
+
class FlyoutComponent extends FlyoutBaseComponent {
|
|
1156
|
+
get transitionAnimation() {
|
|
1157
|
+
switch (this.Placement) {
|
|
1158
|
+
case "Top":
|
|
1159
|
+
case "TopEdgeAlignedLeft":
|
|
1160
|
+
case "TopEdgeAlignedRight":
|
|
1161
|
+
return 'SlideUp';
|
|
1162
|
+
case "Bottom":
|
|
1163
|
+
case "BottomEdgeAlignedLeft":
|
|
1164
|
+
case "BottomEdgeAlignedRight":
|
|
1165
|
+
return 'SlideDown';
|
|
1166
|
+
case "Left":
|
|
1167
|
+
case "LeftEdgeAlignedTop":
|
|
1168
|
+
case "LeftEdgeAlignedBottom":
|
|
1169
|
+
return 'SlideLeft';
|
|
1170
|
+
case "Right":
|
|
1171
|
+
case "RightEdgeAlignedTop":
|
|
1172
|
+
case "RightEdgeAlignedBottom":
|
|
1173
|
+
return 'SlideRight';
|
|
1174
|
+
default:
|
|
1175
|
+
return 'Default';
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FlyoutComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1179
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: FlyoutComponent, isStandalone: true, selector: "Flyout", providers: [{ provide: 'xaml-flyout', useExisting: FlyoutComponent }], usesInheritance: true, ngImport: i0, template: "<ng-template #template><FlyoutPresenter #presenter [IsVisible]=\"isVisible\" [TransitionAnimation]=\"transitionAnimation\" [Padding]=\"Padding\"><ng-content/></FlyoutPresenter></ng-template>", isInline: true, styles: ["FlyoutPresenter{padding:16px}\n"], dependencies: [{ kind: "component", type: FlyoutPresenter, selector: "FlyoutPresenter", inputs: ["TransitionAnimation", "Padding", "IsVisible"] }] }); }
|
|
903
1180
|
}
|
|
904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FlyoutComponent, decorators: [{
|
|
905
1182
|
type: Component,
|
|
906
|
-
args: [{ selector: '
|
|
1183
|
+
args: [{ selector: 'Flyout', imports: [FlyoutPresenter], template: PopupTemplate, providers: [{ provide: 'xaml-flyout', useExisting: FlyoutComponent }], styles: ["FlyoutPresenter{padding:16px}\n"] }]
|
|
907
1184
|
}] });
|
|
908
1185
|
|
|
909
1186
|
class ComboBoxComponent extends SelectorComponent {
|
|
@@ -913,44 +1190,45 @@ class ComboBoxComponent extends SelectorComponent {
|
|
|
913
1190
|
get index() {
|
|
914
1191
|
return this.SelectedIndex;
|
|
915
1192
|
}
|
|
916
|
-
constructor(_changeDetector) {
|
|
1193
|
+
constructor(_changeDetector, _host) {
|
|
917
1194
|
super();
|
|
918
1195
|
this._changeDetector = _changeDetector;
|
|
919
|
-
this.
|
|
1196
|
+
this._host = _host;
|
|
1197
|
+
this.target = null;
|
|
920
1198
|
this.SelectedIndexChange.subscribe(() => this.onSelectionChanged());
|
|
921
1199
|
}
|
|
1200
|
+
onIsOpenChanged(value) {
|
|
1201
|
+
if (!value)
|
|
1202
|
+
return;
|
|
1203
|
+
let rect = this._host.nativeElement.getBoundingClientRect();
|
|
1204
|
+
let popupOffset = -(this._selector?.GetElement(this.SelectedIndex)?.offsetTop ?? 0);
|
|
1205
|
+
this.target = { x: rect.left, y: rect.top + popupOffset - 4, width: rect.width };
|
|
1206
|
+
}
|
|
922
1207
|
ngAfterViewInit() {
|
|
923
1208
|
//help the layout finish itself
|
|
924
1209
|
this._changeDetector.detectChanges();
|
|
925
1210
|
}
|
|
926
|
-
get popupOffset() {
|
|
927
|
-
//Cache the value so the change detector will not complain
|
|
928
|
-
let popupOffset = -(this._selector?.GetElement(this.SelectedIndex)?.offsetTop ?? 0);
|
|
929
|
-
if (popupOffset !== 0)
|
|
930
|
-
this._popupOffset = popupOffset;
|
|
931
|
-
return this._popupOffset;
|
|
932
|
-
}
|
|
933
1211
|
onSelectionChanged() {
|
|
934
1212
|
if (this._popup)
|
|
935
1213
|
this._popup.IsOpen = false;
|
|
936
1214
|
}
|
|
937
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ComboBoxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
938
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ComboBoxComponent, isStandalone: true, selector: "ComboBox", viewQueries: [{ propertyName: "_selector", first: true, predicate: ListViewComponent, descendants: true }, { propertyName: "_popup", first: true, predicate:
|
|
1215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ComboBoxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1216
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ComboBoxComponent, isStandalone: true, selector: "ComboBox", viewQueries: [{ propertyName: "_selector", first: true, predicate: ListViewComponent, descendants: true }, { propertyName: "_popup", first: true, predicate: ["xaml-flyout"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<DropDownButton [HorizontalContentAlignment]=\"HorizontalContentAlignment\" [VerticalContentAlignment]=\"VerticalContentAlignment\" [IsEnabled]=\"IsEnabled\">\n <ng-container *ngIf=\"ItemTemplate\">\n <ng-container *ngTemplateOutlet=\"ItemTemplate; context: { $implicit: item }\"/>\n </ng-container>\n <ng-container *ngIf=\"!ItemTemplate\">{{ DisplayMemberPath ? item[DisplayMemberPath] : item }}</ng-container>\n <Flyout Placement=\"Cover\" Padding=\"0\" [Target]=\"target\" (IsOpenChange)=\"onIsOpenChanged($event)\">\n <ListView [ItemSource]=\"ItemSource\" [(SelectedIndex)]=\"SelectedIndex\" [HorizontalContentAlignment]=\"HorizontalContentAlignment\" [VerticalContentAlignment]=\"VerticalContentAlignment\"/>\n </Flyout>\n </DropDownButton>", isInline: true, styles: [":host ::ng-deep .popup>.popup-container{left:0;right:0;top:0}:host ::ng-deep .popup>.popup-container>.popup-content{padding:0!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DropDownButtonComponent, selector: "DropDownButton" }, { kind: "component", type: FlyoutComponent, selector: "Flyout" }, { kind: "component", type: ListViewComponent, selector: "ListView" }] }); }
|
|
939
1217
|
}
|
|
940
1218
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ComboBoxComponent, decorators: [{
|
|
941
1219
|
type: Component,
|
|
942
|
-
args: [{ selector: 'ComboBox', imports: [CommonModule, DropDownButtonComponent,
|
|
1220
|
+
args: [{ selector: 'ComboBox', imports: [CommonModule, DropDownButtonComponent, FlyoutComponent, ListViewComponent], template: `<DropDownButton [HorizontalContentAlignment]="HorizontalContentAlignment" [VerticalContentAlignment]="VerticalContentAlignment" [IsEnabled]="IsEnabled">
|
|
943
1221
|
${SelectorItemTemplate}
|
|
944
|
-
<
|
|
1222
|
+
<Flyout Placement="Cover" Padding="0" [Target]="target" (IsOpenChange)="onIsOpenChanged($event)">
|
|
945
1223
|
<ListView [ItemSource]="ItemSource" [(SelectedIndex)]="SelectedIndex" [HorizontalContentAlignment]="HorizontalContentAlignment" [VerticalContentAlignment]="VerticalContentAlignment"/>
|
|
946
|
-
</
|
|
1224
|
+
</Flyout>
|
|
947
1225
|
</DropDownButton>`, styles: [":host ::ng-deep .popup>.popup-container{left:0;right:0;top:0}:host ::ng-deep .popup>.popup-container>.popup-content{padding:0!important}\n"] }]
|
|
948
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { _selector: [{
|
|
1226
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { _selector: [{
|
|
949
1227
|
type: ViewChild,
|
|
950
1228
|
args: [ListViewComponent]
|
|
951
1229
|
}], _popup: [{
|
|
952
1230
|
type: ViewChild,
|
|
953
|
-
args: [
|
|
1231
|
+
args: ['xaml-flyout']
|
|
954
1232
|
}] } });
|
|
955
1233
|
|
|
956
1234
|
class RadioButtonComponent extends BorderComponent {
|
|
@@ -968,7 +1246,7 @@ class RadioButtonComponent extends BorderComponent {
|
|
|
968
1246
|
if (this._group)
|
|
969
1247
|
this._group.registerOption(this);
|
|
970
1248
|
}
|
|
971
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioButtonComponent, deps: [{ token:
|
|
1249
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioButtonComponent, deps: [{ token: RadioButtonGroupComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
972
1250
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: RadioButtonComponent, isStandalone: true, selector: "RadioButton", inputs: { IsEnabled: "IsEnabled", IsChecked: "IsChecked", Group: "Group", Value: "Value" }, outputs: { IsCheckedChange: "IsCheckedChange" }, usesInheritance: true, ngImport: i0, template: `<label class="container">
|
|
973
1251
|
<input type="radio" [name]="Group" [value]="Value" [checked]="IsChecked" (change)="onChange($event)" [disabled]="!IsEnabled">
|
|
974
1252
|
<div class="radioButton">
|
|
@@ -990,7 +1268,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
990
1268
|
<ng-content/>
|
|
991
1269
|
</div>
|
|
992
1270
|
</label>`, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input[type=radio]:checked+.radioButton>.circle{display:grid}input[type=radio]:not(:checked):not(:hover):not(:active):not(:disabled)+.radioButton{background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input[type=radio]:not(:checked):hover:not(:active):not(:disabled)+.radioButton{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input[type=radio]:not(:checked):active:not(:disabled)+.radioButton{background-color:var(--SubtleFillColorTransparent);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=radio]:not(:checked):active:not(:disabled)+.radioButton>.circle{transform:scale(1)}input[type=radio]:checked:not(:hover):not(:active):not(:disabled)+.radioButton{background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input[type=radio]:checked:not(:hover):not(:active):not(:disabled)+.radioButton>.circle{transform:scale(1)}input[type=radio]:checked:hover:not(:active):not(:disabled)+.radioButton{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input[type=radio]:checked:hover:not(:active):not(:disabled)+.radioButton>.circle{transform:scale(1.2)}input[type=radio]:checked:active:not(:disabled)+.radioButton{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input[type=radio]:checked:active:not(:disabled)+.radioButton>.circle{transform:scale(1)}input[type=radio]:not(:checked):disabled+.radioButton{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input[type=radio]:checked:disabled+.radioButton{background-color:var(--AccentFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}.radioButton{display:grid;width:20px;height:20px;border-radius:11px;border-style:solid;border-width:var(--ControlBorderThickness);transition:border-color var(--ControlFastAnimationDuration);transition:background-color var(--ControlFastAnimationDuration)}.circle{width:11px;height:11px;border-radius:6.5px;align-self:center;justify-self:center;background-color:var(--TextOnAccentFillColorPrimary);transition:transform var(--ControlNormalAnimationDuration);transform:scale(0)}.content{align-self:center}\n"] }]
|
|
993
|
-
}], ctorParameters: () => [{ type:
|
|
1271
|
+
}], ctorParameters: () => [{ type: RadioButtonGroupComponent, decorators: [{
|
|
994
1272
|
type: Optional
|
|
995
1273
|
}] }], propDecorators: { IsEnabled: [{
|
|
996
1274
|
type: Input
|
|
@@ -1003,7 +1281,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
1003
1281
|
}], Value: [{
|
|
1004
1282
|
type: Input
|
|
1005
1283
|
}] } });
|
|
1006
|
-
class
|
|
1284
|
+
class RadioButtonGroupComponent extends StackPanelComponent {
|
|
1007
1285
|
constructor() {
|
|
1008
1286
|
super(...arguments);
|
|
1009
1287
|
this.ValueChange = new EventEmitter();
|
|
@@ -1012,10 +1290,7 @@ class RadioButtonGroup extends StackPanelComponent {
|
|
|
1012
1290
|
set Value(value) {
|
|
1013
1291
|
if (this._children) {
|
|
1014
1292
|
for (let item of this._children) {
|
|
1015
|
-
|
|
1016
|
-
item.IsChecked = true;
|
|
1017
|
-
break;
|
|
1018
|
-
}
|
|
1293
|
+
item.IsChecked = item.Value === value;
|
|
1019
1294
|
}
|
|
1020
1295
|
}
|
|
1021
1296
|
else {
|
|
@@ -1037,10 +1312,10 @@ class RadioButtonGroup extends StackPanelComponent {
|
|
|
1037
1312
|
});
|
|
1038
1313
|
this._children.push(child);
|
|
1039
1314
|
}
|
|
1040
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1041
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type:
|
|
1315
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioButtonGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1316
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: RadioButtonGroupComponent, isStandalone: true, selector: "RadioButtonGroup", inputs: { Value: "Value" }, outputs: { ValueChange: "ValueChange" }, usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:contents}\n"] }); }
|
|
1042
1317
|
}
|
|
1043
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type:
|
|
1318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioButtonGroupComponent, decorators: [{
|
|
1044
1319
|
type: Component,
|
|
1045
1320
|
args: [{ selector: 'RadioButtonGroup', template: `<ng-content/>`, styles: [":host{display:contents}\n"] }]
|
|
1046
1321
|
}], propDecorators: { Value: [{
|
|
@@ -1049,6 +1324,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
1049
1324
|
type: Output
|
|
1050
1325
|
}] } });
|
|
1051
1326
|
|
|
1327
|
+
class RadioToggleButtonComponent extends RadioButtonComponent {
|
|
1328
|
+
get checked() {
|
|
1329
|
+
return this.IsChecked;
|
|
1330
|
+
}
|
|
1331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioToggleButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1332
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: RadioToggleButtonComponent, isStandalone: true, selector: "RadioToggleButton", host: { properties: { "class.checked": "this.checked" } }, usesInheritance: true, ngImport: i0, template: `<label>
|
|
1333
|
+
<input type="radio" [name]="Group" [value]="Value" [checked]="IsChecked" (change)="onChange($event)" [disabled]="!IsEnabled">
|
|
1334
|
+
<ng-content/>
|
|
1335
|
+
</label>`, isInline: true, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.flyout-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.flyout-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.flyout-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.flyout-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.flyout-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.flyout-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n", ":host{padding:0}input{display:none}label{padding:5px 11px}\n"] }); }
|
|
1336
|
+
}
|
|
1337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioToggleButtonComponent, decorators: [{
|
|
1338
|
+
type: Component,
|
|
1339
|
+
args: [{ selector: 'RadioToggleButton', template: `<label>
|
|
1340
|
+
<input type="radio" [name]="Group" [value]="Value" [checked]="IsChecked" (change)="onChange($event)" [disabled]="!IsEnabled">
|
|
1341
|
+
<ng-content/>
|
|
1342
|
+
</label>`, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.flyout-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.flyout-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.flyout-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.flyout-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.flyout-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.flyout-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n", ":host{padding:0}input{display:none}label{padding:5px 11px}\n"] }]
|
|
1343
|
+
}], propDecorators: { checked: [{
|
|
1344
|
+
type: HostBinding,
|
|
1345
|
+
args: ['class.checked']
|
|
1346
|
+
}] } });
|
|
1347
|
+
|
|
1052
1348
|
class RepeatButtonComponent extends ButtonComponent {
|
|
1053
1349
|
constructor() {
|
|
1054
1350
|
super(...arguments);
|
|
@@ -1068,6 +1364,9 @@ class RepeatButtonComponent extends ButtonComponent {
|
|
|
1068
1364
|
}, this.Delay);
|
|
1069
1365
|
}
|
|
1070
1366
|
onPointerUp() {
|
|
1367
|
+
this.clearTimers();
|
|
1368
|
+
}
|
|
1369
|
+
clearTimers() {
|
|
1071
1370
|
if (this._delayTimer !== undefined)
|
|
1072
1371
|
clearTimeout(this._delayTimer);
|
|
1073
1372
|
if (this._intervalTimer !== undefined)
|
|
@@ -1076,6 +1375,9 @@ class RepeatButtonComponent extends ButtonComponent {
|
|
|
1076
1375
|
onHostPointerEvent(event) {
|
|
1077
1376
|
//Disable pointer event handling on the base button
|
|
1078
1377
|
}
|
|
1378
|
+
ngOnDestroy() {
|
|
1379
|
+
this.clearTimers();
|
|
1380
|
+
}
|
|
1079
1381
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RepeatButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1080
1382
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: RepeatButtonComponent, isStandalone: true, selector: "RepeatButton", inputs: { Delay: "Delay", Interval: "Interval" }, host: { listeners: { "pointerdown": "onPointerDown($event)", "pointerup": "onPointerUp($event)" } }, usesInheritance: true, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{position:relative}:host{display:grid;padding:5px 11px;border-width:var(--ControlBorderThickness);border-style:solid;border-radius:var(--ControlCornerRadius);position:relative;background:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);color:var(--TextFillColorPrimary);transition:all var(--ControlFastAnimationDuration)}:host::ng-deep *{color:var(--TextFillColorPrimary)}:host:hover:not(.checked):not(.flyout-open):not(.disabled){background:var(--ControlFillColorSecondary)}:host:active:not(.checked):not(.flyout-open):not(.disabled){background:var(--ControlFillColorTertiary);color:var(--TextFillColorSecondary)}:host:active:not(.checked):not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.disabled:not(.checked){background:var(--ControlFillColorDisabled);color:var(--TextFillColorDisabled)}:host.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}:host.checked:not(.disabled){background:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault);color:var(--TextOnAccentFillColorPrimary)}:host.checked:not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.flyout-open):not(.disabled){background:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary);color:var(--TextOnAccentFillColorPrimary)}:host:hover.checked:not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorPrimary)}:host:active.checked:not(.flyout-open):not(.disabled){background:var(--AccentFillColorTertiary);border-color:var(--ControlFillColorTransparent);color:var(--TextOnAccentFillColorSecondary)}:host:active.checked:not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextOnAccentFillColorSecondary)}:host.checked.disabled{background:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled);color:var(--TextOnAccentFillColorDisabled)}:host.checked.disabled::ng-deep *{color:var(--TextOnAccentFillColorDisabled)}:host.InlineButtonStyle{border-style:none;border-width:0;background-color:transparent}:host.InlineButtonStyle:hover:not(.checked):not(.flyout-open):not(.disabled){background:var(--SubtleFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.flyout-open):not(.disabled){background:var(--SubtleFillColorTertiary);color:var(--TextFillColorSecondary)}:host.InlineButtonStyle:active:not(.checked):not(.flyout-open):not(.disabled)::ng-deep *{color:var(--TextFillColorSecondary)}:host.InlineButtonStyle.disabled:not(.checked){background:var(--SubtleFillColorDisabled);color:var(--TextFillColorDisabled)}:host.InlineButtonStyle.disabled:not(.checked)::ng-deep *{color:var(--TextFillColorDisabled)}\n"] }); }
|
|
1081
1383
|
}
|
|
@@ -1105,28 +1407,28 @@ class SliderComponent extends FrameworkElementComponent {
|
|
|
1105
1407
|
this.IsEnabled = true;
|
|
1106
1408
|
this.Orientation = 'Horizontal';
|
|
1107
1409
|
}
|
|
1108
|
-
|
|
1410
|
+
onInput(event) {
|
|
1109
1411
|
this.Value = parseFloat(event.target.value);
|
|
1110
1412
|
this.ValueChange.emit(this.Value);
|
|
1111
1413
|
}
|
|
1112
1414
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SliderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1113
1415
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SliderComponent, isStandalone: true, selector: "Slider", inputs: { Minimum: "Minimum", Maximum: "Maximum", StepFrequency: "StepFrequency", Value: "Value", IsEnabled: "IsEnabled", Orientation: "Orientation" }, outputs: { ValueChange: "ValueChange" }, usesInheritance: true, ngImport: i0, template: `<input type="range"
|
|
1416
|
+
[step]="StepFrequency"
|
|
1114
1417
|
[min]="Minimum"
|
|
1115
1418
|
[max]="Maximum"
|
|
1116
1419
|
[value]="Value"
|
|
1117
|
-
|
|
1118
|
-
(change)="onChange($event)"
|
|
1420
|
+
(input)="onInput($event)"
|
|
1119
1421
|
[disabled]="!IsEnabled"
|
|
1120
1422
|
[className]="Orientation.toLowerCase()">`, isInline: true, styles: [":host{position:relative}:host{display:grid}input{display:grid;-webkit-appearance:none;appearance:none;background-color:var(--ControlStrongFillColorDefault);border-radius:2px;outline:none}input.horizontal{height:4px;margin:7px 0}input.vertical{width:4px;margin:0 7px;writing-mode:vertical-lr;direction:rtl;vertical-align:middle}input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;border-radius:50%;width:16px;height:16px;border-style:solid;border-width:4px;outline:1px solid var(--ControlStrokeColorOnAccentDefaultDark);border-color:var(--ControlSolidFillColorDefault);background-color:var(--AccentFillColorDefault);transition:border-width var(--ControlFastAnimationDuration)}input::-moz-range-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;border-radius:50%;width:16px;height:16px;border-style:solid;border-width:4px;outline:1px solid var(--ControlStrokeColorOnAccentDefaultDark);border-color:var(--ControlSolidFillColorDefault);background-color:var(--AccentFillColorDefault);transition:border-width var(--ControlFastAnimationDuration)}input:not(:disabled)::-webkit-slider-thumb:hover{border-width:3px;background-color:var(--AccentFillColorSecondary)}input:not(:disabled)::-webkit-slider-thumb:active{border-width:5px;background-color:var(--AccentFillColorTertiary)}input:not(:disabled)::-moz-range-thumb:hover{border-width:3px;background-color:var(--AccentFillColorSecondary)}input:not(:disabled)::-moz-range-thumb:active{border-width:5px;background-color:var(--AccentFillColorTertiary)}input:disabled{background-color:var(--ControlStrongFillColorDisabled)}input:disabled::-webkit-slider-thumb{border-width:2px;background-color:var(--AccentFillColorDisabled)}input:disabled::-moz-range-thumb{border-width:2px;background-color:var(--AccentFillColorDisabled)}\n"] }); }
|
|
1121
1423
|
}
|
|
1122
1424
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SliderComponent, decorators: [{
|
|
1123
1425
|
type: Component,
|
|
1124
1426
|
args: [{ selector: 'Slider', template: `<input type="range"
|
|
1427
|
+
[step]="StepFrequency"
|
|
1125
1428
|
[min]="Minimum"
|
|
1126
1429
|
[max]="Maximum"
|
|
1127
1430
|
[value]="Value"
|
|
1128
|
-
|
|
1129
|
-
(change)="onChange($event)"
|
|
1431
|
+
(input)="onInput($event)"
|
|
1130
1432
|
[disabled]="!IsEnabled"
|
|
1131
1433
|
[className]="Orientation.toLowerCase()">`, styles: [":host{position:relative}:host{display:grid}input{display:grid;-webkit-appearance:none;appearance:none;background-color:var(--ControlStrongFillColorDefault);border-radius:2px;outline:none}input.horizontal{height:4px;margin:7px 0}input.vertical{width:4px;margin:0 7px;writing-mode:vertical-lr;direction:rtl;vertical-align:middle}input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;border-radius:50%;width:16px;height:16px;border-style:solid;border-width:4px;outline:1px solid var(--ControlStrokeColorOnAccentDefaultDark);border-color:var(--ControlSolidFillColorDefault);background-color:var(--AccentFillColorDefault);transition:border-width var(--ControlFastAnimationDuration)}input::-moz-range-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;border-radius:50%;width:16px;height:16px;border-style:solid;border-width:4px;outline:1px solid var(--ControlStrokeColorOnAccentDefaultDark);border-color:var(--ControlSolidFillColorDefault);background-color:var(--AccentFillColorDefault);transition:border-width var(--ControlFastAnimationDuration)}input:not(:disabled)::-webkit-slider-thumb:hover{border-width:3px;background-color:var(--AccentFillColorSecondary)}input:not(:disabled)::-webkit-slider-thumb:active{border-width:5px;background-color:var(--AccentFillColorTertiary)}input:not(:disabled)::-moz-range-thumb:hover{border-width:3px;background-color:var(--AccentFillColorSecondary)}input:not(:disabled)::-moz-range-thumb:active{border-width:5px;background-color:var(--AccentFillColorTertiary)}input:disabled{background-color:var(--ControlStrongFillColorDisabled)}input:disabled::-webkit-slider-thumb{border-width:2px;background-color:var(--AccentFillColorDisabled)}input:disabled::-moz-range-thumb{border-width:2px;background-color:var(--AccentFillColorDisabled)}\n"] }]
|
|
1132
1434
|
}], propDecorators: { Minimum: [{
|
|
@@ -1348,7 +1650,7 @@ class SplitButtonComponent extends FrameworkElementComponent {
|
|
|
1348
1650
|
this._popup.IsOpen = true;
|
|
1349
1651
|
}
|
|
1350
1652
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SplitButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1351
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SplitButtonComponent, isStandalone: true, selector: "SplitButton", inputs: { IsEnabled: "IsEnabled" }, outputs: { Click: "Click" }, queries: [{ propertyName: "_popup", first: true, predicate: ["
|
|
1653
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SplitButtonComponent, isStandalone: true, selector: "SplitButton", inputs: { IsEnabled: "IsEnabled" }, outputs: { Click: "Click" }, queries: [{ propertyName: "_popup", first: true, predicate: ["xaml-flyout"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<Grid ColumnDefinitions="1fr auto">
|
|
1352
1654
|
<Button CornerRadius="4px 0 0 4px" [IsEnabled]="IsEnabled" (Click)="onButtonClick()" [ngClass]="buttonClass"><ng-content/></Button>
|
|
1353
1655
|
<DropDownButton CornerRadius="0 4px 4px 0" Width="12px" (Click)="onDropDownClick()" [IsEnabled]="IsEnabled"/>
|
|
1354
1656
|
</Grid>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "Button", inputs: ["IsEnabled", "HorizontalContentAlignment", "VerticalContentAlignment"], outputs: ["Click"] }, { kind: "component", type: DropDownButtonComponent, selector: "DropDownButton" }, { kind: "ngmodule", type: GridModule }, { kind: "component", type: GridComponent, selector: "Grid", inputs: ["ColumnDefinitions", "RowDefinitions", "ColumnSpacing", "RowSpacing", "Orientation"] }] }); }
|
|
@@ -1369,7 +1671,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
1369
1671
|
type: Output
|
|
1370
1672
|
}], _popup: [{
|
|
1371
1673
|
type: ContentChild,
|
|
1372
|
-
args: ['
|
|
1674
|
+
args: ['xaml-flyout']
|
|
1373
1675
|
}] } });
|
|
1374
1676
|
|
|
1375
1677
|
class ToggleButtonComponent extends ButtonComponent {
|
|
@@ -1410,7 +1712,7 @@ class ToggleSwitchComponent extends CheckBoxComponent {
|
|
|
1410
1712
|
<div class="thumb"></div>
|
|
1411
1713
|
</div>
|
|
1412
1714
|
<div class="content"><ng-content/></div>
|
|
1413
|
-
</label>`, isInline: true, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):not(:active):not(:disabled)+.slider:hover{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):active:not(:disabled)+.slider{background-color:var(--ControlAltFillColorQuarternary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):active:not(:disabled)+.slider>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):disabled+.slider{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input:not(:checked):disabled+.slider>.thumb{background-color:var(--TextFillColorDisabled)}input:checked:not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input:checked:not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:not(:active):not(:disabled)+.slider:hover{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input:checked:not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:active:not(:disabled)+.slider{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input:checked:active:not(:disabled)+.slider>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:disabled+.slider{background-color:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled)}input:checked:disabled+.slider>.thumb{background-color:var(--TextOnAccentFillColorDisabled)}input:checked+.slider>.thumb{transform:translate(22px)}input:not(:disabled):active+.slider>.thumb{width:17px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):hover+.slider>.thumb{width:14px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):checked:hover+.slider>.thumb{transform:translate(21px)}input:not(:disabled):checked:active+.slider>.thumb{transform:translate(18px);width:17px;height:14px}.slider{display:grid;width:40px;height:18px;border-radius:10px;border-style:solid;border-width:1.5px;transition:background-color var(--ControlNormalAnimationDuration);background-color:var(--ControlAltFillColorSecondary)}.thumb{display:grid;width:12px;height:12px;border-radius:7px;align-self:center;margin:0 3px;transition:transform var(--ControlNormalAnimationDuration);transition:width var(--ControlFastAnimationDuration);transition:margin-left var(--ControlFastAnimationDuration)}\n"] }); }
|
|
1715
|
+
</label>`, isInline: true, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}.content{display:grid}input{display:none}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):not(:active):not(:disabled)+.slider:hover{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):active:not(:disabled)+.slider{background-color:var(--ControlAltFillColorQuarternary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):active:not(:disabled)+.slider>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):disabled+.slider{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input:not(:checked):disabled+.slider>.thumb{background-color:var(--TextFillColorDisabled)}input:checked:not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input:checked:not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:not(:active):not(:disabled)+.slider:hover{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input:checked:not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:active:not(:disabled)+.slider{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input:checked:active:not(:disabled)+.slider>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:disabled+.slider{background-color:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled)}input:checked:disabled+.slider>.thumb{background-color:var(--TextOnAccentFillColorDisabled)}input:checked+.slider>.thumb{transform:translate(22px)}input:not(:disabled):active+.slider>.thumb{width:17px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):hover+.slider>.thumb{width:14px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):checked:hover+.slider>.thumb{transform:translate(21px)}input:not(:disabled):checked:active+.slider>.thumb{transform:translate(18px);width:17px;height:14px}.slider{display:grid;width:40px;height:18px;border-radius:10px;border-style:solid;border-width:1.5px;transition:background-color var(--ControlNormalAnimationDuration);background-color:var(--ControlAltFillColorSecondary)}.thumb{display:grid;width:12px;height:12px;border-radius:7px;align-self:center;margin:0 3px;transition:transform var(--ControlNormalAnimationDuration);transition:width var(--ControlFastAnimationDuration);transition:margin-left var(--ControlFastAnimationDuration)}\n"] }); }
|
|
1414
1716
|
}
|
|
1415
1717
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleSwitchComponent, decorators: [{
|
|
1416
1718
|
type: Component,
|
|
@@ -1420,7 +1722,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
1420
1722
|
<div class="thumb"></div>
|
|
1421
1723
|
</div>
|
|
1422
1724
|
<div class="content"><ng-content/></div>
|
|
1423
|
-
</label>`, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}input{display:none}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):not(:active):not(:disabled)+.slider:hover{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):active:not(:disabled)+.slider{background-color:var(--ControlAltFillColorQuarternary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):active:not(:disabled)+.slider>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):disabled+.slider{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input:not(:checked):disabled+.slider>.thumb{background-color:var(--TextFillColorDisabled)}input:checked:not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input:checked:not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:not(:active):not(:disabled)+.slider:hover{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input:checked:not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:active:not(:disabled)+.slider{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input:checked:active:not(:disabled)+.slider>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:disabled+.slider{background-color:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled)}input:checked:disabled+.slider>.thumb{background-color:var(--TextOnAccentFillColorDisabled)}input:checked+.slider>.thumb{transform:translate(22px)}input:not(:disabled):active+.slider>.thumb{width:17px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):hover+.slider>.thumb{width:14px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):checked:hover+.slider>.thumb{transform:translate(21px)}input:not(:disabled):checked:active+.slider>.thumb{transform:translate(18px);width:17px;height:14px}.slider{display:grid;width:40px;height:18px;border-radius:10px;border-style:solid;border-width:1.5px;transition:background-color var(--ControlNormalAnimationDuration);background-color:var(--ControlAltFillColorSecondary)}.thumb{display:grid;width:12px;height:12px;border-radius:7px;align-self:center;margin:0 3px;transition:transform var(--ControlNormalAnimationDuration);transition:width var(--ControlFastAnimationDuration);transition:margin-left var(--ControlFastAnimationDuration)}\n"] }]
|
|
1725
|
+
</label>`, styles: [":host{position:relative}.container{display:grid;grid-template-columns:auto 1fr;column-gap:6px}.content{display:grid}input{display:none}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--ControlAltFillColorSecondary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):not(:active):not(:disabled)+.slider:hover{background-color:var(--ControlAltFillColorTertiary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):active:not(:disabled)+.slider{background-color:var(--ControlAltFillColorQuarternary);border-color:var(--ControlStrongStrokeColorDefault)}input:not(:checked):active:not(:disabled)+.slider>.thumb{background-color:var(--TextFillColorSecondary)}input:not(:checked):disabled+.slider{background-color:var(--ControlAltFillColorDisabled);border-color:var(--ControlStrongStrokeColorDisabled)}input:not(:checked):disabled+.slider>.thumb{background-color:var(--TextFillColorDisabled)}input:checked:not(:active):not(:disabled)+.slider:not(:hover){background-color:var(--AccentFillColorDefault);border-color:var(--AccentFillColorDefault)}input:checked:not(:active):not(:disabled)+.slider:not(:hover)>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:not(:active):not(:disabled)+.slider:hover{background-color:var(--AccentFillColorSecondary);border-color:var(--AccentFillColorSecondary)}input:checked:not(:active):not(:disabled)+.slider:hover>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:active:not(:disabled)+.slider{background-color:var(--AccentFillColorTertiary);border-color:var(--AccentFillColorTertiary)}input:checked:active:not(:disabled)+.slider>.thumb{background-color:var(--TextOnAccentFillColorPrimary)}input:checked:disabled+.slider{background-color:var(--AccentFillColorDisabled);border-color:var(--AccentFillColorDisabled)}input:checked:disabled+.slider>.thumb{background-color:var(--TextOnAccentFillColorDisabled)}input:checked+.slider>.thumb{transform:translate(22px)}input:not(:disabled):active+.slider>.thumb{width:17px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):hover+.slider>.thumb{width:14px;height:14px;transform:translate(-1px)}input:not(:disabled):not(:active):checked:hover+.slider>.thumb{transform:translate(21px)}input:not(:disabled):checked:active+.slider>.thumb{transform:translate(18px);width:17px;height:14px}.slider{display:grid;width:40px;height:18px;border-radius:10px;border-style:solid;border-width:1.5px;transition:background-color var(--ControlNormalAnimationDuration);background-color:var(--ControlAltFillColorSecondary)}.thumb{display:grid;width:12px;height:12px;border-radius:7px;align-self:center;margin:0 3px;transition:transform var(--ControlNormalAnimationDuration);transition:width var(--ControlFastAnimationDuration);transition:margin-left var(--ControlFastAnimationDuration)}\n"] }]
|
|
1424
1726
|
}] });
|
|
1425
1727
|
|
|
1426
1728
|
class ListBoxComponent extends SelectorComponent {
|
|
@@ -1434,198 +1736,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
1434
1736
|
</div>`, styles: [":host{position:relative}:host{display:flex;flex-direction:column;background-color:var(--SystemChromeMediumLowColor)}:host .item{display:grid;padding:12px;margin:0}:host:not(.disabled) .item:not(:hover):not(:active):not(.selected){color:var(--TextFillColorPrimary)}:host:not(.disabled) .item:hover:not(.active):not(.selected){background-color:var(--SubtleFillColorSecondary)}:host:not(.disabled) .item:active:not(.selected){background-color:var(--SubtleFillColorTertiary)}:host:not(.disabled) .item:not(:hover):not(:active).selected{background-color:var(--SystemControlHighlightListAccentLow)}:host:not(.disabled) .item:hover:not(:active).selected{background-color:var(--SystemControlHighlightListAccentMedium)}:host:not(.disabled) .item:active.selected{background-color:var(--SystemControlHighlightListAccentHigh)}:host.disabled .item:not(.selected){color:var(--TextFillColorDisabled)}:host.disabled .item.selected{background-color:var(--SubtleFillColorSecondary);color:var(--AccentFillColorDisabled)}\n"] }]
|
|
1435
1737
|
}] });
|
|
1436
1738
|
|
|
1437
|
-
class
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
this.Placement = 'Top';
|
|
1441
|
-
}
|
|
1442
|
-
get contentStyle() {
|
|
1443
|
-
let alignSelf;
|
|
1444
|
-
let justifySelf;
|
|
1445
|
-
switch (this.Placement) {
|
|
1446
|
-
case 'Top':
|
|
1447
|
-
case 'Bottom':
|
|
1448
|
-
justifySelf = 'center';
|
|
1449
|
-
break;
|
|
1450
|
-
case 'TopEdgeAlignedLeft':
|
|
1451
|
-
case 'BottomEdgeAlignedLeft':
|
|
1452
|
-
justifySelf = 'left';
|
|
1453
|
-
break;
|
|
1454
|
-
case 'TopEdgeAlignedRight':
|
|
1455
|
-
case 'BottomEdgeAlignedRight':
|
|
1456
|
-
justifySelf = 'right';
|
|
1457
|
-
break;
|
|
1458
|
-
case 'Left':
|
|
1459
|
-
case 'Right':
|
|
1460
|
-
alignSelf = 'center';
|
|
1461
|
-
break;
|
|
1462
|
-
case 'LeftEdgeAlignedTop':
|
|
1463
|
-
case 'RightEdgeAlignedTop':
|
|
1464
|
-
alignSelf = 'flex-start';
|
|
1465
|
-
break;
|
|
1466
|
-
case 'LeftEdgeAlignedBottom':
|
|
1467
|
-
case 'RightEdgeAlignedBottom':
|
|
1468
|
-
alignSelf = 'flex-end';
|
|
1469
|
-
break;
|
|
1470
|
-
}
|
|
1471
|
-
return {
|
|
1472
|
-
'align-self': alignSelf,
|
|
1473
|
-
'justify-self': justifySelf,
|
|
1474
|
-
};
|
|
1739
|
+
class MenuFlyoutComponent extends FlyoutComponent {
|
|
1740
|
+
get transitionAnimation() {
|
|
1741
|
+
return 'Default';
|
|
1475
1742
|
}
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
let bottom = '0';
|
|
1481
|
-
let transform;
|
|
1482
|
-
function translate(x, y, isOpen) {
|
|
1483
|
-
let result = '';
|
|
1484
|
-
if (x !== 0) {
|
|
1485
|
-
result += `translateX(${x > 0 ? '' : '-'}100%)`;
|
|
1486
|
-
if (!isOpen) {
|
|
1487
|
-
result += `translateX(${x > 0 ? '-' : ''}10px)`;
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
if (y !== 0) {
|
|
1491
|
-
result += `translateY(${y > 0 ? '' : '-'}100%)`;
|
|
1492
|
-
if (!isOpen) {
|
|
1493
|
-
result += `translateY(${y > 0 ? '-' : ''}10px)`;
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
return result;
|
|
1497
|
-
}
|
|
1498
|
-
switch (this.Placement) {
|
|
1499
|
-
case 'Top':
|
|
1500
|
-
case 'TopEdgeAlignedLeft':
|
|
1501
|
-
case 'TopEdgeAlignedRight':
|
|
1502
|
-
bottom = undefined;
|
|
1503
|
-
transform = translate(0, -1, this.IsOpen);
|
|
1504
|
-
break;
|
|
1505
|
-
case 'Bottom':
|
|
1506
|
-
case 'BottomEdgeAlignedLeft':
|
|
1507
|
-
case 'BottomEdgeAlignedRight':
|
|
1508
|
-
top = undefined;
|
|
1509
|
-
transform = translate(0, 1, this.IsOpen);
|
|
1510
|
-
break;
|
|
1511
|
-
case 'Left':
|
|
1512
|
-
case 'LeftEdgeAlignedBottom':
|
|
1513
|
-
case 'LeftEdgeAlignedTop':
|
|
1514
|
-
right = undefined;
|
|
1515
|
-
transform = translate(-1, 0, this.IsOpen);
|
|
1516
|
-
break;
|
|
1517
|
-
case 'Right':
|
|
1518
|
-
case 'RightEdgeAlignedBottom':
|
|
1519
|
-
case 'RightEdgeAlignedTop':
|
|
1520
|
-
left = undefined;
|
|
1521
|
-
transform = translate(1, 0, this.IsOpen);
|
|
1522
|
-
break;
|
|
1523
|
-
}
|
|
1524
|
-
let margin;
|
|
1525
|
-
switch (this.Placement) {
|
|
1526
|
-
case 'Top':
|
|
1527
|
-
margin = '0 -100vw -100vh -100vw';
|
|
1528
|
-
break;
|
|
1529
|
-
case 'TopEdgeAlignedLeft':
|
|
1530
|
-
margin = '0 -100vw -100vh 0';
|
|
1531
|
-
break;
|
|
1532
|
-
case 'TopEdgeAlignedRight':
|
|
1533
|
-
margin = '0 0 -100vh -100vw';
|
|
1534
|
-
break;
|
|
1535
|
-
case 'Bottom':
|
|
1536
|
-
margin = '-100vh -100vw 0 -100vw';
|
|
1537
|
-
break;
|
|
1538
|
-
case 'BottomEdgeAlignedLeft':
|
|
1539
|
-
margin = '0 -100vw 0 0';
|
|
1540
|
-
break;
|
|
1541
|
-
case 'BottomEdgeAlignedRight':
|
|
1542
|
-
margin = '0 0 0 -100vw';
|
|
1543
|
-
break;
|
|
1544
|
-
case 'Left':
|
|
1545
|
-
margin = '-100vh -100vw -100vh 0';
|
|
1546
|
-
break;
|
|
1547
|
-
case 'LeftEdgeAlignedTop':
|
|
1548
|
-
margin = '0 -100vw -100vh 0';
|
|
1549
|
-
break;
|
|
1550
|
-
case 'LeftEdgeAlignedBottom':
|
|
1551
|
-
margin = '-100vh -100vw 0 0';
|
|
1552
|
-
break;
|
|
1553
|
-
case 'Right':
|
|
1554
|
-
margin = '-100vh 0 -100vh -100vw';
|
|
1555
|
-
break;
|
|
1556
|
-
case 'RightEdgeAlignedTop':
|
|
1557
|
-
margin = '0 0 -100vh -100vw';
|
|
1558
|
-
break;
|
|
1559
|
-
case 'RightEdgeAlignedBottom':
|
|
1560
|
-
margin = '-100vh 0 0 -100vw';
|
|
1561
|
-
break;
|
|
1562
|
-
}
|
|
1563
|
-
return {
|
|
1564
|
-
'top': top,
|
|
1565
|
-
'left': left,
|
|
1566
|
-
'right': right,
|
|
1567
|
-
'bottom': bottom,
|
|
1568
|
-
'transform': transform,
|
|
1569
|
-
'margin': margin,
|
|
1570
|
-
'transition': 'transform var(--ControlNormalAnimationDuration)'
|
|
1571
|
-
};
|
|
1743
|
+
OnOverlay(overlay) {
|
|
1744
|
+
if (this._menuClickSubscription)
|
|
1745
|
+
this._menuClickSubscription();
|
|
1746
|
+
this._menuClickSubscription = this._renderer.listen(overlay.overlayElement, 'click', p => this.onMenuClick(p));
|
|
1572
1747
|
}
|
|
1573
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FlyoutComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1574
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: FlyoutComponent, isStandalone: true, selector: "Flyout", inputs: { Placement: "Placement" }, providers: [{ provide: 'xaml-flyout', useExisting: FlyoutComponent }], usesInheritance: true, ngImport: i0, template: `<div class="popup-backdrop" (click)="onBackdropClick($event)" *ngIf="IsOpen"></div>
|
|
1575
|
-
<div class="popup-container" [ngStyle]="containerStyle" [ngClass]="containerClass">
|
|
1576
|
-
<div class="popup-content" [ngStyle]="contentStyle" *ngIf="isRendered"><ng-content/></div>
|
|
1577
|
-
</div>`, isInline: true, styles: [":host{position:relative}:host{position:static}.popup-container{background-color:transparent;display:grid;padding:0;margin:0;border:0;pointer-events:none;position:absolute;z-index:1000}.popup-container>.popup-content{display:grid;padding:16px;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);opacity:0;transition:opacity var(--ControlNormalAnimationDuration);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #00000080;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault)}.popup-container.flyout-open>.popup-content{opacity:1;pointer-events:all}.popup-backdrop{z-index:900;position:fixed;inset:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1578
|
-
}
|
|
1579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FlyoutComponent, decorators: [{
|
|
1580
|
-
type: Component,
|
|
1581
|
-
args: [{ selector: 'Flyout', imports: [CommonModule], template: `<div class="popup-backdrop" (click)="onBackdropClick($event)" *ngIf="IsOpen"></div>
|
|
1582
|
-
<div class="popup-container" [ngStyle]="containerStyle" [ngClass]="containerClass">
|
|
1583
|
-
<div class="popup-content" [ngStyle]="contentStyle" *ngIf="isRendered"><ng-content/></div>
|
|
1584
|
-
</div>`, providers: [{ provide: 'xaml-flyout', useExisting: FlyoutComponent }], styles: [":host{position:relative}:host{position:static}.popup-container{background-color:transparent;display:grid;padding:0;margin:0;border:0;pointer-events:none;position:absolute;z-index:1000}.popup-container>.popup-content{display:grid;padding:16px;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);opacity:0;transition:opacity var(--ControlNormalAnimationDuration);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #00000080;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault)}.popup-container.flyout-open>.popup-content{opacity:1;pointer-events:all}.popup-backdrop{z-index:900;position:fixed;inset:0}\n"] }]
|
|
1585
|
-
}], propDecorators: { Placement: [{
|
|
1586
|
-
type: Input
|
|
1587
|
-
}] } });
|
|
1588
|
-
|
|
1589
|
-
class MenuFlyoutComponent extends FlyoutComponent {
|
|
1590
1748
|
onMenuClick(event) {
|
|
1591
1749
|
this.IsOpen = false;
|
|
1592
1750
|
event.stopPropagation();
|
|
1593
1751
|
}
|
|
1752
|
+
ngOnDestroy() {
|
|
1753
|
+
super.ngOnDestroy();
|
|
1754
|
+
if (this._menuClickSubscription)
|
|
1755
|
+
this._menuClickSubscription();
|
|
1756
|
+
}
|
|
1594
1757
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MenuFlyoutComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1595
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: MenuFlyoutComponent, isStandalone: true, selector: "MenuFlyout", providers: [{ provide: 'xaml-flyout', useExisting: MenuFlyoutComponent }], usesInheritance: true, ngImport: i0, template:
|
|
1596
|
-
<div class="popup-container" [ngStyle]="containerStyle" [ngClass]="containerClass">
|
|
1597
|
-
<div class="popup-content" [ngStyle]="contentStyle" *ngIf="isRendered">
|
|
1598
|
-
<div class="menu-container" (click)="onMenuClick($event)">
|
|
1599
|
-
<ng-content/>
|
|
1600
|
-
</div>
|
|
1601
|
-
</div>
|
|
1602
|
-
</div>`, isInline: true, styles: [":host{position:relative}:host{position:static}.popup-container{background-color:transparent;display:grid;padding:0;margin:0;border:0;pointer-events:none;position:absolute;z-index:1000}.popup-container>.popup-content{display:grid;padding:16px;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);opacity:0;transition:opacity var(--ControlNormalAnimationDuration);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #00000080;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault)}.popup-container.flyout-open>.popup-content{opacity:1;pointer-events:all}.popup-backdrop{z-index:900;position:fixed;inset:0}\n", ".popup-container{left:0;right:0;top:0}.popup-container>.popup-content{padding:2px}.popup-container>.popup-content>.menu-container{margin:-3px 0;display:table;border-spacing:0 3px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1758
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: MenuFlyoutComponent, isStandalone: true, selector: "MenuFlyout", providers: [{ provide: 'xaml-flyout', useExisting: MenuFlyoutComponent }], usesInheritance: true, ngImport: i0, template: "<ng-template #template><FlyoutPresenter #presenter [IsVisible]=\"isVisible\" [TransitionAnimation]=\"transitionAnimation\" [Padding]=\"Padding\"><ng-content/></FlyoutPresenter></ng-template>", isInline: true, styles: [".popup-container{left:0;right:0;top:0}.popup-container>.popup-content{padding:2px}.popup-container>.popup-content>.menu-container{margin:-3px 0;display:table;border-spacing:0 3px}FlyoutPresenter{padding:0 2px;display:table;border-spacing:0 3px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FlyoutPresenter, selector: "FlyoutPresenter", inputs: ["TransitionAnimation", "Padding", "IsVisible"] }] }); }
|
|
1603
1759
|
}
|
|
1604
1760
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MenuFlyoutComponent, decorators: [{
|
|
1605
1761
|
type: Component,
|
|
1606
|
-
args: [{ selector: 'MenuFlyout', imports: [CommonModule], template:
|
|
1607
|
-
<div class="popup-container" [ngStyle]="containerStyle" [ngClass]="containerClass">
|
|
1608
|
-
<div class="popup-content" [ngStyle]="contentStyle" *ngIf="isRendered">
|
|
1609
|
-
<div class="menu-container" (click)="onMenuClick($event)">
|
|
1610
|
-
<ng-content/>
|
|
1611
|
-
</div>
|
|
1612
|
-
</div>
|
|
1613
|
-
</div>`, providers: [{ provide: 'xaml-flyout', useExisting: MenuFlyoutComponent }], styles: [":host{position:relative}:host{position:static}.popup-container{background-color:transparent;display:grid;padding:0;margin:0;border:0;pointer-events:none;position:absolute;z-index:1000}.popup-container>.popup-content{display:grid;padding:16px;border-width:1px;border-style:solid;border-radius:var(--OverlayCornerRadius);opacity:0;transition:opacity var(--ControlNormalAnimationDuration);-webkit-backdrop-filter:var(--AcrylicBlur);backdrop-filter:var(--AcrylicBlur);box-shadow:0 0 15px #00000080;border-color:var(--SurfaceStrokeColorFlyout);background-color:var(--AcrylicInAppFillColorDefault)}.popup-container.flyout-open>.popup-content{opacity:1;pointer-events:all}.popup-backdrop{z-index:900;position:fixed;inset:0}\n", ".popup-container{left:0;right:0;top:0}.popup-container>.popup-content{padding:2px}.popup-container>.popup-content>.menu-container{margin:-3px 0;display:table;border-spacing:0 3px}\n"] }]
|
|
1762
|
+
args: [{ selector: 'MenuFlyout', imports: [CommonModule, FlyoutPresenter], template: PopupTemplate, providers: [{ provide: 'xaml-flyout', useExisting: MenuFlyoutComponent }], styles: [".popup-container{left:0;right:0;top:0}.popup-container>.popup-content{padding:2px}.popup-container>.popup-content>.menu-container{margin:-3px 0;display:table;border-spacing:0 3px}FlyoutPresenter{padding:0 2px;display:table;border-spacing:0 3px}\n"] }]
|
|
1614
1763
|
}] });
|
|
1615
1764
|
|
|
1616
1765
|
class ContextFlyoutDirective {
|
|
1617
1766
|
constructor(_hostComponent, _viewContainer) {
|
|
1618
1767
|
this._hostComponent = _hostComponent;
|
|
1619
1768
|
this._viewContainer = _viewContainer;
|
|
1620
|
-
this._positionX = 0;
|
|
1621
|
-
this._positionY = 0;
|
|
1622
|
-
}
|
|
1623
|
-
get style() {
|
|
1624
|
-
return {
|
|
1625
|
-
'position': 'fixed',
|
|
1626
|
-
'left': this._positionX + 'px',
|
|
1627
|
-
'top': this._positionY + 'px'
|
|
1628
|
-
};
|
|
1629
1769
|
}
|
|
1630
1770
|
ngAfterViewInit() {
|
|
1631
1771
|
this._flyout = this._viewContainer.injector.get(FlyoutComponent, null) ||
|
|
@@ -1642,8 +1782,7 @@ class ContextFlyoutDirective {
|
|
|
1642
1782
|
if (!this._flyout)
|
|
1643
1783
|
return;
|
|
1644
1784
|
if (!this._flyout.IsOpen) {
|
|
1645
|
-
this.
|
|
1646
|
-
this._positionY = event.clientY;
|
|
1785
|
+
this._flyout.Target = { x: event.clientX, y: event.clientY };
|
|
1647
1786
|
this._flyout.IsOpen = true;
|
|
1648
1787
|
}
|
|
1649
1788
|
else {
|
|
@@ -1653,25 +1792,33 @@ class ContextFlyoutDirective {
|
|
|
1653
1792
|
event.stopPropagation();
|
|
1654
1793
|
}
|
|
1655
1794
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ContextFlyoutDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1656
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ContextFlyoutDirective, isStandalone: true, selector: "[ContextFlyout]",
|
|
1795
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ContextFlyoutDirective, isStandalone: true, selector: "[ContextFlyout]", ngImport: i0 }); }
|
|
1657
1796
|
}
|
|
1658
1797
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ContextFlyoutDirective, decorators: [{
|
|
1659
1798
|
type: Directive,
|
|
1660
1799
|
args: [{
|
|
1661
1800
|
selector: '[ContextFlyout]'
|
|
1662
1801
|
}]
|
|
1663
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]
|
|
1664
|
-
type: HostBinding,
|
|
1665
|
-
args: ['style']
|
|
1666
|
-
}] } });
|
|
1802
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }] });
|
|
1667
1803
|
|
|
1668
1804
|
class TextBlockComponent extends FrameworkElementComponent {
|
|
1669
1805
|
constructor() {
|
|
1670
1806
|
super(...arguments);
|
|
1671
1807
|
this.FontWeight = 'Normal';
|
|
1672
1808
|
this.TextAlignment = 'Left';
|
|
1809
|
+
this.TextTrimming = 'None';
|
|
1673
1810
|
this.TextWrapping = 'NoWrap';
|
|
1674
1811
|
}
|
|
1812
|
+
get width() {
|
|
1813
|
+
if (this.Width !== undefined)
|
|
1814
|
+
return this.Width;
|
|
1815
|
+
return this.HorizontalAlignment === 'Stretch' || this.TextTrimming !== 'None' ? undefined : 'min-content';
|
|
1816
|
+
}
|
|
1817
|
+
get minWidth() {
|
|
1818
|
+
if (this.MinWidth !== undefined)
|
|
1819
|
+
return this.MinWidth;
|
|
1820
|
+
return this.MaxWidth === undefined && this.HorizontalAlignment === 'Stretch' && this.TextTrimming === 'None' ? 'min-content' : undefined;
|
|
1821
|
+
}
|
|
1675
1822
|
get fontWeight() {
|
|
1676
1823
|
return TextBlockComponent.ToFontWeight(this.FontWeight);
|
|
1677
1824
|
}
|
|
@@ -1875,12 +2022,18 @@ class AppBarButtonComponent extends FrameworkElementComponent {
|
|
|
1875
2022
|
get disabled() {
|
|
1876
2023
|
return !this.IsEnabled;
|
|
1877
2024
|
}
|
|
2025
|
+
onHostPointerEvent(event) {
|
|
2026
|
+
if (!this.IsEnabled)
|
|
2027
|
+
return;
|
|
2028
|
+
this.Click.emit(event);
|
|
2029
|
+
this._flyout?.Show();
|
|
2030
|
+
}
|
|
1878
2031
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppBarButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1879
|
-
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: { properties: { "class.disabled": "this.disabled" } }, usesInheritance: true, ngImport: i0, template: `<div class="icon">{{Icon}}</div><div class="text">{{Text}}</div
|
|
2032
|
+
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)}\n"] }); }
|
|
1880
2033
|
}
|
|
1881
2034
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppBarButtonComponent, decorators: [{
|
|
1882
2035
|
type: Component,
|
|
1883
|
-
args: [{ selector: 'AppBarButton', template: `<div class="icon">{{Icon}}</div><div class="text">{{Text}}</div
|
|
2036
|
+
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)}\n"] }]
|
|
1884
2037
|
}], propDecorators: { IsEnabled: [{
|
|
1885
2038
|
type: Input
|
|
1886
2039
|
}], Text: [{
|
|
@@ -1892,6 +2045,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
1892
2045
|
}], disabled: [{
|
|
1893
2046
|
type: HostBinding,
|
|
1894
2047
|
args: ['class.disabled']
|
|
2048
|
+
}], _flyout: [{
|
|
2049
|
+
type: ContentChild,
|
|
2050
|
+
args: ['xaml-flyout']
|
|
2051
|
+
}], onHostPointerEvent: [{
|
|
2052
|
+
type: HostListener,
|
|
2053
|
+
args: ['click', ['$event']]
|
|
1895
2054
|
}] } });
|
|
1896
2055
|
|
|
1897
2056
|
class CommandBarComponent extends FrameworkElementComponent {
|
|
@@ -1922,13 +2081,13 @@ class MenuFlyoutItemComponent extends MenuFlyoutItemBase {
|
|
|
1922
2081
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MenuFlyoutItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1923
2082
|
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>
|
|
1924
2083
|
<div class="text">{{Text}}</div>
|
|
1925
|
-
<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}.submenu-indicator{display:table-cell;padding:3px 6px;border-radius:0 var(--ControlCornerRadius) var(--ControlCornerRadius) 0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
2084
|
+
<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 }] }); }
|
|
1926
2085
|
}
|
|
1927
2086
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MenuFlyoutItemComponent, decorators: [{
|
|
1928
2087
|
type: Component,
|
|
1929
2088
|
args: [{ selector: 'MenuFlyoutItem', imports: [CommonModule], template: `<div class="icon">{{Icon}}</div>
|
|
1930
2089
|
<div class="text">{{Text}}</div>
|
|
1931
|
-
<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}.submenu-indicator{display:table-cell;padding:3px 6px;border-radius:0 var(--ControlCornerRadius) var(--ControlCornerRadius) 0}\n"] }]
|
|
2090
|
+
<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"] }]
|
|
1932
2091
|
}], propDecorators: { IsEnabled: [{
|
|
1933
2092
|
type: Input
|
|
1934
2093
|
}], Text: [{
|
|
@@ -2006,6 +2165,7 @@ class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
2006
2165
|
super();
|
|
2007
2166
|
this.IsEnabled = true;
|
|
2008
2167
|
this.PlaceholderText = '';
|
|
2168
|
+
this.IsPlaceholderEditable = false;
|
|
2009
2169
|
this.TextAlignment = 'Left';
|
|
2010
2170
|
this.InputMode = 'Float';
|
|
2011
2171
|
this.Minimum = -Infinity;
|
|
@@ -2046,9 +2206,30 @@ class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
2046
2206
|
onDecreaseClick() {
|
|
2047
2207
|
this.Value -= this.SmallChange;
|
|
2048
2208
|
}
|
|
2209
|
+
onButtonPress() {
|
|
2210
|
+
this._input.nativeElement.focus();
|
|
2211
|
+
setTimeout(() => this.cancelFlyoutDismiss(), 0);
|
|
2212
|
+
}
|
|
2213
|
+
cancelFlyoutDismiss() {
|
|
2214
|
+
if (this._blurTimeout) {
|
|
2215
|
+
clearTimeout(this._blurTimeout);
|
|
2216
|
+
this._blurTimeout = undefined;
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
scheduleFlyoutDismiss() {
|
|
2220
|
+
this.cancelFlyoutDismiss();
|
|
2221
|
+
this._blurTimeout = setTimeout(() => {
|
|
2222
|
+
this._flyout.Hide();
|
|
2223
|
+
}, 0);
|
|
2224
|
+
}
|
|
2049
2225
|
onBlur() {
|
|
2050
2226
|
this.updateText();
|
|
2051
2227
|
this._input.nativeElement.value = this._text;
|
|
2228
|
+
if (this.IsPlaceholderEditable && this._input.nativeElement.value === this.PlaceholderText) {
|
|
2229
|
+
this._input.nativeElement.value = '';
|
|
2230
|
+
this.onChange();
|
|
2231
|
+
}
|
|
2232
|
+
this.scheduleFlyoutDismiss();
|
|
2052
2233
|
}
|
|
2053
2234
|
onKeyDown(event) {
|
|
2054
2235
|
switch (event.key) {
|
|
@@ -2066,6 +2247,17 @@ class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
2066
2247
|
break;
|
|
2067
2248
|
}
|
|
2068
2249
|
}
|
|
2250
|
+
onClick() {
|
|
2251
|
+
this._input.nativeElement.focus();
|
|
2252
|
+
}
|
|
2253
|
+
onFocusIn() {
|
|
2254
|
+
if (this.IsPlaceholderEditable && Number.isNaN(this.Value)) {
|
|
2255
|
+
this._input.nativeElement.value = this.PlaceholderText;
|
|
2256
|
+
this.onChange();
|
|
2257
|
+
}
|
|
2258
|
+
this._flyout.Show();
|
|
2259
|
+
this._input.nativeElement.select();
|
|
2260
|
+
}
|
|
2069
2261
|
updateText() {
|
|
2070
2262
|
this._text = Number.isNaN(this.Value) ? '' : this.NumberFormatter(this.Value);
|
|
2071
2263
|
}
|
|
@@ -2073,29 +2265,33 @@ class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
2073
2265
|
event.stopPropagation();
|
|
2074
2266
|
}
|
|
2075
2267
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NumberBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2076
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: NumberBoxComponent, isStandalone: true, selector: "NumberBox", inputs: { IsEnabled: "IsEnabled", PlaceholderText: "PlaceholderText", TextAlignment: "TextAlignment", InputMode: "InputMode", Minimum: "Minimum", Maximum: "Maximum", SmallChange: "SmallChange", LargeChange: "LargeChange", NumberFormatter: "NumberFormatter", Value: "Value" }, outputs: { ValueChange: "ValueChange" }, host: { listeners: { "contextmenu": "onContextMenu($event)" } }, viewQueries: [{ propertyName: "_input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<label>
|
|
2077
|
-
<input #input type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange()" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}" (blur)="onBlur()" (keydown)="onKeyDown($event)"/>
|
|
2078
|
-
<div class="popup">
|
|
2079
|
-
<RepeatButton Class="InlineButtonStyle" (Click)="onIncreaseClick()" [Delay]="500" [Interval]="50"><FontIcon Glyph=""/></RepeatButton>
|
|
2080
|
-
<RepeatButton Class="InlineButtonStyle" (Click)="onDecreaseClick()" [Delay]="500" [Interval]="50"><FontIcon Glyph=""/></RepeatButton>
|
|
2081
|
-
</div>
|
|
2268
|
+
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>
|
|
2082
2269
|
<div class="icon"></div>
|
|
2083
|
-
|
|
2270
|
+
<input #input type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange()" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}" (blur)="onBlur()" (keydown)="onKeyDown($event)"/>
|
|
2271
|
+
<Flyout #flyout Padding="2px" Placement="Left" [HasBackdrop]="false">
|
|
2272
|
+
<RepeatButton Class="InlineButtonStyle" (Click)="onIncreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph=""/></RepeatButton>
|
|
2273
|
+
<RepeatButton Class="InlineButtonStyle" (Click)="onDecreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph=""/></RepeatButton>
|
|
2274
|
+
</Flyout>
|
|
2275
|
+
<div class="unit" *ngIf="Unit !== undefined">{{Unit}}</div>
|
|
2276
|
+
</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" }] }); }
|
|
2084
2277
|
}
|
|
2085
2278
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NumberBoxComponent, decorators: [{
|
|
2086
2279
|
type: Component,
|
|
2087
2280
|
args: [{ selector: 'NumberBox', template: `<label>
|
|
2088
|
-
<input #input type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange()" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}" (blur)="onBlur()" (keydown)="onKeyDown($event)"/>
|
|
2089
|
-
<div class="popup">
|
|
2090
|
-
<RepeatButton Class="InlineButtonStyle" (Click)="onIncreaseClick()" [Delay]="500" [Interval]="50"><FontIcon Glyph=""/></RepeatButton>
|
|
2091
|
-
<RepeatButton Class="InlineButtonStyle" (Click)="onDecreaseClick()" [Delay]="500" [Interval]="50"><FontIcon Glyph=""/></RepeatButton>
|
|
2092
|
-
</div>
|
|
2093
2281
|
<div class="icon"></div>
|
|
2094
|
-
|
|
2282
|
+
<input #input type="text" [disabled]="!IsEnabled" [value]="Text" (change)="onChange()" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}" (blur)="onBlur()" (keydown)="onKeyDown($event)"/>
|
|
2283
|
+
<Flyout #flyout Padding="2px" Placement="Left" [HasBackdrop]="false">
|
|
2284
|
+
<RepeatButton Class="InlineButtonStyle" (Click)="onIncreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph=""/></RepeatButton>
|
|
2285
|
+
<RepeatButton Class="InlineButtonStyle" (Click)="onDecreaseClick()" [Delay]="500" [Interval]="50" (pointerdown)="onButtonPress()" (pointerup)="onButtonPress()"><FontIcon Glyph=""/></RepeatButton>
|
|
2286
|
+
</Flyout>
|
|
2287
|
+
<div class="unit" *ngIf="Unit !== undefined">{{Unit}}</div>
|
|
2288
|
+
</label>`, imports: [CommonModule, RepeatButtonComponent, FontIconComponent, FlyoutComponent], styles: [":host{position:relative}:host{display:grid;cursor:text;outline-style:none;border-style:solid;border-width:1px;border-radius:var(--ControlCornerRadius);padding:6px;background-color:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);border-bottom-color:var(--ControlStrongStrokeColorDefault)}:host:hover{background-color:var(--ControlFillColorSecondary)}:host:focus-within,:host:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}:host.disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault)}textarea{resize:none}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"] }]
|
|
2095
2289
|
}], ctorParameters: () => [], propDecorators: { IsEnabled: [{
|
|
2096
2290
|
type: Input
|
|
2097
2291
|
}], PlaceholderText: [{
|
|
2098
2292
|
type: Input
|
|
2293
|
+
}], IsPlaceholderEditable: [{
|
|
2294
|
+
type: Input
|
|
2099
2295
|
}], TextAlignment: [{
|
|
2100
2296
|
type: Input
|
|
2101
2297
|
}], InputMode: [{
|
|
@@ -2110,13 +2306,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2110
2306
|
type: Input
|
|
2111
2307
|
}], NumberFormatter: [{
|
|
2112
2308
|
type: Input
|
|
2309
|
+
}], Unit: [{
|
|
2310
|
+
type: Input
|
|
2113
2311
|
}], ValueChange: [{
|
|
2114
2312
|
type: Output
|
|
2115
2313
|
}], _input: [{
|
|
2116
2314
|
type: ViewChild,
|
|
2117
2315
|
args: ['input']
|
|
2316
|
+
}], _flyout: [{
|
|
2317
|
+
type: ViewChild,
|
|
2318
|
+
args: ['flyout']
|
|
2118
2319
|
}], Value: [{
|
|
2119
2320
|
type: Input
|
|
2321
|
+
}], onClick: [{
|
|
2322
|
+
type: HostListener,
|
|
2323
|
+
args: ['click', []]
|
|
2324
|
+
}], onFocusIn: [{
|
|
2325
|
+
type: HostListener,
|
|
2326
|
+
args: ['focusin', []]
|
|
2120
2327
|
}], onContextMenu: [{
|
|
2121
2328
|
type: HostListener,
|
|
2122
2329
|
args: ['contextmenu', ['$event']]
|
|
@@ -2127,10 +2334,10 @@ class TextBoxComponent extends FrameworkElementComponent {
|
|
|
2127
2334
|
super(...arguments);
|
|
2128
2335
|
this.IsEnabled = true;
|
|
2129
2336
|
this.PlaceholderText = '';
|
|
2130
|
-
this.TextChange = new EventEmitter();
|
|
2131
2337
|
this.TextAlignment = 'Left';
|
|
2132
2338
|
this.TextWrapping = 'NoWrap';
|
|
2133
2339
|
this._text = '';
|
|
2340
|
+
this.TextChange = new EventEmitter();
|
|
2134
2341
|
}
|
|
2135
2342
|
get Text() {
|
|
2136
2343
|
return this._text;
|
|
@@ -2141,32 +2348,52 @@ class TextBoxComponent extends FrameworkElementComponent {
|
|
|
2141
2348
|
this._text = value;
|
|
2142
2349
|
this.TextChange.emit(value);
|
|
2143
2350
|
}
|
|
2144
|
-
|
|
2351
|
+
onInput(event) {
|
|
2145
2352
|
this.Text = (event.target).value;
|
|
2146
2353
|
}
|
|
2354
|
+
get disabled() {
|
|
2355
|
+
return !this.IsEnabled;
|
|
2356
|
+
}
|
|
2357
|
+
onClick() {
|
|
2358
|
+
this._input.nativeElement.focus();
|
|
2359
|
+
}
|
|
2147
2360
|
onContextMenu(event) {
|
|
2148
2361
|
event.stopPropagation();
|
|
2149
2362
|
}
|
|
2363
|
+
Focus() {
|
|
2364
|
+
setTimeout(() => {
|
|
2365
|
+
this._input.nativeElement.focus();
|
|
2366
|
+
}, 0);
|
|
2367
|
+
}
|
|
2150
2368
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2151
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: TextBoxComponent, isStandalone: true, selector: "TextBox", inputs: { IsEnabled: "IsEnabled", PlaceholderText: "PlaceholderText", TextAlignment: "TextAlignment", TextWrapping: "TextWrapping", Text: "Text" }, outputs: { TextChange: "TextChange" }, host: { listeners: { "contextmenu": "onContextMenu($event)" } }, usesInheritance: true, ngImport: i0, template: `<input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (
|
|
2152
|
-
<textarea *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (change)="
|
|
2369
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: TextBoxComponent, isStandalone: true, selector: "TextBox", inputs: { IsEnabled: "IsEnabled", PlaceholderText: "PlaceholderText", TextAlignment: "TextAlignment", TextWrapping: "TextWrapping", Text: "Text" }, outputs: { TextChange: "TextChange" }, host: { listeners: { "click": "onClick()", "contextmenu": "onContextMenu($event)" }, properties: { "class.disabled": "this.disabled" } }, viewQueries: [{ propertyName: "_input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<input #input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (input)="onInput($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"/>
|
|
2370
|
+
<textarea *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (change)="onInput($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"></textarea>`, isInline: true, styles: [":host{position:relative}:host{display:grid;cursor:text;outline-style:none;border-style:solid;border-width:1px;border-radius:var(--ControlCornerRadius);padding:6px;background-color:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);border-bottom-color:var(--ControlStrongStrokeColorDefault)}:host:hover{background-color:var(--ControlFillColorSecondary)}:host:focus-within,:host:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}:host.disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault)}textarea{resize:none}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"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2153
2371
|
}
|
|
2154
2372
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextBoxComponent, decorators: [{
|
|
2155
2373
|
type: Component,
|
|
2156
|
-
args: [{ selector: 'TextBox', imports: [CommonModule], template: `<input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (
|
|
2157
|
-
<textarea *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (change)="
|
|
2374
|
+
args: [{ selector: 'TextBox', imports: [CommonModule], template: `<input #input *ngIf="TextWrapping === 'NoWrap'" type="text" [disabled]="!IsEnabled" [value]="Text" (input)="onInput($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"/>
|
|
2375
|
+
<textarea *ngIf="TextWrapping === 'Wrap'" [disabled]="!IsEnabled" [value]="Text" (change)="onInput($event)" [placeholder]="PlaceholderText" [style]="{'text-align': TextAlignment}"></textarea>`, styles: [":host{position:relative}:host{display:grid;cursor:text;outline-style:none;border-style:solid;border-width:1px;border-radius:var(--ControlCornerRadius);padding:6px;background-color:var(--ControlFillColorDefault);border-color:var(--ControlStrokeColorDefault);border-bottom-color:var(--ControlStrongStrokeColorDefault)}:host:hover{background-color:var(--ControlFillColorSecondary)}:host:focus-within,:host:active{background-color:var(--ControlFillColorInputActive);border-bottom-color:var(--AccentFillColorDefault)}:host.disabled{background-color:var(--ControlFillColorDisabled);border-bottom-color:var(--ControlStrokeColorDefault)}textarea{resize:none}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"] }]
|
|
2158
2376
|
}], propDecorators: { IsEnabled: [{
|
|
2159
2377
|
type: Input
|
|
2160
2378
|
}], PlaceholderText: [{
|
|
2161
2379
|
type: Input
|
|
2162
|
-
}], TextChange: [{
|
|
2163
|
-
type: Output
|
|
2164
2380
|
}], TextAlignment: [{
|
|
2165
2381
|
type: Input
|
|
2166
2382
|
}], TextWrapping: [{
|
|
2167
2383
|
type: Input
|
|
2384
|
+
}], _input: [{
|
|
2385
|
+
type: ViewChild,
|
|
2386
|
+
args: ['input']
|
|
2168
2387
|
}], Text: [{
|
|
2169
2388
|
type: Input
|
|
2389
|
+
}], TextChange: [{
|
|
2390
|
+
type: Output
|
|
2391
|
+
}], disabled: [{
|
|
2392
|
+
type: HostBinding,
|
|
2393
|
+
args: ['class.disabled']
|
|
2394
|
+
}], onClick: [{
|
|
2395
|
+
type: HostListener,
|
|
2396
|
+
args: ['click', []]
|
|
2170
2397
|
}], onContextMenu: [{
|
|
2171
2398
|
type: HostListener,
|
|
2172
2399
|
args: ['contextmenu', ['$event']]
|
|
@@ -2177,11 +2404,11 @@ class XamlRootComponent {
|
|
|
2177
2404
|
event.preventDefault();
|
|
2178
2405
|
}
|
|
2179
2406
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: XamlRootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2180
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: XamlRootComponent, isStandalone: true, selector: "XamlRoot", host: { listeners: { "contextmenu": "onContextMenu($event)" } }, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:grid;
|
|
2407
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: XamlRootComponent, isStandalone: true, selector: "XamlRoot", host: { listeners: { "contextmenu": "onContextMenu($event)" } }, ngImport: i0, template: `<ng-content/>`, isInline: true, styles: [":host{display:grid;overflow:hidden;-webkit-user-select:none;user-select:none;background-color:#f3f3f3}@media (prefers-color-scheme: dark){:host{background-color:#202020}}\n"] }); }
|
|
2181
2408
|
}
|
|
2182
2409
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: XamlRootComponent, decorators: [{
|
|
2183
2410
|
type: Component,
|
|
2184
|
-
args: [{ selector: 'XamlRoot', template: `<ng-content/>`, styles: [":host{display:grid;
|
|
2411
|
+
args: [{ selector: 'XamlRoot', template: `<ng-content/>`, styles: [":host{display:grid;overflow:hidden;-webkit-user-select:none;user-select:none;background-color:#f3f3f3}@media (prefers-color-scheme: dark){:host{background-color:#202020}}\n"] }]
|
|
2185
2412
|
}], propDecorators: { onContextMenu: [{
|
|
2186
2413
|
type: HostListener,
|
|
2187
2414
|
args: ['contextmenu', ['$event']]
|
|
@@ -2196,5 +2423,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2196
2423
|
* Generated bundle index. Do not edit.
|
|
2197
2424
|
*/
|
|
2198
2425
|
|
|
2199
|
-
export { AppBarButtonComponent, BorderComponent, ButtonComponent, CheckBoxComponent, ColorPickerComponent, ComboBoxComponent, CommandBarComponent, ContextFlyoutDirective, DropDownButtonComponent, FlyoutComponent, FontIconComponent, FrameworkElementComponent, GridColumnDirective, GridColumnSpanDirective, GridComponent, GridDirective, GridModule, GridProperty, GridRowDirective, GridRowSpanDirective, ImageComponent, ListBoxComponent, ListViewComponent, MenuFlyoutComponent, MenuFlyoutItemBase, MenuFlyoutItemComponent, MenuFlyoutSeparator, NumberBoxComponent, PanelComponent,
|
|
2426
|
+
export { AppBarButtonComponent, BorderComponent, ButtonComponent, CheckBoxComponent, ColorPickerComponent, ComboBoxComponent, CommandBarComponent, ContextFlyoutDirective, DropDownButtonComponent, FlyoutBaseComponent, FlyoutComponent, FlyoutPresenter, FontIconComponent, FrameworkElementComponent, GridColumnDirective, GridColumnSpanDirective, GridComponent, GridDirective, GridModule, GridProperty, GridRowDirective, GridRowSpanDirective, ImageComponent, 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, rgbToHsl, stringToColor, toAlignment, toJustification };
|
|
2200
2427
|
//# sourceMappingURL=xaml-ui.mjs.map
|