@fluentui/web-components 3.0.0-beta.28 → 3.0.0-beta.29
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 +12 -2
- package/dist/dts/anchor-button/anchor-button.d.ts +36 -34
- package/dist/dts/index-rollup.d.ts +1 -0
- package/dist/dts/index.d.ts +2 -2
- package/dist/dts/link/define.d.ts +1 -0
- package/dist/dts/link/index.d.ts +4 -0
- package/dist/dts/link/link.bench.d.ts +3 -0
- package/dist/dts/link/link.d.ts +33 -0
- package/dist/dts/link/link.definition.d.ts +7 -0
- package/dist/dts/link/link.options.d.ts +52 -0
- package/dist/dts/link/link.styles.d.ts +1 -0
- package/dist/dts/link/link.template.d.ts +12 -0
- package/dist/esm/anchor-button/anchor-button.js +26 -21
- package/dist/esm/anchor-button/anchor-button.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 +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/link/define.js +4 -0
- package/dist/esm/link/define.js.map +1 -0
- package/dist/esm/link/index.js +5 -0
- package/dist/esm/link/index.js.map +1 -0
- package/dist/esm/link/link.bench.js +11 -0
- package/dist/esm/link/link.bench.js.map +1 -0
- package/dist/esm/link/link.definition.js +15 -0
- package/dist/esm/link/link.definition.js.map +1 -0
- package/dist/esm/link/link.js +36 -0
- package/dist/esm/link/link.js.map +1 -0
- package/dist/esm/link/link.options.js +21 -0
- package/dist/esm/link/link.options.js.map +1 -0
- package/dist/esm/link/link.styles.js +67 -0
- package/dist/esm/link/link.styles.js.map +1 -0
- package/dist/esm/link/link.template.js +22 -0
- package/dist/esm/link/link.template.js.map +1 -0
- package/dist/esm/theme/set-theme.js +8 -3
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/web-components.d.ts +211 -136
- package/dist/web-components.js +330 -281
- package/dist/web-components.min.js +232 -228
- package/package.json +6 -1
package/dist/web-components.js
CHANGED
|
@@ -3401,70 +3401,70 @@ function uniqueId(prefix = "") {
|
|
|
3401
3401
|
return `${prefix}${uniqueIdCounter++}`;
|
|
3402
3402
|
}
|
|
3403
3403
|
|
|
3404
|
-
var __defProp$
|
|
3405
|
-
var __getOwnPropDesc$
|
|
3406
|
-
var __decorateClass$
|
|
3407
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3404
|
+
var __defProp$s = Object.defineProperty;
|
|
3405
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
3406
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
3407
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
3408
3408
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3409
|
-
if (kind && result) __defProp$
|
|
3409
|
+
if (kind && result) __defProp$s(target, key, result);
|
|
3410
3410
|
return result;
|
|
3411
3411
|
};
|
|
3412
3412
|
class ARIAGlobalStatesAndProperties {}
|
|
3413
|
-
__decorateClass$
|
|
3413
|
+
__decorateClass$s([attr({
|
|
3414
3414
|
attribute: "aria-atomic"
|
|
3415
3415
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", 2);
|
|
3416
|
-
__decorateClass$
|
|
3416
|
+
__decorateClass$s([attr({
|
|
3417
3417
|
attribute: "aria-busy"
|
|
3418
3418
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", 2);
|
|
3419
|
-
__decorateClass$
|
|
3419
|
+
__decorateClass$s([attr({
|
|
3420
3420
|
attribute: "aria-controls"
|
|
3421
3421
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaControls", 2);
|
|
3422
|
-
__decorateClass$
|
|
3422
|
+
__decorateClass$s([attr({
|
|
3423
3423
|
attribute: "aria-current"
|
|
3424
3424
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", 2);
|
|
3425
|
-
__decorateClass$
|
|
3425
|
+
__decorateClass$s([attr({
|
|
3426
3426
|
attribute: "aria-describedby"
|
|
3427
3427
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", 2);
|
|
3428
|
-
__decorateClass$
|
|
3428
|
+
__decorateClass$s([attr({
|
|
3429
3429
|
attribute: "aria-details"
|
|
3430
3430
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", 2);
|
|
3431
|
-
__decorateClass$
|
|
3431
|
+
__decorateClass$s([attr({
|
|
3432
3432
|
attribute: "aria-disabled"
|
|
3433
3433
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", 2);
|
|
3434
|
-
__decorateClass$
|
|
3434
|
+
__decorateClass$s([attr({
|
|
3435
3435
|
attribute: "aria-errormessage"
|
|
3436
3436
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", 2);
|
|
3437
|
-
__decorateClass$
|
|
3437
|
+
__decorateClass$s([attr({
|
|
3438
3438
|
attribute: "aria-flowto"
|
|
3439
3439
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", 2);
|
|
3440
|
-
__decorateClass$
|
|
3440
|
+
__decorateClass$s([attr({
|
|
3441
3441
|
attribute: "aria-haspopup"
|
|
3442
3442
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", 2);
|
|
3443
|
-
__decorateClass$
|
|
3443
|
+
__decorateClass$s([attr({
|
|
3444
3444
|
attribute: "aria-hidden"
|
|
3445
3445
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", 2);
|
|
3446
|
-
__decorateClass$
|
|
3446
|
+
__decorateClass$s([attr({
|
|
3447
3447
|
attribute: "aria-invalid"
|
|
3448
3448
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", 2);
|
|
3449
|
-
__decorateClass$
|
|
3449
|
+
__decorateClass$s([attr({
|
|
3450
3450
|
attribute: "aria-keyshortcuts"
|
|
3451
3451
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", 2);
|
|
3452
|
-
__decorateClass$
|
|
3452
|
+
__decorateClass$s([attr({
|
|
3453
3453
|
attribute: "aria-label"
|
|
3454
3454
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", 2);
|
|
3455
|
-
__decorateClass$
|
|
3455
|
+
__decorateClass$s([attr({
|
|
3456
3456
|
attribute: "aria-labelledby"
|
|
3457
3457
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", 2);
|
|
3458
|
-
__decorateClass$
|
|
3458
|
+
__decorateClass$s([attr({
|
|
3459
3459
|
attribute: "aria-live"
|
|
3460
3460
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLive", 2);
|
|
3461
|
-
__decorateClass$
|
|
3461
|
+
__decorateClass$s([attr({
|
|
3462
3462
|
attribute: "aria-owns"
|
|
3463
3463
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", 2);
|
|
3464
|
-
__decorateClass$
|
|
3464
|
+
__decorateClass$s([attr({
|
|
3465
3465
|
attribute: "aria-relevant"
|
|
3466
3466
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", 2);
|
|
3467
|
-
__decorateClass$
|
|
3467
|
+
__decorateClass$s([attr({
|
|
3468
3468
|
attribute: "aria-roledescription"
|
|
3469
3469
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", 2);
|
|
3470
3470
|
|
|
@@ -3633,12 +3633,12 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
3633
3633
|
});
|
|
3634
3634
|
}
|
|
3635
3635
|
|
|
3636
|
-
var __defProp$
|
|
3637
|
-
var __getOwnPropDesc$
|
|
3638
|
-
var __decorateClass$
|
|
3639
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3636
|
+
var __defProp$r = Object.defineProperty;
|
|
3637
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
3638
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
3639
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
3640
3640
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3641
|
-
if (kind && result) __defProp$
|
|
3641
|
+
if (kind && result) __defProp$r(target, key, result);
|
|
3642
3642
|
return result;
|
|
3643
3643
|
};
|
|
3644
3644
|
class AccordionItem extends FASTElement {
|
|
@@ -3660,23 +3660,23 @@ class AccordionItem extends FASTElement {
|
|
|
3660
3660
|
};
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
3663
|
-
__decorateClass$
|
|
3663
|
+
__decorateClass$r([attr({
|
|
3664
3664
|
attribute: "heading-level",
|
|
3665
3665
|
mode: "fromView",
|
|
3666
3666
|
converter: nullableNumberConverter
|
|
3667
3667
|
})], AccordionItem.prototype, "headinglevel", 2);
|
|
3668
|
-
__decorateClass$
|
|
3668
|
+
__decorateClass$r([attr({
|
|
3669
3669
|
mode: "boolean"
|
|
3670
3670
|
})], AccordionItem.prototype, "expanded", 2);
|
|
3671
|
-
__decorateClass$
|
|
3671
|
+
__decorateClass$r([attr({
|
|
3672
3672
|
mode: "boolean"
|
|
3673
3673
|
})], AccordionItem.prototype, "disabled", 2);
|
|
3674
|
-
__decorateClass$
|
|
3675
|
-
__decorateClass$
|
|
3676
|
-
__decorateClass$
|
|
3674
|
+
__decorateClass$r([attr], AccordionItem.prototype, "id", 2);
|
|
3675
|
+
__decorateClass$r([attr], AccordionItem.prototype, "size", 2);
|
|
3676
|
+
__decorateClass$r([attr({
|
|
3677
3677
|
mode: "boolean"
|
|
3678
3678
|
})], AccordionItem.prototype, "block", 2);
|
|
3679
|
-
__decorateClass$
|
|
3679
|
+
__decorateClass$r([attr({
|
|
3680
3680
|
attribute: "expand-icon-position"
|
|
3681
3681
|
})], AccordionItem.prototype, "expandIconPosition", 2);
|
|
3682
3682
|
applyMixins(AccordionItem, StartEnd);
|
|
@@ -3696,6 +3696,12 @@ const colorNeutralForeground3Hover = "var(--colorNeutralForeground3Hover)";
|
|
|
3696
3696
|
const colorNeutralForeground3Pressed = "var(--colorNeutralForeground3Pressed)";
|
|
3697
3697
|
const colorNeutralForeground4 = "var(--colorNeutralForeground4)";
|
|
3698
3698
|
const colorNeutralForegroundDisabled = "var(--colorNeutralForegroundDisabled)";
|
|
3699
|
+
const colorBrandForegroundLink = "var(--colorBrandForegroundLink)";
|
|
3700
|
+
const colorBrandForegroundLinkHover = "var(--colorBrandForegroundLinkHover)";
|
|
3701
|
+
const colorBrandForegroundLinkPressed = "var(--colorBrandForegroundLinkPressed)";
|
|
3702
|
+
const colorNeutralForeground2Link = "var(--colorNeutralForeground2Link)";
|
|
3703
|
+
const colorNeutralForeground2LinkHover = "var(--colorNeutralForeground2LinkHover)";
|
|
3704
|
+
const colorNeutralForeground2LinkPressed = "var(--colorNeutralForeground2LinkPressed)";
|
|
3699
3705
|
const colorCompoundBrandForeground1 = "var(--colorCompoundBrandForeground1)";
|
|
3700
3706
|
const colorCompoundBrandForeground1Hover = "var(--colorCompoundBrandForeground1Hover)";
|
|
3701
3707
|
const colorCompoundBrandForeground1Pressed = "var(--colorCompoundBrandForeground1Pressed)";
|
|
@@ -3910,7 +3916,7 @@ const curveEasyEaseMax = "var(--curveEasyEaseMax)";
|
|
|
3910
3916
|
const curveEasyEase = "var(--curveEasyEase)";
|
|
3911
3917
|
const curveLinear = "var(--curveLinear)";
|
|
3912
3918
|
|
|
3913
|
-
const styles$
|
|
3919
|
+
const styles$u = css`
|
|
3914
3920
|
${display("block")}
|
|
3915
3921
|
|
|
3916
3922
|
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;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}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${colorNeutralForeground1};background:${colorTransparentBackground};line-height:${lineHeightBase300};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${spacingHorizontalS};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${spacingHorizontalM}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2 / span 1;grid-row:1 / span 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([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='small']) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='extra-large']) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`;
|
|
@@ -3944,30 +3950,30 @@ const chevronDown20Filled = html.partial(`<svg
|
|
|
3944
3950
|
function accordionItemTemplate(options = {}) {
|
|
3945
3951
|
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}" @click="${(x, c) => x.clickHandler(c.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${startSlotTemplate(options)} ${endSlotTemplate(options)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${staticallyCompose(options.expandedIcon)}</slot><slot name="collapsed-icon">${staticallyCompose(options.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${x => x.id}-panel" role="region" aria-labelledby="${x => x.id}"><slot></slot></div>`;
|
|
3946
3952
|
}
|
|
3947
|
-
const template$
|
|
3953
|
+
const template$v = accordionItemTemplate({
|
|
3948
3954
|
collapsedIcon: chevronRight20Filled,
|
|
3949
3955
|
expandedIcon: chevronDown20Filled
|
|
3950
3956
|
});
|
|
3951
3957
|
|
|
3952
|
-
const definition$
|
|
3958
|
+
const definition$v = AccordionItem.compose({
|
|
3953
3959
|
name: `${FluentDesignSystem.prefix}-accordion-item`,
|
|
3954
|
-
template: template$
|
|
3955
|
-
styles: styles$
|
|
3960
|
+
template: template$v,
|
|
3961
|
+
styles: styles$u
|
|
3956
3962
|
});
|
|
3957
3963
|
|
|
3958
|
-
definition$
|
|
3964
|
+
definition$v.define(FluentDesignSystem.registry);
|
|
3959
3965
|
|
|
3960
3966
|
const AccordionExpandMode = {
|
|
3961
3967
|
single: "single",
|
|
3962
3968
|
multi: "multi"
|
|
3963
3969
|
};
|
|
3964
3970
|
|
|
3965
|
-
var __defProp$
|
|
3966
|
-
var __getOwnPropDesc$
|
|
3967
|
-
var __decorateClass$
|
|
3968
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3971
|
+
var __defProp$q = Object.defineProperty;
|
|
3972
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
3973
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
3974
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
3969
3975
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3970
|
-
if (kind && result) __defProp$
|
|
3976
|
+
if (kind && result) __defProp$q(target, key, result);
|
|
3971
3977
|
return result;
|
|
3972
3978
|
};
|
|
3973
3979
|
class Accordion extends FASTElement {
|
|
@@ -4145,12 +4151,12 @@ class Accordion extends FASTElement {
|
|
|
4145
4151
|
}
|
|
4146
4152
|
}
|
|
4147
4153
|
}
|
|
4148
|
-
__decorateClass$
|
|
4154
|
+
__decorateClass$q([attr({
|
|
4149
4155
|
attribute: "expand-mode"
|
|
4150
4156
|
})], Accordion.prototype, "expandmode", 2);
|
|
4151
|
-
__decorateClass$
|
|
4157
|
+
__decorateClass$q([observable], Accordion.prototype, "slottedAccordionItems", 2);
|
|
4152
4158
|
|
|
4153
|
-
const styles$
|
|
4159
|
+
const styles$t = css`
|
|
4154
4160
|
${display("flex")}
|
|
4155
4161
|
|
|
4156
4162
|
:host{flex-direction:column;width:100%;contain:content}`;
|
|
@@ -4161,15 +4167,15 @@ function accordionTemplate() {
|
|
|
4161
4167
|
filter: elements()
|
|
4162
4168
|
})}></slot></template>`;
|
|
4163
4169
|
}
|
|
4164
|
-
const template$
|
|
4170
|
+
const template$u = accordionTemplate();
|
|
4165
4171
|
|
|
4166
|
-
const definition$
|
|
4172
|
+
const definition$u = Accordion.compose({
|
|
4167
4173
|
name: `${FluentDesignSystem.prefix}-accordion`,
|
|
4168
|
-
template: template$
|
|
4169
|
-
styles: styles$
|
|
4174
|
+
template: template$u,
|
|
4175
|
+
styles: styles$t
|
|
4170
4176
|
});
|
|
4171
4177
|
|
|
4172
|
-
definition$
|
|
4178
|
+
definition$u.define(FluentDesignSystem.registry);
|
|
4173
4179
|
|
|
4174
4180
|
const ButtonType = {
|
|
4175
4181
|
submit: "submit",
|
|
@@ -4188,15 +4194,15 @@ const AnchorAttributes = {
|
|
|
4188
4194
|
type: "type"
|
|
4189
4195
|
};
|
|
4190
4196
|
|
|
4191
|
-
var __defProp$
|
|
4192
|
-
var __getOwnPropDesc$
|
|
4193
|
-
var __decorateClass$
|
|
4194
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4197
|
+
var __defProp$p = Object.defineProperty;
|
|
4198
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
4199
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
4200
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
4195
4201
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4196
|
-
if (kind && result) __defProp$
|
|
4202
|
+
if (kind && result) __defProp$p(target, key, result);
|
|
4197
4203
|
return result;
|
|
4198
4204
|
};
|
|
4199
|
-
class
|
|
4205
|
+
class BaseAnchor extends FASTElement {
|
|
4200
4206
|
constructor() {
|
|
4201
4207
|
super();
|
|
4202
4208
|
/**
|
|
@@ -4210,7 +4216,6 @@ class AnchorButton extends FASTElement {
|
|
|
4210
4216
|
* @internal
|
|
4211
4217
|
*/
|
|
4212
4218
|
this.internalProxyAnchor = this.createProxyElement();
|
|
4213
|
-
this.iconOnly = false;
|
|
4214
4219
|
this.elementInternals.role = "link";
|
|
4215
4220
|
}
|
|
4216
4221
|
connectedCallback() {
|
|
@@ -4228,8 +4233,8 @@ class AnchorButton extends FASTElement {
|
|
|
4228
4233
|
/**
|
|
4229
4234
|
* Handles changes to observable properties
|
|
4230
4235
|
* @internal
|
|
4231
|
-
* @param source
|
|
4232
|
-
* @param propertyName
|
|
4236
|
+
* @param source - the source of the change
|
|
4237
|
+
* @param propertyName - the property name being changed
|
|
4233
4238
|
*/
|
|
4234
4239
|
handleChange(source, propertyName) {
|
|
4235
4240
|
if (propertyName in AnchorAttributes) {
|
|
@@ -4266,8 +4271,8 @@ class AnchorButton extends FASTElement {
|
|
|
4266
4271
|
/**
|
|
4267
4272
|
* A method for updating proxy attributes when attributes have changed
|
|
4268
4273
|
* @internal
|
|
4269
|
-
* @param attribute
|
|
4270
|
-
* @param value
|
|
4274
|
+
* @param attribute - an attribute to set/remove
|
|
4275
|
+
* @param value - the value of the attribute
|
|
4271
4276
|
*/
|
|
4272
4277
|
handleProxyAttributeChange(attribute, value) {
|
|
4273
4278
|
if (value) {
|
|
@@ -4282,18 +4287,24 @@ class AnchorButton extends FASTElement {
|
|
|
4282
4287
|
return proxy;
|
|
4283
4288
|
}
|
|
4284
4289
|
}
|
|
4285
|
-
__decorateClass$
|
|
4286
|
-
__decorateClass$
|
|
4287
|
-
__decorateClass$
|
|
4288
|
-
__decorateClass$
|
|
4289
|
-
__decorateClass$
|
|
4290
|
-
__decorateClass$
|
|
4291
|
-
__decorateClass$
|
|
4292
|
-
__decorateClass$
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4290
|
+
__decorateClass$p([attr], BaseAnchor.prototype, "download", 2);
|
|
4291
|
+
__decorateClass$p([attr], BaseAnchor.prototype, "href", 2);
|
|
4292
|
+
__decorateClass$p([attr], BaseAnchor.prototype, "hreflang", 2);
|
|
4293
|
+
__decorateClass$p([attr], BaseAnchor.prototype, "ping", 2);
|
|
4294
|
+
__decorateClass$p([attr], BaseAnchor.prototype, "referrerpolicy", 2);
|
|
4295
|
+
__decorateClass$p([attr], BaseAnchor.prototype, "rel", 2);
|
|
4296
|
+
__decorateClass$p([attr], BaseAnchor.prototype, "target", 2);
|
|
4297
|
+
__decorateClass$p([attr], BaseAnchor.prototype, "type", 2);
|
|
4298
|
+
class AnchorButton extends BaseAnchor {
|
|
4299
|
+
constructor() {
|
|
4300
|
+
super(...arguments);
|
|
4301
|
+
this.iconOnly = false;
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
__decorateClass$p([attr], AnchorButton.prototype, "appearance", 2);
|
|
4305
|
+
__decorateClass$p([attr], AnchorButton.prototype, "shape", 2);
|
|
4306
|
+
__decorateClass$p([attr], AnchorButton.prototype, "size", 2);
|
|
4307
|
+
__decorateClass$p([attr({
|
|
4297
4308
|
attribute: "icon-only",
|
|
4298
4309
|
mode: "boolean"
|
|
4299
4310
|
})], AnchorButton.prototype, "iconOnly", 2);
|
|
@@ -4303,27 +4314,27 @@ const baseButtonStyles = css`
|
|
|
4303
4314
|
${display("inline-flex")}
|
|
4304
4315
|
|
|
4305
4316
|
:host{--icon-spacing:${spacingHorizontalSNudge};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){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--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([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']),:host([shape='circular']:focus-visible){border-radius:${borderRadiusCircular}}:host([shape='square']),:host([shape='square']:focus-visible){border-radius:${borderRadiusNone}}:host([appearance='primary']){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host([appearance='primary']:hover){background-color:${colorBrandBackgroundHover}}:host([appearance='primary']:hover),:host([appearance='primary']:hover:active){border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host([appearance='primary']:hover:active){background-color:${colorBrandBackgroundPressed}}:host([appearance='primary']:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host([appearance='outline']){background-color:${colorTransparentBackground}}:host([appearance='outline']:hover){background-color:${colorTransparentBackgroundHover}}:host([appearance='outline']:hover:active){background-color:${colorTransparentBackgroundPressed}}:host([appearance='subtle']){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host([appearance='subtle']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host([appearance='transparent']){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host([appearance='transparent']:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host([appearance='transparent']),:host([appearance='transparent']:hover),:host([appearance='transparent']:hover:active){border-color:transparent}`;
|
|
4306
|
-
const styles$
|
|
4317
|
+
const styles$s = css`
|
|
4307
4318
|
${baseButtonStyles}
|
|
4308
4319
|
|
|
4309
4320
|
: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(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary'])),:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary']):hover),:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary']):hover:active){border-color:transparent}:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline'])),:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline']):hover),:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline']):hover:active){background-color:${colorTransparentBackground}}:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle'])),:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle']):hover),:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle']):hover:active){background-color:${colorTransparentBackground};border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent'])),:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent']):hover),:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent']):hover:active){border-color:transparent;background-color:${colorTransparentBackground}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
4310
4321
|
:host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`));
|
|
4311
4322
|
|
|
4312
|
-
const styles$
|
|
4323
|
+
const styles$r = baseButtonStyles.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
4313
4324
|
:host{border-color:LinkText;color:LinkText}`));
|
|
4314
4325
|
|
|
4315
|
-
function anchorTemplate(options = {}) {
|
|
4326
|
+
function anchorTemplate$1(options = {}) {
|
|
4316
4327
|
return html`<template tabindex="0" @click="${x => x.clickHandler()}" @keypress="${(x, c) => x.keypressHandler(c.event)}">${startSlotTemplate(options)}<span class="content" part="content"><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
4317
4328
|
}
|
|
4318
|
-
const template$
|
|
4329
|
+
const template$t = anchorTemplate$1();
|
|
4319
4330
|
|
|
4320
|
-
const definition$
|
|
4331
|
+
const definition$t = AnchorButton.compose({
|
|
4321
4332
|
name: `${FluentDesignSystem.prefix}-anchor-button`,
|
|
4322
|
-
template: template$
|
|
4323
|
-
styles: styles$
|
|
4333
|
+
template: template$t,
|
|
4334
|
+
styles: styles$r
|
|
4324
4335
|
});
|
|
4325
4336
|
|
|
4326
|
-
definition$
|
|
4337
|
+
definition$t.define(FluentDesignSystem.registry);
|
|
4327
4338
|
|
|
4328
4339
|
const UNWANTED_ENCLOSURES_REGEX = /[\(\[\{][^\)\]\}]*[\)\]\}]/g;
|
|
4329
4340
|
const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
|
|
@@ -4405,12 +4416,12 @@ const AvatarColor = {
|
|
|
4405
4416
|
...AvatarNamedColor
|
|
4406
4417
|
};
|
|
4407
4418
|
|
|
4408
|
-
var __defProp$
|
|
4409
|
-
var __getOwnPropDesc$
|
|
4410
|
-
var __decorateClass$
|
|
4411
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4419
|
+
var __defProp$o = Object.defineProperty;
|
|
4420
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
4421
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
4422
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
4412
4423
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4413
|
-
if (kind && result) __defProp$
|
|
4424
|
+
if (kind && result) __defProp$o(target, key, result);
|
|
4414
4425
|
return result;
|
|
4415
4426
|
};
|
|
4416
4427
|
const _Avatar = class _Avatar extends FASTElement {
|
|
@@ -4446,16 +4457,16 @@ const _Avatar = class _Avatar extends FASTElement {
|
|
|
4446
4457
|
* An array of the available Avatar named colors
|
|
4447
4458
|
*/
|
|
4448
4459
|
_Avatar.colors = Object.values(AvatarNamedColor);
|
|
4449
|
-
__decorateClass$
|
|
4450
|
-
__decorateClass$
|
|
4451
|
-
__decorateClass$
|
|
4460
|
+
__decorateClass$o([attr], _Avatar.prototype, "name", 2);
|
|
4461
|
+
__decorateClass$o([attr], _Avatar.prototype, "initials", 2);
|
|
4462
|
+
__decorateClass$o([attr({
|
|
4452
4463
|
converter: nullableNumberConverter
|
|
4453
4464
|
})], _Avatar.prototype, "size", 2);
|
|
4454
|
-
__decorateClass$
|
|
4455
|
-
__decorateClass$
|
|
4456
|
-
__decorateClass$
|
|
4457
|
-
__decorateClass$
|
|
4458
|
-
__decorateClass$
|
|
4465
|
+
__decorateClass$o([attr], _Avatar.prototype, "shape", 2);
|
|
4466
|
+
__decorateClass$o([attr], _Avatar.prototype, "active", 2);
|
|
4467
|
+
__decorateClass$o([attr], _Avatar.prototype, "appearance", 2);
|
|
4468
|
+
__decorateClass$o([attr], _Avatar.prototype, "color", 2);
|
|
4469
|
+
__decorateClass$o([attr({
|
|
4459
4470
|
attribute: "color-id"
|
|
4460
4471
|
})], _Avatar.prototype, "colorId", 2);
|
|
4461
4472
|
let Avatar = _Avatar;
|
|
@@ -4480,22 +4491,22 @@ const animations = {
|
|
|
4480
4491
|
normalEase: curveEasyEase,
|
|
4481
4492
|
nullEasing: curveLinear
|
|
4482
4493
|
};
|
|
4483
|
-
const styles$
|
|
4494
|
+
const styles$q = css`
|
|
4484
4495
|
${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([data-color='brand']){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host([data-color='dark-red']){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host([data-color='cranberry']){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host([data-color='red']){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host([data-color='pumpkin']){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host([data-color='peach']){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host([data-color='marigold']){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host([data-color='gold']){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host([data-color='brass']){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host([data-color='brown']){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host([data-color='forest']){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host([data-color='seafoam']){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host([data-color='dark-green']){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host([data-color='light-teal']){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host([data-color='teal']){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host([data-color='steel']){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host([data-color='blue']){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host([data-color='royal-blue']){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host([data-color='cornflower']){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host([data-color='navy']){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host([data-color='lavender']){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host([data-color='purple']){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host([data-color='grape']){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host([data-color='lilac']){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host([data-color='pink']){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host([data-color='magenta']){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host([data-color='plum']){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host([data-color='beige']){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host([data-color='mink']){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host([data-color='platinum']){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host([data-color='anchor']){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}}`;
|
|
4485
4496
|
|
|
4486
4497
|
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>`;
|
|
4487
4498
|
function avatarTemplate() {
|
|
4488
4499
|
return html`<template role="img" data-color=${x => x.generateColor()}><slot>${x => x.name || x.initials ? x.generateInitials() : defaultIconTemplate}</slot><slot name="badge"></slot></template>`;
|
|
4489
4500
|
}
|
|
4490
|
-
const template$
|
|
4501
|
+
const template$s = avatarTemplate();
|
|
4491
4502
|
|
|
4492
|
-
const definition$
|
|
4503
|
+
const definition$s = Avatar.compose({
|
|
4493
4504
|
name: `${FluentDesignSystem.prefix}-avatar`,
|
|
4494
|
-
template: template$
|
|
4495
|
-
styles: styles$
|
|
4505
|
+
template: template$s,
|
|
4506
|
+
styles: styles$q
|
|
4496
4507
|
});
|
|
4497
4508
|
|
|
4498
|
-
definition$
|
|
4509
|
+
definition$s.define(FluentDesignSystem.registry);
|
|
4499
4510
|
|
|
4500
4511
|
const BadgeAppearance = {
|
|
4501
4512
|
filled: "filled",
|
|
@@ -4514,12 +4525,12 @@ const BadgeColor = {
|
|
|
4514
4525
|
warning: "warning"
|
|
4515
4526
|
};
|
|
4516
4527
|
|
|
4517
|
-
var __defProp$
|
|
4518
|
-
var __getOwnPropDesc$
|
|
4519
|
-
var __decorateClass$
|
|
4520
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4528
|
+
var __defProp$n = Object.defineProperty;
|
|
4529
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
4530
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
4531
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
4521
4532
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4522
|
-
if (kind && result) __defProp$
|
|
4533
|
+
if (kind && result) __defProp$n(target, key, result);
|
|
4523
4534
|
return result;
|
|
4524
4535
|
};
|
|
4525
4536
|
class Badge extends FASTElement {
|
|
@@ -4529,10 +4540,10 @@ class Badge extends FASTElement {
|
|
|
4529
4540
|
this.color = BadgeColor.brand;
|
|
4530
4541
|
}
|
|
4531
4542
|
}
|
|
4532
|
-
__decorateClass$
|
|
4533
|
-
__decorateClass$
|
|
4534
|
-
__decorateClass$
|
|
4535
|
-
__decorateClass$
|
|
4543
|
+
__decorateClass$n([attr], Badge.prototype, "appearance", 2);
|
|
4544
|
+
__decorateClass$n([attr], Badge.prototype, "color", 2);
|
|
4545
|
+
__decorateClass$n([attr], Badge.prototype, "shape", 2);
|
|
4546
|
+
__decorateClass$n([attr], Badge.prototype, "size", 2);
|
|
4536
4547
|
applyMixins(Badge, StartEnd);
|
|
4537
4548
|
|
|
4538
4549
|
const textPadding = spacingHorizontalXXS;
|
|
@@ -4887,7 +4898,7 @@ css.partial`
|
|
|
4887
4898
|
font-weight: ${fontWeightSemibold};
|
|
4888
4899
|
`;
|
|
4889
4900
|
|
|
4890
|
-
const styles$
|
|
4901
|
+
const styles$p = css`
|
|
4891
4902
|
:host([shape='square']){border-radius:${borderRadiusNone}}:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
4892
4903
|
${badgeFilledStyles}
|
|
4893
4904
|
${badgeGhostStyles}
|
|
@@ -4900,22 +4911,22 @@ const styles$o = css`
|
|
|
4900
4911
|
function badgeTemplate(options = {}) {
|
|
4901
4912
|
return html` ${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)} `;
|
|
4902
4913
|
}
|
|
4903
|
-
const template$
|
|
4914
|
+
const template$r = badgeTemplate();
|
|
4904
4915
|
|
|
4905
|
-
const definition$
|
|
4916
|
+
const definition$r = Badge.compose({
|
|
4906
4917
|
name: `${FluentDesignSystem.prefix}-badge`,
|
|
4907
|
-
template: template$
|
|
4908
|
-
styles: styles$
|
|
4918
|
+
template: template$r,
|
|
4919
|
+
styles: styles$p
|
|
4909
4920
|
});
|
|
4910
4921
|
|
|
4911
|
-
definition$
|
|
4922
|
+
definition$r.define(FluentDesignSystem.registry);
|
|
4912
4923
|
|
|
4913
|
-
var __defProp$
|
|
4914
|
-
var __getOwnPropDesc$
|
|
4915
|
-
var __decorateClass$
|
|
4916
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4924
|
+
var __defProp$m = Object.defineProperty;
|
|
4925
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
4926
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
4927
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
4917
4928
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4918
|
-
if (kind && result) __defProp$
|
|
4929
|
+
if (kind && result) __defProp$m(target, key, result);
|
|
4919
4930
|
return result;
|
|
4920
4931
|
};
|
|
4921
4932
|
class Button extends FASTElement {
|
|
@@ -5119,60 +5130,60 @@ class Button extends FASTElement {
|
|
|
5119
5130
|
* @public
|
|
5120
5131
|
*/
|
|
5121
5132
|
Button.formAssociated = true;
|
|
5122
|
-
__decorateClass$
|
|
5123
|
-
__decorateClass$
|
|
5133
|
+
__decorateClass$m([attr], Button.prototype, "appearance", 2);
|
|
5134
|
+
__decorateClass$m([attr({
|
|
5124
5135
|
mode: "boolean"
|
|
5125
5136
|
})], Button.prototype, "autofocus", 2);
|
|
5126
|
-
__decorateClass$
|
|
5127
|
-
__decorateClass$
|
|
5137
|
+
__decorateClass$m([observable], Button.prototype, "defaultSlottedContent", 2);
|
|
5138
|
+
__decorateClass$m([attr({
|
|
5128
5139
|
mode: "boolean"
|
|
5129
5140
|
})], Button.prototype, "disabled", 2);
|
|
5130
|
-
__decorateClass$
|
|
5141
|
+
__decorateClass$m([attr({
|
|
5131
5142
|
attribute: "disabled-focusable",
|
|
5132
5143
|
mode: "boolean"
|
|
5133
5144
|
})], Button.prototype, "disabledFocusable", 2);
|
|
5134
|
-
__decorateClass$
|
|
5145
|
+
__decorateClass$m([attr({
|
|
5135
5146
|
attribute: "formaction"
|
|
5136
5147
|
})], Button.prototype, "formAction", 2);
|
|
5137
|
-
__decorateClass$
|
|
5148
|
+
__decorateClass$m([attr({
|
|
5138
5149
|
attribute: "form"
|
|
5139
5150
|
})], Button.prototype, "formAttribute", 2);
|
|
5140
|
-
__decorateClass$
|
|
5151
|
+
__decorateClass$m([attr({
|
|
5141
5152
|
attribute: "formenctype"
|
|
5142
5153
|
})], Button.prototype, "formEnctype", 2);
|
|
5143
|
-
__decorateClass$
|
|
5154
|
+
__decorateClass$m([attr({
|
|
5144
5155
|
attribute: "formmethod"
|
|
5145
5156
|
})], Button.prototype, "formMethod", 2);
|
|
5146
|
-
__decorateClass$
|
|
5157
|
+
__decorateClass$m([attr({
|
|
5147
5158
|
attribute: "formnovalidate",
|
|
5148
5159
|
mode: "boolean"
|
|
5149
5160
|
})], Button.prototype, "formNoValidate", 2);
|
|
5150
|
-
__decorateClass$
|
|
5161
|
+
__decorateClass$m([attr({
|
|
5151
5162
|
attribute: "formtarget"
|
|
5152
5163
|
})], Button.prototype, "formTarget", 2);
|
|
5153
|
-
__decorateClass$
|
|
5164
|
+
__decorateClass$m([attr({
|
|
5154
5165
|
attribute: "icon-only",
|
|
5155
5166
|
mode: "boolean"
|
|
5156
5167
|
})], Button.prototype, "iconOnly", 2);
|
|
5157
|
-
__decorateClass$
|
|
5158
|
-
__decorateClass$
|
|
5159
|
-
__decorateClass$
|
|
5160
|
-
__decorateClass$
|
|
5161
|
-
__decorateClass$
|
|
5168
|
+
__decorateClass$m([attr], Button.prototype, "name", 2);
|
|
5169
|
+
__decorateClass$m([attr], Button.prototype, "shape", 2);
|
|
5170
|
+
__decorateClass$m([attr], Button.prototype, "size", 2);
|
|
5171
|
+
__decorateClass$m([attr], Button.prototype, "type", 2);
|
|
5172
|
+
__decorateClass$m([attr], Button.prototype, "value", 2);
|
|
5162
5173
|
applyMixins(Button, StartEnd);
|
|
5163
5174
|
|
|
5164
5175
|
function buttonTemplate$1(options = {}) {
|
|
5165
5176
|
return html`<template tabindex="${x => x.disabled ? -1 : 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>`;
|
|
5166
5177
|
}
|
|
5167
|
-
const template$
|
|
5178
|
+
const template$q = buttonTemplate$1();
|
|
5168
5179
|
|
|
5169
|
-
const definition$
|
|
5180
|
+
const definition$q = Button.compose({
|
|
5170
5181
|
name: `${FluentDesignSystem.prefix}-button`,
|
|
5171
|
-
template: template$
|
|
5172
|
-
styles: styles$
|
|
5182
|
+
template: template$q,
|
|
5183
|
+
styles: styles$s
|
|
5173
5184
|
});
|
|
5174
5185
|
|
|
5175
|
-
definition$
|
|
5186
|
+
definition$q.define(FluentDesignSystem.registry);
|
|
5176
5187
|
|
|
5177
5188
|
const CustomStatesSetSupported = CSS.supports("selector(:state(g))");
|
|
5178
5189
|
function toggleState(elementInternals, state, force) {
|
|
@@ -5188,12 +5199,12 @@ function toggleState(elementInternals, state, force) {
|
|
|
5188
5199
|
elementInternals.states.delete(state);
|
|
5189
5200
|
}
|
|
5190
5201
|
|
|
5191
|
-
var __defProp$
|
|
5192
|
-
var __getOwnPropDesc$
|
|
5193
|
-
var __decorateClass$
|
|
5194
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5202
|
+
var __defProp$l = Object.defineProperty;
|
|
5203
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
5204
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
5205
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
5195
5206
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5196
|
-
if (kind && result) __defProp$
|
|
5207
|
+
if (kind && result) __defProp$l(target, key, result);
|
|
5197
5208
|
return result;
|
|
5198
5209
|
};
|
|
5199
5210
|
class BaseCheckbox extends FASTElement {
|
|
@@ -5520,35 +5531,35 @@ class BaseCheckbox extends FASTElement {
|
|
|
5520
5531
|
* @public
|
|
5521
5532
|
*/
|
|
5522
5533
|
BaseCheckbox.formAssociated = true;
|
|
5523
|
-
__decorateClass$
|
|
5534
|
+
__decorateClass$l([attr({
|
|
5524
5535
|
mode: "boolean"
|
|
5525
5536
|
})], BaseCheckbox.prototype, "autofocus", 2);
|
|
5526
|
-
__decorateClass$
|
|
5537
|
+
__decorateClass$l([attr({
|
|
5527
5538
|
mode: "boolean"
|
|
5528
5539
|
})], BaseCheckbox.prototype, "disabled", 2);
|
|
5529
|
-
__decorateClass$
|
|
5540
|
+
__decorateClass$l([attr({
|
|
5530
5541
|
attribute: "form"
|
|
5531
5542
|
})], BaseCheckbox.prototype, "formAttribute", 2);
|
|
5532
|
-
__decorateClass$
|
|
5533
|
-
__decorateClass$
|
|
5543
|
+
__decorateClass$l([observable], BaseCheckbox.prototype, "indeterminate", 2);
|
|
5544
|
+
__decorateClass$l([attr({
|
|
5534
5545
|
attribute: "checked",
|
|
5535
5546
|
mode: "boolean"
|
|
5536
5547
|
})], BaseCheckbox.prototype, "initialChecked", 2);
|
|
5537
|
-
__decorateClass$
|
|
5548
|
+
__decorateClass$l([attr({
|
|
5538
5549
|
attribute: "value",
|
|
5539
5550
|
mode: "fromView"
|
|
5540
5551
|
})], BaseCheckbox.prototype, "initialValue", 2);
|
|
5541
|
-
__decorateClass$
|
|
5542
|
-
__decorateClass$
|
|
5552
|
+
__decorateClass$l([attr], BaseCheckbox.prototype, "name", 2);
|
|
5553
|
+
__decorateClass$l([attr({
|
|
5543
5554
|
mode: "boolean"
|
|
5544
5555
|
})], BaseCheckbox.prototype, "required", 2);
|
|
5545
5556
|
class Checkbox extends BaseCheckbox {}
|
|
5546
|
-
__decorateClass$
|
|
5547
|
-
__decorateClass$
|
|
5557
|
+
__decorateClass$l([attr], Checkbox.prototype, "shape", 2);
|
|
5558
|
+
__decorateClass$l([attr], Checkbox.prototype, "size", 2);
|
|
5548
5559
|
|
|
5549
5560
|
const checkedState$1 = css.partial`:is([state--checked], :state(checked))`;
|
|
5550
5561
|
const indeterminateState = css.partial`:is([state--indeterminate], :state(indeterminate))`;
|
|
5551
|
-
const styles$
|
|
5562
|
+
const styles$o = css`
|
|
5552
5563
|
${display("inline-flex")}
|
|
5553
5564
|
|
|
5554
5565
|
: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$1}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState$1}: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$1})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState$1}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState$1}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState$1}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState$1}) .checked-indicator{color:${colorNeutralStrokeDisabled}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -5574,23 +5585,23 @@ const indeterminateIndicator = html.partial( /* html */
|
|
|
5574
5585
|
function checkboxTemplate(options = {}) {
|
|
5575
5586
|
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>`;
|
|
5576
5587
|
}
|
|
5577
|
-
const template$
|
|
5588
|
+
const template$p = checkboxTemplate({
|
|
5578
5589
|
checkedIndicator,
|
|
5579
5590
|
indeterminateIndicator
|
|
5580
5591
|
});
|
|
5581
5592
|
|
|
5582
|
-
const definition$
|
|
5593
|
+
const definition$p = Checkbox.compose({
|
|
5583
5594
|
name: `${FluentDesignSystem.prefix}-checkbox`,
|
|
5584
|
-
template: template$
|
|
5585
|
-
styles: styles$
|
|
5595
|
+
template: template$p,
|
|
5596
|
+
styles: styles$o
|
|
5586
5597
|
});
|
|
5587
5598
|
|
|
5588
|
-
definition$
|
|
5599
|
+
definition$p.define(FluentDesignSystem.registry);
|
|
5589
5600
|
|
|
5590
5601
|
class CompoundButton extends Button {}
|
|
5591
5602
|
|
|
5592
|
-
const styles$
|
|
5593
|
-
${styles$
|
|
5603
|
+
const styles$n = css`
|
|
5604
|
+
${styles$s}
|
|
5594
5605
|
|
|
5595
5606
|
: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([size='large']) ::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([appearance='primary'],[appearance='primary']:hover,[appearance='primary']:active))
|
|
5596
5607
|
::slotted([slot='description']){color:${colorNeutralForegroundOnBrand}}:host(:is([appearance='subtle'],[appearance='subtle']:hover,[appearance='subtle']:active))
|
|
@@ -5600,22 +5611,22 @@ const styles$m = css`
|
|
|
5600
5611
|
function buttonTemplate(options = {}) {
|
|
5601
5612
|
return html`<template ?disabled="${x => x.disabled}" tabindex="${x => x.disabled ? -1 : 0}">${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot><slot name="description"></slot></span>${endSlotTemplate(options)}</template>`;
|
|
5602
5613
|
}
|
|
5603
|
-
const template$
|
|
5614
|
+
const template$o = buttonTemplate();
|
|
5604
5615
|
|
|
5605
|
-
const definition$
|
|
5616
|
+
const definition$o = CompoundButton.compose({
|
|
5606
5617
|
name: `${FluentDesignSystem.prefix}-compound-button`,
|
|
5607
|
-
template: template$
|
|
5608
|
-
styles: styles$
|
|
5618
|
+
template: template$o,
|
|
5619
|
+
styles: styles$n
|
|
5609
5620
|
});
|
|
5610
5621
|
|
|
5611
|
-
definition$
|
|
5622
|
+
definition$o.define(FluentDesignSystem.registry);
|
|
5612
5623
|
|
|
5613
|
-
var __defProp$
|
|
5614
|
-
var __getOwnPropDesc$
|
|
5615
|
-
var __decorateClass$
|
|
5616
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5624
|
+
var __defProp$k = Object.defineProperty;
|
|
5625
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
5626
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
5627
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
5617
5628
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5618
|
-
if (kind && result) __defProp$
|
|
5629
|
+
if (kind && result) __defProp$k(target, key, result);
|
|
5619
5630
|
return result;
|
|
5620
5631
|
};
|
|
5621
5632
|
class CounterBadge extends FASTElement {
|
|
@@ -5646,27 +5657,27 @@ class CounterBadge extends FASTElement {
|
|
|
5646
5657
|
return;
|
|
5647
5658
|
}
|
|
5648
5659
|
}
|
|
5649
|
-
__decorateClass$
|
|
5650
|
-
__decorateClass$
|
|
5651
|
-
__decorateClass$
|
|
5652
|
-
__decorateClass$
|
|
5653
|
-
__decorateClass$
|
|
5660
|
+
__decorateClass$k([attr], CounterBadge.prototype, "appearance", 2);
|
|
5661
|
+
__decorateClass$k([attr], CounterBadge.prototype, "color", 2);
|
|
5662
|
+
__decorateClass$k([attr], CounterBadge.prototype, "shape", 2);
|
|
5663
|
+
__decorateClass$k([attr], CounterBadge.prototype, "size", 2);
|
|
5664
|
+
__decorateClass$k([attr({
|
|
5654
5665
|
converter: nullableNumberConverter
|
|
5655
5666
|
})], CounterBadge.prototype, "count", 2);
|
|
5656
|
-
__decorateClass$
|
|
5667
|
+
__decorateClass$k([attr({
|
|
5657
5668
|
attribute: "overflow-count",
|
|
5658
5669
|
converter: nullableNumberConverter
|
|
5659
5670
|
})], CounterBadge.prototype, "overflowCount", 2);
|
|
5660
|
-
__decorateClass$
|
|
5671
|
+
__decorateClass$k([attr({
|
|
5661
5672
|
attribute: "show-zero",
|
|
5662
5673
|
mode: "boolean"
|
|
5663
5674
|
})], CounterBadge.prototype, "showZero", 2);
|
|
5664
|
-
__decorateClass$
|
|
5675
|
+
__decorateClass$k([attr({
|
|
5665
5676
|
mode: "boolean"
|
|
5666
5677
|
})], CounterBadge.prototype, "dot", 2);
|
|
5667
5678
|
applyMixins(CounterBadge, StartEnd);
|
|
5668
5679
|
|
|
5669
|
-
const styles$
|
|
5680
|
+
const styles$m = css`
|
|
5670
5681
|
:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
5671
5682
|
${badgeFilledStyles}
|
|
5672
5683
|
${badgeGhostStyles}
|
|
@@ -5679,15 +5690,15 @@ function composeTemplate(options = {}) {
|
|
|
5679
5690
|
defaultContent: html`${x => x.setCount()}`
|
|
5680
5691
|
});
|
|
5681
5692
|
}
|
|
5682
|
-
const template$
|
|
5693
|
+
const template$n = composeTemplate();
|
|
5683
5694
|
|
|
5684
|
-
const definition$
|
|
5695
|
+
const definition$n = CounterBadge.compose({
|
|
5685
5696
|
name: `${FluentDesignSystem.prefix}-counter-badge`,
|
|
5686
|
-
template: template$
|
|
5687
|
-
styles: styles$
|
|
5697
|
+
template: template$n,
|
|
5698
|
+
styles: styles$m
|
|
5688
5699
|
});
|
|
5689
5700
|
|
|
5690
|
-
definition$
|
|
5701
|
+
definition$n.define(FluentDesignSystem.registry);
|
|
5691
5702
|
|
|
5692
5703
|
const DialogType = {
|
|
5693
5704
|
modal: "modal",
|
|
@@ -5695,12 +5706,12 @@ const DialogType = {
|
|
|
5695
5706
|
alert: "alert"
|
|
5696
5707
|
};
|
|
5697
5708
|
|
|
5698
|
-
var __defProp$
|
|
5699
|
-
var __getOwnPropDesc$
|
|
5700
|
-
var __decorateClass$
|
|
5701
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5709
|
+
var __defProp$j = Object.defineProperty;
|
|
5710
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
5711
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
5712
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
5702
5713
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5703
|
-
if (kind && result) __defProp$
|
|
5714
|
+
if (kind && result) __defProp$j(target, key, result);
|
|
5704
5715
|
return result;
|
|
5705
5716
|
};
|
|
5706
5717
|
class Dialog extends FASTElement {
|
|
@@ -5768,35 +5779,35 @@ class Dialog extends FASTElement {
|
|
|
5768
5779
|
return true;
|
|
5769
5780
|
}
|
|
5770
5781
|
}
|
|
5771
|
-
__decorateClass$
|
|
5772
|
-
__decorateClass$
|
|
5782
|
+
__decorateClass$j([observable], Dialog.prototype, "dialog", 2);
|
|
5783
|
+
__decorateClass$j([attr({
|
|
5773
5784
|
attribute: "aria-describedby"
|
|
5774
5785
|
})], Dialog.prototype, "ariaDescribedby", 2);
|
|
5775
|
-
__decorateClass$
|
|
5786
|
+
__decorateClass$j([attr({
|
|
5776
5787
|
attribute: "aria-labelledby"
|
|
5777
5788
|
})], Dialog.prototype, "ariaLabelledby", 2);
|
|
5778
|
-
__decorateClass$
|
|
5789
|
+
__decorateClass$j([attr], Dialog.prototype, "type", 2);
|
|
5779
5790
|
|
|
5780
|
-
const template$
|
|
5791
|
+
const template$m = 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>`;
|
|
5781
5792
|
|
|
5782
|
-
const styles$
|
|
5793
|
+
const styles$l = css`
|
|
5783
5794
|
@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`
|
|
5784
5795
|
@layer base{dialog{border:${strokeWidthThin} solid ${colorTransparentStroke}}}`));
|
|
5785
5796
|
|
|
5786
|
-
const definition$
|
|
5797
|
+
const definition$m = Dialog.compose({
|
|
5787
5798
|
name: `${FluentDesignSystem.prefix}-dialog`,
|
|
5788
|
-
template: template$
|
|
5789
|
-
styles: styles$
|
|
5799
|
+
template: template$m,
|
|
5800
|
+
styles: styles$l
|
|
5790
5801
|
});
|
|
5791
5802
|
|
|
5792
|
-
definition$
|
|
5803
|
+
definition$m.define(FluentDesignSystem.registry);
|
|
5793
5804
|
|
|
5794
|
-
var __defProp$
|
|
5795
|
-
var __getOwnPropDesc$
|
|
5796
|
-
var __decorateClass$
|
|
5797
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5805
|
+
var __defProp$i = Object.defineProperty;
|
|
5806
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
5807
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
5808
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
5798
5809
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5799
|
-
if (kind && result) __defProp$
|
|
5810
|
+
if (kind && result) __defProp$i(target, key, result);
|
|
5800
5811
|
return result;
|
|
5801
5812
|
};
|
|
5802
5813
|
class DialogBody extends FASTElement {
|
|
@@ -5805,7 +5816,7 @@ class DialogBody extends FASTElement {
|
|
|
5805
5816
|
this.noTitleAction = false;
|
|
5806
5817
|
}
|
|
5807
5818
|
}
|
|
5808
|
-
__decorateClass$
|
|
5819
|
+
__decorateClass$i([attr({
|
|
5809
5820
|
mode: "boolean",
|
|
5810
5821
|
attribute: "no-title-action"
|
|
5811
5822
|
})], DialogBody.prototype, "noTitleAction", 2);
|
|
@@ -5824,20 +5835,20 @@ const dismissed16Regular = html.partial(`
|
|
|
5824
5835
|
fill="currentColor"
|
|
5825
5836
|
></path>
|
|
5826
5837
|
</svg>`);
|
|
5827
|
-
const template$
|
|
5838
|
+
const template$l = 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>`;
|
|
5828
5839
|
|
|
5829
|
-
const styles$
|
|
5840
|
+
const styles$k = css`
|
|
5830
5841
|
${display("grid")}
|
|
5831
5842
|
|
|
5832
5843
|
: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}}}`;
|
|
5833
5844
|
|
|
5834
|
-
const definition$
|
|
5845
|
+
const definition$l = DialogBody.compose({
|
|
5835
5846
|
name: `${FluentDesignSystem.prefix}-dialog-body`,
|
|
5836
|
-
template: template$
|
|
5837
|
-
styles: styles$
|
|
5847
|
+
template: template$l,
|
|
5848
|
+
styles: styles$k
|
|
5838
5849
|
});
|
|
5839
5850
|
|
|
5840
|
-
definition$
|
|
5851
|
+
definition$l.define(FluentDesignSystem.registry);
|
|
5841
5852
|
|
|
5842
5853
|
const DividerRole = {
|
|
5843
5854
|
/**
|
|
@@ -5851,12 +5862,12 @@ const DividerRole = {
|
|
|
5851
5862
|
};
|
|
5852
5863
|
const DividerOrientation = Orientation;
|
|
5853
5864
|
|
|
5854
|
-
var __defProp$
|
|
5855
|
-
var __getOwnPropDesc$
|
|
5856
|
-
var __decorateClass$
|
|
5857
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5865
|
+
var __defProp$h = Object.defineProperty;
|
|
5866
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
5867
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
5868
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
5858
5869
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5859
|
-
if (kind && result) __defProp$
|
|
5870
|
+
if (kind && result) __defProp$h(target, key, result);
|
|
5860
5871
|
return result;
|
|
5861
5872
|
};
|
|
5862
5873
|
class Divider extends FASTElement {
|
|
@@ -5904,34 +5915,34 @@ class Divider extends FASTElement {
|
|
|
5904
5915
|
}
|
|
5905
5916
|
}
|
|
5906
5917
|
}
|
|
5907
|
-
__decorateClass$
|
|
5908
|
-
__decorateClass$
|
|
5909
|
-
__decorateClass$
|
|
5918
|
+
__decorateClass$h([attr], Divider.prototype, "role", 2);
|
|
5919
|
+
__decorateClass$h([attr], Divider.prototype, "orientation", 2);
|
|
5920
|
+
__decorateClass$h([attr({
|
|
5910
5921
|
attribute: "align-content"
|
|
5911
5922
|
})], Divider.prototype, "alignContent", 2);
|
|
5912
|
-
__decorateClass$
|
|
5913
|
-
__decorateClass$
|
|
5923
|
+
__decorateClass$h([attr], Divider.prototype, "appearance", 2);
|
|
5924
|
+
__decorateClass$h([attr({
|
|
5914
5925
|
mode: "boolean"
|
|
5915
5926
|
})], Divider.prototype, "inset", 2);
|
|
5916
5927
|
|
|
5917
5928
|
function dividerTemplate() {
|
|
5918
5929
|
return html`<slot></slot>`;
|
|
5919
5930
|
}
|
|
5920
|
-
const template$
|
|
5931
|
+
const template$k = dividerTemplate();
|
|
5921
5932
|
|
|
5922
|
-
const styles$
|
|
5933
|
+
const styles$j = css`
|
|
5923
5934
|
${display("flex")}
|
|
5924
5935
|
|
|
5925
5936
|
: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([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical']){flex-direction:column;align-items:center}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
5926
5937
|
:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`));
|
|
5927
5938
|
|
|
5928
|
-
const definition$
|
|
5939
|
+
const definition$k = Divider.compose({
|
|
5929
5940
|
name: `${FluentDesignSystem.prefix}-divider`,
|
|
5930
|
-
template: template$
|
|
5931
|
-
styles: styles$
|
|
5941
|
+
template: template$k,
|
|
5942
|
+
styles: styles$j
|
|
5932
5943
|
});
|
|
5933
5944
|
|
|
5934
|
-
definition$
|
|
5945
|
+
definition$k.define(FluentDesignSystem.registry);
|
|
5935
5946
|
|
|
5936
5947
|
const LabelPosition = {
|
|
5937
5948
|
above: "above",
|
|
@@ -5952,12 +5963,12 @@ const ValidationFlags = {
|
|
|
5952
5963
|
valid: "valid"
|
|
5953
5964
|
};
|
|
5954
5965
|
|
|
5955
|
-
var __defProp$
|
|
5956
|
-
var __getOwnPropDesc$
|
|
5957
|
-
var __decorateClass$
|
|
5958
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5966
|
+
var __defProp$g = Object.defineProperty;
|
|
5967
|
+
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
5968
|
+
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
5969
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
5959
5970
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5960
|
-
if (kind && result) __defProp$
|
|
5971
|
+
if (kind && result) __defProp$g(target, key, result);
|
|
5961
5972
|
return result;
|
|
5962
5973
|
};
|
|
5963
5974
|
class Field extends FASTElement {
|
|
@@ -6077,11 +6088,11 @@ class Field extends FASTElement {
|
|
|
6077
6088
|
}
|
|
6078
6089
|
}
|
|
6079
6090
|
}
|
|
6080
|
-
__decorateClass$
|
|
6091
|
+
__decorateClass$g([attr({
|
|
6081
6092
|
attribute: "label-position"
|
|
6082
6093
|
})], Field.prototype, "labelPosition", 2);
|
|
6083
|
-
__decorateClass$
|
|
6084
|
-
__decorateClass$
|
|
6094
|
+
__decorateClass$g([observable], Field.prototype, "messageSlot", 2);
|
|
6095
|
+
__decorateClass$g([observable], Field.prototype, "slottedInputs", 2);
|
|
6085
6096
|
|
|
6086
6097
|
const disabledState = css.partial`:is([state--disabled], :state(disabled))`;
|
|
6087
6098
|
const focusVisibleState = css.partial`:is([state--focus-visible], :state(focus-visible))`;
|
|
@@ -6096,12 +6107,12 @@ const tooShortState = css.partial`:is([state--${ValidationFlags.tooShort}], :sta
|
|
|
6096
6107
|
const typeMismatchState = css.partial`:is([state--${ValidationFlags.typeMismatch}], :state(${ValidationFlags.typeMismatch}))`;
|
|
6097
6108
|
const validState = css.partial`:is([state-${ValidationFlags.valid}], :state(${ValidationFlags.valid}))`;
|
|
6098
6109
|
const valueMissingState = css.partial`:is([state--${ValidationFlags.valueMissing}], :state(${ValidationFlags.valueMissing}))`;
|
|
6099
|
-
const styles$
|
|
6110
|
+
const styles$i = css`
|
|
6100
6111
|
${display("inline-grid")}
|
|
6101
6112
|
|
|
6102
6113
|
:host{align-items:center;cursor:pointer;gap:0 ${spacingHorizontalM};justify-items:start;padding:${spacingVerticalS}}: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'}::slotted([slot='label']){cursor:pointer;grid-area:label}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){margin-block-start:${spacingVerticalXXS};grid-area:message}:host(${focusVisibleState}:focus-within){border-radius:${borderRadiusMedium};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}::slotted(label){display:inline-flex;color:${colorNeutralForeground1};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};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}) ::slotted(label){color:${colorNeutralForeground1};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}`;
|
|
6103
6114
|
|
|
6104
|
-
const template$
|
|
6115
|
+
const template$j = 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({
|
|
6105
6116
|
property: "slottedInputs",
|
|
6106
6117
|
attributes: true,
|
|
6107
6118
|
attributeFilter: ["disabled", "required", "readonly"],
|
|
@@ -6113,57 +6124,57 @@ const template$i = html`<template @click="${(x, c) => x.clickHandler(c.event)}"
|
|
|
6113
6124
|
filter: elements("[flag]")
|
|
6114
6125
|
})}></slot></template>`;
|
|
6115
6126
|
|
|
6116
|
-
const definition$
|
|
6127
|
+
const definition$j = Field.compose({
|
|
6117
6128
|
name: `${FluentDesignSystem.prefix}-field`,
|
|
6118
|
-
template: template$
|
|
6119
|
-
styles: styles$
|
|
6129
|
+
template: template$j,
|
|
6130
|
+
styles: styles$i,
|
|
6120
6131
|
shadowOptions: {
|
|
6121
6132
|
delegatesFocus: true
|
|
6122
6133
|
}
|
|
6123
6134
|
});
|
|
6124
6135
|
|
|
6125
|
-
definition$
|
|
6136
|
+
definition$j.define(FluentDesignSystem.registry);
|
|
6126
6137
|
|
|
6127
|
-
var __defProp$
|
|
6128
|
-
var __getOwnPropDesc$
|
|
6129
|
-
var __decorateClass$
|
|
6130
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6138
|
+
var __defProp$f = Object.defineProperty;
|
|
6139
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
6140
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
6141
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
6131
6142
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6132
|
-
if (kind && result) __defProp$
|
|
6143
|
+
if (kind && result) __defProp$f(target, key, result);
|
|
6133
6144
|
return result;
|
|
6134
6145
|
};
|
|
6135
6146
|
class Image extends FASTElement {}
|
|
6136
|
-
__decorateClass$
|
|
6147
|
+
__decorateClass$f([attr({
|
|
6137
6148
|
mode: "boolean"
|
|
6138
6149
|
})], Image.prototype, "block", 2);
|
|
6139
|
-
__decorateClass$
|
|
6150
|
+
__decorateClass$f([attr({
|
|
6140
6151
|
mode: "boolean"
|
|
6141
6152
|
})], Image.prototype, "bordered", 2);
|
|
6142
|
-
__decorateClass$
|
|
6153
|
+
__decorateClass$f([attr({
|
|
6143
6154
|
mode: "boolean"
|
|
6144
6155
|
})], Image.prototype, "shadow", 2);
|
|
6145
|
-
__decorateClass$
|
|
6146
|
-
__decorateClass$
|
|
6156
|
+
__decorateClass$f([attr], Image.prototype, "fit", 2);
|
|
6157
|
+
__decorateClass$f([attr], Image.prototype, "shape", 2);
|
|
6147
6158
|
|
|
6148
|
-
const template$
|
|
6159
|
+
const template$i = html`<slot></slot>`;
|
|
6149
6160
|
|
|
6150
|
-
const styles$
|
|
6161
|
+
const styles$h = css`
|
|
6151
6162
|
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${shadow4}}:host([shape='circular']) ::slotted(img){border-radius:${borderRadiusCircular}}:host([shape='rounded']) ::slotted(img){border-radius:${borderRadiusMedium}}`;
|
|
6152
6163
|
|
|
6153
|
-
const definition$
|
|
6164
|
+
const definition$i = Image.compose({
|
|
6154
6165
|
name: `${FluentDesignSystem.prefix}-image`,
|
|
6155
|
-
template: template$
|
|
6156
|
-
styles: styles$
|
|
6166
|
+
template: template$i,
|
|
6167
|
+
styles: styles$h
|
|
6157
6168
|
});
|
|
6158
6169
|
|
|
6159
|
-
definition$
|
|
6170
|
+
definition$i.define(FluentDesignSystem.registry);
|
|
6160
6171
|
|
|
6161
|
-
var __defProp$
|
|
6162
|
-
var __getOwnPropDesc$
|
|
6163
|
-
var __decorateClass$
|
|
6164
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6172
|
+
var __defProp$e = Object.defineProperty;
|
|
6173
|
+
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
6174
|
+
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
6175
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
6165
6176
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6166
|
-
if (kind && result) __defProp$
|
|
6177
|
+
if (kind && result) __defProp$e(target, key, result);
|
|
6167
6178
|
return result;
|
|
6168
6179
|
};
|
|
6169
6180
|
class Label extends FASTElement {
|
|
@@ -6173,16 +6184,16 @@ class Label extends FASTElement {
|
|
|
6173
6184
|
this.required = false;
|
|
6174
6185
|
}
|
|
6175
6186
|
}
|
|
6176
|
-
__decorateClass$
|
|
6177
|
-
__decorateClass$
|
|
6178
|
-
__decorateClass$
|
|
6187
|
+
__decorateClass$e([attr], Label.prototype, "size", 2);
|
|
6188
|
+
__decorateClass$e([attr], Label.prototype, "weight", 2);
|
|
6189
|
+
__decorateClass$e([attr({
|
|
6179
6190
|
mode: "boolean"
|
|
6180
6191
|
})], Label.prototype, "disabled", 2);
|
|
6181
|
-
__decorateClass$
|
|
6192
|
+
__decorateClass$e([attr({
|
|
6182
6193
|
mode: "boolean"
|
|
6183
6194
|
})], Label.prototype, "required", 2);
|
|
6184
6195
|
|
|
6185
|
-
const styles$
|
|
6196
|
+
const styles$g = css`
|
|
6186
6197
|
${display("inline-flex")}
|
|
6187
6198
|
|
|
6188
6199
|
: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([size='small']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']),:host([weight='semibold']){font-weight:${fontWeightSemibold}}:host([disabled]),:host([disabled]) .asterisk{color:${colorNeutralForegroundDisabled}}`;
|
|
@@ -6190,10 +6201,48 @@ const styles$f = css`
|
|
|
6190
6201
|
function labelTemplate() {
|
|
6191
6202
|
return html`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${x => !x.required}">*</span>`;
|
|
6192
6203
|
}
|
|
6193
|
-
const template$
|
|
6204
|
+
const template$h = labelTemplate();
|
|
6194
6205
|
|
|
6195
|
-
const definition$
|
|
6206
|
+
const definition$h = Label.compose({
|
|
6196
6207
|
name: `${FluentDesignSystem.prefix}-label`,
|
|
6208
|
+
template: template$h,
|
|
6209
|
+
styles: styles$g
|
|
6210
|
+
});
|
|
6211
|
+
|
|
6212
|
+
definition$h.define(FluentDesignSystem.registry);
|
|
6213
|
+
|
|
6214
|
+
var __defProp$d = Object.defineProperty;
|
|
6215
|
+
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
6216
|
+
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
6217
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
6218
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6219
|
+
if (kind && result) __defProp$d(target, key, result);
|
|
6220
|
+
return result;
|
|
6221
|
+
};
|
|
6222
|
+
class Link extends BaseAnchor {
|
|
6223
|
+
constructor() {
|
|
6224
|
+
super(...arguments);
|
|
6225
|
+
this.inline = false;
|
|
6226
|
+
}
|
|
6227
|
+
}
|
|
6228
|
+
__decorateClass$d([attr], Link.prototype, "appearance", 2);
|
|
6229
|
+
__decorateClass$d([attr({
|
|
6230
|
+
mode: "boolean"
|
|
6231
|
+
})], Link.prototype, "inline", 2);
|
|
6232
|
+
|
|
6233
|
+
const styles$f = css`
|
|
6234
|
+
${display("inline")}
|
|
6235
|
+
|
|
6236
|
+
:host{box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${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([appearance='subtle']:hover){color:${colorNeutralForeground2LinkHover}}:host([appearance='subtle']:active){color:${colorNeutralForeground2LinkPressed}}}:host([appearance='subtle']){color:${colorNeutralForeground2Link}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
6237
|
+
:host{color:LinkText}`));
|
|
6238
|
+
|
|
6239
|
+
function anchorTemplate() {
|
|
6240
|
+
return html`<template tabindex="0" @click="${x => x.clickHandler()}" @keypress="${(x, c) => x.keypressHandler(c.event)}"><slot></slot></template>`;
|
|
6241
|
+
}
|
|
6242
|
+
const template$g = anchorTemplate();
|
|
6243
|
+
|
|
6244
|
+
const definition$g = Link.compose({
|
|
6245
|
+
name: `${FluentDesignSystem.prefix}-link`,
|
|
6197
6246
|
template: template$g,
|
|
6198
6247
|
styles: styles$f
|
|
6199
6248
|
});
|
|
@@ -6214,7 +6263,7 @@ const template$f = buttonTemplate$1({
|
|
|
6214
6263
|
const definition$f = MenuButton.compose({
|
|
6215
6264
|
name: `${FluentDesignSystem.prefix}-menu-button`,
|
|
6216
6265
|
template: template$f,
|
|
6217
|
-
styles: styles$
|
|
6266
|
+
styles: styles$s
|
|
6218
6267
|
});
|
|
6219
6268
|
|
|
6220
6269
|
definition$f.define(FluentDesignSystem.registry);
|
|
@@ -10505,7 +10554,7 @@ __decorateClass([attr({
|
|
|
10505
10554
|
})], ToggleButton.prototype, "mixed", 2);
|
|
10506
10555
|
|
|
10507
10556
|
const styles = css`
|
|
10508
|
-
${styles$
|
|
10557
|
+
${styles$s}
|
|
10509
10558
|
|
|
10510
10559
|
:host([aria-pressed='true']){border-color:${colorNeutralStroke1};background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground1};border-width:${strokeWidthThin}}:host([aria-pressed='true']:hover){border-color:${colorNeutralStroke1Hover};background-color:${colorNeutralBackground1Hover}}:host([aria-pressed='true']:active){border-color:${colorNeutralStroke1Pressed};background-color:${colorNeutralBackground1Pressed}}:host([aria-pressed='true'][appearance='primary']){border-color:transparent;background-color:${colorBrandBackgroundSelected};color:${colorNeutralForegroundOnBrand}}:host([aria-pressed='true'][appearance='primary']:hover){background-color:${colorBrandBackgroundHover}}:host([aria-pressed='true'][appearance='primary']:active){background-color:${colorBrandBackgroundPressed}}:host([aria-pressed='true'][appearance='subtle']){border-color:transparent;background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([aria-pressed='true'][appearance='subtle']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}:host([aria-pressed='true'][appearance='subtle']:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background-color:${colorTransparentBackgroundSelected}}:host([aria-pressed='true'][appearance='outline']:hover),:host([aria-pressed='true'][appearance='transparent']:hover){background-color:${colorTransparentBackgroundHover}}:host([aria-pressed='true'][appearance='outline']:active),:host([aria-pressed='true'][appearance='transparent']:active){background-color:${colorTransparentBackgroundPressed}}:host([aria-pressed='true'][appearance='transparent']){border-color:transparent;color:${colorNeutralForeground2BrandSelected}}:host([aria-pressed='true'][appearance='transparent']:hover){color:${colorNeutralForeground2BrandHover}}:host([aria-pressed='true'][appearance='transparent']:active){color:${colorNeutralForeground2BrandPressed}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
10511
10560
|
:host([aria-pressed='true']),:host([aria-pressed='true'][appearance='primary']),:host([aria-pressed='true'][appearance='subtle']),:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background:SelectedItem;color:SelectedItemText}`));
|