@fluentui/web-components 3.0.0-beta.85 → 3.0.0-beta.87
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 +21 -2
- package/dist/dts/dropdown/dropdown.base.d.ts +23 -0
- package/dist/dts/dropdown/dropdown.d.ts +0 -32
- package/dist/dts/tree/index.d.ts +1 -0
- package/dist/dts/tree/tree.base.d.ts +68 -0
- package/dist/dts/tree/tree.d.ts +7 -67
- package/dist/dts/tree-item/index.d.ts +1 -0
- package/dist/dts/tree-item/tree-item.base.d.ts +99 -0
- package/dist/dts/tree-item/tree-item.d.ts +5 -88
- package/dist/dts/tree-item/tree-item.options.d.ts +2 -2
- package/dist/esm/dropdown/dropdown.base.js +50 -0
- package/dist/esm/dropdown/dropdown.base.js.map +1 -1
- package/dist/esm/dropdown/dropdown.js +12 -72
- package/dist/esm/dropdown/dropdown.js.map +1 -1
- package/dist/esm/tree/index.js +1 -0
- package/dist/esm/tree/index.js.map +1 -1
- package/dist/esm/tree/tree.base.js +232 -0
- package/dist/esm/tree/tree.base.js.map +1 -0
- package/dist/esm/tree/tree.js +10 -229
- package/dist/esm/tree/tree.js.map +1 -1
- package/dist/esm/tree/tree.template.js +3 -2
- package/dist/esm/tree/tree.template.js.map +1 -1
- package/dist/esm/tree-item/index.js +1 -0
- package/dist/esm/tree-item/index.js.map +1 -1
- package/dist/esm/tree-item/tree-item.base.js +165 -0
- package/dist/esm/tree-item/tree-item.base.js.map +1 -0
- package/dist/esm/tree-item/tree-item.js +13 -149
- package/dist/esm/tree-item/tree-item.js.map +1 -1
- package/dist/esm/tree-item/tree-item.styles.js +8 -21
- package/dist/esm/tree-item/tree-item.styles.js.map +1 -1
- package/dist/esm/tree-item/tree-item.template.js +5 -7
- package/dist/esm/tree-item/tree-item.template.js.map +1 -1
- package/dist/web-components.d.ts +127 -120
- package/dist/web-components.js +981 -940
- package/dist/web-components.min.js +229 -229
- 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$S = Object.defineProperty;
|
|
4015
|
+
var __getOwnPropDesc$S = Object.getOwnPropertyDescriptor;
|
|
4016
|
+
var __decorateClass$S = (decorators, target, key, kind) => {
|
|
4017
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$S(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$S(target, key, result);
|
|
4020
4020
|
return result;
|
|
4021
4021
|
};
|
|
4022
4022
|
class ARIAGlobalStatesAndProperties {}
|
|
4023
|
-
__decorateClass$
|
|
4023
|
+
__decorateClass$S([attr({
|
|
4024
4024
|
attribute: "aria-atomic"
|
|
4025
4025
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", 2);
|
|
4026
|
-
__decorateClass$
|
|
4026
|
+
__decorateClass$S([attr({
|
|
4027
4027
|
attribute: "aria-busy"
|
|
4028
4028
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", 2);
|
|
4029
|
-
__decorateClass$
|
|
4029
|
+
__decorateClass$S([attr({
|
|
4030
4030
|
attribute: "aria-controls"
|
|
4031
4031
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaControls", 2);
|
|
4032
|
-
__decorateClass$
|
|
4032
|
+
__decorateClass$S([attr({
|
|
4033
4033
|
attribute: "aria-current"
|
|
4034
4034
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", 2);
|
|
4035
|
-
__decorateClass$
|
|
4035
|
+
__decorateClass$S([attr({
|
|
4036
4036
|
attribute: "aria-describedby"
|
|
4037
4037
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", 2);
|
|
4038
|
-
__decorateClass$
|
|
4038
|
+
__decorateClass$S([attr({
|
|
4039
4039
|
attribute: "aria-details"
|
|
4040
4040
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", 2);
|
|
4041
|
-
__decorateClass$
|
|
4041
|
+
__decorateClass$S([attr({
|
|
4042
4042
|
attribute: "aria-disabled"
|
|
4043
4043
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", 2);
|
|
4044
|
-
__decorateClass$
|
|
4044
|
+
__decorateClass$S([attr({
|
|
4045
4045
|
attribute: "aria-errormessage"
|
|
4046
4046
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", 2);
|
|
4047
|
-
__decorateClass$
|
|
4047
|
+
__decorateClass$S([attr({
|
|
4048
4048
|
attribute: "aria-flowto"
|
|
4049
4049
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", 2);
|
|
4050
|
-
__decorateClass$
|
|
4050
|
+
__decorateClass$S([attr({
|
|
4051
4051
|
attribute: "aria-haspopup"
|
|
4052
4052
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", 2);
|
|
4053
|
-
__decorateClass$
|
|
4053
|
+
__decorateClass$S([attr({
|
|
4054
4054
|
attribute: "aria-hidden"
|
|
4055
4055
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", 2);
|
|
4056
|
-
__decorateClass$
|
|
4056
|
+
__decorateClass$S([attr({
|
|
4057
4057
|
attribute: "aria-invalid"
|
|
4058
4058
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", 2);
|
|
4059
|
-
__decorateClass$
|
|
4059
|
+
__decorateClass$S([attr({
|
|
4060
4060
|
attribute: "aria-keyshortcuts"
|
|
4061
4061
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", 2);
|
|
4062
|
-
__decorateClass$
|
|
4062
|
+
__decorateClass$S([attr({
|
|
4063
4063
|
attribute: "aria-label"
|
|
4064
4064
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", 2);
|
|
4065
|
-
__decorateClass$
|
|
4065
|
+
__decorateClass$S([attr({
|
|
4066
4066
|
attribute: "aria-labelledby"
|
|
4067
4067
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", 2);
|
|
4068
|
-
__decorateClass$
|
|
4068
|
+
__decorateClass$S([attr({
|
|
4069
4069
|
attribute: "aria-live"
|
|
4070
4070
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLive", 2);
|
|
4071
|
-
__decorateClass$
|
|
4071
|
+
__decorateClass$S([attr({
|
|
4072
4072
|
attribute: "aria-owns"
|
|
4073
4073
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", 2);
|
|
4074
|
-
__decorateClass$
|
|
4074
|
+
__decorateClass$S([attr({
|
|
4075
4075
|
attribute: "aria-relevant"
|
|
4076
4076
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", 2);
|
|
4077
|
-
__decorateClass$
|
|
4077
|
+
__decorateClass$S([attr({
|
|
4078
4078
|
attribute: "aria-roledescription"
|
|
4079
4079
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", 2);
|
|
4080
4080
|
|
|
@@ -4378,12 +4378,12 @@ function swapStates(elementInternals, prev = "", next = "", States, prefix = "")
|
|
|
4378
4378
|
}
|
|
4379
4379
|
}
|
|
4380
4380
|
|
|
4381
|
-
var __defProp$
|
|
4382
|
-
var __getOwnPropDesc$
|
|
4383
|
-
var __decorateClass$
|
|
4384
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4381
|
+
var __defProp$R = Object.defineProperty;
|
|
4382
|
+
var __getOwnPropDesc$R = Object.getOwnPropertyDescriptor;
|
|
4383
|
+
var __decorateClass$R = (decorators, target, key, kind) => {
|
|
4384
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$R(target, key) : target;
|
|
4385
4385
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4386
|
-
if (kind && result) __defProp$
|
|
4386
|
+
if (kind && result) __defProp$R(target, key, result);
|
|
4387
4387
|
return result;
|
|
4388
4388
|
};
|
|
4389
4389
|
class BaseAccordionItem extends FASTElement {
|
|
@@ -4417,18 +4417,18 @@ class BaseAccordionItem extends FASTElement {
|
|
|
4417
4417
|
toggleState(this.elementInternals, "disabled", next);
|
|
4418
4418
|
}
|
|
4419
4419
|
}
|
|
4420
|
-
__decorateClass$
|
|
4420
|
+
__decorateClass$R([attr({
|
|
4421
4421
|
attribute: "heading-level",
|
|
4422
4422
|
mode: "fromView",
|
|
4423
4423
|
converter: nullableNumberConverter
|
|
4424
4424
|
})], BaseAccordionItem.prototype, "headinglevel", 2);
|
|
4425
|
-
__decorateClass$
|
|
4425
|
+
__decorateClass$R([attr({
|
|
4426
4426
|
mode: "boolean"
|
|
4427
4427
|
})], BaseAccordionItem.prototype, "expanded", 2);
|
|
4428
|
-
__decorateClass$
|
|
4428
|
+
__decorateClass$R([attr({
|
|
4429
4429
|
mode: "boolean"
|
|
4430
4430
|
})], BaseAccordionItem.prototype, "disabled", 2);
|
|
4431
|
-
__decorateClass$
|
|
4431
|
+
__decorateClass$R([attr], BaseAccordionItem.prototype, "id", 2);
|
|
4432
4432
|
|
|
4433
4433
|
const AccordionItemSize = {
|
|
4434
4434
|
small: "small",
|
|
@@ -4441,12 +4441,12 @@ const AccordionItemMarkerPosition = {
|
|
|
4441
4441
|
end: "end"
|
|
4442
4442
|
};
|
|
4443
4443
|
|
|
4444
|
-
var __defProp$
|
|
4445
|
-
var __getOwnPropDesc$
|
|
4446
|
-
var __decorateClass$
|
|
4447
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4444
|
+
var __defProp$Q = Object.defineProperty;
|
|
4445
|
+
var __getOwnPropDesc$Q = Object.getOwnPropertyDescriptor;
|
|
4446
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
4447
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Q(target, key) : target;
|
|
4448
4448
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4449
|
-
if (kind && result) __defProp$
|
|
4449
|
+
if (kind && result) __defProp$Q(target, key, result);
|
|
4450
4450
|
return result;
|
|
4451
4451
|
};
|
|
4452
4452
|
class AccordionItem extends BaseAccordionItem {
|
|
@@ -4479,11 +4479,11 @@ class AccordionItem extends BaseAccordionItem {
|
|
|
4479
4479
|
toggleState(this.elementInternals, "block", next);
|
|
4480
4480
|
}
|
|
4481
4481
|
}
|
|
4482
|
-
__decorateClass$
|
|
4483
|
-
__decorateClass$
|
|
4482
|
+
__decorateClass$Q([attr], AccordionItem.prototype, "size", 2);
|
|
4483
|
+
__decorateClass$Q([attr({
|
|
4484
4484
|
attribute: "marker-position"
|
|
4485
4485
|
})], AccordionItem.prototype, "markerPosition", 2);
|
|
4486
|
-
__decorateClass$
|
|
4486
|
+
__decorateClass$Q([attr({
|
|
4487
4487
|
mode: "boolean"
|
|
4488
4488
|
})], AccordionItem.prototype, "block", 2);
|
|
4489
4489
|
applyMixins(AccordionItem, StartEnd);
|
|
@@ -4916,12 +4916,12 @@ const AccordionExpandMode = {
|
|
|
4916
4916
|
multi: "multi"
|
|
4917
4917
|
};
|
|
4918
4918
|
|
|
4919
|
-
var __defProp$
|
|
4920
|
-
var __getOwnPropDesc$
|
|
4921
|
-
var __decorateClass$
|
|
4922
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4919
|
+
var __defProp$P = Object.defineProperty;
|
|
4920
|
+
var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
|
|
4921
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
4922
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
|
|
4923
4923
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4924
|
-
if (kind && result) __defProp$
|
|
4924
|
+
if (kind && result) __defProp$P(target, key, result);
|
|
4925
4925
|
return result;
|
|
4926
4926
|
};
|
|
4927
4927
|
class Accordion extends FASTElement {
|
|
@@ -5060,10 +5060,10 @@ class Accordion extends FASTElement {
|
|
|
5060
5060
|
});
|
|
5061
5061
|
}
|
|
5062
5062
|
}
|
|
5063
|
-
__decorateClass$
|
|
5063
|
+
__decorateClass$P([attr({
|
|
5064
5064
|
attribute: "expand-mode"
|
|
5065
5065
|
})], Accordion.prototype, "expandmode", 2);
|
|
5066
|
-
__decorateClass$
|
|
5066
|
+
__decorateClass$P([observable], Accordion.prototype, "slottedAccordionItems", 2);
|
|
5067
5067
|
|
|
5068
5068
|
const styles$F = css`
|
|
5069
5069
|
${display("flex")}
|
|
@@ -5122,12 +5122,12 @@ const AnchorAttributes = {
|
|
|
5122
5122
|
type: "type"
|
|
5123
5123
|
};
|
|
5124
5124
|
|
|
5125
|
-
var __defProp$
|
|
5126
|
-
var __getOwnPropDesc$
|
|
5127
|
-
var __decorateClass$
|
|
5128
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5125
|
+
var __defProp$O = Object.defineProperty;
|
|
5126
|
+
var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
|
|
5127
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
5128
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
|
|
5129
5129
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5130
|
-
if (kind && result) __defProp$
|
|
5130
|
+
if (kind && result) __defProp$O(target, key, result);
|
|
5131
5131
|
return result;
|
|
5132
5132
|
};
|
|
5133
5133
|
class BaseAnchor extends FASTElement {
|
|
@@ -5235,21 +5235,21 @@ class BaseAnchor extends FASTElement {
|
|
|
5235
5235
|
return proxy;
|
|
5236
5236
|
}
|
|
5237
5237
|
}
|
|
5238
|
-
__decorateClass$
|
|
5239
|
-
__decorateClass$
|
|
5240
|
-
__decorateClass$
|
|
5241
|
-
__decorateClass$
|
|
5242
|
-
__decorateClass$
|
|
5243
|
-
__decorateClass$
|
|
5244
|
-
__decorateClass$
|
|
5245
|
-
__decorateClass$
|
|
5238
|
+
__decorateClass$O([attr], BaseAnchor.prototype, "download", 2);
|
|
5239
|
+
__decorateClass$O([attr], BaseAnchor.prototype, "href", 2);
|
|
5240
|
+
__decorateClass$O([attr], BaseAnchor.prototype, "hreflang", 2);
|
|
5241
|
+
__decorateClass$O([attr], BaseAnchor.prototype, "ping", 2);
|
|
5242
|
+
__decorateClass$O([attr], BaseAnchor.prototype, "referrerpolicy", 2);
|
|
5243
|
+
__decorateClass$O([attr], BaseAnchor.prototype, "rel", 2);
|
|
5244
|
+
__decorateClass$O([attr], BaseAnchor.prototype, "target", 2);
|
|
5245
|
+
__decorateClass$O([attr], BaseAnchor.prototype, "type", 2);
|
|
5246
5246
|
|
|
5247
|
-
var __defProp$
|
|
5248
|
-
var __getOwnPropDesc$
|
|
5249
|
-
var __decorateClass$
|
|
5250
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5247
|
+
var __defProp$N = Object.defineProperty;
|
|
5248
|
+
var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
|
|
5249
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
5250
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
|
|
5251
5251
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5252
|
-
if (kind && result) __defProp$
|
|
5252
|
+
if (kind && result) __defProp$N(target, key, result);
|
|
5253
5253
|
return result;
|
|
5254
5254
|
};
|
|
5255
5255
|
class AnchorButton extends BaseAnchor {
|
|
@@ -5290,10 +5290,10 @@ class AnchorButton extends BaseAnchor {
|
|
|
5290
5290
|
toggleState(this.elementInternals, "icon", !!next);
|
|
5291
5291
|
}
|
|
5292
5292
|
}
|
|
5293
|
-
__decorateClass$
|
|
5294
|
-
__decorateClass$
|
|
5295
|
-
__decorateClass$
|
|
5296
|
-
__decorateClass$
|
|
5293
|
+
__decorateClass$N([attr], AnchorButton.prototype, "appearance", 2);
|
|
5294
|
+
__decorateClass$N([attr], AnchorButton.prototype, "shape", 2);
|
|
5295
|
+
__decorateClass$N([attr], AnchorButton.prototype, "size", 2);
|
|
5296
|
+
__decorateClass$N([attr({
|
|
5297
5297
|
attribute: "icon-only",
|
|
5298
5298
|
mode: "boolean"
|
|
5299
5299
|
})], AnchorButton.prototype, "iconOnly", 2);
|
|
@@ -5369,12 +5369,12 @@ function getInitials(displayName, isRtl, options) {
|
|
|
5369
5369
|
return getInitialsLatin(displayName, isRtl, options?.firstInitialOnly);
|
|
5370
5370
|
}
|
|
5371
5371
|
|
|
5372
|
-
var __defProp$
|
|
5373
|
-
var __getOwnPropDesc$
|
|
5374
|
-
var __decorateClass$
|
|
5375
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5372
|
+
var __defProp$M = Object.defineProperty;
|
|
5373
|
+
var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
|
|
5374
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
5375
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
|
|
5376
5376
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5377
|
-
if (kind && result) __defProp$
|
|
5377
|
+
if (kind && result) __defProp$M(target, key, result);
|
|
5378
5378
|
return result;
|
|
5379
5379
|
};
|
|
5380
5380
|
class BaseAvatar extends FASTElement {
|
|
@@ -5389,9 +5389,9 @@ class BaseAvatar extends FASTElement {
|
|
|
5389
5389
|
this.elementInternals.role = "img";
|
|
5390
5390
|
}
|
|
5391
5391
|
}
|
|
5392
|
-
__decorateClass$
|
|
5393
|
-
__decorateClass$
|
|
5394
|
-
__decorateClass$
|
|
5392
|
+
__decorateClass$M([attr], BaseAvatar.prototype, "name", 2);
|
|
5393
|
+
__decorateClass$M([attr], BaseAvatar.prototype, "initials", 2);
|
|
5394
|
+
__decorateClass$M([attr], BaseAvatar.prototype, "active", 2);
|
|
5395
5395
|
|
|
5396
5396
|
const AvatarNamedColor = {
|
|
5397
5397
|
darkRed: "dark-red",
|
|
@@ -5432,12 +5432,12 @@ const AvatarColor = {
|
|
|
5432
5432
|
...AvatarNamedColor
|
|
5433
5433
|
};
|
|
5434
5434
|
|
|
5435
|
-
var __defProp$
|
|
5436
|
-
var __getOwnPropDesc$
|
|
5437
|
-
var __decorateClass$
|
|
5438
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5435
|
+
var __defProp$L = Object.defineProperty;
|
|
5436
|
+
var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
|
|
5437
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
5438
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
|
|
5439
5439
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5440
|
-
if (kind && result) __defProp$
|
|
5440
|
+
if (kind && result) __defProp$L(target, key, result);
|
|
5441
5441
|
return result;
|
|
5442
5442
|
};
|
|
5443
5443
|
const _Avatar = class _Avatar extends BaseAvatar {
|
|
@@ -5492,13 +5492,13 @@ const _Avatar = class _Avatar extends BaseAvatar {
|
|
|
5492
5492
|
* An array of the available Avatar named colors
|
|
5493
5493
|
*/
|
|
5494
5494
|
_Avatar.colors = Object.values(AvatarNamedColor);
|
|
5495
|
-
__decorateClass$
|
|
5496
|
-
__decorateClass$
|
|
5497
|
-
__decorateClass$
|
|
5495
|
+
__decorateClass$L([attr], _Avatar.prototype, "shape", 2);
|
|
5496
|
+
__decorateClass$L([attr], _Avatar.prototype, "appearance", 2);
|
|
5497
|
+
__decorateClass$L([attr({
|
|
5498
5498
|
converter: nullableNumberConverter
|
|
5499
5499
|
})], _Avatar.prototype, "size", 2);
|
|
5500
|
-
__decorateClass$
|
|
5501
|
-
__decorateClass$
|
|
5500
|
+
__decorateClass$L([attr], _Avatar.prototype, "color", 2);
|
|
5501
|
+
__decorateClass$L([attr({
|
|
5502
5502
|
attribute: "color-id"
|
|
5503
5503
|
})], _Avatar.prototype, "colorId", 2);
|
|
5504
5504
|
let Avatar = _Avatar;
|
|
@@ -5570,12 +5570,12 @@ const BadgeSize = {
|
|
|
5570
5570
|
extraLarge: "extra-large"
|
|
5571
5571
|
};
|
|
5572
5572
|
|
|
5573
|
-
var __defProp$
|
|
5574
|
-
var __getOwnPropDesc$
|
|
5575
|
-
var __decorateClass$
|
|
5576
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5573
|
+
var __defProp$K = Object.defineProperty;
|
|
5574
|
+
var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
|
|
5575
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
5576
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
|
|
5577
5577
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5578
|
-
if (kind && result) __defProp$
|
|
5578
|
+
if (kind && result) __defProp$K(target, key, result);
|
|
5579
5579
|
return result;
|
|
5580
5580
|
};
|
|
5581
5581
|
class Badge extends FASTElement {
|
|
@@ -5623,10 +5623,10 @@ class Badge extends FASTElement {
|
|
|
5623
5623
|
swapStates(this.elementInternals, prev, next, BadgeSize);
|
|
5624
5624
|
}
|
|
5625
5625
|
}
|
|
5626
|
-
__decorateClass$
|
|
5627
|
-
__decorateClass$
|
|
5628
|
-
__decorateClass$
|
|
5629
|
-
__decorateClass$
|
|
5626
|
+
__decorateClass$K([attr], Badge.prototype, "appearance", 2);
|
|
5627
|
+
__decorateClass$K([attr], Badge.prototype, "color", 2);
|
|
5628
|
+
__decorateClass$K([attr], Badge.prototype, "shape", 2);
|
|
5629
|
+
__decorateClass$K([attr], Badge.prototype, "size", 2);
|
|
5630
5630
|
applyMixins(Badge, StartEnd);
|
|
5631
5631
|
|
|
5632
5632
|
const badgeBaseStyles = css.partial`
|
|
@@ -6003,12 +6003,12 @@ const definition$D = Badge.compose({
|
|
|
6003
6003
|
|
|
6004
6004
|
definition$D.define(FluentDesignSystem.registry);
|
|
6005
6005
|
|
|
6006
|
-
var __defProp$
|
|
6007
|
-
var __getOwnPropDesc$
|
|
6008
|
-
var __decorateClass$
|
|
6009
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6006
|
+
var __defProp$J = Object.defineProperty;
|
|
6007
|
+
var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
|
|
6008
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
6009
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
|
|
6010
6010
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6011
|
-
if (kind && result) __defProp$
|
|
6011
|
+
if (kind && result) __defProp$J(target, key, result);
|
|
6012
6012
|
return result;
|
|
6013
6013
|
};
|
|
6014
6014
|
class BaseButton extends FASTElement {
|
|
@@ -6212,51 +6212,51 @@ class BaseButton extends FASTElement {
|
|
|
6212
6212
|
* @public
|
|
6213
6213
|
*/
|
|
6214
6214
|
BaseButton.formAssociated = true;
|
|
6215
|
-
__decorateClass$
|
|
6215
|
+
__decorateClass$J([attr({
|
|
6216
6216
|
mode: "boolean"
|
|
6217
6217
|
})], BaseButton.prototype, "autofocus", 2);
|
|
6218
|
-
__decorateClass$
|
|
6219
|
-
__decorateClass$
|
|
6218
|
+
__decorateClass$J([observable], BaseButton.prototype, "defaultSlottedContent", 2);
|
|
6219
|
+
__decorateClass$J([attr({
|
|
6220
6220
|
mode: "boolean"
|
|
6221
6221
|
})], BaseButton.prototype, "disabled", 2);
|
|
6222
|
-
__decorateClass$
|
|
6222
|
+
__decorateClass$J([attr({
|
|
6223
6223
|
attribute: "disabled-focusable",
|
|
6224
6224
|
mode: "boolean"
|
|
6225
6225
|
})], BaseButton.prototype, "disabledFocusable", 2);
|
|
6226
|
-
__decorateClass$
|
|
6226
|
+
__decorateClass$J([attr({
|
|
6227
6227
|
attribute: "tabindex",
|
|
6228
6228
|
mode: "fromView",
|
|
6229
6229
|
converter: nullableNumberConverter
|
|
6230
6230
|
})], BaseButton.prototype, "tabIndex", 2);
|
|
6231
|
-
__decorateClass$
|
|
6231
|
+
__decorateClass$J([attr({
|
|
6232
6232
|
attribute: "formaction"
|
|
6233
6233
|
})], BaseButton.prototype, "formAction", 2);
|
|
6234
|
-
__decorateClass$
|
|
6234
|
+
__decorateClass$J([attr({
|
|
6235
6235
|
attribute: "form"
|
|
6236
6236
|
})], BaseButton.prototype, "formAttribute", 2);
|
|
6237
|
-
__decorateClass$
|
|
6237
|
+
__decorateClass$J([attr({
|
|
6238
6238
|
attribute: "formenctype"
|
|
6239
6239
|
})], BaseButton.prototype, "formEnctype", 2);
|
|
6240
|
-
__decorateClass$
|
|
6240
|
+
__decorateClass$J([attr({
|
|
6241
6241
|
attribute: "formmethod"
|
|
6242
6242
|
})], BaseButton.prototype, "formMethod", 2);
|
|
6243
|
-
__decorateClass$
|
|
6243
|
+
__decorateClass$J([attr({
|
|
6244
6244
|
attribute: "formnovalidate",
|
|
6245
6245
|
mode: "boolean"
|
|
6246
6246
|
})], BaseButton.prototype, "formNoValidate", 2);
|
|
6247
|
-
__decorateClass$
|
|
6247
|
+
__decorateClass$J([attr({
|
|
6248
6248
|
attribute: "formtarget"
|
|
6249
6249
|
})], BaseButton.prototype, "formTarget", 2);
|
|
6250
|
-
__decorateClass$
|
|
6251
|
-
__decorateClass$
|
|
6252
|
-
__decorateClass$
|
|
6250
|
+
__decorateClass$J([attr], BaseButton.prototype, "name", 2);
|
|
6251
|
+
__decorateClass$J([attr], BaseButton.prototype, "type", 2);
|
|
6252
|
+
__decorateClass$J([attr], BaseButton.prototype, "value", 2);
|
|
6253
6253
|
|
|
6254
|
-
var __defProp$
|
|
6255
|
-
var __getOwnPropDesc$
|
|
6256
|
-
var __decorateClass$
|
|
6257
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6254
|
+
var __defProp$I = Object.defineProperty;
|
|
6255
|
+
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
6256
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
6257
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
6258
6258
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6259
|
-
if (kind && result) __defProp$
|
|
6259
|
+
if (kind && result) __defProp$I(target, key, result);
|
|
6260
6260
|
return result;
|
|
6261
6261
|
};
|
|
6262
6262
|
class Button extends BaseButton {
|
|
@@ -6297,10 +6297,10 @@ class Button extends BaseButton {
|
|
|
6297
6297
|
toggleState(this.elementInternals, "icon", next);
|
|
6298
6298
|
}
|
|
6299
6299
|
}
|
|
6300
|
-
__decorateClass$
|
|
6301
|
-
__decorateClass$
|
|
6302
|
-
__decorateClass$
|
|
6303
|
-
__decorateClass$
|
|
6300
|
+
__decorateClass$I([attr], Button.prototype, "appearance", 2);
|
|
6301
|
+
__decorateClass$I([attr], Button.prototype, "shape", 2);
|
|
6302
|
+
__decorateClass$I([attr], Button.prototype, "size", 2);
|
|
6303
|
+
__decorateClass$I([attr({
|
|
6304
6304
|
attribute: "icon-only",
|
|
6305
6305
|
mode: "boolean"
|
|
6306
6306
|
})], Button.prototype, "iconOnly", 2);
|
|
@@ -6319,12 +6319,12 @@ const definition$C = Button.compose({
|
|
|
6319
6319
|
|
|
6320
6320
|
definition$C.define(FluentDesignSystem.registry);
|
|
6321
6321
|
|
|
6322
|
-
var __defProp$
|
|
6323
|
-
var __getOwnPropDesc$
|
|
6324
|
-
var __decorateClass$
|
|
6325
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6322
|
+
var __defProp$H = Object.defineProperty;
|
|
6323
|
+
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
6324
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
6325
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
6326
6326
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6327
|
-
if (kind && result) __defProp$
|
|
6327
|
+
if (kind && result) __defProp$H(target, key, result);
|
|
6328
6328
|
return result;
|
|
6329
6329
|
};
|
|
6330
6330
|
class BaseCheckbox extends FASTElement {
|
|
@@ -6658,27 +6658,27 @@ class BaseCheckbox extends FASTElement {
|
|
|
6658
6658
|
* @public
|
|
6659
6659
|
*/
|
|
6660
6660
|
BaseCheckbox.formAssociated = true;
|
|
6661
|
-
__decorateClass$
|
|
6661
|
+
__decorateClass$H([attr({
|
|
6662
6662
|
mode: "boolean"
|
|
6663
6663
|
})], BaseCheckbox.prototype, "autofocus", 2);
|
|
6664
|
-
__decorateClass$
|
|
6665
|
-
__decorateClass$
|
|
6664
|
+
__decorateClass$H([observable], BaseCheckbox.prototype, "disabled", 2);
|
|
6665
|
+
__decorateClass$H([attr({
|
|
6666
6666
|
attribute: "disabled",
|
|
6667
6667
|
mode: "boolean"
|
|
6668
6668
|
})], BaseCheckbox.prototype, "disabledAttribute", 2);
|
|
6669
|
-
__decorateClass$
|
|
6669
|
+
__decorateClass$H([attr({
|
|
6670
6670
|
attribute: "form"
|
|
6671
6671
|
})], BaseCheckbox.prototype, "formAttribute", 2);
|
|
6672
|
-
__decorateClass$
|
|
6672
|
+
__decorateClass$H([attr({
|
|
6673
6673
|
attribute: "checked",
|
|
6674
6674
|
mode: "boolean"
|
|
6675
6675
|
})], BaseCheckbox.prototype, "initialChecked", 2);
|
|
6676
|
-
__decorateClass$
|
|
6676
|
+
__decorateClass$H([attr({
|
|
6677
6677
|
attribute: "value",
|
|
6678
6678
|
mode: "fromView"
|
|
6679
6679
|
})], BaseCheckbox.prototype, "initialValue", 2);
|
|
6680
|
-
__decorateClass$
|
|
6681
|
-
__decorateClass$
|
|
6680
|
+
__decorateClass$H([attr], BaseCheckbox.prototype, "name", 2);
|
|
6681
|
+
__decorateClass$H([attr({
|
|
6682
6682
|
mode: "boolean"
|
|
6683
6683
|
})], BaseCheckbox.prototype, "required", 2);
|
|
6684
6684
|
|
|
@@ -6691,12 +6691,12 @@ const CheckboxSize = {
|
|
|
6691
6691
|
large: "large"
|
|
6692
6692
|
};
|
|
6693
6693
|
|
|
6694
|
-
var __defProp$
|
|
6695
|
-
var __getOwnPropDesc$
|
|
6696
|
-
var __decorateClass$
|
|
6697
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6694
|
+
var __defProp$G = Object.defineProperty;
|
|
6695
|
+
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6696
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
6697
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
6698
6698
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6699
|
-
if (kind && result) __defProp$
|
|
6699
|
+
if (kind && result) __defProp$G(target, key, result);
|
|
6700
6700
|
return result;
|
|
6701
6701
|
};
|
|
6702
6702
|
class Checkbox extends BaseCheckbox {
|
|
@@ -6759,9 +6759,9 @@ class Checkbox extends BaseCheckbox {
|
|
|
6759
6759
|
super.toggleChecked(force);
|
|
6760
6760
|
}
|
|
6761
6761
|
}
|
|
6762
|
-
__decorateClass$
|
|
6763
|
-
__decorateClass$
|
|
6764
|
-
__decorateClass$
|
|
6762
|
+
__decorateClass$G([observable], Checkbox.prototype, "indeterminate", 2);
|
|
6763
|
+
__decorateClass$G([attr], Checkbox.prototype, "shape", 2);
|
|
6764
|
+
__decorateClass$G([attr], Checkbox.prototype, "size", 2);
|
|
6765
6765
|
|
|
6766
6766
|
const styles$A = css`
|
|
6767
6767
|
${display("inline-flex")}
|
|
@@ -6850,12 +6850,12 @@ const CounterBadgeSize = {
|
|
|
6850
6850
|
extraLarge: "extra-large"
|
|
6851
6851
|
};
|
|
6852
6852
|
|
|
6853
|
-
var __defProp$
|
|
6854
|
-
var __getOwnPropDesc$
|
|
6855
|
-
var __decorateClass$
|
|
6856
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6853
|
+
var __defProp$F = Object.defineProperty;
|
|
6854
|
+
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
6855
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
6856
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
6857
6857
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6858
|
-
if (kind && result) __defProp$
|
|
6858
|
+
if (kind && result) __defProp$F(target, key, result);
|
|
6859
6859
|
return result;
|
|
6860
6860
|
};
|
|
6861
6861
|
class CounterBadge extends FASTElement {
|
|
@@ -6932,22 +6932,22 @@ class CounterBadge extends FASTElement {
|
|
|
6932
6932
|
return;
|
|
6933
6933
|
}
|
|
6934
6934
|
}
|
|
6935
|
-
__decorateClass$
|
|
6936
|
-
__decorateClass$
|
|
6937
|
-
__decorateClass$
|
|
6938
|
-
__decorateClass$
|
|
6939
|
-
__decorateClass$
|
|
6935
|
+
__decorateClass$F([attr], CounterBadge.prototype, "appearance", 2);
|
|
6936
|
+
__decorateClass$F([attr], CounterBadge.prototype, "color", 2);
|
|
6937
|
+
__decorateClass$F([attr], CounterBadge.prototype, "shape", 2);
|
|
6938
|
+
__decorateClass$F([attr], CounterBadge.prototype, "size", 2);
|
|
6939
|
+
__decorateClass$F([attr({
|
|
6940
6940
|
converter: nullableNumberConverter
|
|
6941
6941
|
})], CounterBadge.prototype, "count", 2);
|
|
6942
|
-
__decorateClass$
|
|
6942
|
+
__decorateClass$F([attr({
|
|
6943
6943
|
attribute: "overflow-count",
|
|
6944
6944
|
converter: nullableNumberConverter
|
|
6945
6945
|
})], CounterBadge.prototype, "overflowCount", 2);
|
|
6946
|
-
__decorateClass$
|
|
6946
|
+
__decorateClass$F([attr({
|
|
6947
6947
|
attribute: "show-zero",
|
|
6948
6948
|
mode: "boolean"
|
|
6949
6949
|
})], CounterBadge.prototype, "showZero", 2);
|
|
6950
|
-
__decorateClass$
|
|
6950
|
+
__decorateClass$F([attr({
|
|
6951
6951
|
mode: "boolean"
|
|
6952
6952
|
})], CounterBadge.prototype, "dot", 2);
|
|
6953
6953
|
applyMixins(CounterBadge, StartEnd);
|
|
@@ -6981,12 +6981,12 @@ const DialogType = {
|
|
|
6981
6981
|
alert: "alert"
|
|
6982
6982
|
};
|
|
6983
6983
|
|
|
6984
|
-
var __defProp$
|
|
6985
|
-
var __getOwnPropDesc$
|
|
6986
|
-
var __decorateClass$
|
|
6987
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6984
|
+
var __defProp$E = Object.defineProperty;
|
|
6985
|
+
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
6986
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
6987
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
6988
6988
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6989
|
-
if (kind && result) __defProp$
|
|
6989
|
+
if (kind && result) __defProp$E(target, key, result);
|
|
6990
6990
|
return result;
|
|
6991
6991
|
};
|
|
6992
6992
|
class Dialog extends FASTElement {
|
|
@@ -7054,14 +7054,14 @@ class Dialog extends FASTElement {
|
|
|
7054
7054
|
return true;
|
|
7055
7055
|
}
|
|
7056
7056
|
}
|
|
7057
|
-
__decorateClass$
|
|
7058
|
-
__decorateClass$
|
|
7057
|
+
__decorateClass$E([observable], Dialog.prototype, "dialog", 2);
|
|
7058
|
+
__decorateClass$E([attr({
|
|
7059
7059
|
attribute: "aria-describedby"
|
|
7060
7060
|
})], Dialog.prototype, "ariaDescribedby", 2);
|
|
7061
|
-
__decorateClass$
|
|
7061
|
+
__decorateClass$E([attr({
|
|
7062
7062
|
attribute: "aria-labelledby"
|
|
7063
7063
|
})], Dialog.prototype, "ariaLabelledby", 2);
|
|
7064
|
-
__decorateClass$
|
|
7064
|
+
__decorateClass$E([attr], Dialog.prototype, "type", 2);
|
|
7065
7065
|
|
|
7066
7066
|
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, c) => x.type === DialogType.alert ? c.event.preventDefault() : x.hide()}" ${ref("dialog")}><slot></slot></dialog>`;
|
|
7067
7067
|
|
|
@@ -7077,12 +7077,12 @@ const definition$y = Dialog.compose({
|
|
|
7077
7077
|
|
|
7078
7078
|
definition$y.define(FluentDesignSystem.registry);
|
|
7079
7079
|
|
|
7080
|
-
var __defProp$
|
|
7081
|
-
var __getOwnPropDesc$
|
|
7082
|
-
var __decorateClass$
|
|
7083
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7080
|
+
var __defProp$D = Object.defineProperty;
|
|
7081
|
+
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
7082
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
7083
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
7084
7084
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7085
|
-
if (kind && result) __defProp$
|
|
7085
|
+
if (kind && result) __defProp$D(target, key, result);
|
|
7086
7086
|
return result;
|
|
7087
7087
|
};
|
|
7088
7088
|
class DialogBody extends FASTElement {
|
|
@@ -7091,7 +7091,7 @@ class DialogBody extends FASTElement {
|
|
|
7091
7091
|
this.noTitleAction = false;
|
|
7092
7092
|
}
|
|
7093
7093
|
}
|
|
7094
|
-
__decorateClass$
|
|
7094
|
+
__decorateClass$D([attr({
|
|
7095
7095
|
mode: "boolean",
|
|
7096
7096
|
attribute: "no-title-action"
|
|
7097
7097
|
})], DialogBody.prototype, "noTitleAction", 2);
|
|
@@ -7147,12 +7147,12 @@ const DividerAppearance = {
|
|
|
7147
7147
|
subtle: "subtle"
|
|
7148
7148
|
};
|
|
7149
7149
|
|
|
7150
|
-
var __defProp$
|
|
7151
|
-
var __getOwnPropDesc$
|
|
7152
|
-
var __decorateClass$
|
|
7153
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7150
|
+
var __defProp$C = Object.defineProperty;
|
|
7151
|
+
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
7152
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
7153
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
7154
7154
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7155
|
-
if (kind && result) __defProp$
|
|
7155
|
+
if (kind && result) __defProp$C(target, key, result);
|
|
7156
7156
|
return result;
|
|
7157
7157
|
};
|
|
7158
7158
|
class BaseDivider extends FASTElement {
|
|
@@ -7199,15 +7199,15 @@ class BaseDivider extends FASTElement {
|
|
|
7199
7199
|
swapStates(this.elementInternals, previous, next, DividerOrientation);
|
|
7200
7200
|
}
|
|
7201
7201
|
}
|
|
7202
|
-
__decorateClass$
|
|
7203
|
-
__decorateClass$
|
|
7202
|
+
__decorateClass$C([attr], BaseDivider.prototype, "role", 2);
|
|
7203
|
+
__decorateClass$C([attr], BaseDivider.prototype, "orientation", 2);
|
|
7204
7204
|
|
|
7205
|
-
var __defProp$
|
|
7206
|
-
var __getOwnPropDesc$
|
|
7207
|
-
var __decorateClass$
|
|
7208
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7205
|
+
var __defProp$B = Object.defineProperty;
|
|
7206
|
+
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
7207
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
7208
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
7209
7209
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7210
|
-
if (kind && result) __defProp$
|
|
7210
|
+
if (kind && result) __defProp$B(target, key, result);
|
|
7211
7211
|
return result;
|
|
7212
7212
|
};
|
|
7213
7213
|
class Divider extends BaseDivider {
|
|
@@ -7236,11 +7236,11 @@ class Divider extends BaseDivider {
|
|
|
7236
7236
|
toggleState(this.elementInternals, "inset", next);
|
|
7237
7237
|
}
|
|
7238
7238
|
}
|
|
7239
|
-
__decorateClass$
|
|
7239
|
+
__decorateClass$B([attr({
|
|
7240
7240
|
attribute: "align-content"
|
|
7241
7241
|
})], Divider.prototype, "alignContent", 2);
|
|
7242
|
-
__decorateClass$
|
|
7243
|
-
__decorateClass$
|
|
7242
|
+
__decorateClass$B([attr], Divider.prototype, "appearance", 2);
|
|
7243
|
+
__decorateClass$B([attr({
|
|
7244
7244
|
mode: "boolean"
|
|
7245
7245
|
})], Divider.prototype, "inset", 2);
|
|
7246
7246
|
|
|
@@ -7279,12 +7279,12 @@ const DrawerType = {
|
|
|
7279
7279
|
inline: "inline"
|
|
7280
7280
|
};
|
|
7281
7281
|
|
|
7282
|
-
var __defProp$
|
|
7283
|
-
var __getOwnPropDesc$
|
|
7284
|
-
var __decorateClass$
|
|
7285
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7282
|
+
var __defProp$A = Object.defineProperty;
|
|
7283
|
+
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
7284
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
7285
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
7286
7286
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7287
|
-
if (kind && result) __defProp$
|
|
7287
|
+
if (kind && result) __defProp$A(target, key, result);
|
|
7288
7288
|
return result;
|
|
7289
7289
|
};
|
|
7290
7290
|
class Drawer extends FASTElement {
|
|
@@ -7354,18 +7354,18 @@ class Drawer extends FASTElement {
|
|
|
7354
7354
|
return true;
|
|
7355
7355
|
}
|
|
7356
7356
|
}
|
|
7357
|
-
__decorateClass$
|
|
7358
|
-
__decorateClass$
|
|
7357
|
+
__decorateClass$A([attr], Drawer.prototype, "type", 2);
|
|
7358
|
+
__decorateClass$A([attr({
|
|
7359
7359
|
attribute: "aria-labelledby"
|
|
7360
7360
|
})], Drawer.prototype, "ariaLabelledby", 2);
|
|
7361
|
-
__decorateClass$
|
|
7361
|
+
__decorateClass$A([attr({
|
|
7362
7362
|
attribute: "aria-describedby"
|
|
7363
7363
|
})], Drawer.prototype, "ariaDescribedby", 2);
|
|
7364
|
-
__decorateClass$
|
|
7365
|
-
__decorateClass$
|
|
7364
|
+
__decorateClass$A([attr], Drawer.prototype, "position", 2);
|
|
7365
|
+
__decorateClass$A([attr({
|
|
7366
7366
|
attribute: "size"
|
|
7367
7367
|
})], Drawer.prototype, "size", 2);
|
|
7368
|
-
__decorateClass$
|
|
7368
|
+
__decorateClass$A([observable], Drawer.prototype, "dialog", 2);
|
|
7369
7369
|
|
|
7370
7370
|
const styles$u = css`
|
|
7371
7371
|
${display("block")}
|
|
@@ -7455,15 +7455,15 @@ const template$t = dropdownTemplate({
|
|
|
7455
7455
|
indicator: dropdownIndicatorTemplate
|
|
7456
7456
|
});
|
|
7457
7457
|
|
|
7458
|
-
var __defProp$
|
|
7459
|
-
var __getOwnPropDesc$
|
|
7460
|
-
var __decorateClass$
|
|
7461
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7458
|
+
var __defProp$z = Object.defineProperty;
|
|
7459
|
+
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
7460
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
7461
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
7462
7462
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7463
|
-
if (kind && result) __defProp$
|
|
7463
|
+
if (kind && result) __defProp$z(target, key, result);
|
|
7464
7464
|
return result;
|
|
7465
7465
|
};
|
|
7466
|
-
class
|
|
7466
|
+
const _BaseDropdown = class _BaseDropdown extends FASTElement {
|
|
7467
7467
|
constructor() {
|
|
7468
7468
|
super();
|
|
7469
7469
|
this.activeIndex = 0;
|
|
@@ -7478,6 +7478,7 @@ class BaseDropdown extends FASTElement {
|
|
|
7478
7478
|
*/
|
|
7479
7479
|
this.elementInternals = this.attachInternals();
|
|
7480
7480
|
this.elementInternals.role = "presentation";
|
|
7481
|
+
this.addEventListener("connected", this.listboxConnectedHandler);
|
|
7481
7482
|
Updates.enqueue(() => {
|
|
7482
7483
|
this.insertControl();
|
|
7483
7484
|
});
|
|
@@ -7619,6 +7620,11 @@ class BaseDropdown extends FASTElement {
|
|
|
7619
7620
|
toggleState(this.elementInternals, "open", next);
|
|
7620
7621
|
this.elementInternals.ariaExpanded = next ? "true" : "false";
|
|
7621
7622
|
this.activeIndex = this.selectedIndex ?? -1;
|
|
7623
|
+
if (next) {
|
|
7624
|
+
_BaseDropdown.AnchorPositionFallbackObserver?.observe(this.listbox);
|
|
7625
|
+
return;
|
|
7626
|
+
}
|
|
7627
|
+
_BaseDropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
|
|
7622
7628
|
}
|
|
7623
7629
|
/**
|
|
7624
7630
|
* Changes the slotted control element based on the dropdown type.
|
|
@@ -8011,90 +8017,12 @@ class BaseDropdown extends FASTElement {
|
|
|
8011
8017
|
this.freeformOption.value = value;
|
|
8012
8018
|
this.freeformOption.hidden = false;
|
|
8013
8019
|
}
|
|
8014
|
-
}
|
|
8015
|
-
/**
|
|
8016
|
-
* The form-associated flag.
|
|
8017
|
-
* @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
|
|
8018
|
-
*
|
|
8019
|
-
* @public
|
|
8020
|
-
*/
|
|
8021
|
-
BaseDropdown.formAssociated = true;
|
|
8022
|
-
__decorateClass$x([volatile], BaseDropdown.prototype, "activeDescendant", 1);
|
|
8023
|
-
__decorateClass$x([observable], BaseDropdown.prototype, "activeIndex", 2);
|
|
8024
|
-
__decorateClass$x([attr({
|
|
8025
|
-
attribute: "aria-labelledby",
|
|
8026
|
-
mode: "fromView"
|
|
8027
|
-
})], BaseDropdown.prototype, "ariaLabelledBy", 2);
|
|
8028
|
-
__decorateClass$x([observable], BaseDropdown.prototype, "control", 2);
|
|
8029
|
-
__decorateClass$x([attr({
|
|
8030
|
-
mode: "boolean"
|
|
8031
|
-
})], BaseDropdown.prototype, "disabled", 2);
|
|
8032
|
-
__decorateClass$x([volatile], BaseDropdown.prototype, "displayValue", 1);
|
|
8033
|
-
__decorateClass$x([attr({
|
|
8034
|
-
attribute: "id"
|
|
8035
|
-
})], BaseDropdown.prototype, "id", 2);
|
|
8036
|
-
__decorateClass$x([observable], BaseDropdown.prototype, "indicator", 2);
|
|
8037
|
-
__decorateClass$x([observable], BaseDropdown.prototype, "indicatorSlot", 2);
|
|
8038
|
-
__decorateClass$x([attr({
|
|
8039
|
-
attribute: "value",
|
|
8040
|
-
mode: "fromView"
|
|
8041
|
-
})], BaseDropdown.prototype, "initialValue", 2);
|
|
8042
|
-
__decorateClass$x([observable], BaseDropdown.prototype, "listbox", 2);
|
|
8043
|
-
__decorateClass$x([observable], BaseDropdown.prototype, "listboxSlot", 2);
|
|
8044
|
-
__decorateClass$x([attr({
|
|
8045
|
-
mode: "boolean"
|
|
8046
|
-
})], BaseDropdown.prototype, "multiple", 2);
|
|
8047
|
-
__decorateClass$x([attr], BaseDropdown.prototype, "name", 2);
|
|
8048
|
-
__decorateClass$x([observable], BaseDropdown.prototype, "open", 2);
|
|
8049
|
-
__decorateClass$x([attr], BaseDropdown.prototype, "placeholder", 2);
|
|
8050
|
-
__decorateClass$x([attr({
|
|
8051
|
-
mode: "boolean"
|
|
8052
|
-
})], BaseDropdown.prototype, "required", 2);
|
|
8053
|
-
__decorateClass$x([attr], BaseDropdown.prototype, "type", 2);
|
|
8054
|
-
__decorateClass$x([attr({
|
|
8055
|
-
attribute: "value"
|
|
8056
|
-
})], BaseDropdown.prototype, "valueAttribute", 2);
|
|
8057
|
-
|
|
8058
|
-
var __defProp$w = Object.defineProperty;
|
|
8059
|
-
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
8060
|
-
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
8061
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
8062
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8063
|
-
if (kind && result) __defProp$w(target, key, result);
|
|
8064
|
-
return result;
|
|
8065
|
-
};
|
|
8066
|
-
const _Dropdown = class _Dropdown extends BaseDropdown {
|
|
8067
|
-
constructor() {
|
|
8068
|
-
super();
|
|
8069
|
-
this.appearance = DropdownAppearance.outline;
|
|
8070
|
-
this.addEventListener("connected", this.listboxConnectedHandler);
|
|
8071
|
-
}
|
|
8072
|
-
/**
|
|
8073
|
-
* Swaps appearance states when the appearance property changes.
|
|
8074
|
-
*
|
|
8075
|
-
* @param prev - the previous appearance state
|
|
8076
|
-
* @param next - the current appearance state
|
|
8077
|
-
* @internal
|
|
8078
|
-
*/
|
|
8079
|
-
appearanceChanged(prev, next) {
|
|
8080
|
-
swapStates(this.elementInternals, prev, next, DropdownAppearance);
|
|
8081
|
-
}
|
|
8082
|
-
/**
|
|
8083
|
-
* Swaps size states when the size property changes.
|
|
8084
|
-
*
|
|
8085
|
-
* @param prev - the previous size state
|
|
8086
|
-
* @param next - the current size state
|
|
8087
|
-
* @internal
|
|
8088
|
-
*/
|
|
8089
|
-
sizeChanged(prev, next) {
|
|
8090
|
-
swapStates(this.elementInternals, prev, next, DropdownSize);
|
|
8091
|
-
}
|
|
8092
8020
|
connectedCallback() {
|
|
8093
8021
|
super.connectedCallback();
|
|
8094
8022
|
this.anchorPositionFallback();
|
|
8095
8023
|
}
|
|
8096
8024
|
disconnectedCallback() {
|
|
8097
|
-
|
|
8025
|
+
_BaseDropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
|
|
8098
8026
|
super.disconnectedCallback();
|
|
8099
8027
|
}
|
|
8100
8028
|
/**
|
|
@@ -8109,21 +8037,6 @@ const _Dropdown = class _Dropdown extends BaseDropdown {
|
|
|
8109
8037
|
this.listbox = target;
|
|
8110
8038
|
}
|
|
8111
8039
|
}
|
|
8112
|
-
/**
|
|
8113
|
-
* Adds or removes the window event listener based on the open state.
|
|
8114
|
-
*
|
|
8115
|
-
* @param prev - the previous open state
|
|
8116
|
-
* @param next - the current open state
|
|
8117
|
-
* @internal
|
|
8118
|
-
*/
|
|
8119
|
-
openChanged(prev, next) {
|
|
8120
|
-
super.openChanged(prev, next);
|
|
8121
|
-
if (next) {
|
|
8122
|
-
_Dropdown.AnchorPositionFallbackObserver?.observe(this.listbox);
|
|
8123
|
-
return;
|
|
8124
|
-
}
|
|
8125
|
-
_Dropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
|
|
8126
|
-
}
|
|
8127
8040
|
/**
|
|
8128
8041
|
* When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
|
|
8129
8042
|
* viewport bounds. One static observer is used for all dropdowns.
|
|
@@ -8131,7 +8044,7 @@ const _Dropdown = class _Dropdown extends BaseDropdown {
|
|
|
8131
8044
|
* @internal
|
|
8132
8045
|
*/
|
|
8133
8046
|
anchorPositionFallback() {
|
|
8134
|
-
|
|
8047
|
+
_BaseDropdown.AnchorPositionFallbackObserver = _BaseDropdown.AnchorPositionFallbackObserver ?? new IntersectionObserver(entries => {
|
|
8135
8048
|
entries.forEach(({
|
|
8136
8049
|
boundingClientRect,
|
|
8137
8050
|
isIntersecting,
|
|
@@ -8152,9 +8065,86 @@ const _Dropdown = class _Dropdown extends BaseDropdown {
|
|
|
8152
8065
|
});
|
|
8153
8066
|
}
|
|
8154
8067
|
};
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8068
|
+
/**
|
|
8069
|
+
* The form-associated flag.
|
|
8070
|
+
* @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
|
|
8071
|
+
*
|
|
8072
|
+
* @public
|
|
8073
|
+
*/
|
|
8074
|
+
_BaseDropdown.formAssociated = true;
|
|
8075
|
+
__decorateClass$z([volatile], _BaseDropdown.prototype, "activeDescendant", 1);
|
|
8076
|
+
__decorateClass$z([observable], _BaseDropdown.prototype, "activeIndex", 2);
|
|
8077
|
+
__decorateClass$z([attr({
|
|
8078
|
+
attribute: "aria-labelledby",
|
|
8079
|
+
mode: "fromView"
|
|
8080
|
+
})], _BaseDropdown.prototype, "ariaLabelledBy", 2);
|
|
8081
|
+
__decorateClass$z([observable], _BaseDropdown.prototype, "control", 2);
|
|
8082
|
+
__decorateClass$z([attr({
|
|
8083
|
+
mode: "boolean"
|
|
8084
|
+
})], _BaseDropdown.prototype, "disabled", 2);
|
|
8085
|
+
__decorateClass$z([volatile], _BaseDropdown.prototype, "displayValue", 1);
|
|
8086
|
+
__decorateClass$z([attr({
|
|
8087
|
+
attribute: "id"
|
|
8088
|
+
})], _BaseDropdown.prototype, "id", 2);
|
|
8089
|
+
__decorateClass$z([observable], _BaseDropdown.prototype, "indicator", 2);
|
|
8090
|
+
__decorateClass$z([observable], _BaseDropdown.prototype, "indicatorSlot", 2);
|
|
8091
|
+
__decorateClass$z([attr({
|
|
8092
|
+
attribute: "value",
|
|
8093
|
+
mode: "fromView"
|
|
8094
|
+
})], _BaseDropdown.prototype, "initialValue", 2);
|
|
8095
|
+
__decorateClass$z([observable], _BaseDropdown.prototype, "listbox", 2);
|
|
8096
|
+
__decorateClass$z([observable], _BaseDropdown.prototype, "listboxSlot", 2);
|
|
8097
|
+
__decorateClass$z([attr({
|
|
8098
|
+
mode: "boolean"
|
|
8099
|
+
})], _BaseDropdown.prototype, "multiple", 2);
|
|
8100
|
+
__decorateClass$z([attr], _BaseDropdown.prototype, "name", 2);
|
|
8101
|
+
__decorateClass$z([observable], _BaseDropdown.prototype, "open", 2);
|
|
8102
|
+
__decorateClass$z([attr], _BaseDropdown.prototype, "placeholder", 2);
|
|
8103
|
+
__decorateClass$z([attr({
|
|
8104
|
+
mode: "boolean"
|
|
8105
|
+
})], _BaseDropdown.prototype, "required", 2);
|
|
8106
|
+
__decorateClass$z([attr], _BaseDropdown.prototype, "type", 2);
|
|
8107
|
+
__decorateClass$z([attr({
|
|
8108
|
+
attribute: "value"
|
|
8109
|
+
})], _BaseDropdown.prototype, "valueAttribute", 2);
|
|
8110
|
+
let BaseDropdown = _BaseDropdown;
|
|
8111
|
+
|
|
8112
|
+
var __defProp$y = Object.defineProperty;
|
|
8113
|
+
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
8114
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
8115
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
8116
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8117
|
+
if (kind && result) __defProp$y(target, key, result);
|
|
8118
|
+
return result;
|
|
8119
|
+
};
|
|
8120
|
+
class Dropdown extends BaseDropdown {
|
|
8121
|
+
constructor() {
|
|
8122
|
+
super(...arguments);
|
|
8123
|
+
this.appearance = DropdownAppearance.outline;
|
|
8124
|
+
}
|
|
8125
|
+
/**
|
|
8126
|
+
* Swaps appearance states when the appearance property changes.
|
|
8127
|
+
*
|
|
8128
|
+
* @param prev - the previous appearance state
|
|
8129
|
+
* @param next - the current appearance state
|
|
8130
|
+
* @internal
|
|
8131
|
+
*/
|
|
8132
|
+
appearanceChanged(prev, next) {
|
|
8133
|
+
swapStates(this.elementInternals, prev, next, DropdownAppearance);
|
|
8134
|
+
}
|
|
8135
|
+
/**
|
|
8136
|
+
* Swaps size states when the size property changes.
|
|
8137
|
+
*
|
|
8138
|
+
* @param prev - the previous size state
|
|
8139
|
+
* @param next - the current size state
|
|
8140
|
+
* @internal
|
|
8141
|
+
*/
|
|
8142
|
+
sizeChanged(prev, next) {
|
|
8143
|
+
swapStates(this.elementInternals, prev, next, DropdownSize);
|
|
8144
|
+
}
|
|
8145
|
+
}
|
|
8146
|
+
__decorateClass$y([attr], Dropdown.prototype, "appearance", 2);
|
|
8147
|
+
__decorateClass$y([attr], Dropdown.prototype, "size", 2);
|
|
8158
8148
|
|
|
8159
8149
|
const styles$s = css`
|
|
8160
8150
|
${display("inline-flex")}
|
|
@@ -8191,12 +8181,12 @@ const ValidationFlags = {
|
|
|
8191
8181
|
valid: "valid"
|
|
8192
8182
|
};
|
|
8193
8183
|
|
|
8194
|
-
var __defProp$
|
|
8195
|
-
var __getOwnPropDesc$
|
|
8196
|
-
var __decorateClass$
|
|
8197
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8184
|
+
var __defProp$x = Object.defineProperty;
|
|
8185
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
8186
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
8187
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
8198
8188
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8199
|
-
if (kind && result) __defProp$
|
|
8189
|
+
if (kind && result) __defProp$x(target, key, result);
|
|
8200
8190
|
return result;
|
|
8201
8191
|
};
|
|
8202
8192
|
class BaseField extends FASTElement {
|
|
@@ -8364,17 +8354,17 @@ class BaseField extends FASTElement {
|
|
|
8364
8354
|
}
|
|
8365
8355
|
}
|
|
8366
8356
|
}
|
|
8367
|
-
__decorateClass$
|
|
8368
|
-
__decorateClass$
|
|
8369
|
-
__decorateClass$
|
|
8370
|
-
__decorateClass$
|
|
8357
|
+
__decorateClass$x([observable], BaseField.prototype, "labelSlot", 2);
|
|
8358
|
+
__decorateClass$x([observable], BaseField.prototype, "messageSlot", 2);
|
|
8359
|
+
__decorateClass$x([observable], BaseField.prototype, "slottedInputs", 2);
|
|
8360
|
+
__decorateClass$x([observable], BaseField.prototype, "input", 2);
|
|
8371
8361
|
|
|
8372
|
-
var __defProp$
|
|
8373
|
-
var __getOwnPropDesc$
|
|
8374
|
-
var __decorateClass$
|
|
8375
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8362
|
+
var __defProp$w = Object.defineProperty;
|
|
8363
|
+
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
8364
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
8365
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
8376
8366
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8377
|
-
if (kind && result) __defProp$
|
|
8367
|
+
if (kind && result) __defProp$w(target, key, result);
|
|
8378
8368
|
return result;
|
|
8379
8369
|
};
|
|
8380
8370
|
class Field extends BaseField {
|
|
@@ -8383,7 +8373,7 @@ class Field extends BaseField {
|
|
|
8383
8373
|
this.labelPosition = LabelPosition.above;
|
|
8384
8374
|
}
|
|
8385
8375
|
}
|
|
8386
|
-
__decorateClass$
|
|
8376
|
+
__decorateClass$w([attr({
|
|
8387
8377
|
attribute: "label-position"
|
|
8388
8378
|
})], Field.prototype, "labelPosition", 2);
|
|
8389
8379
|
|
|
@@ -8427,12 +8417,12 @@ const ImageShape = {
|
|
|
8427
8417
|
square: "square"
|
|
8428
8418
|
};
|
|
8429
8419
|
|
|
8430
|
-
var __defProp$
|
|
8431
|
-
var __getOwnPropDesc$
|
|
8432
|
-
var __decorateClass$
|
|
8433
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8420
|
+
var __defProp$v = Object.defineProperty;
|
|
8421
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
8422
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
8423
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
8434
8424
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8435
|
-
if (kind && result) __defProp$
|
|
8425
|
+
if (kind && result) __defProp$v(target, key, result);
|
|
8436
8426
|
return result;
|
|
8437
8427
|
};
|
|
8438
8428
|
class Image extends FASTElement {
|
|
@@ -8486,17 +8476,17 @@ class Image extends FASTElement {
|
|
|
8486
8476
|
swapStates(this.elementInternals, prev, next, ImageShape);
|
|
8487
8477
|
}
|
|
8488
8478
|
}
|
|
8489
|
-
__decorateClass$
|
|
8479
|
+
__decorateClass$v([attr({
|
|
8490
8480
|
mode: "boolean"
|
|
8491
8481
|
})], Image.prototype, "block", 2);
|
|
8492
|
-
__decorateClass$
|
|
8482
|
+
__decorateClass$v([attr({
|
|
8493
8483
|
mode: "boolean"
|
|
8494
8484
|
})], Image.prototype, "bordered", 2);
|
|
8495
|
-
__decorateClass$
|
|
8485
|
+
__decorateClass$v([attr({
|
|
8496
8486
|
mode: "boolean"
|
|
8497
8487
|
})], Image.prototype, "shadow", 2);
|
|
8498
|
-
__decorateClass$
|
|
8499
|
-
__decorateClass$
|
|
8488
|
+
__decorateClass$v([attr], Image.prototype, "fit", 2);
|
|
8489
|
+
__decorateClass$v([attr], Image.prototype, "shape", 2);
|
|
8500
8490
|
|
|
8501
8491
|
const template$r = html`<slot></slot>`;
|
|
8502
8492
|
|
|
@@ -8521,12 +8511,12 @@ const LabelWeight = {
|
|
|
8521
8511
|
semibold: "semibold"
|
|
8522
8512
|
};
|
|
8523
8513
|
|
|
8524
|
-
var __defProp$
|
|
8525
|
-
var __getOwnPropDesc$
|
|
8526
|
-
var __decorateClass$
|
|
8527
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8514
|
+
var __defProp$u = Object.defineProperty;
|
|
8515
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
8516
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
8517
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
8528
8518
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8529
|
-
if (kind && result) __defProp$
|
|
8519
|
+
if (kind && result) __defProp$u(target, key, result);
|
|
8530
8520
|
return result;
|
|
8531
8521
|
};
|
|
8532
8522
|
class Label extends FASTElement {
|
|
@@ -8566,12 +8556,12 @@ class Label extends FASTElement {
|
|
|
8566
8556
|
toggleState(this.elementInternals, "disabled", next);
|
|
8567
8557
|
}
|
|
8568
8558
|
}
|
|
8569
|
-
__decorateClass$
|
|
8570
|
-
__decorateClass$
|
|
8571
|
-
__decorateClass$
|
|
8559
|
+
__decorateClass$u([attr], Label.prototype, "size", 2);
|
|
8560
|
+
__decorateClass$u([attr], Label.prototype, "weight", 2);
|
|
8561
|
+
__decorateClass$u([attr({
|
|
8572
8562
|
mode: "boolean"
|
|
8573
8563
|
})], Label.prototype, "disabled", 2);
|
|
8574
|
-
__decorateClass$
|
|
8564
|
+
__decorateClass$u([attr({
|
|
8575
8565
|
mode: "boolean"
|
|
8576
8566
|
})], Label.prototype, "required", 2);
|
|
8577
8567
|
|
|
@@ -8597,12 +8587,12 @@ const LinkAppearance = {
|
|
|
8597
8587
|
subtle: "subtle"
|
|
8598
8588
|
};
|
|
8599
8589
|
|
|
8600
|
-
var __defProp$
|
|
8601
|
-
var __getOwnPropDesc$
|
|
8602
|
-
var __decorateClass$
|
|
8603
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8590
|
+
var __defProp$t = Object.defineProperty;
|
|
8591
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
8592
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
8593
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
8604
8594
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8605
|
-
if (kind && result) __defProp$
|
|
8595
|
+
if (kind && result) __defProp$t(target, key, result);
|
|
8606
8596
|
return result;
|
|
8607
8597
|
};
|
|
8608
8598
|
class Link extends BaseAnchor {
|
|
@@ -8627,8 +8617,8 @@ class Link extends BaseAnchor {
|
|
|
8627
8617
|
toggleState(this.elementInternals, "inline", next);
|
|
8628
8618
|
}
|
|
8629
8619
|
}
|
|
8630
|
-
__decorateClass$
|
|
8631
|
-
__decorateClass$
|
|
8620
|
+
__decorateClass$t([attr], Link.prototype, "appearance", 2);
|
|
8621
|
+
__decorateClass$t([attr({
|
|
8632
8622
|
mode: "boolean"
|
|
8633
8623
|
})], Link.prototype, "inline", 2);
|
|
8634
8624
|
|
|
@@ -8651,12 +8641,12 @@ const definition$p = Link.compose({
|
|
|
8651
8641
|
|
|
8652
8642
|
definition$p.define(FluentDesignSystem.registry);
|
|
8653
8643
|
|
|
8654
|
-
var __defProp$
|
|
8655
|
-
var __getOwnPropDesc$
|
|
8656
|
-
var __decorateClass$
|
|
8657
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8644
|
+
var __defProp$s = Object.defineProperty;
|
|
8645
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
8646
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
8647
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
8658
8648
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8659
|
-
if (kind && result) __defProp$
|
|
8649
|
+
if (kind && result) __defProp$s(target, key, result);
|
|
8660
8650
|
return result;
|
|
8661
8651
|
};
|
|
8662
8652
|
class Listbox extends FASTElement {
|
|
@@ -8794,14 +8784,14 @@ class Listbox extends FASTElement {
|
|
|
8794
8784
|
this.selectedIndex = selectedIndex;
|
|
8795
8785
|
}
|
|
8796
8786
|
}
|
|
8797
|
-
__decorateClass$
|
|
8787
|
+
__decorateClass$s([attr({
|
|
8798
8788
|
attribute: "id",
|
|
8799
8789
|
mode: "fromView"
|
|
8800
8790
|
})], Listbox.prototype, "id", 2);
|
|
8801
|
-
__decorateClass$
|
|
8802
|
-
__decorateClass$
|
|
8803
|
-
__decorateClass$
|
|
8804
|
-
__decorateClass$
|
|
8791
|
+
__decorateClass$s([observable], Listbox.prototype, "multiple", 2);
|
|
8792
|
+
__decorateClass$s([observable], Listbox.prototype, "options", 2);
|
|
8793
|
+
__decorateClass$s([observable], Listbox.prototype, "selectedIndex", 2);
|
|
8794
|
+
__decorateClass$s([observable], Listbox.prototype, "dropdown", 2);
|
|
8805
8795
|
|
|
8806
8796
|
const styles$n = css`
|
|
8807
8797
|
${display("inline-flex")}
|
|
@@ -8863,12 +8853,12 @@ const MenuItemRole = {
|
|
|
8863
8853
|
[MenuItemRole.menuitemradio]: "menuitemradio"
|
|
8864
8854
|
});
|
|
8865
8855
|
|
|
8866
|
-
var __defProp$
|
|
8867
|
-
var __getOwnPropDesc$
|
|
8868
|
-
var __decorateClass$
|
|
8869
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8856
|
+
var __defProp$r = Object.defineProperty;
|
|
8857
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
8858
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
8859
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
8870
8860
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8871
|
-
if (kind && result) __defProp$
|
|
8861
|
+
if (kind && result) __defProp$r(target, key, result);
|
|
8872
8862
|
return result;
|
|
8873
8863
|
};
|
|
8874
8864
|
class MenuItem extends FASTElement {
|
|
@@ -9057,18 +9047,18 @@ class MenuItem extends FASTElement {
|
|
|
9057
9047
|
this.elementInternals.ariaChecked = this.role !== MenuItemRole.menuitem ? `${!!this.checked}` : null;
|
|
9058
9048
|
}
|
|
9059
9049
|
}
|
|
9060
|
-
__decorateClass$
|
|
9050
|
+
__decorateClass$r([attr({
|
|
9061
9051
|
mode: "boolean"
|
|
9062
9052
|
})], MenuItem.prototype, "disabled", 2);
|
|
9063
|
-
__decorateClass$
|
|
9064
|
-
__decorateClass$
|
|
9053
|
+
__decorateClass$r([attr], MenuItem.prototype, "role", 2);
|
|
9054
|
+
__decorateClass$r([attr({
|
|
9065
9055
|
mode: "boolean"
|
|
9066
9056
|
})], MenuItem.prototype, "checked", 2);
|
|
9067
|
-
__decorateClass$
|
|
9057
|
+
__decorateClass$r([attr({
|
|
9068
9058
|
mode: "boolean"
|
|
9069
9059
|
})], MenuItem.prototype, "hidden", 2);
|
|
9070
|
-
__decorateClass$
|
|
9071
|
-
__decorateClass$
|
|
9060
|
+
__decorateClass$r([observable], MenuItem.prototype, "slottedSubmenu", 2);
|
|
9061
|
+
__decorateClass$r([observable], MenuItem.prototype, "submenu", 2);
|
|
9072
9062
|
applyMixins(MenuItem, StartEnd);
|
|
9073
9063
|
|
|
9074
9064
|
const styles$m = css`
|
|
@@ -9097,12 +9087,12 @@ const definition$m = MenuItem.compose({
|
|
|
9097
9087
|
|
|
9098
9088
|
definition$m.define(FluentDesignSystem.registry);
|
|
9099
9089
|
|
|
9100
|
-
var __defProp$
|
|
9101
|
-
var __getOwnPropDesc$
|
|
9102
|
-
var __decorateClass$
|
|
9103
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9090
|
+
var __defProp$q = Object.defineProperty;
|
|
9091
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
9092
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
9093
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
9104
9094
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9105
|
-
if (kind && result) __defProp$
|
|
9095
|
+
if (kind && result) __defProp$q(target, key, result);
|
|
9106
9096
|
return result;
|
|
9107
9097
|
};
|
|
9108
9098
|
const _MenuList = class _MenuList extends FASTElement {
|
|
@@ -9318,7 +9308,7 @@ const _MenuList = class _MenuList extends FASTElement {
|
|
|
9318
9308
|
}
|
|
9319
9309
|
};
|
|
9320
9310
|
_MenuList.focusableElementRoles = MenuItemRole;
|
|
9321
|
-
__decorateClass$
|
|
9311
|
+
__decorateClass$q([observable], _MenuList.prototype, "items", 2);
|
|
9322
9312
|
let MenuList = _MenuList;
|
|
9323
9313
|
|
|
9324
9314
|
const styles$l = css`
|
|
@@ -9339,12 +9329,12 @@ const definition$l = MenuList.compose({
|
|
|
9339
9329
|
|
|
9340
9330
|
definition$l.define(FluentDesignSystem.registry);
|
|
9341
9331
|
|
|
9342
|
-
var __defProp$
|
|
9343
|
-
var __getOwnPropDesc$
|
|
9344
|
-
var __decorateClass$
|
|
9345
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9332
|
+
var __defProp$p = Object.defineProperty;
|
|
9333
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
9334
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
9335
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
9346
9336
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9347
|
-
if (kind && result) __defProp$
|
|
9337
|
+
if (kind && result) __defProp$p(target, key, result);
|
|
9348
9338
|
return result;
|
|
9349
9339
|
};
|
|
9350
9340
|
class Menu extends FASTElement {
|
|
@@ -9624,28 +9614,28 @@ class Menu extends FASTElement {
|
|
|
9624
9614
|
}
|
|
9625
9615
|
}
|
|
9626
9616
|
}
|
|
9627
|
-
__decorateClass$
|
|
9617
|
+
__decorateClass$p([attr({
|
|
9628
9618
|
attribute: "open-on-hover",
|
|
9629
9619
|
mode: "boolean"
|
|
9630
9620
|
})], Menu.prototype, "openOnHover", 2);
|
|
9631
|
-
__decorateClass$
|
|
9621
|
+
__decorateClass$p([attr({
|
|
9632
9622
|
attribute: "open-on-context",
|
|
9633
9623
|
mode: "boolean"
|
|
9634
9624
|
})], Menu.prototype, "openOnContext", 2);
|
|
9635
|
-
__decorateClass$
|
|
9625
|
+
__decorateClass$p([attr({
|
|
9636
9626
|
attribute: "close-on-scroll",
|
|
9637
9627
|
mode: "boolean"
|
|
9638
9628
|
})], Menu.prototype, "closeOnScroll", 2);
|
|
9639
|
-
__decorateClass$
|
|
9629
|
+
__decorateClass$p([attr({
|
|
9640
9630
|
attribute: "persist-on-item-click",
|
|
9641
9631
|
mode: "boolean"
|
|
9642
9632
|
})], Menu.prototype, "persistOnItemClick", 2);
|
|
9643
|
-
__decorateClass$
|
|
9633
|
+
__decorateClass$p([attr({
|
|
9644
9634
|
mode: "boolean"
|
|
9645
9635
|
})], Menu.prototype, "split", 2);
|
|
9646
|
-
__decorateClass$
|
|
9647
|
-
__decorateClass$
|
|
9648
|
-
__decorateClass$
|
|
9636
|
+
__decorateClass$p([observable], Menu.prototype, "slottedMenuList", 2);
|
|
9637
|
+
__decorateClass$p([observable], Menu.prototype, "slottedTriggers", 2);
|
|
9638
|
+
__decorateClass$p([observable], Menu.prototype, "primaryAction", 2);
|
|
9649
9639
|
|
|
9650
9640
|
const styles$k = css`
|
|
9651
9641
|
${display("inline-block")}
|
|
@@ -9686,12 +9676,12 @@ const MessageBarIntent = {
|
|
|
9686
9676
|
info: "info"
|
|
9687
9677
|
};
|
|
9688
9678
|
|
|
9689
|
-
var __defProp$
|
|
9690
|
-
var __getOwnPropDesc$
|
|
9691
|
-
var __decorateClass$
|
|
9692
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9693
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9694
|
-
if (kind && result) __defProp$
|
|
9679
|
+
var __defProp$o = Object.defineProperty;
|
|
9680
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
9681
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
9682
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
9683
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9684
|
+
if (kind && result) __defProp$o(target, key, result);
|
|
9695
9685
|
return result;
|
|
9696
9686
|
};
|
|
9697
9687
|
class MessageBar extends FASTElement {
|
|
@@ -9737,9 +9727,9 @@ class MessageBar extends FASTElement {
|
|
|
9737
9727
|
swapStates(this.elementInternals, prev, next, MessageBarIntent);
|
|
9738
9728
|
}
|
|
9739
9729
|
}
|
|
9740
|
-
__decorateClass$
|
|
9741
|
-
__decorateClass$
|
|
9742
|
-
__decorateClass$
|
|
9730
|
+
__decorateClass$o([attr], MessageBar.prototype, "shape", 2);
|
|
9731
|
+
__decorateClass$o([attr], MessageBar.prototype, "layout", 2);
|
|
9732
|
+
__decorateClass$o([attr], MessageBar.prototype, "intent", 2);
|
|
9743
9733
|
|
|
9744
9734
|
const styles$j = css`
|
|
9745
9735
|
:host{display:grid;box-sizing:border-box;font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};width:100%;background:${colorNeutralBackground3};border:1px solid ${colorNeutralStroke1};padding-inline:${spacingHorizontalM};border-radius:${borderRadiusMedium};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${squareState}){border-radius:0}:host(${successState}){background-color:${colorPaletteGreenBackground1};border-color:${colorPaletteGreenBorder1}}:host(${warningState}){background-color:${colorPaletteDarkOrangeBackground1};border-color:${colorPaletteDarkOrangeBorder1}}:host(${errorState}){background-color:${colorPaletteRedBackground1};border-color:${colorPaletteRedBorder1}}:host(${multiLineState}){grid-template-areas:'icon body dismiss'
|
|
@@ -9761,12 +9751,12 @@ const definition$j = MessageBar.compose({
|
|
|
9761
9751
|
|
|
9762
9752
|
definition$j.define(FluentDesignSystem.registry);
|
|
9763
9753
|
|
|
9764
|
-
var __defProp$
|
|
9765
|
-
var __getOwnPropDesc$
|
|
9766
|
-
var __decorateClass$
|
|
9767
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9754
|
+
var __defProp$n = Object.defineProperty;
|
|
9755
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
9756
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
9757
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
9768
9758
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9769
|
-
if (kind && result) __defProp$
|
|
9759
|
+
if (kind && result) __defProp$n(target, key, result);
|
|
9770
9760
|
return result;
|
|
9771
9761
|
};
|
|
9772
9762
|
class DropdownOption extends FASTElement {
|
|
@@ -9976,38 +9966,38 @@ class DropdownOption extends FASTElement {
|
|
|
9976
9966
|
* @public
|
|
9977
9967
|
*/
|
|
9978
9968
|
DropdownOption.formAssociated = true;
|
|
9979
|
-
__decorateClass$
|
|
9980
|
-
__decorateClass$
|
|
9969
|
+
__decorateClass$n([observable], DropdownOption.prototype, "active", 2);
|
|
9970
|
+
__decorateClass$n([attr({
|
|
9981
9971
|
attribute: "current-selected",
|
|
9982
9972
|
mode: "boolean"
|
|
9983
9973
|
})], DropdownOption.prototype, "currentSelected", 2);
|
|
9984
|
-
__decorateClass$
|
|
9974
|
+
__decorateClass$n([attr({
|
|
9985
9975
|
attribute: "selected",
|
|
9986
9976
|
mode: "boolean"
|
|
9987
9977
|
})], DropdownOption.prototype, "defaultSelected", 2);
|
|
9988
|
-
__decorateClass$
|
|
9989
|
-
__decorateClass$
|
|
9990
|
-
__decorateClass$
|
|
9978
|
+
__decorateClass$n([observable], DropdownOption.prototype, "descriptionSlot", 2);
|
|
9979
|
+
__decorateClass$n([observable], DropdownOption.prototype, "disabled", 2);
|
|
9980
|
+
__decorateClass$n([attr({
|
|
9991
9981
|
attribute: "disabled",
|
|
9992
9982
|
mode: "boolean"
|
|
9993
9983
|
})], DropdownOption.prototype, "disabledAttribute", 2);
|
|
9994
|
-
__decorateClass$
|
|
9984
|
+
__decorateClass$n([attr({
|
|
9995
9985
|
attribute: "form"
|
|
9996
9986
|
})], DropdownOption.prototype, "formAttribute", 2);
|
|
9997
|
-
__decorateClass$
|
|
9987
|
+
__decorateClass$n([attr({
|
|
9998
9988
|
mode: "boolean"
|
|
9999
9989
|
})], DropdownOption.prototype, "freeform", 2);
|
|
10000
|
-
__decorateClass$
|
|
9990
|
+
__decorateClass$n([attr({
|
|
10001
9991
|
attribute: "id"
|
|
10002
9992
|
})], DropdownOption.prototype, "id", 2);
|
|
10003
|
-
__decorateClass$
|
|
9993
|
+
__decorateClass$n([attr({
|
|
10004
9994
|
attribute: "value",
|
|
10005
9995
|
mode: "fromView"
|
|
10006
9996
|
})], DropdownOption.prototype, "initialValue", 2);
|
|
10007
|
-
__decorateClass$
|
|
10008
|
-
__decorateClass$
|
|
10009
|
-
__decorateClass$
|
|
10010
|
-
__decorateClass$
|
|
9997
|
+
__decorateClass$n([observable], DropdownOption.prototype, "multiple", 2);
|
|
9998
|
+
__decorateClass$n([attr], DropdownOption.prototype, "name", 2);
|
|
9999
|
+
__decorateClass$n([observable], DropdownOption.prototype, "start", 2);
|
|
10000
|
+
__decorateClass$n([attr({
|
|
10011
10001
|
attribute: "text",
|
|
10012
10002
|
mode: "fromView"
|
|
10013
10003
|
})], DropdownOption.prototype, "textAttribute", 2);
|
|
@@ -10064,12 +10054,12 @@ const ProgressBarValidationState = {
|
|
|
10064
10054
|
error: "error"
|
|
10065
10055
|
};
|
|
10066
10056
|
|
|
10067
|
-
var __defProp$
|
|
10068
|
-
var __getOwnPropDesc$
|
|
10069
|
-
var __decorateClass$
|
|
10070
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10057
|
+
var __defProp$m = Object.defineProperty;
|
|
10058
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
10059
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
10060
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
10071
10061
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10072
|
-
if (kind && result) __defProp$
|
|
10062
|
+
if (kind && result) __defProp$m(target, key, result);
|
|
10073
10063
|
return result;
|
|
10074
10064
|
};
|
|
10075
10065
|
class BaseProgressBar extends FASTElement {
|
|
@@ -10127,26 +10117,26 @@ class BaseProgressBar extends FASTElement {
|
|
|
10127
10117
|
return range === 0 ? 0 : Math.fround((value - min) / range * 100);
|
|
10128
10118
|
}
|
|
10129
10119
|
}
|
|
10130
|
-
__decorateClass$
|
|
10120
|
+
__decorateClass$m([attr({
|
|
10131
10121
|
attribute: "validation-state"
|
|
10132
10122
|
})], BaseProgressBar.prototype, "validationState", 2);
|
|
10133
|
-
__decorateClass$
|
|
10123
|
+
__decorateClass$m([attr({
|
|
10134
10124
|
converter: nullableNumberConverter
|
|
10135
10125
|
})], BaseProgressBar.prototype, "value", 2);
|
|
10136
|
-
__decorateClass$
|
|
10126
|
+
__decorateClass$m([attr({
|
|
10137
10127
|
converter: nullableNumberConverter
|
|
10138
10128
|
})], BaseProgressBar.prototype, "min", 2);
|
|
10139
|
-
__decorateClass$
|
|
10129
|
+
__decorateClass$m([attr({
|
|
10140
10130
|
converter: nullableNumberConverter
|
|
10141
10131
|
})], BaseProgressBar.prototype, "max", 2);
|
|
10142
|
-
__decorateClass$
|
|
10132
|
+
__decorateClass$m([volatile], BaseProgressBar.prototype, "percentComplete", 1);
|
|
10143
10133
|
|
|
10144
|
-
var __defProp$
|
|
10145
|
-
var __getOwnPropDesc$
|
|
10146
|
-
var __decorateClass$
|
|
10147
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10134
|
+
var __defProp$l = Object.defineProperty;
|
|
10135
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
10136
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
10137
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
10148
10138
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10149
|
-
if (kind && result) __defProp$
|
|
10139
|
+
if (kind && result) __defProp$l(target, key, result);
|
|
10150
10140
|
return result;
|
|
10151
10141
|
};
|
|
10152
10142
|
class ProgressBar extends BaseProgressBar {
|
|
@@ -10167,8 +10157,8 @@ class ProgressBar extends BaseProgressBar {
|
|
|
10167
10157
|
swapStates(this.elementInternals, prev, next, ProgressBarShape);
|
|
10168
10158
|
}
|
|
10169
10159
|
}
|
|
10170
|
-
__decorateClass$
|
|
10171
|
-
__decorateClass$
|
|
10160
|
+
__decorateClass$l([attr], ProgressBar.prototype, "thickness", 2);
|
|
10161
|
+
__decorateClass$l([attr], ProgressBar.prototype, "shape", 2);
|
|
10172
10162
|
|
|
10173
10163
|
const styles$h = css`
|
|
10174
10164
|
${display("block")}
|
|
@@ -10274,12 +10264,12 @@ function getRootActiveElement(element) {
|
|
|
10274
10264
|
|
|
10275
10265
|
const RadioGroupOrientation = Orientation;
|
|
10276
10266
|
|
|
10277
|
-
var __defProp$
|
|
10278
|
-
var __getOwnPropDesc$
|
|
10279
|
-
var __decorateClass$
|
|
10280
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10267
|
+
var __defProp$k = Object.defineProperty;
|
|
10268
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
10269
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
10270
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
10281
10271
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10282
|
-
if (kind && result) __defProp$
|
|
10272
|
+
if (kind && result) __defProp$k(target, key, result);
|
|
10283
10273
|
return result;
|
|
10284
10274
|
};
|
|
10285
10275
|
class RadioGroup extends FASTElement {
|
|
@@ -10708,19 +10698,19 @@ class RadioGroup extends FASTElement {
|
|
|
10708
10698
|
* @public
|
|
10709
10699
|
*/
|
|
10710
10700
|
RadioGroup.formAssociated = true;
|
|
10711
|
-
__decorateClass$
|
|
10712
|
-
__decorateClass$
|
|
10701
|
+
__decorateClass$k([observable], RadioGroup.prototype, "checkedIndex", 2);
|
|
10702
|
+
__decorateClass$k([attr({
|
|
10713
10703
|
attribute: "disabled",
|
|
10714
10704
|
mode: "boolean"
|
|
10715
10705
|
})], RadioGroup.prototype, "disabled", 2);
|
|
10716
|
-
__decorateClass$
|
|
10706
|
+
__decorateClass$k([attr({
|
|
10717
10707
|
attribute: "value",
|
|
10718
10708
|
mode: "fromView"
|
|
10719
10709
|
})], RadioGroup.prototype, "initialValue", 2);
|
|
10720
|
-
__decorateClass$
|
|
10721
|
-
__decorateClass$
|
|
10722
|
-
__decorateClass$
|
|
10723
|
-
__decorateClass$
|
|
10710
|
+
__decorateClass$k([attr], RadioGroup.prototype, "name", 2);
|
|
10711
|
+
__decorateClass$k([attr], RadioGroup.prototype, "orientation", 2);
|
|
10712
|
+
__decorateClass$k([observable], RadioGroup.prototype, "radios", 2);
|
|
10713
|
+
__decorateClass$k([attr({
|
|
10724
10714
|
mode: "boolean"
|
|
10725
10715
|
})], RadioGroup.prototype, "required", 2);
|
|
10726
10716
|
|
|
@@ -10767,12 +10757,12 @@ const definition$f = Radio.compose({
|
|
|
10767
10757
|
|
|
10768
10758
|
definition$f.define(FluentDesignSystem.registry);
|
|
10769
10759
|
|
|
10770
|
-
var __defProp$
|
|
10771
|
-
var __getOwnPropDesc$
|
|
10772
|
-
var __decorateClass$
|
|
10773
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10760
|
+
var __defProp$j = Object.defineProperty;
|
|
10761
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
10762
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
10763
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
10774
10764
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10775
|
-
if (kind && result) __defProp$
|
|
10765
|
+
if (kind && result) __defProp$j(target, key, result);
|
|
10776
10766
|
return result;
|
|
10777
10767
|
};
|
|
10778
10768
|
class BaseRatingDisplay extends FASTElement {
|
|
@@ -10838,20 +10828,20 @@ class BaseRatingDisplay extends FASTElement {
|
|
|
10838
10828
|
return htmlString;
|
|
10839
10829
|
}
|
|
10840
10830
|
}
|
|
10841
|
-
__decorateClass$
|
|
10831
|
+
__decorateClass$j([attr({
|
|
10842
10832
|
converter: nullableNumberConverter
|
|
10843
10833
|
})], BaseRatingDisplay.prototype, "count", 2);
|
|
10844
|
-
__decorateClass$
|
|
10834
|
+
__decorateClass$j([attr({
|
|
10845
10835
|
attribute: "icon-view-box"
|
|
10846
10836
|
})], BaseRatingDisplay.prototype, "iconViewBox", 2);
|
|
10847
|
-
__decorateClass$
|
|
10837
|
+
__decorateClass$j([attr({
|
|
10848
10838
|
converter: nullableNumberConverter
|
|
10849
10839
|
})], BaseRatingDisplay.prototype, "max", 2);
|
|
10850
|
-
__decorateClass$
|
|
10840
|
+
__decorateClass$j([attr({
|
|
10851
10841
|
converter: nullableNumberConverter
|
|
10852
10842
|
})], BaseRatingDisplay.prototype, "value", 2);
|
|
10853
|
-
__decorateClass$
|
|
10854
|
-
__decorateClass$
|
|
10843
|
+
__decorateClass$j([observable], BaseRatingDisplay.prototype, "slottedIcon", 2);
|
|
10844
|
+
__decorateClass$j([observable], BaseRatingDisplay.prototype, "customIcon", 2);
|
|
10855
10845
|
|
|
10856
10846
|
const RatingDisplayColor = {
|
|
10857
10847
|
neutral: "neutral",
|
|
@@ -10864,12 +10854,12 @@ const RatingDisplaySize = {
|
|
|
10864
10854
|
large: "large"
|
|
10865
10855
|
};
|
|
10866
10856
|
|
|
10867
|
-
var __defProp$
|
|
10868
|
-
var __getOwnPropDesc$
|
|
10869
|
-
var __decorateClass$
|
|
10870
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10857
|
+
var __defProp$i = Object.defineProperty;
|
|
10858
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
10859
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
10860
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
10871
10861
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10872
|
-
if (kind && result) __defProp$
|
|
10862
|
+
if (kind && result) __defProp$i(target, key, result);
|
|
10873
10863
|
return result;
|
|
10874
10864
|
};
|
|
10875
10865
|
class RatingDisplay extends BaseRatingDisplay {
|
|
@@ -10912,9 +10902,9 @@ class RatingDisplay extends BaseRatingDisplay {
|
|
|
10912
10902
|
return (this.compact ? 1 : this.max ?? 5) * 2;
|
|
10913
10903
|
}
|
|
10914
10904
|
}
|
|
10915
|
-
__decorateClass$
|
|
10916
|
-
__decorateClass$
|
|
10917
|
-
__decorateClass$
|
|
10905
|
+
__decorateClass$i([attr], RatingDisplay.prototype, "color", 2);
|
|
10906
|
+
__decorateClass$i([attr], RatingDisplay.prototype, "size", 2);
|
|
10907
|
+
__decorateClass$i([attr({
|
|
10918
10908
|
mode: "boolean"
|
|
10919
10909
|
})], RatingDisplay.prototype, "compact", 2);
|
|
10920
10910
|
|
|
@@ -10958,12 +10948,12 @@ function convertPixelToPercent(pixelPos, minPosition, maxPosition, direction) {
|
|
|
10958
10948
|
return pct;
|
|
10959
10949
|
}
|
|
10960
10950
|
|
|
10961
|
-
var __defProp$
|
|
10962
|
-
var __getOwnPropDesc$
|
|
10963
|
-
var __decorateClass$
|
|
10964
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10951
|
+
var __defProp$h = Object.defineProperty;
|
|
10952
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
10953
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
10954
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
10965
10955
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10966
|
-
if (kind && result) __defProp$
|
|
10956
|
+
if (kind && result) __defProp$h(target, key, result);
|
|
10967
10957
|
return result;
|
|
10968
10958
|
};
|
|
10969
10959
|
class Slider extends FASTElement {
|
|
@@ -11488,34 +11478,34 @@ class Slider extends FASTElement {
|
|
|
11488
11478
|
* @public
|
|
11489
11479
|
*/
|
|
11490
11480
|
Slider.formAssociated = true;
|
|
11491
|
-
__decorateClass$
|
|
11492
|
-
__decorateClass$
|
|
11481
|
+
__decorateClass$h([attr], Slider.prototype, "size", 2);
|
|
11482
|
+
__decorateClass$h([attr({
|
|
11493
11483
|
attribute: "value",
|
|
11494
11484
|
mode: "fromView"
|
|
11495
11485
|
})], Slider.prototype, "initialValue", 2);
|
|
11496
|
-
__decorateClass$
|
|
11497
|
-
__decorateClass$
|
|
11498
|
-
__decorateClass$
|
|
11499
|
-
__decorateClass$
|
|
11500
|
-
__decorateClass$
|
|
11501
|
-
__decorateClass$
|
|
11502
|
-
__decorateClass$
|
|
11503
|
-
__decorateClass$
|
|
11504
|
-
__decorateClass$
|
|
11505
|
-
__decorateClass$
|
|
11486
|
+
__decorateClass$h([observable], Slider.prototype, "direction", 2);
|
|
11487
|
+
__decorateClass$h([observable], Slider.prototype, "isDragging", 2);
|
|
11488
|
+
__decorateClass$h([observable], Slider.prototype, "position", 2);
|
|
11489
|
+
__decorateClass$h([observable], Slider.prototype, "trackWidth", 2);
|
|
11490
|
+
__decorateClass$h([observable], Slider.prototype, "trackMinWidth", 2);
|
|
11491
|
+
__decorateClass$h([observable], Slider.prototype, "trackHeight", 2);
|
|
11492
|
+
__decorateClass$h([observable], Slider.prototype, "trackLeft", 2);
|
|
11493
|
+
__decorateClass$h([observable], Slider.prototype, "trackMinHeight", 2);
|
|
11494
|
+
__decorateClass$h([observable], Slider.prototype, "valueTextFormatter", 2);
|
|
11495
|
+
__decorateClass$h([attr({
|
|
11506
11496
|
mode: "boolean"
|
|
11507
11497
|
})], Slider.prototype, "disabled", 2);
|
|
11508
|
-
__decorateClass$
|
|
11498
|
+
__decorateClass$h([attr({
|
|
11509
11499
|
converter: numberLikeStringConverter
|
|
11510
11500
|
})], Slider.prototype, "min", 2);
|
|
11511
|
-
__decorateClass$
|
|
11501
|
+
__decorateClass$h([attr({
|
|
11512
11502
|
converter: numberLikeStringConverter
|
|
11513
11503
|
})], Slider.prototype, "max", 2);
|
|
11514
|
-
__decorateClass$
|
|
11504
|
+
__decorateClass$h([attr({
|
|
11515
11505
|
converter: numberLikeStringConverter
|
|
11516
11506
|
})], Slider.prototype, "step", 2);
|
|
11517
|
-
__decorateClass$
|
|
11518
|
-
__decorateClass$
|
|
11507
|
+
__decorateClass$h([attr], Slider.prototype, "orientation", 2);
|
|
11508
|
+
__decorateClass$h([attr], Slider.prototype, "mode", 2);
|
|
11519
11509
|
|
|
11520
11510
|
const styles$d = css`
|
|
11521
11511
|
${display("inline-grid")}
|
|
@@ -11569,12 +11559,12 @@ const SpinnerSize = {
|
|
|
11569
11559
|
huge: "huge"
|
|
11570
11560
|
};
|
|
11571
11561
|
|
|
11572
|
-
var __defProp$
|
|
11573
|
-
var __getOwnPropDesc$
|
|
11574
|
-
var __decorateClass$
|
|
11575
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11562
|
+
var __defProp$g = Object.defineProperty;
|
|
11563
|
+
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
11564
|
+
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
11565
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
11576
11566
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11577
|
-
if (kind && result) __defProp$
|
|
11567
|
+
if (kind && result) __defProp$g(target, key, result);
|
|
11578
11568
|
return result;
|
|
11579
11569
|
};
|
|
11580
11570
|
class Spinner extends BaseSpinner {
|
|
@@ -11595,8 +11585,8 @@ class Spinner extends BaseSpinner {
|
|
|
11595
11585
|
swapStates(this.elementInternals, prev, next, SpinnerAppearance);
|
|
11596
11586
|
}
|
|
11597
11587
|
}
|
|
11598
|
-
__decorateClass$
|
|
11599
|
-
__decorateClass$
|
|
11588
|
+
__decorateClass$g([attr], Spinner.prototype, "size", 2);
|
|
11589
|
+
__decorateClass$g([attr], Spinner.prototype, "appearance", 2);
|
|
11600
11590
|
|
|
11601
11591
|
const styles$c = css`
|
|
11602
11592
|
${display("inline-flex")}
|
|
@@ -11662,12 +11652,12 @@ const definition$a = TabPanel.compose({
|
|
|
11662
11652
|
|
|
11663
11653
|
definition$a.define(FluentDesignSystem.registry);
|
|
11664
11654
|
|
|
11665
|
-
var __defProp$
|
|
11666
|
-
var __getOwnPropDesc$
|
|
11667
|
-
var __decorateClass$
|
|
11668
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11655
|
+
var __defProp$f = Object.defineProperty;
|
|
11656
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
11657
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
11658
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
11669
11659
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11670
|
-
if (kind && result) __defProp$
|
|
11660
|
+
if (kind && result) __defProp$f(target, key, result);
|
|
11671
11661
|
return result;
|
|
11672
11662
|
};
|
|
11673
11663
|
class Tab extends FASTElement {
|
|
@@ -11681,7 +11671,7 @@ class Tab extends FASTElement {
|
|
|
11681
11671
|
this.$fastController.addStyles(this.styles);
|
|
11682
11672
|
}
|
|
11683
11673
|
}
|
|
11684
|
-
__decorateClass$
|
|
11674
|
+
__decorateClass$f([attr({
|
|
11685
11675
|
mode: "boolean"
|
|
11686
11676
|
})], Tab.prototype, "disabled", 2);
|
|
11687
11677
|
applyMixins(Tab, StartEnd);
|
|
@@ -11711,12 +11701,12 @@ const TabsAppearance = {
|
|
|
11711
11701
|
};
|
|
11712
11702
|
const TabsOrientation = Orientation;
|
|
11713
11703
|
|
|
11714
|
-
var __defProp$
|
|
11715
|
-
var __getOwnPropDesc$
|
|
11716
|
-
var __decorateClass$
|
|
11717
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11704
|
+
var __defProp$e = Object.defineProperty;
|
|
11705
|
+
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
11706
|
+
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
11707
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
11718
11708
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11719
|
-
if (kind && result) __defProp$
|
|
11709
|
+
if (kind && result) __defProp$e(target, key, result);
|
|
11720
11710
|
return result;
|
|
11721
11711
|
};
|
|
11722
11712
|
class BaseTabs extends FASTElement {
|
|
@@ -11960,17 +11950,17 @@ class BaseTabs extends FASTElement {
|
|
|
11960
11950
|
this.activeTabIndex = this.getActiveIndex();
|
|
11961
11951
|
}
|
|
11962
11952
|
}
|
|
11963
|
-
__decorateClass$
|
|
11964
|
-
__decorateClass$
|
|
11965
|
-
__decorateClass$
|
|
11966
|
-
__decorateClass$
|
|
11953
|
+
__decorateClass$e([attr], BaseTabs.prototype, "orientation", 2);
|
|
11954
|
+
__decorateClass$e([attr], BaseTabs.prototype, "activeid", 2);
|
|
11955
|
+
__decorateClass$e([observable], BaseTabs.prototype, "tabs", 2);
|
|
11956
|
+
__decorateClass$e([observable], BaseTabs.prototype, "tabpanels", 2);
|
|
11967
11957
|
|
|
11968
|
-
var __defProp$
|
|
11969
|
-
var __getOwnPropDesc$
|
|
11970
|
-
var __decorateClass$
|
|
11971
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11958
|
+
var __defProp$d = Object.defineProperty;
|
|
11959
|
+
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
11960
|
+
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
11961
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
11972
11962
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11973
|
-
if (kind && result) __defProp$
|
|
11963
|
+
if (kind && result) __defProp$d(target, key, result);
|
|
11974
11964
|
return result;
|
|
11975
11965
|
};
|
|
11976
11966
|
class Tabs extends BaseTabs {
|
|
@@ -12104,11 +12094,11 @@ class Tabs extends BaseTabs {
|
|
|
12104
12094
|
this.setTabData();
|
|
12105
12095
|
}
|
|
12106
12096
|
}
|
|
12107
|
-
__decorateClass$
|
|
12108
|
-
__decorateClass$
|
|
12097
|
+
__decorateClass$d([attr], Tabs.prototype, "appearance", 2);
|
|
12098
|
+
__decorateClass$d([attr({
|
|
12109
12099
|
mode: "boolean"
|
|
12110
12100
|
})], Tabs.prototype, "disabled", 2);
|
|
12111
|
-
__decorateClass$
|
|
12101
|
+
__decorateClass$d([attr], Tabs.prototype, "size", 2);
|
|
12112
12102
|
applyMixins(Tabs, StartEnd);
|
|
12113
12103
|
|
|
12114
12104
|
function tabsTemplate(options = {}) {
|
|
@@ -12150,12 +12140,12 @@ const TablistSize = {
|
|
|
12150
12140
|
};
|
|
12151
12141
|
const TablistOrientation = Orientation;
|
|
12152
12142
|
|
|
12153
|
-
var __defProp$
|
|
12154
|
-
var __getOwnPropDesc$
|
|
12155
|
-
var __decorateClass$
|
|
12156
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12143
|
+
var __defProp$c = Object.defineProperty;
|
|
12144
|
+
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
12145
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
12146
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
12157
12147
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12158
|
-
if (kind && result) __defProp$
|
|
12148
|
+
if (kind && result) __defProp$c(target, key, result);
|
|
12159
12149
|
return result;
|
|
12160
12150
|
};
|
|
12161
12151
|
class BaseTablist extends FASTElement {
|
|
@@ -12368,19 +12358,19 @@ class BaseTablist extends FASTElement {
|
|
|
12368
12358
|
this.activeTabIndex = this.getActiveIndex();
|
|
12369
12359
|
}
|
|
12370
12360
|
}
|
|
12371
|
-
__decorateClass$
|
|
12361
|
+
__decorateClass$c([attr({
|
|
12372
12362
|
mode: "boolean"
|
|
12373
12363
|
})], BaseTablist.prototype, "disabled", 2);
|
|
12374
|
-
__decorateClass$
|
|
12375
|
-
__decorateClass$
|
|
12376
|
-
__decorateClass$
|
|
12364
|
+
__decorateClass$c([attr], BaseTablist.prototype, "orientation", 2);
|
|
12365
|
+
__decorateClass$c([attr], BaseTablist.prototype, "activeid", 2);
|
|
12366
|
+
__decorateClass$c([observable], BaseTablist.prototype, "tabs", 2);
|
|
12377
12367
|
|
|
12378
|
-
var __defProp$
|
|
12379
|
-
var __getOwnPropDesc$
|
|
12380
|
-
var __decorateClass$
|
|
12381
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12368
|
+
var __defProp$b = Object.defineProperty;
|
|
12369
|
+
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
12370
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
12371
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
12382
12372
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12383
|
-
if (kind && result) __defProp$
|
|
12373
|
+
if (kind && result) __defProp$b(target, key, result);
|
|
12384
12374
|
return result;
|
|
12385
12375
|
};
|
|
12386
12376
|
class Tablist extends BaseTablist {
|
|
@@ -12534,8 +12524,8 @@ class Tablist extends BaseTablist {
|
|
|
12534
12524
|
}
|
|
12535
12525
|
}
|
|
12536
12526
|
}
|
|
12537
|
-
__decorateClass$
|
|
12538
|
-
__decorateClass$
|
|
12527
|
+
__decorateClass$b([attr], Tablist.prototype, "appearance", 2);
|
|
12528
|
+
__decorateClass$b([attr], Tablist.prototype, "size", 2);
|
|
12539
12529
|
|
|
12540
12530
|
const template$7 = html`<template role="tablist"><slot name="tab" ${slotted("tabs")}></slot></template>`;
|
|
12541
12531
|
|
|
@@ -12570,12 +12560,12 @@ const TextAreaResize = {
|
|
|
12570
12560
|
vertical: "vertical"
|
|
12571
12561
|
};
|
|
12572
12562
|
|
|
12573
|
-
var __defProp$
|
|
12574
|
-
var __getOwnPropDesc$
|
|
12575
|
-
var __decorateClass$
|
|
12576
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12563
|
+
var __defProp$a = Object.defineProperty;
|
|
12564
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
12565
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
12566
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
12577
12567
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12578
|
-
if (kind && result) __defProp$
|
|
12568
|
+
if (kind && result) __defProp$a(target, key, result);
|
|
12579
12569
|
return result;
|
|
12580
12570
|
};
|
|
12581
12571
|
class BaseTextArea extends FASTElement {
|
|
@@ -12944,56 +12934,56 @@ class BaseTextArea extends FASTElement {
|
|
|
12944
12934
|
* @public
|
|
12945
12935
|
*/
|
|
12946
12936
|
BaseTextArea.formAssociated = true;
|
|
12947
|
-
__decorateClass$
|
|
12948
|
-
__decorateClass$
|
|
12949
|
-
__decorateClass$
|
|
12950
|
-
__decorateClass$
|
|
12937
|
+
__decorateClass$a([observable], BaseTextArea.prototype, "defaultSlottedNodes", 2);
|
|
12938
|
+
__decorateClass$a([observable], BaseTextArea.prototype, "labelSlottedNodes", 2);
|
|
12939
|
+
__decorateClass$a([attr], BaseTextArea.prototype, "autocomplete", 2);
|
|
12940
|
+
__decorateClass$a([attr({
|
|
12951
12941
|
attribute: "auto-resize",
|
|
12952
12942
|
mode: "boolean"
|
|
12953
12943
|
})], BaseTextArea.prototype, "autoResize", 2);
|
|
12954
|
-
__decorateClass$
|
|
12944
|
+
__decorateClass$a([attr({
|
|
12955
12945
|
attribute: "dirname"
|
|
12956
12946
|
})], BaseTextArea.prototype, "dirName", 2);
|
|
12957
|
-
__decorateClass$
|
|
12947
|
+
__decorateClass$a([attr({
|
|
12958
12948
|
mode: "boolean"
|
|
12959
12949
|
})], BaseTextArea.prototype, "disabled", 2);
|
|
12960
|
-
__decorateClass$
|
|
12950
|
+
__decorateClass$a([attr({
|
|
12961
12951
|
attribute: "display-shadow",
|
|
12962
12952
|
mode: "boolean"
|
|
12963
12953
|
})], BaseTextArea.prototype, "displayShadow", 2);
|
|
12964
|
-
__decorateClass$
|
|
12954
|
+
__decorateClass$a([attr({
|
|
12965
12955
|
attribute: "form"
|
|
12966
12956
|
})], BaseTextArea.prototype, "initialForm", 2);
|
|
12967
|
-
__decorateClass$
|
|
12957
|
+
__decorateClass$a([attr({
|
|
12968
12958
|
attribute: "maxlength",
|
|
12969
12959
|
converter: nullableNumberConverter
|
|
12970
12960
|
})], BaseTextArea.prototype, "maxLength", 2);
|
|
12971
|
-
__decorateClass$
|
|
12961
|
+
__decorateClass$a([attr({
|
|
12972
12962
|
attribute: "minlength",
|
|
12973
12963
|
converter: nullableNumberConverter
|
|
12974
12964
|
})], BaseTextArea.prototype, "minLength", 2);
|
|
12975
|
-
__decorateClass$
|
|
12976
|
-
__decorateClass$
|
|
12977
|
-
__decorateClass$
|
|
12965
|
+
__decorateClass$a([attr], BaseTextArea.prototype, "name", 2);
|
|
12966
|
+
__decorateClass$a([attr], BaseTextArea.prototype, "placeholder", 2);
|
|
12967
|
+
__decorateClass$a([attr({
|
|
12978
12968
|
attribute: "readonly",
|
|
12979
12969
|
mode: "boolean"
|
|
12980
12970
|
})], BaseTextArea.prototype, "readOnly", 2);
|
|
12981
|
-
__decorateClass$
|
|
12971
|
+
__decorateClass$a([attr({
|
|
12982
12972
|
mode: "boolean"
|
|
12983
12973
|
})], BaseTextArea.prototype, "required", 2);
|
|
12984
|
-
__decorateClass$
|
|
12974
|
+
__decorateClass$a([attr({
|
|
12985
12975
|
mode: "fromView"
|
|
12986
12976
|
})], BaseTextArea.prototype, "resize", 2);
|
|
12987
|
-
__decorateClass$
|
|
12977
|
+
__decorateClass$a([attr({
|
|
12988
12978
|
mode: "boolean"
|
|
12989
12979
|
})], BaseTextArea.prototype, "spellcheck", 2);
|
|
12990
12980
|
|
|
12991
|
-
var __defProp$
|
|
12992
|
-
var __getOwnPropDesc$
|
|
12993
|
-
var __decorateClass$
|
|
12994
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12981
|
+
var __defProp$9 = Object.defineProperty;
|
|
12982
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
12983
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
12984
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
12995
12985
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12996
|
-
if (kind && result) __defProp$
|
|
12986
|
+
if (kind && result) __defProp$9(target, key, result);
|
|
12997
12987
|
return result;
|
|
12998
12988
|
};
|
|
12999
12989
|
class TextArea extends BaseTextArea {
|
|
@@ -13061,13 +13051,13 @@ class TextArea extends BaseTextArea {
|
|
|
13061
13051
|
toggleState(this.elementInternals, "display-shadow", this.displayShadow && TextAreaAppearancesForDisplayShadow.includes(this.appearance));
|
|
13062
13052
|
}
|
|
13063
13053
|
}
|
|
13064
|
-
__decorateClass$
|
|
13054
|
+
__decorateClass$9([attr({
|
|
13065
13055
|
mode: "fromView"
|
|
13066
13056
|
})], TextArea.prototype, "appearance", 2);
|
|
13067
|
-
__decorateClass$
|
|
13057
|
+
__decorateClass$9([attr({
|
|
13068
13058
|
mode: "boolean"
|
|
13069
13059
|
})], TextArea.prototype, "block", 2);
|
|
13070
|
-
__decorateClass$
|
|
13060
|
+
__decorateClass$9([attr], TextArea.prototype, "size", 2);
|
|
13071
13061
|
|
|
13072
13062
|
const styles$6 = css`
|
|
13073
13063
|
${display("inline-block")}
|
|
@@ -13117,12 +13107,12 @@ const TextInputType = {
|
|
|
13117
13107
|
};
|
|
13118
13108
|
const ImplicitSubmissionBlockingTypes = ["date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week"];
|
|
13119
13109
|
|
|
13120
|
-
var __defProp$
|
|
13121
|
-
var __getOwnPropDesc$
|
|
13122
|
-
var __decorateClass$
|
|
13123
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13110
|
+
var __defProp$8 = Object.defineProperty;
|
|
13111
|
+
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
13112
|
+
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
13113
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
13124
13114
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13125
|
-
if (kind && result) __defProp$
|
|
13115
|
+
if (kind && result) __defProp$8(target, key, result);
|
|
13126
13116
|
return result;
|
|
13127
13117
|
};
|
|
13128
13118
|
class BaseTextInput extends FASTElement {
|
|
@@ -13443,63 +13433,63 @@ class BaseTextInput extends FASTElement {
|
|
|
13443
13433
|
* @public
|
|
13444
13434
|
*/
|
|
13445
13435
|
BaseTextInput.formAssociated = true;
|
|
13446
|
-
__decorateClass$
|
|
13447
|
-
__decorateClass$
|
|
13436
|
+
__decorateClass$8([attr], BaseTextInput.prototype, "autocomplete", 2);
|
|
13437
|
+
__decorateClass$8([attr({
|
|
13448
13438
|
mode: "boolean"
|
|
13449
13439
|
})], BaseTextInput.prototype, "autofocus", 2);
|
|
13450
|
-
__decorateClass$
|
|
13440
|
+
__decorateClass$8([attr({
|
|
13451
13441
|
attribute: "current-value"
|
|
13452
13442
|
})], BaseTextInput.prototype, "currentValue", 2);
|
|
13453
|
-
__decorateClass$
|
|
13454
|
-
__decorateClass$
|
|
13455
|
-
__decorateClass$
|
|
13443
|
+
__decorateClass$8([observable], BaseTextInput.prototype, "defaultSlottedNodes", 2);
|
|
13444
|
+
__decorateClass$8([attr], BaseTextInput.prototype, "dirname", 2);
|
|
13445
|
+
__decorateClass$8([attr({
|
|
13456
13446
|
mode: "boolean"
|
|
13457
13447
|
})], BaseTextInput.prototype, "disabled", 2);
|
|
13458
|
-
__decorateClass$
|
|
13448
|
+
__decorateClass$8([attr({
|
|
13459
13449
|
attribute: "form"
|
|
13460
13450
|
})], BaseTextInput.prototype, "formAttribute", 2);
|
|
13461
|
-
__decorateClass$
|
|
13451
|
+
__decorateClass$8([attr({
|
|
13462
13452
|
attribute: "value",
|
|
13463
13453
|
mode: "fromView"
|
|
13464
13454
|
})], BaseTextInput.prototype, "initialValue", 2);
|
|
13465
|
-
__decorateClass$
|
|
13466
|
-
__decorateClass$
|
|
13455
|
+
__decorateClass$8([attr], BaseTextInput.prototype, "list", 2);
|
|
13456
|
+
__decorateClass$8([attr({
|
|
13467
13457
|
converter: nullableNumberConverter
|
|
13468
13458
|
})], BaseTextInput.prototype, "maxlength", 2);
|
|
13469
|
-
__decorateClass$
|
|
13459
|
+
__decorateClass$8([attr({
|
|
13470
13460
|
converter: nullableNumberConverter
|
|
13471
13461
|
})], BaseTextInput.prototype, "minlength", 2);
|
|
13472
|
-
__decorateClass$
|
|
13462
|
+
__decorateClass$8([attr({
|
|
13473
13463
|
mode: "boolean"
|
|
13474
13464
|
})], BaseTextInput.prototype, "multiple", 2);
|
|
13475
|
-
__decorateClass$
|
|
13476
|
-
__decorateClass$
|
|
13477
|
-
__decorateClass$
|
|
13478
|
-
__decorateClass$
|
|
13465
|
+
__decorateClass$8([attr], BaseTextInput.prototype, "name", 2);
|
|
13466
|
+
__decorateClass$8([attr], BaseTextInput.prototype, "pattern", 2);
|
|
13467
|
+
__decorateClass$8([attr], BaseTextInput.prototype, "placeholder", 2);
|
|
13468
|
+
__decorateClass$8([attr({
|
|
13479
13469
|
attribute: "readonly",
|
|
13480
13470
|
mode: "boolean"
|
|
13481
13471
|
})], BaseTextInput.prototype, "readOnly", 2);
|
|
13482
|
-
__decorateClass$
|
|
13472
|
+
__decorateClass$8([attr({
|
|
13483
13473
|
mode: "boolean"
|
|
13484
13474
|
})], BaseTextInput.prototype, "required", 2);
|
|
13485
|
-
__decorateClass$
|
|
13475
|
+
__decorateClass$8([attr({
|
|
13486
13476
|
converter: nullableNumberConverter
|
|
13487
13477
|
})], BaseTextInput.prototype, "size", 2);
|
|
13488
|
-
__decorateClass$
|
|
13478
|
+
__decorateClass$8([attr({
|
|
13489
13479
|
converter: {
|
|
13490
13480
|
fromView: value => typeof value === "string" ? ["true", ""].includes(value.trim().toLowerCase()) : null,
|
|
13491
13481
|
toView: value => value.toString()
|
|
13492
13482
|
}
|
|
13493
13483
|
})], BaseTextInput.prototype, "spellcheck", 2);
|
|
13494
|
-
__decorateClass$
|
|
13495
|
-
__decorateClass$
|
|
13484
|
+
__decorateClass$8([attr], BaseTextInput.prototype, "type", 2);
|
|
13485
|
+
__decorateClass$8([observable], BaseTextInput.prototype, "controlLabel", 2);
|
|
13496
13486
|
|
|
13497
|
-
var __defProp$
|
|
13498
|
-
var __getOwnPropDesc$
|
|
13499
|
-
var __decorateClass$
|
|
13500
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13501
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13502
|
-
if (kind && result) __defProp$
|
|
13487
|
+
var __defProp$7 = Object.defineProperty;
|
|
13488
|
+
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
13489
|
+
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
13490
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
13491
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13492
|
+
if (kind && result) __defProp$7(target, key, result);
|
|
13503
13493
|
return result;
|
|
13504
13494
|
};
|
|
13505
13495
|
class TextInput extends BaseTextInput {
|
|
@@ -13520,8 +13510,8 @@ class TextInput extends BaseTextInput {
|
|
|
13520
13510
|
swapStates(this.elementInternals, prev, next, TextInputControlSize);
|
|
13521
13511
|
}
|
|
13522
13512
|
}
|
|
13523
|
-
__decorateClass$
|
|
13524
|
-
__decorateClass$
|
|
13513
|
+
__decorateClass$7([attr], TextInput.prototype, "appearance", 2);
|
|
13514
|
+
__decorateClass$7([attr({
|
|
13525
13515
|
attribute: "control-size"
|
|
13526
13516
|
})], TextInput.prototype, "controlSize", 2);
|
|
13527
13517
|
applyMixins(TextInput, StartEnd);
|
|
@@ -13580,12 +13570,12 @@ const TextAlign = {
|
|
|
13580
13570
|
justify: "justify"
|
|
13581
13571
|
};
|
|
13582
13572
|
|
|
13583
|
-
var __defProp$
|
|
13584
|
-
var __getOwnPropDesc$
|
|
13585
|
-
var __decorateClass$
|
|
13586
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13573
|
+
var __defProp$6 = Object.defineProperty;
|
|
13574
|
+
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
13575
|
+
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
13576
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
13587
13577
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13588
|
-
if (kind && result) __defProp$
|
|
13578
|
+
if (kind && result) __defProp$6(target, key, result);
|
|
13589
13579
|
return result;
|
|
13590
13580
|
};
|
|
13591
13581
|
class Text extends FASTElement {
|
|
@@ -13666,28 +13656,28 @@ class Text extends FASTElement {
|
|
|
13666
13656
|
}
|
|
13667
13657
|
}
|
|
13668
13658
|
}
|
|
13669
|
-
__decorateClass$
|
|
13659
|
+
__decorateClass$6([attr({
|
|
13670
13660
|
mode: "boolean"
|
|
13671
13661
|
})], Text.prototype, "nowrap", 2);
|
|
13672
|
-
__decorateClass$
|
|
13662
|
+
__decorateClass$6([attr({
|
|
13673
13663
|
mode: "boolean"
|
|
13674
13664
|
})], Text.prototype, "truncate", 2);
|
|
13675
|
-
__decorateClass$
|
|
13665
|
+
__decorateClass$6([attr({
|
|
13676
13666
|
mode: "boolean"
|
|
13677
13667
|
})], Text.prototype, "italic", 2);
|
|
13678
|
-
__decorateClass$
|
|
13668
|
+
__decorateClass$6([attr({
|
|
13679
13669
|
mode: "boolean"
|
|
13680
13670
|
})], Text.prototype, "underline", 2);
|
|
13681
|
-
__decorateClass$
|
|
13671
|
+
__decorateClass$6([attr({
|
|
13682
13672
|
mode: "boolean"
|
|
13683
13673
|
})], Text.prototype, "strikethrough", 2);
|
|
13684
|
-
__decorateClass$
|
|
13674
|
+
__decorateClass$6([attr({
|
|
13685
13675
|
mode: "boolean"
|
|
13686
13676
|
})], Text.prototype, "block", 2);
|
|
13687
|
-
__decorateClass$
|
|
13688
|
-
__decorateClass$
|
|
13689
|
-
__decorateClass$
|
|
13690
|
-
__decorateClass$
|
|
13677
|
+
__decorateClass$6([attr], Text.prototype, "size", 2);
|
|
13678
|
+
__decorateClass$6([attr], Text.prototype, "font", 2);
|
|
13679
|
+
__decorateClass$6([attr], Text.prototype, "weight", 2);
|
|
13680
|
+
__decorateClass$6([attr], Text.prototype, "align", 2);
|
|
13691
13681
|
|
|
13692
13682
|
const styles$4 = css`
|
|
13693
13683
|
${display("inline")}
|
|
@@ -13704,12 +13694,12 @@ const definition$4 = Text.compose({
|
|
|
13704
13694
|
|
|
13705
13695
|
definition$4.define(FluentDesignSystem.registry);
|
|
13706
13696
|
|
|
13707
|
-
var __defProp$
|
|
13708
|
-
var __getOwnPropDesc$
|
|
13709
|
-
var __decorateClass$
|
|
13710
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13697
|
+
var __defProp$5 = Object.defineProperty;
|
|
13698
|
+
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
13699
|
+
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
13700
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
13711
13701
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13712
|
-
if (kind && result) __defProp$
|
|
13702
|
+
if (kind && result) __defProp$5(target, key, result);
|
|
13713
13703
|
return result;
|
|
13714
13704
|
};
|
|
13715
13705
|
class ToggleButton extends Button {
|
|
@@ -13756,10 +13746,10 @@ class ToggleButton extends Button {
|
|
|
13756
13746
|
}
|
|
13757
13747
|
}
|
|
13758
13748
|
}
|
|
13759
|
-
__decorateClass$
|
|
13749
|
+
__decorateClass$5([attr({
|
|
13760
13750
|
mode: "boolean"
|
|
13761
13751
|
})], ToggleButton.prototype, "pressed", 2);
|
|
13762
|
-
__decorateClass$
|
|
13752
|
+
__decorateClass$5([attr({
|
|
13763
13753
|
mode: "boolean"
|
|
13764
13754
|
})], ToggleButton.prototype, "mixed", 2);
|
|
13765
13755
|
|
|
@@ -13779,12 +13769,12 @@ const definition$3 = ToggleButton.compose({
|
|
|
13779
13769
|
|
|
13780
13770
|
definition$3.define(FluentDesignSystem.registry);
|
|
13781
13771
|
|
|
13782
|
-
var __defProp$
|
|
13783
|
-
var __getOwnPropDesc$
|
|
13784
|
-
var __decorateClass$
|
|
13785
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13772
|
+
var __defProp$4 = Object.defineProperty;
|
|
13773
|
+
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
13774
|
+
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
13775
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
13786
13776
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13787
|
-
if (kind && result) __defProp$
|
|
13777
|
+
if (kind && result) __defProp$4(target, key, result);
|
|
13788
13778
|
return result;
|
|
13789
13779
|
};
|
|
13790
13780
|
class Tooltip extends FASTElement {
|
|
@@ -13950,12 +13940,12 @@ class Tooltip extends FASTElement {
|
|
|
13950
13940
|
}
|
|
13951
13941
|
}
|
|
13952
13942
|
}
|
|
13953
|
-
__decorateClass$
|
|
13954
|
-
__decorateClass$
|
|
13943
|
+
__decorateClass$4([attr], Tooltip.prototype, "id", 2);
|
|
13944
|
+
__decorateClass$4([attr({
|
|
13955
13945
|
converter: nullableNumberConverter
|
|
13956
13946
|
})], Tooltip.prototype, "delay", 2);
|
|
13957
|
-
__decorateClass$
|
|
13958
|
-
__decorateClass$
|
|
13947
|
+
__decorateClass$4([attr], Tooltip.prototype, "positioning", 2);
|
|
13948
|
+
__decorateClass$4([attr], Tooltip.prototype, "anchor", 2);
|
|
13959
13949
|
|
|
13960
13950
|
const TooltipPositioningOption = {
|
|
13961
13951
|
"above-start": "block-start span-inline-end",
|
|
@@ -14003,224 +13993,237 @@ function isTreeItem(element, tagName = "-tree-item") {
|
|
|
14003
13993
|
return element.tagName.toLowerCase().endsWith(tagName);
|
|
14004
13994
|
}
|
|
14005
13995
|
|
|
14006
|
-
var __defProp$
|
|
14007
|
-
var __getOwnPropDesc$
|
|
14008
|
-
var __decorateClass$
|
|
14009
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13996
|
+
var __defProp$3 = Object.defineProperty;
|
|
13997
|
+
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
13998
|
+
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
13999
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
14010
14000
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14011
|
-
if (kind && result) __defProp$
|
|
14001
|
+
if (kind && result) __defProp$3(target, key, result);
|
|
14012
14002
|
return result;
|
|
14013
14003
|
};
|
|
14014
|
-
class
|
|
14004
|
+
class BaseTree extends FASTElement {
|
|
14015
14005
|
constructor() {
|
|
14016
14006
|
super();
|
|
14007
|
+
this.currentSelected = null;
|
|
14008
|
+
/**
|
|
14009
|
+
* The tree item that is designated to be in the tab queue.
|
|
14010
|
+
*
|
|
14011
|
+
* @internal
|
|
14012
|
+
*/
|
|
14013
|
+
this.currentFocused = null;
|
|
14017
14014
|
/**
|
|
14018
14015
|
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
14019
14016
|
*
|
|
14020
14017
|
* @internal
|
|
14021
14018
|
*/
|
|
14022
14019
|
this.elementInternals = this.attachInternals();
|
|
14023
|
-
this.expanded = false;
|
|
14024
|
-
this.selected = false;
|
|
14025
|
-
this.empty = false;
|
|
14026
|
-
this.size = TreeItemSize.small;
|
|
14027
|
-
this.appearance = TreeItemAppearance.subtle;
|
|
14028
14020
|
this.childTreeItems = [];
|
|
14029
|
-
this.elementInternals.role = "
|
|
14021
|
+
this.elementInternals.role = "tree";
|
|
14022
|
+
}
|
|
14023
|
+
childTreeItemsChanged() {
|
|
14024
|
+
this.updateCurrentSelected();
|
|
14030
14025
|
}
|
|
14031
14026
|
/**
|
|
14032
|
-
*
|
|
14033
|
-
* @param prev - the previous state
|
|
14034
|
-
* @param next - the next state
|
|
14035
|
-
*
|
|
14036
|
-
* @public
|
|
14027
|
+
* Updates current selected when slottedTreeItems changes
|
|
14037
14028
|
*/
|
|
14038
|
-
|
|
14039
|
-
|
|
14040
|
-
|
|
14041
|
-
|
|
14029
|
+
updateCurrentSelected() {
|
|
14030
|
+
const selectedItem = this.querySelector(`[aria-selected='true']`);
|
|
14031
|
+
this.currentSelected = selectedItem;
|
|
14032
|
+
if (this.currentFocused === null || !this.contains(this.currentFocused)) {
|
|
14033
|
+
this.currentFocused = this.getValidFocusableItem();
|
|
14042
14034
|
}
|
|
14043
14035
|
}
|
|
14044
14036
|
/**
|
|
14045
|
-
*
|
|
14046
|
-
* @param prev - the previous state
|
|
14047
|
-
* @param next - the next state
|
|
14037
|
+
* KeyDown handler
|
|
14048
14038
|
*
|
|
14049
|
-
* @internal
|
|
14050
|
-
*/
|
|
14051
|
-
selectedChanged(prev, next) {
|
|
14052
|
-
this.$emit("change");
|
|
14053
|
-
toggleState(this.elementInternals, "selected", next);
|
|
14054
|
-
this.elementInternals.ariaSelected = next ? "true" : "false";
|
|
14055
|
-
}
|
|
14056
|
-
/**
|
|
14057
|
-
* Handles changes to the size attribute
|
|
14058
|
-
* we update the child tree items' size based on the size
|
|
14059
14039
|
* @internal
|
|
14060
14040
|
*/
|
|
14061
|
-
|
|
14062
|
-
|
|
14063
|
-
|
|
14064
|
-
/**
|
|
14065
|
-
* Handles changes to the appearance attribute
|
|
14066
|
-
*
|
|
14067
|
-
* @internal
|
|
14068
|
-
*/
|
|
14069
|
-
appearanceChanged() {
|
|
14070
|
-
this.updateChildTreeItems();
|
|
14071
|
-
}
|
|
14072
|
-
dataIndentChanged(prev, next) {
|
|
14073
|
-
if (this.styles !== void 0) {
|
|
14074
|
-
this.$fastController.removeStyles(this.styles);
|
|
14041
|
+
keydownHandler(e) {
|
|
14042
|
+
if (e.defaultPrevented) {
|
|
14043
|
+
return;
|
|
14075
14044
|
}
|
|
14076
|
-
|
|
14077
|
-
|
|
14078
|
-
|
|
14045
|
+
const item = e.target;
|
|
14046
|
+
if (!isTreeItem(item) || this.childTreeItems.length < 1) {
|
|
14047
|
+
return true;
|
|
14048
|
+
}
|
|
14049
|
+
const elements = this.getVisibleNodes();
|
|
14050
|
+
switch (e.key) {
|
|
14051
|
+
case keyHome:
|
|
14052
|
+
{
|
|
14053
|
+
if (elements.length) {
|
|
14054
|
+
elements[0].focus();
|
|
14055
|
+
}
|
|
14056
|
+
return;
|
|
14057
|
+
}
|
|
14058
|
+
case keyEnd:
|
|
14059
|
+
{
|
|
14060
|
+
if (elements.length) {
|
|
14061
|
+
elements[elements.length - 1].focus();
|
|
14062
|
+
}
|
|
14063
|
+
return;
|
|
14064
|
+
}
|
|
14065
|
+
case keyArrowLeft:
|
|
14066
|
+
{
|
|
14067
|
+
if (item?.childTreeItems?.length && item.expanded) {
|
|
14068
|
+
item.expanded = false;
|
|
14069
|
+
} else if (isTreeItem(item.parentElement)) {
|
|
14070
|
+
item.parentElement.focus();
|
|
14071
|
+
}
|
|
14072
|
+
return;
|
|
14073
|
+
}
|
|
14074
|
+
case keyArrowRight:
|
|
14075
|
+
{
|
|
14076
|
+
if (item?.childTreeItems?.length) {
|
|
14077
|
+
if (!item.expanded) {
|
|
14078
|
+
item.expanded = true;
|
|
14079
|
+
} else {
|
|
14080
|
+
this.focusNextNode(1, item);
|
|
14081
|
+
}
|
|
14082
|
+
}
|
|
14083
|
+
return;
|
|
14084
|
+
}
|
|
14085
|
+
case keyArrowDown:
|
|
14086
|
+
{
|
|
14087
|
+
this.focusNextNode(1, item);
|
|
14088
|
+
return;
|
|
14089
|
+
}
|
|
14090
|
+
case keyArrowUp:
|
|
14091
|
+
{
|
|
14092
|
+
this.focusNextNode(-1, item);
|
|
14093
|
+
return;
|
|
14094
|
+
}
|
|
14095
|
+
case keyEnter:
|
|
14096
|
+
{
|
|
14097
|
+
this.clickHandler(e);
|
|
14098
|
+
return;
|
|
14099
|
+
}
|
|
14100
|
+
case keySpace:
|
|
14101
|
+
{
|
|
14102
|
+
item.toggleSelection();
|
|
14103
|
+
return;
|
|
14104
|
+
}
|
|
14105
|
+
}
|
|
14106
|
+
return true;
|
|
14079
14107
|
}
|
|
14080
14108
|
/**
|
|
14081
|
-
*
|
|
14109
|
+
* Handle focus events
|
|
14082
14110
|
*
|
|
14083
14111
|
* @internal
|
|
14084
14112
|
*/
|
|
14085
|
-
|
|
14086
|
-
|
|
14087
|
-
this.updateChildTreeItems();
|
|
14088
|
-
}
|
|
14089
|
-
/**
|
|
14090
|
-
* 1. Update the child items' size based on the tree's size
|
|
14091
|
-
* 2. Update the child items' appearance based on the tree's appearance
|
|
14092
|
-
*/
|
|
14093
|
-
updateChildTreeItems() {
|
|
14094
|
-
if (!this.childTreeItems?.length) {
|
|
14113
|
+
focusHandler(e) {
|
|
14114
|
+
if (this.childTreeItems.length < 1) {
|
|
14095
14115
|
return;
|
|
14096
14116
|
}
|
|
14097
|
-
|
|
14098
|
-
if (
|
|
14099
|
-
|
|
14117
|
+
if (e.target === this) {
|
|
14118
|
+
if (this.currentFocused === null) {
|
|
14119
|
+
this.currentFocused = this.getValidFocusableItem();
|
|
14100
14120
|
}
|
|
14101
|
-
this.
|
|
14102
|
-
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
|
|
14107
|
-
|
|
14108
|
-
|
|
14109
|
-
setIndent(item) {
|
|
14110
|
-
const indent = this.dataIndent ?? 0;
|
|
14111
|
-
item.dataIndent = indent + 1;
|
|
14112
|
-
}
|
|
14113
|
-
/**
|
|
14114
|
-
* Handle focus events
|
|
14115
|
-
*
|
|
14116
|
-
* @public
|
|
14117
|
-
*/
|
|
14118
|
-
focusHandler(e) {
|
|
14119
|
-
if (e.target === this ||
|
|
14120
|
-
// In case where the tree-item contains a focusable element, we should not set the tabindex to 0 when the focus is on its child focusable element,
|
|
14121
|
-
// so users can shift+tab to navigate to the tree-item from its child focusable element.
|
|
14122
|
-
this.contains(e.target)) {
|
|
14123
|
-
this.setAttribute("tabindex", "0");
|
|
14121
|
+
if (this.currentFocused !== null) {
|
|
14122
|
+
this.currentFocused.focus();
|
|
14123
|
+
}
|
|
14124
|
+
return;
|
|
14125
|
+
}
|
|
14126
|
+
if (this.contains(e.target)) {
|
|
14127
|
+
this.setAttribute("tabindex", "-1");
|
|
14128
|
+
this.currentFocused = e.target;
|
|
14124
14129
|
}
|
|
14125
14130
|
}
|
|
14126
14131
|
/**
|
|
14127
14132
|
* Handle blur events
|
|
14128
14133
|
*
|
|
14129
|
-
* @
|
|
14134
|
+
* @internal
|
|
14130
14135
|
*/
|
|
14131
14136
|
blurHandler(e) {
|
|
14132
|
-
if (e.target === this) {
|
|
14133
|
-
this.setAttribute("tabindex", "
|
|
14137
|
+
if (e.target instanceof HTMLElement && (e.relatedTarget === null || !this.contains(e.relatedTarget))) {
|
|
14138
|
+
this.setAttribute("tabindex", "0");
|
|
14134
14139
|
}
|
|
14135
14140
|
}
|
|
14136
14141
|
/**
|
|
14137
|
-
*
|
|
14142
|
+
* Handles click events bubbling up
|
|
14138
14143
|
*
|
|
14139
|
-
*
|
|
14144
|
+
* @internal
|
|
14140
14145
|
*/
|
|
14141
|
-
|
|
14142
|
-
if (
|
|
14143
|
-
|
|
14144
|
-
}
|
|
14146
|
+
clickHandler(e) {
|
|
14147
|
+
if (e.defaultPrevented) {
|
|
14148
|
+
return;
|
|
14149
|
+
}
|
|
14150
|
+
if (!isTreeItem(e.target)) {
|
|
14151
|
+
return true;
|
|
14152
|
+
}
|
|
14153
|
+
const item = e.target;
|
|
14154
|
+
item.toggleExpansion();
|
|
14155
|
+
item.toggleSelection();
|
|
14145
14156
|
}
|
|
14146
14157
|
/**
|
|
14147
|
-
*
|
|
14158
|
+
* Handles the selected-changed events bubbling up
|
|
14159
|
+
* from child tree items
|
|
14148
14160
|
*
|
|
14149
|
-
*
|
|
14161
|
+
* @internal
|
|
14150
14162
|
*/
|
|
14151
|
-
|
|
14152
|
-
|
|
14163
|
+
changeHandler(e) {
|
|
14164
|
+
if (e.defaultPrevented) {
|
|
14165
|
+
return;
|
|
14166
|
+
}
|
|
14167
|
+
if (!isTreeItem(e.target)) {
|
|
14168
|
+
return true;
|
|
14169
|
+
}
|
|
14170
|
+
const item = e.target;
|
|
14171
|
+
if (item.selected) {
|
|
14172
|
+
if (this.currentSelected && this.currentSelected !== item && isTreeItem(this.currentSelected)) {
|
|
14173
|
+
this.currentSelected.selected = false;
|
|
14174
|
+
}
|
|
14175
|
+
this.currentSelected = item;
|
|
14176
|
+
} else if (!item.selected && this.currentSelected === item) {
|
|
14177
|
+
this.currentSelected = null;
|
|
14178
|
+
}
|
|
14153
14179
|
}
|
|
14154
14180
|
/**
|
|
14155
|
-
*
|
|
14156
|
-
* @internal
|
|
14181
|
+
* checks if there are any nested tree items
|
|
14157
14182
|
*/
|
|
14158
|
-
|
|
14159
|
-
|
|
14183
|
+
getValidFocusableItem() {
|
|
14184
|
+
const elements = this.getVisibleNodes();
|
|
14185
|
+
let focusIndex = elements.findIndex(el => el.selected);
|
|
14186
|
+
if (focusIndex === -1) {
|
|
14187
|
+
focusIndex = elements.findIndex(el => isTreeItem(el));
|
|
14188
|
+
}
|
|
14189
|
+
if (focusIndex !== -1) {
|
|
14190
|
+
return elements[focusIndex];
|
|
14191
|
+
}
|
|
14192
|
+
return null;
|
|
14193
|
+
}
|
|
14194
|
+
getVisibleNodes() {
|
|
14195
|
+
return Array.from(this.querySelectorAll("*")).filter(node => isTreeItem(node) && node.offsetParent !== null);
|
|
14196
|
+
}
|
|
14197
|
+
/**
|
|
14198
|
+
* Move focus to a tree item based on its offset from the provided item
|
|
14199
|
+
*/
|
|
14200
|
+
focusNextNode(delta, item) {
|
|
14201
|
+
const visibleNodes = this.getVisibleNodes();
|
|
14202
|
+
if (!visibleNodes.length) {
|
|
14203
|
+
return;
|
|
14204
|
+
}
|
|
14205
|
+
const focusItem = visibleNodes[visibleNodes.indexOf(item) + delta];
|
|
14206
|
+
if (isHTMLElement(focusItem)) {
|
|
14207
|
+
focusItem.focus();
|
|
14208
|
+
}
|
|
14160
14209
|
}
|
|
14161
14210
|
}
|
|
14162
|
-
__decorateClass$
|
|
14163
|
-
|
|
14164
|
-
})], TreeItem.prototype, "expanded", 2);
|
|
14165
|
-
__decorateClass$1([attr({
|
|
14166
|
-
mode: "boolean"
|
|
14167
|
-
})], TreeItem.prototype, "selected", 2);
|
|
14168
|
-
__decorateClass$1([attr({
|
|
14169
|
-
mode: "boolean"
|
|
14170
|
-
})], TreeItem.prototype, "empty", 2);
|
|
14171
|
-
__decorateClass$1([attr], TreeItem.prototype, "size", 2);
|
|
14172
|
-
__decorateClass$1([attr], TreeItem.prototype, "appearance", 2);
|
|
14173
|
-
__decorateClass$1([attr({
|
|
14174
|
-
attribute: "data-indent"
|
|
14175
|
-
})], TreeItem.prototype, "dataIndent", 2);
|
|
14176
|
-
__decorateClass$1([observable], TreeItem.prototype, "childTreeItems", 2);
|
|
14211
|
+
__decorateClass$3([observable], BaseTree.prototype, "currentSelected", 2);
|
|
14212
|
+
__decorateClass$3([observable], BaseTree.prototype, "childTreeItems", 2);
|
|
14177
14213
|
|
|
14178
|
-
|
|
14179
|
-
|
|
14180
|
-
|
|
14181
|
-
|
|
14182
|
-
})}><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron"><slot name="chevron">${chevronIcon}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="badging" part="badging"><slot name="badging"></slot></div><div class="toolbar" part="toolbar"><slot name="toolbar"></slot></div></div><div role="group" class="items" part="items"><slot name="item"></slot></div></template>`;
|
|
14183
|
-
|
|
14184
|
-
const styles$1 = css`
|
|
14185
|
-
${display("block")}
|
|
14186
|
-
|
|
14187
|
-
:host{outline:none}:host(:focus-visible) .positioning-region{box-shadow:${spacingVerticalNone} ${spacingVerticalNone} ${spacingVerticalNone} ${spacingVerticalXXS}
|
|
14188
|
-
${colorStrokeFocus2} inset}.positioning-region{display:flex;align-items:stretch;justify-content:space-between;cursor:pointer;height:${spacingVerticalXXXL};padding-inline-start:calc(var(--indent) * ${spacingHorizontalXXL});padding-inline-end:${spacingVerticalS};border-radius:${borderRadiusMedium};background-color:${colorSubtleBackground};color:${colorNeutralForeground2}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${colorStrokeFocus2}}}.content{display:flex;align-items:center;font-size:${fontSizeBase300};min-width:0}.chevron{display:flex;align-items:center;flex-shrink:0;min-width:0;justify-content:center;width:${spacingHorizontalXXL};height:${spacingVerticalXXL};color:${colorNeutralForeground3};transition:transform ${durationFaster} ${curveEasyEaseMax};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.badging,.toolbar{display:flex;align-items:center;min-width:0;font-size:${fontSizeBase300}}.positioning-region:hover{background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}.positioning-region:hover .content,.positioning-region:hover .chevron{color:${colorNeutralForeground3Hover}}.positioning-region:active{background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}.positioning-region:active .content,.positioning-region:active .chevron{color:${colorNeutralForeground3Pressed}}::slotted([slot='start']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0;margin-inline-end:${spacingHorizontalXS}}::slotted(:not([slot])){padding-inline:${spacingHorizontalXXS}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([selected]) .content,:host([selected]) .chevron{color:${colorNeutralForeground3Selected}}:host([size='small']) .positioning-region{height:${spacingVerticalXXL};padding-inline-start:calc(var(--indent) * ${spacingHorizontalM})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${colorSubtleBackgroundLightAlphaHover}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${colorSubtleBackgroundLightAlphaPressed}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${colorSubtleBackgroundLightAlphaSelected};color:${colorNeutralForeground2Selected}}:host([appearance='transparent']) .positioning-region{background-color:${colorTransparentBackground}}:host([appearance='transparent']) .positioning-region:hover{background-color:${colorTransparentBackgroundHover}}:host([appearance='transparent']) .positioning-region:active{background-color:${colorTransparentBackgroundPressed}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${colorTransparentBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([expanded]) .chevron{transform:rotate(90deg)}`;
|
|
14189
|
-
|
|
14190
|
-
const definition$1 = TreeItem.compose({
|
|
14191
|
-
name: `${FluentDesignSystem.prefix}-tree-item`,
|
|
14192
|
-
template: template$1,
|
|
14193
|
-
styles: styles$1
|
|
14194
|
-
});
|
|
14195
|
-
|
|
14196
|
-
var __defProp = Object.defineProperty;
|
|
14197
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14198
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
14199
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14214
|
+
var __defProp$2 = Object.defineProperty;
|
|
14215
|
+
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
14216
|
+
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
14217
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
14200
14218
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14201
|
-
if (kind && result) __defProp(target, key, result);
|
|
14219
|
+
if (kind && result) __defProp$2(target, key, result);
|
|
14202
14220
|
return result;
|
|
14203
14221
|
};
|
|
14204
|
-
class Tree extends
|
|
14222
|
+
class Tree extends BaseTree {
|
|
14205
14223
|
constructor() {
|
|
14206
|
-
super();
|
|
14207
|
-
this.currentSelected = null;
|
|
14208
|
-
/**
|
|
14209
|
-
* The tree item that is designated to be in the tab queue.
|
|
14210
|
-
*
|
|
14211
|
-
* @internal
|
|
14212
|
-
*/
|
|
14213
|
-
this.currentFocused = null;
|
|
14214
|
-
/**
|
|
14215
|
-
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
14216
|
-
*
|
|
14217
|
-
* @internal
|
|
14218
|
-
*/
|
|
14219
|
-
this.elementInternals = this.attachInternals();
|
|
14224
|
+
super(...arguments);
|
|
14220
14225
|
this.size = TreeItemSize.small;
|
|
14221
14226
|
this.appearance = TreeItemAppearance.subtle;
|
|
14222
|
-
this.childTreeItems = [];
|
|
14223
|
-
this.elementInternals.role = "tree";
|
|
14224
14227
|
}
|
|
14225
14228
|
sizeChanged() {
|
|
14226
14229
|
this.updateSizeAndAppearance();
|
|
@@ -14228,9 +14231,13 @@ class Tree extends FASTElement {
|
|
|
14228
14231
|
appearanceChanged() {
|
|
14229
14232
|
this.updateSizeAndAppearance();
|
|
14230
14233
|
}
|
|
14234
|
+
/**
|
|
14235
|
+
* child tree items supered change event
|
|
14236
|
+
* @internal
|
|
14237
|
+
*/
|
|
14231
14238
|
childTreeItemsChanged() {
|
|
14239
|
+
super.childTreeItemsChanged();
|
|
14232
14240
|
this.updateSizeAndAppearance();
|
|
14233
|
-
this.updateCurrentSelected();
|
|
14234
14241
|
}
|
|
14235
14242
|
/**
|
|
14236
14243
|
* 1. Update the child items' size based on the tree's size
|
|
@@ -14241,218 +14248,252 @@ class Tree extends FASTElement {
|
|
|
14241
14248
|
return;
|
|
14242
14249
|
}
|
|
14243
14250
|
this.childTreeItems.forEach(item => {
|
|
14244
|
-
if (!isTreeItem(item)) {
|
|
14245
|
-
return;
|
|
14246
|
-
}
|
|
14247
14251
|
item.size = this.size;
|
|
14248
14252
|
item.appearance = this.appearance;
|
|
14249
14253
|
});
|
|
14250
14254
|
}
|
|
14255
|
+
}
|
|
14256
|
+
__decorateClass$2([attr], Tree.prototype, "size", 2);
|
|
14257
|
+
__decorateClass$2([attr], Tree.prototype, "appearance", 2);
|
|
14258
|
+
|
|
14259
|
+
const styles$1 = css`
|
|
14260
|
+
${display("block")}
|
|
14261
|
+
:host{outline:none}`;
|
|
14262
|
+
|
|
14263
|
+
const template$1 = html`<template tabindex="0" @click="${(x, c) => x.clickHandler(c.event)}" @focusin="${(x, c) => x.focusHandler(c.event)}" @focusout="${(x, c) => x.blurHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}" @change="${(x, c) => x.changeHandler(c.event)}" ${children({
|
|
14264
|
+
property: "childTreeItems",
|
|
14265
|
+
filter: node => isTreeItem(node)
|
|
14266
|
+
})}><slot></slot></template>`;
|
|
14267
|
+
|
|
14268
|
+
const definition$1 = Tree.compose({
|
|
14269
|
+
name: `${FluentDesignSystem.prefix}-tree`,
|
|
14270
|
+
template: template$1,
|
|
14271
|
+
styles: styles$1
|
|
14272
|
+
});
|
|
14273
|
+
|
|
14274
|
+
definition$1.define(FluentDesignSystem.registry);
|
|
14275
|
+
|
|
14276
|
+
var __defProp$1 = Object.defineProperty;
|
|
14277
|
+
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
14278
|
+
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
14279
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
14280
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14281
|
+
if (kind && result) __defProp$1(target, key, result);
|
|
14282
|
+
return result;
|
|
14283
|
+
};
|
|
14284
|
+
class BaseTreeItem extends FASTElement {
|
|
14285
|
+
constructor() {
|
|
14286
|
+
super();
|
|
14287
|
+
/**
|
|
14288
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
14289
|
+
*
|
|
14290
|
+
* @internal
|
|
14291
|
+
*/
|
|
14292
|
+
this.elementInternals = this.attachInternals();
|
|
14293
|
+
this.expanded = false;
|
|
14294
|
+
this.selected = false;
|
|
14295
|
+
this.empty = false;
|
|
14296
|
+
this.childTreeItems = [];
|
|
14297
|
+
this.elementInternals.role = "treeitem";
|
|
14298
|
+
}
|
|
14251
14299
|
/**
|
|
14252
|
-
*
|
|
14300
|
+
* Handles changes to the expanded attribute
|
|
14301
|
+
* @param prev - the previous state
|
|
14302
|
+
* @param next - the next state
|
|
14303
|
+
*
|
|
14304
|
+
* @public
|
|
14253
14305
|
*/
|
|
14254
|
-
|
|
14255
|
-
|
|
14256
|
-
this.
|
|
14257
|
-
|
|
14258
|
-
this.currentFocused = this.getValidFocusableItem();
|
|
14306
|
+
expandedChanged(prev, next) {
|
|
14307
|
+
toggleState(this.elementInternals, "expanded", next);
|
|
14308
|
+
if (this.childTreeItems && this.childTreeItems.length > 0) {
|
|
14309
|
+
this.elementInternals.ariaExpanded = next ? "true" : "false";
|
|
14259
14310
|
}
|
|
14260
14311
|
}
|
|
14261
14312
|
/**
|
|
14262
|
-
*
|
|
14313
|
+
* Handles changes to the selected attribute
|
|
14314
|
+
* @param prev - the previous state
|
|
14315
|
+
* @param next - the next state
|
|
14263
14316
|
*
|
|
14264
|
-
*
|
|
14317
|
+
* @internal
|
|
14265
14318
|
*/
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14269
|
-
|
|
14270
|
-
|
|
14271
|
-
|
|
14272
|
-
|
|
14319
|
+
selectedChanged(prev, next) {
|
|
14320
|
+
this.$emit("change");
|
|
14321
|
+
toggleState(this.elementInternals, "selected", next);
|
|
14322
|
+
this.elementInternals.ariaSelected = next ? "true" : "false";
|
|
14323
|
+
}
|
|
14324
|
+
dataIndentChanged(prev, next) {
|
|
14325
|
+
if (this.styles !== void 0) {
|
|
14326
|
+
this.$fastController.removeStyles(this.styles);
|
|
14273
14327
|
}
|
|
14274
|
-
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14279
|
-
|
|
14280
|
-
|
|
14281
|
-
|
|
14282
|
-
|
|
14283
|
-
|
|
14284
|
-
|
|
14285
|
-
|
|
14286
|
-
|
|
14287
|
-
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
|
|
14291
|
-
|
|
14292
|
-
|
|
14293
|
-
|
|
14294
|
-
|
|
14295
|
-
item.parentElement.focus();
|
|
14296
|
-
}
|
|
14297
|
-
return;
|
|
14298
|
-
}
|
|
14299
|
-
case keyArrowRight:
|
|
14300
|
-
{
|
|
14301
|
-
if (item?.childTreeItems?.length) {
|
|
14302
|
-
if (!item.expanded) {
|
|
14303
|
-
item.expanded = true;
|
|
14304
|
-
} else {
|
|
14305
|
-
this.focusNextNode(1, item);
|
|
14306
|
-
}
|
|
14307
|
-
}
|
|
14308
|
-
return;
|
|
14309
|
-
}
|
|
14310
|
-
case keyArrowDown:
|
|
14311
|
-
{
|
|
14312
|
-
this.focusNextNode(1, item);
|
|
14313
|
-
return;
|
|
14314
|
-
}
|
|
14315
|
-
case keyArrowUp:
|
|
14316
|
-
{
|
|
14317
|
-
this.focusNextNode(-1, item);
|
|
14318
|
-
return;
|
|
14319
|
-
}
|
|
14320
|
-
case keyEnter:
|
|
14321
|
-
{
|
|
14322
|
-
this.clickHandler(e);
|
|
14323
|
-
return;
|
|
14324
|
-
}
|
|
14325
|
-
case keySpace:
|
|
14326
|
-
{
|
|
14327
|
-
item.toggleSelection();
|
|
14328
|
-
return;
|
|
14329
|
-
}
|
|
14328
|
+
this.styles = css`
|
|
14329
|
+
:host{--indent:${next}}`;
|
|
14330
|
+
this.$fastController.addStyles(this.styles);
|
|
14331
|
+
}
|
|
14332
|
+
/**
|
|
14333
|
+
* Handles changes to the child tree items
|
|
14334
|
+
*
|
|
14335
|
+
* @public
|
|
14336
|
+
*/
|
|
14337
|
+
childTreeItemsChanged() {
|
|
14338
|
+
this.empty = this.childTreeItems?.length === 0;
|
|
14339
|
+
this.updateChildTreeItems();
|
|
14340
|
+
}
|
|
14341
|
+
/**
|
|
14342
|
+
* Updates the childrens indent
|
|
14343
|
+
*
|
|
14344
|
+
* @public
|
|
14345
|
+
*/
|
|
14346
|
+
updateChildTreeItems() {
|
|
14347
|
+
if (!this.childTreeItems?.length) {
|
|
14348
|
+
return;
|
|
14330
14349
|
}
|
|
14331
|
-
|
|
14350
|
+
this.childTreeItems.forEach(item => {
|
|
14351
|
+
this.setIndent(item);
|
|
14352
|
+
});
|
|
14353
|
+
}
|
|
14354
|
+
/**
|
|
14355
|
+
* Sets the indent for each item
|
|
14356
|
+
*/
|
|
14357
|
+
setIndent(item) {
|
|
14358
|
+
const indent = this.dataIndent ?? 0;
|
|
14359
|
+
item.dataIndent = indent + 1;
|
|
14332
14360
|
}
|
|
14333
14361
|
/**
|
|
14334
14362
|
* Handle focus events
|
|
14335
14363
|
*
|
|
14336
|
-
* @
|
|
14364
|
+
* @public
|
|
14337
14365
|
*/
|
|
14338
14366
|
focusHandler(e) {
|
|
14339
|
-
if (
|
|
14340
|
-
|
|
14341
|
-
|
|
14342
|
-
|
|
14343
|
-
|
|
14344
|
-
this.currentFocused = this.getValidFocusableItem();
|
|
14345
|
-
}
|
|
14346
|
-
if (this.currentFocused !== null) {
|
|
14347
|
-
this.currentFocused.focus();
|
|
14348
|
-
}
|
|
14349
|
-
return;
|
|
14350
|
-
}
|
|
14351
|
-
if (this.contains(e.target)) {
|
|
14352
|
-
this.setAttribute("tabindex", "-1");
|
|
14353
|
-
this.currentFocused = e.target;
|
|
14367
|
+
if (e.target === this ||
|
|
14368
|
+
// In case where the tree-item contains a focusable element, we should not set the tabindex to 0 when the focus is on its child focusable element,
|
|
14369
|
+
// so users can shift+tab to navigate to the tree-item from its child focusable element.
|
|
14370
|
+
this.contains(e.target)) {
|
|
14371
|
+
this.setAttribute("tabindex", "0");
|
|
14354
14372
|
}
|
|
14355
14373
|
}
|
|
14356
14374
|
/**
|
|
14357
14375
|
* Handle blur events
|
|
14358
14376
|
*
|
|
14359
|
-
* @
|
|
14377
|
+
* @public
|
|
14360
14378
|
*/
|
|
14361
14379
|
blurHandler(e) {
|
|
14362
|
-
if (e.target
|
|
14363
|
-
this.setAttribute("tabindex", "
|
|
14380
|
+
if (e.target === this) {
|
|
14381
|
+
this.setAttribute("tabindex", "-1");
|
|
14364
14382
|
}
|
|
14365
14383
|
}
|
|
14366
14384
|
/**
|
|
14367
|
-
*
|
|
14385
|
+
* Toggle the expansion state of the tree item
|
|
14368
14386
|
*
|
|
14369
|
-
*
|
|
14387
|
+
* @public
|
|
14370
14388
|
*/
|
|
14371
|
-
|
|
14372
|
-
if (
|
|
14373
|
-
|
|
14374
|
-
}
|
|
14375
|
-
if (!isTreeItem(e.target)) {
|
|
14376
|
-
return true;
|
|
14389
|
+
toggleExpansion() {
|
|
14390
|
+
if (this.childTreeItems?.length) {
|
|
14391
|
+
this.expanded = !this.expanded;
|
|
14377
14392
|
}
|
|
14378
|
-
const item = e.target;
|
|
14379
|
-
item.toggleExpansion();
|
|
14380
|
-
item.toggleSelection();
|
|
14381
14393
|
}
|
|
14382
14394
|
/**
|
|
14383
|
-
*
|
|
14384
|
-
* from child tree items
|
|
14395
|
+
* Toggle the single selection state of the tree item
|
|
14385
14396
|
*
|
|
14397
|
+
* @public
|
|
14398
|
+
*/
|
|
14399
|
+
toggleSelection() {
|
|
14400
|
+
this.selected = !this.selected;
|
|
14401
|
+
}
|
|
14402
|
+
/**
|
|
14403
|
+
* Whether the tree is nested
|
|
14404
|
+
* @internal
|
|
14405
|
+
*/
|
|
14406
|
+
get isNestedItem() {
|
|
14407
|
+
return isTreeItem(this.parentElement);
|
|
14408
|
+
}
|
|
14409
|
+
}
|
|
14410
|
+
__decorateClass$1([attr({
|
|
14411
|
+
mode: "boolean"
|
|
14412
|
+
})], BaseTreeItem.prototype, "expanded", 2);
|
|
14413
|
+
__decorateClass$1([attr({
|
|
14414
|
+
mode: "boolean"
|
|
14415
|
+
})], BaseTreeItem.prototype, "selected", 2);
|
|
14416
|
+
__decorateClass$1([attr({
|
|
14417
|
+
mode: "boolean"
|
|
14418
|
+
})], BaseTreeItem.prototype, "empty", 2);
|
|
14419
|
+
__decorateClass$1([attr({
|
|
14420
|
+
attribute: "data-indent"
|
|
14421
|
+
})], BaseTreeItem.prototype, "dataIndent", 2);
|
|
14422
|
+
__decorateClass$1([observable], BaseTreeItem.prototype, "childTreeItems", 2);
|
|
14423
|
+
|
|
14424
|
+
var __defProp = Object.defineProperty;
|
|
14425
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14426
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
14427
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14428
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14429
|
+
if (kind && result) __defProp(target, key, result);
|
|
14430
|
+
return result;
|
|
14431
|
+
};
|
|
14432
|
+
class TreeItem extends BaseTreeItem {
|
|
14433
|
+
constructor() {
|
|
14434
|
+
super(...arguments);
|
|
14435
|
+
this.size = TreeItemSize.small;
|
|
14436
|
+
this.appearance = TreeItemAppearance.subtle;
|
|
14437
|
+
}
|
|
14438
|
+
/**
|
|
14439
|
+
* Handles changes to the size attribute
|
|
14440
|
+
* we update the child tree items' size based on the size
|
|
14386
14441
|
* @internal
|
|
14387
14442
|
*/
|
|
14388
|
-
|
|
14389
|
-
|
|
14390
|
-
return;
|
|
14391
|
-
}
|
|
14392
|
-
if (!isTreeItem(e.target)) {
|
|
14393
|
-
return true;
|
|
14394
|
-
}
|
|
14395
|
-
const item = e.target;
|
|
14396
|
-
if (item.selected) {
|
|
14397
|
-
if (this.currentSelected && this.currentSelected !== item && this.currentSelected instanceof TreeItem) {
|
|
14398
|
-
this.currentSelected.selected = false;
|
|
14399
|
-
}
|
|
14400
|
-
this.currentSelected = item;
|
|
14401
|
-
} else if (!item.selected && this.currentSelected === item) {
|
|
14402
|
-
this.currentSelected = null;
|
|
14403
|
-
}
|
|
14443
|
+
sizeChanged() {
|
|
14444
|
+
this.updateSizeAndAppearance();
|
|
14404
14445
|
}
|
|
14405
14446
|
/**
|
|
14406
|
-
*
|
|
14447
|
+
* Handles changes to the appearance attribute
|
|
14448
|
+
*
|
|
14449
|
+
* @internal
|
|
14407
14450
|
*/
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
let focusIndex = elements.findIndex(el => el.selected);
|
|
14411
|
-
if (focusIndex === -1) {
|
|
14412
|
-
focusIndex = elements.findIndex(el => el instanceof TreeItem);
|
|
14413
|
-
}
|
|
14414
|
-
if (focusIndex !== -1) {
|
|
14415
|
-
return elements[focusIndex];
|
|
14416
|
-
}
|
|
14417
|
-
return null;
|
|
14451
|
+
appearanceChanged() {
|
|
14452
|
+
this.updateSizeAndAppearance();
|
|
14418
14453
|
}
|
|
14419
|
-
|
|
14420
|
-
|
|
14454
|
+
/**
|
|
14455
|
+
* child tree items supered change event
|
|
14456
|
+
* @internal
|
|
14457
|
+
*/
|
|
14458
|
+
childTreeItemsChanged() {
|
|
14459
|
+
super.childTreeItemsChanged();
|
|
14460
|
+
this.updateSizeAndAppearance();
|
|
14421
14461
|
}
|
|
14422
14462
|
/**
|
|
14423
|
-
*
|
|
14463
|
+
* 1. Update the child items' size based on the tree's size
|
|
14464
|
+
* 2. Update the child items' appearance based on the tree's appearance
|
|
14465
|
+
*
|
|
14466
|
+
* @public
|
|
14424
14467
|
*/
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
if (!visibleNodes.length) {
|
|
14468
|
+
updateSizeAndAppearance() {
|
|
14469
|
+
if (!this.childTreeItems?.length) {
|
|
14428
14470
|
return;
|
|
14429
14471
|
}
|
|
14430
|
-
|
|
14431
|
-
|
|
14432
|
-
|
|
14433
|
-
}
|
|
14472
|
+
this.childTreeItems.forEach(item => {
|
|
14473
|
+
item.size = this.size;
|
|
14474
|
+
item.appearance = this.appearance;
|
|
14475
|
+
});
|
|
14434
14476
|
}
|
|
14435
14477
|
}
|
|
14436
|
-
__decorateClass([
|
|
14437
|
-
__decorateClass([attr],
|
|
14438
|
-
__decorateClass([attr], Tree.prototype, "appearance", 2);
|
|
14439
|
-
__decorateClass([observable], Tree.prototype, "childTreeItems", 2);
|
|
14478
|
+
__decorateClass([attr], TreeItem.prototype, "size", 2);
|
|
14479
|
+
__decorateClass([attr], TreeItem.prototype, "appearance", 2);
|
|
14440
14480
|
|
|
14441
14481
|
const styles = css`
|
|
14442
14482
|
${display("block")}
|
|
14443
|
-
:host{outline:none}`;
|
|
14444
14483
|
|
|
14445
|
-
|
|
14484
|
+
:host{outline:none;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host(:focus-visible) .positioning-region{box-shadow:${spacingVerticalNone} ${spacingVerticalNone} ${spacingVerticalNone} ${spacingVerticalXXS}
|
|
14485
|
+
${colorStrokeFocus2} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${spacingVerticalXXXL};padding-inline-start:calc(var(--indent) * ${spacingHorizontalXXL});padding-inline-end:${spacingVerticalS};border-radius:${borderRadiusMedium};background-color:${colorSubtleBackground};color:${colorNeutralForeground2};gap:${spacingHorizontalXS}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${colorStrokeFocus2}}}.content{display:flex;align-items:center;gap:${spacingHorizontalXS}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${spacingHorizontalXXL};height:${spacingVerticalXXL};transition:transform ${durationFaster} ${curveEasyEaseMax};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}.positioning-region:active{background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${spacingHorizontalXXS}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([selected]) .content,:host([selected]) .chevron{color:${colorNeutralForeground3Selected}}:host([size='small']) .positioning-region{height:${spacingVerticalXXL};padding-inline-start:calc(var(--indent) * ${spacingHorizontalM})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${colorSubtleBackgroundLightAlphaHover}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${colorSubtleBackgroundLightAlphaPressed}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${colorSubtleBackgroundLightAlphaSelected};color:${colorNeutralForeground2Selected}}:host([appearance='transparent']) .positioning-region{background-color:${colorTransparentBackground}}:host([appearance='transparent']) .positioning-region:hover{background-color:${colorTransparentBackgroundHover}}:host([appearance='transparent']) .positioning-region:active{background-color:${colorTransparentBackgroundPressed}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${colorTransparentBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([expanded]) .chevron{transform:rotate(90deg)}`;
|
|
14486
|
+
|
|
14487
|
+
const chevronIcon = html`<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`;
|
|
14488
|
+
const template = html`<template tabindex="-1" slot="${x => x.isNestedItem ? "item" : void 0}" @focusin="${(x, c) => x.focusHandler(c.event)}" @focusout="${(x, c) => x.blurHandler(c.event)}" ${children({
|
|
14446
14489
|
property: "childTreeItems",
|
|
14447
|
-
filter:
|
|
14448
|
-
})}><slot></slot></template>`;
|
|
14490
|
+
filter: node => isTreeItem(node)
|
|
14491
|
+
})}><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron"><slot name="chevron">${chevronIcon}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item"></slot></div></template>`;
|
|
14449
14492
|
|
|
14450
|
-
const definition =
|
|
14451
|
-
name: `${FluentDesignSystem.prefix}-tree`,
|
|
14493
|
+
const definition = TreeItem.compose({
|
|
14494
|
+
name: `${FluentDesignSystem.prefix}-tree-item`,
|
|
14452
14495
|
template: template,
|
|
14453
14496
|
styles: styles
|
|
14454
14497
|
});
|
|
14455
14498
|
|
|
14456
14499
|
definition.define(FluentDesignSystem.registry);
|
|
14457
|
-
|
|
14458
|
-
definition$1.define(FluentDesignSystem.registry);
|