@fluentui/web-components 3.0.0-beta.100 → 3.0.0-beta.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -2
- package/custom-elements.json +0 -21
- package/dist/dts/dialog/dialog.options.d.ts +10 -0
- package/dist/dts/dialog/index.d.ts +1 -1
- package/dist/dts/dialog-body/dialog-body.d.ts +5 -3
- package/dist/dts/index.d.ts +1 -1
- package/dist/esm/dialog/dialog.options.js +14 -0
- package/dist/esm/dialog/dialog.options.js.map +1 -1
- package/dist/esm/dialog/index.js +1 -1
- package/dist/esm/dialog/index.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.js +16 -12
- package/dist/esm/dialog-body/dialog-body.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.styles.js +7 -4
- package/dist/esm/dialog-body/dialog-body.styles.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.template.js +10 -35
- package/dist/esm/dialog-body/dialog-body.template.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/menu/menu.js +4 -2
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/web-components.d.ts +15 -3
- package/dist/web-components.js +194 -201
- package/dist/web-components.min.js +127 -140
- package/package.json +1 -1
package/dist/web-components.js
CHANGED
|
@@ -4011,70 +4011,70 @@ const FASTElement = Object.assign(createFASTElement(HTMLElement), {
|
|
|
4011
4011
|
compose
|
|
4012
4012
|
});
|
|
4013
4013
|
|
|
4014
|
-
var __defProp$
|
|
4015
|
-
var __getOwnPropDesc$
|
|
4016
|
-
var __decorateClass$
|
|
4017
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4014
|
+
var __defProp$R = Object.defineProperty;
|
|
4015
|
+
var __getOwnPropDesc$R = Object.getOwnPropertyDescriptor;
|
|
4016
|
+
var __decorateClass$R = (decorators, target, key, kind) => {
|
|
4017
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$R(target, key) : target;
|
|
4018
4018
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4019
|
-
if (kind && result) __defProp$
|
|
4019
|
+
if (kind && result) __defProp$R(target, key, result);
|
|
4020
4020
|
return result;
|
|
4021
4021
|
};
|
|
4022
4022
|
class ARIAGlobalStatesAndProperties {}
|
|
4023
|
-
__decorateClass$
|
|
4023
|
+
__decorateClass$R([attr({
|
|
4024
4024
|
attribute: "aria-atomic"
|
|
4025
4025
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", 2);
|
|
4026
|
-
__decorateClass$
|
|
4026
|
+
__decorateClass$R([attr({
|
|
4027
4027
|
attribute: "aria-busy"
|
|
4028
4028
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", 2);
|
|
4029
|
-
__decorateClass$
|
|
4029
|
+
__decorateClass$R([attr({
|
|
4030
4030
|
attribute: "aria-controls"
|
|
4031
4031
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaControls", 2);
|
|
4032
|
-
__decorateClass$
|
|
4032
|
+
__decorateClass$R([attr({
|
|
4033
4033
|
attribute: "aria-current"
|
|
4034
4034
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", 2);
|
|
4035
|
-
__decorateClass$
|
|
4035
|
+
__decorateClass$R([attr({
|
|
4036
4036
|
attribute: "aria-describedby"
|
|
4037
4037
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", 2);
|
|
4038
|
-
__decorateClass$
|
|
4038
|
+
__decorateClass$R([attr({
|
|
4039
4039
|
attribute: "aria-details"
|
|
4040
4040
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", 2);
|
|
4041
|
-
__decorateClass$
|
|
4041
|
+
__decorateClass$R([attr({
|
|
4042
4042
|
attribute: "aria-disabled"
|
|
4043
4043
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", 2);
|
|
4044
|
-
__decorateClass$
|
|
4044
|
+
__decorateClass$R([attr({
|
|
4045
4045
|
attribute: "aria-errormessage"
|
|
4046
4046
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", 2);
|
|
4047
|
-
__decorateClass$
|
|
4047
|
+
__decorateClass$R([attr({
|
|
4048
4048
|
attribute: "aria-flowto"
|
|
4049
4049
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", 2);
|
|
4050
|
-
__decorateClass$
|
|
4050
|
+
__decorateClass$R([attr({
|
|
4051
4051
|
attribute: "aria-haspopup"
|
|
4052
4052
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", 2);
|
|
4053
|
-
__decorateClass$
|
|
4053
|
+
__decorateClass$R([attr({
|
|
4054
4054
|
attribute: "aria-hidden"
|
|
4055
4055
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", 2);
|
|
4056
|
-
__decorateClass$
|
|
4056
|
+
__decorateClass$R([attr({
|
|
4057
4057
|
attribute: "aria-invalid"
|
|
4058
4058
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", 2);
|
|
4059
|
-
__decorateClass$
|
|
4059
|
+
__decorateClass$R([attr({
|
|
4060
4060
|
attribute: "aria-keyshortcuts"
|
|
4061
4061
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", 2);
|
|
4062
|
-
__decorateClass$
|
|
4062
|
+
__decorateClass$R([attr({
|
|
4063
4063
|
attribute: "aria-label"
|
|
4064
4064
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", 2);
|
|
4065
|
-
__decorateClass$
|
|
4065
|
+
__decorateClass$R([attr({
|
|
4066
4066
|
attribute: "aria-labelledby"
|
|
4067
4067
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", 2);
|
|
4068
|
-
__decorateClass$
|
|
4068
|
+
__decorateClass$R([attr({
|
|
4069
4069
|
attribute: "aria-live"
|
|
4070
4070
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLive", 2);
|
|
4071
|
-
__decorateClass$
|
|
4071
|
+
__decorateClass$R([attr({
|
|
4072
4072
|
attribute: "aria-owns"
|
|
4073
4073
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", 2);
|
|
4074
|
-
__decorateClass$
|
|
4074
|
+
__decorateClass$R([attr({
|
|
4075
4075
|
attribute: "aria-relevant"
|
|
4076
4076
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", 2);
|
|
4077
|
-
__decorateClass$
|
|
4077
|
+
__decorateClass$R([attr({
|
|
4078
4078
|
attribute: "aria-roledescription"
|
|
4079
4079
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", 2);
|
|
4080
4080
|
|
|
@@ -4341,12 +4341,12 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
4341
4341
|
});
|
|
4342
4342
|
}
|
|
4343
4343
|
|
|
4344
|
-
var __defProp$
|
|
4345
|
-
var __getOwnPropDesc$
|
|
4346
|
-
var __decorateClass$
|
|
4347
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4344
|
+
var __defProp$Q = Object.defineProperty;
|
|
4345
|
+
var __getOwnPropDesc$Q = Object.getOwnPropertyDescriptor;
|
|
4346
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
4347
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Q(target, key) : target;
|
|
4348
4348
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4349
|
-
if (kind && result) __defProp$
|
|
4349
|
+
if (kind && result) __defProp$Q(target, key, result);
|
|
4350
4350
|
return result;
|
|
4351
4351
|
};
|
|
4352
4352
|
class BaseAccordionItem extends FASTElement {
|
|
@@ -4364,25 +4364,25 @@ class BaseAccordionItem extends FASTElement {
|
|
|
4364
4364
|
this.id = uniqueId$1("accordion-");
|
|
4365
4365
|
}
|
|
4366
4366
|
}
|
|
4367
|
-
__decorateClass$
|
|
4367
|
+
__decorateClass$Q([attr({
|
|
4368
4368
|
attribute: "heading-level",
|
|
4369
4369
|
mode: "fromView",
|
|
4370
4370
|
converter: nullableNumberConverter
|
|
4371
4371
|
})], BaseAccordionItem.prototype, "headinglevel", 2);
|
|
4372
|
-
__decorateClass$
|
|
4372
|
+
__decorateClass$Q([attr({
|
|
4373
4373
|
mode: "boolean"
|
|
4374
4374
|
})], BaseAccordionItem.prototype, "expanded", 2);
|
|
4375
|
-
__decorateClass$
|
|
4375
|
+
__decorateClass$Q([attr({
|
|
4376
4376
|
mode: "boolean"
|
|
4377
4377
|
})], BaseAccordionItem.prototype, "disabled", 2);
|
|
4378
|
-
__decorateClass$
|
|
4378
|
+
__decorateClass$Q([attr], BaseAccordionItem.prototype, "id", 2);
|
|
4379
4379
|
|
|
4380
|
-
var __defProp$
|
|
4381
|
-
var __getOwnPropDesc$
|
|
4382
|
-
var __decorateClass$
|
|
4383
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4380
|
+
var __defProp$P = Object.defineProperty;
|
|
4381
|
+
var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
|
|
4382
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
4383
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
|
|
4384
4384
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4385
|
-
if (kind && result) __defProp$
|
|
4385
|
+
if (kind && result) __defProp$P(target, key, result);
|
|
4386
4386
|
return result;
|
|
4387
4387
|
};
|
|
4388
4388
|
class AccordionItem extends BaseAccordionItem {
|
|
@@ -4391,11 +4391,11 @@ class AccordionItem extends BaseAccordionItem {
|
|
|
4391
4391
|
this.block = false;
|
|
4392
4392
|
}
|
|
4393
4393
|
}
|
|
4394
|
-
__decorateClass$
|
|
4395
|
-
__decorateClass$
|
|
4394
|
+
__decorateClass$P([attr], AccordionItem.prototype, "size", 2);
|
|
4395
|
+
__decorateClass$P([attr({
|
|
4396
4396
|
attribute: "marker-position"
|
|
4397
4397
|
})], AccordionItem.prototype, "markerPosition", 2);
|
|
4398
|
-
__decorateClass$
|
|
4398
|
+
__decorateClass$P([attr({
|
|
4399
4399
|
mode: "boolean"
|
|
4400
4400
|
})], AccordionItem.prototype, "block", 2);
|
|
4401
4401
|
applyMixins(AccordionItem, StartEnd);
|
|
@@ -4700,12 +4700,12 @@ const AccordionExpandMode = {
|
|
|
4700
4700
|
multi: "multi"
|
|
4701
4701
|
};
|
|
4702
4702
|
|
|
4703
|
-
var __defProp$
|
|
4704
|
-
var __getOwnPropDesc$
|
|
4705
|
-
var __decorateClass$
|
|
4706
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4703
|
+
var __defProp$O = Object.defineProperty;
|
|
4704
|
+
var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
|
|
4705
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
4706
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
|
|
4707
4707
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4708
|
-
if (kind && result) __defProp$
|
|
4708
|
+
if (kind && result) __defProp$O(target, key, result);
|
|
4709
4709
|
return result;
|
|
4710
4710
|
};
|
|
4711
4711
|
class Accordion extends FASTElement {
|
|
@@ -4844,10 +4844,10 @@ class Accordion extends FASTElement {
|
|
|
4844
4844
|
});
|
|
4845
4845
|
}
|
|
4846
4846
|
}
|
|
4847
|
-
__decorateClass$
|
|
4847
|
+
__decorateClass$O([attr({
|
|
4848
4848
|
attribute: "expand-mode"
|
|
4849
4849
|
})], Accordion.prototype, "expandmode", 2);
|
|
4850
|
-
__decorateClass$
|
|
4850
|
+
__decorateClass$O([observable], Accordion.prototype, "slottedAccordionItems", 2);
|
|
4851
4851
|
|
|
4852
4852
|
const styles$F = css`
|
|
4853
4853
|
${display("flex")}
|
|
@@ -4943,12 +4943,12 @@ const AnchorAttributes = {
|
|
|
4943
4943
|
type: "type"
|
|
4944
4944
|
};
|
|
4945
4945
|
|
|
4946
|
-
var __defProp$
|
|
4947
|
-
var __getOwnPropDesc$
|
|
4948
|
-
var __decorateClass$
|
|
4949
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4946
|
+
var __defProp$N = Object.defineProperty;
|
|
4947
|
+
var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
|
|
4948
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
4949
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
|
|
4950
4950
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4951
|
-
if (kind && result) __defProp$
|
|
4951
|
+
if (kind && result) __defProp$N(target, key, result);
|
|
4952
4952
|
return result;
|
|
4953
4953
|
};
|
|
4954
4954
|
class BaseAnchor extends FASTElement {
|
|
@@ -5056,21 +5056,21 @@ class BaseAnchor extends FASTElement {
|
|
|
5056
5056
|
return proxy;
|
|
5057
5057
|
}
|
|
5058
5058
|
}
|
|
5059
|
-
__decorateClass$
|
|
5060
|
-
__decorateClass$
|
|
5061
|
-
__decorateClass$
|
|
5062
|
-
__decorateClass$
|
|
5063
|
-
__decorateClass$
|
|
5064
|
-
__decorateClass$
|
|
5065
|
-
__decorateClass$
|
|
5066
|
-
__decorateClass$
|
|
5059
|
+
__decorateClass$N([attr], BaseAnchor.prototype, "download", 2);
|
|
5060
|
+
__decorateClass$N([attr], BaseAnchor.prototype, "href", 2);
|
|
5061
|
+
__decorateClass$N([attr], BaseAnchor.prototype, "hreflang", 2);
|
|
5062
|
+
__decorateClass$N([attr], BaseAnchor.prototype, "ping", 2);
|
|
5063
|
+
__decorateClass$N([attr], BaseAnchor.prototype, "referrerpolicy", 2);
|
|
5064
|
+
__decorateClass$N([attr], BaseAnchor.prototype, "rel", 2);
|
|
5065
|
+
__decorateClass$N([attr], BaseAnchor.prototype, "target", 2);
|
|
5066
|
+
__decorateClass$N([attr], BaseAnchor.prototype, "type", 2);
|
|
5067
5067
|
|
|
5068
|
-
var __defProp$
|
|
5069
|
-
var __getOwnPropDesc$
|
|
5070
|
-
var __decorateClass$
|
|
5071
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5068
|
+
var __defProp$M = Object.defineProperty;
|
|
5069
|
+
var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
|
|
5070
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
5071
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
|
|
5072
5072
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5073
|
-
if (kind && result) __defProp$
|
|
5073
|
+
if (kind && result) __defProp$M(target, key, result);
|
|
5074
5074
|
return result;
|
|
5075
5075
|
};
|
|
5076
5076
|
class AnchorButton extends BaseAnchor {
|
|
@@ -5111,10 +5111,10 @@ class AnchorButton extends BaseAnchor {
|
|
|
5111
5111
|
toggleState(this.elementInternals, "icon", !!next);
|
|
5112
5112
|
}
|
|
5113
5113
|
}
|
|
5114
|
-
__decorateClass$
|
|
5115
|
-
__decorateClass$
|
|
5116
|
-
__decorateClass$
|
|
5117
|
-
__decorateClass$
|
|
5114
|
+
__decorateClass$M([attr], AnchorButton.prototype, "appearance", 2);
|
|
5115
|
+
__decorateClass$M([attr], AnchorButton.prototype, "shape", 2);
|
|
5116
|
+
__decorateClass$M([attr], AnchorButton.prototype, "size", 2);
|
|
5117
|
+
__decorateClass$M([attr({
|
|
5118
5118
|
attribute: "icon-only",
|
|
5119
5119
|
mode: "boolean"
|
|
5120
5120
|
})], AnchorButton.prototype, "iconOnly", 2);
|
|
@@ -5190,12 +5190,12 @@ function getInitials(displayName, isRtl, options) {
|
|
|
5190
5190
|
return getInitialsLatin(displayName, isRtl, options?.firstInitialOnly);
|
|
5191
5191
|
}
|
|
5192
5192
|
|
|
5193
|
-
var __defProp$
|
|
5194
|
-
var __getOwnPropDesc$
|
|
5195
|
-
var __decorateClass$
|
|
5196
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5193
|
+
var __defProp$L = Object.defineProperty;
|
|
5194
|
+
var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
|
|
5195
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
5196
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
|
|
5197
5197
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5198
|
-
if (kind && result) __defProp$
|
|
5198
|
+
if (kind && result) __defProp$L(target, key, result);
|
|
5199
5199
|
return result;
|
|
5200
5200
|
};
|
|
5201
5201
|
class BaseAvatar extends FASTElement {
|
|
@@ -5210,8 +5210,8 @@ class BaseAvatar extends FASTElement {
|
|
|
5210
5210
|
this.elementInternals.role = "img";
|
|
5211
5211
|
}
|
|
5212
5212
|
}
|
|
5213
|
-
__decorateClass$
|
|
5214
|
-
__decorateClass$
|
|
5213
|
+
__decorateClass$L([attr], BaseAvatar.prototype, "name", 2);
|
|
5214
|
+
__decorateClass$L([attr], BaseAvatar.prototype, "initials", 2);
|
|
5215
5215
|
|
|
5216
5216
|
const AvatarNamedColor = {
|
|
5217
5217
|
darkRed: "dark-red",
|
|
@@ -5252,12 +5252,12 @@ const AvatarColor = {
|
|
|
5252
5252
|
...AvatarNamedColor
|
|
5253
5253
|
};
|
|
5254
5254
|
|
|
5255
|
-
var __defProp$
|
|
5256
|
-
var __getOwnPropDesc$
|
|
5257
|
-
var __decorateClass$
|
|
5258
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5255
|
+
var __defProp$K = Object.defineProperty;
|
|
5256
|
+
var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
|
|
5257
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
5258
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
|
|
5259
5259
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5260
|
-
if (kind && result) __defProp$
|
|
5260
|
+
if (kind && result) __defProp$K(target, key, result);
|
|
5261
5261
|
return result;
|
|
5262
5262
|
};
|
|
5263
5263
|
const _Avatar = class _Avatar extends BaseAvatar {
|
|
@@ -5312,14 +5312,14 @@ const _Avatar = class _Avatar extends BaseAvatar {
|
|
|
5312
5312
|
* An array of the available Avatar named colors
|
|
5313
5313
|
*/
|
|
5314
5314
|
_Avatar.colors = Object.values(AvatarNamedColor);
|
|
5315
|
-
__decorateClass$
|
|
5316
|
-
__decorateClass$
|
|
5317
|
-
__decorateClass$
|
|
5318
|
-
__decorateClass$
|
|
5315
|
+
__decorateClass$K([attr], _Avatar.prototype, "active", 2);
|
|
5316
|
+
__decorateClass$K([attr], _Avatar.prototype, "shape", 2);
|
|
5317
|
+
__decorateClass$K([attr], _Avatar.prototype, "appearance", 2);
|
|
5318
|
+
__decorateClass$K([attr({
|
|
5319
5319
|
converter: nullableNumberConverter
|
|
5320
5320
|
})], _Avatar.prototype, "size", 2);
|
|
5321
|
-
__decorateClass$
|
|
5322
|
-
__decorateClass$
|
|
5321
|
+
__decorateClass$K([attr], _Avatar.prototype, "color", 2);
|
|
5322
|
+
__decorateClass$K([attr({
|
|
5323
5323
|
attribute: "color-id"
|
|
5324
5324
|
})], _Avatar.prototype, "colorId", 2);
|
|
5325
5325
|
let Avatar = _Avatar;
|
|
@@ -5378,12 +5378,12 @@ const BadgeColor = {
|
|
|
5378
5378
|
warning: "warning"
|
|
5379
5379
|
};
|
|
5380
5380
|
|
|
5381
|
-
var __defProp$
|
|
5382
|
-
var __getOwnPropDesc$
|
|
5383
|
-
var __decorateClass$
|
|
5384
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5381
|
+
var __defProp$J = Object.defineProperty;
|
|
5382
|
+
var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
|
|
5383
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
5384
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
|
|
5385
5385
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5386
|
-
if (kind && result) __defProp$
|
|
5386
|
+
if (kind && result) __defProp$J(target, key, result);
|
|
5387
5387
|
return result;
|
|
5388
5388
|
};
|
|
5389
5389
|
class Badge extends FASTElement {
|
|
@@ -5393,10 +5393,10 @@ class Badge extends FASTElement {
|
|
|
5393
5393
|
this.color = BadgeColor.brand;
|
|
5394
5394
|
}
|
|
5395
5395
|
}
|
|
5396
|
-
__decorateClass$
|
|
5397
|
-
__decorateClass$
|
|
5398
|
-
__decorateClass$
|
|
5399
|
-
__decorateClass$
|
|
5396
|
+
__decorateClass$J([attr], Badge.prototype, "appearance", 2);
|
|
5397
|
+
__decorateClass$J([attr], Badge.prototype, "color", 2);
|
|
5398
|
+
__decorateClass$J([attr], Badge.prototype, "shape", 2);
|
|
5399
|
+
__decorateClass$J([attr], Badge.prototype, "size", 2);
|
|
5400
5400
|
applyMixins(Badge, StartEnd);
|
|
5401
5401
|
|
|
5402
5402
|
const badgeBaseStyles = css.partial`
|
|
@@ -5773,12 +5773,12 @@ const definition$D = Badge.compose({
|
|
|
5773
5773
|
|
|
5774
5774
|
definition$D.define(FluentDesignSystem.registry);
|
|
5775
5775
|
|
|
5776
|
-
var __defProp$
|
|
5777
|
-
var __getOwnPropDesc$
|
|
5778
|
-
var __decorateClass$
|
|
5779
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5776
|
+
var __defProp$I = Object.defineProperty;
|
|
5777
|
+
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
5778
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
5779
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
5780
5780
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5781
|
-
if (kind && result) __defProp$
|
|
5781
|
+
if (kind && result) __defProp$I(target, key, result);
|
|
5782
5782
|
return result;
|
|
5783
5783
|
};
|
|
5784
5784
|
class BaseButton extends FASTElement {
|
|
@@ -5982,51 +5982,51 @@ class BaseButton extends FASTElement {
|
|
|
5982
5982
|
* @public
|
|
5983
5983
|
*/
|
|
5984
5984
|
BaseButton.formAssociated = true;
|
|
5985
|
-
__decorateClass$
|
|
5985
|
+
__decorateClass$I([attr({
|
|
5986
5986
|
mode: "boolean"
|
|
5987
5987
|
})], BaseButton.prototype, "autofocus", 2);
|
|
5988
|
-
__decorateClass$
|
|
5989
|
-
__decorateClass$
|
|
5988
|
+
__decorateClass$I([observable], BaseButton.prototype, "defaultSlottedContent", 2);
|
|
5989
|
+
__decorateClass$I([attr({
|
|
5990
5990
|
mode: "boolean"
|
|
5991
5991
|
})], BaseButton.prototype, "disabled", 2);
|
|
5992
|
-
__decorateClass$
|
|
5992
|
+
__decorateClass$I([attr({
|
|
5993
5993
|
attribute: "disabled-focusable",
|
|
5994
5994
|
mode: "boolean"
|
|
5995
5995
|
})], BaseButton.prototype, "disabledFocusable", 2);
|
|
5996
|
-
__decorateClass$
|
|
5996
|
+
__decorateClass$I([attr({
|
|
5997
5997
|
attribute: "tabindex",
|
|
5998
5998
|
mode: "fromView",
|
|
5999
5999
|
converter: nullableNumberConverter
|
|
6000
6000
|
})], BaseButton.prototype, "tabIndex", 2);
|
|
6001
|
-
__decorateClass$
|
|
6001
|
+
__decorateClass$I([attr({
|
|
6002
6002
|
attribute: "formaction"
|
|
6003
6003
|
})], BaseButton.prototype, "formAction", 2);
|
|
6004
|
-
__decorateClass$
|
|
6004
|
+
__decorateClass$I([attr({
|
|
6005
6005
|
attribute: "form"
|
|
6006
6006
|
})], BaseButton.prototype, "formAttribute", 2);
|
|
6007
|
-
__decorateClass$
|
|
6007
|
+
__decorateClass$I([attr({
|
|
6008
6008
|
attribute: "formenctype"
|
|
6009
6009
|
})], BaseButton.prototype, "formEnctype", 2);
|
|
6010
|
-
__decorateClass$
|
|
6010
|
+
__decorateClass$I([attr({
|
|
6011
6011
|
attribute: "formmethod"
|
|
6012
6012
|
})], BaseButton.prototype, "formMethod", 2);
|
|
6013
|
-
__decorateClass$
|
|
6013
|
+
__decorateClass$I([attr({
|
|
6014
6014
|
attribute: "formnovalidate",
|
|
6015
6015
|
mode: "boolean"
|
|
6016
6016
|
})], BaseButton.prototype, "formNoValidate", 2);
|
|
6017
|
-
__decorateClass$
|
|
6017
|
+
__decorateClass$I([attr({
|
|
6018
6018
|
attribute: "formtarget"
|
|
6019
6019
|
})], BaseButton.prototype, "formTarget", 2);
|
|
6020
|
-
__decorateClass$
|
|
6021
|
-
__decorateClass$
|
|
6022
|
-
__decorateClass$
|
|
6020
|
+
__decorateClass$I([attr], BaseButton.prototype, "name", 2);
|
|
6021
|
+
__decorateClass$I([attr], BaseButton.prototype, "type", 2);
|
|
6022
|
+
__decorateClass$I([attr], BaseButton.prototype, "value", 2);
|
|
6023
6023
|
|
|
6024
|
-
var __defProp$
|
|
6025
|
-
var __getOwnPropDesc$
|
|
6026
|
-
var __decorateClass$
|
|
6027
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6024
|
+
var __defProp$H = Object.defineProperty;
|
|
6025
|
+
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
6026
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
6027
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
6028
6028
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6029
|
-
if (kind && result) __defProp$
|
|
6029
|
+
if (kind && result) __defProp$H(target, key, result);
|
|
6030
6030
|
return result;
|
|
6031
6031
|
};
|
|
6032
6032
|
class Button extends BaseButton {
|
|
@@ -6035,10 +6035,10 @@ class Button extends BaseButton {
|
|
|
6035
6035
|
this.iconOnly = false;
|
|
6036
6036
|
}
|
|
6037
6037
|
}
|
|
6038
|
-
__decorateClass$
|
|
6039
|
-
__decorateClass$
|
|
6040
|
-
__decorateClass$
|
|
6041
|
-
__decorateClass$
|
|
6038
|
+
__decorateClass$H([attr], Button.prototype, "appearance", 2);
|
|
6039
|
+
__decorateClass$H([attr], Button.prototype, "shape", 2);
|
|
6040
|
+
__decorateClass$H([attr], Button.prototype, "size", 2);
|
|
6041
|
+
__decorateClass$H([attr({
|
|
6042
6042
|
attribute: "icon-only",
|
|
6043
6043
|
mode: "boolean"
|
|
6044
6044
|
})], Button.prototype, "iconOnly", 2);
|
|
@@ -6057,12 +6057,12 @@ const definition$C = Button.compose({
|
|
|
6057
6057
|
|
|
6058
6058
|
definition$C.define(FluentDesignSystem.registry);
|
|
6059
6059
|
|
|
6060
|
-
var __defProp$
|
|
6061
|
-
var __getOwnPropDesc$
|
|
6062
|
-
var __decorateClass$
|
|
6063
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6060
|
+
var __defProp$G = Object.defineProperty;
|
|
6061
|
+
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6062
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
6063
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
6064
6064
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6065
|
-
if (kind && result) __defProp$
|
|
6065
|
+
if (kind && result) __defProp$G(target, key, result);
|
|
6066
6066
|
return result;
|
|
6067
6067
|
};
|
|
6068
6068
|
class BaseCheckbox extends FASTElement {
|
|
@@ -6396,36 +6396,36 @@ class BaseCheckbox extends FASTElement {
|
|
|
6396
6396
|
* @public
|
|
6397
6397
|
*/
|
|
6398
6398
|
BaseCheckbox.formAssociated = true;
|
|
6399
|
-
__decorateClass$
|
|
6399
|
+
__decorateClass$G([attr({
|
|
6400
6400
|
mode: "boolean"
|
|
6401
6401
|
})], BaseCheckbox.prototype, "autofocus", 2);
|
|
6402
|
-
__decorateClass$
|
|
6403
|
-
__decorateClass$
|
|
6402
|
+
__decorateClass$G([observable], BaseCheckbox.prototype, "disabled", 2);
|
|
6403
|
+
__decorateClass$G([attr({
|
|
6404
6404
|
attribute: "disabled",
|
|
6405
6405
|
mode: "boolean"
|
|
6406
6406
|
})], BaseCheckbox.prototype, "disabledAttribute", 2);
|
|
6407
|
-
__decorateClass$
|
|
6407
|
+
__decorateClass$G([attr({
|
|
6408
6408
|
attribute: "form"
|
|
6409
6409
|
})], BaseCheckbox.prototype, "formAttribute", 2);
|
|
6410
|
-
__decorateClass$
|
|
6410
|
+
__decorateClass$G([attr({
|
|
6411
6411
|
attribute: "checked",
|
|
6412
6412
|
mode: "boolean"
|
|
6413
6413
|
})], BaseCheckbox.prototype, "initialChecked", 2);
|
|
6414
|
-
__decorateClass$
|
|
6414
|
+
__decorateClass$G([attr({
|
|
6415
6415
|
attribute: "value",
|
|
6416
6416
|
mode: "fromView"
|
|
6417
6417
|
})], BaseCheckbox.prototype, "initialValue", 2);
|
|
6418
|
-
__decorateClass$
|
|
6419
|
-
__decorateClass$
|
|
6418
|
+
__decorateClass$G([attr], BaseCheckbox.prototype, "name", 2);
|
|
6419
|
+
__decorateClass$G([attr({
|
|
6420
6420
|
mode: "boolean"
|
|
6421
6421
|
})], BaseCheckbox.prototype, "required", 2);
|
|
6422
6422
|
|
|
6423
|
-
var __defProp$
|
|
6424
|
-
var __getOwnPropDesc$
|
|
6425
|
-
var __decorateClass$
|
|
6426
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6423
|
+
var __defProp$F = Object.defineProperty;
|
|
6424
|
+
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
6425
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
6426
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
6427
6427
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6428
|
-
if (kind && result) __defProp$
|
|
6428
|
+
if (kind && result) __defProp$F(target, key, result);
|
|
6429
6429
|
return result;
|
|
6430
6430
|
};
|
|
6431
6431
|
class Checkbox extends BaseCheckbox {
|
|
@@ -6468,9 +6468,9 @@ class Checkbox extends BaseCheckbox {
|
|
|
6468
6468
|
super.toggleChecked(force);
|
|
6469
6469
|
}
|
|
6470
6470
|
}
|
|
6471
|
-
__decorateClass$
|
|
6472
|
-
__decorateClass$
|
|
6473
|
-
__decorateClass$
|
|
6471
|
+
__decorateClass$F([observable], Checkbox.prototype, "indeterminate", 2);
|
|
6472
|
+
__decorateClass$F([attr], Checkbox.prototype, "shape", 2);
|
|
6473
|
+
__decorateClass$F([attr], Checkbox.prototype, "size", 2);
|
|
6474
6474
|
|
|
6475
6475
|
const activeState = stateSelector("active");
|
|
6476
6476
|
const badInputState = stateSelector("bad-input");
|
|
@@ -6561,12 +6561,12 @@ const definition$A = CompoundButton.compose({
|
|
|
6561
6561
|
|
|
6562
6562
|
definition$A.define(FluentDesignSystem.registry);
|
|
6563
6563
|
|
|
6564
|
-
var __defProp$
|
|
6565
|
-
var __getOwnPropDesc$
|
|
6566
|
-
var __decorateClass$
|
|
6567
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6564
|
+
var __defProp$E = Object.defineProperty;
|
|
6565
|
+
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
6566
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
6567
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
6568
6568
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6569
|
-
if (kind && result) __defProp$
|
|
6569
|
+
if (kind && result) __defProp$E(target, key, result);
|
|
6570
6570
|
return result;
|
|
6571
6571
|
};
|
|
6572
6572
|
class CounterBadge extends FASTElement {
|
|
@@ -6603,22 +6603,22 @@ class CounterBadge extends FASTElement {
|
|
|
6603
6603
|
return;
|
|
6604
6604
|
}
|
|
6605
6605
|
}
|
|
6606
|
-
__decorateClass$
|
|
6607
|
-
__decorateClass$
|
|
6608
|
-
__decorateClass$
|
|
6609
|
-
__decorateClass$
|
|
6610
|
-
__decorateClass$
|
|
6606
|
+
__decorateClass$E([attr], CounterBadge.prototype, "appearance", 2);
|
|
6607
|
+
__decorateClass$E([attr], CounterBadge.prototype, "color", 2);
|
|
6608
|
+
__decorateClass$E([attr], CounterBadge.prototype, "shape", 2);
|
|
6609
|
+
__decorateClass$E([attr], CounterBadge.prototype, "size", 2);
|
|
6610
|
+
__decorateClass$E([attr({
|
|
6611
6611
|
converter: nullableNumberConverter
|
|
6612
6612
|
})], CounterBadge.prototype, "count", 2);
|
|
6613
|
-
__decorateClass$
|
|
6613
|
+
__decorateClass$E([attr({
|
|
6614
6614
|
attribute: "overflow-count",
|
|
6615
6615
|
converter: nullableNumberConverter
|
|
6616
6616
|
})], CounterBadge.prototype, "overflowCount", 2);
|
|
6617
|
-
__decorateClass$
|
|
6617
|
+
__decorateClass$E([attr({
|
|
6618
6618
|
attribute: "show-zero",
|
|
6619
6619
|
mode: "boolean"
|
|
6620
6620
|
})], CounterBadge.prototype, "showZero", 2);
|
|
6621
|
-
__decorateClass$
|
|
6621
|
+
__decorateClass$E([attr({
|
|
6622
6622
|
mode: "boolean"
|
|
6623
6623
|
})], CounterBadge.prototype, "dot", 2);
|
|
6624
6624
|
applyMixins(CounterBadge, StartEnd);
|
|
@@ -6651,13 +6651,19 @@ const DialogType = {
|
|
|
6651
6651
|
nonModal: "non-modal",
|
|
6652
6652
|
alert: "alert"
|
|
6653
6653
|
};
|
|
6654
|
+
function isDialog(element, tagName = "-dialog") {
|
|
6655
|
+
if (element?.nodeType !== Node.ELEMENT_NODE) {
|
|
6656
|
+
return false;
|
|
6657
|
+
}
|
|
6658
|
+
return element.tagName.toLowerCase().endsWith(tagName);
|
|
6659
|
+
}
|
|
6654
6660
|
|
|
6655
|
-
var __defProp$
|
|
6656
|
-
var __getOwnPropDesc$
|
|
6657
|
-
var __decorateClass$
|
|
6658
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6661
|
+
var __defProp$D = Object.defineProperty;
|
|
6662
|
+
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
6663
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
6664
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
6659
6665
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6660
|
-
if (kind && result) __defProp$
|
|
6666
|
+
if (kind && result) __defProp$D(target, key, result);
|
|
6661
6667
|
return result;
|
|
6662
6668
|
};
|
|
6663
6669
|
class Dialog extends FASTElement {
|
|
@@ -6725,14 +6731,14 @@ class Dialog extends FASTElement {
|
|
|
6725
6731
|
return true;
|
|
6726
6732
|
}
|
|
6727
6733
|
}
|
|
6728
|
-
__decorateClass$
|
|
6729
|
-
__decorateClass$
|
|
6734
|
+
__decorateClass$D([observable], Dialog.prototype, "dialog", 2);
|
|
6735
|
+
__decorateClass$D([attr({
|
|
6730
6736
|
attribute: "aria-describedby"
|
|
6731
6737
|
})], Dialog.prototype, "ariaDescribedby", 2);
|
|
6732
|
-
__decorateClass$
|
|
6738
|
+
__decorateClass$D([attr({
|
|
6733
6739
|
attribute: "aria-labelledby"
|
|
6734
6740
|
})], Dialog.prototype, "ariaLabelledby", 2);
|
|
6735
|
-
__decorateClass$
|
|
6741
|
+
__decorateClass$D([attr], Dialog.prototype, "type", 2);
|
|
6736
6742
|
|
|
6737
6743
|
const template$y = 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 => x.hide()}" ${ref("dialog")}><slot></slot></dialog>`;
|
|
6738
6744
|
|
|
@@ -6748,45 +6754,30 @@ const definition$y = Dialog.compose({
|
|
|
6748
6754
|
|
|
6749
6755
|
definition$y.define(FluentDesignSystem.registry);
|
|
6750
6756
|
|
|
6751
|
-
var __defProp$D = Object.defineProperty;
|
|
6752
|
-
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
6753
|
-
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
6754
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
6755
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6756
|
-
if (kind && result) __defProp$D(target, key, result);
|
|
6757
|
-
return result;
|
|
6758
|
-
};
|
|
6759
6757
|
class DialogBody extends FASTElement {
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6758
|
+
/**
|
|
6759
|
+
* Handles click event for the close slot
|
|
6760
|
+
*
|
|
6761
|
+
* @param e - the click event
|
|
6762
|
+
* @internal
|
|
6763
|
+
*/
|
|
6764
|
+
clickHandler(event) {
|
|
6765
|
+
if (!event.defaultPrevented) {
|
|
6766
|
+
const dialog = this.parentElement;
|
|
6767
|
+
if (isDialog(dialog)) {
|
|
6768
|
+
dialog.hide();
|
|
6769
|
+
}
|
|
6770
|
+
}
|
|
6771
|
+
return true;
|
|
6763
6772
|
}
|
|
6764
6773
|
}
|
|
6765
|
-
__decorateClass$D([attr({
|
|
6766
|
-
mode: "boolean",
|
|
6767
|
-
attribute: "no-title-action"
|
|
6768
|
-
})], DialogBody.prototype, "noTitleAction", 2);
|
|
6769
6774
|
|
|
6770
|
-
const
|
|
6771
|
-
<svg
|
|
6772
|
-
fill="currentColor"
|
|
6773
|
-
aria-hidden="true"
|
|
6774
|
-
width="20"
|
|
6775
|
-
height="20"
|
|
6776
|
-
viewBox="0 0 20 20"
|
|
6777
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6778
|
-
>
|
|
6779
|
-
<path
|
|
6780
|
-
d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
|
|
6781
|
-
fill="currentColor"
|
|
6782
|
-
></path>
|
|
6783
|
-
</svg>`);
|
|
6784
|
-
const template$x = 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>`;
|
|
6775
|
+
const template$x = html`<template><div class="title" part="title"><slot name="title"></slot><slot name="title-action"></slot><slot name="close" @click="${(x, c) => x.clickHandler(c.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></template>`;
|
|
6785
6776
|
|
|
6786
6777
|
const styles$w = css`
|
|
6787
6778
|
${display("grid")}
|
|
6788
6779
|
|
|
6789
|
-
: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
|
|
6780
|
+
: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}::slotted([slot='title-action']){margin-inline-start:auto}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@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}}}`;
|
|
6790
6781
|
|
|
6791
6782
|
const definition$x = DialogBody.compose({
|
|
6792
6783
|
name: `${FluentDesignSystem.prefix}-dialog-body`,
|
|
@@ -8931,10 +8922,12 @@ class Menu extends FASTElement {
|
|
|
8931
8922
|
*/
|
|
8932
8923
|
this.toggleHandler = e => {
|
|
8933
8924
|
if (e.type === "toggle" && e.newState) {
|
|
8934
|
-
const newState = e.newState === "open"
|
|
8925
|
+
const newState = e.newState === "open";
|
|
8935
8926
|
this._trigger?.setAttribute("aria-expanded", `${newState}`);
|
|
8936
8927
|
this._open = newState;
|
|
8937
|
-
this.
|
|
8928
|
+
if (this._open) {
|
|
8929
|
+
this.focusMenuList();
|
|
8930
|
+
}
|
|
8938
8931
|
}
|
|
8939
8932
|
};
|
|
8940
8933
|
/**
|