@fluentui/web-components 3.0.0-beta.72 → 3.0.0-beta.74
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/CHANGELOG.md +20 -2
- package/dist/dts/index-rollup.d.ts +1 -0
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/text-input/text-input.d.ts +16 -6
- package/dist/dts/tooltip/define.d.ts +1 -0
- package/dist/dts/tooltip/index.d.ts +5 -0
- package/dist/dts/tooltip/tooltip.d.ts +88 -0
- package/dist/dts/tooltip/tooltip.definition.d.ts +9 -0
- package/dist/dts/tooltip/tooltip.options.d.ts +24 -0
- package/dist/dts/tooltip/tooltip.styles.d.ts +5 -0
- package/dist/dts/tooltip/tooltip.template.d.ts +6 -0
- package/dist/esm/avatar/avatar.js +1 -2
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/button/button.js +1 -2
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/checkbox/checkbox.js +1 -2
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/index-rollup.js +1 -0
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/menu/menu.js +0 -3
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu-item/menu-item.js +0 -7
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-item/menu-item.template.js +1 -3
- package/dist/esm/menu-item/menu-item.template.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js +1 -2
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/radio-group/radio-group.js +1 -2
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/slider/slider.js +1 -2
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/text-input/text-input.js +18 -11
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/textarea/textarea.js +1 -2
- package/dist/esm/textarea/textarea.js.map +1 -1
- package/dist/esm/tooltip/define.js +4 -0
- package/dist/esm/tooltip/define.js.map +1 -0
- package/dist/esm/tooltip/index.js +6 -0
- package/dist/esm/tooltip/index.js.map +1 -0
- package/dist/esm/tooltip/tooltip.definition.js +17 -0
- package/dist/esm/tooltip/tooltip.definition.js.map +1 -0
- package/dist/esm/tooltip/tooltip.js +188 -0
- package/dist/esm/tooltip/tooltip.js.map +1 -0
- package/dist/esm/tooltip/tooltip.options.js +19 -0
- package/dist/esm/tooltip/tooltip.options.js.map +1 -0
- package/dist/esm/tooltip/tooltip.styles.js +95 -0
- package/dist/esm/tooltip/tooltip.styles.js.map +1 -0
- package/dist/esm/tooltip/tooltip.template.js +11 -0
- package/dist/esm/tooltip/tooltip.template.js.map +1 -0
- package/dist/web-components.d.ts +140 -6
- package/dist/web-components.js +848 -651
- package/dist/web-components.min.js +259 -246
- package/package.json +2 -2
package/dist/web-components.js
CHANGED
|
@@ -4094,70 +4094,70 @@ function uniqueId(prefix = "") {
|
|
|
4094
4094
|
return `${prefix}${uniqueIdCounter++}`;
|
|
4095
4095
|
}
|
|
4096
4096
|
|
|
4097
|
-
var __defProp$
|
|
4098
|
-
var __getOwnPropDesc$
|
|
4099
|
-
var __decorateClass$
|
|
4100
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4097
|
+
var __defProp$x = Object.defineProperty;
|
|
4098
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
4099
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
4100
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
4101
4101
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4102
|
-
if (kind && result) __defProp$
|
|
4102
|
+
if (kind && result) __defProp$x(target, key, result);
|
|
4103
4103
|
return result;
|
|
4104
4104
|
};
|
|
4105
4105
|
class ARIAGlobalStatesAndProperties {}
|
|
4106
|
-
__decorateClass$
|
|
4106
|
+
__decorateClass$x([attr({
|
|
4107
4107
|
attribute: "aria-atomic"
|
|
4108
4108
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", 2);
|
|
4109
|
-
__decorateClass$
|
|
4109
|
+
__decorateClass$x([attr({
|
|
4110
4110
|
attribute: "aria-busy"
|
|
4111
4111
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", 2);
|
|
4112
|
-
__decorateClass$
|
|
4112
|
+
__decorateClass$x([attr({
|
|
4113
4113
|
attribute: "aria-controls"
|
|
4114
4114
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaControls", 2);
|
|
4115
|
-
__decorateClass$
|
|
4115
|
+
__decorateClass$x([attr({
|
|
4116
4116
|
attribute: "aria-current"
|
|
4117
4117
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", 2);
|
|
4118
|
-
__decorateClass$
|
|
4118
|
+
__decorateClass$x([attr({
|
|
4119
4119
|
attribute: "aria-describedby"
|
|
4120
4120
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", 2);
|
|
4121
|
-
__decorateClass$
|
|
4121
|
+
__decorateClass$x([attr({
|
|
4122
4122
|
attribute: "aria-details"
|
|
4123
4123
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", 2);
|
|
4124
|
-
__decorateClass$
|
|
4124
|
+
__decorateClass$x([attr({
|
|
4125
4125
|
attribute: "aria-disabled"
|
|
4126
4126
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", 2);
|
|
4127
|
-
__decorateClass$
|
|
4127
|
+
__decorateClass$x([attr({
|
|
4128
4128
|
attribute: "aria-errormessage"
|
|
4129
4129
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", 2);
|
|
4130
|
-
__decorateClass$
|
|
4130
|
+
__decorateClass$x([attr({
|
|
4131
4131
|
attribute: "aria-flowto"
|
|
4132
4132
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", 2);
|
|
4133
|
-
__decorateClass$
|
|
4133
|
+
__decorateClass$x([attr({
|
|
4134
4134
|
attribute: "aria-haspopup"
|
|
4135
4135
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", 2);
|
|
4136
|
-
__decorateClass$
|
|
4136
|
+
__decorateClass$x([attr({
|
|
4137
4137
|
attribute: "aria-hidden"
|
|
4138
4138
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", 2);
|
|
4139
|
-
__decorateClass$
|
|
4139
|
+
__decorateClass$x([attr({
|
|
4140
4140
|
attribute: "aria-invalid"
|
|
4141
4141
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", 2);
|
|
4142
|
-
__decorateClass$
|
|
4142
|
+
__decorateClass$x([attr({
|
|
4143
4143
|
attribute: "aria-keyshortcuts"
|
|
4144
4144
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", 2);
|
|
4145
|
-
__decorateClass$
|
|
4145
|
+
__decorateClass$x([attr({
|
|
4146
4146
|
attribute: "aria-label"
|
|
4147
4147
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", 2);
|
|
4148
|
-
__decorateClass$
|
|
4148
|
+
__decorateClass$x([attr({
|
|
4149
4149
|
attribute: "aria-labelledby"
|
|
4150
4150
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", 2);
|
|
4151
|
-
__decorateClass$
|
|
4151
|
+
__decorateClass$x([attr({
|
|
4152
4152
|
attribute: "aria-live"
|
|
4153
4153
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLive", 2);
|
|
4154
|
-
__decorateClass$
|
|
4154
|
+
__decorateClass$x([attr({
|
|
4155
4155
|
attribute: "aria-owns"
|
|
4156
4156
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", 2);
|
|
4157
|
-
__decorateClass$
|
|
4157
|
+
__decorateClass$x([attr({
|
|
4158
4158
|
attribute: "aria-relevant"
|
|
4159
4159
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", 2);
|
|
4160
|
-
__decorateClass$
|
|
4160
|
+
__decorateClass$x([attr({
|
|
4161
4161
|
attribute: "aria-roledescription"
|
|
4162
4162
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", 2);
|
|
4163
4163
|
|
|
@@ -4386,12 +4386,12 @@ const AccordionItemMarkerPosition = {
|
|
|
4386
4386
|
end: "end"
|
|
4387
4387
|
};
|
|
4388
4388
|
|
|
4389
|
-
var __defProp$
|
|
4390
|
-
var __getOwnPropDesc$
|
|
4391
|
-
var __decorateClass$
|
|
4392
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4389
|
+
var __defProp$w = Object.defineProperty;
|
|
4390
|
+
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
4391
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
4392
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
4393
4393
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4394
|
-
if (kind && result) __defProp$
|
|
4394
|
+
if (kind && result) __defProp$w(target, key, result);
|
|
4395
4395
|
return result;
|
|
4396
4396
|
};
|
|
4397
4397
|
class BaseAccordionItem extends FASTElement {
|
|
@@ -4425,18 +4425,18 @@ class BaseAccordionItem extends FASTElement {
|
|
|
4425
4425
|
toggleState(this.elementInternals, "disabled", next);
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
|
-
__decorateClass$
|
|
4428
|
+
__decorateClass$w([attr({
|
|
4429
4429
|
attribute: "heading-level",
|
|
4430
4430
|
mode: "fromView",
|
|
4431
4431
|
converter: nullableNumberConverter
|
|
4432
4432
|
})], BaseAccordionItem.prototype, "headinglevel", 2);
|
|
4433
|
-
__decorateClass$
|
|
4433
|
+
__decorateClass$w([attr({
|
|
4434
4434
|
mode: "boolean"
|
|
4435
4435
|
})], BaseAccordionItem.prototype, "expanded", 2);
|
|
4436
|
-
__decorateClass$
|
|
4436
|
+
__decorateClass$w([attr({
|
|
4437
4437
|
mode: "boolean"
|
|
4438
4438
|
})], BaseAccordionItem.prototype, "disabled", 2);
|
|
4439
|
-
__decorateClass$
|
|
4439
|
+
__decorateClass$w([attr], BaseAccordionItem.prototype, "id", 2);
|
|
4440
4440
|
class AccordionItem extends BaseAccordionItem {
|
|
4441
4441
|
constructor() {
|
|
4442
4442
|
super(...arguments);
|
|
@@ -4467,11 +4467,11 @@ class AccordionItem extends BaseAccordionItem {
|
|
|
4467
4467
|
toggleState(this.elementInternals, "block", next);
|
|
4468
4468
|
}
|
|
4469
4469
|
}
|
|
4470
|
-
__decorateClass$
|
|
4471
|
-
__decorateClass$
|
|
4470
|
+
__decorateClass$w([attr], AccordionItem.prototype, "size", 2);
|
|
4471
|
+
__decorateClass$w([attr({
|
|
4472
4472
|
attribute: "marker-position"
|
|
4473
4473
|
})], AccordionItem.prototype, "markerPosition", 2);
|
|
4474
|
-
__decorateClass$
|
|
4474
|
+
__decorateClass$w([attr({
|
|
4475
4475
|
mode: "boolean"
|
|
4476
4476
|
})], AccordionItem.prototype, "block", 2);
|
|
4477
4477
|
applyMixins(AccordionItem, StartEnd);
|
|
@@ -4675,6 +4675,8 @@ const colorTransparentStroke = "var(--colorTransparentStroke)";
|
|
|
4675
4675
|
const colorTransparentStrokeInteractive = "var(--colorTransparentStrokeInteractive)";
|
|
4676
4676
|
const colorStrokeFocus1 = "var(--colorStrokeFocus1)";
|
|
4677
4677
|
const colorStrokeFocus2 = "var(--colorStrokeFocus2)";
|
|
4678
|
+
const colorNeutralShadowAmbient = "var(--colorNeutralShadowAmbient)";
|
|
4679
|
+
const colorNeutralShadowKey = "var(--colorNeutralShadowKey)";
|
|
4678
4680
|
const colorPaletteRedBackground1 = "var(--colorPaletteRedBackground1)";
|
|
4679
4681
|
const colorPaletteRedBackground2 = "var(--colorPaletteRedBackground2)";
|
|
4680
4682
|
const colorPaletteRedBackground3 = "var(--colorPaletteRedBackground3)";
|
|
@@ -4835,7 +4837,7 @@ const curveEasyEaseMax = "var(--curveEasyEaseMax)";
|
|
|
4835
4837
|
const curveEasyEase = "var(--curveEasyEase)";
|
|
4836
4838
|
const curveLinear = "var(--curveLinear)";
|
|
4837
4839
|
|
|
4838
|
-
const styles$
|
|
4840
|
+
const styles$B = css`
|
|
4839
4841
|
${display("block")}
|
|
4840
4842
|
|
|
4841
4843
|
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${colorTransparentBackground};border:none;box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${spacingHorizontalS};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${spacingHorizontalM}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host(${disabledState}) .button{color:${colorNeutralForegroundDisabled}}:host(${disabledState}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${expandedState}) .content{display:block}:host(${expandedState}) .default-marker-collapsed,:host(${expandedState}) ::slotted([slot='marker-collapsed']),:host(:not(${expandedState})) :is(.default-marker-expanded,.content),:host(:not(${expandedState})) ::slotted([slot='marker-expanded']){display:none}:host(${expandedState}) ::slotted([slot='marker-expanded']),:host(:not(${expandedState})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host(${smallState}) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${largeState}) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${extraLargeState}) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host(${alignEndState}) :slotted([slot='start']){grid-column:1 / span 1}:host(${alignEndState}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${spacingHorizontalS};padding-inline-end:0}:host(${alignEndState}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${alignEndState}) .heading{grid-template-columns:auto auto 28px;padding-inline:${spacingHorizontalM}}:host(${alignEndState}:has([slot='start'])) .heading{padding-inline:${spacingHorizontalMNudge} ${spacingHorizontalM}}:host(${blockState}${alignEndState}) .heading{grid-template-columns:auto 1fr}:host(${alignEndState}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`;
|
|
@@ -4871,30 +4873,30 @@ const chevronDown20Filled = html.partial(`<svg
|
|
|
4871
4873
|
function accordionItemTemplate(options = {}) {
|
|
4872
4874
|
return html`<div class="heading" part="heading" role="heading" aria-level="${x => x.headinglevel}"><button class="button" part="button" ${ref("expandbutton")} ?disabled="${x => x.disabled ? "true" : void 0}" aria-expanded="${x => x.expanded}" aria-controls="${x => x.id}-panel" id="${x => x.id}"><slot name="heading"></slot></button>${startSlotTemplate(options)}<slot name="marker-expanded">${staticallyCompose(options.expandedIcon)}</slot><slot name="marker-collapsed">${staticallyCompose(options.collapsedIcon)}</slot></div><div class="content" part="content" id="${x => x.id}-panel" role="region" aria-labelledby="${x => x.id}"><slot></slot></div>`;
|
|
4873
4875
|
}
|
|
4874
|
-
const template$
|
|
4876
|
+
const template$C = accordionItemTemplate({
|
|
4875
4877
|
collapsedIcon: chevronRight20Filled,
|
|
4876
4878
|
expandedIcon: chevronDown20Filled
|
|
4877
4879
|
});
|
|
4878
4880
|
|
|
4879
|
-
const definition$
|
|
4881
|
+
const definition$C = AccordionItem.compose({
|
|
4880
4882
|
name: `${FluentDesignSystem.prefix}-accordion-item`,
|
|
4881
|
-
template: template$
|
|
4882
|
-
styles: styles$
|
|
4883
|
+
template: template$C,
|
|
4884
|
+
styles: styles$B
|
|
4883
4885
|
});
|
|
4884
4886
|
|
|
4885
|
-
definition$
|
|
4887
|
+
definition$C.define(FluentDesignSystem.registry);
|
|
4886
4888
|
|
|
4887
4889
|
const AccordionExpandMode = {
|
|
4888
4890
|
single: "single",
|
|
4889
4891
|
multi: "multi"
|
|
4890
4892
|
};
|
|
4891
4893
|
|
|
4892
|
-
var __defProp$
|
|
4893
|
-
var __getOwnPropDesc$
|
|
4894
|
-
var __decorateClass$
|
|
4895
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4894
|
+
var __defProp$v = Object.defineProperty;
|
|
4895
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
4896
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
4897
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
4896
4898
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4897
|
-
if (kind && result) __defProp$
|
|
4899
|
+
if (kind && result) __defProp$v(target, key, result);
|
|
4898
4900
|
return result;
|
|
4899
4901
|
};
|
|
4900
4902
|
class Accordion extends FASTElement {
|
|
@@ -5033,12 +5035,12 @@ class Accordion extends FASTElement {
|
|
|
5033
5035
|
});
|
|
5034
5036
|
}
|
|
5035
5037
|
}
|
|
5036
|
-
__decorateClass$
|
|
5038
|
+
__decorateClass$v([attr({
|
|
5037
5039
|
attribute: "expand-mode"
|
|
5038
5040
|
})], Accordion.prototype, "expandmode", 2);
|
|
5039
|
-
__decorateClass$
|
|
5041
|
+
__decorateClass$v([observable], Accordion.prototype, "slottedAccordionItems", 2);
|
|
5040
5042
|
|
|
5041
|
-
const styles$
|
|
5043
|
+
const styles$A = css`
|
|
5042
5044
|
${display("flex")}
|
|
5043
5045
|
|
|
5044
5046
|
:host{flex-direction:column;width:100%;contain:content}`;
|
|
@@ -5049,15 +5051,15 @@ function accordionTemplate() {
|
|
|
5049
5051
|
filter: elements()
|
|
5050
5052
|
})}></slot></template>`;
|
|
5051
5053
|
}
|
|
5052
|
-
const template$
|
|
5054
|
+
const template$B = accordionTemplate();
|
|
5053
5055
|
|
|
5054
|
-
const definition$
|
|
5056
|
+
const definition$B = Accordion.compose({
|
|
5055
5057
|
name: `${FluentDesignSystem.prefix}-accordion`,
|
|
5056
|
-
template: template$
|
|
5057
|
-
styles: styles$
|
|
5058
|
+
template: template$B,
|
|
5059
|
+
styles: styles$A
|
|
5058
5060
|
});
|
|
5059
5061
|
|
|
5060
|
-
definition$
|
|
5062
|
+
definition$B.define(FluentDesignSystem.registry);
|
|
5061
5063
|
|
|
5062
5064
|
const ButtonAppearance = {
|
|
5063
5065
|
primary: "primary",
|
|
@@ -5095,12 +5097,12 @@ const AnchorAttributes = {
|
|
|
5095
5097
|
type: "type"
|
|
5096
5098
|
};
|
|
5097
5099
|
|
|
5098
|
-
var __defProp$
|
|
5099
|
-
var __getOwnPropDesc$
|
|
5100
|
-
var __decorateClass$
|
|
5101
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5100
|
+
var __defProp$u = Object.defineProperty;
|
|
5101
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
5102
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
5103
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
5102
5104
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5103
|
-
if (kind && result) __defProp$
|
|
5105
|
+
if (kind && result) __defProp$u(target, key, result);
|
|
5104
5106
|
return result;
|
|
5105
5107
|
};
|
|
5106
5108
|
class BaseAnchor extends FASTElement {
|
|
@@ -5208,14 +5210,14 @@ class BaseAnchor extends FASTElement {
|
|
|
5208
5210
|
return proxy;
|
|
5209
5211
|
}
|
|
5210
5212
|
}
|
|
5211
|
-
__decorateClass$
|
|
5212
|
-
__decorateClass$
|
|
5213
|
-
__decorateClass$
|
|
5214
|
-
__decorateClass$
|
|
5215
|
-
__decorateClass$
|
|
5216
|
-
__decorateClass$
|
|
5217
|
-
__decorateClass$
|
|
5218
|
-
__decorateClass$
|
|
5213
|
+
__decorateClass$u([attr], BaseAnchor.prototype, "download", 2);
|
|
5214
|
+
__decorateClass$u([attr], BaseAnchor.prototype, "href", 2);
|
|
5215
|
+
__decorateClass$u([attr], BaseAnchor.prototype, "hreflang", 2);
|
|
5216
|
+
__decorateClass$u([attr], BaseAnchor.prototype, "ping", 2);
|
|
5217
|
+
__decorateClass$u([attr], BaseAnchor.prototype, "referrerpolicy", 2);
|
|
5218
|
+
__decorateClass$u([attr], BaseAnchor.prototype, "rel", 2);
|
|
5219
|
+
__decorateClass$u([attr], BaseAnchor.prototype, "target", 2);
|
|
5220
|
+
__decorateClass$u([attr], BaseAnchor.prototype, "type", 2);
|
|
5219
5221
|
class AnchorButton extends BaseAnchor {
|
|
5220
5222
|
constructor() {
|
|
5221
5223
|
super(...arguments);
|
|
@@ -5254,10 +5256,10 @@ class AnchorButton extends BaseAnchor {
|
|
|
5254
5256
|
toggleState(this.elementInternals, "icon", !!next);
|
|
5255
5257
|
}
|
|
5256
5258
|
}
|
|
5257
|
-
__decorateClass$
|
|
5258
|
-
__decorateClass$
|
|
5259
|
-
__decorateClass$
|
|
5260
|
-
__decorateClass$
|
|
5259
|
+
__decorateClass$u([attr], AnchorButton.prototype, "appearance", 2);
|
|
5260
|
+
__decorateClass$u([attr], AnchorButton.prototype, "shape", 2);
|
|
5261
|
+
__decorateClass$u([attr], AnchorButton.prototype, "size", 2);
|
|
5262
|
+
__decorateClass$u([attr({
|
|
5261
5263
|
attribute: "icon-only",
|
|
5262
5264
|
mode: "boolean"
|
|
5263
5265
|
})], AnchorButton.prototype, "iconOnly", 2);
|
|
@@ -5267,13 +5269,13 @@ const baseButtonStyles = css`
|
|
|
5267
5269
|
${display("inline-flex")}
|
|
5268
5270
|
|
|
5269
5271
|
:host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){flex-shrink:0}:host(:not(${iconOnlyState})) :is([slot='end'],:host(:not(${iconOnlyState}))::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${iconOnlyState}){min-width:32px;max-width:32px}:host(${smallState}){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host(${smallState}${iconOnlyState}){min-width:24px;max-width:24px}:host(${largeState}){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}${iconOnlyState}){min-width:40px;max-width:40px}:host(${largeState}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${circularState},${circularState}:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is(${squareState},${squareState}:focus-visible)){border-radius:${borderRadiusNone}}:host(${primaryState}){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host(${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${primaryState}:is(:hover,:hover:active)){border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host(${primaryState}:hover:active){background-color:${colorBrandBackgroundPressed}}:host(${primaryState}:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host(${outlineState}){background-color:${colorTransparentBackground}}:host(${outlineState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${outlineState}:hover:active){background-color:${colorTransparentBackgroundPressed}}:host(${subtleState}){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host(${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host(${subtleState}:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host(${subtleState}:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host(${subtleState}:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host(${transparentState}){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host(${transparentState}:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is(${transparentState},${transparentState}:is(:hover,:active))){border-color:transparent}`;
|
|
5270
|
-
const styles$
|
|
5272
|
+
const styles$z = css`
|
|
5271
5273
|
${baseButtonStyles}
|
|
5272
5274
|
|
|
5273
5275
|
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}:host(${primaryState}:is(:disabled,[disabled-focusable])),:host(${primaryState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${outlineState}:is(:disabled,[disabled-focusable])),:host(${outlineState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground}}:host(${subtleState}:is(:disabled,[disabled-focusable])),:host(${subtleState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground};border-color:transparent}:host(${transparentState}:is(:disabled,[disabled-focusable])),:host(${transparentState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${colorTransparentBackground}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
5274
5276
|
:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host(${primaryState}:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`));
|
|
5275
5277
|
|
|
5276
|
-
const styles$
|
|
5278
|
+
const styles$y = css`
|
|
5277
5279
|
${baseButtonStyles}
|
|
5278
5280
|
|
|
5279
5281
|
::slotted(a){position:absolute;inset:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -5282,15 +5284,15 @@ const styles$x = css`
|
|
|
5282
5284
|
function anchorTemplate$1(options = {}) {
|
|
5283
5285
|
return html`<template tabindex="0" @click="${(x, c) => x.clickHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}">${startSlotTemplate(options)}<span class="content" part="content"><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
5284
5286
|
}
|
|
5285
|
-
const template$
|
|
5287
|
+
const template$A = anchorTemplate$1();
|
|
5286
5288
|
|
|
5287
|
-
const definition$
|
|
5289
|
+
const definition$A = AnchorButton.compose({
|
|
5288
5290
|
name: `${FluentDesignSystem.prefix}-anchor-button`,
|
|
5289
|
-
template: template$
|
|
5290
|
-
styles: styles$
|
|
5291
|
+
template: template$A,
|
|
5292
|
+
styles: styles$y
|
|
5291
5293
|
});
|
|
5292
5294
|
|
|
5293
|
-
definition$
|
|
5295
|
+
definition$A.define(FluentDesignSystem.registry);
|
|
5294
5296
|
|
|
5295
5297
|
const UNWANTED_ENCLOSURES_REGEX = /[\(\[\{][^\)\]\}]*[\)\]\}]/g;
|
|
5296
5298
|
const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
|
|
@@ -5372,12 +5374,12 @@ const AvatarColor = {
|
|
|
5372
5374
|
...AvatarNamedColor
|
|
5373
5375
|
};
|
|
5374
5376
|
|
|
5375
|
-
var __defProp$
|
|
5376
|
-
var __getOwnPropDesc$
|
|
5377
|
-
var __decorateClass$
|
|
5378
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5377
|
+
var __defProp$t = Object.defineProperty;
|
|
5378
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
5379
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
5380
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
5379
5381
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5380
|
-
if (kind && result) __defProp$
|
|
5382
|
+
if (kind && result) __defProp$t(target, key, result);
|
|
5381
5383
|
return result;
|
|
5382
5384
|
};
|
|
5383
5385
|
class BaseAvatar extends FASTElement {
|
|
@@ -5392,9 +5394,9 @@ class BaseAvatar extends FASTElement {
|
|
|
5392
5394
|
this.elementInternals.role = "img";
|
|
5393
5395
|
}
|
|
5394
5396
|
}
|
|
5395
|
-
__decorateClass$
|
|
5396
|
-
__decorateClass$
|
|
5397
|
-
__decorateClass$
|
|
5397
|
+
__decorateClass$t([attr], BaseAvatar.prototype, "name", 2);
|
|
5398
|
+
__decorateClass$t([attr], BaseAvatar.prototype, "initials", 2);
|
|
5399
|
+
__decorateClass$t([attr], BaseAvatar.prototype, "active", 2);
|
|
5398
5400
|
const _Avatar = class _Avatar extends BaseAvatar {
|
|
5399
5401
|
/**
|
|
5400
5402
|
* Handles changes to observable properties
|
|
@@ -5447,13 +5449,13 @@ const _Avatar = class _Avatar extends BaseAvatar {
|
|
|
5447
5449
|
* An array of the available Avatar named colors
|
|
5448
5450
|
*/
|
|
5449
5451
|
_Avatar.colors = Object.values(AvatarNamedColor);
|
|
5450
|
-
__decorateClass$
|
|
5451
|
-
__decorateClass$
|
|
5452
|
-
__decorateClass$
|
|
5452
|
+
__decorateClass$t([attr], _Avatar.prototype, "shape", 2);
|
|
5453
|
+
__decorateClass$t([attr], _Avatar.prototype, "appearance", 2);
|
|
5454
|
+
__decorateClass$t([attr({
|
|
5453
5455
|
converter: nullableNumberConverter
|
|
5454
5456
|
})], _Avatar.prototype, "size", 2);
|
|
5455
|
-
__decorateClass$
|
|
5456
|
-
__decorateClass$
|
|
5457
|
+
__decorateClass$t([attr], _Avatar.prototype, "color", 2);
|
|
5458
|
+
__decorateClass$t([attr({
|
|
5457
5459
|
attribute: "color-id"
|
|
5458
5460
|
})], _Avatar.prototype, "colorId", 2);
|
|
5459
5461
|
let Avatar = _Avatar;
|
|
@@ -5478,22 +5480,22 @@ const animations = {
|
|
|
5478
5480
|
normalEase: curveEasyEase,
|
|
5479
5481
|
nullEasing: curveLinear
|
|
5480
5482
|
};
|
|
5481
|
-
const styles$
|
|
5483
|
+
const styles$x = css`
|
|
5482
5484
|
${display("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin}) ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick}) ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host(${brandState}){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host(${darkRedState}){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host(${cranberryState}){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host(${redState}){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host(${pumpkinState}){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host(${peachState}){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host(${marigoldState}){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host(${goldState}){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host(${brassState}){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host(${brownState}){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host(${forestState}){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host(${seafoamState}){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host(${darkGreenState}){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host(${lightTealState}){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host(${tealState}){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host(${steelState}){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host(${blueState}){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host(${royalBlueState}){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host(${cornflowerState}){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host(${navyState}){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host(${lavenderState}){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host(${purpleState}){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host(${grapeState}){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host(${lilacState}){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host(${pinkState}){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host(${magentaState}){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host(${plumState}){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host(${beigeState}){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host(${minkState}){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host(${platinumState}){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host(${anchorState}){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow}),${durationSlower};transition-delay:${animations.fastEase}),${animations.nullEasing})}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
|
|
5483
5485
|
|
|
5484
5486
|
const defaultIconTemplate = html`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;
|
|
5485
5487
|
function avatarTemplate() {
|
|
5486
5488
|
return html`<slot>${x => x.name || x.initials ? x.generateInitials() : defaultIconTemplate}</slot><slot name="badge"></slot>`;
|
|
5487
5489
|
}
|
|
5488
|
-
const template$
|
|
5490
|
+
const template$z = avatarTemplate();
|
|
5489
5491
|
|
|
5490
|
-
const definition$
|
|
5492
|
+
const definition$z = Avatar.compose({
|
|
5491
5493
|
name: `${FluentDesignSystem.prefix}-avatar`,
|
|
5492
|
-
template: template$
|
|
5493
|
-
styles: styles$
|
|
5494
|
+
template: template$z,
|
|
5495
|
+
styles: styles$x
|
|
5494
5496
|
});
|
|
5495
5497
|
|
|
5496
|
-
definition$
|
|
5498
|
+
definition$z.define(FluentDesignSystem.registry);
|
|
5497
5499
|
|
|
5498
5500
|
const BadgeAppearance = {
|
|
5499
5501
|
filled: "filled",
|
|
@@ -5525,12 +5527,12 @@ const BadgeSize = {
|
|
|
5525
5527
|
extraLarge: "extra-large"
|
|
5526
5528
|
};
|
|
5527
5529
|
|
|
5528
|
-
var __defProp$
|
|
5529
|
-
var __getOwnPropDesc$
|
|
5530
|
-
var __decorateClass$
|
|
5531
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5530
|
+
var __defProp$s = Object.defineProperty;
|
|
5531
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
5532
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
5533
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
5532
5534
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5533
|
-
if (kind && result) __defProp$
|
|
5535
|
+
if (kind && result) __defProp$s(target, key, result);
|
|
5534
5536
|
return result;
|
|
5535
5537
|
};
|
|
5536
5538
|
class Badge extends FASTElement {
|
|
@@ -5578,10 +5580,10 @@ class Badge extends FASTElement {
|
|
|
5578
5580
|
swapStates(this.elementInternals, prev, next, BadgeSize);
|
|
5579
5581
|
}
|
|
5580
5582
|
}
|
|
5581
|
-
__decorateClass$
|
|
5582
|
-
__decorateClass$
|
|
5583
|
-
__decorateClass$
|
|
5584
|
-
__decorateClass$
|
|
5583
|
+
__decorateClass$s([attr], Badge.prototype, "appearance", 2);
|
|
5584
|
+
__decorateClass$s([attr], Badge.prototype, "color", 2);
|
|
5585
|
+
__decorateClass$s([attr], Badge.prototype, "shape", 2);
|
|
5586
|
+
__decorateClass$s([attr], Badge.prototype, "size", 2);
|
|
5585
5587
|
applyMixins(Badge, StartEnd);
|
|
5586
5588
|
|
|
5587
5589
|
const badgeBaseStyles = css.partial`
|
|
@@ -5935,7 +5937,7 @@ css.partial`
|
|
|
5935
5937
|
font-weight: ${fontWeightSemibold};
|
|
5936
5938
|
`;
|
|
5937
5939
|
|
|
5938
|
-
const styles$
|
|
5940
|
+
const styles$w = css`
|
|
5939
5941
|
:host(${squareState}){border-radius:${borderRadiusNone}}:host(${roundedState}){border-radius:${borderRadiusMedium}}:host(${roundedState}${tinyState}),:host(${roundedState}${extraSmallState}),:host(${roundedState}${smallState}){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
5940
5942
|
${badgeFilledStyles}
|
|
5941
5943
|
${badgeGhostStyles}
|
|
@@ -5948,22 +5950,22 @@ const styles$v = css`
|
|
|
5948
5950
|
function badgeTemplate(options = {}) {
|
|
5949
5951
|
return html` ${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)} `;
|
|
5950
5952
|
}
|
|
5951
|
-
const template$
|
|
5953
|
+
const template$y = badgeTemplate();
|
|
5952
5954
|
|
|
5953
|
-
const definition$
|
|
5955
|
+
const definition$y = Badge.compose({
|
|
5954
5956
|
name: `${FluentDesignSystem.prefix}-badge`,
|
|
5955
|
-
template: template$
|
|
5956
|
-
styles: styles$
|
|
5957
|
+
template: template$y,
|
|
5958
|
+
styles: styles$w
|
|
5957
5959
|
});
|
|
5958
5960
|
|
|
5959
|
-
definition$
|
|
5961
|
+
definition$y.define(FluentDesignSystem.registry);
|
|
5960
5962
|
|
|
5961
|
-
var __defProp$
|
|
5962
|
-
var __getOwnPropDesc$
|
|
5963
|
-
var __decorateClass$
|
|
5964
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5963
|
+
var __defProp$r = Object.defineProperty;
|
|
5964
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
5965
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
5966
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
5965
5967
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5966
|
-
if (kind && result) __defProp$
|
|
5968
|
+
if (kind && result) __defProp$r(target, key, result);
|
|
5967
5969
|
return result;
|
|
5968
5970
|
};
|
|
5969
5971
|
class BaseButton extends FASTElement {
|
|
@@ -6167,44 +6169,44 @@ class BaseButton extends FASTElement {
|
|
|
6167
6169
|
* @public
|
|
6168
6170
|
*/
|
|
6169
6171
|
BaseButton.formAssociated = true;
|
|
6170
|
-
__decorateClass$
|
|
6172
|
+
__decorateClass$r([attr({
|
|
6171
6173
|
mode: "boolean"
|
|
6172
6174
|
})], BaseButton.prototype, "autofocus", 2);
|
|
6173
|
-
__decorateClass$
|
|
6174
|
-
__decorateClass$
|
|
6175
|
+
__decorateClass$r([observable], BaseButton.prototype, "defaultSlottedContent", 2);
|
|
6176
|
+
__decorateClass$r([attr({
|
|
6175
6177
|
mode: "boolean"
|
|
6176
6178
|
})], BaseButton.prototype, "disabled", 2);
|
|
6177
|
-
__decorateClass$
|
|
6179
|
+
__decorateClass$r([attr({
|
|
6178
6180
|
attribute: "disabled-focusable",
|
|
6179
6181
|
mode: "boolean"
|
|
6180
6182
|
})], BaseButton.prototype, "disabledFocusable", 2);
|
|
6181
|
-
__decorateClass$
|
|
6183
|
+
__decorateClass$r([attr({
|
|
6182
6184
|
attribute: "tabindex",
|
|
6183
6185
|
mode: "fromView",
|
|
6184
6186
|
converter: nullableNumberConverter
|
|
6185
6187
|
})], BaseButton.prototype, "tabIndex", 2);
|
|
6186
|
-
__decorateClass$
|
|
6188
|
+
__decorateClass$r([attr({
|
|
6187
6189
|
attribute: "formaction"
|
|
6188
6190
|
})], BaseButton.prototype, "formAction", 2);
|
|
6189
|
-
__decorateClass$
|
|
6191
|
+
__decorateClass$r([attr({
|
|
6190
6192
|
attribute: "form"
|
|
6191
6193
|
})], BaseButton.prototype, "formAttribute", 2);
|
|
6192
|
-
__decorateClass$
|
|
6194
|
+
__decorateClass$r([attr({
|
|
6193
6195
|
attribute: "formenctype"
|
|
6194
6196
|
})], BaseButton.prototype, "formEnctype", 2);
|
|
6195
|
-
__decorateClass$
|
|
6197
|
+
__decorateClass$r([attr({
|
|
6196
6198
|
attribute: "formmethod"
|
|
6197
6199
|
})], BaseButton.prototype, "formMethod", 2);
|
|
6198
|
-
__decorateClass$
|
|
6200
|
+
__decorateClass$r([attr({
|
|
6199
6201
|
attribute: "formnovalidate",
|
|
6200
6202
|
mode: "boolean"
|
|
6201
6203
|
})], BaseButton.prototype, "formNoValidate", 2);
|
|
6202
|
-
__decorateClass$
|
|
6204
|
+
__decorateClass$r([attr({
|
|
6203
6205
|
attribute: "formtarget"
|
|
6204
6206
|
})], BaseButton.prototype, "formTarget", 2);
|
|
6205
|
-
__decorateClass$
|
|
6206
|
-
__decorateClass$
|
|
6207
|
-
__decorateClass$
|
|
6207
|
+
__decorateClass$r([attr], BaseButton.prototype, "name", 2);
|
|
6208
|
+
__decorateClass$r([attr], BaseButton.prototype, "type", 2);
|
|
6209
|
+
__decorateClass$r([attr], BaseButton.prototype, "value", 2);
|
|
6208
6210
|
class Button extends BaseButton {
|
|
6209
6211
|
constructor() {
|
|
6210
6212
|
super(...arguments);
|
|
@@ -6243,10 +6245,10 @@ class Button extends BaseButton {
|
|
|
6243
6245
|
toggleState(this.elementInternals, "icon", next);
|
|
6244
6246
|
}
|
|
6245
6247
|
}
|
|
6246
|
-
__decorateClass$
|
|
6247
|
-
__decorateClass$
|
|
6248
|
-
__decorateClass$
|
|
6249
|
-
__decorateClass$
|
|
6248
|
+
__decorateClass$r([attr], Button.prototype, "appearance", 2);
|
|
6249
|
+
__decorateClass$r([attr], Button.prototype, "shape", 2);
|
|
6250
|
+
__decorateClass$r([attr], Button.prototype, "size", 2);
|
|
6251
|
+
__decorateClass$r([attr({
|
|
6250
6252
|
attribute: "icon-only",
|
|
6251
6253
|
mode: "boolean"
|
|
6252
6254
|
})], Button.prototype, "iconOnly", 2);
|
|
@@ -6255,15 +6257,15 @@ applyMixins(Button, StartEnd);
|
|
|
6255
6257
|
function buttonTemplate$1(options = {}) {
|
|
6256
6258
|
return html`<template tabindex="${x => x.disabled ? null : x.tabIndex ?? 0}" @click="${(x, c) => x.clickHandler(c.event)}" @keypress="${(x, c) => x.keypressHandler(c.event)}">${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot></span>${endSlotTemplate(options)}</template>`;
|
|
6257
6259
|
}
|
|
6258
|
-
const template$
|
|
6260
|
+
const template$x = buttonTemplate$1();
|
|
6259
6261
|
|
|
6260
|
-
const definition$
|
|
6262
|
+
const definition$x = Button.compose({
|
|
6261
6263
|
name: `${FluentDesignSystem.prefix}-button`,
|
|
6262
|
-
template: template$
|
|
6263
|
-
styles: styles$
|
|
6264
|
+
template: template$x,
|
|
6265
|
+
styles: styles$z
|
|
6264
6266
|
});
|
|
6265
6267
|
|
|
6266
|
-
definition$
|
|
6268
|
+
definition$x.define(FluentDesignSystem.registry);
|
|
6267
6269
|
|
|
6268
6270
|
const CheckboxShape = {
|
|
6269
6271
|
circular: "circular",
|
|
@@ -6274,12 +6276,12 @@ const CheckboxSize = {
|
|
|
6274
6276
|
large: "large"
|
|
6275
6277
|
};
|
|
6276
6278
|
|
|
6277
|
-
var __defProp$
|
|
6278
|
-
var __getOwnPropDesc$
|
|
6279
|
-
var __decorateClass$
|
|
6280
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6279
|
+
var __defProp$q = Object.defineProperty;
|
|
6280
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
6281
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
6282
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
6281
6283
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6282
|
-
if (kind && result) __defProp$
|
|
6284
|
+
if (kind && result) __defProp$q(target, key, result);
|
|
6283
6285
|
return result;
|
|
6284
6286
|
};
|
|
6285
6287
|
class BaseCheckbox extends FASTElement {
|
|
@@ -6613,27 +6615,27 @@ class BaseCheckbox extends FASTElement {
|
|
|
6613
6615
|
* @public
|
|
6614
6616
|
*/
|
|
6615
6617
|
BaseCheckbox.formAssociated = true;
|
|
6616
|
-
__decorateClass$
|
|
6618
|
+
__decorateClass$q([attr({
|
|
6617
6619
|
mode: "boolean"
|
|
6618
6620
|
})], BaseCheckbox.prototype, "autofocus", 2);
|
|
6619
|
-
__decorateClass$
|
|
6620
|
-
__decorateClass$
|
|
6621
|
+
__decorateClass$q([observable], BaseCheckbox.prototype, "disabled", 2);
|
|
6622
|
+
__decorateClass$q([attr({
|
|
6621
6623
|
attribute: "disabled",
|
|
6622
6624
|
mode: "boolean"
|
|
6623
6625
|
})], BaseCheckbox.prototype, "disabledAttribute", 2);
|
|
6624
|
-
__decorateClass$
|
|
6626
|
+
__decorateClass$q([attr({
|
|
6625
6627
|
attribute: "form"
|
|
6626
6628
|
})], BaseCheckbox.prototype, "formAttribute", 2);
|
|
6627
|
-
__decorateClass$
|
|
6629
|
+
__decorateClass$q([attr({
|
|
6628
6630
|
attribute: "checked",
|
|
6629
6631
|
mode: "boolean"
|
|
6630
6632
|
})], BaseCheckbox.prototype, "initialChecked", 2);
|
|
6631
|
-
__decorateClass$
|
|
6633
|
+
__decorateClass$q([attr({
|
|
6632
6634
|
attribute: "value",
|
|
6633
6635
|
mode: "fromView"
|
|
6634
6636
|
})], BaseCheckbox.prototype, "initialValue", 2);
|
|
6635
|
-
__decorateClass$
|
|
6636
|
-
__decorateClass$
|
|
6637
|
+
__decorateClass$q([attr], BaseCheckbox.prototype, "name", 2);
|
|
6638
|
+
__decorateClass$q([attr({
|
|
6637
6639
|
mode: "boolean"
|
|
6638
6640
|
})], BaseCheckbox.prototype, "required", 2);
|
|
6639
6641
|
class Checkbox extends BaseCheckbox {
|
|
@@ -6696,11 +6698,11 @@ class Checkbox extends BaseCheckbox {
|
|
|
6696
6698
|
super.toggleChecked(force);
|
|
6697
6699
|
}
|
|
6698
6700
|
}
|
|
6699
|
-
__decorateClass$
|
|
6700
|
-
__decorateClass$
|
|
6701
|
-
__decorateClass$
|
|
6701
|
+
__decorateClass$q([observable], Checkbox.prototype, "indeterminate", 2);
|
|
6702
|
+
__decorateClass$q([attr], Checkbox.prototype, "shape", 2);
|
|
6703
|
+
__decorateClass$q([attr], Checkbox.prototype, "size", 2);
|
|
6702
6704
|
|
|
6703
|
-
const styles$
|
|
6705
|
+
const styles$v = css`
|
|
6704
6706
|
${display("inline-flex")}
|
|
6705
6707
|
|
|
6706
6708
|
:host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${largeState}){--size:20px}:host(${largeState}) ::slotted([slot='checked-indicator']),:host(${largeState}) .checked-indicator{width:16px}:host(${circularState}),:host(${circularState}) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState}) .checked-indicator{color:${colorNeutralStrokeDisabled}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -6726,23 +6728,23 @@ const indeterminateIndicator = html.partial( /* html */
|
|
|
6726
6728
|
function checkboxTemplate(options = {}) {
|
|
6727
6729
|
return html`<template tabindex="${x => !x.disabled ? 0 : void 0}" @click="${(x, c) => x.clickHandler(c.event)}" @input="${(x, c) => x.inputHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}" @keyup="${(x, c) => x.keyupHandler(c.event)}"><slot name="checked-indicator">${staticallyCompose(options.checkedIndicator)}</slot><slot name="indeterminate-indicator">${staticallyCompose(options.indeterminateIndicator)}</slot></template>`;
|
|
6728
6730
|
}
|
|
6729
|
-
const template$
|
|
6731
|
+
const template$w = checkboxTemplate({
|
|
6730
6732
|
checkedIndicator: checkedIndicator$1,
|
|
6731
6733
|
indeterminateIndicator
|
|
6732
6734
|
});
|
|
6733
6735
|
|
|
6734
|
-
const definition$
|
|
6736
|
+
const definition$w = Checkbox.compose({
|
|
6735
6737
|
name: `${FluentDesignSystem.prefix}-checkbox`,
|
|
6736
|
-
template: template$
|
|
6737
|
-
styles: styles$
|
|
6738
|
+
template: template$w,
|
|
6739
|
+
styles: styles$v
|
|
6738
6740
|
});
|
|
6739
6741
|
|
|
6740
|
-
definition$
|
|
6742
|
+
definition$w.define(FluentDesignSystem.registry);
|
|
6741
6743
|
|
|
6742
6744
|
class CompoundButton extends Button {}
|
|
6743
6745
|
|
|
6744
|
-
const styles$
|
|
6745
|
-
${styles$
|
|
6746
|
+
const styles$u = css`
|
|
6747
|
+
${styles$z}
|
|
6746
6748
|
|
|
6747
6749
|
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${colorNeutralForeground2};line-height:100%;font-size:${fontSizeBase200};font-weight:${fontWeightRegular}}::slotted(svg),:host(${largeState}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${colorNeutralForeground2Hover}}:host(:active) ::slotted([slot='description']){color:${colorNeutralForeground2Pressed}}:host(:is(${primaryState},${primaryState}:hover,${primaryState}:active)) ::slotted([slot='description']){color:${colorNeutralForegroundOnBrand}}:host(:is(${subtleState},${subtleState}:hover,${subtleState}:active)) ::slotted([slot='description']),:host(${transparentState}) ::slotted([slot='description']){color:${colorNeutralForeground2}}:host(${transparentState}:hover) ::slotted([slot='description']){color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:active) ::slotted([slot='description']){color:${colorNeutralForeground2BrandPressed}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
6748
6750
|
::slotted([slot='description']){color:${colorNeutralForegroundDisabled}}:host(${smallState}){padding:8px;padding-bottom:10px}:host(${iconOnlyState}){min-width:52px;max-width:52px;padding:${spacingHorizontalSNudge}}:host(${iconOnlyState}${smallState}){min-width:48px;max-width:48px;padding:${spacingHorizontalXS}}:host(${iconOnlyState}${largeState}){min-width:56px;max-width:56px;padding:${spacingHorizontalS}}:host(${largeState}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}) ::slotted([slot='description']){font-size:${fontSizeBase300}}`;
|
|
@@ -6750,15 +6752,15 @@ const styles$t = css`
|
|
|
6750
6752
|
function buttonTemplate(options = {}) {
|
|
6751
6753
|
return html`<template ?disabled="${x => x.disabled}" tabindex="${x => x.disabled ? null : x.tabIndex ?? 0}">${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot><slot name="description"></slot></span>${endSlotTemplate(options)}</template>`;
|
|
6752
6754
|
}
|
|
6753
|
-
const template$
|
|
6755
|
+
const template$v = buttonTemplate();
|
|
6754
6756
|
|
|
6755
|
-
const definition$
|
|
6757
|
+
const definition$v = CompoundButton.compose({
|
|
6756
6758
|
name: `${FluentDesignSystem.prefix}-compound-button`,
|
|
6757
|
-
template: template$
|
|
6758
|
-
styles: styles$
|
|
6759
|
+
template: template$v,
|
|
6760
|
+
styles: styles$u
|
|
6759
6761
|
});
|
|
6760
6762
|
|
|
6761
|
-
definition$
|
|
6763
|
+
definition$v.define(FluentDesignSystem.registry);
|
|
6762
6764
|
|
|
6763
6765
|
const CounterBadgeAppearance = {
|
|
6764
6766
|
filled: "filled",
|
|
@@ -6787,12 +6789,12 @@ const CounterBadgeSize = {
|
|
|
6787
6789
|
extraLarge: "extra-large"
|
|
6788
6790
|
};
|
|
6789
6791
|
|
|
6790
|
-
var __defProp$
|
|
6791
|
-
var __getOwnPropDesc$
|
|
6792
|
-
var __decorateClass$
|
|
6793
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6792
|
+
var __defProp$p = Object.defineProperty;
|
|
6793
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
6794
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
6795
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
6794
6796
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6795
|
-
if (kind && result) __defProp$
|
|
6797
|
+
if (kind && result) __defProp$p(target, key, result);
|
|
6796
6798
|
return result;
|
|
6797
6799
|
};
|
|
6798
6800
|
class CounterBadge extends FASTElement {
|
|
@@ -6869,27 +6871,27 @@ class CounterBadge extends FASTElement {
|
|
|
6869
6871
|
return;
|
|
6870
6872
|
}
|
|
6871
6873
|
}
|
|
6872
|
-
__decorateClass$
|
|
6873
|
-
__decorateClass$
|
|
6874
|
-
__decorateClass$
|
|
6875
|
-
__decorateClass$
|
|
6876
|
-
__decorateClass$
|
|
6874
|
+
__decorateClass$p([attr], CounterBadge.prototype, "appearance", 2);
|
|
6875
|
+
__decorateClass$p([attr], CounterBadge.prototype, "color", 2);
|
|
6876
|
+
__decorateClass$p([attr], CounterBadge.prototype, "shape", 2);
|
|
6877
|
+
__decorateClass$p([attr], CounterBadge.prototype, "size", 2);
|
|
6878
|
+
__decorateClass$p([attr({
|
|
6877
6879
|
converter: nullableNumberConverter
|
|
6878
6880
|
})], CounterBadge.prototype, "count", 2);
|
|
6879
|
-
__decorateClass$
|
|
6881
|
+
__decorateClass$p([attr({
|
|
6880
6882
|
attribute: "overflow-count",
|
|
6881
6883
|
converter: nullableNumberConverter
|
|
6882
6884
|
})], CounterBadge.prototype, "overflowCount", 2);
|
|
6883
|
-
__decorateClass$
|
|
6885
|
+
__decorateClass$p([attr({
|
|
6884
6886
|
attribute: "show-zero",
|
|
6885
6887
|
mode: "boolean"
|
|
6886
6888
|
})], CounterBadge.prototype, "showZero", 2);
|
|
6887
|
-
__decorateClass$
|
|
6889
|
+
__decorateClass$p([attr({
|
|
6888
6890
|
mode: "boolean"
|
|
6889
6891
|
})], CounterBadge.prototype, "dot", 2);
|
|
6890
6892
|
applyMixins(CounterBadge, StartEnd);
|
|
6891
6893
|
|
|
6892
|
-
const styles$
|
|
6894
|
+
const styles$t = css`
|
|
6893
6895
|
:host(${roundedState}){border-radius:${borderRadiusMedium}}:host(${roundedState}${tinyState}),:host(${roundedState}${extraSmallState}),:host(${roundedState}${smallState}){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
6894
6896
|
${badgeFilledStyles}
|
|
6895
6897
|
${badgeGhostStyles}
|
|
@@ -6902,15 +6904,15 @@ function composeTemplate(options = {}) {
|
|
|
6902
6904
|
defaultContent: html`${x => x.setCount()}`
|
|
6903
6905
|
});
|
|
6904
6906
|
}
|
|
6905
|
-
const template$
|
|
6907
|
+
const template$u = composeTemplate();
|
|
6906
6908
|
|
|
6907
|
-
const definition$
|
|
6909
|
+
const definition$u = CounterBadge.compose({
|
|
6908
6910
|
name: `${FluentDesignSystem.prefix}-counter-badge`,
|
|
6909
|
-
template: template$
|
|
6910
|
-
styles: styles$
|
|
6911
|
+
template: template$u,
|
|
6912
|
+
styles: styles$t
|
|
6911
6913
|
});
|
|
6912
6914
|
|
|
6913
|
-
definition$
|
|
6915
|
+
definition$u.define(FluentDesignSystem.registry);
|
|
6914
6916
|
|
|
6915
6917
|
const DialogType = {
|
|
6916
6918
|
modal: "modal",
|
|
@@ -6918,12 +6920,12 @@ const DialogType = {
|
|
|
6918
6920
|
alert: "alert"
|
|
6919
6921
|
};
|
|
6920
6922
|
|
|
6921
|
-
var __defProp$
|
|
6922
|
-
var __getOwnPropDesc$
|
|
6923
|
-
var __decorateClass$
|
|
6924
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6923
|
+
var __defProp$o = Object.defineProperty;
|
|
6924
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
6925
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
6926
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
6925
6927
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6926
|
-
if (kind && result) __defProp$
|
|
6928
|
+
if (kind && result) __defProp$o(target, key, result);
|
|
6927
6929
|
return result;
|
|
6928
6930
|
};
|
|
6929
6931
|
class Dialog extends FASTElement {
|
|
@@ -6991,35 +6993,35 @@ class Dialog extends FASTElement {
|
|
|
6991
6993
|
return true;
|
|
6992
6994
|
}
|
|
6993
6995
|
}
|
|
6994
|
-
__decorateClass$
|
|
6995
|
-
__decorateClass$
|
|
6996
|
+
__decorateClass$o([observable], Dialog.prototype, "dialog", 2);
|
|
6997
|
+
__decorateClass$o([attr({
|
|
6996
6998
|
attribute: "aria-describedby"
|
|
6997
6999
|
})], Dialog.prototype, "ariaDescribedby", 2);
|
|
6998
|
-
__decorateClass$
|
|
7000
|
+
__decorateClass$o([attr({
|
|
6999
7001
|
attribute: "aria-labelledby"
|
|
7000
7002
|
})], Dialog.prototype, "ariaLabelledby", 2);
|
|
7001
|
-
__decorateClass$
|
|
7003
|
+
__decorateClass$o([attr], Dialog.prototype, "type", 2);
|
|
7002
7004
|
|
|
7003
|
-
const template$
|
|
7005
|
+
const template$t = html`<dialog role="${x => x.type === DialogType.alert ? "alertdialog" : "dialog"}" type="${x => x.type}" class="dialog" part="dialog" aria-modal="${x => x.type === DialogType.modal || x.type === DialogType.alert ? "true" : void 0}" aria-describedby="${x => x.ariaDescribedby}" aria-labelledby="${x => x.ariaLabelledby}" aria-label="${x => x.ariaLabel}" @click="${(x, c) => x.clickHandler(c.event)}" @cancel="${(x, c) => x.type === DialogType.alert ? c.event.preventDefault() : x.hide()}" ${ref("dialog")}><slot></slot></dialog>`;
|
|
7004
7006
|
|
|
7005
|
-
const styles$
|
|
7007
|
+
const styles$s = css`
|
|
7006
7008
|
@layer base{:host{--dialog-backdrop:${colorBackgroundOverlay};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${colorNeutralBackground1};border-radius:${borderRadiusXLarge};border:none;box-shadow:${shadow64};color:${colorNeutralForeground1};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};opacity:0}::backdrop{transition-timing-function:${curveLinear}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${curveAccelerateMid}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
7007
7009
|
@layer base{dialog{border:${strokeWidthThin} solid ${colorTransparentStroke}}}`));
|
|
7008
7010
|
|
|
7009
|
-
const definition$
|
|
7011
|
+
const definition$t = Dialog.compose({
|
|
7010
7012
|
name: `${FluentDesignSystem.prefix}-dialog`,
|
|
7011
|
-
template: template$
|
|
7012
|
-
styles: styles$
|
|
7013
|
+
template: template$t,
|
|
7014
|
+
styles: styles$s
|
|
7013
7015
|
});
|
|
7014
7016
|
|
|
7015
|
-
definition$
|
|
7017
|
+
definition$t.define(FluentDesignSystem.registry);
|
|
7016
7018
|
|
|
7017
|
-
var __defProp$
|
|
7018
|
-
var __getOwnPropDesc$
|
|
7019
|
-
var __decorateClass$
|
|
7020
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7019
|
+
var __defProp$n = Object.defineProperty;
|
|
7020
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
7021
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
7022
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
7021
7023
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7022
|
-
if (kind && result) __defProp$
|
|
7024
|
+
if (kind && result) __defProp$n(target, key, result);
|
|
7023
7025
|
return result;
|
|
7024
7026
|
};
|
|
7025
7027
|
class DialogBody extends FASTElement {
|
|
@@ -7028,7 +7030,7 @@ class DialogBody extends FASTElement {
|
|
|
7028
7030
|
this.noTitleAction = false;
|
|
7029
7031
|
}
|
|
7030
7032
|
}
|
|
7031
|
-
__decorateClass$
|
|
7033
|
+
__decorateClass$n([attr({
|
|
7032
7034
|
mode: "boolean",
|
|
7033
7035
|
attribute: "no-title-action"
|
|
7034
7036
|
})], DialogBody.prototype, "noTitleAction", 2);
|
|
@@ -7047,20 +7049,20 @@ const dismissed16Regular = html.partial(`
|
|
|
7047
7049
|
fill="currentColor"
|
|
7048
7050
|
></path>
|
|
7049
7051
|
</svg>`);
|
|
7050
|
-
const template$
|
|
7052
|
+
const template$s = html`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${x => x.noTitleAction || x.parentNode?.type === DialogType.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${x => x.parentNode?.hide()} ${ref("defaultTitleAction")}>${dismissed16Regular}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`;
|
|
7051
7053
|
|
|
7052
|
-
const styles$
|
|
7054
|
+
const styles$r = css`
|
|
7053
7055
|
${display("grid")}
|
|
7054
7056
|
|
|
7055
7057
|
:host{background:${colorNeutralBackground1};box-sizing:border-box;gap:${spacingVerticalS};padding:${spacingVerticalXXL} ${spacingHorizontalXXL};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${colorNeutralBackground1};color:${colorNeutralForeground1};column-gap:8px;display:flex;font-family:${fontFamilyBase};font-size:${fontSizeBase500};font-weight:${fontWeightSemibold};inset-block-start:0;justify-content:space-between;line-height:${lineHeightBase500};margin-block-end:calc(${spacingVerticalS} * -1);margin-block-start:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalS};padding-block-start:${spacingVerticalXXL};position:sticky;z-index:1}.content{box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};min-height:32px}.actions{box-sizing:border-box;background:${colorNeutralBackground1};display:flex;flex-direction:column;gap:${spacingVerticalS};inset-block-end:0;margin-block-end:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalXXL};padding-block-start:${spacingVerticalL};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${spacingVerticalS} * -1);padding-block-start:${spacingVerticalS}}}`;
|
|
7056
7058
|
|
|
7057
|
-
const definition$
|
|
7059
|
+
const definition$s = DialogBody.compose({
|
|
7058
7060
|
name: `${FluentDesignSystem.prefix}-dialog-body`,
|
|
7059
|
-
template: template$
|
|
7060
|
-
styles: styles$
|
|
7061
|
+
template: template$s,
|
|
7062
|
+
styles: styles$r
|
|
7061
7063
|
});
|
|
7062
7064
|
|
|
7063
|
-
definition$
|
|
7065
|
+
definition$s.define(FluentDesignSystem.registry);
|
|
7064
7066
|
|
|
7065
7067
|
const DividerRole = {
|
|
7066
7068
|
/**
|
|
@@ -7084,12 +7086,12 @@ const DividerAppearance = {
|
|
|
7084
7086
|
subtle: "subtle"
|
|
7085
7087
|
};
|
|
7086
7088
|
|
|
7087
|
-
var __defProp$
|
|
7088
|
-
var __getOwnPropDesc$
|
|
7089
|
-
var __decorateClass$
|
|
7090
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7089
|
+
var __defProp$m = Object.defineProperty;
|
|
7090
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
7091
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
7092
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
7091
7093
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7092
|
-
if (kind && result) __defProp$
|
|
7094
|
+
if (kind && result) __defProp$m(target, key, result);
|
|
7093
7095
|
return result;
|
|
7094
7096
|
};
|
|
7095
7097
|
class BaseDivider extends FASTElement {
|
|
@@ -7136,8 +7138,8 @@ class BaseDivider extends FASTElement {
|
|
|
7136
7138
|
swapStates(this.elementInternals, previous, next, DividerOrientation);
|
|
7137
7139
|
}
|
|
7138
7140
|
}
|
|
7139
|
-
__decorateClass$
|
|
7140
|
-
__decorateClass$
|
|
7141
|
+
__decorateClass$m([attr], BaseDivider.prototype, "role", 2);
|
|
7142
|
+
__decorateClass$m([attr], BaseDivider.prototype, "orientation", 2);
|
|
7141
7143
|
class Divider extends BaseDivider {
|
|
7142
7144
|
/**
|
|
7143
7145
|
* Handles changes to align-content attribute custom states
|
|
@@ -7164,32 +7166,32 @@ class Divider extends BaseDivider {
|
|
|
7164
7166
|
toggleState(this.elementInternals, "inset", next);
|
|
7165
7167
|
}
|
|
7166
7168
|
}
|
|
7167
|
-
__decorateClass$
|
|
7169
|
+
__decorateClass$m([attr({
|
|
7168
7170
|
attribute: "align-content"
|
|
7169
7171
|
})], Divider.prototype, "alignContent", 2);
|
|
7170
|
-
__decorateClass$
|
|
7171
|
-
__decorateClass$
|
|
7172
|
+
__decorateClass$m([attr], Divider.prototype, "appearance", 2);
|
|
7173
|
+
__decorateClass$m([attr({
|
|
7172
7174
|
mode: "boolean"
|
|
7173
7175
|
})], Divider.prototype, "inset", 2);
|
|
7174
7176
|
|
|
7175
7177
|
function dividerTemplate() {
|
|
7176
7178
|
return html`<slot></slot>`;
|
|
7177
7179
|
}
|
|
7178
|
-
const template$
|
|
7180
|
+
const template$r = dividerTemplate();
|
|
7179
7181
|
|
|
7180
|
-
const styles$
|
|
7182
|
+
const styles$q = css`
|
|
7181
7183
|
${display("flex")}
|
|
7182
7184
|
|
|
7183
7185
|
:host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host(${insetState}){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host(${alignStartState})::before,:host(${alignEndState})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${verticalState}){height:100%;min-height:84px}:host(${verticalState}):empty{min-height:20px}:host(${verticalState}){flex-direction:column;align-items:center}:host(${verticalState}${insetState})::before{margin-top:12px}:host(${verticalState}${insetState})::after{margin-bottom:12px}:host(${verticalState}):empty::before,:host(${verticalState}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${verticalState})::before,:host(${verticalState})::after{width:${strokeWidthThin};min-height:20px;height:100%}:host(${verticalState}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${verticalState}${alignStartState})::before{min-height:8px}:host(${verticalState}${alignEndState})::after{min-height:8px}:host(${strongState})::before,:host(${strongState})::after{background:${colorNeutralStroke1}}:host(${strongState}) ::slotted(*){color:${colorNeutralForeground1}}:host(${brandState})::before,:host(${brandState})::after{background:${colorBrandStroke1}}:host(${brandState}) ::slotted(*){color:${colorBrandForeground1}}:host(${subtleState})::before,:host(${subtleState})::after{background:${colorNeutralStroke3}}:host(${subtleState}) ::slotted(*){color:${colorNeutralForeground3}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
7184
7186
|
:host(${strongState})::before,:host(${strongState})::after,:host(${brandState})::before,:host(${brandState})::after,:host(${subtleState})::before,:host(${subtleState})::after,:host::after,:host::before{background:WindowText;color:WindowText}`));
|
|
7185
7187
|
|
|
7186
|
-
const definition$
|
|
7188
|
+
const definition$r = Divider.compose({
|
|
7187
7189
|
name: `${FluentDesignSystem.prefix}-divider`,
|
|
7188
|
-
template: template$
|
|
7189
|
-
styles: styles$
|
|
7190
|
+
template: template$r,
|
|
7191
|
+
styles: styles$q
|
|
7190
7192
|
});
|
|
7191
7193
|
|
|
7192
|
-
definition$
|
|
7194
|
+
definition$r.define(FluentDesignSystem.registry);
|
|
7193
7195
|
|
|
7194
7196
|
const DrawerPosition = {
|
|
7195
7197
|
start: "start",
|
|
@@ -7207,12 +7209,12 @@ const DrawerType = {
|
|
|
7207
7209
|
inline: "inline"
|
|
7208
7210
|
};
|
|
7209
7211
|
|
|
7210
|
-
var __defProp$
|
|
7211
|
-
var __getOwnPropDesc$
|
|
7212
|
-
var __decorateClass$
|
|
7213
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7212
|
+
var __defProp$l = Object.defineProperty;
|
|
7213
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
7214
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
7215
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
7214
7216
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7215
|
-
if (kind && result) __defProp$
|
|
7217
|
+
if (kind && result) __defProp$l(target, key, result);
|
|
7216
7218
|
return result;
|
|
7217
7219
|
};
|
|
7218
7220
|
class Drawer extends FASTElement {
|
|
@@ -7282,20 +7284,20 @@ class Drawer extends FASTElement {
|
|
|
7282
7284
|
return true;
|
|
7283
7285
|
}
|
|
7284
7286
|
}
|
|
7285
|
-
__decorateClass$
|
|
7286
|
-
__decorateClass$
|
|
7287
|
+
__decorateClass$l([attr], Drawer.prototype, "type", 2);
|
|
7288
|
+
__decorateClass$l([attr({
|
|
7287
7289
|
attribute: "aria-labelledby"
|
|
7288
7290
|
})], Drawer.prototype, "ariaLabelledby", 2);
|
|
7289
|
-
__decorateClass$
|
|
7291
|
+
__decorateClass$l([attr({
|
|
7290
7292
|
attribute: "aria-describedby"
|
|
7291
7293
|
})], Drawer.prototype, "ariaDescribedby", 2);
|
|
7292
|
-
__decorateClass$
|
|
7293
|
-
__decorateClass$
|
|
7294
|
+
__decorateClass$l([attr], Drawer.prototype, "position", 2);
|
|
7295
|
+
__decorateClass$l([attr({
|
|
7294
7296
|
attribute: "size"
|
|
7295
7297
|
})], Drawer.prototype, "size", 2);
|
|
7296
|
-
__decorateClass$
|
|
7298
|
+
__decorateClass$l([observable], Drawer.prototype, "dialog", 2);
|
|
7297
7299
|
|
|
7298
|
-
const styles$
|
|
7300
|
+
const styles$p = css`
|
|
7299
7301
|
${display("block")}
|
|
7300
7302
|
|
|
7301
7303
|
:host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};color:${colorNeutralForeground1};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${colorTransparentStroke};border-inline-start-color:var(--drawer-separator,${colorTransparentStroke});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${shadow64};border:${strokeWidthThin} solid ${colorTransparentStroke};background:${colorNeutralBackground1}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${curveAccelerateMid}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${curveAccelerateMid}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};background:var(--dialog-backdrop,${colorBackgroundOverlay});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${curveLinear}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;
|
|
@@ -7303,34 +7305,34 @@ const styles$o = css`
|
|
|
7303
7305
|
function drawerTemplate() {
|
|
7304
7306
|
return html`<dialog class="dialog" part="dialog" role="${x => x.type === "modal" ? "dialog" : x.role}" aria-modal="${x => x.type === "modal" ? "true" : void 0}" aria-describedby="${x => x.ariaDescribedby}" aria-labelledby="${x => x.ariaLabelledby}" aria-label="${x => x.ariaLabel}" size="${x => x.size}" position="${x => x.position}" type="${x => x.type}" @click="${(x, c) => x.clickHandler(c.event)}" @cancel="${(x, c) => x.hide()}" ${ref("dialog")}><slot></slot></dialog>`;
|
|
7305
7307
|
}
|
|
7306
|
-
const template$
|
|
7308
|
+
const template$q = drawerTemplate();
|
|
7307
7309
|
|
|
7308
|
-
const definition$
|
|
7310
|
+
const definition$q = Drawer.compose({
|
|
7309
7311
|
name: `${FluentDesignSystem.prefix}-drawer`,
|
|
7310
|
-
template: template$
|
|
7311
|
-
styles: styles$
|
|
7312
|
+
template: template$q,
|
|
7313
|
+
styles: styles$p
|
|
7312
7314
|
});
|
|
7313
7315
|
|
|
7314
|
-
definition$
|
|
7316
|
+
definition$q.define(FluentDesignSystem.registry);
|
|
7315
7317
|
|
|
7316
7318
|
class DrawerBody extends FASTElement {}
|
|
7317
7319
|
|
|
7318
|
-
const styles$
|
|
7320
|
+
const styles$o = css`
|
|
7319
7321
|
${display("grid")}
|
|
7320
7322
|
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${spacingHorizontalXL};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${typographySubtitle1Styles}}.footer{display:flex;justify-content:flex-start;gap:${spacingHorizontalM}}`;
|
|
7321
7323
|
|
|
7322
7324
|
function drawerBodyTemplate() {
|
|
7323
7325
|
return html`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`;
|
|
7324
7326
|
}
|
|
7325
|
-
const template$
|
|
7327
|
+
const template$p = drawerBodyTemplate();
|
|
7326
7328
|
|
|
7327
|
-
const definition$
|
|
7329
|
+
const definition$p = DrawerBody.compose({
|
|
7328
7330
|
name: `${FluentDesignSystem.prefix}-drawer-body`,
|
|
7329
|
-
template: template$
|
|
7330
|
-
styles: styles$
|
|
7331
|
+
template: template$p,
|
|
7332
|
+
styles: styles$o
|
|
7331
7333
|
});
|
|
7332
7334
|
|
|
7333
|
-
definition$
|
|
7335
|
+
definition$p.define(FluentDesignSystem.registry);
|
|
7334
7336
|
|
|
7335
7337
|
const LabelPosition = {
|
|
7336
7338
|
above: "above",
|
|
@@ -7351,12 +7353,12 @@ const ValidationFlags = {
|
|
|
7351
7353
|
valid: "valid"
|
|
7352
7354
|
};
|
|
7353
7355
|
|
|
7354
|
-
var __defProp$
|
|
7355
|
-
var __getOwnPropDesc$
|
|
7356
|
-
var __decorateClass$
|
|
7357
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7356
|
+
var __defProp$k = Object.defineProperty;
|
|
7357
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
7358
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
7359
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
7358
7360
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7359
|
-
if (kind && result) __defProp$
|
|
7361
|
+
if (kind && result) __defProp$k(target, key, result);
|
|
7360
7362
|
return result;
|
|
7361
7363
|
};
|
|
7362
7364
|
class BaseField extends FASTElement {
|
|
@@ -7524,26 +7526,26 @@ class BaseField extends FASTElement {
|
|
|
7524
7526
|
}
|
|
7525
7527
|
}
|
|
7526
7528
|
}
|
|
7527
|
-
__decorateClass$
|
|
7528
|
-
__decorateClass$
|
|
7529
|
-
__decorateClass$
|
|
7530
|
-
__decorateClass$
|
|
7529
|
+
__decorateClass$k([observable], BaseField.prototype, "labelSlot", 2);
|
|
7530
|
+
__decorateClass$k([observable], BaseField.prototype, "messageSlot", 2);
|
|
7531
|
+
__decorateClass$k([observable], BaseField.prototype, "slottedInputs", 2);
|
|
7532
|
+
__decorateClass$k([observable], BaseField.prototype, "input", 2);
|
|
7531
7533
|
class Field extends BaseField {
|
|
7532
7534
|
constructor() {
|
|
7533
7535
|
super(...arguments);
|
|
7534
7536
|
this.labelPosition = LabelPosition.above;
|
|
7535
7537
|
}
|
|
7536
7538
|
}
|
|
7537
|
-
__decorateClass$
|
|
7539
|
+
__decorateClass$k([attr({
|
|
7538
7540
|
attribute: "label-position"
|
|
7539
7541
|
})], Field.prototype, "labelPosition", 2);
|
|
7540
7542
|
|
|
7541
|
-
const styles$
|
|
7543
|
+
const styles$n = css`
|
|
7542
7544
|
${display("inline-grid")}
|
|
7543
7545
|
|
|
7544
7546
|
:host{color:${colorNeutralForeground1};align-items:center;gap:0 ${spacingHorizontalM};justify-items:start;position:relative}:has([slot='message']){color:${colorNeutralForeground1};row-gap:${spacingVerticalS}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${spacingHorizontalM}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${spacingVerticalXXS}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${spacingVerticalM}}:host([label-position='below']:not(${hasMessageState})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${spacingVerticalXXS};grid-area:message}:host(${focusVisibleState}:focus-within){border-radius:${borderRadiusMedium};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};grid-area:label;line-height:${lineHeightBase300};user-select:none}:host([size='small']) ::slotted(label){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) ::slotted(label){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${fontWeightSemibold}}:host(${disabledState}){cursor:default}::slotted([flag]){display:none}:host(${badInputState}) ::slotted([flag='${ValidationFlags.badInput}']),:host(${customErrorState}) ::slotted([flag='${ValidationFlags.customError}']),:host(${patternMismatchState}) ::slotted([flag='${ValidationFlags.patternMismatch}']),:host(${rangeOverflowState}) ::slotted([flag='${ValidationFlags.rangeOverflow}']),:host(${rangeUnderflowState}) ::slotted([flag='${ValidationFlags.rangeUnderflow}']),:host(${stepMismatchState}) ::slotted([flag='${ValidationFlags.stepMismatch}']),:host(${tooLongState}) ::slotted([flag='${ValidationFlags.tooLong}']),:host(${tooShortState}) ::slotted([flag='${ValidationFlags.tooShort}']),:host(${typeMismatchState}) ::slotted([flag='${ValidationFlags.typeMismatch}']),:host(${valueMissingState}) ::slotted([flag='${ValidationFlags.valueMissing}']),:host(${validState}) ::slotted([flag='${ValidationFlags.valid}']){display:block}`;
|
|
7545
7547
|
|
|
7546
|
-
const template$
|
|
7548
|
+
const template$o = html`<template @click="${(x, c) => x.clickHandler(c.event)}" @change="${(x, c) => x.changeHandler(c.event)}" @focusin="${(x, c) => x.focusinHandler(c.event)}" @focusout="${(x, c) => x.focusoutHandler(c.event)}" ${children({
|
|
7547
7549
|
property: "slottedInputs",
|
|
7548
7550
|
attributes: true,
|
|
7549
7551
|
attributeFilter: ["disabled", "required", "readonly"],
|
|
@@ -7555,16 +7557,16 @@ const template$n = html`<template @click="${(x, c) => x.clickHandler(c.event)}"
|
|
|
7555
7557
|
filter: elements("[flag]")
|
|
7556
7558
|
})}></slot></template>`;
|
|
7557
7559
|
|
|
7558
|
-
const definition$
|
|
7560
|
+
const definition$o = Field.compose({
|
|
7559
7561
|
name: `${FluentDesignSystem.prefix}-field`,
|
|
7560
|
-
template: template$
|
|
7561
|
-
styles: styles$
|
|
7562
|
+
template: template$o,
|
|
7563
|
+
styles: styles$n,
|
|
7562
7564
|
shadowOptions: {
|
|
7563
7565
|
delegatesFocus: true
|
|
7564
7566
|
}
|
|
7565
7567
|
});
|
|
7566
7568
|
|
|
7567
|
-
definition$
|
|
7569
|
+
definition$o.define(FluentDesignSystem.registry);
|
|
7568
7570
|
|
|
7569
7571
|
const ImageFit = {
|
|
7570
7572
|
none: "none",
|
|
@@ -7578,12 +7580,12 @@ const ImageShape = {
|
|
|
7578
7580
|
square: "square"
|
|
7579
7581
|
};
|
|
7580
7582
|
|
|
7581
|
-
var __defProp$
|
|
7582
|
-
var __getOwnPropDesc$
|
|
7583
|
-
var __decorateClass$
|
|
7584
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7583
|
+
var __defProp$j = Object.defineProperty;
|
|
7584
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
7585
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
7586
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
7585
7587
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7586
|
-
if (kind && result) __defProp$
|
|
7588
|
+
if (kind && result) __defProp$j(target, key, result);
|
|
7587
7589
|
return result;
|
|
7588
7590
|
};
|
|
7589
7591
|
class Image extends FASTElement {
|
|
@@ -7637,30 +7639,30 @@ class Image extends FASTElement {
|
|
|
7637
7639
|
swapStates(this.elementInternals, prev, next, ImageShape);
|
|
7638
7640
|
}
|
|
7639
7641
|
}
|
|
7640
|
-
__decorateClass$
|
|
7642
|
+
__decorateClass$j([attr({
|
|
7641
7643
|
mode: "boolean"
|
|
7642
7644
|
})], Image.prototype, "block", 2);
|
|
7643
|
-
__decorateClass$
|
|
7645
|
+
__decorateClass$j([attr({
|
|
7644
7646
|
mode: "boolean"
|
|
7645
7647
|
})], Image.prototype, "bordered", 2);
|
|
7646
|
-
__decorateClass$
|
|
7648
|
+
__decorateClass$j([attr({
|
|
7647
7649
|
mode: "boolean"
|
|
7648
7650
|
})], Image.prototype, "shadow", 2);
|
|
7649
|
-
__decorateClass$
|
|
7650
|
-
__decorateClass$
|
|
7651
|
+
__decorateClass$j([attr], Image.prototype, "fit", 2);
|
|
7652
|
+
__decorateClass$j([attr], Image.prototype, "shape", 2);
|
|
7651
7653
|
|
|
7652
|
-
const template$
|
|
7654
|
+
const template$n = html`<slot></slot>`;
|
|
7653
7655
|
|
|
7654
|
-
const styles$
|
|
7656
|
+
const styles$m = css`
|
|
7655
7657
|
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${blockState}) ::slotted(img){width:100%;height:auto}:host(${borderedState}) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host(${fitNoneState}) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(${fitCenterState}) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(${fitContainState}) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(${fitCoverState}) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(${shadowState}) ::slotted(img){box-shadow:${shadow4}}:host(${circularState}) ::slotted(img){border-radius:${borderRadiusCircular}}:host(${roundedState}) ::slotted(img){border-radius:${borderRadiusMedium}}`;
|
|
7656
7658
|
|
|
7657
|
-
const definition$
|
|
7659
|
+
const definition$n = Image.compose({
|
|
7658
7660
|
name: `${FluentDesignSystem.prefix}-image`,
|
|
7659
|
-
template: template$
|
|
7660
|
-
styles: styles$
|
|
7661
|
+
template: template$n,
|
|
7662
|
+
styles: styles$m
|
|
7661
7663
|
});
|
|
7662
7664
|
|
|
7663
|
-
definition$
|
|
7665
|
+
definition$n.define(FluentDesignSystem.registry);
|
|
7664
7666
|
|
|
7665
7667
|
const LabelSize = {
|
|
7666
7668
|
small: "small",
|
|
@@ -7672,12 +7674,12 @@ const LabelWeight = {
|
|
|
7672
7674
|
semibold: "semibold"
|
|
7673
7675
|
};
|
|
7674
7676
|
|
|
7675
|
-
var __defProp$
|
|
7676
|
-
var __getOwnPropDesc$
|
|
7677
|
-
var __decorateClass$
|
|
7678
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7677
|
+
var __defProp$i = Object.defineProperty;
|
|
7678
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
7679
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
7680
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
7679
7681
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7680
|
-
if (kind && result) __defProp$
|
|
7682
|
+
if (kind && result) __defProp$i(target, key, result);
|
|
7681
7683
|
return result;
|
|
7682
7684
|
};
|
|
7683
7685
|
class Label extends FASTElement {
|
|
@@ -7717,16 +7719,16 @@ class Label extends FASTElement {
|
|
|
7717
7719
|
toggleState(this.elementInternals, "disabled", next);
|
|
7718
7720
|
}
|
|
7719
7721
|
}
|
|
7720
|
-
__decorateClass$
|
|
7721
|
-
__decorateClass$
|
|
7722
|
-
__decorateClass$
|
|
7722
|
+
__decorateClass$i([attr], Label.prototype, "size", 2);
|
|
7723
|
+
__decorateClass$i([attr], Label.prototype, "weight", 2);
|
|
7724
|
+
__decorateClass$i([attr({
|
|
7723
7725
|
mode: "boolean"
|
|
7724
7726
|
})], Label.prototype, "disabled", 2);
|
|
7725
|
-
__decorateClass$
|
|
7727
|
+
__decorateClass$i([attr({
|
|
7726
7728
|
mode: "boolean"
|
|
7727
7729
|
})], Label.prototype, "required", 2);
|
|
7728
7730
|
|
|
7729
|
-
const styles$
|
|
7731
|
+
const styles$l = css`
|
|
7730
7732
|
${display("inline-flex")}
|
|
7731
7733
|
|
|
7732
7734
|
:host{color:${colorNeutralForeground1};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};user-select:none}.asterisk{color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}:host(${smallState}){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${largeState}){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(:is(${largeState},${semiboldState})){font-weight:${fontWeightSemibold}}:host(${disabledState}),:host(${disabledState}) .asterisk{color:${colorNeutralForegroundDisabled}}`;
|
|
@@ -7734,26 +7736,26 @@ const styles$k = css`
|
|
|
7734
7736
|
function labelTemplate() {
|
|
7735
7737
|
return html`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${x => !x.required}">*</span>`;
|
|
7736
7738
|
}
|
|
7737
|
-
const template$
|
|
7739
|
+
const template$m = labelTemplate();
|
|
7738
7740
|
|
|
7739
|
-
const definition$
|
|
7741
|
+
const definition$m = Label.compose({
|
|
7740
7742
|
name: `${FluentDesignSystem.prefix}-label`,
|
|
7741
|
-
template: template$
|
|
7742
|
-
styles: styles$
|
|
7743
|
+
template: template$m,
|
|
7744
|
+
styles: styles$l
|
|
7743
7745
|
});
|
|
7744
7746
|
|
|
7745
|
-
definition$
|
|
7747
|
+
definition$m.define(FluentDesignSystem.registry);
|
|
7746
7748
|
|
|
7747
7749
|
const LinkAppearance = {
|
|
7748
7750
|
subtle: "subtle"
|
|
7749
7751
|
};
|
|
7750
7752
|
|
|
7751
|
-
var __defProp$
|
|
7752
|
-
var __getOwnPropDesc$
|
|
7753
|
-
var __decorateClass$
|
|
7754
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7753
|
+
var __defProp$h = Object.defineProperty;
|
|
7754
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
7755
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
7756
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
7755
7757
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7756
|
-
if (kind && result) __defProp$
|
|
7758
|
+
if (kind && result) __defProp$h(target, key, result);
|
|
7757
7759
|
return result;
|
|
7758
7760
|
};
|
|
7759
7761
|
class Link extends BaseAnchor {
|
|
@@ -7778,12 +7780,12 @@ class Link extends BaseAnchor {
|
|
|
7778
7780
|
toggleState(this.elementInternals, "inline", next);
|
|
7779
7781
|
}
|
|
7780
7782
|
}
|
|
7781
|
-
__decorateClass$
|
|
7782
|
-
__decorateClass$
|
|
7783
|
+
__decorateClass$h([attr], Link.prototype, "appearance", 2);
|
|
7784
|
+
__decorateClass$h([attr({
|
|
7783
7785
|
mode: "boolean"
|
|
7784
7786
|
})], Link.prototype, "inline", 2);
|
|
7785
7787
|
|
|
7786
|
-
const styles$
|
|
7788
|
+
const styles$k = css`
|
|
7787
7789
|
${display("inline")}
|
|
7788
7790
|
|
|
7789
7791
|
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${strokeWidthThin};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${colorBrandForegroundLinkHover}}:host(:active){color:${colorBrandForegroundLinkPressed}}:host(${subtleState}:hover){color:${colorNeutralForeground2LinkHover}}:host(${subtleState}:active){color:${colorNeutralForeground2LinkPressed}}}:host(${subtleState}){color:${colorNeutralForeground2Link}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(${inlineState}){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -7792,19 +7794,19 @@ const styles$j = css`
|
|
|
7792
7794
|
function anchorTemplate() {
|
|
7793
7795
|
return html`<template tabindex="0" @click="${(x, c) => x.clickHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}"><slot></slot></template>`;
|
|
7794
7796
|
}
|
|
7795
|
-
const template$
|
|
7797
|
+
const template$l = anchorTemplate();
|
|
7796
7798
|
|
|
7797
|
-
const definition$
|
|
7799
|
+
const definition$l = Link.compose({
|
|
7798
7800
|
name: `${FluentDesignSystem.prefix}-link`,
|
|
7799
|
-
template: template$
|
|
7800
|
-
styles: styles$
|
|
7801
|
+
template: template$l,
|
|
7802
|
+
styles: styles$k
|
|
7801
7803
|
});
|
|
7802
7804
|
|
|
7803
|
-
definition$
|
|
7805
|
+
definition$l.define(FluentDesignSystem.registry);
|
|
7804
7806
|
|
|
7805
7807
|
class MenuButton extends Button {}
|
|
7806
7808
|
|
|
7807
|
-
const template$
|
|
7809
|
+
const template$k = buttonTemplate$1({
|
|
7808
7810
|
end: html.partial( /* html */
|
|
7809
7811
|
`
|
|
7810
7812
|
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -7813,13 +7815,13 @@ const template$j = buttonTemplate$1({
|
|
|
7813
7815
|
`)
|
|
7814
7816
|
});
|
|
7815
7817
|
|
|
7816
|
-
const definition$
|
|
7818
|
+
const definition$k = MenuButton.compose({
|
|
7817
7819
|
name: `${FluentDesignSystem.prefix}-menu-button`,
|
|
7818
|
-
template: template$
|
|
7819
|
-
styles: styles$
|
|
7820
|
+
template: template$k,
|
|
7821
|
+
styles: styles$z
|
|
7820
7822
|
});
|
|
7821
7823
|
|
|
7822
|
-
definition$
|
|
7824
|
+
definition$k.define(FluentDesignSystem.registry);
|
|
7823
7825
|
|
|
7824
7826
|
const MenuItemRole = {
|
|
7825
7827
|
/**
|
|
@@ -7841,12 +7843,12 @@ const MenuItemRole = {
|
|
|
7841
7843
|
[MenuItemRole.menuitemradio]: "menuitemradio"
|
|
7842
7844
|
});
|
|
7843
7845
|
|
|
7844
|
-
var __defProp$
|
|
7845
|
-
var __getOwnPropDesc$
|
|
7846
|
-
var __decorateClass$
|
|
7847
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7846
|
+
var __defProp$g = Object.defineProperty;
|
|
7847
|
+
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
7848
|
+
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
7849
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
7848
7850
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7849
|
-
if (kind && result) __defProp$
|
|
7851
|
+
if (kind && result) __defProp$g(target, key, result);
|
|
7850
7852
|
return result;
|
|
7851
7853
|
};
|
|
7852
7854
|
const menuFilter = () => value => value.nodeType === 1 && value.elementInternals.role === "menu";
|
|
@@ -8036,21 +8038,21 @@ class MenuItem extends FASTElement {
|
|
|
8036
8038
|
this.elementInternals.ariaChecked = this.role !== MenuItemRole.menuitem ? `${!!this.checked}` : null;
|
|
8037
8039
|
}
|
|
8038
8040
|
}
|
|
8039
|
-
__decorateClass$
|
|
8041
|
+
__decorateClass$g([attr({
|
|
8040
8042
|
mode: "boolean"
|
|
8041
8043
|
})], MenuItem.prototype, "disabled", 2);
|
|
8042
|
-
__decorateClass$
|
|
8043
|
-
__decorateClass$
|
|
8044
|
+
__decorateClass$g([attr], MenuItem.prototype, "role", 2);
|
|
8045
|
+
__decorateClass$g([attr({
|
|
8044
8046
|
mode: "boolean"
|
|
8045
8047
|
})], MenuItem.prototype, "checked", 2);
|
|
8046
|
-
__decorateClass$
|
|
8048
|
+
__decorateClass$g([attr({
|
|
8047
8049
|
mode: "boolean"
|
|
8048
8050
|
})], MenuItem.prototype, "hidden", 2);
|
|
8049
|
-
__decorateClass$
|
|
8050
|
-
__decorateClass$
|
|
8051
|
+
__decorateClass$g([observable], MenuItem.prototype, "slottedSubmenu", 2);
|
|
8052
|
+
__decorateClass$g([observable], MenuItem.prototype, "submenu", 2);
|
|
8051
8053
|
applyMixins(MenuItem, StartEnd);
|
|
8052
8054
|
|
|
8053
|
-
const styles$
|
|
8055
|
+
const styles$j = css`
|
|
8054
8056
|
${display("grid")}
|
|
8055
8057
|
|
|
8056
8058
|
:host{--indent:0;align-items:center;background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};color:${colorNeutralForeground2};contain:layout;cursor:pointer;flex-shrink:0;font:${fontWeightRegular} ${fontSizeBase300} / ${lineHeightBase300} ${fontFamilyBase};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground2Pressed}}:host(:active) ::slotted([slot='start']){color:${colorCompoundBrandForeground1Pressed}}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}:host(:focus-visible){border-radius:${borderRadiusMedium};outline:2px solid ${colorStrokeFocus2}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${checkedState})) .indicator,:host(:not(${checkedState})) ::slotted([slot='indicator']),:host(:not(${submenuState})) .submenu-glyph,:host(:not(${submenuState})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${colorNeutralForeground3};font:${fontWeightRegular} ${fontSizeBase200} / ${lineHeightBase200} ${fontFamilyBase};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${submenuState}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${submenuState}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -8059,32 +8061,30 @@ const styles$i = css`
|
|
|
8059
8061
|
const Checkmark16Filled = html.partial(`<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>`);
|
|
8060
8062
|
const chevronRight16Filled = html.partial(`<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>`);
|
|
8061
8063
|
function menuItemTemplate(options = {}) {
|
|
8062
|
-
return html`<template @keydown="${(x, c) => x.handleMenuItemKeyDown(c.event)}" @click="${(x, c) => x.handleMenuItemClick(c.event)}" @mouseover="${(x, c) => x.handleMouseOver(c.event)}" @mouseout="${(x, c) => x.handleMouseOut(c.event)}" @toggle="${(x, c) =>
|
|
8063
|
-
// @ts-expect-error - Baseline 2024
|
|
8064
|
-
x.toggleHandler(c.event)}"><slot name="indicator">${staticallyCompose(options.indicator)}</slot>${startSlotTemplate(options)}<div part="content" class="content"><slot></slot></div>${endSlotTemplate(options)}<slot name="submenu-glyph">${staticallyCompose(options.submenuGlyph)}</slot><slot name="submenu" ${slotted({
|
|
8064
|
+
return html`<template @keydown="${(x, c) => x.handleMenuItemKeyDown(c.event)}" @click="${(x, c) => x.handleMenuItemClick(c.event)}" @mouseover="${(x, c) => x.handleMouseOver(c.event)}" @mouseout="${(x, c) => x.handleMouseOut(c.event)}" @toggle="${(x, c) => x.toggleHandler(c.event)}"><slot name="indicator">${staticallyCompose(options.indicator)}</slot>${startSlotTemplate(options)}<div part="content" class="content"><slot></slot></div>${endSlotTemplate(options)}<slot name="submenu-glyph">${staticallyCompose(options.submenuGlyph)}</slot><slot name="submenu" ${slotted({
|
|
8065
8065
|
property: "slottedSubmenu",
|
|
8066
8066
|
filter: menuFilter()
|
|
8067
8067
|
})}></slot></template>`;
|
|
8068
8068
|
}
|
|
8069
|
-
const template$
|
|
8069
|
+
const template$j = menuItemTemplate({
|
|
8070
8070
|
indicator: Checkmark16Filled,
|
|
8071
8071
|
submenuGlyph: chevronRight16Filled
|
|
8072
8072
|
});
|
|
8073
8073
|
|
|
8074
|
-
const definition$
|
|
8074
|
+
const definition$j = MenuItem.compose({
|
|
8075
8075
|
name: `${FluentDesignSystem.prefix}-menu-item`,
|
|
8076
|
-
template: template$
|
|
8077
|
-
styles: styles$
|
|
8076
|
+
template: template$j,
|
|
8077
|
+
styles: styles$j
|
|
8078
8078
|
});
|
|
8079
8079
|
|
|
8080
|
-
definition$
|
|
8080
|
+
definition$j.define(FluentDesignSystem.registry);
|
|
8081
8081
|
|
|
8082
|
-
var __defProp$
|
|
8083
|
-
var __getOwnPropDesc$
|
|
8084
|
-
var __decorateClass$
|
|
8085
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8082
|
+
var __defProp$f = Object.defineProperty;
|
|
8083
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
8084
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
8085
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
8086
8086
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8087
|
-
if (kind && result) __defProp$
|
|
8087
|
+
if (kind && result) __defProp$f(target, key, result);
|
|
8088
8088
|
return result;
|
|
8089
8089
|
};
|
|
8090
8090
|
const _MenuList = class _MenuList extends FASTElement {
|
|
@@ -8300,10 +8300,10 @@ const _MenuList = class _MenuList extends FASTElement {
|
|
|
8300
8300
|
}
|
|
8301
8301
|
};
|
|
8302
8302
|
_MenuList.focusableElementRoles = MenuItemRole;
|
|
8303
|
-
__decorateClass$
|
|
8303
|
+
__decorateClass$f([observable], _MenuList.prototype, "items", 2);
|
|
8304
8304
|
let MenuList = _MenuList;
|
|
8305
8305
|
|
|
8306
|
-
const styles$
|
|
8306
|
+
const styles$i = css`
|
|
8307
8307
|
${display("flex")}
|
|
8308
8308
|
|
|
8309
8309
|
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${colorNeutralBackground1};border:1px solid ${colorTransparentStroke};border-radius:${borderRadiusMedium};box-shadow:${shadow16};padding:4px;row-gap:2px}`;
|
|
@@ -8311,22 +8311,22 @@ const styles$h = css`
|
|
|
8311
8311
|
function menuTemplate$1() {
|
|
8312
8312
|
return html`<template slot="${x => x.slot ? x.slot : x.isNestedMenu() ? "submenu" : void 0}" @keydown="${(x, c) => x.handleMenuKeyDown(c.event)}" @focusout="${(x, c) => x.handleFocusOut(c.event)}"><slot ${slotted("items")}></slot></template>`;
|
|
8313
8313
|
}
|
|
8314
|
-
const template$
|
|
8314
|
+
const template$i = menuTemplate$1();
|
|
8315
8315
|
|
|
8316
|
-
const definition$
|
|
8316
|
+
const definition$i = MenuList.compose({
|
|
8317
8317
|
name: `${FluentDesignSystem.prefix}-menu-list`,
|
|
8318
|
-
template: template$
|
|
8319
|
-
styles: styles$
|
|
8318
|
+
template: template$i,
|
|
8319
|
+
styles: styles$i
|
|
8320
8320
|
});
|
|
8321
8321
|
|
|
8322
|
-
definition$
|
|
8322
|
+
definition$i.define(FluentDesignSystem.registry);
|
|
8323
8323
|
|
|
8324
|
-
var __defProp$
|
|
8325
|
-
var __getOwnPropDesc$
|
|
8326
|
-
var __decorateClass$
|
|
8327
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8324
|
+
var __defProp$e = Object.defineProperty;
|
|
8325
|
+
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
8326
|
+
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
8327
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
8328
8328
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8329
|
-
if (kind && result) __defProp$
|
|
8329
|
+
if (kind && result) __defProp$e(target, key, result);
|
|
8330
8330
|
return result;
|
|
8331
8331
|
};
|
|
8332
8332
|
class Menu extends FASTElement {
|
|
@@ -8606,30 +8606,30 @@ class Menu extends FASTElement {
|
|
|
8606
8606
|
}
|
|
8607
8607
|
}
|
|
8608
8608
|
}
|
|
8609
|
-
__decorateClass$
|
|
8609
|
+
__decorateClass$e([attr({
|
|
8610
8610
|
attribute: "open-on-hover",
|
|
8611
8611
|
mode: "boolean"
|
|
8612
8612
|
})], Menu.prototype, "openOnHover", 2);
|
|
8613
|
-
__decorateClass$
|
|
8613
|
+
__decorateClass$e([attr({
|
|
8614
8614
|
attribute: "open-on-context",
|
|
8615
8615
|
mode: "boolean"
|
|
8616
8616
|
})], Menu.prototype, "openOnContext", 2);
|
|
8617
|
-
__decorateClass$
|
|
8617
|
+
__decorateClass$e([attr({
|
|
8618
8618
|
attribute: "close-on-scroll",
|
|
8619
8619
|
mode: "boolean"
|
|
8620
8620
|
})], Menu.prototype, "closeOnScroll", 2);
|
|
8621
|
-
__decorateClass$
|
|
8621
|
+
__decorateClass$e([attr({
|
|
8622
8622
|
attribute: "persist-on-item-click",
|
|
8623
8623
|
mode: "boolean"
|
|
8624
8624
|
})], Menu.prototype, "persistOnItemClick", 2);
|
|
8625
|
-
__decorateClass$
|
|
8625
|
+
__decorateClass$e([attr({
|
|
8626
8626
|
mode: "boolean"
|
|
8627
8627
|
})], Menu.prototype, "split", 2);
|
|
8628
|
-
__decorateClass$
|
|
8629
|
-
__decorateClass$
|
|
8630
|
-
__decorateClass$
|
|
8628
|
+
__decorateClass$e([observable], Menu.prototype, "slottedMenuList", 2);
|
|
8629
|
+
__decorateClass$e([observable], Menu.prototype, "slottedTriggers", 2);
|
|
8630
|
+
__decorateClass$e([observable], Menu.prototype, "primaryAction", 2);
|
|
8631
8631
|
|
|
8632
|
-
const styles$
|
|
8632
|
+
const styles$h = css`
|
|
8633
8633
|
${display("inline-block")}
|
|
8634
8634
|
|
|
8635
8635
|
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${strokeWidthThin} solid ${colorNeutralStroke1};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${strokeWidthThin} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;
|
|
@@ -8643,15 +8643,15 @@ function menuTemplate() {
|
|
|
8643
8643
|
filter: elements()
|
|
8644
8644
|
})}></slot></template>`;
|
|
8645
8645
|
}
|
|
8646
|
-
const template$
|
|
8646
|
+
const template$h = menuTemplate();
|
|
8647
8647
|
|
|
8648
|
-
const definition$
|
|
8648
|
+
const definition$h = Menu.compose({
|
|
8649
8649
|
name: `${FluentDesignSystem.prefix}-menu`,
|
|
8650
|
-
template: template$
|
|
8651
|
-
styles: styles$
|
|
8650
|
+
template: template$h,
|
|
8651
|
+
styles: styles$h
|
|
8652
8652
|
});
|
|
8653
8653
|
|
|
8654
|
-
definition$
|
|
8654
|
+
definition$h.define(FluentDesignSystem.registry);
|
|
8655
8655
|
|
|
8656
8656
|
const MessageBarLayout = {
|
|
8657
8657
|
multiline: "multiline",
|
|
@@ -8668,12 +8668,12 @@ const MessageBarIntent = {
|
|
|
8668
8668
|
info: "info"
|
|
8669
8669
|
};
|
|
8670
8670
|
|
|
8671
|
-
var __defProp$
|
|
8672
|
-
var __getOwnPropDesc$
|
|
8673
|
-
var __decorateClass$
|
|
8674
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8671
|
+
var __defProp$d = Object.defineProperty;
|
|
8672
|
+
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
8673
|
+
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
8674
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
8675
8675
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8676
|
-
if (kind && result) __defProp$
|
|
8676
|
+
if (kind && result) __defProp$d(target, key, result);
|
|
8677
8677
|
return result;
|
|
8678
8678
|
};
|
|
8679
8679
|
class MessageBar extends FASTElement {
|
|
@@ -8719,29 +8719,29 @@ class MessageBar extends FASTElement {
|
|
|
8719
8719
|
swapStates(this.elementInternals, prev, next, MessageBarIntent);
|
|
8720
8720
|
}
|
|
8721
8721
|
}
|
|
8722
|
-
__decorateClass$
|
|
8723
|
-
__decorateClass$
|
|
8724
|
-
__decorateClass$
|
|
8722
|
+
__decorateClass$d([attr], MessageBar.prototype, "shape", 2);
|
|
8723
|
+
__decorateClass$d([attr], MessageBar.prototype, "layout", 2);
|
|
8724
|
+
__decorateClass$d([attr], MessageBar.prototype, "intent", 2);
|
|
8725
8725
|
|
|
8726
|
-
const styles$
|
|
8726
|
+
const styles$g = css`
|
|
8727
8727
|
:host{display:grid;box-sizing:border-box;font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};width:100%;background:${colorNeutralBackground3};border:1px solid ${colorNeutralStroke1};padding-inline:${spacingHorizontalM};border-radius:${borderRadiusMedium};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${squareState}){border-radius:0}:host(${successState}){background-color:${colorPaletteGreenBackground1};border-color:${colorPaletteGreenBorder1}}:host(${warningState}){background-color:${colorPaletteDarkOrangeBackground1};border-color:${colorPaletteDarkOrangeBorder1}}:host(${errorState}){background-color:${colorPaletteRedBackground1};border-color:${colorPaletteRedBorder1}}:host(${multiLineState}){grid-template-areas:'icon body dismiss'
|
|
8728
8728
|
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${spacingVerticalMNudge};padding-inline:${spacingHorizontalM}}.content{grid-area:body;max-width:520px;padding-block:${spacingVerticalMNudge};padding-inline:0}:host(${multiLineState}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${colorNeutralForeground3};margin-inline-end:${spacingHorizontalS}}:host(${multiLineState}) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${spacingHorizontalS};gap:${spacingHorizontalS}}:host(${multiLineState}) .actions{margin-block-start:${spacingVerticalMNudge};margin-inline-end:0}:host(${multiLineState}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${spacingVerticalS}}::slotted(*){font-size:inherit}`;
|
|
8729
8729
|
|
|
8730
8730
|
function messageBarTemplate() {
|
|
8731
8731
|
return html`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`;
|
|
8732
8732
|
}
|
|
8733
|
-
const template$
|
|
8733
|
+
const template$g = messageBarTemplate();
|
|
8734
8734
|
|
|
8735
|
-
const definition$
|
|
8735
|
+
const definition$g = MessageBar.compose({
|
|
8736
8736
|
name: `${FluentDesignSystem.prefix}-message-bar`,
|
|
8737
|
-
template: template$
|
|
8738
|
-
styles: styles$
|
|
8737
|
+
template: template$g,
|
|
8738
|
+
styles: styles$g,
|
|
8739
8739
|
shadowOptions: {
|
|
8740
8740
|
mode: FluentDesignSystem.shadowRootMode
|
|
8741
8741
|
}
|
|
8742
8742
|
});
|
|
8743
8743
|
|
|
8744
|
-
definition$
|
|
8744
|
+
definition$g.define(FluentDesignSystem.registry);
|
|
8745
8745
|
|
|
8746
8746
|
const ProgressBarThickness = {
|
|
8747
8747
|
medium: "medium",
|
|
@@ -8757,12 +8757,12 @@ const ProgressBarValidationState = {
|
|
|
8757
8757
|
error: "error"
|
|
8758
8758
|
};
|
|
8759
8759
|
|
|
8760
|
-
var __defProp$
|
|
8761
|
-
var __getOwnPropDesc$
|
|
8762
|
-
var __decorateClass$
|
|
8763
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8760
|
+
var __defProp$c = Object.defineProperty;
|
|
8761
|
+
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
8762
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
8763
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
8764
8764
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8765
|
-
if (kind && result) __defProp$
|
|
8765
|
+
if (kind && result) __defProp$c(target, key, result);
|
|
8766
8766
|
return result;
|
|
8767
8767
|
};
|
|
8768
8768
|
class BaseProgressBar extends FASTElement {
|
|
@@ -8820,19 +8820,19 @@ class BaseProgressBar extends FASTElement {
|
|
|
8820
8820
|
return range === 0 ? 0 : Math.fround((value - min) / range * 100);
|
|
8821
8821
|
}
|
|
8822
8822
|
}
|
|
8823
|
-
__decorateClass$
|
|
8823
|
+
__decorateClass$c([attr({
|
|
8824
8824
|
attribute: "validation-state"
|
|
8825
8825
|
})], BaseProgressBar.prototype, "validationState", 2);
|
|
8826
|
-
__decorateClass$
|
|
8826
|
+
__decorateClass$c([attr({
|
|
8827
8827
|
converter: nullableNumberConverter
|
|
8828
8828
|
})], BaseProgressBar.prototype, "value", 2);
|
|
8829
|
-
__decorateClass$
|
|
8829
|
+
__decorateClass$c([attr({
|
|
8830
8830
|
converter: nullableNumberConverter
|
|
8831
8831
|
})], BaseProgressBar.prototype, "min", 2);
|
|
8832
|
-
__decorateClass$
|
|
8832
|
+
__decorateClass$c([attr({
|
|
8833
8833
|
converter: nullableNumberConverter
|
|
8834
8834
|
})], BaseProgressBar.prototype, "max", 2);
|
|
8835
|
-
__decorateClass$
|
|
8835
|
+
__decorateClass$c([volatile], BaseProgressBar.prototype, "percentComplete", 1);
|
|
8836
8836
|
class ProgressBar extends BaseProgressBar {
|
|
8837
8837
|
/**
|
|
8838
8838
|
* Handles changes to thickness attribute custom states
|
|
@@ -8851,10 +8851,10 @@ class ProgressBar extends BaseProgressBar {
|
|
|
8851
8851
|
swapStates(this.elementInternals, prev, next, ProgressBarShape);
|
|
8852
8852
|
}
|
|
8853
8853
|
}
|
|
8854
|
-
__decorateClass$
|
|
8855
|
-
__decorateClass$
|
|
8854
|
+
__decorateClass$c([attr], ProgressBar.prototype, "thickness", 2);
|
|
8855
|
+
__decorateClass$c([attr], ProgressBar.prototype, "shape", 2);
|
|
8856
8856
|
|
|
8857
|
-
const styles$
|
|
8857
|
+
const styles$f = css`
|
|
8858
8858
|
${display("block")}
|
|
8859
8859
|
|
|
8860
8860
|
:host{width:100%;height:2px;overflow-x:hidden;background-color:${colorNeutralBackground6};border-radius:${borderRadiusMedium};contain:content}:host(${largeState}){height:4px}:host(${squareState}){border-radius:${borderRadiusNone}}.indicator{background-color:${colorCompoundBrandBackground};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
|
|
@@ -8865,15 +8865,15 @@ const styles$e = css`
|
|
|
8865
8865
|
function progressTemplate() {
|
|
8866
8866
|
return html`<div class="indicator" part="indicator" style="${x => typeof x.value === "number" ? `width: ${x.percentComplete}%` : void 0}"></div>`;
|
|
8867
8867
|
}
|
|
8868
|
-
const template$
|
|
8868
|
+
const template$f = progressTemplate();
|
|
8869
8869
|
|
|
8870
|
-
const definition$
|
|
8870
|
+
const definition$f = ProgressBar.compose({
|
|
8871
8871
|
name: `${FluentDesignSystem.prefix}-progress-bar`,
|
|
8872
|
-
template: template$
|
|
8873
|
-
styles: styles$
|
|
8872
|
+
template: template$f,
|
|
8873
|
+
styles: styles$f
|
|
8874
8874
|
});
|
|
8875
8875
|
|
|
8876
|
-
definition$
|
|
8876
|
+
definition$f.define(FluentDesignSystem.registry);
|
|
8877
8877
|
|
|
8878
8878
|
class Radio extends BaseCheckbox {
|
|
8879
8879
|
connectedCallback() {
|
|
@@ -8959,12 +8959,12 @@ function getRootActiveElement(element) {
|
|
|
8959
8959
|
|
|
8960
8960
|
const RadioGroupOrientation = Orientation;
|
|
8961
8961
|
|
|
8962
|
-
var __defProp$
|
|
8963
|
-
var __getOwnPropDesc$
|
|
8964
|
-
var __decorateClass$
|
|
8965
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8962
|
+
var __defProp$b = Object.defineProperty;
|
|
8963
|
+
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
8964
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
8965
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
8966
8966
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8967
|
-
if (kind && result) __defProp$
|
|
8967
|
+
if (kind && result) __defProp$b(target, key, result);
|
|
8968
8968
|
return result;
|
|
8969
8969
|
};
|
|
8970
8970
|
class RadioGroup extends FASTElement {
|
|
@@ -9387,23 +9387,23 @@ class RadioGroup extends FASTElement {
|
|
|
9387
9387
|
* @public
|
|
9388
9388
|
*/
|
|
9389
9389
|
RadioGroup.formAssociated = true;
|
|
9390
|
-
__decorateClass$
|
|
9391
|
-
__decorateClass$
|
|
9390
|
+
__decorateClass$b([observable], RadioGroup.prototype, "checkedIndex", 2);
|
|
9391
|
+
__decorateClass$b([attr({
|
|
9392
9392
|
attribute: "disabled",
|
|
9393
9393
|
mode: "boolean"
|
|
9394
9394
|
})], RadioGroup.prototype, "disabled", 2);
|
|
9395
|
-
__decorateClass$
|
|
9395
|
+
__decorateClass$b([attr({
|
|
9396
9396
|
attribute: "value",
|
|
9397
9397
|
mode: "fromView"
|
|
9398
9398
|
})], RadioGroup.prototype, "initialValue", 2);
|
|
9399
|
-
__decorateClass$
|
|
9400
|
-
__decorateClass$
|
|
9401
|
-
__decorateClass$
|
|
9402
|
-
__decorateClass$
|
|
9399
|
+
__decorateClass$b([attr], RadioGroup.prototype, "name", 2);
|
|
9400
|
+
__decorateClass$b([attr], RadioGroup.prototype, "orientation", 2);
|
|
9401
|
+
__decorateClass$b([observable], RadioGroup.prototype, "radios", 2);
|
|
9402
|
+
__decorateClass$b([attr({
|
|
9403
9403
|
mode: "boolean"
|
|
9404
9404
|
})], RadioGroup.prototype, "required", 2);
|
|
9405
9405
|
|
|
9406
|
-
const styles$
|
|
9406
|
+
const styles$e = css`
|
|
9407
9407
|
${display("flex")}
|
|
9408
9408
|
|
|
9409
9409
|
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${spacingVerticalL}}:host(${disabledState}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${colorNeutralForeground3}}::slotted(:hover){color:${colorNeutralForeground2}}::slotted(:active){color:${colorNeutralForeground1}}::slotted(${disabledState}){color:${colorNeutralForegroundDisabled}}::slotted(${checkedState}){color:${colorNeutralForeground1}}`;
|
|
@@ -9411,17 +9411,17 @@ const styles$d = css`
|
|
|
9411
9411
|
function radioGroupTemplate() {
|
|
9412
9412
|
return html`<template @disabled="${(x, c) => x.disabledRadioHandler(c.event)}" @change="${(x, c) => x.changeHandler(c.event)}" @click="${(x, c) => x.clickHandler(c.event)}" @focusin="${(x, c) => x.focusinHandler(c.event)}" @focusout="${(x, c) => x.focusoutHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}"><slot @slotchange="${(x, c) => x.slotchangeHandler(c.event)}"></slot></template>`;
|
|
9413
9413
|
}
|
|
9414
|
-
const template$
|
|
9414
|
+
const template$e = radioGroupTemplate();
|
|
9415
9415
|
|
|
9416
|
-
const definition$
|
|
9416
|
+
const definition$e = RadioGroup.compose({
|
|
9417
9417
|
name: `${FluentDesignSystem.prefix}-radio-group`,
|
|
9418
|
-
template: template$
|
|
9419
|
-
styles: styles$
|
|
9418
|
+
template: template$e,
|
|
9419
|
+
styles: styles$e
|
|
9420
9420
|
});
|
|
9421
9421
|
|
|
9422
|
-
definition$
|
|
9422
|
+
definition$e.define(FluentDesignSystem.registry);
|
|
9423
9423
|
|
|
9424
|
-
const styles$
|
|
9424
|
+
const styles$d = css`
|
|
9425
9425
|
${display("inline-flex")}
|
|
9426
9426
|
|
|
9427
9427
|
:host{--size:16px;aspect-ratio:1;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${borderRadiusCircular};color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(${checkedState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}) .checked-indicator{background-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover) .checked-indicator{background-color:${colorCompoundBrandBackgroundHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:active) .checked-indicator{background-color:${colorCompoundBrandBackgroundPressed}}:host(:focus-visible){outline:none}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host(${checkedState}${disabledState}) .checked-indicator{background-color:${colorNeutralStrokeDisabled}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -9434,17 +9434,17 @@ const checkedIndicator = html.partial( /* html */
|
|
|
9434
9434
|
function radioTemplate(options = {}) {
|
|
9435
9435
|
return html`<template @click="${(x, c) => x.clickHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}" @keyup="${(x, c) => x.keyupHandler(c.event)}"><slot name="checked-indicator">${staticallyCompose(options.checkedIndicator)}</slot></template>`;
|
|
9436
9436
|
}
|
|
9437
|
-
const template$
|
|
9437
|
+
const template$d = radioTemplate({
|
|
9438
9438
|
checkedIndicator
|
|
9439
9439
|
});
|
|
9440
9440
|
|
|
9441
|
-
const definition$
|
|
9441
|
+
const definition$d = Radio.compose({
|
|
9442
9442
|
name: `${FluentDesignSystem.prefix}-radio`,
|
|
9443
|
-
template: template$
|
|
9444
|
-
styles: styles$
|
|
9443
|
+
template: template$d,
|
|
9444
|
+
styles: styles$d
|
|
9445
9445
|
});
|
|
9446
9446
|
|
|
9447
|
-
definition$
|
|
9447
|
+
definition$d.define(FluentDesignSystem.registry);
|
|
9448
9448
|
|
|
9449
9449
|
const RatingDisplayColor = {
|
|
9450
9450
|
neutral: "neutral",
|
|
@@ -9457,12 +9457,12 @@ const RatingDisplaySize = {
|
|
|
9457
9457
|
large: "large"
|
|
9458
9458
|
};
|
|
9459
9459
|
|
|
9460
|
-
var __defProp$
|
|
9461
|
-
var __getOwnPropDesc$
|
|
9462
|
-
var __decorateClass$
|
|
9463
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9460
|
+
var __defProp$a = Object.defineProperty;
|
|
9461
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
9462
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
9463
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
9464
9464
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9465
|
-
if (kind && result) __defProp$
|
|
9465
|
+
if (kind && result) __defProp$a(target, key, result);
|
|
9466
9466
|
return result;
|
|
9467
9467
|
};
|
|
9468
9468
|
class BaseRatingDisplay extends FASTElement {
|
|
@@ -9528,20 +9528,20 @@ class BaseRatingDisplay extends FASTElement {
|
|
|
9528
9528
|
return htmlString;
|
|
9529
9529
|
}
|
|
9530
9530
|
}
|
|
9531
|
-
__decorateClass$
|
|
9531
|
+
__decorateClass$a([attr({
|
|
9532
9532
|
converter: nullableNumberConverter
|
|
9533
9533
|
})], BaseRatingDisplay.prototype, "count", 2);
|
|
9534
|
-
__decorateClass$
|
|
9534
|
+
__decorateClass$a([attr({
|
|
9535
9535
|
attribute: "icon-view-box"
|
|
9536
9536
|
})], BaseRatingDisplay.prototype, "iconViewBox", 2);
|
|
9537
|
-
__decorateClass$
|
|
9537
|
+
__decorateClass$a([attr({
|
|
9538
9538
|
converter: nullableNumberConverter
|
|
9539
9539
|
})], BaseRatingDisplay.prototype, "max", 2);
|
|
9540
|
-
__decorateClass$
|
|
9540
|
+
__decorateClass$a([attr({
|
|
9541
9541
|
converter: nullableNumberConverter
|
|
9542
9542
|
})], BaseRatingDisplay.prototype, "value", 2);
|
|
9543
|
-
__decorateClass$
|
|
9544
|
-
__decorateClass$
|
|
9543
|
+
__decorateClass$a([observable], BaseRatingDisplay.prototype, "slottedIcon", 2);
|
|
9544
|
+
__decorateClass$a([observable], BaseRatingDisplay.prototype, "customIcon", 2);
|
|
9545
9545
|
class RatingDisplay extends BaseRatingDisplay {
|
|
9546
9546
|
constructor() {
|
|
9547
9547
|
super(...arguments);
|
|
@@ -9582,13 +9582,13 @@ class RatingDisplay extends BaseRatingDisplay {
|
|
|
9582
9582
|
return (this.compact ? 1 : this.max ?? 5) * 2;
|
|
9583
9583
|
}
|
|
9584
9584
|
}
|
|
9585
|
-
__decorateClass$
|
|
9586
|
-
__decorateClass$
|
|
9587
|
-
__decorateClass$
|
|
9585
|
+
__decorateClass$a([attr], RatingDisplay.prototype, "color", 2);
|
|
9586
|
+
__decorateClass$a([attr], RatingDisplay.prototype, "size", 2);
|
|
9587
|
+
__decorateClass$a([attr({
|
|
9588
9588
|
mode: "boolean"
|
|
9589
9589
|
})], RatingDisplay.prototype, "compact", 2);
|
|
9590
9590
|
|
|
9591
|
-
const styles$
|
|
9591
|
+
const styles$c = css`
|
|
9592
9592
|
${display("inline-flex")}
|
|
9593
9593
|
|
|
9594
9594
|
:host{--icon-size:16px;--icon-color-filled:${colorPaletteMarigoldBackground3};--icon-color-empty:${colorPaletteMarigoldBackground2};align-items:center;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};contain:layout style;user-select:none}:host(${smallState}){--icon-size:12px}:host(${largeState}){--icon-size:20px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${spacingHorizontalXXS}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${neutralState}) svg{--icon-color-filled:${colorNeutralForeground1}}:host(${brandState}) svg{--icon-color-filled:${colorBrandBackground}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host(${neutralState}:is([value^='-'],[value='0'])) svg,:host(${neutralState}:not([value])) svg,:host(${neutralState}) svg[selected] ~ svg{--icon-color-empty:${colorNeutralBackground1Pressed}}:host(${brandState}:is([value^='-'],[value='0'])) svg,:host(${brandState}:not([value])) svg,:host(${brandState}) svg[selected] ~ svg{--icon-color-empty:${colorBrandStroke2}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${spacingHorizontalXS};font-weight:${fontWeightSemibold}}:host(${smallState}) .value-label,:host(${smallState}) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalXXS}}:host(${largeState}) .value-label,:host(${largeState}) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalSNudge}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${spacingHorizontalXS}}:host(${smallState}) .count-label::before,:host(${smallState}) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalXXS}}:host(${largeState}) .count-label::before,:host(${largeState}) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalSNudge}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -9601,15 +9601,15 @@ function ratingDisplayTemplate() {
|
|
|
9601
9601
|
filter: elements("svg")
|
|
9602
9602
|
})}>${star}</slot><slot name="value"><span class="value-label" aria-hidden="true">${x => x.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${x => x.formattedCount}</span></slot>`;
|
|
9603
9603
|
}
|
|
9604
|
-
const template$
|
|
9604
|
+
const template$c = ratingDisplayTemplate();
|
|
9605
9605
|
|
|
9606
|
-
const definition$
|
|
9606
|
+
const definition$c = RatingDisplay.compose({
|
|
9607
9607
|
name: `${FluentDesignSystem.prefix}-rating-display`,
|
|
9608
|
-
template: template$
|
|
9609
|
-
styles: styles$
|
|
9608
|
+
template: template$c,
|
|
9609
|
+
styles: styles$c
|
|
9610
9610
|
});
|
|
9611
9611
|
|
|
9612
|
-
definition$
|
|
9612
|
+
definition$c.define(FluentDesignSystem.registry);
|
|
9613
9613
|
|
|
9614
9614
|
const SliderSize = {
|
|
9615
9615
|
small: "small",
|
|
@@ -9628,12 +9628,12 @@ function convertPixelToPercent(pixelPos, minPosition, maxPosition, direction) {
|
|
|
9628
9628
|
return pct;
|
|
9629
9629
|
}
|
|
9630
9630
|
|
|
9631
|
-
var __defProp$
|
|
9632
|
-
var __getOwnPropDesc$
|
|
9633
|
-
var __decorateClass$
|
|
9634
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9631
|
+
var __defProp$9 = Object.defineProperty;
|
|
9632
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
9633
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
9634
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
9635
9635
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9636
|
-
if (kind && result) __defProp$
|
|
9636
|
+
if (kind && result) __defProp$9(target, key, result);
|
|
9637
9637
|
return result;
|
|
9638
9638
|
};
|
|
9639
9639
|
class Slider extends FASTElement {
|
|
@@ -10162,36 +10162,36 @@ class Slider extends FASTElement {
|
|
|
10162
10162
|
* @public
|
|
10163
10163
|
*/
|
|
10164
10164
|
Slider.formAssociated = true;
|
|
10165
|
-
__decorateClass$
|
|
10166
|
-
__decorateClass$
|
|
10165
|
+
__decorateClass$9([attr], Slider.prototype, "size", 2);
|
|
10166
|
+
__decorateClass$9([attr({
|
|
10167
10167
|
attribute: "value",
|
|
10168
10168
|
mode: "fromView"
|
|
10169
10169
|
})], Slider.prototype, "initialValue", 2);
|
|
10170
|
-
__decorateClass$
|
|
10171
|
-
__decorateClass$
|
|
10172
|
-
__decorateClass$
|
|
10173
|
-
__decorateClass$
|
|
10174
|
-
__decorateClass$
|
|
10175
|
-
__decorateClass$
|
|
10176
|
-
__decorateClass$
|
|
10177
|
-
__decorateClass$
|
|
10178
|
-
__decorateClass$
|
|
10179
|
-
__decorateClass$
|
|
10170
|
+
__decorateClass$9([observable], Slider.prototype, "direction", 2);
|
|
10171
|
+
__decorateClass$9([observable], Slider.prototype, "isDragging", 2);
|
|
10172
|
+
__decorateClass$9([observable], Slider.prototype, "position", 2);
|
|
10173
|
+
__decorateClass$9([observable], Slider.prototype, "trackWidth", 2);
|
|
10174
|
+
__decorateClass$9([observable], Slider.prototype, "trackMinWidth", 2);
|
|
10175
|
+
__decorateClass$9([observable], Slider.prototype, "trackHeight", 2);
|
|
10176
|
+
__decorateClass$9([observable], Slider.prototype, "trackLeft", 2);
|
|
10177
|
+
__decorateClass$9([observable], Slider.prototype, "trackMinHeight", 2);
|
|
10178
|
+
__decorateClass$9([observable], Slider.prototype, "valueTextFormatter", 2);
|
|
10179
|
+
__decorateClass$9([attr({
|
|
10180
10180
|
mode: "boolean"
|
|
10181
10181
|
})], Slider.prototype, "disabled", 2);
|
|
10182
|
-
__decorateClass$
|
|
10182
|
+
__decorateClass$9([attr({
|
|
10183
10183
|
converter: numberLikeStringConverter
|
|
10184
10184
|
})], Slider.prototype, "min", 2);
|
|
10185
|
-
__decorateClass$
|
|
10185
|
+
__decorateClass$9([attr({
|
|
10186
10186
|
converter: numberLikeStringConverter
|
|
10187
10187
|
})], Slider.prototype, "max", 2);
|
|
10188
|
-
__decorateClass$
|
|
10188
|
+
__decorateClass$9([attr({
|
|
10189
10189
|
converter: numberLikeStringConverter
|
|
10190
10190
|
})], Slider.prototype, "step", 2);
|
|
10191
|
-
__decorateClass$
|
|
10192
|
-
__decorateClass$
|
|
10191
|
+
__decorateClass$9([attr], Slider.prototype, "orientation", 2);
|
|
10192
|
+
__decorateClass$9([attr], Slider.prototype, "mode", 2);
|
|
10193
10193
|
|
|
10194
|
-
const styles$
|
|
10194
|
+
const styles$b = css`
|
|
10195
10195
|
${display("inline-grid")}
|
|
10196
10196
|
|
|
10197
10197
|
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${colorCompoundBrandBackground};--track-color:${colorNeutralStrokeAccessible};--slider-direction:90deg;--border-radius:${borderRadiusMedium};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${colorCompoundBrandBackgroundHover}}:host(:active){--rail-color:${colorCompoundBrandBackgroundPressed}}:host(:disabled){--rail-color:${colorNeutralForegroundDisabled};--track-color:${colorNeutralBackgroundDisabled}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${smallState}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${borderRadiusSmall}}:host(${verticalState}){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
|
|
@@ -10204,17 +10204,17 @@ const styles$a = css`
|
|
|
10204
10204
|
function sliderTemplate(options = {}) {
|
|
10205
10205
|
return html`<template tabindex="${x => x.disabled ? null : 0}" @pointerdown="${(x, c) => x.handlePointerDown(c.event)}"><div ${ref("track")} part="track-container" class="track" style="${x => x.position}"></div><div ${ref("thumb")} part="thumb-container" class="thumb-container" style="${x => x.position}" @pointerdown="${(x, c) => x.handleThumbPointerDown(c.event)}"><slot name="thumb">${staticallyCompose(options.thumb)}</slot></div></template>`;
|
|
10206
10206
|
}
|
|
10207
|
-
const template$
|
|
10207
|
+
const template$b = sliderTemplate({
|
|
10208
10208
|
thumb: `<div class="thumb"></div>`
|
|
10209
10209
|
});
|
|
10210
10210
|
|
|
10211
|
-
const definition$
|
|
10211
|
+
const definition$b = Slider.compose({
|
|
10212
10212
|
name: `${FluentDesignSystem.prefix}-slider`,
|
|
10213
|
-
template: template$
|
|
10214
|
-
styles: styles$
|
|
10213
|
+
template: template$b,
|
|
10214
|
+
styles: styles$b
|
|
10215
10215
|
});
|
|
10216
10216
|
|
|
10217
|
-
definition$
|
|
10217
|
+
definition$b.define(FluentDesignSystem.registry);
|
|
10218
10218
|
|
|
10219
10219
|
const SpinnerAppearance = {
|
|
10220
10220
|
primary: "primary",
|
|
@@ -10230,12 +10230,12 @@ const SpinnerSize = {
|
|
|
10230
10230
|
huge: "huge"
|
|
10231
10231
|
};
|
|
10232
10232
|
|
|
10233
|
-
var __defProp$
|
|
10234
|
-
var __getOwnPropDesc$
|
|
10235
|
-
var __decorateClass$
|
|
10236
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10233
|
+
var __defProp$8 = Object.defineProperty;
|
|
10234
|
+
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
10235
|
+
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
10236
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
10237
10237
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10238
|
-
if (kind && result) __defProp$
|
|
10238
|
+
if (kind && result) __defProp$8(target, key, result);
|
|
10239
10239
|
return result;
|
|
10240
10240
|
};
|
|
10241
10241
|
class BaseSpinner extends FASTElement {
|
|
@@ -10268,24 +10268,24 @@ class Spinner extends BaseSpinner {
|
|
|
10268
10268
|
swapStates(this.elementInternals, prev, next, SpinnerAppearance);
|
|
10269
10269
|
}
|
|
10270
10270
|
}
|
|
10271
|
-
__decorateClass$
|
|
10272
|
-
__decorateClass$
|
|
10271
|
+
__decorateClass$8([attr], Spinner.prototype, "size", 2);
|
|
10272
|
+
__decorateClass$8([attr], Spinner.prototype, "appearance", 2);
|
|
10273
10273
|
|
|
10274
|
-
const styles$
|
|
10274
|
+
const styles$a = css`
|
|
10275
10275
|
${display("inline-flex")}
|
|
10276
10276
|
|
|
10277
10277
|
:host{--duration:1.5s;--indicatorSize:${strokeWidthThicker};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${tinyState}){--indicatorSize:${strokeWidthThick};--size:20px}:host(${extraSmallState}){--indicatorSize:${strokeWidthThick};--size:24px}:host(${smallState}){--indicatorSize:${strokeWidthThick};--size:28px}:host(${largeState}){--indicatorSize:${strokeWidthThicker};--size:36px}:host(${extraLargeState}){--indicatorSize:${strokeWidthThicker};--size:40px}:host(${hugeState}){--indicatorSize:${strokeWidthThickest};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${curveEasyEase}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${colorBrandStroke2};border-radius:50%}:host(${invertedState}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;inset-inline-end:50%}.end{overflow:hidden;inset-inline-start:50%}.indicator{color:${colorBrandStroke1};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-inline-end-color:currentcolor}:host(${invertedState}) .indicator{color:${colorNeutralStrokeOnBrand2}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
10278
10278
|
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-inline-end-color:Highlight}`));
|
|
10279
10279
|
|
|
10280
|
-
const template$
|
|
10280
|
+
const template$a = html`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`;
|
|
10281
10281
|
|
|
10282
|
-
const definition$
|
|
10282
|
+
const definition$a = Spinner.compose({
|
|
10283
10283
|
name: `${FluentDesignSystem.prefix}-spinner`,
|
|
10284
|
-
template: template$
|
|
10285
|
-
styles: styles$
|
|
10284
|
+
template: template$a,
|
|
10285
|
+
styles: styles$a
|
|
10286
10286
|
});
|
|
10287
10287
|
|
|
10288
|
-
definition$
|
|
10288
|
+
definition$a.define(FluentDesignSystem.registry);
|
|
10289
10289
|
|
|
10290
10290
|
class Switch extends BaseCheckbox {
|
|
10291
10291
|
constructor() {
|
|
@@ -10297,50 +10297,50 @@ class Switch extends BaseCheckbox {
|
|
|
10297
10297
|
function switchTemplate(options = {}) {
|
|
10298
10298
|
return html`<template tabindex="${x => !x.disabled ? 0 : void 0}" @click="${(x, c) => x.clickHandler(c.event)}" @input="${(x, c) => x.inputHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}" @keyup="${(x, c) => x.keyupHandler(c.event)}"><slot name="switch">${staticallyCompose(options.switch)}</slot></template>`;
|
|
10299
10299
|
}
|
|
10300
|
-
const template$
|
|
10300
|
+
const template$9 = switchTemplate({
|
|
10301
10301
|
switch: `<span class="checked-indicator" part="checked-indicator"></span>`
|
|
10302
10302
|
});
|
|
10303
10303
|
|
|
10304
|
-
const styles$
|
|
10304
|
+
const styles$9 = css`
|
|
10305
10305
|
${display("inline-flex")}
|
|
10306
10306
|
|
|
10307
10307
|
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${spacingHorizontalXXS};width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};cursor:pointer}:host(:hover){background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(:disabled),:host([readonly]){border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host(${checkedState}){background:${colorCompoundBrandBackground};border-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover){background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host(${checkedState}:active){background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host(${checkedState}:disabled){background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:margin-inline-start}:host(${checkedState}) .checked-indicator{background-color:${colorNeutralForegroundInverted};margin-inline-start:calc(100% - 14px)}:host(${checkedState}:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host(${checkedState}:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(${checkedState}:disabled) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
10308
10308
|
:host{border-color:InactiveBorder}:host(${checkedState}),:host(${checkedState}:active),:host(${checkedState}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${checkedState}) .checked-indicator,:host(${checkedState}:hover) .checked-indicator,:host(${checkedState}:active) .checked-indicator{background-color:ButtonFace}`));
|
|
10309
10309
|
|
|
10310
|
-
const definition$
|
|
10310
|
+
const definition$9 = Switch.compose({
|
|
10311
10311
|
name: `${FluentDesignSystem.prefix}-switch`,
|
|
10312
|
-
template: template$
|
|
10313
|
-
styles: styles$
|
|
10312
|
+
template: template$9,
|
|
10313
|
+
styles: styles$9
|
|
10314
10314
|
});
|
|
10315
10315
|
|
|
10316
|
-
definition$
|
|
10316
|
+
definition$9.define(FluentDesignSystem.registry);
|
|
10317
10317
|
|
|
10318
10318
|
class TabPanel extends FASTElement {}
|
|
10319
10319
|
|
|
10320
10320
|
function tabPanelTemplate() {
|
|
10321
10321
|
return html`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`;
|
|
10322
10322
|
}
|
|
10323
|
-
const template$
|
|
10323
|
+
const template$8 = tabPanelTemplate();
|
|
10324
10324
|
|
|
10325
|
-
const styles$
|
|
10325
|
+
const styles$8 = css`
|
|
10326
10326
|
${display("block")}
|
|
10327
10327
|
|
|
10328
10328
|
:host{box-sizing:border-box;padding:${spacingHorizontalM} ${spacingHorizontalMNudge}}`;
|
|
10329
10329
|
|
|
10330
|
-
const definition$
|
|
10330
|
+
const definition$8 = TabPanel.compose({
|
|
10331
10331
|
name: `${FluentDesignSystem.prefix}-tab-panel`,
|
|
10332
|
-
template: template$
|
|
10333
|
-
styles: styles$
|
|
10332
|
+
template: template$8,
|
|
10333
|
+
styles: styles$8
|
|
10334
10334
|
});
|
|
10335
10335
|
|
|
10336
|
-
definition$
|
|
10336
|
+
definition$8.define(FluentDesignSystem.registry);
|
|
10337
10337
|
|
|
10338
|
-
var __defProp$
|
|
10339
|
-
var __getOwnPropDesc$
|
|
10340
|
-
var __decorateClass$
|
|
10341
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10338
|
+
var __defProp$7 = Object.defineProperty;
|
|
10339
|
+
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
10340
|
+
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
10341
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
10342
10342
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10343
|
-
if (kind && result) __defProp$
|
|
10343
|
+
if (kind && result) __defProp$7(target, key, result);
|
|
10344
10344
|
return result;
|
|
10345
10345
|
};
|
|
10346
10346
|
class Tab extends FASTElement {
|
|
@@ -10354,7 +10354,7 @@ class Tab extends FASTElement {
|
|
|
10354
10354
|
this.$fastController.addStyles(this.styles);
|
|
10355
10355
|
}
|
|
10356
10356
|
}
|
|
10357
|
-
__decorateClass$
|
|
10357
|
+
__decorateClass$7([attr({
|
|
10358
10358
|
mode: "boolean"
|
|
10359
10359
|
})], Tab.prototype, "disabled", 2);
|
|
10360
10360
|
applyMixins(Tab, StartEnd);
|
|
@@ -10362,21 +10362,21 @@ applyMixins(Tab, StartEnd);
|
|
|
10362
10362
|
function tabTemplate(options = {}) {
|
|
10363
10363
|
return html`<template slot="tab" role="tab" aria-disabled="${x => x.disabled}">${startSlotTemplate(options)}<span class="tab-content"><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
10364
10364
|
}
|
|
10365
|
-
const template$
|
|
10365
|
+
const template$7 = tabTemplate({});
|
|
10366
10366
|
|
|
10367
|
-
const styles$
|
|
10367
|
+
const styles$7 = css`
|
|
10368
10368
|
${display("inline-flex")}
|
|
10369
10369
|
|
|
10370
10370
|
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-size:${fontSizeBase300};color:${colorNeutralForeground2};fill:currentcolor;grid-row:1;padding:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${colorNeutralForeground1};font-weight:${fontWeightSemibold}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${lineHeightBase300};font-weight:${fontWeightSemibold}}:host([aria-selected='true'])::after{background-color:${colorCompoundBrandStroke};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${colorNeutralStroke1Hover};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${colorNeutralForegroundDisabled}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${colorNeutralForegroundDisabled};color:${colorNeutralForegroundDisabled}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${borderRadiusSmall};box-shadow:0 0 0 3px ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
10371
10371
|
:host([aria-selected='true'])::after{background-color:Highlight}`));
|
|
10372
10372
|
|
|
10373
|
-
const definition$
|
|
10373
|
+
const definition$7 = Tab.compose({
|
|
10374
10374
|
name: `${FluentDesignSystem.prefix}-tab`,
|
|
10375
|
-
template: template$
|
|
10376
|
-
styles: styles$
|
|
10375
|
+
template: template$7,
|
|
10376
|
+
styles: styles$7
|
|
10377
10377
|
});
|
|
10378
10378
|
|
|
10379
|
-
definition$
|
|
10379
|
+
definition$7.define(FluentDesignSystem.registry);
|
|
10380
10380
|
|
|
10381
10381
|
const TabsAppearance = {
|
|
10382
10382
|
subtle: "subtle",
|
|
@@ -10384,12 +10384,12 @@ const TabsAppearance = {
|
|
|
10384
10384
|
};
|
|
10385
10385
|
const TabsOrientation = Orientation;
|
|
10386
10386
|
|
|
10387
|
-
var __defProp$
|
|
10388
|
-
var __getOwnPropDesc$
|
|
10389
|
-
var __decorateClass$
|
|
10390
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10387
|
+
var __defProp$6 = Object.defineProperty;
|
|
10388
|
+
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
10389
|
+
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
10390
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
10391
10391
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10392
|
-
if (kind && result) __defProp$
|
|
10392
|
+
if (kind && result) __defProp$6(target, key, result);
|
|
10393
10393
|
return result;
|
|
10394
10394
|
};
|
|
10395
10395
|
class BaseTabs extends FASTElement {
|
|
@@ -10633,10 +10633,10 @@ class BaseTabs extends FASTElement {
|
|
|
10633
10633
|
this.activeTabIndex = this.getActiveIndex();
|
|
10634
10634
|
}
|
|
10635
10635
|
}
|
|
10636
|
-
__decorateClass$
|
|
10637
|
-
__decorateClass$
|
|
10638
|
-
__decorateClass$
|
|
10639
|
-
__decorateClass$
|
|
10636
|
+
__decorateClass$6([attr], BaseTabs.prototype, "orientation", 2);
|
|
10637
|
+
__decorateClass$6([attr], BaseTabs.prototype, "activeid", 2);
|
|
10638
|
+
__decorateClass$6([observable], BaseTabs.prototype, "tabs", 2);
|
|
10639
|
+
__decorateClass$6([observable], BaseTabs.prototype, "tabpanels", 2);
|
|
10640
10640
|
class Tabs extends BaseTabs {
|
|
10641
10641
|
constructor() {
|
|
10642
10642
|
super(...arguments);
|
|
@@ -10768,30 +10768,30 @@ class Tabs extends BaseTabs {
|
|
|
10768
10768
|
this.setTabData();
|
|
10769
10769
|
}
|
|
10770
10770
|
}
|
|
10771
|
-
__decorateClass$
|
|
10772
|
-
__decorateClass$
|
|
10771
|
+
__decorateClass$6([attr], Tabs.prototype, "appearance", 2);
|
|
10772
|
+
__decorateClass$6([attr({
|
|
10773
10773
|
mode: "boolean"
|
|
10774
10774
|
})], Tabs.prototype, "disabled", 2);
|
|
10775
|
-
__decorateClass$
|
|
10775
|
+
__decorateClass$6([attr], Tabs.prototype, "size", 2);
|
|
10776
10776
|
applyMixins(Tabs, StartEnd);
|
|
10777
10777
|
|
|
10778
10778
|
function tabsTemplate(options = {}) {
|
|
10779
10779
|
return html` ${startSlotTemplate(options)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${slotted("tabs")}></slot></div>${endSlotTemplate(options)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${slotted("tabpanels")}></slot></div>`;
|
|
10780
10780
|
}
|
|
10781
|
-
const template$
|
|
10781
|
+
const template$6 = tabsTemplate({});
|
|
10782
10782
|
|
|
10783
|
-
const styles$
|
|
10783
|
+
const styles$6 = css`
|
|
10784
10784
|
${display("grid")}
|
|
10785
10785
|
|
|
10786
10786
|
:host{box-sizing:border-box;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};color:${colorNeutralForeground2};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${borderRadiusMedium}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}:host([size='small']) ::slotted(fluent-tab){font-size:${fontSizeBase300};line-height:${lineHeightBase300};padding:${spacingVerticalSNudge} ${spacingHorizontalSNudge}}:host([size='large']) ::slotted(fluent-tab){font-size:${fontSizeBase400};line-height:${lineHeightBase400};padding:${spacingVerticalL} ${spacingHorizontalMNudge}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax}}:host ::slotted(fluent-tab)::after{height:${strokeWidthThicker};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${strokeWidthThicker};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${strokeWidthThicker}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${spacingVerticalSNudge};padding-bottom:${spacingVerticalSNudge}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${spacingVerticalXXS};padding-bottom:${spacingVerticalXXS}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${spacingVerticalS};padding-bottom:${spacingVerticalS}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${spacingHorizontalSNudge};left:${spacingHorizontalSNudge}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${spacingHorizontalMNudge};left:${spacingHorizontalMNudge}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${spacingHorizontalMNudge};left:${spacingHorizontalMNudge}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${spacingVerticalSNudge};bottom:${spacingVerticalSNudge}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${spacingVerticalS};bottom:${spacingVerticalS}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${spacingVerticalMNudge};bottom:${spacingVerticalMNudge}}`;
|
|
10787
10787
|
|
|
10788
|
-
const definition$
|
|
10788
|
+
const definition$6 = Tabs.compose({
|
|
10789
10789
|
name: `${FluentDesignSystem.prefix}-tabs`,
|
|
10790
|
-
template: template$
|
|
10791
|
-
styles: styles$
|
|
10790
|
+
template: template$6,
|
|
10791
|
+
styles: styles$6
|
|
10792
10792
|
});
|
|
10793
10793
|
|
|
10794
|
-
definition$
|
|
10794
|
+
definition$6.define(FluentDesignSystem.registry);
|
|
10795
10795
|
|
|
10796
10796
|
const isARIADisabledElement = el => {
|
|
10797
10797
|
return el.getAttribute("aria-disabled") === "true";
|
|
@@ -10814,12 +10814,12 @@ const TablistSize = {
|
|
|
10814
10814
|
};
|
|
10815
10815
|
const TablistOrientation = Orientation;
|
|
10816
10816
|
|
|
10817
|
-
var __defProp$
|
|
10818
|
-
var __getOwnPropDesc$
|
|
10819
|
-
var __decorateClass$
|
|
10820
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10817
|
+
var __defProp$5 = Object.defineProperty;
|
|
10818
|
+
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
10819
|
+
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
10820
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
10821
10821
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10822
|
-
if (kind && result) __defProp$
|
|
10822
|
+
if (kind && result) __defProp$5(target, key, result);
|
|
10823
10823
|
return result;
|
|
10824
10824
|
};
|
|
10825
10825
|
class BaseTablist extends FASTElement {
|
|
@@ -11008,12 +11008,12 @@ class BaseTablist extends FASTElement {
|
|
|
11008
11008
|
this.activeTabIndex = this.getActiveIndex();
|
|
11009
11009
|
}
|
|
11010
11010
|
}
|
|
11011
|
-
__decorateClass$
|
|
11011
|
+
__decorateClass$5([attr({
|
|
11012
11012
|
mode: "boolean"
|
|
11013
11013
|
})], BaseTablist.prototype, "disabled", 2);
|
|
11014
|
-
__decorateClass$
|
|
11015
|
-
__decorateClass$
|
|
11016
|
-
__decorateClass$
|
|
11014
|
+
__decorateClass$5([attr], BaseTablist.prototype, "orientation", 2);
|
|
11015
|
+
__decorateClass$5([attr], BaseTablist.prototype, "activeid", 2);
|
|
11016
|
+
__decorateClass$5([observable], BaseTablist.prototype, "tabs", 2);
|
|
11017
11017
|
class Tablist extends BaseTablist {
|
|
11018
11018
|
constructor() {
|
|
11019
11019
|
super(...arguments);
|
|
@@ -11165,23 +11165,23 @@ class Tablist extends BaseTablist {
|
|
|
11165
11165
|
}
|
|
11166
11166
|
}
|
|
11167
11167
|
}
|
|
11168
|
-
__decorateClass$
|
|
11169
|
-
__decorateClass$
|
|
11168
|
+
__decorateClass$5([attr], Tablist.prototype, "appearance", 2);
|
|
11169
|
+
__decorateClass$5([attr], Tablist.prototype, "size", 2);
|
|
11170
11170
|
|
|
11171
|
-
const template$
|
|
11171
|
+
const template$5 = html`<template role="tablist"><slot name="tab" ${slotted("tabs")}></slot></template>`;
|
|
11172
11172
|
|
|
11173
|
-
const styles$
|
|
11173
|
+
const styles$5 = css`
|
|
11174
11174
|
${display("flex")}
|
|
11175
11175
|
|
|
11176
11176
|
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row}:host(${verticalState}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax}}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${verticalState}) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host(${verticalState}) ::slotted([slot='tab'])::before,:host(${verticalState}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host(:where(${smallState},${largeState})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${smallState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge};font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host(${largeState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalMNudge}}:host(${smallState}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalSNudge}}:host(${largeState}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalMNudge}}:host(${verticalState}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${verticalState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalS}}:host(${verticalState}${smallState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalXXS}}:host(${verticalState}${largeState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalS}}:host(${verticalState}) ::slotted([slot='tab'])::after,:host(${verticalState}) ::slotted([slot='tab'])::before,:host(${verticalState}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${verticalState}){--tabIndicatorInsetBlock:${spacingVerticalS}}:host(${verticalState}${smallState}){--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host(${verticalState}${largeState}){--tabIndicatorInsetBlock:${spacingVerticalMNudge}}:host(${disabledState}){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab']:hover):before{content:unset}:host(${subtleState}) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host(${subtleState}) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}`;
|
|
11177
11177
|
|
|
11178
|
-
const definition$
|
|
11178
|
+
const definition$5 = Tablist.compose({
|
|
11179
11179
|
name: `${FluentDesignSystem.prefix}-tablist`,
|
|
11180
|
-
template: template$
|
|
11181
|
-
styles: styles$
|
|
11180
|
+
template: template$5,
|
|
11181
|
+
styles: styles$5
|
|
11182
11182
|
});
|
|
11183
11183
|
|
|
11184
|
-
definition$
|
|
11184
|
+
definition$5.define(FluentDesignSystem.registry);
|
|
11185
11185
|
|
|
11186
11186
|
const TextAreaSize = {
|
|
11187
11187
|
small: "small",
|
|
@@ -11201,12 +11201,12 @@ const TextAreaResize = {
|
|
|
11201
11201
|
vertical: "vertical"
|
|
11202
11202
|
};
|
|
11203
11203
|
|
|
11204
|
-
var __defProp$
|
|
11205
|
-
var __getOwnPropDesc$
|
|
11206
|
-
var __decorateClass$
|
|
11207
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11204
|
+
var __defProp$4 = Object.defineProperty;
|
|
11205
|
+
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
11206
|
+
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
11207
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
11208
11208
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11209
|
-
if (kind && result) __defProp$
|
|
11209
|
+
if (kind && result) __defProp$4(target, key, result);
|
|
11210
11210
|
return result;
|
|
11211
11211
|
};
|
|
11212
11212
|
class BaseTextArea extends FASTElement {
|
|
@@ -11575,47 +11575,47 @@ class BaseTextArea extends FASTElement {
|
|
|
11575
11575
|
* @public
|
|
11576
11576
|
*/
|
|
11577
11577
|
BaseTextArea.formAssociated = true;
|
|
11578
|
-
__decorateClass$
|
|
11579
|
-
__decorateClass$
|
|
11580
|
-
__decorateClass$
|
|
11581
|
-
__decorateClass$
|
|
11578
|
+
__decorateClass$4([observable], BaseTextArea.prototype, "defaultSlottedNodes", 2);
|
|
11579
|
+
__decorateClass$4([observable], BaseTextArea.prototype, "labelSlottedNodes", 2);
|
|
11580
|
+
__decorateClass$4([attr], BaseTextArea.prototype, "autocomplete", 2);
|
|
11581
|
+
__decorateClass$4([attr({
|
|
11582
11582
|
attribute: "auto-resize",
|
|
11583
11583
|
mode: "boolean"
|
|
11584
11584
|
})], BaseTextArea.prototype, "autoResize", 2);
|
|
11585
|
-
__decorateClass$
|
|
11585
|
+
__decorateClass$4([attr({
|
|
11586
11586
|
attribute: "dirname"
|
|
11587
11587
|
})], BaseTextArea.prototype, "dirName", 2);
|
|
11588
|
-
__decorateClass$
|
|
11588
|
+
__decorateClass$4([attr({
|
|
11589
11589
|
mode: "boolean"
|
|
11590
11590
|
})], BaseTextArea.prototype, "disabled", 2);
|
|
11591
|
-
__decorateClass$
|
|
11591
|
+
__decorateClass$4([attr({
|
|
11592
11592
|
attribute: "display-shadow",
|
|
11593
11593
|
mode: "boolean"
|
|
11594
11594
|
})], BaseTextArea.prototype, "displayShadow", 2);
|
|
11595
|
-
__decorateClass$
|
|
11595
|
+
__decorateClass$4([attr({
|
|
11596
11596
|
attribute: "form"
|
|
11597
11597
|
})], BaseTextArea.prototype, "initialForm", 2);
|
|
11598
|
-
__decorateClass$
|
|
11598
|
+
__decorateClass$4([attr({
|
|
11599
11599
|
attribute: "maxlength",
|
|
11600
11600
|
converter: nullableNumberConverter
|
|
11601
11601
|
})], BaseTextArea.prototype, "maxLength", 2);
|
|
11602
|
-
__decorateClass$
|
|
11602
|
+
__decorateClass$4([attr({
|
|
11603
11603
|
attribute: "minlength",
|
|
11604
11604
|
converter: nullableNumberConverter
|
|
11605
11605
|
})], BaseTextArea.prototype, "minLength", 2);
|
|
11606
|
-
__decorateClass$
|
|
11607
|
-
__decorateClass$
|
|
11608
|
-
__decorateClass$
|
|
11606
|
+
__decorateClass$4([attr], BaseTextArea.prototype, "name", 2);
|
|
11607
|
+
__decorateClass$4([attr], BaseTextArea.prototype, "placeholder", 2);
|
|
11608
|
+
__decorateClass$4([attr({
|
|
11609
11609
|
attribute: "readonly",
|
|
11610
11610
|
mode: "boolean"
|
|
11611
11611
|
})], BaseTextArea.prototype, "readOnly", 2);
|
|
11612
|
-
__decorateClass$
|
|
11612
|
+
__decorateClass$4([attr({
|
|
11613
11613
|
mode: "boolean"
|
|
11614
11614
|
})], BaseTextArea.prototype, "required", 2);
|
|
11615
|
-
__decorateClass$
|
|
11615
|
+
__decorateClass$4([attr({
|
|
11616
11616
|
mode: "fromView"
|
|
11617
11617
|
})], BaseTextArea.prototype, "resize", 2);
|
|
11618
|
-
__decorateClass$
|
|
11618
|
+
__decorateClass$4([attr({
|
|
11619
11619
|
mode: "boolean"
|
|
11620
11620
|
})], BaseTextArea.prototype, "spellcheck", 2);
|
|
11621
11621
|
class TextArea extends BaseTextArea {
|
|
@@ -11683,15 +11683,15 @@ class TextArea extends BaseTextArea {
|
|
|
11683
11683
|
toggleState(this.elementInternals, "display-shadow", this.displayShadow && TextAreaAppearancesForDisplayShadow.includes(this.appearance));
|
|
11684
11684
|
}
|
|
11685
11685
|
}
|
|
11686
|
-
__decorateClass$
|
|
11686
|
+
__decorateClass$4([attr({
|
|
11687
11687
|
mode: "fromView"
|
|
11688
11688
|
})], TextArea.prototype, "appearance", 2);
|
|
11689
|
-
__decorateClass$
|
|
11689
|
+
__decorateClass$4([attr({
|
|
11690
11690
|
mode: "boolean"
|
|
11691
11691
|
})], TextArea.prototype, "block", 2);
|
|
11692
|
-
__decorateClass$
|
|
11692
|
+
__decorateClass$4([attr], TextArea.prototype, "size", 2);
|
|
11693
11693
|
|
|
11694
|
-
const styles$
|
|
11694
|
+
const styles$4 = css`
|
|
11695
11695
|
${display("inline-block")}
|
|
11696
11696
|
|
|
11697
11697
|
:host{--font-size:${fontSizeBase300};--line-height:${lineHeightBase300};--padding-inline:${spacingHorizontalMNudge};--padding-block:${spacingVerticalSNudge};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${strokeWidthThin};--control-padding-inline:${spacingHorizontalXXS};--color:${colorNeutralForeground1};--background-color:${colorNeutralBackground1};--border-color:${colorNeutralStroke1};--border-block-end-color:${colorNeutralStrokeAccessible};--placeholder-color:${colorNeutralForeground4};--focus-indicator-color:${colorCompoundBrandStroke};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${fontFamilyBase};font-size:var(--font-size);font-weight:${fontWeightRegular};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${colorNeutralStroke1Hover};--border-block-end-color:${colorNeutralStrokeAccessibleHover}}:host(:active){--border-color:${colorNeutralStroke1Pressed};--border-block-end-color:${colorNeutralStrokeAccessiblePressed}}:host(:focus-within){outline:none}:host(${blockState}:not([hidden])){display:block}:host(${smallState}){--font-size:${fontSizeBase200};--line-height:${lineHeightBase200};--min-block-size:40px;--padding-block:${spacingVerticalXS};--padding-inline:${spacingHorizontalSNudge};--control-padding-inline:${spacingHorizontalXXS}}:host(${largeState}){--font-size:${fontSizeBase400};--line-height:${lineHeightBase400};--min-block-size:64px;--padding-block:${spacingVerticalS};--padding-inline:${spacingHorizontalM};--control-padding-inline:${spacingHorizontalSNudge}}:host(${resizeBothState}:not(:disabled)){--resize:both}:host(${resizeHorizontalState}:not(:disabled)){--resize:horizontal}:host(${resizeVerticalState}:not(:disabled)){--resize:vertical}:host(${autoResizeState}){--block-size:auto;--contain-size:inline-size}:host(${filledDarkerState}){--background-color:${colorNeutralBackground3};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${filledLighterState}){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${filledDarkerState}${displayShadowState}),:host(${filledLighterState}${displayShadowState}){--box-shadow:${shadow2}}:host(${userInvalidState}){--border-color:${colorPaletteRedBorder2};--border-block-end-color:${colorPaletteRedBorder2}}:host(:disabled){--color:${colorNeutralForegroundDisabled};--background-color:${colorTransparentBackground};--border-color:${colorNeutralStrokeDisabled};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${colorNeutralForegroundDisabled};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${borderRadiusMedium};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host(${blockState}) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${borderRadiusMedium});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${curveAccelerateMid};transition-duration:${durationUltraFast};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${spacingVerticalXS};padding-inline-end:${spacingHorizontalXS}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host(${autoResizeState}) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -11706,18 +11706,18 @@ function textAreaTemplate() {
|
|
|
11706
11706
|
filter: whitespaceFilter
|
|
11707
11707
|
})}></slot></div></template>`;
|
|
11708
11708
|
}
|
|
11709
|
-
const template$
|
|
11709
|
+
const template$4 = textAreaTemplate();
|
|
11710
11710
|
|
|
11711
|
-
const definition$
|
|
11711
|
+
const definition$4 = TextArea.compose({
|
|
11712
11712
|
name: `${FluentDesignSystem.prefix}-textarea`,
|
|
11713
|
-
template: template$
|
|
11714
|
-
styles: styles$
|
|
11713
|
+
template: template$4,
|
|
11714
|
+
styles: styles$4,
|
|
11715
11715
|
shadowOptions: {
|
|
11716
11716
|
delegatesFocus: true
|
|
11717
11717
|
}
|
|
11718
11718
|
});
|
|
11719
11719
|
|
|
11720
|
-
definition$
|
|
11720
|
+
definition$4.define(FluentDesignSystem.registry);
|
|
11721
11721
|
|
|
11722
11722
|
const TextInputControlSize = {
|
|
11723
11723
|
small: "small",
|
|
@@ -11739,24 +11739,18 @@ const TextInputType = {
|
|
|
11739
11739
|
};
|
|
11740
11740
|
const ImplicitSubmissionBlockingTypes = ["date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week"];
|
|
11741
11741
|
|
|
11742
|
-
var __defProp$
|
|
11743
|
-
var __getOwnPropDesc$
|
|
11744
|
-
var __decorateClass$
|
|
11745
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11742
|
+
var __defProp$3 = Object.defineProperty;
|
|
11743
|
+
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
11744
|
+
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
11745
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
11746
11746
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11747
|
-
if (kind && result) __defProp$
|
|
11747
|
+
if (kind && result) __defProp$3(target, key, result);
|
|
11748
11748
|
return result;
|
|
11749
11749
|
};
|
|
11750
11750
|
class BaseTextInput extends FASTElement {
|
|
11751
11751
|
constructor() {
|
|
11752
11752
|
super(...arguments);
|
|
11753
11753
|
this.type = TextInputType.text;
|
|
11754
|
-
/**
|
|
11755
|
-
* The current value of the input.
|
|
11756
|
-
*
|
|
11757
|
-
* @internal
|
|
11758
|
-
*/
|
|
11759
|
-
this._value = this.initialValue;
|
|
11760
11754
|
/**
|
|
11761
11755
|
* Indicates that the value has been changed by the user.
|
|
11762
11756
|
*
|
|
@@ -11770,6 +11764,17 @@ class BaseTextInput extends FASTElement {
|
|
|
11770
11764
|
*/
|
|
11771
11765
|
this.elementInternals = this.attachInternals();
|
|
11772
11766
|
}
|
|
11767
|
+
/**
|
|
11768
|
+
* Tracks the current value of the input.
|
|
11769
|
+
*
|
|
11770
|
+
* @param prev - the previous value
|
|
11771
|
+
* @param next - the next value
|
|
11772
|
+
*
|
|
11773
|
+
* @internal
|
|
11774
|
+
*/
|
|
11775
|
+
currentValueChanged(prev, next) {
|
|
11776
|
+
this.value = next;
|
|
11777
|
+
}
|
|
11773
11778
|
/**
|
|
11774
11779
|
* Updates the control label visibility based on the presence of default slotted content.
|
|
11775
11780
|
*
|
|
@@ -11839,12 +11844,12 @@ class BaseTextInput extends FASTElement {
|
|
|
11839
11844
|
*/
|
|
11840
11845
|
get value() {
|
|
11841
11846
|
Observable.track(this, "value");
|
|
11842
|
-
return this.
|
|
11847
|
+
return this.currentValue;
|
|
11843
11848
|
}
|
|
11844
11849
|
set value(value) {
|
|
11845
|
-
this.
|
|
11850
|
+
this.currentValue = value;
|
|
11846
11851
|
if (this.$fastController.isConnected) {
|
|
11847
|
-
this.control.value = value;
|
|
11852
|
+
this.control.value = value ?? "";
|
|
11848
11853
|
this.setFormValue(value);
|
|
11849
11854
|
this.setValidity();
|
|
11850
11855
|
Observable.notify(this, "value");
|
|
@@ -12060,53 +12065,56 @@ class BaseTextInput extends FASTElement {
|
|
|
12060
12065
|
* @public
|
|
12061
12066
|
*/
|
|
12062
12067
|
BaseTextInput.formAssociated = true;
|
|
12063
|
-
__decorateClass$
|
|
12064
|
-
__decorateClass$
|
|
12068
|
+
__decorateClass$3([attr], BaseTextInput.prototype, "autocomplete", 2);
|
|
12069
|
+
__decorateClass$3([attr({
|
|
12065
12070
|
mode: "boolean"
|
|
12066
12071
|
})], BaseTextInput.prototype, "autofocus", 2);
|
|
12067
|
-
__decorateClass$
|
|
12068
|
-
|
|
12069
|
-
|
|
12072
|
+
__decorateClass$3([attr({
|
|
12073
|
+
attribute: "current-value"
|
|
12074
|
+
})], BaseTextInput.prototype, "currentValue", 2);
|
|
12075
|
+
__decorateClass$3([observable], BaseTextInput.prototype, "defaultSlottedNodes", 2);
|
|
12076
|
+
__decorateClass$3([attr], BaseTextInput.prototype, "dirname", 2);
|
|
12077
|
+
__decorateClass$3([attr({
|
|
12070
12078
|
mode: "boolean"
|
|
12071
12079
|
})], BaseTextInput.prototype, "disabled", 2);
|
|
12072
|
-
__decorateClass$
|
|
12080
|
+
__decorateClass$3([attr({
|
|
12073
12081
|
attribute: "form"
|
|
12074
12082
|
})], BaseTextInput.prototype, "formAttribute", 2);
|
|
12075
|
-
__decorateClass$
|
|
12083
|
+
__decorateClass$3([attr({
|
|
12076
12084
|
attribute: "value",
|
|
12077
12085
|
mode: "fromView"
|
|
12078
12086
|
})], BaseTextInput.prototype, "initialValue", 2);
|
|
12079
|
-
__decorateClass$
|
|
12080
|
-
__decorateClass$
|
|
12087
|
+
__decorateClass$3([attr], BaseTextInput.prototype, "list", 2);
|
|
12088
|
+
__decorateClass$3([attr({
|
|
12081
12089
|
converter: nullableNumberConverter
|
|
12082
12090
|
})], BaseTextInput.prototype, "maxlength", 2);
|
|
12083
|
-
__decorateClass$
|
|
12091
|
+
__decorateClass$3([attr({
|
|
12084
12092
|
converter: nullableNumberConverter
|
|
12085
12093
|
})], BaseTextInput.prototype, "minlength", 2);
|
|
12086
|
-
__decorateClass$
|
|
12094
|
+
__decorateClass$3([attr({
|
|
12087
12095
|
mode: "boolean"
|
|
12088
12096
|
})], BaseTextInput.prototype, "multiple", 2);
|
|
12089
|
-
__decorateClass$
|
|
12090
|
-
__decorateClass$
|
|
12091
|
-
__decorateClass$
|
|
12092
|
-
__decorateClass$
|
|
12097
|
+
__decorateClass$3([attr], BaseTextInput.prototype, "name", 2);
|
|
12098
|
+
__decorateClass$3([attr], BaseTextInput.prototype, "pattern", 2);
|
|
12099
|
+
__decorateClass$3([attr], BaseTextInput.prototype, "placeholder", 2);
|
|
12100
|
+
__decorateClass$3([attr({
|
|
12093
12101
|
attribute: "readonly",
|
|
12094
12102
|
mode: "boolean"
|
|
12095
12103
|
})], BaseTextInput.prototype, "readOnly", 2);
|
|
12096
|
-
__decorateClass$
|
|
12104
|
+
__decorateClass$3([attr({
|
|
12097
12105
|
mode: "boolean"
|
|
12098
12106
|
})], BaseTextInput.prototype, "required", 2);
|
|
12099
|
-
__decorateClass$
|
|
12107
|
+
__decorateClass$3([attr({
|
|
12100
12108
|
converter: nullableNumberConverter
|
|
12101
12109
|
})], BaseTextInput.prototype, "size", 2);
|
|
12102
|
-
__decorateClass$
|
|
12110
|
+
__decorateClass$3([attr({
|
|
12103
12111
|
converter: {
|
|
12104
12112
|
fromView: value => typeof value === "string" ? ["true", ""].includes(value.trim().toLowerCase()) : null,
|
|
12105
12113
|
toView: value => value.toString()
|
|
12106
12114
|
}
|
|
12107
12115
|
})], BaseTextInput.prototype, "spellcheck", 2);
|
|
12108
|
-
__decorateClass$
|
|
12109
|
-
__decorateClass$
|
|
12116
|
+
__decorateClass$3([attr], BaseTextInput.prototype, "type", 2);
|
|
12117
|
+
__decorateClass$3([observable], BaseTextInput.prototype, "controlLabel", 2);
|
|
12110
12118
|
class TextInput extends BaseTextInput {
|
|
12111
12119
|
/**
|
|
12112
12120
|
* Handles changes to appearance attribute custom states
|
|
@@ -12125,13 +12133,13 @@ class TextInput extends BaseTextInput {
|
|
|
12125
12133
|
swapStates(this.elementInternals, prev, next, TextInputControlSize);
|
|
12126
12134
|
}
|
|
12127
12135
|
}
|
|
12128
|
-
__decorateClass$
|
|
12129
|
-
__decorateClass$
|
|
12136
|
+
__decorateClass$3([attr], TextInput.prototype, "appearance", 2);
|
|
12137
|
+
__decorateClass$3([attr({
|
|
12130
12138
|
attribute: "control-size"
|
|
12131
12139
|
})], TextInput.prototype, "controlSize", 2);
|
|
12132
12140
|
applyMixins(TextInput, StartEnd);
|
|
12133
12141
|
|
|
12134
|
-
const styles$
|
|
12142
|
+
const styles$3 = css`
|
|
12135
12143
|
${display("block")}
|
|
12136
12144
|
|
|
12137
12145
|
:host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host(${outlineState}:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host(${smallState}) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host(${smallState}) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host(${smallState}) ::slotted([slot='start']),:host(${smallState}) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host(${largeState}) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host(${largeState}) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host(${largeState}) ::slotted([slot='start']),:host(${largeState}) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host(${underlineState}) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host(${underlineState}:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(${underlineState}:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState}:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState}[disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host(${filledLighterState}) .root,:host(${filledDarkerState}) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host(${filledLighterState}) .root{background:${colorNeutralBackground1}}:host(${filledDarkerState}) .root{background:${colorNeutralBackground3}}:host(${filledLighterState}:hover) .root,:host(${filledDarkerState}:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host(${filledLighterState}:active) .root,:host(${filledDarkerState}:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
|
|
@@ -12142,18 +12150,18 @@ function textInputTemplate(options = {}) {
|
|
|
12142
12150
|
filter: whitespaceFilter
|
|
12143
12151
|
})}></slot></label><div class="root" part="root">${startSlotTemplate(options)}<input class="control" part="control" id="control" @change="${(x, c) => x.changeHandler(c.event)}" @input="${(x, c) => x.inputHandler(c.event)}" ?autofocus="${x => x.autofocus}" autocomplete="${x => x.autocomplete}" ?disabled="${x => x.disabled}" list="${x => x.list}" maxlength="${x => x.maxlength}" minlength="${x => x.minlength}" ?multiple="${x => x.multiple}" name="${x => x.name}" pattern="${x => x.pattern}" placeholder="${x => x.placeholder}" ?readonly="${x => x.readOnly}" ?required="${x => x.required}" size="${x => x.size}" spellcheck="${x => x.spellcheck}" type="${x => x.type}" value="${x => x.initialValue}" ${ref("control")} />${endSlotTemplate(options)}</div></template>`;
|
|
12144
12152
|
}
|
|
12145
|
-
const template$
|
|
12153
|
+
const template$3 = textInputTemplate();
|
|
12146
12154
|
|
|
12147
|
-
const definition$
|
|
12155
|
+
const definition$3 = TextInput.compose({
|
|
12148
12156
|
name: `${FluentDesignSystem.prefix}-text-input`,
|
|
12149
|
-
template: template$
|
|
12150
|
-
styles: styles$
|
|
12157
|
+
template: template$3,
|
|
12158
|
+
styles: styles$3,
|
|
12151
12159
|
shadowOptions: {
|
|
12152
12160
|
delegatesFocus: true
|
|
12153
12161
|
}
|
|
12154
12162
|
});
|
|
12155
12163
|
|
|
12156
|
-
definition$
|
|
12164
|
+
definition$3.define(FluentDesignSystem.registry);
|
|
12157
12165
|
|
|
12158
12166
|
const TextSize = {
|
|
12159
12167
|
_100: "100",
|
|
@@ -12185,12 +12193,12 @@ const TextAlign = {
|
|
|
12185
12193
|
justify: "justify"
|
|
12186
12194
|
};
|
|
12187
12195
|
|
|
12188
|
-
var __defProp$
|
|
12189
|
-
var __getOwnPropDesc$
|
|
12190
|
-
var __decorateClass$
|
|
12191
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12196
|
+
var __defProp$2 = Object.defineProperty;
|
|
12197
|
+
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
12198
|
+
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
12199
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
12192
12200
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12193
|
-
if (kind && result) __defProp$
|
|
12201
|
+
if (kind && result) __defProp$2(target, key, result);
|
|
12194
12202
|
return result;
|
|
12195
12203
|
};
|
|
12196
12204
|
class Text extends FASTElement {
|
|
@@ -12271,50 +12279,50 @@ class Text extends FASTElement {
|
|
|
12271
12279
|
}
|
|
12272
12280
|
}
|
|
12273
12281
|
}
|
|
12274
|
-
__decorateClass$
|
|
12282
|
+
__decorateClass$2([attr({
|
|
12275
12283
|
mode: "boolean"
|
|
12276
12284
|
})], Text.prototype, "nowrap", 2);
|
|
12277
|
-
__decorateClass$
|
|
12285
|
+
__decorateClass$2([attr({
|
|
12278
12286
|
mode: "boolean"
|
|
12279
12287
|
})], Text.prototype, "truncate", 2);
|
|
12280
|
-
__decorateClass$
|
|
12288
|
+
__decorateClass$2([attr({
|
|
12281
12289
|
mode: "boolean"
|
|
12282
12290
|
})], Text.prototype, "italic", 2);
|
|
12283
|
-
__decorateClass$
|
|
12291
|
+
__decorateClass$2([attr({
|
|
12284
12292
|
mode: "boolean"
|
|
12285
12293
|
})], Text.prototype, "underline", 2);
|
|
12286
|
-
__decorateClass$
|
|
12294
|
+
__decorateClass$2([attr({
|
|
12287
12295
|
mode: "boolean"
|
|
12288
12296
|
})], Text.prototype, "strikethrough", 2);
|
|
12289
|
-
__decorateClass$
|
|
12297
|
+
__decorateClass$2([attr({
|
|
12290
12298
|
mode: "boolean"
|
|
12291
12299
|
})], Text.prototype, "block", 2);
|
|
12292
|
-
__decorateClass$
|
|
12293
|
-
__decorateClass$
|
|
12294
|
-
__decorateClass$
|
|
12295
|
-
__decorateClass$
|
|
12300
|
+
__decorateClass$2([attr], Text.prototype, "size", 2);
|
|
12301
|
+
__decorateClass$2([attr], Text.prototype, "font", 2);
|
|
12302
|
+
__decorateClass$2([attr], Text.prototype, "weight", 2);
|
|
12303
|
+
__decorateClass$2([attr], Text.prototype, "align", 2);
|
|
12296
12304
|
|
|
12297
|
-
const styles$
|
|
12305
|
+
const styles$2 = css`
|
|
12298
12306
|
${display("inline")}
|
|
12299
12307
|
|
|
12300
12308
|
:host{contain:content;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start}:host(${nowrapState}),:host(${nowrapState}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${truncateState}),:host(${truncateState}) ::slotted(*){text-overflow:ellipsis}:host(${blockState}){display:block}:host(${italicState}){font-style:italic}:host(${underlineState}){text-decoration-line:underline}:host(${strikethroughState}){text-decoration-line:line-through}:host(${underlineState}${strikethroughState}){text-decoration-line:line-through underline}:host(${size100State}){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host(${size200State}){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${size400State}){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${size500State}){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host(${size600State}){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host(${size700State}){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host(${size800State}){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host(${size900State}){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host(${size1000State}){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host(${monospaceState}){font-family:${fontFamilyMonospace}}:host(${numericState}){font-family:${fontFamilyNumeric}}:host(${mediumState}){font-weight:${fontWeightMedium}}:host(${semiboldState}){font-weight:${fontWeightSemibold}}:host(${boldState}){font-weight:${fontWeightBold}}:host(${centerState}){text-align:center}:host(${endState}){text-align:end}:host(${justifyState}){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`;
|
|
12301
12309
|
|
|
12302
|
-
const template$
|
|
12310
|
+
const template$2 = html`<slot></slot>`;
|
|
12303
12311
|
|
|
12304
|
-
const definition$
|
|
12312
|
+
const definition$2 = Text.compose({
|
|
12305
12313
|
name: `${FluentDesignSystem.prefix}-text`,
|
|
12306
|
-
template: template$
|
|
12307
|
-
styles: styles$
|
|
12314
|
+
template: template$2,
|
|
12315
|
+
styles: styles$2
|
|
12308
12316
|
});
|
|
12309
12317
|
|
|
12310
|
-
definition$
|
|
12318
|
+
definition$2.define(FluentDesignSystem.registry);
|
|
12311
12319
|
|
|
12312
|
-
var __defProp = Object.defineProperty;
|
|
12313
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12314
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
12315
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12320
|
+
var __defProp$1 = Object.defineProperty;
|
|
12321
|
+
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
12322
|
+
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
12323
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
12316
12324
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12317
|
-
if (kind && result) __defProp(target, key, result);
|
|
12325
|
+
if (kind && result) __defProp$1(target, key, result);
|
|
12318
12326
|
return result;
|
|
12319
12327
|
};
|
|
12320
12328
|
class ToggleButton extends Button {
|
|
@@ -12361,23 +12369,212 @@ class ToggleButton extends Button {
|
|
|
12361
12369
|
}
|
|
12362
12370
|
}
|
|
12363
12371
|
}
|
|
12364
|
-
__decorateClass([attr({
|
|
12372
|
+
__decorateClass$1([attr({
|
|
12365
12373
|
mode: "boolean"
|
|
12366
12374
|
})], ToggleButton.prototype, "pressed", 2);
|
|
12367
|
-
__decorateClass([attr({
|
|
12375
|
+
__decorateClass$1([attr({
|
|
12368
12376
|
mode: "boolean"
|
|
12369
12377
|
})], ToggleButton.prototype, "mixed", 2);
|
|
12370
12378
|
|
|
12371
|
-
const styles = css`
|
|
12372
|
-
${styles$
|
|
12379
|
+
const styles$1 = css`
|
|
12380
|
+
${styles$z}
|
|
12373
12381
|
|
|
12374
12382
|
:host(${pressedState}){border-color:${colorNeutralStroke1};background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground1};border-width:${strokeWidthThin}}:host(${pressedState}:hover){border-color:${colorNeutralStroke1Hover};background-color:${colorNeutralBackground1Hover}}:host(${pressedState}:active){border-color:${colorNeutralStroke1Pressed};background-color:${colorNeutralBackground1Pressed}}:host(${pressedState}${primaryState}){border-color:transparent;background-color:${colorBrandBackgroundSelected};color:${colorNeutralForegroundOnBrand}}:host(${pressedState}${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${pressedState}${primaryState}:active){background-color:${colorBrandBackgroundPressed}}:host(${pressedState}${subtleState}){border-color:transparent;background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host(${pressedState}${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}:host(${pressedState}${subtleState}:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}:host(${pressedState}${outlineState}),:host(${pressedState}${transparentState}){background-color:${colorTransparentBackgroundSelected}}:host(${pressedState}${outlineState}:hover),:host(${pressedState}${transparentState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${pressedState}${outlineState}:active),:host(${pressedState}${transparentState}:active){background-color:${colorTransparentBackgroundPressed}}:host(${pressedState}${transparentState}){border-color:transparent;color:${colorNeutralForeground2BrandSelected}}:host(${pressedState}${transparentState}:hover){color:${colorNeutralForeground2BrandHover}}:host(${pressedState}${transparentState}:active){color:${colorNeutralForeground2BrandPressed}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
12375
12383
|
:host(${pressedState}),:host(${pressedState}${primaryState}),:host(${pressedState}${subtleState}),:host(${pressedState}${outlineState}),:host(${pressedState}${transparentState}){background:SelectedItem;color:SelectedItemText}`));
|
|
12376
12384
|
|
|
12377
|
-
const template = buttonTemplate$1();
|
|
12385
|
+
const template$1 = buttonTemplate$1();
|
|
12378
12386
|
|
|
12379
|
-
const definition = ToggleButton.compose({
|
|
12387
|
+
const definition$1 = ToggleButton.compose({
|
|
12380
12388
|
name: `${FluentDesignSystem.prefix}-toggle-button`,
|
|
12389
|
+
template: template$1,
|
|
12390
|
+
styles: styles$1
|
|
12391
|
+
});
|
|
12392
|
+
|
|
12393
|
+
definition$1.define(FluentDesignSystem.registry);
|
|
12394
|
+
|
|
12395
|
+
var __defProp = Object.defineProperty;
|
|
12396
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12397
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
12398
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12399
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12400
|
+
if (kind && result) __defProp(target, key, result);
|
|
12401
|
+
return result;
|
|
12402
|
+
};
|
|
12403
|
+
const SUPPORTS_CSS_ANCHOR_POSITIONING = CSS.supports("anchor-name: --a");
|
|
12404
|
+
const SUPPORTS_HTML_ANCHOR_POSITIONING = "anchor" in HTMLElement.prototype;
|
|
12405
|
+
class Tooltip extends FASTElement {
|
|
12406
|
+
constructor() {
|
|
12407
|
+
super();
|
|
12408
|
+
/**
|
|
12409
|
+
* The attached element internals
|
|
12410
|
+
*/
|
|
12411
|
+
this.elementInternals = this.attachInternals();
|
|
12412
|
+
this.id = uniqueId("tooltip-");
|
|
12413
|
+
/**
|
|
12414
|
+
* The default delay for the tooltip
|
|
12415
|
+
* @internal
|
|
12416
|
+
*/
|
|
12417
|
+
this.defaultDelay = 250;
|
|
12418
|
+
this.anchor = "";
|
|
12419
|
+
/**
|
|
12420
|
+
* Reference to the anchor positioning style element
|
|
12421
|
+
* @internal
|
|
12422
|
+
*/
|
|
12423
|
+
this.anchorPositioningStyleElement = null;
|
|
12424
|
+
/**
|
|
12425
|
+
* Show the tooltip on mouse enter
|
|
12426
|
+
*/
|
|
12427
|
+
this.mouseenterAnchorHandler = () => this.showTooltip(this.delay);
|
|
12428
|
+
/**
|
|
12429
|
+
* Hide the tooltip on mouse leave
|
|
12430
|
+
*/
|
|
12431
|
+
this.mouseleaveAnchorHandler = () => this.hideTooltip(this.delay);
|
|
12432
|
+
/**
|
|
12433
|
+
* Show the tooltip on focus
|
|
12434
|
+
*/
|
|
12435
|
+
this.focusAnchorHandler = () => this.showTooltip(0);
|
|
12436
|
+
/**
|
|
12437
|
+
* Hide the tooltip on blur
|
|
12438
|
+
*/
|
|
12439
|
+
this.blurAnchorHandler = () => this.hideTooltip(0);
|
|
12440
|
+
this.elementInternals.role = "tooltip";
|
|
12441
|
+
}
|
|
12442
|
+
/**
|
|
12443
|
+
* Reference to the anchor element
|
|
12444
|
+
* @internal
|
|
12445
|
+
*/
|
|
12446
|
+
get anchorElement() {
|
|
12447
|
+
const rootNode = this.getRootNode();
|
|
12448
|
+
return (rootNode instanceof ShadowRoot ? rootNode : document).getElementById(this.anchor ?? "");
|
|
12449
|
+
}
|
|
12450
|
+
connectedCallback() {
|
|
12451
|
+
super.connectedCallback();
|
|
12452
|
+
if (!this.anchorElement) {
|
|
12453
|
+
return;
|
|
12454
|
+
}
|
|
12455
|
+
const anchorName = this.anchorElement.style.anchorName || `--${this.anchor}`;
|
|
12456
|
+
const describedBy = this.anchorElement.getAttribute("aria-describedby");
|
|
12457
|
+
this.anchorElement.setAttribute("aria-describedby", describedBy ? `${describedBy} ${this.id}` : this.id);
|
|
12458
|
+
if (SUPPORTS_CSS_ANCHOR_POSITIONING) {
|
|
12459
|
+
if (!SUPPORTS_HTML_ANCHOR_POSITIONING) {
|
|
12460
|
+
this.anchorElement.style.anchorName = anchorName;
|
|
12461
|
+
this.style.positionAnchor = anchorName;
|
|
12462
|
+
}
|
|
12463
|
+
} else {
|
|
12464
|
+
if (!this.anchorPositioningStyleElement) {
|
|
12465
|
+
this.anchorPositioningStyleElement = document.createElement("style");
|
|
12466
|
+
document.head.append(this.anchorPositioningStyleElement);
|
|
12467
|
+
}
|
|
12468
|
+
let [direction, alignment] = this.positioning?.split("-") ?? [];
|
|
12469
|
+
if (alignment === void 0 && (direction === "above" || direction === "below")) {
|
|
12470
|
+
alignment = "centerX";
|
|
12471
|
+
}
|
|
12472
|
+
if (alignment === void 0 && (direction === "before" || direction === "after")) {
|
|
12473
|
+
alignment = "centerY";
|
|
12474
|
+
}
|
|
12475
|
+
const directionCSSMap = {
|
|
12476
|
+
above: `bottom: anchor(${anchorName} top);`,
|
|
12477
|
+
below: `top: anchor(${anchorName} bottom);`,
|
|
12478
|
+
before: `right: anchor(${anchorName} left);`,
|
|
12479
|
+
after: `left: anchor(${anchorName} right);`
|
|
12480
|
+
};
|
|
12481
|
+
const directionCSS = directionCSSMap[direction] ?? directionCSSMap.above;
|
|
12482
|
+
const alignmentCSSMap = {
|
|
12483
|
+
start: `left: anchor(${anchorName} left);`,
|
|
12484
|
+
end: `right: anchor(${anchorName} right);`,
|
|
12485
|
+
top: `top: anchor(${anchorName} top);`,
|
|
12486
|
+
bottom: `bottom: anchor(${anchorName} bottom);`,
|
|
12487
|
+
centerX: `left: anchor(${anchorName} center); translate: -50% 0;`,
|
|
12488
|
+
centerY: `top: anchor(${anchorName} center); translate: 0 -50%;`
|
|
12489
|
+
};
|
|
12490
|
+
const alignmentCSS = alignmentCSSMap[alignment] ?? alignmentCSSMap.centerX;
|
|
12491
|
+
this.anchorPositioningStyleElement.textContent = `
|
|
12492
|
+
#${this.anchor} {
|
|
12493
|
+
anchor-name: ${anchorName};
|
|
12494
|
+
}
|
|
12495
|
+
#${this.id} {
|
|
12496
|
+
inset: unset;
|
|
12497
|
+
${directionCSS}
|
|
12498
|
+
${alignmentCSS}
|
|
12499
|
+
position: absolute;
|
|
12500
|
+
}
|
|
12501
|
+
`;
|
|
12502
|
+
if (window.CSS_ANCHOR_POLYFILL) {
|
|
12503
|
+
window.CSS_ANCHOR_POLYFILL.call({
|
|
12504
|
+
element: this.anchorPositioningStyleElement
|
|
12505
|
+
});
|
|
12506
|
+
}
|
|
12507
|
+
}
|
|
12508
|
+
this.anchorElement.addEventListener("focus", this.focusAnchorHandler);
|
|
12509
|
+
this.anchorElement.addEventListener("blur", this.blurAnchorHandler);
|
|
12510
|
+
this.anchorElement.addEventListener("mouseenter", this.mouseenterAnchorHandler);
|
|
12511
|
+
this.anchorElement.addEventListener("mouseleave", this.mouseleaveAnchorHandler);
|
|
12512
|
+
}
|
|
12513
|
+
disconnectedCallback() {
|
|
12514
|
+
super.disconnectedCallback();
|
|
12515
|
+
this.anchorElement?.removeEventListener("focus", this.focusAnchorHandler);
|
|
12516
|
+
this.anchorElement?.removeEventListener("blur", this.blurAnchorHandler);
|
|
12517
|
+
this.anchorElement?.removeEventListener("mouseenter", this.mouseenterAnchorHandler);
|
|
12518
|
+
this.anchorElement?.removeEventListener("mouseleave", this.mouseleaveAnchorHandler);
|
|
12519
|
+
}
|
|
12520
|
+
/**
|
|
12521
|
+
* Shows the tooltip
|
|
12522
|
+
* @param delay Number of milliseconds to delay showing the tooltip
|
|
12523
|
+
* @internal
|
|
12524
|
+
*/
|
|
12525
|
+
showTooltip(delay = this.defaultDelay) {
|
|
12526
|
+
setTimeout(() => {
|
|
12527
|
+
this.setAttribute("aria-hidden", "false");
|
|
12528
|
+
this.showPopover();
|
|
12529
|
+
}, delay);
|
|
12530
|
+
}
|
|
12531
|
+
/**
|
|
12532
|
+
* Hide the tooltip
|
|
12533
|
+
* @param delay Number of milliseconds to delay hiding the tooltip
|
|
12534
|
+
* @internal
|
|
12535
|
+
*/
|
|
12536
|
+
hideTooltip(delay = this.defaultDelay) {
|
|
12537
|
+
setTimeout(() => {
|
|
12538
|
+
if (this.matches(":hover") || this.anchorElement?.matches(":hover")) {
|
|
12539
|
+
this.hideTooltip(delay);
|
|
12540
|
+
return;
|
|
12541
|
+
}
|
|
12542
|
+
this.setAttribute("aria-hidden", "true");
|
|
12543
|
+
this.hidePopover();
|
|
12544
|
+
}, delay);
|
|
12545
|
+
}
|
|
12546
|
+
}
|
|
12547
|
+
__decorateClass([attr], Tooltip.prototype, "id", 2);
|
|
12548
|
+
__decorateClass([attr({
|
|
12549
|
+
converter: nullableNumberConverter
|
|
12550
|
+
})], Tooltip.prototype, "delay", 2);
|
|
12551
|
+
__decorateClass([attr], Tooltip.prototype, "positioning", 2);
|
|
12552
|
+
__decorateClass([attr], Tooltip.prototype, "anchor", 2);
|
|
12553
|
+
|
|
12554
|
+
const TooltipPositioningOption = {
|
|
12555
|
+
"above-start": "block-start span-inline-end",
|
|
12556
|
+
above: "block-start",
|
|
12557
|
+
"above-end": "block-start span-inline-start",
|
|
12558
|
+
"below-start": "block-end span-inline-end",
|
|
12559
|
+
below: "block-end",
|
|
12560
|
+
"below-end": "block-end span-inline-start",
|
|
12561
|
+
"before-top": "inline-start span-block-end",
|
|
12562
|
+
before: "inline-start",
|
|
12563
|
+
"before-bottom": "inline-start span-block-start",
|
|
12564
|
+
"after-top": "inline-end span-block-end",
|
|
12565
|
+
after: "inline-end",
|
|
12566
|
+
"after-bottom": "inline-end span-block-start"
|
|
12567
|
+
};
|
|
12568
|
+
|
|
12569
|
+
const styles = css`
|
|
12570
|
+
${display("inline-flex")}
|
|
12571
|
+
|
|
12572
|
+
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${TooltipPositioningOption["above-start"]}}:host([positioning='above']){--position-area:${TooltipPositioningOption.above}}:host([positioning='above-end']){--position-area:${TooltipPositioningOption["above-end"]}}:host([positioning='below-start']){--position-area:${TooltipPositioningOption["below-start"]}}:host([positioning='below']){--position-area:${TooltipPositioningOption.below}}:host([positioning='below-end']){--position-area:${TooltipPositioningOption.below}}:host([positioning='before-top']){--position-area:${TooltipPositioningOption["before-top"]}}:host([positioning='before']){--position-area:${TooltipPositioningOption.before}}:host([positioning='before-bottom']){--position-area:${TooltipPositioningOption["before-bottom"]}}:host([positioning='after-top']){--position-area:${TooltipPositioningOption["after-top"]}}:host([positioning='after']){--position-area:${TooltipPositioningOption.after}}:host([positioning='after-bottom']){--position-area:${TooltipPositioningOption["after-bottom"]}}`;
|
|
12573
|
+
|
|
12574
|
+
const template = html`<template popover aria-hidden="true"><slot></slot></template>`;
|
|
12575
|
+
|
|
12576
|
+
const definition = Tooltip.compose({
|
|
12577
|
+
name: `${FluentDesignSystem.prefix}-tooltip`,
|
|
12381
12578
|
template,
|
|
12382
12579
|
styles
|
|
12383
12580
|
});
|