@fluentui/web-components 3.0.0-beta.83 → 3.0.0-beta.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -2
- package/dist/dts/accordion-item/accordion-item.base.d.ts +71 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +1 -71
- package/dist/dts/accordion-item/index.d.ts +2 -1
- package/dist/dts/anchor-button/anchor-button.base.d.ts +144 -0
- package/dist/dts/anchor-button/anchor-button.d.ts +2 -144
- package/dist/dts/anchor-button/index.d.ts +3 -1
- package/dist/dts/avatar/avatar.base.d.ts +42 -0
- package/dist/dts/avatar/avatar.d.ts +2 -42
- package/dist/dts/avatar/index.d.ts +2 -1
- package/dist/dts/button/button.base.d.ts +242 -0
- package/dist/dts/button/button.d.ts +2 -242
- package/dist/dts/button/index.d.ts +2 -1
- package/dist/dts/checkbox/checkbox.base.d.ts +288 -0
- package/dist/dts/checkbox/checkbox.d.ts +1 -288
- package/dist/dts/checkbox/index.d.ts +2 -1
- package/dist/dts/divider/divider.base.d.ts +49 -0
- package/dist/dts/divider/divider.d.ts +2 -49
- package/dist/dts/divider/index.d.ts +2 -1
- package/dist/dts/dropdown/dropdown.base.d.ts +418 -0
- package/dist/dts/dropdown/dropdown.d.ts +2 -418
- package/dist/dts/dropdown/dropdown.options.d.ts +1 -1
- package/dist/dts/dropdown/dropdown.template.d.ts +1 -1
- package/dist/dts/dropdown/index.d.ts +2 -1
- package/dist/dts/field/field.base.d.ts +120 -0
- package/dist/dts/field/field.d.ts +2 -120
- package/dist/dts/field/index.d.ts +2 -1
- package/dist/dts/index-rollup.d.ts +2 -0
- package/dist/dts/index.d.ts +7 -8
- package/dist/dts/link/link.d.ts +1 -1
- package/dist/dts/listbox/listbox.d.ts +1 -1
- package/dist/dts/progress-bar/index.d.ts +2 -1
- package/dist/dts/progress-bar/progress-bar.base.d.ts +73 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +2 -73
- package/dist/dts/radio/radio.d.ts +1 -1
- package/dist/dts/rating-display/index.d.ts +2 -1
- package/dist/dts/rating-display/rating-display.base.d.ts +89 -0
- package/dist/dts/rating-display/rating-display.d.ts +1 -89
- package/dist/dts/spinner/index.d.ts +2 -1
- package/dist/dts/spinner/spinner.base.d.ts +14 -0
- package/dist/dts/spinner/spinner.d.ts +1 -14
- package/dist/dts/switch/switch.d.ts +1 -1
- package/dist/dts/tablist/index.d.ts +2 -1
- package/dist/dts/tablist/tablist.base.d.ts +95 -0
- package/dist/dts/tablist/tablist.d.ts +2 -95
- package/dist/dts/tabs/tabs.base.d.ts +90 -0
- package/dist/dts/tabs/tabs.d.ts +2 -90
- package/dist/dts/text-input/index.d.ts +2 -1
- package/dist/dts/text-input/text-input.base.d.ts +393 -0
- package/dist/dts/text-input/text-input.d.ts +2 -393
- package/dist/dts/textarea/index.d.ts +2 -1
- package/dist/dts/textarea/textarea.base.d.ts +347 -0
- package/dist/dts/textarea/textarea.d.ts +2 -347
- package/dist/dts/tree/define.d.ts +1 -0
- package/dist/dts/tree/index.d.ts +4 -0
- package/dist/dts/tree/tree.bench.d.ts +3 -0
- package/dist/dts/tree/tree.d.ts +88 -0
- package/dist/dts/tree/tree.definition.d.ts +8 -0
- package/dist/dts/tree/tree.styles.d.ts +1 -0
- package/dist/dts/tree/tree.template.d.ts +2 -0
- package/dist/dts/tree-item/define.d.ts +1 -0
- package/dist/dts/tree-item/index.d.ts +5 -0
- package/dist/dts/tree-item/tree-item.bench.d.ts +3 -0
- package/dist/dts/tree-item/tree-item.d.ts +121 -0
- package/dist/dts/tree-item/tree-item.definition.d.ts +8 -0
- package/dist/dts/tree-item/tree-item.options.d.ts +22 -0
- package/dist/dts/tree-item/tree-item.styles.d.ts +1 -0
- package/dist/dts/tree-item/tree-item.template.d.ts +2 -0
- package/dist/esm/accordion/accordion.js +1 -1
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.base.js +94 -0
- package/dist/esm/accordion-item/accordion-item.base.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.js +2 -91
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/index.js +2 -1
- package/dist/esm/accordion-item/index.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.base.js +147 -0
- package/dist/esm/anchor-button/anchor-button.base.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.js +3 -145
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/index.js +3 -1
- package/dist/esm/anchor-button/index.js.map +1 -1
- package/dist/esm/avatar/avatar.base.js +28 -0
- package/dist/esm/avatar/avatar.base.js.map +1 -0
- package/dist/esm/avatar/avatar.js +2 -26
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/index.js +2 -1
- package/dist/esm/avatar/index.js.map +1 -1
- package/dist/esm/button/button.base.js +283 -0
- package/dist/esm/button/button.base.js.map +1 -0
- package/dist/esm/button/button.js +3 -281
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/button/button.styles.js +2 -1
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/button/index.js +2 -1
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/checkbox/checkbox.base.js +366 -0
- package/dist/esm/checkbox/checkbox.base.js.map +1 -0
- package/dist/esm/checkbox/checkbox.js +2 -363
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/checkbox/index.js +2 -1
- package/dist/esm/checkbox/index.js.map +1 -1
- package/dist/esm/divider/divider.base.js +61 -0
- package/dist/esm/divider/divider.base.js.map +1 -0
- package/dist/esm/divider/divider.js +3 -58
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/index.js +2 -1
- package/dist/esm/divider/index.js.map +1 -1
- package/dist/esm/dropdown/dropdown.base.js +677 -0
- package/dist/esm/dropdown/dropdown.base.js.map +1 -0
- package/dist/esm/dropdown/dropdown.js +3 -674
- package/dist/esm/dropdown/dropdown.js.map +1 -1
- package/dist/esm/dropdown/index.js +2 -1
- package/dist/esm/dropdown/index.js.map +1 -1
- package/dist/esm/field/field.base.js +189 -0
- package/dist/esm/field/field.base.js.map +1 -0
- package/dist/esm/field/field.js +3 -187
- package/dist/esm/field/field.js.map +1 -1
- package/dist/esm/field/index.js +2 -1
- package/dist/esm/field/index.js.map +1 -1
- package/dist/esm/index-rollup.js +2 -0
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +6 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/link/link.js +1 -1
- package/dist/esm/link/link.js.map +1 -1
- package/dist/esm/progress-bar/index.js +2 -1
- package/dist/esm/progress-bar/index.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.base.js +90 -0
- package/dist/esm/progress-bar/progress-bar.base.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.js +3 -87
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/radio/radio.js +1 -1
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/rating-display/index.js +2 -1
- package/dist/esm/rating-display/index.js.map +1 -1
- package/dist/esm/rating-display/rating-display.base.js +94 -0
- package/dist/esm/rating-display/rating-display.base.js.map +1 -0
- package/dist/esm/rating-display/rating-display.js +2 -92
- package/dist/esm/rating-display/rating-display.js.map +1 -1
- package/dist/esm/spinner/index.js +2 -1
- package/dist/esm/spinner/index.js.map +1 -1
- package/dist/esm/spinner/spinner.base.js +18 -0
- package/dist/esm/spinner/spinner.base.js.map +1 -0
- package/dist/esm/spinner/spinner.js +2 -17
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/switch/switch.js +1 -1
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/tablist/index.js +2 -1
- package/dist/esm/tablist/index.js.map +1 -1
- package/dist/esm/tablist/tablist.base.js +248 -0
- package/dist/esm/tablist/tablist.base.js.map +1 -0
- package/dist/esm/tablist/tablist.js +3 -245
- package/dist/esm/tablist/tablist.js.map +1 -1
- package/dist/esm/tabs/tabs.base.js +279 -0
- package/dist/esm/tabs/tabs.base.js.map +1 -0
- package/dist/esm/tabs/tabs.js +2 -276
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/text-input/index.js +2 -1
- package/dist/esm/text-input/index.js.map +1 -1
- package/dist/esm/text-input/text-input.base.js +409 -0
- package/dist/esm/text-input/text-input.base.js.map +1 -0
- package/dist/esm/text-input/text-input.js +3 -407
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/textarea/index.js +2 -1
- package/dist/esm/textarea/index.js.map +1 -1
- package/dist/esm/textarea/textarea.base.js +494 -0
- package/dist/esm/textarea/textarea.base.js.map +1 -0
- package/dist/esm/textarea/textarea.js +3 -491
- package/dist/esm/textarea/textarea.js.map +1 -1
- package/dist/esm/tree/define.js +4 -0
- package/dist/esm/tree/define.js.map +1 -0
- package/dist/esm/tree/index.js +5 -0
- package/dist/esm/tree/index.js.map +1 -0
- package/dist/esm/tree/tree.bench.js +10 -0
- package/dist/esm/tree/tree.bench.js.map +1 -0
- package/dist/esm/tree/tree.definition.js +16 -0
- package/dist/esm/tree/tree.definition.js.map +1 -0
- package/dist/esm/tree/tree.js +274 -0
- package/dist/esm/tree/tree.js.map +1 -0
- package/dist/esm/tree/tree.styles.js +9 -0
- package/dist/esm/tree/tree.styles.js.map +1 -0
- package/dist/esm/tree/tree.template.js +18 -0
- package/dist/esm/tree/tree.template.js.map +1 -0
- package/dist/esm/tree-item/define.js +4 -0
- package/dist/esm/tree-item/define.js.map +1 -0
- package/dist/esm/tree-item/index.js +5 -0
- package/dist/esm/tree-item/index.js.map +1 -0
- package/dist/esm/tree-item/tree-item.bench.js +10 -0
- package/dist/esm/tree-item/tree-item.bench.js.map +1 -0
- package/dist/esm/tree-item/tree-item.definition.js +16 -0
- package/dist/esm/tree-item/tree-item.definition.js.map +1 -0
- package/dist/esm/tree-item/tree-item.js +201 -0
- package/dist/esm/tree-item/tree-item.js.map +1 -0
- package/dist/esm/tree-item/tree-item.options.js +24 -0
- package/dist/esm/tree-item/tree-item.options.js.map +1 -0
- package/dist/esm/tree-item/tree-item.styles.js +170 -0
- package/dist/esm/tree-item/tree-item.styles.js.map +1 -0
- package/dist/esm/tree-item/tree-item.template.js +41 -0
- package/dist/esm/tree-item/tree-item.template.js.map +1 -0
- package/dist/web-components.d.ts +157 -0
- package/dist/web-components.js +1445 -842
- package/dist/web-components.min.js +310 -303
- package/package.json +5 -1
package/dist/web-components.js
CHANGED
|
@@ -4011,6 +4011,84 @@ const FASTElement = Object.assign(createFASTElement(HTMLElement), {
|
|
|
4011
4011
|
compose
|
|
4012
4012
|
});
|
|
4013
4013
|
|
|
4014
|
+
var __defProp$Q = Object.defineProperty;
|
|
4015
|
+
var __getOwnPropDesc$Q = Object.getOwnPropertyDescriptor;
|
|
4016
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
4017
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Q(target, key) : target;
|
|
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$Q(target, key, result);
|
|
4020
|
+
return result;
|
|
4021
|
+
};
|
|
4022
|
+
class ARIAGlobalStatesAndProperties {}
|
|
4023
|
+
__decorateClass$Q([attr({
|
|
4024
|
+
attribute: "aria-atomic"
|
|
4025
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", 2);
|
|
4026
|
+
__decorateClass$Q([attr({
|
|
4027
|
+
attribute: "aria-busy"
|
|
4028
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", 2);
|
|
4029
|
+
__decorateClass$Q([attr({
|
|
4030
|
+
attribute: "aria-controls"
|
|
4031
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaControls", 2);
|
|
4032
|
+
__decorateClass$Q([attr({
|
|
4033
|
+
attribute: "aria-current"
|
|
4034
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", 2);
|
|
4035
|
+
__decorateClass$Q([attr({
|
|
4036
|
+
attribute: "aria-describedby"
|
|
4037
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", 2);
|
|
4038
|
+
__decorateClass$Q([attr({
|
|
4039
|
+
attribute: "aria-details"
|
|
4040
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", 2);
|
|
4041
|
+
__decorateClass$Q([attr({
|
|
4042
|
+
attribute: "aria-disabled"
|
|
4043
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", 2);
|
|
4044
|
+
__decorateClass$Q([attr({
|
|
4045
|
+
attribute: "aria-errormessage"
|
|
4046
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", 2);
|
|
4047
|
+
__decorateClass$Q([attr({
|
|
4048
|
+
attribute: "aria-flowto"
|
|
4049
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", 2);
|
|
4050
|
+
__decorateClass$Q([attr({
|
|
4051
|
+
attribute: "aria-haspopup"
|
|
4052
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", 2);
|
|
4053
|
+
__decorateClass$Q([attr({
|
|
4054
|
+
attribute: "aria-hidden"
|
|
4055
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", 2);
|
|
4056
|
+
__decorateClass$Q([attr({
|
|
4057
|
+
attribute: "aria-invalid"
|
|
4058
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", 2);
|
|
4059
|
+
__decorateClass$Q([attr({
|
|
4060
|
+
attribute: "aria-keyshortcuts"
|
|
4061
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", 2);
|
|
4062
|
+
__decorateClass$Q([attr({
|
|
4063
|
+
attribute: "aria-label"
|
|
4064
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", 2);
|
|
4065
|
+
__decorateClass$Q([attr({
|
|
4066
|
+
attribute: "aria-labelledby"
|
|
4067
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", 2);
|
|
4068
|
+
__decorateClass$Q([attr({
|
|
4069
|
+
attribute: "aria-live"
|
|
4070
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaLive", 2);
|
|
4071
|
+
__decorateClass$Q([attr({
|
|
4072
|
+
attribute: "aria-owns"
|
|
4073
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", 2);
|
|
4074
|
+
__decorateClass$Q([attr({
|
|
4075
|
+
attribute: "aria-relevant"
|
|
4076
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", 2);
|
|
4077
|
+
__decorateClass$Q([attr({
|
|
4078
|
+
attribute: "aria-roledescription"
|
|
4079
|
+
})], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", 2);
|
|
4080
|
+
|
|
4081
|
+
const numberLikeStringConverter = {
|
|
4082
|
+
fromView(value) {
|
|
4083
|
+
const valueAsNumber = parseFloat(value);
|
|
4084
|
+
return Number.isNaN(valueAsNumber) ? "" : valueAsNumber.toString();
|
|
4085
|
+
},
|
|
4086
|
+
toView(value) {
|
|
4087
|
+
const valueAsNumber = parseFloat(value);
|
|
4088
|
+
return Number.isNaN(valueAsNumber) ? void 0 : valueAsNumber.toString();
|
|
4089
|
+
}
|
|
4090
|
+
};
|
|
4091
|
+
|
|
4014
4092
|
/**
|
|
4015
4093
|
* Standard orientation values
|
|
4016
4094
|
*/
|
|
@@ -4094,84 +4172,6 @@ function uniqueId$1(prefix = "") {
|
|
|
4094
4172
|
return `${prefix}${uniqueIdCounter$1++}`;
|
|
4095
4173
|
}
|
|
4096
4174
|
|
|
4097
|
-
var __defProp$A = Object.defineProperty;
|
|
4098
|
-
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
4099
|
-
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
4100
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
4101
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4102
|
-
if (kind && result) __defProp$A(target, key, result);
|
|
4103
|
-
return result;
|
|
4104
|
-
};
|
|
4105
|
-
class ARIAGlobalStatesAndProperties {}
|
|
4106
|
-
__decorateClass$A([attr({
|
|
4107
|
-
attribute: "aria-atomic"
|
|
4108
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", 2);
|
|
4109
|
-
__decorateClass$A([attr({
|
|
4110
|
-
attribute: "aria-busy"
|
|
4111
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", 2);
|
|
4112
|
-
__decorateClass$A([attr({
|
|
4113
|
-
attribute: "aria-controls"
|
|
4114
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaControls", 2);
|
|
4115
|
-
__decorateClass$A([attr({
|
|
4116
|
-
attribute: "aria-current"
|
|
4117
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", 2);
|
|
4118
|
-
__decorateClass$A([attr({
|
|
4119
|
-
attribute: "aria-describedby"
|
|
4120
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", 2);
|
|
4121
|
-
__decorateClass$A([attr({
|
|
4122
|
-
attribute: "aria-details"
|
|
4123
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", 2);
|
|
4124
|
-
__decorateClass$A([attr({
|
|
4125
|
-
attribute: "aria-disabled"
|
|
4126
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", 2);
|
|
4127
|
-
__decorateClass$A([attr({
|
|
4128
|
-
attribute: "aria-errormessage"
|
|
4129
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", 2);
|
|
4130
|
-
__decorateClass$A([attr({
|
|
4131
|
-
attribute: "aria-flowto"
|
|
4132
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", 2);
|
|
4133
|
-
__decorateClass$A([attr({
|
|
4134
|
-
attribute: "aria-haspopup"
|
|
4135
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", 2);
|
|
4136
|
-
__decorateClass$A([attr({
|
|
4137
|
-
attribute: "aria-hidden"
|
|
4138
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", 2);
|
|
4139
|
-
__decorateClass$A([attr({
|
|
4140
|
-
attribute: "aria-invalid"
|
|
4141
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", 2);
|
|
4142
|
-
__decorateClass$A([attr({
|
|
4143
|
-
attribute: "aria-keyshortcuts"
|
|
4144
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", 2);
|
|
4145
|
-
__decorateClass$A([attr({
|
|
4146
|
-
attribute: "aria-label"
|
|
4147
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", 2);
|
|
4148
|
-
__decorateClass$A([attr({
|
|
4149
|
-
attribute: "aria-labelledby"
|
|
4150
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", 2);
|
|
4151
|
-
__decorateClass$A([attr({
|
|
4152
|
-
attribute: "aria-live"
|
|
4153
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaLive", 2);
|
|
4154
|
-
__decorateClass$A([attr({
|
|
4155
|
-
attribute: "aria-owns"
|
|
4156
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", 2);
|
|
4157
|
-
__decorateClass$A([attr({
|
|
4158
|
-
attribute: "aria-relevant"
|
|
4159
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", 2);
|
|
4160
|
-
__decorateClass$A([attr({
|
|
4161
|
-
attribute: "aria-roledescription"
|
|
4162
|
-
})], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", 2);
|
|
4163
|
-
|
|
4164
|
-
const numberLikeStringConverter = {
|
|
4165
|
-
fromView(value) {
|
|
4166
|
-
const valueAsNumber = parseFloat(value);
|
|
4167
|
-
return Number.isNaN(valueAsNumber) ? "" : valueAsNumber.toString();
|
|
4168
|
-
},
|
|
4169
|
-
toView(value) {
|
|
4170
|
-
const valueAsNumber = parseFloat(value);
|
|
4171
|
-
return Number.isNaN(valueAsNumber) ? void 0 : valueAsNumber.toString();
|
|
4172
|
-
}
|
|
4173
|
-
};
|
|
4174
|
-
|
|
4175
4175
|
const getDirection = rootNode => {
|
|
4176
4176
|
return rootNode.closest("[dir]")?.dir === "rtl" ? Direction.rtl : Direction.ltr;
|
|
4177
4177
|
};
|
|
@@ -4378,23 +4378,12 @@ function swapStates(elementInternals, prev = "", next = "", States, prefix = "")
|
|
|
4378
4378
|
}
|
|
4379
4379
|
}
|
|
4380
4380
|
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
extraLarge: "extra-large"
|
|
4386
|
-
};
|
|
4387
|
-
const AccordionItemMarkerPosition = {
|
|
4388
|
-
start: "start",
|
|
4389
|
-
end: "end"
|
|
4390
|
-
};
|
|
4391
|
-
|
|
4392
|
-
var __defProp$z = Object.defineProperty;
|
|
4393
|
-
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
4394
|
-
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
4395
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
4381
|
+
var __defProp$P = Object.defineProperty;
|
|
4382
|
+
var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
|
|
4383
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
4384
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
|
|
4396
4385
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4397
|
-
if (kind && result) __defProp$
|
|
4386
|
+
if (kind && result) __defProp$P(target, key, result);
|
|
4398
4387
|
return result;
|
|
4399
4388
|
};
|
|
4400
4389
|
class BaseAccordionItem extends FASTElement {
|
|
@@ -4428,18 +4417,38 @@ class BaseAccordionItem extends FASTElement {
|
|
|
4428
4417
|
toggleState(this.elementInternals, "disabled", next);
|
|
4429
4418
|
}
|
|
4430
4419
|
}
|
|
4431
|
-
__decorateClass$
|
|
4420
|
+
__decorateClass$P([attr({
|
|
4432
4421
|
attribute: "heading-level",
|
|
4433
4422
|
mode: "fromView",
|
|
4434
4423
|
converter: nullableNumberConverter
|
|
4435
4424
|
})], BaseAccordionItem.prototype, "headinglevel", 2);
|
|
4436
|
-
__decorateClass$
|
|
4425
|
+
__decorateClass$P([attr({
|
|
4437
4426
|
mode: "boolean"
|
|
4438
4427
|
})], BaseAccordionItem.prototype, "expanded", 2);
|
|
4439
|
-
__decorateClass$
|
|
4428
|
+
__decorateClass$P([attr({
|
|
4440
4429
|
mode: "boolean"
|
|
4441
4430
|
})], BaseAccordionItem.prototype, "disabled", 2);
|
|
4442
|
-
__decorateClass$
|
|
4431
|
+
__decorateClass$P([attr], BaseAccordionItem.prototype, "id", 2);
|
|
4432
|
+
|
|
4433
|
+
const AccordionItemSize = {
|
|
4434
|
+
small: "small",
|
|
4435
|
+
medium: "medium",
|
|
4436
|
+
large: "large",
|
|
4437
|
+
extraLarge: "extra-large"
|
|
4438
|
+
};
|
|
4439
|
+
const AccordionItemMarkerPosition = {
|
|
4440
|
+
start: "start",
|
|
4441
|
+
end: "end"
|
|
4442
|
+
};
|
|
4443
|
+
|
|
4444
|
+
var __defProp$O = Object.defineProperty;
|
|
4445
|
+
var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
|
|
4446
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
4447
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
|
|
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$O(target, key, result);
|
|
4450
|
+
return result;
|
|
4451
|
+
};
|
|
4443
4452
|
class AccordionItem extends BaseAccordionItem {
|
|
4444
4453
|
constructor() {
|
|
4445
4454
|
super(...arguments);
|
|
@@ -4470,11 +4479,11 @@ class AccordionItem extends BaseAccordionItem {
|
|
|
4470
4479
|
toggleState(this.elementInternals, "block", next);
|
|
4471
4480
|
}
|
|
4472
4481
|
}
|
|
4473
|
-
__decorateClass$
|
|
4474
|
-
__decorateClass$
|
|
4482
|
+
__decorateClass$O([attr], AccordionItem.prototype, "size", 2);
|
|
4483
|
+
__decorateClass$O([attr({
|
|
4475
4484
|
attribute: "marker-position"
|
|
4476
4485
|
})], AccordionItem.prototype, "markerPosition", 2);
|
|
4477
|
-
__decorateClass$
|
|
4486
|
+
__decorateClass$O([attr({
|
|
4478
4487
|
mode: "boolean"
|
|
4479
4488
|
})], AccordionItem.prototype, "block", 2);
|
|
4480
4489
|
applyMixins(AccordionItem, StartEnd);
|
|
@@ -4620,6 +4629,7 @@ const colorNeutralForeground2BrandSelected = "var(--colorNeutralForeground2Brand
|
|
|
4620
4629
|
const colorNeutralForeground3 = "var(--colorNeutralForeground3)";
|
|
4621
4630
|
const colorNeutralForeground3Hover = "var(--colorNeutralForeground3Hover)";
|
|
4622
4631
|
const colorNeutralForeground3Pressed = "var(--colorNeutralForeground3Pressed)";
|
|
4632
|
+
const colorNeutralForeground3Selected = "var(--colorNeutralForeground3Selected)";
|
|
4623
4633
|
const colorNeutralForeground4 = "var(--colorNeutralForeground4)";
|
|
4624
4634
|
const colorNeutralForegroundDisabled = "var(--colorNeutralForegroundDisabled)";
|
|
4625
4635
|
const colorBrandForegroundLink = "var(--colorBrandForegroundLink)";
|
|
@@ -4651,6 +4661,9 @@ const colorSubtleBackground = "var(--colorSubtleBackground)";
|
|
|
4651
4661
|
const colorSubtleBackgroundHover = "var(--colorSubtleBackgroundHover)";
|
|
4652
4662
|
const colorSubtleBackgroundPressed = "var(--colorSubtleBackgroundPressed)";
|
|
4653
4663
|
const colorSubtleBackgroundSelected = "var(--colorSubtleBackgroundSelected)";
|
|
4664
|
+
const colorSubtleBackgroundLightAlphaHover = "var(--colorSubtleBackgroundLightAlphaHover)";
|
|
4665
|
+
const colorSubtleBackgroundLightAlphaPressed = "var(--colorSubtleBackgroundLightAlphaPressed)";
|
|
4666
|
+
const colorSubtleBackgroundLightAlphaSelected = "var(--colorSubtleBackgroundLightAlphaSelected)";
|
|
4654
4667
|
const colorTransparentBackground = "var(--colorTransparentBackground)";
|
|
4655
4668
|
const colorTransparentBackgroundHover = "var(--colorTransparentBackgroundHover)";
|
|
4656
4669
|
const colorTransparentBackgroundPressed = "var(--colorTransparentBackgroundPressed)";
|
|
@@ -4822,6 +4835,7 @@ const spacingHorizontalM = "var(--spacingHorizontalM)";
|
|
|
4822
4835
|
const spacingHorizontalL = "var(--spacingHorizontalL)";
|
|
4823
4836
|
const spacingHorizontalXL = "var(--spacingHorizontalXL)";
|
|
4824
4837
|
const spacingHorizontalXXL = "var(--spacingHorizontalXXL)";
|
|
4838
|
+
const spacingVerticalNone = "var(--spacingVerticalNone)";
|
|
4825
4839
|
const spacingVerticalXXS = "var(--spacingVerticalXXS)";
|
|
4826
4840
|
const spacingVerticalXS = "var(--spacingVerticalXS)";
|
|
4827
4841
|
const spacingVerticalSNudge = "var(--spacingVerticalSNudge)";
|
|
@@ -4830,6 +4844,7 @@ const spacingVerticalMNudge = "var(--spacingVerticalMNudge)";
|
|
|
4830
4844
|
const spacingVerticalM = "var(--spacingVerticalM)";
|
|
4831
4845
|
const spacingVerticalL = "var(--spacingVerticalL)";
|
|
4832
4846
|
const spacingVerticalXXL = "var(--spacingVerticalXXL)";
|
|
4847
|
+
const spacingVerticalXXXL = "var(--spacingVerticalXXXL)";
|
|
4833
4848
|
const durationUltraFast = "var(--durationUltraFast)";
|
|
4834
4849
|
const durationFaster = "var(--durationFaster)";
|
|
4835
4850
|
const durationNormal = "var(--durationNormal)";
|
|
@@ -4847,7 +4862,7 @@ const curveEasyEaseMax = "var(--curveEasyEaseMax)";
|
|
|
4847
4862
|
const curveEasyEase = "var(--curveEasyEase)";
|
|
4848
4863
|
const curveLinear = "var(--curveLinear)";
|
|
4849
4864
|
|
|
4850
|
-
const styles$
|
|
4865
|
+
const styles$G = css`
|
|
4851
4866
|
${display("block")}
|
|
4852
4867
|
|
|
4853
4868
|
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${colorTransparentBackground};border:none;box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${spacingHorizontalS};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${spacingHorizontalM}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host(${disabledState}) .button{color:${colorNeutralForegroundDisabled}}:host(${disabledState}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${expandedState}) .content{display:block}:host(${expandedState}) .default-marker-collapsed,:host(${expandedState}) ::slotted([slot='marker-collapsed']),:host(:not(${expandedState})) :is(.default-marker-expanded,.content),:host(:not(${expandedState})) ::slotted([slot='marker-expanded']){display:none}:host(${expandedState}) ::slotted([slot='marker-expanded']),:host(:not(${expandedState})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host(${smallState}) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${largeState}) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${extraLargeState}) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host(${alignEndState}) :slotted([slot='start']){grid-column:1 / span 1}:host(${alignEndState}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${spacingHorizontalS};padding-inline-end:0}:host(${alignEndState}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${alignEndState}) .heading{grid-template-columns:auto auto 28px;padding-inline:${spacingHorizontalM}}:host(${alignEndState}:has([slot='start'])) .heading{padding-inline:${spacingHorizontalMNudge} ${spacingHorizontalM}}:host(${blockState}${alignEndState}) .heading{grid-template-columns:auto 1fr}:host(${alignEndState}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`;
|
|
@@ -4883,30 +4898,30 @@ const chevronDown20Filled = html.partial(`<svg
|
|
|
4883
4898
|
function accordionItemTemplate(options = {}) {
|
|
4884
4899
|
return html`<div class="heading" part="heading" role="heading" aria-level="${x => x.headinglevel}"><button class="button" part="button" ${ref("expandbutton")} ?disabled="${x => x.disabled ? "true" : void 0}" aria-expanded="${x => x.expanded}" aria-controls="${x => x.id}-panel" id="${x => x.id}"><slot name="heading"></slot></button>${startSlotTemplate(options)}<slot name="marker-expanded">${staticallyCompose(options.expandedIcon)}</slot><slot name="marker-collapsed">${staticallyCompose(options.collapsedIcon)}</slot></div><div class="content" part="content" id="${x => x.id}-panel" role="region" aria-labelledby="${x => x.id}"><slot></slot></div>`;
|
|
4885
4900
|
}
|
|
4886
|
-
const template$
|
|
4901
|
+
const template$H = accordionItemTemplate({
|
|
4887
4902
|
collapsedIcon: chevronRight20Filled,
|
|
4888
4903
|
expandedIcon: chevronDown20Filled
|
|
4889
4904
|
});
|
|
4890
4905
|
|
|
4891
|
-
const definition$
|
|
4906
|
+
const definition$H = AccordionItem.compose({
|
|
4892
4907
|
name: `${FluentDesignSystem.prefix}-accordion-item`,
|
|
4893
|
-
template: template$
|
|
4894
|
-
styles: styles$
|
|
4908
|
+
template: template$H,
|
|
4909
|
+
styles: styles$G
|
|
4895
4910
|
});
|
|
4896
4911
|
|
|
4897
|
-
definition$
|
|
4912
|
+
definition$H.define(FluentDesignSystem.registry);
|
|
4898
4913
|
|
|
4899
4914
|
const AccordionExpandMode = {
|
|
4900
4915
|
single: "single",
|
|
4901
4916
|
multi: "multi"
|
|
4902
4917
|
};
|
|
4903
4918
|
|
|
4904
|
-
var __defProp$
|
|
4905
|
-
var __getOwnPropDesc$
|
|
4906
|
-
var __decorateClass$
|
|
4907
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4919
|
+
var __defProp$N = Object.defineProperty;
|
|
4920
|
+
var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
|
|
4921
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
4922
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
|
|
4908
4923
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4909
|
-
if (kind && result) __defProp$
|
|
4924
|
+
if (kind && result) __defProp$N(target, key, result);
|
|
4910
4925
|
return result;
|
|
4911
4926
|
};
|
|
4912
4927
|
class Accordion extends FASTElement {
|
|
@@ -5045,12 +5060,12 @@ class Accordion extends FASTElement {
|
|
|
5045
5060
|
});
|
|
5046
5061
|
}
|
|
5047
5062
|
}
|
|
5048
|
-
__decorateClass$
|
|
5063
|
+
__decorateClass$N([attr({
|
|
5049
5064
|
attribute: "expand-mode"
|
|
5050
5065
|
})], Accordion.prototype, "expandmode", 2);
|
|
5051
|
-
__decorateClass$
|
|
5066
|
+
__decorateClass$N([observable], Accordion.prototype, "slottedAccordionItems", 2);
|
|
5052
5067
|
|
|
5053
|
-
const styles$
|
|
5068
|
+
const styles$F = css`
|
|
5054
5069
|
${display("flex")}
|
|
5055
5070
|
|
|
5056
5071
|
:host{flex-direction:column;width:100%;contain:content}`;
|
|
@@ -5061,15 +5076,15 @@ function accordionTemplate() {
|
|
|
5061
5076
|
filter: elements()
|
|
5062
5077
|
})}></slot></template>`;
|
|
5063
5078
|
}
|
|
5064
|
-
const template$
|
|
5079
|
+
const template$G = accordionTemplate();
|
|
5065
5080
|
|
|
5066
|
-
const definition$
|
|
5081
|
+
const definition$G = Accordion.compose({
|
|
5067
5082
|
name: `${FluentDesignSystem.prefix}-accordion`,
|
|
5068
|
-
template: template$
|
|
5069
|
-
styles: styles$
|
|
5083
|
+
template: template$G,
|
|
5084
|
+
styles: styles$F
|
|
5070
5085
|
});
|
|
5071
5086
|
|
|
5072
|
-
definition$
|
|
5087
|
+
definition$G.define(FluentDesignSystem.registry);
|
|
5073
5088
|
|
|
5074
5089
|
const ButtonAppearance = {
|
|
5075
5090
|
primary: "primary",
|
|
@@ -5107,12 +5122,12 @@ const AnchorAttributes = {
|
|
|
5107
5122
|
type: "type"
|
|
5108
5123
|
};
|
|
5109
5124
|
|
|
5110
|
-
var __defProp$
|
|
5111
|
-
var __getOwnPropDesc$
|
|
5112
|
-
var __decorateClass$
|
|
5113
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5125
|
+
var __defProp$M = Object.defineProperty;
|
|
5126
|
+
var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
|
|
5127
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
5128
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
|
|
5114
5129
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5115
|
-
if (kind && result) __defProp$
|
|
5130
|
+
if (kind && result) __defProp$M(target, key, result);
|
|
5116
5131
|
return result;
|
|
5117
5132
|
};
|
|
5118
5133
|
class BaseAnchor extends FASTElement {
|
|
@@ -5220,14 +5235,23 @@ class BaseAnchor extends FASTElement {
|
|
|
5220
5235
|
return proxy;
|
|
5221
5236
|
}
|
|
5222
5237
|
}
|
|
5223
|
-
__decorateClass$
|
|
5224
|
-
__decorateClass$
|
|
5225
|
-
__decorateClass$
|
|
5226
|
-
__decorateClass$
|
|
5227
|
-
__decorateClass$
|
|
5228
|
-
__decorateClass$
|
|
5229
|
-
__decorateClass$
|
|
5230
|
-
__decorateClass$
|
|
5238
|
+
__decorateClass$M([attr], BaseAnchor.prototype, "download", 2);
|
|
5239
|
+
__decorateClass$M([attr], BaseAnchor.prototype, "href", 2);
|
|
5240
|
+
__decorateClass$M([attr], BaseAnchor.prototype, "hreflang", 2);
|
|
5241
|
+
__decorateClass$M([attr], BaseAnchor.prototype, "ping", 2);
|
|
5242
|
+
__decorateClass$M([attr], BaseAnchor.prototype, "referrerpolicy", 2);
|
|
5243
|
+
__decorateClass$M([attr], BaseAnchor.prototype, "rel", 2);
|
|
5244
|
+
__decorateClass$M([attr], BaseAnchor.prototype, "target", 2);
|
|
5245
|
+
__decorateClass$M([attr], BaseAnchor.prototype, "type", 2);
|
|
5246
|
+
|
|
5247
|
+
var __defProp$L = Object.defineProperty;
|
|
5248
|
+
var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
|
|
5249
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
5250
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
|
|
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$L(target, key, result);
|
|
5253
|
+
return result;
|
|
5254
|
+
};
|
|
5231
5255
|
class AnchorButton extends BaseAnchor {
|
|
5232
5256
|
constructor() {
|
|
5233
5257
|
super(...arguments);
|
|
@@ -5266,10 +5290,10 @@ class AnchorButton extends BaseAnchor {
|
|
|
5266
5290
|
toggleState(this.elementInternals, "icon", !!next);
|
|
5267
5291
|
}
|
|
5268
5292
|
}
|
|
5269
|
-
__decorateClass$
|
|
5270
|
-
__decorateClass$
|
|
5271
|
-
__decorateClass$
|
|
5272
|
-
__decorateClass$
|
|
5293
|
+
__decorateClass$L([attr], AnchorButton.prototype, "appearance", 2);
|
|
5294
|
+
__decorateClass$L([attr], AnchorButton.prototype, "shape", 2);
|
|
5295
|
+
__decorateClass$L([attr], AnchorButton.prototype, "size", 2);
|
|
5296
|
+
__decorateClass$L([attr({
|
|
5273
5297
|
attribute: "icon-only",
|
|
5274
5298
|
mode: "boolean"
|
|
5275
5299
|
})], AnchorButton.prototype, "iconOnly", 2);
|
|
@@ -5278,14 +5302,14 @@ applyMixins(AnchorButton, StartEnd);
|
|
|
5278
5302
|
const baseButtonStyles = css`
|
|
5279
5303
|
${display("inline-flex")}
|
|
5280
5304
|
|
|
5281
|
-
:host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']){flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host(${iconOnlyState}){min-width:32px;max-width:32px}:host(${smallState}){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host(${smallState}${iconOnlyState}){min-width:24px;max-width:24px}:host(${largeState}){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}${iconOnlyState}){min-width:40px;max-width:40px}:host(${largeState}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${circularState},${circularState}:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is(${squareState},${squareState}:focus-visible)){border-radius:${borderRadiusNone}}:host(${primaryState}){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host(${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${primaryState}:is(:hover,:hover:active)){border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host(${primaryState}:hover:active){background-color:${colorBrandBackgroundPressed}}:host(${primaryState}:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host(${outlineState}){background-color:${colorTransparentBackground}}:host(${outlineState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${outlineState}:hover:active){background-color:${colorTransparentBackgroundPressed}}:host(${subtleState}){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host(${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host(${subtleState}:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host(${subtleState}:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host(${subtleState}:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host(${transparentState}){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host(${transparentState}:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is(${transparentState},${transparentState}:is(:hover,:active))){border-color:transparent}`;
|
|
5282
|
-
const styles$
|
|
5305
|
+
:host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host(${iconOnlyState}){min-width:32px;max-width:32px}:host(${smallState}){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host(${smallState}${iconOnlyState}){min-width:24px;max-width:24px}:host(${largeState}){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}${iconOnlyState}){min-width:40px;max-width:40px}:host(${largeState}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${circularState},${circularState}:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is(${squareState},${squareState}:focus-visible)){border-radius:${borderRadiusNone}}:host(${primaryState}){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host(${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${primaryState}:is(:hover,:hover:active)){border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host(${primaryState}:hover:active){background-color:${colorBrandBackgroundPressed}}:host(${primaryState}:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host(${outlineState}){background-color:${colorTransparentBackground}}:host(${outlineState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${outlineState}:hover:active){background-color:${colorTransparentBackgroundPressed}}:host(${subtleState}){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host(${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host(${subtleState}:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host(${subtleState}:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host(${subtleState}:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host(${transparentState}){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host(${transparentState}:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is(${transparentState},${transparentState}:is(:hover,:active))){border-color:transparent}`;
|
|
5306
|
+
const styles$E = css`
|
|
5283
5307
|
${baseButtonStyles}
|
|
5284
5308
|
|
|
5285
5309
|
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}:host(${primaryState}:is(:disabled,[disabled-focusable])),:host(${primaryState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${outlineState}:is(:disabled,[disabled-focusable])),:host(${outlineState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground}}:host(${subtleState}:is(:disabled,[disabled-focusable])),:host(${subtleState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground};border-color:transparent}:host(${transparentState}:is(:disabled,[disabled-focusable])),:host(${transparentState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${colorTransparentBackground}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
5286
5310
|
:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host(${primaryState}:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`));
|
|
5287
5311
|
|
|
5288
|
-
const styles$
|
|
5312
|
+
const styles$D = css`
|
|
5289
5313
|
${baseButtonStyles}
|
|
5290
5314
|
|
|
5291
5315
|
::slotted(a){position:absolute;inset:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -5294,15 +5318,15 @@ const styles$B = css`
|
|
|
5294
5318
|
function anchorTemplate$1(options = {}) {
|
|
5295
5319
|
return html`<template tabindex="0" @click="${(x, c) => x.clickHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}">${startSlotTemplate(options)}<span class="content" part="content"><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
5296
5320
|
}
|
|
5297
|
-
const template$
|
|
5321
|
+
const template$F = anchorTemplate$1();
|
|
5298
5322
|
|
|
5299
|
-
const definition$
|
|
5323
|
+
const definition$F = AnchorButton.compose({
|
|
5300
5324
|
name: `${FluentDesignSystem.prefix}-anchor-button`,
|
|
5301
|
-
template: template$
|
|
5302
|
-
styles: styles$
|
|
5325
|
+
template: template$F,
|
|
5326
|
+
styles: styles$D
|
|
5303
5327
|
});
|
|
5304
5328
|
|
|
5305
|
-
definition$
|
|
5329
|
+
definition$F.define(FluentDesignSystem.registry);
|
|
5306
5330
|
|
|
5307
5331
|
const UNWANTED_ENCLOSURES_REGEX = /[\(\[\{][^\)\]\}]*[\)\]\}]/g;
|
|
5308
5332
|
const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
|
|
@@ -5345,6 +5369,30 @@ function getInitials(displayName, isRtl, options) {
|
|
|
5345
5369
|
return getInitialsLatin(displayName, isRtl, options?.firstInitialOnly);
|
|
5346
5370
|
}
|
|
5347
5371
|
|
|
5372
|
+
var __defProp$K = Object.defineProperty;
|
|
5373
|
+
var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
|
|
5374
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
5375
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
|
|
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$K(target, key, result);
|
|
5378
|
+
return result;
|
|
5379
|
+
};
|
|
5380
|
+
class BaseAvatar extends FASTElement {
|
|
5381
|
+
constructor() {
|
|
5382
|
+
super();
|
|
5383
|
+
/**
|
|
5384
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
5385
|
+
*
|
|
5386
|
+
* @internal
|
|
5387
|
+
*/
|
|
5388
|
+
this.elementInternals = this.attachInternals();
|
|
5389
|
+
this.elementInternals.role = "img";
|
|
5390
|
+
}
|
|
5391
|
+
}
|
|
5392
|
+
__decorateClass$K([attr], BaseAvatar.prototype, "name", 2);
|
|
5393
|
+
__decorateClass$K([attr], BaseAvatar.prototype, "initials", 2);
|
|
5394
|
+
__decorateClass$K([attr], BaseAvatar.prototype, "active", 2);
|
|
5395
|
+
|
|
5348
5396
|
const AvatarNamedColor = {
|
|
5349
5397
|
darkRed: "dark-red",
|
|
5350
5398
|
cranberry: "cranberry",
|
|
@@ -5384,29 +5432,14 @@ const AvatarColor = {
|
|
|
5384
5432
|
...AvatarNamedColor
|
|
5385
5433
|
};
|
|
5386
5434
|
|
|
5387
|
-
var __defProp$
|
|
5388
|
-
var __getOwnPropDesc$
|
|
5389
|
-
var __decorateClass$
|
|
5390
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5435
|
+
var __defProp$J = Object.defineProperty;
|
|
5436
|
+
var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
|
|
5437
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
5438
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
|
|
5391
5439
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5392
|
-
if (kind && result) __defProp$
|
|
5440
|
+
if (kind && result) __defProp$J(target, key, result);
|
|
5393
5441
|
return result;
|
|
5394
5442
|
};
|
|
5395
|
-
class BaseAvatar extends FASTElement {
|
|
5396
|
-
constructor() {
|
|
5397
|
-
super();
|
|
5398
|
-
/**
|
|
5399
|
-
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
5400
|
-
*
|
|
5401
|
-
* @internal
|
|
5402
|
-
*/
|
|
5403
|
-
this.elementInternals = this.attachInternals();
|
|
5404
|
-
this.elementInternals.role = "img";
|
|
5405
|
-
}
|
|
5406
|
-
}
|
|
5407
|
-
__decorateClass$w([attr], BaseAvatar.prototype, "name", 2);
|
|
5408
|
-
__decorateClass$w([attr], BaseAvatar.prototype, "initials", 2);
|
|
5409
|
-
__decorateClass$w([attr], BaseAvatar.prototype, "active", 2);
|
|
5410
5443
|
const _Avatar = class _Avatar extends BaseAvatar {
|
|
5411
5444
|
/**
|
|
5412
5445
|
* Handles changes to observable properties
|
|
@@ -5459,13 +5492,13 @@ const _Avatar = class _Avatar extends BaseAvatar {
|
|
|
5459
5492
|
* An array of the available Avatar named colors
|
|
5460
5493
|
*/
|
|
5461
5494
|
_Avatar.colors = Object.values(AvatarNamedColor);
|
|
5462
|
-
__decorateClass$
|
|
5463
|
-
__decorateClass$
|
|
5464
|
-
__decorateClass$
|
|
5495
|
+
__decorateClass$J([attr], _Avatar.prototype, "shape", 2);
|
|
5496
|
+
__decorateClass$J([attr], _Avatar.prototype, "appearance", 2);
|
|
5497
|
+
__decorateClass$J([attr({
|
|
5465
5498
|
converter: nullableNumberConverter
|
|
5466
5499
|
})], _Avatar.prototype, "size", 2);
|
|
5467
|
-
__decorateClass$
|
|
5468
|
-
__decorateClass$
|
|
5500
|
+
__decorateClass$J([attr], _Avatar.prototype, "color", 2);
|
|
5501
|
+
__decorateClass$J([attr({
|
|
5469
5502
|
attribute: "color-id"
|
|
5470
5503
|
})], _Avatar.prototype, "colorId", 2);
|
|
5471
5504
|
let Avatar = _Avatar;
|
|
@@ -5490,22 +5523,22 @@ const animations = {
|
|
|
5490
5523
|
normalEase: curveEasyEase,
|
|
5491
5524
|
nullEasing: curveLinear
|
|
5492
5525
|
};
|
|
5493
|
-
const styles$
|
|
5526
|
+
const styles$C = css`
|
|
5494
5527
|
${display("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin}) ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick}) ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host(${brandState}){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host(${darkRedState}){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host(${cranberryState}){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host(${redState}){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host(${pumpkinState}){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host(${peachState}){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host(${marigoldState}){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host(${goldState}){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host(${brassState}){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host(${brownState}){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host(${forestState}){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host(${seafoamState}){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host(${darkGreenState}){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host(${lightTealState}){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host(${tealState}){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host(${steelState}){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host(${blueState}){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host(${royalBlueState}){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host(${cornflowerState}){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host(${navyState}){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host(${lavenderState}){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host(${purpleState}){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host(${grapeState}){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host(${lilacState}){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host(${pinkState}){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host(${magentaState}){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host(${plumState}){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host(${beigeState}){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host(${minkState}){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host(${platinumState}){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host(${anchorState}){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow}),${durationSlower};transition-delay:${animations.fastEase}),${animations.nullEasing})}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
|
|
5495
5528
|
|
|
5496
5529
|
const defaultIconTemplate = html`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;
|
|
5497
5530
|
function avatarTemplate() {
|
|
5498
5531
|
return html`<slot>${x => x.name || x.initials ? x.generateInitials() : defaultIconTemplate}</slot><slot name="badge"></slot>`;
|
|
5499
5532
|
}
|
|
5500
|
-
const template$
|
|
5533
|
+
const template$E = avatarTemplate();
|
|
5501
5534
|
|
|
5502
|
-
const definition$
|
|
5535
|
+
const definition$E = Avatar.compose({
|
|
5503
5536
|
name: `${FluentDesignSystem.prefix}-avatar`,
|
|
5504
|
-
template: template$
|
|
5505
|
-
styles: styles$
|
|
5537
|
+
template: template$E,
|
|
5538
|
+
styles: styles$C
|
|
5506
5539
|
});
|
|
5507
5540
|
|
|
5508
|
-
definition$
|
|
5541
|
+
definition$E.define(FluentDesignSystem.registry);
|
|
5509
5542
|
|
|
5510
5543
|
const BadgeAppearance = {
|
|
5511
5544
|
filled: "filled",
|
|
@@ -5537,12 +5570,12 @@ const BadgeSize = {
|
|
|
5537
5570
|
extraLarge: "extra-large"
|
|
5538
5571
|
};
|
|
5539
5572
|
|
|
5540
|
-
var __defProp$
|
|
5541
|
-
var __getOwnPropDesc$
|
|
5542
|
-
var __decorateClass$
|
|
5543
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5573
|
+
var __defProp$I = Object.defineProperty;
|
|
5574
|
+
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
5575
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
5576
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
5544
5577
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5545
|
-
if (kind && result) __defProp$
|
|
5578
|
+
if (kind && result) __defProp$I(target, key, result);
|
|
5546
5579
|
return result;
|
|
5547
5580
|
};
|
|
5548
5581
|
class Badge extends FASTElement {
|
|
@@ -5590,10 +5623,10 @@ class Badge extends FASTElement {
|
|
|
5590
5623
|
swapStates(this.elementInternals, prev, next, BadgeSize);
|
|
5591
5624
|
}
|
|
5592
5625
|
}
|
|
5593
|
-
__decorateClass$
|
|
5594
|
-
__decorateClass$
|
|
5595
|
-
__decorateClass$
|
|
5596
|
-
__decorateClass$
|
|
5626
|
+
__decorateClass$I([attr], Badge.prototype, "appearance", 2);
|
|
5627
|
+
__decorateClass$I([attr], Badge.prototype, "color", 2);
|
|
5628
|
+
__decorateClass$I([attr], Badge.prototype, "shape", 2);
|
|
5629
|
+
__decorateClass$I([attr], Badge.prototype, "size", 2);
|
|
5597
5630
|
applyMixins(Badge, StartEnd);
|
|
5598
5631
|
|
|
5599
5632
|
const badgeBaseStyles = css.partial`
|
|
@@ -5947,7 +5980,7 @@ css.partial`
|
|
|
5947
5980
|
font-weight: ${fontWeightSemibold};
|
|
5948
5981
|
`;
|
|
5949
5982
|
|
|
5950
|
-
const styles$
|
|
5983
|
+
const styles$B = css`
|
|
5951
5984
|
:host(${squareState}){border-radius:${borderRadiusNone}}:host(${roundedState}){border-radius:${borderRadiusMedium}}:host(${roundedState}${tinyState}),:host(${roundedState}${extraSmallState}),:host(${roundedState}${smallState}){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
5952
5985
|
${badgeFilledStyles}
|
|
5953
5986
|
${badgeGhostStyles}
|
|
@@ -5960,22 +5993,22 @@ const styles$z = css`
|
|
|
5960
5993
|
function badgeTemplate(options = {}) {
|
|
5961
5994
|
return html` ${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)} `;
|
|
5962
5995
|
}
|
|
5963
|
-
const template$
|
|
5996
|
+
const template$D = badgeTemplate();
|
|
5964
5997
|
|
|
5965
|
-
const definition$
|
|
5998
|
+
const definition$D = Badge.compose({
|
|
5966
5999
|
name: `${FluentDesignSystem.prefix}-badge`,
|
|
5967
|
-
template: template$
|
|
5968
|
-
styles: styles$
|
|
6000
|
+
template: template$D,
|
|
6001
|
+
styles: styles$B
|
|
5969
6002
|
});
|
|
5970
6003
|
|
|
5971
|
-
definition$
|
|
6004
|
+
definition$D.define(FluentDesignSystem.registry);
|
|
5972
6005
|
|
|
5973
|
-
var __defProp$
|
|
5974
|
-
var __getOwnPropDesc$
|
|
5975
|
-
var __decorateClass$
|
|
5976
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6006
|
+
var __defProp$H = Object.defineProperty;
|
|
6007
|
+
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
6008
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
6009
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
5977
6010
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5978
|
-
if (kind && result) __defProp$
|
|
6011
|
+
if (kind && result) __defProp$H(target, key, result);
|
|
5979
6012
|
return result;
|
|
5980
6013
|
};
|
|
5981
6014
|
class BaseButton extends FASTElement {
|
|
@@ -6179,44 +6212,53 @@ class BaseButton extends FASTElement {
|
|
|
6179
6212
|
* @public
|
|
6180
6213
|
*/
|
|
6181
6214
|
BaseButton.formAssociated = true;
|
|
6182
|
-
__decorateClass$
|
|
6215
|
+
__decorateClass$H([attr({
|
|
6183
6216
|
mode: "boolean"
|
|
6184
6217
|
})], BaseButton.prototype, "autofocus", 2);
|
|
6185
|
-
__decorateClass$
|
|
6186
|
-
__decorateClass$
|
|
6218
|
+
__decorateClass$H([observable], BaseButton.prototype, "defaultSlottedContent", 2);
|
|
6219
|
+
__decorateClass$H([attr({
|
|
6187
6220
|
mode: "boolean"
|
|
6188
6221
|
})], BaseButton.prototype, "disabled", 2);
|
|
6189
|
-
__decorateClass$
|
|
6222
|
+
__decorateClass$H([attr({
|
|
6190
6223
|
attribute: "disabled-focusable",
|
|
6191
6224
|
mode: "boolean"
|
|
6192
6225
|
})], BaseButton.prototype, "disabledFocusable", 2);
|
|
6193
|
-
__decorateClass$
|
|
6226
|
+
__decorateClass$H([attr({
|
|
6194
6227
|
attribute: "tabindex",
|
|
6195
6228
|
mode: "fromView",
|
|
6196
6229
|
converter: nullableNumberConverter
|
|
6197
6230
|
})], BaseButton.prototype, "tabIndex", 2);
|
|
6198
|
-
__decorateClass$
|
|
6231
|
+
__decorateClass$H([attr({
|
|
6199
6232
|
attribute: "formaction"
|
|
6200
6233
|
})], BaseButton.prototype, "formAction", 2);
|
|
6201
|
-
__decorateClass$
|
|
6234
|
+
__decorateClass$H([attr({
|
|
6202
6235
|
attribute: "form"
|
|
6203
6236
|
})], BaseButton.prototype, "formAttribute", 2);
|
|
6204
|
-
__decorateClass$
|
|
6237
|
+
__decorateClass$H([attr({
|
|
6205
6238
|
attribute: "formenctype"
|
|
6206
6239
|
})], BaseButton.prototype, "formEnctype", 2);
|
|
6207
|
-
__decorateClass$
|
|
6240
|
+
__decorateClass$H([attr({
|
|
6208
6241
|
attribute: "formmethod"
|
|
6209
6242
|
})], BaseButton.prototype, "formMethod", 2);
|
|
6210
|
-
__decorateClass$
|
|
6243
|
+
__decorateClass$H([attr({
|
|
6211
6244
|
attribute: "formnovalidate",
|
|
6212
6245
|
mode: "boolean"
|
|
6213
6246
|
})], BaseButton.prototype, "formNoValidate", 2);
|
|
6214
|
-
__decorateClass$
|
|
6247
|
+
__decorateClass$H([attr({
|
|
6215
6248
|
attribute: "formtarget"
|
|
6216
6249
|
})], BaseButton.prototype, "formTarget", 2);
|
|
6217
|
-
__decorateClass$
|
|
6218
|
-
__decorateClass$
|
|
6219
|
-
__decorateClass$
|
|
6250
|
+
__decorateClass$H([attr], BaseButton.prototype, "name", 2);
|
|
6251
|
+
__decorateClass$H([attr], BaseButton.prototype, "type", 2);
|
|
6252
|
+
__decorateClass$H([attr], BaseButton.prototype, "value", 2);
|
|
6253
|
+
|
|
6254
|
+
var __defProp$G = Object.defineProperty;
|
|
6255
|
+
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6256
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
6257
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
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$G(target, key, result);
|
|
6260
|
+
return result;
|
|
6261
|
+
};
|
|
6220
6262
|
class Button extends BaseButton {
|
|
6221
6263
|
constructor() {
|
|
6222
6264
|
super(...arguments);
|
|
@@ -6255,10 +6297,10 @@ class Button extends BaseButton {
|
|
|
6255
6297
|
toggleState(this.elementInternals, "icon", next);
|
|
6256
6298
|
}
|
|
6257
6299
|
}
|
|
6258
|
-
__decorateClass$
|
|
6259
|
-
__decorateClass$
|
|
6260
|
-
__decorateClass$
|
|
6261
|
-
__decorateClass$
|
|
6300
|
+
__decorateClass$G([attr], Button.prototype, "appearance", 2);
|
|
6301
|
+
__decorateClass$G([attr], Button.prototype, "shape", 2);
|
|
6302
|
+
__decorateClass$G([attr], Button.prototype, "size", 2);
|
|
6303
|
+
__decorateClass$G([attr({
|
|
6262
6304
|
attribute: "icon-only",
|
|
6263
6305
|
mode: "boolean"
|
|
6264
6306
|
})], Button.prototype, "iconOnly", 2);
|
|
@@ -6267,31 +6309,22 @@ applyMixins(Button, StartEnd);
|
|
|
6267
6309
|
function buttonTemplate$1(options = {}) {
|
|
6268
6310
|
return html`<template tabindex="${x => x.disabled ? null : x.tabIndex ?? 0}" @click="${(x, c) => x.clickHandler(c.event)}" @keypress="${(x, c) => x.keypressHandler(c.event)}">${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot></span>${endSlotTemplate(options)}</template>`;
|
|
6269
6311
|
}
|
|
6270
|
-
const template$
|
|
6312
|
+
const template$C = buttonTemplate$1();
|
|
6271
6313
|
|
|
6272
|
-
const definition$
|
|
6314
|
+
const definition$C = Button.compose({
|
|
6273
6315
|
name: `${FluentDesignSystem.prefix}-button`,
|
|
6274
|
-
template: template$
|
|
6275
|
-
styles: styles$
|
|
6316
|
+
template: template$C,
|
|
6317
|
+
styles: styles$E
|
|
6276
6318
|
});
|
|
6277
6319
|
|
|
6278
|
-
definition$
|
|
6279
|
-
|
|
6280
|
-
const CheckboxShape = {
|
|
6281
|
-
circular: "circular",
|
|
6282
|
-
square: "square"
|
|
6283
|
-
};
|
|
6284
|
-
const CheckboxSize = {
|
|
6285
|
-
medium: "medium",
|
|
6286
|
-
large: "large"
|
|
6287
|
-
};
|
|
6320
|
+
definition$C.define(FluentDesignSystem.registry);
|
|
6288
6321
|
|
|
6289
|
-
var __defProp$
|
|
6290
|
-
var __getOwnPropDesc$
|
|
6291
|
-
var __decorateClass$
|
|
6292
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6322
|
+
var __defProp$F = Object.defineProperty;
|
|
6323
|
+
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
6324
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
6325
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
6293
6326
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6294
|
-
if (kind && result) __defProp$
|
|
6327
|
+
if (kind && result) __defProp$F(target, key, result);
|
|
6295
6328
|
return result;
|
|
6296
6329
|
};
|
|
6297
6330
|
class BaseCheckbox extends FASTElement {
|
|
@@ -6625,29 +6658,47 @@ class BaseCheckbox extends FASTElement {
|
|
|
6625
6658
|
* @public
|
|
6626
6659
|
*/
|
|
6627
6660
|
BaseCheckbox.formAssociated = true;
|
|
6628
|
-
__decorateClass$
|
|
6661
|
+
__decorateClass$F([attr({
|
|
6629
6662
|
mode: "boolean"
|
|
6630
6663
|
})], BaseCheckbox.prototype, "autofocus", 2);
|
|
6631
|
-
__decorateClass$
|
|
6632
|
-
__decorateClass$
|
|
6664
|
+
__decorateClass$F([observable], BaseCheckbox.prototype, "disabled", 2);
|
|
6665
|
+
__decorateClass$F([attr({
|
|
6633
6666
|
attribute: "disabled",
|
|
6634
6667
|
mode: "boolean"
|
|
6635
6668
|
})], BaseCheckbox.prototype, "disabledAttribute", 2);
|
|
6636
|
-
__decorateClass$
|
|
6669
|
+
__decorateClass$F([attr({
|
|
6637
6670
|
attribute: "form"
|
|
6638
6671
|
})], BaseCheckbox.prototype, "formAttribute", 2);
|
|
6639
|
-
__decorateClass$
|
|
6672
|
+
__decorateClass$F([attr({
|
|
6640
6673
|
attribute: "checked",
|
|
6641
6674
|
mode: "boolean"
|
|
6642
6675
|
})], BaseCheckbox.prototype, "initialChecked", 2);
|
|
6643
|
-
__decorateClass$
|
|
6676
|
+
__decorateClass$F([attr({
|
|
6644
6677
|
attribute: "value",
|
|
6645
6678
|
mode: "fromView"
|
|
6646
6679
|
})], BaseCheckbox.prototype, "initialValue", 2);
|
|
6647
|
-
__decorateClass$
|
|
6648
|
-
__decorateClass$
|
|
6680
|
+
__decorateClass$F([attr], BaseCheckbox.prototype, "name", 2);
|
|
6681
|
+
__decorateClass$F([attr({
|
|
6649
6682
|
mode: "boolean"
|
|
6650
6683
|
})], BaseCheckbox.prototype, "required", 2);
|
|
6684
|
+
|
|
6685
|
+
const CheckboxShape = {
|
|
6686
|
+
circular: "circular",
|
|
6687
|
+
square: "square"
|
|
6688
|
+
};
|
|
6689
|
+
const CheckboxSize = {
|
|
6690
|
+
medium: "medium",
|
|
6691
|
+
large: "large"
|
|
6692
|
+
};
|
|
6693
|
+
|
|
6694
|
+
var __defProp$E = Object.defineProperty;
|
|
6695
|
+
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
6696
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
6697
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
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$E(target, key, result);
|
|
6700
|
+
return result;
|
|
6701
|
+
};
|
|
6651
6702
|
class Checkbox extends BaseCheckbox {
|
|
6652
6703
|
/**
|
|
6653
6704
|
* Updates the indeterminate state when the `indeterminate` property changes.
|
|
@@ -6708,11 +6759,11 @@ class Checkbox extends BaseCheckbox {
|
|
|
6708
6759
|
super.toggleChecked(force);
|
|
6709
6760
|
}
|
|
6710
6761
|
}
|
|
6711
|
-
__decorateClass$
|
|
6712
|
-
__decorateClass$
|
|
6713
|
-
__decorateClass$
|
|
6762
|
+
__decorateClass$E([observable], Checkbox.prototype, "indeterminate", 2);
|
|
6763
|
+
__decorateClass$E([attr], Checkbox.prototype, "shape", 2);
|
|
6764
|
+
__decorateClass$E([attr], Checkbox.prototype, "size", 2);
|
|
6714
6765
|
|
|
6715
|
-
const styles$
|
|
6766
|
+
const styles$A = css`
|
|
6716
6767
|
${display("inline-flex")}
|
|
6717
6768
|
|
|
6718
6769
|
:host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${largeState}){--size:20px}:host(${largeState}) ::slotted([slot='checked-indicator']),:host(${largeState}) .checked-indicator{width:16px}:host(${circularState}),:host(${circularState}) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState}) .checked-indicator{color:${colorNeutralStrokeDisabled}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -6738,23 +6789,23 @@ const indeterminateIndicator = html.partial( /* html */
|
|
|
6738
6789
|
function checkboxTemplate(options = {}) {
|
|
6739
6790
|
return html`<template tabindex="${x => !x.disabled ? 0 : void 0}" @click="${(x, c) => x.clickHandler(c.event)}" @input="${(x, c) => x.inputHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}" @keyup="${(x, c) => x.keyupHandler(c.event)}"><slot name="checked-indicator">${staticallyCompose(options.checkedIndicator)}</slot><slot name="indeterminate-indicator">${staticallyCompose(options.indeterminateIndicator)}</slot></template>`;
|
|
6740
6791
|
}
|
|
6741
|
-
const template$
|
|
6792
|
+
const template$B = checkboxTemplate({
|
|
6742
6793
|
checkedIndicator: checkedIndicator$2,
|
|
6743
6794
|
indeterminateIndicator
|
|
6744
6795
|
});
|
|
6745
6796
|
|
|
6746
|
-
const definition$
|
|
6797
|
+
const definition$B = Checkbox.compose({
|
|
6747
6798
|
name: `${FluentDesignSystem.prefix}-checkbox`,
|
|
6748
|
-
template: template$
|
|
6749
|
-
styles: styles$
|
|
6799
|
+
template: template$B,
|
|
6800
|
+
styles: styles$A
|
|
6750
6801
|
});
|
|
6751
6802
|
|
|
6752
|
-
definition$
|
|
6803
|
+
definition$B.define(FluentDesignSystem.registry);
|
|
6753
6804
|
|
|
6754
6805
|
class CompoundButton extends Button {}
|
|
6755
6806
|
|
|
6756
|
-
const styles$
|
|
6757
|
-
${styles$
|
|
6807
|
+
const styles$z = css`
|
|
6808
|
+
${styles$E}
|
|
6758
6809
|
|
|
6759
6810
|
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${colorNeutralForeground2};line-height:100%;font-size:${fontSizeBase200};font-weight:${fontWeightRegular}}::slotted(svg),:host(${largeState}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${colorNeutralForeground2Hover}}:host(:active) ::slotted([slot='description']){color:${colorNeutralForeground2Pressed}}:host(:is(${primaryState},${primaryState}:hover,${primaryState}:active)) ::slotted([slot='description']){color:${colorNeutralForegroundOnBrand}}:host(:is(${subtleState},${subtleState}:hover,${subtleState}:active)) ::slotted([slot='description']),:host(${transparentState}) ::slotted([slot='description']){color:${colorNeutralForeground2}}:host(${transparentState}:hover) ::slotted([slot='description']){color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:active) ::slotted([slot='description']){color:${colorNeutralForeground2BrandPressed}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
6760
6811
|
::slotted([slot='description']){color:${colorNeutralForegroundDisabled}}:host(${smallState}){padding:8px;padding-bottom:10px}:host(${iconOnlyState}){min-width:52px;max-width:52px;padding:${spacingHorizontalSNudge}}:host(${iconOnlyState}${smallState}){min-width:48px;max-width:48px;padding:${spacingHorizontalXS}}:host(${iconOnlyState}${largeState}){min-width:56px;max-width:56px;padding:${spacingHorizontalS}}:host(${largeState}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}) ::slotted([slot='description']){font-size:${fontSizeBase300}}`;
|
|
@@ -6762,15 +6813,15 @@ const styles$x = css`
|
|
|
6762
6813
|
function buttonTemplate(options = {}) {
|
|
6763
6814
|
return html`<template ?disabled="${x => x.disabled}" tabindex="${x => x.disabled ? null : x.tabIndex ?? 0}">${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot><slot name="description"></slot></span>${endSlotTemplate(options)}</template>`;
|
|
6764
6815
|
}
|
|
6765
|
-
const template$
|
|
6816
|
+
const template$A = buttonTemplate();
|
|
6766
6817
|
|
|
6767
|
-
const definition$
|
|
6818
|
+
const definition$A = CompoundButton.compose({
|
|
6768
6819
|
name: `${FluentDesignSystem.prefix}-compound-button`,
|
|
6769
|
-
template: template$
|
|
6770
|
-
styles: styles$
|
|
6820
|
+
template: template$A,
|
|
6821
|
+
styles: styles$z
|
|
6771
6822
|
});
|
|
6772
6823
|
|
|
6773
|
-
definition$
|
|
6824
|
+
definition$A.define(FluentDesignSystem.registry);
|
|
6774
6825
|
|
|
6775
6826
|
const CounterBadgeAppearance = {
|
|
6776
6827
|
filled: "filled",
|
|
@@ -6799,12 +6850,12 @@ const CounterBadgeSize = {
|
|
|
6799
6850
|
extraLarge: "extra-large"
|
|
6800
6851
|
};
|
|
6801
6852
|
|
|
6802
|
-
var __defProp$
|
|
6803
|
-
var __getOwnPropDesc$
|
|
6804
|
-
var __decorateClass$
|
|
6805
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6853
|
+
var __defProp$D = Object.defineProperty;
|
|
6854
|
+
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
6855
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
6856
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
6806
6857
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6807
|
-
if (kind && result) __defProp$
|
|
6858
|
+
if (kind && result) __defProp$D(target, key, result);
|
|
6808
6859
|
return result;
|
|
6809
6860
|
};
|
|
6810
6861
|
class CounterBadge extends FASTElement {
|
|
@@ -6881,27 +6932,27 @@ class CounterBadge extends FASTElement {
|
|
|
6881
6932
|
return;
|
|
6882
6933
|
}
|
|
6883
6934
|
}
|
|
6884
|
-
__decorateClass$
|
|
6885
|
-
__decorateClass$
|
|
6886
|
-
__decorateClass$
|
|
6887
|
-
__decorateClass$
|
|
6888
|
-
__decorateClass$
|
|
6935
|
+
__decorateClass$D([attr], CounterBadge.prototype, "appearance", 2);
|
|
6936
|
+
__decorateClass$D([attr], CounterBadge.prototype, "color", 2);
|
|
6937
|
+
__decorateClass$D([attr], CounterBadge.prototype, "shape", 2);
|
|
6938
|
+
__decorateClass$D([attr], CounterBadge.prototype, "size", 2);
|
|
6939
|
+
__decorateClass$D([attr({
|
|
6889
6940
|
converter: nullableNumberConverter
|
|
6890
6941
|
})], CounterBadge.prototype, "count", 2);
|
|
6891
|
-
__decorateClass$
|
|
6942
|
+
__decorateClass$D([attr({
|
|
6892
6943
|
attribute: "overflow-count",
|
|
6893
6944
|
converter: nullableNumberConverter
|
|
6894
6945
|
})], CounterBadge.prototype, "overflowCount", 2);
|
|
6895
|
-
__decorateClass$
|
|
6946
|
+
__decorateClass$D([attr({
|
|
6896
6947
|
attribute: "show-zero",
|
|
6897
6948
|
mode: "boolean"
|
|
6898
6949
|
})], CounterBadge.prototype, "showZero", 2);
|
|
6899
|
-
__decorateClass$
|
|
6950
|
+
__decorateClass$D([attr({
|
|
6900
6951
|
mode: "boolean"
|
|
6901
6952
|
})], CounterBadge.prototype, "dot", 2);
|
|
6902
6953
|
applyMixins(CounterBadge, StartEnd);
|
|
6903
6954
|
|
|
6904
|
-
const styles$
|
|
6955
|
+
const styles$y = css`
|
|
6905
6956
|
:host(${roundedState}){border-radius:${borderRadiusMedium}}:host(${roundedState}${tinyState}),:host(${roundedState}${extraSmallState}),:host(${roundedState}${smallState}){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
6906
6957
|
${badgeFilledStyles}
|
|
6907
6958
|
${badgeGhostStyles}
|
|
@@ -6914,15 +6965,15 @@ function composeTemplate(options = {}) {
|
|
|
6914
6965
|
defaultContent: html`${x => x.setCount()}`
|
|
6915
6966
|
});
|
|
6916
6967
|
}
|
|
6917
|
-
const template$
|
|
6968
|
+
const template$z = composeTemplate();
|
|
6918
6969
|
|
|
6919
|
-
const definition$
|
|
6970
|
+
const definition$z = CounterBadge.compose({
|
|
6920
6971
|
name: `${FluentDesignSystem.prefix}-counter-badge`,
|
|
6921
|
-
template: template$
|
|
6922
|
-
styles: styles$
|
|
6972
|
+
template: template$z,
|
|
6973
|
+
styles: styles$y
|
|
6923
6974
|
});
|
|
6924
6975
|
|
|
6925
|
-
definition$
|
|
6976
|
+
definition$z.define(FluentDesignSystem.registry);
|
|
6926
6977
|
|
|
6927
6978
|
const DialogType = {
|
|
6928
6979
|
modal: "modal",
|
|
@@ -6930,12 +6981,12 @@ const DialogType = {
|
|
|
6930
6981
|
alert: "alert"
|
|
6931
6982
|
};
|
|
6932
6983
|
|
|
6933
|
-
var __defProp$
|
|
6934
|
-
var __getOwnPropDesc$
|
|
6935
|
-
var __decorateClass$
|
|
6936
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6984
|
+
var __defProp$C = Object.defineProperty;
|
|
6985
|
+
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
6986
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
6987
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
6937
6988
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6938
|
-
if (kind && result) __defProp$
|
|
6989
|
+
if (kind && result) __defProp$C(target, key, result);
|
|
6939
6990
|
return result;
|
|
6940
6991
|
};
|
|
6941
6992
|
class Dialog extends FASTElement {
|
|
@@ -7003,35 +7054,35 @@ class Dialog extends FASTElement {
|
|
|
7003
7054
|
return true;
|
|
7004
7055
|
}
|
|
7005
7056
|
}
|
|
7006
|
-
__decorateClass$
|
|
7007
|
-
__decorateClass$
|
|
7057
|
+
__decorateClass$C([observable], Dialog.prototype, "dialog", 2);
|
|
7058
|
+
__decorateClass$C([attr({
|
|
7008
7059
|
attribute: "aria-describedby"
|
|
7009
7060
|
})], Dialog.prototype, "ariaDescribedby", 2);
|
|
7010
|
-
__decorateClass$
|
|
7061
|
+
__decorateClass$C([attr({
|
|
7011
7062
|
attribute: "aria-labelledby"
|
|
7012
7063
|
})], Dialog.prototype, "ariaLabelledby", 2);
|
|
7013
|
-
__decorateClass$
|
|
7064
|
+
__decorateClass$C([attr], Dialog.prototype, "type", 2);
|
|
7014
7065
|
|
|
7015
|
-
const template$
|
|
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>`;
|
|
7016
7067
|
|
|
7017
|
-
const styles$
|
|
7068
|
+
const styles$x = css`
|
|
7018
7069
|
@layer base{:host{--dialog-backdrop:${colorBackgroundOverlay};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${colorNeutralBackground1};border-radius:${borderRadiusXLarge};border:none;box-shadow:${shadow64};color:${colorNeutralForeground1};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};opacity:0}::backdrop{transition-timing-function:${curveLinear}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${curveAccelerateMid}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
7019
7070
|
@layer base{dialog{border:${strokeWidthThin} solid ${colorTransparentStroke}}}`));
|
|
7020
7071
|
|
|
7021
|
-
const definition$
|
|
7072
|
+
const definition$y = Dialog.compose({
|
|
7022
7073
|
name: `${FluentDesignSystem.prefix}-dialog`,
|
|
7023
|
-
template: template$
|
|
7024
|
-
styles: styles$
|
|
7074
|
+
template: template$y,
|
|
7075
|
+
styles: styles$x
|
|
7025
7076
|
});
|
|
7026
7077
|
|
|
7027
|
-
definition$
|
|
7078
|
+
definition$y.define(FluentDesignSystem.registry);
|
|
7028
7079
|
|
|
7029
|
-
var __defProp$
|
|
7030
|
-
var __getOwnPropDesc$
|
|
7031
|
-
var __decorateClass$
|
|
7032
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7080
|
+
var __defProp$B = Object.defineProperty;
|
|
7081
|
+
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
7082
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
7083
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
7033
7084
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7034
|
-
if (kind && result) __defProp$
|
|
7085
|
+
if (kind && result) __defProp$B(target, key, result);
|
|
7035
7086
|
return result;
|
|
7036
7087
|
};
|
|
7037
7088
|
class DialogBody extends FASTElement {
|
|
@@ -7040,7 +7091,7 @@ class DialogBody extends FASTElement {
|
|
|
7040
7091
|
this.noTitleAction = false;
|
|
7041
7092
|
}
|
|
7042
7093
|
}
|
|
7043
|
-
__decorateClass$
|
|
7094
|
+
__decorateClass$B([attr({
|
|
7044
7095
|
mode: "boolean",
|
|
7045
7096
|
attribute: "no-title-action"
|
|
7046
7097
|
})], DialogBody.prototype, "noTitleAction", 2);
|
|
@@ -7059,20 +7110,20 @@ const dismissed16Regular = html.partial(`
|
|
|
7059
7110
|
fill="currentColor"
|
|
7060
7111
|
></path>
|
|
7061
7112
|
</svg>`);
|
|
7062
|
-
const template$
|
|
7113
|
+
const template$x = html`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${x => x.noTitleAction || x.parentNode?.type === DialogType.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${x => x.parentNode?.hide()} ${ref("defaultTitleAction")}>${dismissed16Regular}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`;
|
|
7063
7114
|
|
|
7064
|
-
const styles$
|
|
7115
|
+
const styles$w = css`
|
|
7065
7116
|
${display("grid")}
|
|
7066
7117
|
|
|
7067
7118
|
:host{background:${colorNeutralBackground1};box-sizing:border-box;gap:${spacingVerticalS};padding:${spacingVerticalXXL} ${spacingHorizontalXXL};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${colorNeutralBackground1};color:${colorNeutralForeground1};column-gap:8px;display:flex;font-family:${fontFamilyBase};font-size:${fontSizeBase500};font-weight:${fontWeightSemibold};inset-block-start:0;justify-content:space-between;line-height:${lineHeightBase500};margin-block-end:calc(${spacingVerticalS} * -1);margin-block-start:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalS};padding-block-start:${spacingVerticalXXL};position:sticky;z-index:1}.content{box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};min-height:32px}.actions{box-sizing:border-box;background:${colorNeutralBackground1};display:flex;flex-direction:column;gap:${spacingVerticalS};inset-block-end:0;margin-block-end:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalXXL};padding-block-start:${spacingVerticalL};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${spacingVerticalS} * -1);padding-block-start:${spacingVerticalS}}}`;
|
|
7068
7119
|
|
|
7069
|
-
const definition$
|
|
7120
|
+
const definition$x = DialogBody.compose({
|
|
7070
7121
|
name: `${FluentDesignSystem.prefix}-dialog-body`,
|
|
7071
|
-
template: template$
|
|
7072
|
-
styles: styles$
|
|
7122
|
+
template: template$x,
|
|
7123
|
+
styles: styles$w
|
|
7073
7124
|
});
|
|
7074
7125
|
|
|
7075
|
-
definition$
|
|
7126
|
+
definition$x.define(FluentDesignSystem.registry);
|
|
7076
7127
|
|
|
7077
7128
|
const DividerRole = {
|
|
7078
7129
|
/**
|
|
@@ -7096,12 +7147,12 @@ const DividerAppearance = {
|
|
|
7096
7147
|
subtle: "subtle"
|
|
7097
7148
|
};
|
|
7098
7149
|
|
|
7099
|
-
var __defProp$
|
|
7100
|
-
var __getOwnPropDesc$
|
|
7101
|
-
var __decorateClass$
|
|
7102
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7150
|
+
var __defProp$A = Object.defineProperty;
|
|
7151
|
+
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
7152
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
7153
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
7103
7154
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7104
|
-
if (kind && result) __defProp$
|
|
7155
|
+
if (kind && result) __defProp$A(target, key, result);
|
|
7105
7156
|
return result;
|
|
7106
7157
|
};
|
|
7107
7158
|
class BaseDivider extends FASTElement {
|
|
@@ -7148,8 +7199,17 @@ class BaseDivider extends FASTElement {
|
|
|
7148
7199
|
swapStates(this.elementInternals, previous, next, DividerOrientation);
|
|
7149
7200
|
}
|
|
7150
7201
|
}
|
|
7151
|
-
__decorateClass$
|
|
7152
|
-
__decorateClass$
|
|
7202
|
+
__decorateClass$A([attr], BaseDivider.prototype, "role", 2);
|
|
7203
|
+
__decorateClass$A([attr], BaseDivider.prototype, "orientation", 2);
|
|
7204
|
+
|
|
7205
|
+
var __defProp$z = Object.defineProperty;
|
|
7206
|
+
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
7207
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
7208
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
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$z(target, key, result);
|
|
7211
|
+
return result;
|
|
7212
|
+
};
|
|
7153
7213
|
class Divider extends BaseDivider {
|
|
7154
7214
|
/**
|
|
7155
7215
|
* Handles changes to align-content attribute custom states
|
|
@@ -7176,32 +7236,32 @@ class Divider extends BaseDivider {
|
|
|
7176
7236
|
toggleState(this.elementInternals, "inset", next);
|
|
7177
7237
|
}
|
|
7178
7238
|
}
|
|
7179
|
-
__decorateClass$
|
|
7239
|
+
__decorateClass$z([attr({
|
|
7180
7240
|
attribute: "align-content"
|
|
7181
7241
|
})], Divider.prototype, "alignContent", 2);
|
|
7182
|
-
__decorateClass$
|
|
7183
|
-
__decorateClass$
|
|
7242
|
+
__decorateClass$z([attr], Divider.prototype, "appearance", 2);
|
|
7243
|
+
__decorateClass$z([attr({
|
|
7184
7244
|
mode: "boolean"
|
|
7185
7245
|
})], Divider.prototype, "inset", 2);
|
|
7186
7246
|
|
|
7187
7247
|
function dividerTemplate() {
|
|
7188
7248
|
return html`<slot></slot>`;
|
|
7189
7249
|
}
|
|
7190
|
-
const template$
|
|
7250
|
+
const template$w = dividerTemplate();
|
|
7191
7251
|
|
|
7192
|
-
const styles$
|
|
7252
|
+
const styles$v = css`
|
|
7193
7253
|
${display("flex")}
|
|
7194
7254
|
|
|
7195
7255
|
:host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host(${insetState}){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host(${alignStartState})::before,:host(${alignEndState})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${verticalState}){height:100%;min-height:84px}:host(${verticalState}):empty{min-height:20px}:host(${verticalState}){flex-direction:column;align-items:center}:host(${verticalState}${insetState})::before{margin-top:12px}:host(${verticalState}${insetState})::after{margin-bottom:12px}:host(${verticalState}):empty::before,:host(${verticalState}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${verticalState})::before,:host(${verticalState})::after{width:${strokeWidthThin};min-height:20px;height:100%}:host(${verticalState}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${verticalState}${alignStartState})::before{min-height:8px}:host(${verticalState}${alignEndState})::after{min-height:8px}:host(${strongState})::before,:host(${strongState})::after{background:${colorNeutralStroke1}}:host(${strongState}) ::slotted(*){color:${colorNeutralForeground1}}:host(${brandState})::before,:host(${brandState})::after{background:${colorBrandStroke1}}:host(${brandState}) ::slotted(*){color:${colorBrandForeground1}}:host(${subtleState})::before,:host(${subtleState})::after{background:${colorNeutralStroke3}}:host(${subtleState}) ::slotted(*){color:${colorNeutralForeground3}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
7196
7256
|
:host(${strongState})::before,:host(${strongState})::after,:host(${brandState})::before,:host(${brandState})::after,:host(${subtleState})::before,:host(${subtleState})::after,:host::after,:host::before{background:WindowText;color:WindowText}`));
|
|
7197
7257
|
|
|
7198
|
-
const definition$
|
|
7258
|
+
const definition$w = Divider.compose({
|
|
7199
7259
|
name: `${FluentDesignSystem.prefix}-divider`,
|
|
7200
|
-
template: template$
|
|
7201
|
-
styles: styles$
|
|
7260
|
+
template: template$w,
|
|
7261
|
+
styles: styles$v
|
|
7202
7262
|
});
|
|
7203
7263
|
|
|
7204
|
-
definition$
|
|
7264
|
+
definition$w.define(FluentDesignSystem.registry);
|
|
7205
7265
|
|
|
7206
7266
|
const DrawerPosition = {
|
|
7207
7267
|
start: "start",
|
|
@@ -7219,12 +7279,12 @@ const DrawerType = {
|
|
|
7219
7279
|
inline: "inline"
|
|
7220
7280
|
};
|
|
7221
7281
|
|
|
7222
|
-
var __defProp$
|
|
7223
|
-
var __getOwnPropDesc$
|
|
7224
|
-
var __decorateClass$
|
|
7225
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7282
|
+
var __defProp$y = Object.defineProperty;
|
|
7283
|
+
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
7284
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
7285
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
7226
7286
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7227
|
-
if (kind && result) __defProp$
|
|
7287
|
+
if (kind && result) __defProp$y(target, key, result);
|
|
7228
7288
|
return result;
|
|
7229
7289
|
};
|
|
7230
7290
|
class Drawer extends FASTElement {
|
|
@@ -7294,20 +7354,20 @@ class Drawer extends FASTElement {
|
|
|
7294
7354
|
return true;
|
|
7295
7355
|
}
|
|
7296
7356
|
}
|
|
7297
|
-
__decorateClass$
|
|
7298
|
-
__decorateClass$
|
|
7357
|
+
__decorateClass$y([attr], Drawer.prototype, "type", 2);
|
|
7358
|
+
__decorateClass$y([attr({
|
|
7299
7359
|
attribute: "aria-labelledby"
|
|
7300
7360
|
})], Drawer.prototype, "ariaLabelledby", 2);
|
|
7301
|
-
__decorateClass$
|
|
7361
|
+
__decorateClass$y([attr({
|
|
7302
7362
|
attribute: "aria-describedby"
|
|
7303
7363
|
})], Drawer.prototype, "ariaDescribedby", 2);
|
|
7304
|
-
__decorateClass$
|
|
7305
|
-
__decorateClass$
|
|
7364
|
+
__decorateClass$y([attr], Drawer.prototype, "position", 2);
|
|
7365
|
+
__decorateClass$y([attr({
|
|
7306
7366
|
attribute: "size"
|
|
7307
7367
|
})], Drawer.prototype, "size", 2);
|
|
7308
|
-
__decorateClass$
|
|
7368
|
+
__decorateClass$y([observable], Drawer.prototype, "dialog", 2);
|
|
7309
7369
|
|
|
7310
|
-
const styles$
|
|
7370
|
+
const styles$u = css`
|
|
7311
7371
|
${display("block")}
|
|
7312
7372
|
|
|
7313
7373
|
:host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};color:${colorNeutralForeground1};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${colorTransparentStroke};border-inline-start-color:var(--drawer-separator,${colorTransparentStroke});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${shadow64};border:${strokeWidthThin} solid ${colorTransparentStroke};background:${colorNeutralBackground1}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${curveAccelerateMid}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${curveAccelerateMid}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};background:var(--dialog-backdrop,${colorBackgroundOverlay});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${curveLinear}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;
|
|
@@ -7315,34 +7375,34 @@ const styles$s = css`
|
|
|
7315
7375
|
function drawerTemplate() {
|
|
7316
7376
|
return html`<dialog class="dialog" part="dialog" role="${x => x.type === "modal" ? "dialog" : x.role}" aria-modal="${x => x.type === "modal" ? "true" : void 0}" aria-describedby="${x => x.ariaDescribedby}" aria-labelledby="${x => x.ariaLabelledby}" aria-label="${x => x.ariaLabel}" size="${x => x.size}" position="${x => x.position}" type="${x => x.type}" @click="${(x, c) => x.clickHandler(c.event)}" @cancel="${(x, c) => x.hide()}" ${ref("dialog")}><slot></slot></dialog>`;
|
|
7317
7377
|
}
|
|
7318
|
-
const template$
|
|
7378
|
+
const template$v = drawerTemplate();
|
|
7319
7379
|
|
|
7320
|
-
const definition$
|
|
7380
|
+
const definition$v = Drawer.compose({
|
|
7321
7381
|
name: `${FluentDesignSystem.prefix}-drawer`,
|
|
7322
|
-
template: template$
|
|
7323
|
-
styles: styles$
|
|
7382
|
+
template: template$v,
|
|
7383
|
+
styles: styles$u
|
|
7324
7384
|
});
|
|
7325
7385
|
|
|
7326
|
-
definition$
|
|
7386
|
+
definition$v.define(FluentDesignSystem.registry);
|
|
7327
7387
|
|
|
7328
7388
|
class DrawerBody extends FASTElement {}
|
|
7329
7389
|
|
|
7330
|
-
const styles$
|
|
7390
|
+
const styles$t = css`
|
|
7331
7391
|
${display("grid")}
|
|
7332
7392
|
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${spacingHorizontalXL};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${typographySubtitle1Styles}}.footer{display:flex;justify-content:flex-start;gap:${spacingHorizontalM}}`;
|
|
7333
7393
|
|
|
7334
7394
|
function drawerBodyTemplate() {
|
|
7335
7395
|
return html`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`;
|
|
7336
7396
|
}
|
|
7337
|
-
const template$
|
|
7397
|
+
const template$u = drawerBodyTemplate();
|
|
7338
7398
|
|
|
7339
|
-
const definition$
|
|
7399
|
+
const definition$u = DrawerBody.compose({
|
|
7340
7400
|
name: `${FluentDesignSystem.prefix}-drawer-body`,
|
|
7341
|
-
template: template$
|
|
7342
|
-
styles: styles$
|
|
7401
|
+
template: template$u,
|
|
7402
|
+
styles: styles$t
|
|
7343
7403
|
});
|
|
7344
7404
|
|
|
7345
|
-
definition$
|
|
7405
|
+
definition$u.define(FluentDesignSystem.registry);
|
|
7346
7406
|
|
|
7347
7407
|
function isListbox(element, tagName = "-listbox") {
|
|
7348
7408
|
if (element?.nodeType !== Node.ELEMENT_NODE) {
|
|
@@ -7391,16 +7451,16 @@ const dropdownButtonTemplate = html`<button aria-activedescendant="${x => x.acti
|
|
|
7391
7451
|
function dropdownTemplate(options = {}) {
|
|
7392
7452
|
return html`<template @click="${(x, c) => x.clickHandler(c.event)}" @focusout="${(x, c) => x.focusoutHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}" @mousedown="${(x, c) => x.mousedownHandler(c.event)}"><div class="control"><slot name="control" ${ref("controlSlot")}></slot><slot name="indicator" ${ref("indicatorSlot")}>${staticallyCompose(options.indicator)}</slot></div><slot ${ref("listboxSlot")}></slot></template>`;
|
|
7393
7453
|
}
|
|
7394
|
-
const template$
|
|
7454
|
+
const template$t = dropdownTemplate({
|
|
7395
7455
|
indicator: dropdownIndicatorTemplate
|
|
7396
7456
|
});
|
|
7397
7457
|
|
|
7398
|
-
var __defProp$
|
|
7399
|
-
var __getOwnPropDesc$
|
|
7400
|
-
var __decorateClass$
|
|
7401
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7458
|
+
var __defProp$x = Object.defineProperty;
|
|
7459
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
7460
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
7461
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
7402
7462
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7403
|
-
if (kind && result) __defProp$
|
|
7463
|
+
if (kind && result) __defProp$x(target, key, result);
|
|
7404
7464
|
return result;
|
|
7405
7465
|
};
|
|
7406
7466
|
class BaseDropdown extends FASTElement {
|
|
@@ -7959,41 +8019,50 @@ class BaseDropdown extends FASTElement {
|
|
|
7959
8019
|
* @public
|
|
7960
8020
|
*/
|
|
7961
8021
|
BaseDropdown.formAssociated = true;
|
|
7962
|
-
__decorateClass$
|
|
7963
|
-
__decorateClass$
|
|
7964
|
-
__decorateClass$
|
|
8022
|
+
__decorateClass$x([volatile], BaseDropdown.prototype, "activeDescendant", 1);
|
|
8023
|
+
__decorateClass$x([observable], BaseDropdown.prototype, "activeIndex", 2);
|
|
8024
|
+
__decorateClass$x([attr({
|
|
7965
8025
|
attribute: "aria-labelledby",
|
|
7966
8026
|
mode: "fromView"
|
|
7967
8027
|
})], BaseDropdown.prototype, "ariaLabelledBy", 2);
|
|
7968
|
-
__decorateClass$
|
|
7969
|
-
__decorateClass$
|
|
8028
|
+
__decorateClass$x([observable], BaseDropdown.prototype, "control", 2);
|
|
8029
|
+
__decorateClass$x([attr({
|
|
7970
8030
|
mode: "boolean"
|
|
7971
8031
|
})], BaseDropdown.prototype, "disabled", 2);
|
|
7972
|
-
__decorateClass$
|
|
7973
|
-
__decorateClass$
|
|
8032
|
+
__decorateClass$x([volatile], BaseDropdown.prototype, "displayValue", 1);
|
|
8033
|
+
__decorateClass$x([attr({
|
|
7974
8034
|
attribute: "id"
|
|
7975
8035
|
})], BaseDropdown.prototype, "id", 2);
|
|
7976
|
-
__decorateClass$
|
|
7977
|
-
__decorateClass$
|
|
7978
|
-
__decorateClass$
|
|
8036
|
+
__decorateClass$x([observable], BaseDropdown.prototype, "indicator", 2);
|
|
8037
|
+
__decorateClass$x([observable], BaseDropdown.prototype, "indicatorSlot", 2);
|
|
8038
|
+
__decorateClass$x([attr({
|
|
7979
8039
|
attribute: "value",
|
|
7980
8040
|
mode: "fromView"
|
|
7981
8041
|
})], BaseDropdown.prototype, "initialValue", 2);
|
|
7982
|
-
__decorateClass$
|
|
7983
|
-
__decorateClass$
|
|
7984
|
-
__decorateClass$
|
|
8042
|
+
__decorateClass$x([observable], BaseDropdown.prototype, "listbox", 2);
|
|
8043
|
+
__decorateClass$x([observable], BaseDropdown.prototype, "listboxSlot", 2);
|
|
8044
|
+
__decorateClass$x([attr({
|
|
7985
8045
|
mode: "boolean"
|
|
7986
8046
|
})], BaseDropdown.prototype, "multiple", 2);
|
|
7987
|
-
__decorateClass$
|
|
7988
|
-
__decorateClass$
|
|
7989
|
-
__decorateClass$
|
|
7990
|
-
__decorateClass$
|
|
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({
|
|
7991
8051
|
mode: "boolean"
|
|
7992
8052
|
})], BaseDropdown.prototype, "required", 2);
|
|
7993
|
-
__decorateClass$
|
|
7994
|
-
__decorateClass$
|
|
8053
|
+
__decorateClass$x([attr], BaseDropdown.prototype, "type", 2);
|
|
8054
|
+
__decorateClass$x([attr({
|
|
7995
8055
|
attribute: "value"
|
|
7996
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
|
+
};
|
|
7997
8066
|
const _Dropdown = class _Dropdown extends BaseDropdown {
|
|
7998
8067
|
constructor() {
|
|
7999
8068
|
super();
|
|
@@ -8083,25 +8152,25 @@ const _Dropdown = class _Dropdown extends BaseDropdown {
|
|
|
8083
8152
|
});
|
|
8084
8153
|
}
|
|
8085
8154
|
};
|
|
8086
|
-
__decorateClass$
|
|
8087
|
-
__decorateClass$
|
|
8155
|
+
__decorateClass$w([attr], _Dropdown.prototype, "appearance", 2);
|
|
8156
|
+
__decorateClass$w([attr], _Dropdown.prototype, "size", 2);
|
|
8088
8157
|
let Dropdown = _Dropdown;
|
|
8089
8158
|
|
|
8090
|
-
const styles$
|
|
8159
|
+
const styles$s = css`
|
|
8091
8160
|
${display("inline-flex")}
|
|
8092
8161
|
|
|
8093
8162
|
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:${colorNeutralForeground4}}.control{appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:none;box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host(${smallState}) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host(${largeState}) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;justify-content:center;width:20px}:host(${smallState}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host(${largeState}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host(:where(${outlineState},${transparentState})) .control::before{background-color:${colorNeutralStrokeAccessible}}:host(${transparentState}) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}:host(${outlineState}) .control{--control-border-color:${colorNeutralStroke1}}:host(${outlineState}) .control:hover{--control-border-color:${colorNeutralStroke1Hover}}:host(:where(${outlineState},${transparentState})) .control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}:host(${outlineState}) .control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}:host(${outlineState}) .control:active{--control-border-color:${colorNeutralStroke1Pressed}}:host(:where(${outlineState},${transparentState})) .control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}:host(:where(${outlineState},${transparentState})) .control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host(${filledDarkerState}) .control{background-color:${colorNeutralBackground3}}:host(:where(${filledLighterState},${filledDarkerState})) .control{--control-border-color:${colorTransparentStroke}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin});max-height:50vh}:host(${smallState}) ::slotted([popover]){margin-block-start:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host(${largeState}) ::slotted([popover]){margin-block-start:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}:host(${flipBlockState}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`;
|
|
8094
8163
|
|
|
8095
|
-
const definition$
|
|
8164
|
+
const definition$t = Dropdown.compose({
|
|
8096
8165
|
name: `${FluentDesignSystem.prefix}-dropdown`,
|
|
8097
|
-
template: template$
|
|
8098
|
-
styles: styles$
|
|
8166
|
+
template: template$t,
|
|
8167
|
+
styles: styles$s,
|
|
8099
8168
|
shadowOptions: {
|
|
8100
8169
|
slotAssignment: "manual"
|
|
8101
8170
|
}
|
|
8102
8171
|
});
|
|
8103
8172
|
|
|
8104
|
-
definition$
|
|
8173
|
+
definition$t.define(FluentDesignSystem.registry);
|
|
8105
8174
|
|
|
8106
8175
|
const LabelPosition = {
|
|
8107
8176
|
above: "above",
|
|
@@ -8122,12 +8191,12 @@ const ValidationFlags = {
|
|
|
8122
8191
|
valid: "valid"
|
|
8123
8192
|
};
|
|
8124
8193
|
|
|
8125
|
-
var __defProp$
|
|
8126
|
-
var __getOwnPropDesc$
|
|
8127
|
-
var __decorateClass$
|
|
8128
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8194
|
+
var __defProp$v = Object.defineProperty;
|
|
8195
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
8196
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
8197
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
8129
8198
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8130
|
-
if (kind && result) __defProp$
|
|
8199
|
+
if (kind && result) __defProp$v(target, key, result);
|
|
8131
8200
|
return result;
|
|
8132
8201
|
};
|
|
8133
8202
|
class BaseField extends FASTElement {
|
|
@@ -8295,26 +8364,35 @@ class BaseField extends FASTElement {
|
|
|
8295
8364
|
}
|
|
8296
8365
|
}
|
|
8297
8366
|
}
|
|
8298
|
-
__decorateClass$
|
|
8299
|
-
__decorateClass$
|
|
8300
|
-
__decorateClass$
|
|
8301
|
-
__decorateClass$
|
|
8367
|
+
__decorateClass$v([observable], BaseField.prototype, "labelSlot", 2);
|
|
8368
|
+
__decorateClass$v([observable], BaseField.prototype, "messageSlot", 2);
|
|
8369
|
+
__decorateClass$v([observable], BaseField.prototype, "slottedInputs", 2);
|
|
8370
|
+
__decorateClass$v([observable], BaseField.prototype, "input", 2);
|
|
8371
|
+
|
|
8372
|
+
var __defProp$u = Object.defineProperty;
|
|
8373
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
8374
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
8375
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
8376
|
+
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$u(target, key, result);
|
|
8378
|
+
return result;
|
|
8379
|
+
};
|
|
8302
8380
|
class Field extends BaseField {
|
|
8303
8381
|
constructor() {
|
|
8304
8382
|
super(...arguments);
|
|
8305
8383
|
this.labelPosition = LabelPosition.above;
|
|
8306
8384
|
}
|
|
8307
8385
|
}
|
|
8308
|
-
__decorateClass$
|
|
8386
|
+
__decorateClass$u([attr({
|
|
8309
8387
|
attribute: "label-position"
|
|
8310
8388
|
})], Field.prototype, "labelPosition", 2);
|
|
8311
8389
|
|
|
8312
|
-
const styles$
|
|
8390
|
+
const styles$r = css`
|
|
8313
8391
|
${display("inline-grid")}
|
|
8314
8392
|
|
|
8315
8393
|
:host{color:${colorNeutralForeground1};align-items:center;gap:0 ${spacingHorizontalM};justify-items:start;position:relative}:has([slot='message']){color:${colorNeutralForeground1};row-gap:${spacingVerticalS}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${spacingHorizontalM}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${spacingVerticalXXS}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${spacingVerticalM}}:host([label-position='below']:not(${hasMessageState})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${spacingVerticalXXS};grid-area:message}:host(${focusVisibleState}:focus-within){border-radius:${borderRadiusMedium};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};grid-area:label;line-height:${lineHeightBase300};user-select:none}:host([size='small']) ::slotted(label){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) ::slotted(label){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${fontWeightSemibold}}:host(${disabledState}){cursor:default}::slotted([flag]){display:none}:host(${badInputState}) ::slotted([flag='${ValidationFlags.badInput}']),:host(${customErrorState}) ::slotted([flag='${ValidationFlags.customError}']),:host(${patternMismatchState}) ::slotted([flag='${ValidationFlags.patternMismatch}']),:host(${rangeOverflowState}) ::slotted([flag='${ValidationFlags.rangeOverflow}']),:host(${rangeUnderflowState}) ::slotted([flag='${ValidationFlags.rangeUnderflow}']),:host(${stepMismatchState}) ::slotted([flag='${ValidationFlags.stepMismatch}']),:host(${tooLongState}) ::slotted([flag='${ValidationFlags.tooLong}']),:host(${tooShortState}) ::slotted([flag='${ValidationFlags.tooShort}']),:host(${typeMismatchState}) ::slotted([flag='${ValidationFlags.typeMismatch}']),:host(${valueMissingState}) ::slotted([flag='${ValidationFlags.valueMissing}']),:host(${validState}) ::slotted([flag='${ValidationFlags.valid}']){display:block}`;
|
|
8316
8394
|
|
|
8317
|
-
const template$
|
|
8395
|
+
const template$s = html`<template @click="${(x, c) => x.clickHandler(c.event)}" @change="${(x, c) => x.changeHandler(c.event)}" @focusin="${(x, c) => x.focusinHandler(c.event)}" @focusout="${(x, c) => x.focusoutHandler(c.event)}" ${children({
|
|
8318
8396
|
property: "slottedInputs",
|
|
8319
8397
|
attributes: true,
|
|
8320
8398
|
attributeFilter: ["disabled", "required", "readonly"],
|
|
@@ -8326,16 +8404,16 @@ const template$q = html`<template @click="${(x, c) => x.clickHandler(c.event)}"
|
|
|
8326
8404
|
filter: elements("[flag]")
|
|
8327
8405
|
})}></slot></template>`;
|
|
8328
8406
|
|
|
8329
|
-
const definition$
|
|
8407
|
+
const definition$s = Field.compose({
|
|
8330
8408
|
name: `${FluentDesignSystem.prefix}-field`,
|
|
8331
|
-
template: template$
|
|
8332
|
-
styles: styles$
|
|
8409
|
+
template: template$s,
|
|
8410
|
+
styles: styles$r,
|
|
8333
8411
|
shadowOptions: {
|
|
8334
8412
|
delegatesFocus: true
|
|
8335
8413
|
}
|
|
8336
8414
|
});
|
|
8337
8415
|
|
|
8338
|
-
definition$
|
|
8416
|
+
definition$s.define(FluentDesignSystem.registry);
|
|
8339
8417
|
|
|
8340
8418
|
const ImageFit = {
|
|
8341
8419
|
none: "none",
|
|
@@ -8349,12 +8427,12 @@ const ImageShape = {
|
|
|
8349
8427
|
square: "square"
|
|
8350
8428
|
};
|
|
8351
8429
|
|
|
8352
|
-
var __defProp$
|
|
8353
|
-
var __getOwnPropDesc$
|
|
8354
|
-
var __decorateClass$
|
|
8355
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8430
|
+
var __defProp$t = Object.defineProperty;
|
|
8431
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
8432
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
8433
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
8356
8434
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8357
|
-
if (kind && result) __defProp$
|
|
8435
|
+
if (kind && result) __defProp$t(target, key, result);
|
|
8358
8436
|
return result;
|
|
8359
8437
|
};
|
|
8360
8438
|
class Image extends FASTElement {
|
|
@@ -8408,30 +8486,30 @@ class Image extends FASTElement {
|
|
|
8408
8486
|
swapStates(this.elementInternals, prev, next, ImageShape);
|
|
8409
8487
|
}
|
|
8410
8488
|
}
|
|
8411
|
-
__decorateClass$
|
|
8489
|
+
__decorateClass$t([attr({
|
|
8412
8490
|
mode: "boolean"
|
|
8413
8491
|
})], Image.prototype, "block", 2);
|
|
8414
|
-
__decorateClass$
|
|
8492
|
+
__decorateClass$t([attr({
|
|
8415
8493
|
mode: "boolean"
|
|
8416
8494
|
})], Image.prototype, "bordered", 2);
|
|
8417
|
-
__decorateClass$
|
|
8495
|
+
__decorateClass$t([attr({
|
|
8418
8496
|
mode: "boolean"
|
|
8419
8497
|
})], Image.prototype, "shadow", 2);
|
|
8420
|
-
__decorateClass$
|
|
8421
|
-
__decorateClass$
|
|
8498
|
+
__decorateClass$t([attr], Image.prototype, "fit", 2);
|
|
8499
|
+
__decorateClass$t([attr], Image.prototype, "shape", 2);
|
|
8422
8500
|
|
|
8423
|
-
const template$
|
|
8501
|
+
const template$r = html`<slot></slot>`;
|
|
8424
8502
|
|
|
8425
|
-
const styles$
|
|
8503
|
+
const styles$q = css`
|
|
8426
8504
|
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${blockState}) ::slotted(img){width:100%;height:auto}:host(${borderedState}) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host(${fitNoneState}) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(${fitCenterState}) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(${fitContainState}) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(${fitCoverState}) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(${shadowState}) ::slotted(img){box-shadow:${shadow4}}:host(${circularState}) ::slotted(img){border-radius:${borderRadiusCircular}}:host(${roundedState}) ::slotted(img){border-radius:${borderRadiusMedium}}`;
|
|
8427
8505
|
|
|
8428
|
-
const definition$
|
|
8506
|
+
const definition$r = Image.compose({
|
|
8429
8507
|
name: `${FluentDesignSystem.prefix}-image`,
|
|
8430
|
-
template: template$
|
|
8431
|
-
styles: styles$
|
|
8508
|
+
template: template$r,
|
|
8509
|
+
styles: styles$q
|
|
8432
8510
|
});
|
|
8433
8511
|
|
|
8434
|
-
definition$
|
|
8512
|
+
definition$r.define(FluentDesignSystem.registry);
|
|
8435
8513
|
|
|
8436
8514
|
const LabelSize = {
|
|
8437
8515
|
small: "small",
|
|
@@ -8443,12 +8521,12 @@ const LabelWeight = {
|
|
|
8443
8521
|
semibold: "semibold"
|
|
8444
8522
|
};
|
|
8445
8523
|
|
|
8446
|
-
var __defProp$
|
|
8447
|
-
var __getOwnPropDesc$
|
|
8448
|
-
var __decorateClass$
|
|
8449
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8524
|
+
var __defProp$s = Object.defineProperty;
|
|
8525
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
8526
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
8527
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
8450
8528
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8451
|
-
if (kind && result) __defProp$
|
|
8529
|
+
if (kind && result) __defProp$s(target, key, result);
|
|
8452
8530
|
return result;
|
|
8453
8531
|
};
|
|
8454
8532
|
class Label extends FASTElement {
|
|
@@ -8488,16 +8566,16 @@ class Label extends FASTElement {
|
|
|
8488
8566
|
toggleState(this.elementInternals, "disabled", next);
|
|
8489
8567
|
}
|
|
8490
8568
|
}
|
|
8491
|
-
__decorateClass$
|
|
8492
|
-
__decorateClass$
|
|
8493
|
-
__decorateClass$
|
|
8569
|
+
__decorateClass$s([attr], Label.prototype, "size", 2);
|
|
8570
|
+
__decorateClass$s([attr], Label.prototype, "weight", 2);
|
|
8571
|
+
__decorateClass$s([attr({
|
|
8494
8572
|
mode: "boolean"
|
|
8495
8573
|
})], Label.prototype, "disabled", 2);
|
|
8496
|
-
__decorateClass$
|
|
8574
|
+
__decorateClass$s([attr({
|
|
8497
8575
|
mode: "boolean"
|
|
8498
8576
|
})], Label.prototype, "required", 2);
|
|
8499
8577
|
|
|
8500
|
-
const styles$
|
|
8578
|
+
const styles$p = css`
|
|
8501
8579
|
${display("inline-flex")}
|
|
8502
8580
|
|
|
8503
8581
|
:host{color:${colorNeutralForeground1};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};user-select:none}.asterisk{color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}:host(${smallState}){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${largeState}){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(:is(${largeState},${semiboldState})){font-weight:${fontWeightSemibold}}:host(${disabledState}),:host(${disabledState}) .asterisk{color:${colorNeutralForegroundDisabled}}`;
|
|
@@ -8505,26 +8583,26 @@ const styles$n = css`
|
|
|
8505
8583
|
function labelTemplate() {
|
|
8506
8584
|
return html`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${x => !x.required}">*</span>`;
|
|
8507
8585
|
}
|
|
8508
|
-
const template$
|
|
8586
|
+
const template$q = labelTemplate();
|
|
8509
8587
|
|
|
8510
|
-
const definition$
|
|
8588
|
+
const definition$q = Label.compose({
|
|
8511
8589
|
name: `${FluentDesignSystem.prefix}-label`,
|
|
8512
|
-
template: template$
|
|
8513
|
-
styles: styles$
|
|
8590
|
+
template: template$q,
|
|
8591
|
+
styles: styles$p
|
|
8514
8592
|
});
|
|
8515
8593
|
|
|
8516
|
-
definition$
|
|
8594
|
+
definition$q.define(FluentDesignSystem.registry);
|
|
8517
8595
|
|
|
8518
8596
|
const LinkAppearance = {
|
|
8519
8597
|
subtle: "subtle"
|
|
8520
8598
|
};
|
|
8521
8599
|
|
|
8522
|
-
var __defProp$
|
|
8523
|
-
var __getOwnPropDesc$
|
|
8524
|
-
var __decorateClass$
|
|
8525
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8600
|
+
var __defProp$r = Object.defineProperty;
|
|
8601
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
8602
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
8603
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
8526
8604
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8527
|
-
if (kind && result) __defProp$
|
|
8605
|
+
if (kind && result) __defProp$r(target, key, result);
|
|
8528
8606
|
return result;
|
|
8529
8607
|
};
|
|
8530
8608
|
class Link extends BaseAnchor {
|
|
@@ -8549,12 +8627,12 @@ class Link extends BaseAnchor {
|
|
|
8549
8627
|
toggleState(this.elementInternals, "inline", next);
|
|
8550
8628
|
}
|
|
8551
8629
|
}
|
|
8552
|
-
__decorateClass$
|
|
8553
|
-
__decorateClass$
|
|
8630
|
+
__decorateClass$r([attr], Link.prototype, "appearance", 2);
|
|
8631
|
+
__decorateClass$r([attr({
|
|
8554
8632
|
mode: "boolean"
|
|
8555
8633
|
})], Link.prototype, "inline", 2);
|
|
8556
8634
|
|
|
8557
|
-
const styles$
|
|
8635
|
+
const styles$o = css`
|
|
8558
8636
|
${display("inline")}
|
|
8559
8637
|
|
|
8560
8638
|
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${strokeWidthThin};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${colorBrandForegroundLinkHover}}:host(:active){color:${colorBrandForegroundLinkPressed}}:host(${subtleState}:hover){color:${colorNeutralForeground2LinkHover}}:host(${subtleState}:active){color:${colorNeutralForeground2LinkPressed}}}:host(${subtleState}){color:${colorNeutralForeground2Link}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(${inlineState}){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -8563,22 +8641,22 @@ const styles$m = css`
|
|
|
8563
8641
|
function anchorTemplate() {
|
|
8564
8642
|
return html`<template tabindex="0" @click="${(x, c) => x.clickHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}"><slot></slot></template>`;
|
|
8565
8643
|
}
|
|
8566
|
-
const template$
|
|
8644
|
+
const template$p = anchorTemplate();
|
|
8567
8645
|
|
|
8568
|
-
const definition$
|
|
8646
|
+
const definition$p = Link.compose({
|
|
8569
8647
|
name: `${FluentDesignSystem.prefix}-link`,
|
|
8570
|
-
template: template$
|
|
8571
|
-
styles: styles$
|
|
8648
|
+
template: template$p,
|
|
8649
|
+
styles: styles$o
|
|
8572
8650
|
});
|
|
8573
8651
|
|
|
8574
|
-
definition$
|
|
8652
|
+
definition$p.define(FluentDesignSystem.registry);
|
|
8575
8653
|
|
|
8576
|
-
var __defProp$
|
|
8577
|
-
var __getOwnPropDesc$
|
|
8578
|
-
var __decorateClass$
|
|
8579
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8654
|
+
var __defProp$q = Object.defineProperty;
|
|
8655
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
8656
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
8657
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
8580
8658
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8581
|
-
if (kind && result) __defProp$
|
|
8659
|
+
if (kind && result) __defProp$q(target, key, result);
|
|
8582
8660
|
return result;
|
|
8583
8661
|
};
|
|
8584
8662
|
class Listbox extends FASTElement {
|
|
@@ -8716,16 +8794,16 @@ class Listbox extends FASTElement {
|
|
|
8716
8794
|
this.selectedIndex = selectedIndex;
|
|
8717
8795
|
}
|
|
8718
8796
|
}
|
|
8719
|
-
__decorateClass$
|
|
8797
|
+
__decorateClass$q([attr({
|
|
8720
8798
|
attribute: "id",
|
|
8721
8799
|
mode: "fromView"
|
|
8722
8800
|
})], Listbox.prototype, "id", 2);
|
|
8723
|
-
__decorateClass$
|
|
8724
|
-
__decorateClass$
|
|
8725
|
-
__decorateClass$
|
|
8726
|
-
__decorateClass$
|
|
8801
|
+
__decorateClass$q([observable], Listbox.prototype, "multiple", 2);
|
|
8802
|
+
__decorateClass$q([observable], Listbox.prototype, "options", 2);
|
|
8803
|
+
__decorateClass$q([observable], Listbox.prototype, "selectedIndex", 2);
|
|
8804
|
+
__decorateClass$q([observable], Listbox.prototype, "dropdown", 2);
|
|
8727
8805
|
|
|
8728
|
-
const styles$
|
|
8806
|
+
const styles$n = css`
|
|
8729
8807
|
${display("inline-flex")}
|
|
8730
8808
|
|
|
8731
8809
|
:host{background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:none;box-shadow:${shadow16};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${spacingHorizontalXS};row-gap:${spacingHorizontalXXS};width:auto}`;
|
|
@@ -8736,19 +8814,19 @@ function listboxTemplate() {
|
|
|
8736
8814
|
filter: node => isDropdownOption(node)
|
|
8737
8815
|
})}></slot></template>`;
|
|
8738
8816
|
}
|
|
8739
|
-
const template$
|
|
8817
|
+
const template$o = listboxTemplate();
|
|
8740
8818
|
|
|
8741
|
-
const definition$
|
|
8819
|
+
const definition$o = Listbox.compose({
|
|
8742
8820
|
name: `${FluentDesignSystem.prefix}-listbox`,
|
|
8743
|
-
template: template$
|
|
8744
|
-
styles: styles$
|
|
8821
|
+
template: template$o,
|
|
8822
|
+
styles: styles$n
|
|
8745
8823
|
});
|
|
8746
8824
|
|
|
8747
|
-
definition$
|
|
8825
|
+
definition$o.define(FluentDesignSystem.registry);
|
|
8748
8826
|
|
|
8749
8827
|
class MenuButton extends Button {}
|
|
8750
8828
|
|
|
8751
|
-
const template$
|
|
8829
|
+
const template$n = buttonTemplate$1({
|
|
8752
8830
|
end: html.partial( /* html */
|
|
8753
8831
|
`
|
|
8754
8832
|
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -8757,13 +8835,13 @@ const template$l = buttonTemplate$1({
|
|
|
8757
8835
|
`)
|
|
8758
8836
|
});
|
|
8759
8837
|
|
|
8760
|
-
const definition$
|
|
8838
|
+
const definition$n = MenuButton.compose({
|
|
8761
8839
|
name: `${FluentDesignSystem.prefix}-menu-button`,
|
|
8762
|
-
template: template$
|
|
8763
|
-
styles: styles$
|
|
8840
|
+
template: template$n,
|
|
8841
|
+
styles: styles$E
|
|
8764
8842
|
});
|
|
8765
8843
|
|
|
8766
|
-
definition$
|
|
8844
|
+
definition$n.define(FluentDesignSystem.registry);
|
|
8767
8845
|
|
|
8768
8846
|
const MenuItemRole = {
|
|
8769
8847
|
/**
|
|
@@ -8785,12 +8863,12 @@ const MenuItemRole = {
|
|
|
8785
8863
|
[MenuItemRole.menuitemradio]: "menuitemradio"
|
|
8786
8864
|
});
|
|
8787
8865
|
|
|
8788
|
-
var __defProp$
|
|
8789
|
-
var __getOwnPropDesc$
|
|
8790
|
-
var __decorateClass$
|
|
8791
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8866
|
+
var __defProp$p = Object.defineProperty;
|
|
8867
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
8868
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
8869
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
8792
8870
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8793
|
-
if (kind && result) __defProp$
|
|
8871
|
+
if (kind && result) __defProp$p(target, key, result);
|
|
8794
8872
|
return result;
|
|
8795
8873
|
};
|
|
8796
8874
|
class MenuItem extends FASTElement {
|
|
@@ -8979,21 +9057,21 @@ class MenuItem extends FASTElement {
|
|
|
8979
9057
|
this.elementInternals.ariaChecked = this.role !== MenuItemRole.menuitem ? `${!!this.checked}` : null;
|
|
8980
9058
|
}
|
|
8981
9059
|
}
|
|
8982
|
-
__decorateClass$
|
|
9060
|
+
__decorateClass$p([attr({
|
|
8983
9061
|
mode: "boolean"
|
|
8984
9062
|
})], MenuItem.prototype, "disabled", 2);
|
|
8985
|
-
__decorateClass$
|
|
8986
|
-
__decorateClass$
|
|
9063
|
+
__decorateClass$p([attr], MenuItem.prototype, "role", 2);
|
|
9064
|
+
__decorateClass$p([attr({
|
|
8987
9065
|
mode: "boolean"
|
|
8988
9066
|
})], MenuItem.prototype, "checked", 2);
|
|
8989
|
-
__decorateClass$
|
|
9067
|
+
__decorateClass$p([attr({
|
|
8990
9068
|
mode: "boolean"
|
|
8991
9069
|
})], MenuItem.prototype, "hidden", 2);
|
|
8992
|
-
__decorateClass$
|
|
8993
|
-
__decorateClass$
|
|
9070
|
+
__decorateClass$p([observable], MenuItem.prototype, "slottedSubmenu", 2);
|
|
9071
|
+
__decorateClass$p([observable], MenuItem.prototype, "submenu", 2);
|
|
8994
9072
|
applyMixins(MenuItem, StartEnd);
|
|
8995
9073
|
|
|
8996
|
-
const styles$
|
|
9074
|
+
const styles$m = css`
|
|
8997
9075
|
${display("grid")}
|
|
8998
9076
|
|
|
8999
9077
|
:host{--indent:0;align-items:center;background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};color:${colorNeutralForeground2};contain:layout;cursor:pointer;flex-shrink:0;font:${fontWeightRegular} ${fontSizeBase300} / ${lineHeightBase300} ${fontFamilyBase};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground2Pressed}}:host(:active) ::slotted([slot='start']){color:${colorCompoundBrandForeground1Pressed}}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}:host(:focus-visible){border-radius:${borderRadiusMedium};outline:2px solid ${colorStrokeFocus2}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${checkedState})) .indicator,:host(:not(${checkedState})) ::slotted([slot='indicator']),:host(:not(${submenuState})) .submenu-glyph,:host(:not(${submenuState})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${colorNeutralForeground3};font:${fontWeightRegular} ${fontSizeBase200} / ${lineHeightBase200} ${fontFamilyBase};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${submenuState}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${submenuState}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -9006,25 +9084,25 @@ function menuItemTemplate(options = {}) {
|
|
|
9006
9084
|
property: "slottedSubmenu"
|
|
9007
9085
|
})}></slot></template>`;
|
|
9008
9086
|
}
|
|
9009
|
-
const template$
|
|
9087
|
+
const template$m = menuItemTemplate({
|
|
9010
9088
|
indicator: Checkmark16Filled,
|
|
9011
9089
|
submenuGlyph: chevronRight16Filled
|
|
9012
9090
|
});
|
|
9013
9091
|
|
|
9014
|
-
const definition$
|
|
9092
|
+
const definition$m = MenuItem.compose({
|
|
9015
9093
|
name: `${FluentDesignSystem.prefix}-menu-item`,
|
|
9016
|
-
template: template$
|
|
9017
|
-
styles: styles$
|
|
9094
|
+
template: template$m,
|
|
9095
|
+
styles: styles$m
|
|
9018
9096
|
});
|
|
9019
9097
|
|
|
9020
|
-
definition$
|
|
9098
|
+
definition$m.define(FluentDesignSystem.registry);
|
|
9021
9099
|
|
|
9022
|
-
var __defProp$
|
|
9023
|
-
var __getOwnPropDesc$
|
|
9024
|
-
var __decorateClass$
|
|
9025
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9100
|
+
var __defProp$o = Object.defineProperty;
|
|
9101
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
9102
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
9103
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
9026
9104
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9027
|
-
if (kind && result) __defProp$
|
|
9105
|
+
if (kind && result) __defProp$o(target, key, result);
|
|
9028
9106
|
return result;
|
|
9029
9107
|
};
|
|
9030
9108
|
const _MenuList = class _MenuList extends FASTElement {
|
|
@@ -9240,10 +9318,10 @@ const _MenuList = class _MenuList extends FASTElement {
|
|
|
9240
9318
|
}
|
|
9241
9319
|
};
|
|
9242
9320
|
_MenuList.focusableElementRoles = MenuItemRole;
|
|
9243
|
-
__decorateClass$
|
|
9321
|
+
__decorateClass$o([observable], _MenuList.prototype, "items", 2);
|
|
9244
9322
|
let MenuList = _MenuList;
|
|
9245
9323
|
|
|
9246
|
-
const styles$
|
|
9324
|
+
const styles$l = css`
|
|
9247
9325
|
${display("flex")}
|
|
9248
9326
|
|
|
9249
9327
|
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${colorNeutralBackground1};border:1px solid ${colorTransparentStroke};border-radius:${borderRadiusMedium};box-shadow:${shadow16};padding:4px;row-gap:2px}`;
|
|
@@ -9251,22 +9329,22 @@ const styles$j = css`
|
|
|
9251
9329
|
function menuTemplate$1() {
|
|
9252
9330
|
return html`<template slot="${x => x.slot ? x.slot : x.isNestedMenu() ? "submenu" : void 0}" @keydown="${(x, c) => x.handleMenuKeyDown(c.event)}" @focusout="${(x, c) => x.handleFocusOut(c.event)}"><slot ${slotted("items")}></slot></template>`;
|
|
9253
9331
|
}
|
|
9254
|
-
const template$
|
|
9332
|
+
const template$l = menuTemplate$1();
|
|
9255
9333
|
|
|
9256
|
-
const definition$
|
|
9334
|
+
const definition$l = MenuList.compose({
|
|
9257
9335
|
name: `${FluentDesignSystem.prefix}-menu-list`,
|
|
9258
|
-
template: template$
|
|
9259
|
-
styles: styles$
|
|
9336
|
+
template: template$l,
|
|
9337
|
+
styles: styles$l
|
|
9260
9338
|
});
|
|
9261
9339
|
|
|
9262
|
-
definition$
|
|
9340
|
+
definition$l.define(FluentDesignSystem.registry);
|
|
9263
9341
|
|
|
9264
|
-
var __defProp$
|
|
9265
|
-
var __getOwnPropDesc$
|
|
9266
|
-
var __decorateClass$
|
|
9267
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9342
|
+
var __defProp$n = Object.defineProperty;
|
|
9343
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
9344
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
9345
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
9268
9346
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9269
|
-
if (kind && result) __defProp$
|
|
9347
|
+
if (kind && result) __defProp$n(target, key, result);
|
|
9270
9348
|
return result;
|
|
9271
9349
|
};
|
|
9272
9350
|
class Menu extends FASTElement {
|
|
@@ -9546,30 +9624,30 @@ class Menu extends FASTElement {
|
|
|
9546
9624
|
}
|
|
9547
9625
|
}
|
|
9548
9626
|
}
|
|
9549
|
-
__decorateClass$
|
|
9627
|
+
__decorateClass$n([attr({
|
|
9550
9628
|
attribute: "open-on-hover",
|
|
9551
9629
|
mode: "boolean"
|
|
9552
9630
|
})], Menu.prototype, "openOnHover", 2);
|
|
9553
|
-
__decorateClass$
|
|
9631
|
+
__decorateClass$n([attr({
|
|
9554
9632
|
attribute: "open-on-context",
|
|
9555
9633
|
mode: "boolean"
|
|
9556
9634
|
})], Menu.prototype, "openOnContext", 2);
|
|
9557
|
-
__decorateClass$
|
|
9635
|
+
__decorateClass$n([attr({
|
|
9558
9636
|
attribute: "close-on-scroll",
|
|
9559
9637
|
mode: "boolean"
|
|
9560
9638
|
})], Menu.prototype, "closeOnScroll", 2);
|
|
9561
|
-
__decorateClass$
|
|
9639
|
+
__decorateClass$n([attr({
|
|
9562
9640
|
attribute: "persist-on-item-click",
|
|
9563
9641
|
mode: "boolean"
|
|
9564
9642
|
})], Menu.prototype, "persistOnItemClick", 2);
|
|
9565
|
-
__decorateClass$
|
|
9643
|
+
__decorateClass$n([attr({
|
|
9566
9644
|
mode: "boolean"
|
|
9567
9645
|
})], Menu.prototype, "split", 2);
|
|
9568
|
-
__decorateClass$
|
|
9569
|
-
__decorateClass$
|
|
9570
|
-
__decorateClass$
|
|
9646
|
+
__decorateClass$n([observable], Menu.prototype, "slottedMenuList", 2);
|
|
9647
|
+
__decorateClass$n([observable], Menu.prototype, "slottedTriggers", 2);
|
|
9648
|
+
__decorateClass$n([observable], Menu.prototype, "primaryAction", 2);
|
|
9571
9649
|
|
|
9572
|
-
const styles$
|
|
9650
|
+
const styles$k = css`
|
|
9573
9651
|
${display("inline-block")}
|
|
9574
9652
|
|
|
9575
9653
|
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${strokeWidthThin} solid ${colorNeutralStroke1};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${strokeWidthThin} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;
|
|
@@ -9583,15 +9661,15 @@ function menuTemplate() {
|
|
|
9583
9661
|
filter: elements()
|
|
9584
9662
|
})}></slot></template>`;
|
|
9585
9663
|
}
|
|
9586
|
-
const template$
|
|
9664
|
+
const template$k = menuTemplate();
|
|
9587
9665
|
|
|
9588
|
-
const definition$
|
|
9666
|
+
const definition$k = Menu.compose({
|
|
9589
9667
|
name: `${FluentDesignSystem.prefix}-menu`,
|
|
9590
|
-
template: template$
|
|
9591
|
-
styles: styles$
|
|
9668
|
+
template: template$k,
|
|
9669
|
+
styles: styles$k
|
|
9592
9670
|
});
|
|
9593
9671
|
|
|
9594
|
-
definition$
|
|
9672
|
+
definition$k.define(FluentDesignSystem.registry);
|
|
9595
9673
|
|
|
9596
9674
|
const MessageBarLayout = {
|
|
9597
9675
|
multiline: "multiline",
|
|
@@ -9608,12 +9686,12 @@ const MessageBarIntent = {
|
|
|
9608
9686
|
info: "info"
|
|
9609
9687
|
};
|
|
9610
9688
|
|
|
9611
|
-
var __defProp$
|
|
9612
|
-
var __getOwnPropDesc$
|
|
9613
|
-
var __decorateClass$
|
|
9614
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9689
|
+
var __defProp$m = Object.defineProperty;
|
|
9690
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
9691
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
9692
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
9615
9693
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9616
|
-
if (kind && result) __defProp$
|
|
9694
|
+
if (kind && result) __defProp$m(target, key, result);
|
|
9617
9695
|
return result;
|
|
9618
9696
|
};
|
|
9619
9697
|
class MessageBar extends FASTElement {
|
|
@@ -9659,36 +9737,36 @@ class MessageBar extends FASTElement {
|
|
|
9659
9737
|
swapStates(this.elementInternals, prev, next, MessageBarIntent);
|
|
9660
9738
|
}
|
|
9661
9739
|
}
|
|
9662
|
-
__decorateClass$
|
|
9663
|
-
__decorateClass$
|
|
9664
|
-
__decorateClass$
|
|
9740
|
+
__decorateClass$m([attr], MessageBar.prototype, "shape", 2);
|
|
9741
|
+
__decorateClass$m([attr], MessageBar.prototype, "layout", 2);
|
|
9742
|
+
__decorateClass$m([attr], MessageBar.prototype, "intent", 2);
|
|
9665
9743
|
|
|
9666
|
-
const styles$
|
|
9744
|
+
const styles$j = css`
|
|
9667
9745
|
: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'
|
|
9668
9746
|
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${spacingVerticalMNudge};padding-inline:${spacingHorizontalM}}.content{grid-area:body;max-width:520px;padding-block:${spacingVerticalMNudge};padding-inline:0}:host(${multiLineState}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${colorNeutralForeground3};margin-inline-end:${spacingHorizontalS}}:host(${multiLineState}) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${spacingHorizontalS};gap:${spacingHorizontalS}}:host(${multiLineState}) .actions{margin-block-start:${spacingVerticalMNudge};margin-inline-end:0}:host(${multiLineState}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${spacingVerticalS}}::slotted(*){font-size:inherit}`;
|
|
9669
9747
|
|
|
9670
9748
|
function messageBarTemplate() {
|
|
9671
9749
|
return html`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`;
|
|
9672
9750
|
}
|
|
9673
|
-
const template$
|
|
9751
|
+
const template$j = messageBarTemplate();
|
|
9674
9752
|
|
|
9675
|
-
const definition$
|
|
9753
|
+
const definition$j = MessageBar.compose({
|
|
9676
9754
|
name: `${FluentDesignSystem.prefix}-message-bar`,
|
|
9677
|
-
template: template$
|
|
9678
|
-
styles: styles$
|
|
9755
|
+
template: template$j,
|
|
9756
|
+
styles: styles$j,
|
|
9679
9757
|
shadowOptions: {
|
|
9680
9758
|
mode: FluentDesignSystem.shadowRootMode
|
|
9681
9759
|
}
|
|
9682
9760
|
});
|
|
9683
9761
|
|
|
9684
|
-
definition$
|
|
9762
|
+
definition$j.define(FluentDesignSystem.registry);
|
|
9685
9763
|
|
|
9686
|
-
var __defProp$
|
|
9687
|
-
var __getOwnPropDesc$
|
|
9688
|
-
var __decorateClass$
|
|
9689
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9764
|
+
var __defProp$l = Object.defineProperty;
|
|
9765
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
9766
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
9767
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
9690
9768
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9691
|
-
if (kind && result) __defProp$
|
|
9769
|
+
if (kind && result) __defProp$l(target, key, result);
|
|
9692
9770
|
return result;
|
|
9693
9771
|
};
|
|
9694
9772
|
class DropdownOption extends FASTElement {
|
|
@@ -9898,43 +9976,43 @@ class DropdownOption extends FASTElement {
|
|
|
9898
9976
|
* @public
|
|
9899
9977
|
*/
|
|
9900
9978
|
DropdownOption.formAssociated = true;
|
|
9901
|
-
__decorateClass$
|
|
9902
|
-
__decorateClass$
|
|
9979
|
+
__decorateClass$l([observable], DropdownOption.prototype, "active", 2);
|
|
9980
|
+
__decorateClass$l([attr({
|
|
9903
9981
|
attribute: "current-selected",
|
|
9904
9982
|
mode: "boolean"
|
|
9905
9983
|
})], DropdownOption.prototype, "currentSelected", 2);
|
|
9906
|
-
__decorateClass$
|
|
9984
|
+
__decorateClass$l([attr({
|
|
9907
9985
|
attribute: "selected",
|
|
9908
9986
|
mode: "boolean"
|
|
9909
9987
|
})], DropdownOption.prototype, "defaultSelected", 2);
|
|
9910
|
-
__decorateClass$
|
|
9911
|
-
__decorateClass$
|
|
9912
|
-
__decorateClass$
|
|
9988
|
+
__decorateClass$l([observable], DropdownOption.prototype, "descriptionSlot", 2);
|
|
9989
|
+
__decorateClass$l([observable], DropdownOption.prototype, "disabled", 2);
|
|
9990
|
+
__decorateClass$l([attr({
|
|
9913
9991
|
attribute: "disabled",
|
|
9914
9992
|
mode: "boolean"
|
|
9915
9993
|
})], DropdownOption.prototype, "disabledAttribute", 2);
|
|
9916
|
-
__decorateClass$
|
|
9994
|
+
__decorateClass$l([attr({
|
|
9917
9995
|
attribute: "form"
|
|
9918
9996
|
})], DropdownOption.prototype, "formAttribute", 2);
|
|
9919
|
-
__decorateClass$
|
|
9997
|
+
__decorateClass$l([attr({
|
|
9920
9998
|
mode: "boolean"
|
|
9921
9999
|
})], DropdownOption.prototype, "freeform", 2);
|
|
9922
|
-
__decorateClass$
|
|
10000
|
+
__decorateClass$l([attr({
|
|
9923
10001
|
attribute: "id"
|
|
9924
10002
|
})], DropdownOption.prototype, "id", 2);
|
|
9925
|
-
__decorateClass$
|
|
10003
|
+
__decorateClass$l([attr({
|
|
9926
10004
|
attribute: "value",
|
|
9927
10005
|
mode: "fromView"
|
|
9928
10006
|
})], DropdownOption.prototype, "initialValue", 2);
|
|
9929
|
-
__decorateClass$
|
|
9930
|
-
__decorateClass$
|
|
9931
|
-
__decorateClass$
|
|
9932
|
-
__decorateClass$
|
|
10007
|
+
__decorateClass$l([observable], DropdownOption.prototype, "multiple", 2);
|
|
10008
|
+
__decorateClass$l([attr], DropdownOption.prototype, "name", 2);
|
|
10009
|
+
__decorateClass$l([observable], DropdownOption.prototype, "start", 2);
|
|
10010
|
+
__decorateClass$l([attr({
|
|
9933
10011
|
attribute: "text",
|
|
9934
10012
|
mode: "fromView"
|
|
9935
10013
|
})], DropdownOption.prototype, "textAttribute", 2);
|
|
9936
10014
|
|
|
9937
|
-
const styles$
|
|
10015
|
+
const styles$i = css`
|
|
9938
10016
|
${display("inline-grid")}
|
|
9939
10017
|
|
|
9940
10018
|
:host{-webkit-tap-highlight-color:transparent;${typographyBody1Styles}
|
|
@@ -9960,17 +10038,17 @@ function dropdownOptionTemplate(options = {}) {
|
|
|
9960
10038
|
filter: elements("output")
|
|
9961
10039
|
})}></slot></div><div class="description" part="description"><slot name="description" ${slotted("descriptionSlot")}></slot></div>`;
|
|
9962
10040
|
}
|
|
9963
|
-
const template$
|
|
10041
|
+
const template$i = dropdownOptionTemplate({
|
|
9964
10042
|
checkedIndicator: checkedIndicator$1
|
|
9965
10043
|
});
|
|
9966
10044
|
|
|
9967
|
-
const definition$
|
|
10045
|
+
const definition$i = DropdownOption.compose({
|
|
9968
10046
|
name: `${FluentDesignSystem.prefix}-option`,
|
|
9969
|
-
template: template$
|
|
9970
|
-
styles: styles$
|
|
10047
|
+
template: template$i,
|
|
10048
|
+
styles: styles$i
|
|
9971
10049
|
});
|
|
9972
10050
|
|
|
9973
|
-
definition$
|
|
10051
|
+
definition$i.define(FluentDesignSystem.registry);
|
|
9974
10052
|
|
|
9975
10053
|
const ProgressBarThickness = {
|
|
9976
10054
|
medium: "medium",
|
|
@@ -9986,12 +10064,12 @@ const ProgressBarValidationState = {
|
|
|
9986
10064
|
error: "error"
|
|
9987
10065
|
};
|
|
9988
10066
|
|
|
9989
|
-
var __defProp$
|
|
9990
|
-
var __getOwnPropDesc$
|
|
9991
|
-
var __decorateClass$
|
|
9992
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10067
|
+
var __defProp$k = Object.defineProperty;
|
|
10068
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
10069
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
10070
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
9993
10071
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9994
|
-
if (kind && result) __defProp$
|
|
10072
|
+
if (kind && result) __defProp$k(target, key, result);
|
|
9995
10073
|
return result;
|
|
9996
10074
|
};
|
|
9997
10075
|
class BaseProgressBar extends FASTElement {
|
|
@@ -10049,19 +10127,28 @@ class BaseProgressBar extends FASTElement {
|
|
|
10049
10127
|
return range === 0 ? 0 : Math.fround((value - min) / range * 100);
|
|
10050
10128
|
}
|
|
10051
10129
|
}
|
|
10052
|
-
__decorateClass$
|
|
10130
|
+
__decorateClass$k([attr({
|
|
10053
10131
|
attribute: "validation-state"
|
|
10054
10132
|
})], BaseProgressBar.prototype, "validationState", 2);
|
|
10055
|
-
__decorateClass$
|
|
10133
|
+
__decorateClass$k([attr({
|
|
10056
10134
|
converter: nullableNumberConverter
|
|
10057
10135
|
})], BaseProgressBar.prototype, "value", 2);
|
|
10058
|
-
__decorateClass$
|
|
10136
|
+
__decorateClass$k([attr({
|
|
10059
10137
|
converter: nullableNumberConverter
|
|
10060
10138
|
})], BaseProgressBar.prototype, "min", 2);
|
|
10061
|
-
__decorateClass$
|
|
10139
|
+
__decorateClass$k([attr({
|
|
10062
10140
|
converter: nullableNumberConverter
|
|
10063
10141
|
})], BaseProgressBar.prototype, "max", 2);
|
|
10064
|
-
__decorateClass$
|
|
10142
|
+
__decorateClass$k([volatile], BaseProgressBar.prototype, "percentComplete", 1);
|
|
10143
|
+
|
|
10144
|
+
var __defProp$j = Object.defineProperty;
|
|
10145
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
10146
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
10147
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
10148
|
+
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$j(target, key, result);
|
|
10150
|
+
return result;
|
|
10151
|
+
};
|
|
10065
10152
|
class ProgressBar extends BaseProgressBar {
|
|
10066
10153
|
/**
|
|
10067
10154
|
* Handles changes to thickness attribute custom states
|
|
@@ -10080,10 +10167,10 @@ class ProgressBar extends BaseProgressBar {
|
|
|
10080
10167
|
swapStates(this.elementInternals, prev, next, ProgressBarShape);
|
|
10081
10168
|
}
|
|
10082
10169
|
}
|
|
10083
|
-
__decorateClass$
|
|
10084
|
-
__decorateClass$
|
|
10170
|
+
__decorateClass$j([attr], ProgressBar.prototype, "thickness", 2);
|
|
10171
|
+
__decorateClass$j([attr], ProgressBar.prototype, "shape", 2);
|
|
10085
10172
|
|
|
10086
|
-
const styles$
|
|
10173
|
+
const styles$h = css`
|
|
10087
10174
|
${display("block")}
|
|
10088
10175
|
|
|
10089
10176
|
:host{width:100%;height:2px;overflow-x:hidden;background-color:${colorNeutralBackground6};border-radius:${borderRadiusMedium};contain:content}:host(${largeState}){height:4px}:host(${squareState}){border-radius:${borderRadiusNone}}.indicator{background-color:${colorCompoundBrandBackground};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
|
|
@@ -10094,15 +10181,15 @@ const styles$f = css`
|
|
|
10094
10181
|
function progressTemplate() {
|
|
10095
10182
|
return html`<div class="indicator" part="indicator" style="${x => typeof x.value === "number" ? `width: ${x.percentComplete}%` : void 0}"></div>`;
|
|
10096
10183
|
}
|
|
10097
|
-
const template$
|
|
10184
|
+
const template$h = progressTemplate();
|
|
10098
10185
|
|
|
10099
|
-
const definition$
|
|
10186
|
+
const definition$h = ProgressBar.compose({
|
|
10100
10187
|
name: `${FluentDesignSystem.prefix}-progress-bar`,
|
|
10101
|
-
template: template$
|
|
10102
|
-
styles: styles$
|
|
10188
|
+
template: template$h,
|
|
10189
|
+
styles: styles$h
|
|
10103
10190
|
});
|
|
10104
10191
|
|
|
10105
|
-
definition$
|
|
10192
|
+
definition$h.define(FluentDesignSystem.registry);
|
|
10106
10193
|
|
|
10107
10194
|
class Radio extends BaseCheckbox {
|
|
10108
10195
|
connectedCallback() {
|
|
@@ -10187,12 +10274,12 @@ function getRootActiveElement(element) {
|
|
|
10187
10274
|
|
|
10188
10275
|
const RadioGroupOrientation = Orientation;
|
|
10189
10276
|
|
|
10190
|
-
var __defProp$
|
|
10191
|
-
var __getOwnPropDesc$
|
|
10192
|
-
var __decorateClass$
|
|
10193
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10277
|
+
var __defProp$i = Object.defineProperty;
|
|
10278
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
10279
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
10280
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
10194
10281
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10195
|
-
if (kind && result) __defProp$
|
|
10282
|
+
if (kind && result) __defProp$i(target, key, result);
|
|
10196
10283
|
return result;
|
|
10197
10284
|
};
|
|
10198
10285
|
class RadioGroup extends FASTElement {
|
|
@@ -10621,23 +10708,23 @@ class RadioGroup extends FASTElement {
|
|
|
10621
10708
|
* @public
|
|
10622
10709
|
*/
|
|
10623
10710
|
RadioGroup.formAssociated = true;
|
|
10624
|
-
__decorateClass$
|
|
10625
|
-
__decorateClass$
|
|
10711
|
+
__decorateClass$i([observable], RadioGroup.prototype, "checkedIndex", 2);
|
|
10712
|
+
__decorateClass$i([attr({
|
|
10626
10713
|
attribute: "disabled",
|
|
10627
10714
|
mode: "boolean"
|
|
10628
10715
|
})], RadioGroup.prototype, "disabled", 2);
|
|
10629
|
-
__decorateClass$
|
|
10716
|
+
__decorateClass$i([attr({
|
|
10630
10717
|
attribute: "value",
|
|
10631
10718
|
mode: "fromView"
|
|
10632
10719
|
})], RadioGroup.prototype, "initialValue", 2);
|
|
10633
|
-
__decorateClass$
|
|
10634
|
-
__decorateClass$
|
|
10635
|
-
__decorateClass$
|
|
10636
|
-
__decorateClass$
|
|
10720
|
+
__decorateClass$i([attr], RadioGroup.prototype, "name", 2);
|
|
10721
|
+
__decorateClass$i([attr], RadioGroup.prototype, "orientation", 2);
|
|
10722
|
+
__decorateClass$i([observable], RadioGroup.prototype, "radios", 2);
|
|
10723
|
+
__decorateClass$i([attr({
|
|
10637
10724
|
mode: "boolean"
|
|
10638
10725
|
})], RadioGroup.prototype, "required", 2);
|
|
10639
10726
|
|
|
10640
|
-
const styles$
|
|
10727
|
+
const styles$g = css`
|
|
10641
10728
|
${display("flex")}
|
|
10642
10729
|
|
|
10643
10730
|
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${spacingVerticalL}}:host(${disabledState}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${colorNeutralForeground3}}::slotted(:hover){color:${colorNeutralForeground2}}::slotted(:active){color:${colorNeutralForeground1}}::slotted(${disabledState}){color:${colorNeutralForegroundDisabled}}::slotted(${checkedState}){color:${colorNeutralForeground1}}`;
|
|
@@ -10645,17 +10732,17 @@ const styles$e = css`
|
|
|
10645
10732
|
function radioGroupTemplate() {
|
|
10646
10733
|
return html`<template @disabled="${(x, c) => x.disabledRadioHandler(c.event)}" @change="${(x, c) => x.changeHandler(c.event)}" @click="${(x, c) => x.clickHandler(c.event)}" @focusin="${(x, c) => x.focusinHandler(c.event)}" @focusout="${(x, c) => x.focusoutHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}"><slot @slotchange="${(x, c) => x.slotchangeHandler(c.event)}"></slot></template>`;
|
|
10647
10734
|
}
|
|
10648
|
-
const template$
|
|
10735
|
+
const template$g = radioGroupTemplate();
|
|
10649
10736
|
|
|
10650
|
-
const definition$
|
|
10737
|
+
const definition$g = RadioGroup.compose({
|
|
10651
10738
|
name: `${FluentDesignSystem.prefix}-radio-group`,
|
|
10652
|
-
template: template$
|
|
10653
|
-
styles: styles$
|
|
10739
|
+
template: template$g,
|
|
10740
|
+
styles: styles$g
|
|
10654
10741
|
});
|
|
10655
10742
|
|
|
10656
|
-
definition$
|
|
10743
|
+
definition$g.define(FluentDesignSystem.registry);
|
|
10657
10744
|
|
|
10658
|
-
const styles$
|
|
10745
|
+
const styles$f = css`
|
|
10659
10746
|
${display("inline-flex")}
|
|
10660
10747
|
|
|
10661
10748
|
:host{--size:16px;aspect-ratio:1;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${borderRadiusCircular};color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(${checkedState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}) .checked-indicator{background-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover) .checked-indicator{background-color:${colorCompoundBrandBackgroundHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:active) .checked-indicator{background-color:${colorCompoundBrandBackgroundPressed}}:host(:focus-visible){outline:none}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host(${checkedState}${disabledState}) .checked-indicator{background-color:${colorNeutralStrokeDisabled}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -10668,36 +10755,25 @@ const checkedIndicator = html.partial( /* html */
|
|
|
10668
10755
|
function radioTemplate(options = {}) {
|
|
10669
10756
|
return html`<template @click="${(x, c) => x.clickHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}" @keyup="${(x, c) => x.keyupHandler(c.event)}"><slot name="checked-indicator">${staticallyCompose(options.checkedIndicator)}</slot></template>`;
|
|
10670
10757
|
}
|
|
10671
|
-
const template$
|
|
10758
|
+
const template$f = radioTemplate({
|
|
10672
10759
|
checkedIndicator
|
|
10673
10760
|
});
|
|
10674
10761
|
|
|
10675
|
-
const definition$
|
|
10762
|
+
const definition$f = Radio.compose({
|
|
10676
10763
|
name: `${FluentDesignSystem.prefix}-radio`,
|
|
10677
|
-
template: template$
|
|
10678
|
-
styles: styles$
|
|
10764
|
+
template: template$f,
|
|
10765
|
+
styles: styles$f
|
|
10679
10766
|
});
|
|
10680
10767
|
|
|
10681
|
-
definition$
|
|
10768
|
+
definition$f.define(FluentDesignSystem.registry);
|
|
10682
10769
|
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
medium: "medium",
|
|
10691
|
-
large: "large"
|
|
10692
|
-
};
|
|
10693
|
-
|
|
10694
|
-
var __defProp$a = Object.defineProperty;
|
|
10695
|
-
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
10696
|
-
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
10697
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
10698
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10699
|
-
if (kind && result) __defProp$a(target, key, result);
|
|
10700
|
-
return result;
|
|
10770
|
+
var __defProp$h = Object.defineProperty;
|
|
10771
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
10772
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
10773
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
10774
|
+
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$h(target, key, result);
|
|
10776
|
+
return result;
|
|
10701
10777
|
};
|
|
10702
10778
|
class BaseRatingDisplay extends FASTElement {
|
|
10703
10779
|
constructor() {
|
|
@@ -10762,20 +10838,40 @@ class BaseRatingDisplay extends FASTElement {
|
|
|
10762
10838
|
return htmlString;
|
|
10763
10839
|
}
|
|
10764
10840
|
}
|
|
10765
|
-
__decorateClass$
|
|
10841
|
+
__decorateClass$h([attr({
|
|
10766
10842
|
converter: nullableNumberConverter
|
|
10767
10843
|
})], BaseRatingDisplay.prototype, "count", 2);
|
|
10768
|
-
__decorateClass$
|
|
10844
|
+
__decorateClass$h([attr({
|
|
10769
10845
|
attribute: "icon-view-box"
|
|
10770
10846
|
})], BaseRatingDisplay.prototype, "iconViewBox", 2);
|
|
10771
|
-
__decorateClass$
|
|
10847
|
+
__decorateClass$h([attr({
|
|
10772
10848
|
converter: nullableNumberConverter
|
|
10773
10849
|
})], BaseRatingDisplay.prototype, "max", 2);
|
|
10774
|
-
__decorateClass$
|
|
10850
|
+
__decorateClass$h([attr({
|
|
10775
10851
|
converter: nullableNumberConverter
|
|
10776
10852
|
})], BaseRatingDisplay.prototype, "value", 2);
|
|
10777
|
-
__decorateClass$
|
|
10778
|
-
__decorateClass$
|
|
10853
|
+
__decorateClass$h([observable], BaseRatingDisplay.prototype, "slottedIcon", 2);
|
|
10854
|
+
__decorateClass$h([observable], BaseRatingDisplay.prototype, "customIcon", 2);
|
|
10855
|
+
|
|
10856
|
+
const RatingDisplayColor = {
|
|
10857
|
+
neutral: "neutral",
|
|
10858
|
+
brand: "brand",
|
|
10859
|
+
marigold: "marigold"
|
|
10860
|
+
};
|
|
10861
|
+
const RatingDisplaySize = {
|
|
10862
|
+
small: "small",
|
|
10863
|
+
medium: "medium",
|
|
10864
|
+
large: "large"
|
|
10865
|
+
};
|
|
10866
|
+
|
|
10867
|
+
var __defProp$g = Object.defineProperty;
|
|
10868
|
+
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
10869
|
+
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
10870
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
10871
|
+
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$g(target, key, result);
|
|
10873
|
+
return result;
|
|
10874
|
+
};
|
|
10779
10875
|
class RatingDisplay extends BaseRatingDisplay {
|
|
10780
10876
|
constructor() {
|
|
10781
10877
|
super(...arguments);
|
|
@@ -10816,13 +10912,13 @@ class RatingDisplay extends BaseRatingDisplay {
|
|
|
10816
10912
|
return (this.compact ? 1 : this.max ?? 5) * 2;
|
|
10817
10913
|
}
|
|
10818
10914
|
}
|
|
10819
|
-
__decorateClass$
|
|
10820
|
-
__decorateClass$
|
|
10821
|
-
__decorateClass$
|
|
10915
|
+
__decorateClass$g([attr], RatingDisplay.prototype, "color", 2);
|
|
10916
|
+
__decorateClass$g([attr], RatingDisplay.prototype, "size", 2);
|
|
10917
|
+
__decorateClass$g([attr({
|
|
10822
10918
|
mode: "boolean"
|
|
10823
10919
|
})], RatingDisplay.prototype, "compact", 2);
|
|
10824
10920
|
|
|
10825
|
-
const styles$
|
|
10921
|
+
const styles$e = css`
|
|
10826
10922
|
${display("inline-flex")}
|
|
10827
10923
|
|
|
10828
10924
|
:host{--icon-size:16px;--icon-color-filled:${colorPaletteMarigoldBackground3};--icon-color-empty:${colorPaletteMarigoldBackground2};align-items:center;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};contain:layout style;user-select:none}:host(${smallState}){--icon-size:12px}:host(${largeState}){--icon-size:20px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${spacingHorizontalXXS}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${neutralState}) svg{--icon-color-filled:${colorNeutralForeground1}}:host(${brandState}) svg{--icon-color-filled:${colorBrandBackground}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host(${neutralState}:is([value^='-'],[value='0'])) svg,:host(${neutralState}:not([value])) svg,:host(${neutralState}) svg[selected] ~ svg{--icon-color-empty:${colorNeutralBackground1Pressed}}:host(${brandState}:is([value^='-'],[value='0'])) svg,:host(${brandState}:not([value])) svg,:host(${brandState}) svg[selected] ~ svg{--icon-color-empty:${colorBrandStroke2}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${spacingHorizontalXS};font-weight:${fontWeightSemibold}}:host(${smallState}) .value-label,:host(${smallState}) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalXXS}}:host(${largeState}) .value-label,:host(${largeState}) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalSNudge}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${spacingHorizontalXS}}:host(${smallState}) .count-label::before,:host(${smallState}) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalXXS}}:host(${largeState}) .count-label::before,:host(${largeState}) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalSNudge}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -10835,15 +10931,15 @@ function ratingDisplayTemplate() {
|
|
|
10835
10931
|
filter: elements("svg")
|
|
10836
10932
|
})}>${star}</slot><slot name="value"><span class="value-label" aria-hidden="true">${x => x.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${x => x.formattedCount}</span></slot>`;
|
|
10837
10933
|
}
|
|
10838
|
-
const template$
|
|
10934
|
+
const template$e = ratingDisplayTemplate();
|
|
10839
10935
|
|
|
10840
|
-
const definition$
|
|
10936
|
+
const definition$e = RatingDisplay.compose({
|
|
10841
10937
|
name: `${FluentDesignSystem.prefix}-rating-display`,
|
|
10842
|
-
template: template$
|
|
10843
|
-
styles: styles$
|
|
10938
|
+
template: template$e,
|
|
10939
|
+
styles: styles$e
|
|
10844
10940
|
});
|
|
10845
10941
|
|
|
10846
|
-
definition$
|
|
10942
|
+
definition$e.define(FluentDesignSystem.registry);
|
|
10847
10943
|
|
|
10848
10944
|
const SliderSize = {
|
|
10849
10945
|
small: "small",
|
|
@@ -10862,12 +10958,12 @@ function convertPixelToPercent(pixelPos, minPosition, maxPosition, direction) {
|
|
|
10862
10958
|
return pct;
|
|
10863
10959
|
}
|
|
10864
10960
|
|
|
10865
|
-
var __defProp$
|
|
10866
|
-
var __getOwnPropDesc$
|
|
10867
|
-
var __decorateClass$
|
|
10868
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10961
|
+
var __defProp$f = Object.defineProperty;
|
|
10962
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
10963
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
10964
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
10869
10965
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10870
|
-
if (kind && result) __defProp$
|
|
10966
|
+
if (kind && result) __defProp$f(target, key, result);
|
|
10871
10967
|
return result;
|
|
10872
10968
|
};
|
|
10873
10969
|
class Slider extends FASTElement {
|
|
@@ -11392,36 +11488,36 @@ class Slider extends FASTElement {
|
|
|
11392
11488
|
* @public
|
|
11393
11489
|
*/
|
|
11394
11490
|
Slider.formAssociated = true;
|
|
11395
|
-
__decorateClass$
|
|
11396
|
-
__decorateClass$
|
|
11491
|
+
__decorateClass$f([attr], Slider.prototype, "size", 2);
|
|
11492
|
+
__decorateClass$f([attr({
|
|
11397
11493
|
attribute: "value",
|
|
11398
11494
|
mode: "fromView"
|
|
11399
11495
|
})], Slider.prototype, "initialValue", 2);
|
|
11400
|
-
__decorateClass$
|
|
11401
|
-
__decorateClass$
|
|
11402
|
-
__decorateClass$
|
|
11403
|
-
__decorateClass$
|
|
11404
|
-
__decorateClass$
|
|
11405
|
-
__decorateClass$
|
|
11406
|
-
__decorateClass$
|
|
11407
|
-
__decorateClass$
|
|
11408
|
-
__decorateClass$
|
|
11409
|
-
__decorateClass$
|
|
11496
|
+
__decorateClass$f([observable], Slider.prototype, "direction", 2);
|
|
11497
|
+
__decorateClass$f([observable], Slider.prototype, "isDragging", 2);
|
|
11498
|
+
__decorateClass$f([observable], Slider.prototype, "position", 2);
|
|
11499
|
+
__decorateClass$f([observable], Slider.prototype, "trackWidth", 2);
|
|
11500
|
+
__decorateClass$f([observable], Slider.prototype, "trackMinWidth", 2);
|
|
11501
|
+
__decorateClass$f([observable], Slider.prototype, "trackHeight", 2);
|
|
11502
|
+
__decorateClass$f([observable], Slider.prototype, "trackLeft", 2);
|
|
11503
|
+
__decorateClass$f([observable], Slider.prototype, "trackMinHeight", 2);
|
|
11504
|
+
__decorateClass$f([observable], Slider.prototype, "valueTextFormatter", 2);
|
|
11505
|
+
__decorateClass$f([attr({
|
|
11410
11506
|
mode: "boolean"
|
|
11411
11507
|
})], Slider.prototype, "disabled", 2);
|
|
11412
|
-
__decorateClass$
|
|
11508
|
+
__decorateClass$f([attr({
|
|
11413
11509
|
converter: numberLikeStringConverter
|
|
11414
11510
|
})], Slider.prototype, "min", 2);
|
|
11415
|
-
__decorateClass$
|
|
11511
|
+
__decorateClass$f([attr({
|
|
11416
11512
|
converter: numberLikeStringConverter
|
|
11417
11513
|
})], Slider.prototype, "max", 2);
|
|
11418
|
-
__decorateClass$
|
|
11514
|
+
__decorateClass$f([attr({
|
|
11419
11515
|
converter: numberLikeStringConverter
|
|
11420
11516
|
})], Slider.prototype, "step", 2);
|
|
11421
|
-
__decorateClass$
|
|
11422
|
-
__decorateClass$
|
|
11517
|
+
__decorateClass$f([attr], Slider.prototype, "orientation", 2);
|
|
11518
|
+
__decorateClass$f([attr], Slider.prototype, "mode", 2);
|
|
11423
11519
|
|
|
11424
|
-
const styles$
|
|
11520
|
+
const styles$d = css`
|
|
11425
11521
|
${display("inline-grid")}
|
|
11426
11522
|
|
|
11427
11523
|
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${colorCompoundBrandBackground};--track-color:${colorNeutralStrokeAccessible};--slider-direction:90deg;--border-radius:${borderRadiusMedium};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${colorCompoundBrandBackgroundHover}}:host(:active){--rail-color:${colorCompoundBrandBackgroundPressed}}:host(:disabled){--rail-color:${colorNeutralForegroundDisabled};--track-color:${colorNeutralBackgroundDisabled}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${smallState}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${borderRadiusSmall}}:host(${verticalState}){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
|
|
@@ -11434,17 +11530,30 @@ const styles$b = css`
|
|
|
11434
11530
|
function sliderTemplate(options = {}) {
|
|
11435
11531
|
return html`<template tabindex="${x => x.disabled ? null : 0}" @pointerdown="${(x, c) => x.handlePointerDown(c.event)}" @keydown="${(x, c) => x.handleKeydown(c.event)}"><div ${ref("track")} part="track-container" class="track" style="${x => x.position}"></div><div ${ref("thumb")} part="thumb-container" class="thumb-container" style="${x => x.position}" @pointerdown="${(x, c) => x.handleThumbPointerDown(c.event)}"><slot name="thumb">${staticallyCompose(options.thumb)}</slot></div></template>`;
|
|
11436
11532
|
}
|
|
11437
|
-
const template$
|
|
11533
|
+
const template$d = sliderTemplate({
|
|
11438
11534
|
thumb: `<div class="thumb"></div>`
|
|
11439
11535
|
});
|
|
11440
11536
|
|
|
11441
|
-
const definition$
|
|
11537
|
+
const definition$d = Slider.compose({
|
|
11442
11538
|
name: `${FluentDesignSystem.prefix}-slider`,
|
|
11443
|
-
template: template$
|
|
11444
|
-
styles: styles$
|
|
11539
|
+
template: template$d,
|
|
11540
|
+
styles: styles$d
|
|
11445
11541
|
});
|
|
11446
11542
|
|
|
11447
|
-
definition$
|
|
11543
|
+
definition$d.define(FluentDesignSystem.registry);
|
|
11544
|
+
|
|
11545
|
+
class BaseSpinner extends FASTElement {
|
|
11546
|
+
constructor() {
|
|
11547
|
+
super();
|
|
11548
|
+
/**
|
|
11549
|
+
* The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
11550
|
+
*
|
|
11551
|
+
* @internal
|
|
11552
|
+
*/
|
|
11553
|
+
this.elementInternals = this.attachInternals();
|
|
11554
|
+
this.elementInternals.role = "progressbar";
|
|
11555
|
+
}
|
|
11556
|
+
}
|
|
11448
11557
|
|
|
11449
11558
|
const SpinnerAppearance = {
|
|
11450
11559
|
primary: "primary",
|
|
@@ -11460,26 +11569,14 @@ const SpinnerSize = {
|
|
|
11460
11569
|
huge: "huge"
|
|
11461
11570
|
};
|
|
11462
11571
|
|
|
11463
|
-
var __defProp$
|
|
11464
|
-
var __getOwnPropDesc$
|
|
11465
|
-
var __decorateClass$
|
|
11466
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11572
|
+
var __defProp$e = Object.defineProperty;
|
|
11573
|
+
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
11574
|
+
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
11575
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
11467
11576
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11468
|
-
if (kind && result) __defProp$
|
|
11577
|
+
if (kind && result) __defProp$e(target, key, result);
|
|
11469
11578
|
return result;
|
|
11470
11579
|
};
|
|
11471
|
-
class BaseSpinner extends FASTElement {
|
|
11472
|
-
constructor() {
|
|
11473
|
-
super();
|
|
11474
|
-
/**
|
|
11475
|
-
* The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
11476
|
-
*
|
|
11477
|
-
* @internal
|
|
11478
|
-
*/
|
|
11479
|
-
this.elementInternals = this.attachInternals();
|
|
11480
|
-
this.elementInternals.role = "progressbar";
|
|
11481
|
-
}
|
|
11482
|
-
}
|
|
11483
11580
|
class Spinner extends BaseSpinner {
|
|
11484
11581
|
/**
|
|
11485
11582
|
* Handles changes to size attribute custom states
|
|
@@ -11498,24 +11595,24 @@ class Spinner extends BaseSpinner {
|
|
|
11498
11595
|
swapStates(this.elementInternals, prev, next, SpinnerAppearance);
|
|
11499
11596
|
}
|
|
11500
11597
|
}
|
|
11501
|
-
__decorateClass$
|
|
11502
|
-
__decorateClass$
|
|
11598
|
+
__decorateClass$e([attr], Spinner.prototype, "size", 2);
|
|
11599
|
+
__decorateClass$e([attr], Spinner.prototype, "appearance", 2);
|
|
11503
11600
|
|
|
11504
|
-
const styles$
|
|
11601
|
+
const styles$c = css`
|
|
11505
11602
|
${display("inline-flex")}
|
|
11506
11603
|
|
|
11507
11604
|
:host{--duration:1.5s;--indicatorSize:${strokeWidthThicker};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${tinyState}){--indicatorSize:${strokeWidthThick};--size:20px}:host(${extraSmallState}){--indicatorSize:${strokeWidthThick};--size:24px}:host(${smallState}){--indicatorSize:${strokeWidthThick};--size:28px}:host(${largeState}){--indicatorSize:${strokeWidthThicker};--size:36px}:host(${extraLargeState}){--indicatorSize:${strokeWidthThicker};--size:40px}:host(${hugeState}){--indicatorSize:${strokeWidthThickest};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${curveEasyEase}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${colorBrandStroke2};border-radius:50%}:host(${invertedState}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${colorBrandStroke1};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host(${invertedState}) .indicator{color:${colorNeutralStrokeOnBrand2}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
11508
11605
|
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`));
|
|
11509
11606
|
|
|
11510
|
-
const template$
|
|
11607
|
+
const template$c = html`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`;
|
|
11511
11608
|
|
|
11512
|
-
const definition$
|
|
11609
|
+
const definition$c = Spinner.compose({
|
|
11513
11610
|
name: `${FluentDesignSystem.prefix}-spinner`,
|
|
11514
|
-
template: template$
|
|
11515
|
-
styles: styles$
|
|
11611
|
+
template: template$c,
|
|
11612
|
+
styles: styles$c
|
|
11516
11613
|
});
|
|
11517
11614
|
|
|
11518
|
-
definition$
|
|
11615
|
+
definition$c.define(FluentDesignSystem.registry);
|
|
11519
11616
|
|
|
11520
11617
|
class Switch extends BaseCheckbox {
|
|
11521
11618
|
constructor() {
|
|
@@ -11527,50 +11624,50 @@ class Switch extends BaseCheckbox {
|
|
|
11527
11624
|
function switchTemplate(options = {}) {
|
|
11528
11625
|
return html`<template tabindex="${x => !x.disabled ? 0 : void 0}" @click="${(x, c) => x.clickHandler(c.event)}" @input="${(x, c) => x.inputHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}" @keyup="${(x, c) => x.keyupHandler(c.event)}"><slot name="switch">${staticallyCompose(options.switch)}</slot></template>`;
|
|
11529
11626
|
}
|
|
11530
|
-
const template$
|
|
11627
|
+
const template$b = switchTemplate({
|
|
11531
11628
|
switch: `<span class="checked-indicator" part="checked-indicator"></span>`
|
|
11532
11629
|
});
|
|
11533
11630
|
|
|
11534
|
-
const styles$
|
|
11631
|
+
const styles$b = css`
|
|
11535
11632
|
${display("inline-flex")}
|
|
11536
11633
|
|
|
11537
11634
|
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${spacingHorizontalXXS};width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};cursor:pointer}:host(:hover){background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(:disabled),:host([readonly]){border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host(${checkedState}){background:${colorCompoundBrandBackground};border-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover){background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host(${checkedState}:active){background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host(${checkedState}:disabled){background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:margin-inline-start}:host(${checkedState}) .checked-indicator{background-color:${colorNeutralForegroundInverted};margin-inline-start:calc(100% - 14px)}:host(${checkedState}:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host(${checkedState}:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(${checkedState}:disabled) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
11538
11635
|
:host{border-color:InactiveBorder}:host(${checkedState}),:host(${checkedState}:active),:host(${checkedState}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${checkedState}) .checked-indicator,:host(${checkedState}:hover) .checked-indicator,:host(${checkedState}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${checkedState}:disabled) .checked-indicator{background-color:GrayText}`));
|
|
11539
11636
|
|
|
11540
|
-
const definition$
|
|
11637
|
+
const definition$b = Switch.compose({
|
|
11541
11638
|
name: `${FluentDesignSystem.prefix}-switch`,
|
|
11542
|
-
template: template$
|
|
11543
|
-
styles: styles$
|
|
11639
|
+
template: template$b,
|
|
11640
|
+
styles: styles$b
|
|
11544
11641
|
});
|
|
11545
11642
|
|
|
11546
|
-
definition$
|
|
11643
|
+
definition$b.define(FluentDesignSystem.registry);
|
|
11547
11644
|
|
|
11548
11645
|
class TabPanel extends FASTElement {}
|
|
11549
11646
|
|
|
11550
11647
|
function tabPanelTemplate() {
|
|
11551
11648
|
return html`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`;
|
|
11552
11649
|
}
|
|
11553
|
-
const template$
|
|
11650
|
+
const template$a = tabPanelTemplate();
|
|
11554
11651
|
|
|
11555
|
-
const styles$
|
|
11652
|
+
const styles$a = css`
|
|
11556
11653
|
${display("block")}
|
|
11557
11654
|
|
|
11558
11655
|
:host{box-sizing:border-box;padding:${spacingHorizontalM} ${spacingHorizontalMNudge}}`;
|
|
11559
11656
|
|
|
11560
|
-
const definition$
|
|
11657
|
+
const definition$a = TabPanel.compose({
|
|
11561
11658
|
name: `${FluentDesignSystem.prefix}-tab-panel`,
|
|
11562
|
-
template: template$
|
|
11563
|
-
styles: styles$
|
|
11659
|
+
template: template$a,
|
|
11660
|
+
styles: styles$a
|
|
11564
11661
|
});
|
|
11565
11662
|
|
|
11566
|
-
definition$
|
|
11663
|
+
definition$a.define(FluentDesignSystem.registry);
|
|
11567
11664
|
|
|
11568
|
-
var __defProp$
|
|
11569
|
-
var __getOwnPropDesc$
|
|
11570
|
-
var __decorateClass$
|
|
11571
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11665
|
+
var __defProp$d = Object.defineProperty;
|
|
11666
|
+
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
11667
|
+
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
11668
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
11572
11669
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11573
|
-
if (kind && result) __defProp$
|
|
11670
|
+
if (kind && result) __defProp$d(target, key, result);
|
|
11574
11671
|
return result;
|
|
11575
11672
|
};
|
|
11576
11673
|
class Tab extends FASTElement {
|
|
@@ -11584,7 +11681,7 @@ class Tab extends FASTElement {
|
|
|
11584
11681
|
this.$fastController.addStyles(this.styles);
|
|
11585
11682
|
}
|
|
11586
11683
|
}
|
|
11587
|
-
__decorateClass$
|
|
11684
|
+
__decorateClass$d([attr({
|
|
11588
11685
|
mode: "boolean"
|
|
11589
11686
|
})], Tab.prototype, "disabled", 2);
|
|
11590
11687
|
applyMixins(Tab, StartEnd);
|
|
@@ -11592,21 +11689,21 @@ applyMixins(Tab, StartEnd);
|
|
|
11592
11689
|
function tabTemplate(options = {}) {
|
|
11593
11690
|
return html`<template slot="tab" role="tab" aria-disabled="${x => x.disabled}">${startSlotTemplate(options)}<span class="tab-content"><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
11594
11691
|
}
|
|
11595
|
-
const template$
|
|
11692
|
+
const template$9 = tabTemplate({});
|
|
11596
11693
|
|
|
11597
|
-
const styles$
|
|
11694
|
+
const styles$9 = css`
|
|
11598
11695
|
${display("inline-flex")}
|
|
11599
11696
|
|
|
11600
11697
|
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-size:${fontSizeBase300};color:${colorNeutralForeground2};fill:currentcolor;grid-row:1;padding:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${colorNeutralForeground1};font-weight:${fontWeightSemibold}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${lineHeightBase300};font-weight:${fontWeightSemibold}}:host([aria-selected='true'])::after{background-color:${colorCompoundBrandStroke};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${colorNeutralStroke1Hover};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${colorNeutralForegroundDisabled}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${colorNeutralForegroundDisabled};color:${colorNeutralForegroundDisabled}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${borderRadiusSmall};box-shadow:0 0 0 3px ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
11601
11698
|
:host([aria-selected='true'])::after{background-color:Highlight}`));
|
|
11602
11699
|
|
|
11603
|
-
const definition$
|
|
11700
|
+
const definition$9 = Tab.compose({
|
|
11604
11701
|
name: `${FluentDesignSystem.prefix}-tab`,
|
|
11605
|
-
template: template$
|
|
11606
|
-
styles: styles$
|
|
11702
|
+
template: template$9,
|
|
11703
|
+
styles: styles$9
|
|
11607
11704
|
});
|
|
11608
11705
|
|
|
11609
|
-
definition$
|
|
11706
|
+
definition$9.define(FluentDesignSystem.registry);
|
|
11610
11707
|
|
|
11611
11708
|
const TabsAppearance = {
|
|
11612
11709
|
subtle: "subtle",
|
|
@@ -11614,12 +11711,12 @@ const TabsAppearance = {
|
|
|
11614
11711
|
};
|
|
11615
11712
|
const TabsOrientation = Orientation;
|
|
11616
11713
|
|
|
11617
|
-
var __defProp$
|
|
11618
|
-
var __getOwnPropDesc$
|
|
11619
|
-
var __decorateClass$
|
|
11620
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11714
|
+
var __defProp$c = Object.defineProperty;
|
|
11715
|
+
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
11716
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
11717
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
11621
11718
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11622
|
-
if (kind && result) __defProp$
|
|
11719
|
+
if (kind && result) __defProp$c(target, key, result);
|
|
11623
11720
|
return result;
|
|
11624
11721
|
};
|
|
11625
11722
|
class BaseTabs extends FASTElement {
|
|
@@ -11863,10 +11960,19 @@ class BaseTabs extends FASTElement {
|
|
|
11863
11960
|
this.activeTabIndex = this.getActiveIndex();
|
|
11864
11961
|
}
|
|
11865
11962
|
}
|
|
11866
|
-
__decorateClass$
|
|
11867
|
-
__decorateClass$
|
|
11868
|
-
__decorateClass$
|
|
11869
|
-
__decorateClass$
|
|
11963
|
+
__decorateClass$c([attr], BaseTabs.prototype, "orientation", 2);
|
|
11964
|
+
__decorateClass$c([attr], BaseTabs.prototype, "activeid", 2);
|
|
11965
|
+
__decorateClass$c([observable], BaseTabs.prototype, "tabs", 2);
|
|
11966
|
+
__decorateClass$c([observable], BaseTabs.prototype, "tabpanels", 2);
|
|
11967
|
+
|
|
11968
|
+
var __defProp$b = Object.defineProperty;
|
|
11969
|
+
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
11970
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
11971
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
11972
|
+
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$b(target, key, result);
|
|
11974
|
+
return result;
|
|
11975
|
+
};
|
|
11870
11976
|
class Tabs extends BaseTabs {
|
|
11871
11977
|
constructor() {
|
|
11872
11978
|
super(...arguments);
|
|
@@ -11998,30 +12104,30 @@ class Tabs extends BaseTabs {
|
|
|
11998
12104
|
this.setTabData();
|
|
11999
12105
|
}
|
|
12000
12106
|
}
|
|
12001
|
-
__decorateClass$
|
|
12002
|
-
__decorateClass$
|
|
12107
|
+
__decorateClass$b([attr], Tabs.prototype, "appearance", 2);
|
|
12108
|
+
__decorateClass$b([attr({
|
|
12003
12109
|
mode: "boolean"
|
|
12004
12110
|
})], Tabs.prototype, "disabled", 2);
|
|
12005
|
-
__decorateClass$
|
|
12111
|
+
__decorateClass$b([attr], Tabs.prototype, "size", 2);
|
|
12006
12112
|
applyMixins(Tabs, StartEnd);
|
|
12007
12113
|
|
|
12008
12114
|
function tabsTemplate(options = {}) {
|
|
12009
12115
|
return html` ${startSlotTemplate(options)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${slotted("tabs")}></slot></div>${endSlotTemplate(options)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${slotted("tabpanels")}></slot></div>`;
|
|
12010
12116
|
}
|
|
12011
|
-
const template$
|
|
12117
|
+
const template$8 = tabsTemplate({});
|
|
12012
12118
|
|
|
12013
|
-
const styles$
|
|
12119
|
+
const styles$8 = css`
|
|
12014
12120
|
${display("grid")}
|
|
12015
12121
|
|
|
12016
12122
|
:host{box-sizing:border-box;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};color:${colorNeutralForeground2};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${borderRadiusMedium}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}:host([size='small']) ::slotted(fluent-tab){font-size:${fontSizeBase300};line-height:${lineHeightBase300};padding:${spacingVerticalSNudge} ${spacingHorizontalSNudge}}:host([size='large']) ::slotted(fluent-tab){font-size:${fontSizeBase400};line-height:${lineHeightBase400};padding:${spacingVerticalL} ${spacingHorizontalMNudge}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax}}:host ::slotted(fluent-tab)::after{height:${strokeWidthThicker};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${strokeWidthThicker};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${strokeWidthThicker}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${spacingVerticalSNudge};padding-bottom:${spacingVerticalSNudge}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${spacingVerticalXXS};padding-bottom:${spacingVerticalXXS}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${spacingVerticalS};padding-bottom:${spacingVerticalS}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${spacingHorizontalSNudge};left:${spacingHorizontalSNudge}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${spacingHorizontalMNudge};left:${spacingHorizontalMNudge}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${spacingHorizontalMNudge};left:${spacingHorizontalMNudge}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${spacingVerticalSNudge};bottom:${spacingVerticalSNudge}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${spacingVerticalS};bottom:${spacingVerticalS}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${spacingVerticalMNudge};bottom:${spacingVerticalMNudge}}`;
|
|
12017
12123
|
|
|
12018
|
-
const definition$
|
|
12124
|
+
const definition$8 = Tabs.compose({
|
|
12019
12125
|
name: `${FluentDesignSystem.prefix}-tabs`,
|
|
12020
|
-
template: template$
|
|
12021
|
-
styles: styles$
|
|
12126
|
+
template: template$8,
|
|
12127
|
+
styles: styles$8
|
|
12022
12128
|
});
|
|
12023
12129
|
|
|
12024
|
-
definition$
|
|
12130
|
+
definition$8.define(FluentDesignSystem.registry);
|
|
12025
12131
|
|
|
12026
12132
|
const isARIADisabledElement = el => {
|
|
12027
12133
|
return el.getAttribute("aria-disabled") === "true";
|
|
@@ -12044,12 +12150,12 @@ const TablistSize = {
|
|
|
12044
12150
|
};
|
|
12045
12151
|
const TablistOrientation = Orientation;
|
|
12046
12152
|
|
|
12047
|
-
var __defProp$
|
|
12048
|
-
var __getOwnPropDesc$
|
|
12049
|
-
var __decorateClass$
|
|
12050
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12153
|
+
var __defProp$a = Object.defineProperty;
|
|
12154
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
12155
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
12156
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
12051
12157
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12052
|
-
if (kind && result) __defProp$
|
|
12158
|
+
if (kind && result) __defProp$a(target, key, result);
|
|
12053
12159
|
return result;
|
|
12054
12160
|
};
|
|
12055
12161
|
class BaseTablist extends FASTElement {
|
|
@@ -12262,12 +12368,21 @@ class BaseTablist extends FASTElement {
|
|
|
12262
12368
|
this.activeTabIndex = this.getActiveIndex();
|
|
12263
12369
|
}
|
|
12264
12370
|
}
|
|
12265
|
-
__decorateClass$
|
|
12371
|
+
__decorateClass$a([attr({
|
|
12266
12372
|
mode: "boolean"
|
|
12267
12373
|
})], BaseTablist.prototype, "disabled", 2);
|
|
12268
|
-
__decorateClass$
|
|
12269
|
-
__decorateClass$
|
|
12270
|
-
__decorateClass$
|
|
12374
|
+
__decorateClass$a([attr], BaseTablist.prototype, "orientation", 2);
|
|
12375
|
+
__decorateClass$a([attr], BaseTablist.prototype, "activeid", 2);
|
|
12376
|
+
__decorateClass$a([observable], BaseTablist.prototype, "tabs", 2);
|
|
12377
|
+
|
|
12378
|
+
var __defProp$9 = Object.defineProperty;
|
|
12379
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
12380
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
12381
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
12382
|
+
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$9(target, key, result);
|
|
12384
|
+
return result;
|
|
12385
|
+
};
|
|
12271
12386
|
class Tablist extends BaseTablist {
|
|
12272
12387
|
constructor() {
|
|
12273
12388
|
super(...arguments);
|
|
@@ -12419,23 +12534,23 @@ class Tablist extends BaseTablist {
|
|
|
12419
12534
|
}
|
|
12420
12535
|
}
|
|
12421
12536
|
}
|
|
12422
|
-
__decorateClass$
|
|
12423
|
-
__decorateClass$
|
|
12537
|
+
__decorateClass$9([attr], Tablist.prototype, "appearance", 2);
|
|
12538
|
+
__decorateClass$9([attr], Tablist.prototype, "size", 2);
|
|
12424
12539
|
|
|
12425
|
-
const template$
|
|
12540
|
+
const template$7 = html`<template role="tablist"><slot name="tab" ${slotted("tabs")}></slot></template>`;
|
|
12426
12541
|
|
|
12427
|
-
const styles$
|
|
12542
|
+
const styles$7 = css`
|
|
12428
12543
|
${display("flex")}
|
|
12429
12544
|
|
|
12430
12545
|
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row}:host(${verticalState}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax}}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${verticalState}) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host(${verticalState}) ::slotted([slot='tab'])::before,:host(${verticalState}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host(:where(${smallState},${largeState})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${smallState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge};font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host(${largeState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalMNudge}}:host(${smallState}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalSNudge}}:host(${largeState}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalMNudge}}:host(${verticalState}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${verticalState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalS}}:host(${verticalState}${smallState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalXXS}}:host(${verticalState}${largeState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalS}}:host(${verticalState}) ::slotted([slot='tab'])::after,:host(${verticalState}) ::slotted([slot='tab'])::before,:host(${verticalState}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${verticalState}){--tabIndicatorInsetBlock:${spacingVerticalS}}:host(${verticalState}${smallState}){--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host(${verticalState}${largeState}){--tabIndicatorInsetBlock:${spacingVerticalMNudge}}:host(${disabledState}){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab']:hover):before{content:unset}:host(${subtleState}) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host(${subtleState}) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}`;
|
|
12431
12546
|
|
|
12432
|
-
const definition$
|
|
12547
|
+
const definition$7 = Tablist.compose({
|
|
12433
12548
|
name: `${FluentDesignSystem.prefix}-tablist`,
|
|
12434
|
-
template: template$
|
|
12435
|
-
styles: styles$
|
|
12549
|
+
template: template$7,
|
|
12550
|
+
styles: styles$7
|
|
12436
12551
|
});
|
|
12437
12552
|
|
|
12438
|
-
definition$
|
|
12553
|
+
definition$7.define(FluentDesignSystem.registry);
|
|
12439
12554
|
|
|
12440
12555
|
const TextAreaSize = {
|
|
12441
12556
|
small: "small",
|
|
@@ -12455,12 +12570,12 @@ const TextAreaResize = {
|
|
|
12455
12570
|
vertical: "vertical"
|
|
12456
12571
|
};
|
|
12457
12572
|
|
|
12458
|
-
var __defProp$
|
|
12459
|
-
var __getOwnPropDesc$
|
|
12460
|
-
var __decorateClass$
|
|
12461
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12573
|
+
var __defProp$8 = Object.defineProperty;
|
|
12574
|
+
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
12575
|
+
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
12576
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
12462
12577
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12463
|
-
if (kind && result) __defProp$
|
|
12578
|
+
if (kind && result) __defProp$8(target, key, result);
|
|
12464
12579
|
return result;
|
|
12465
12580
|
};
|
|
12466
12581
|
class BaseTextArea extends FASTElement {
|
|
@@ -12829,49 +12944,58 @@ class BaseTextArea extends FASTElement {
|
|
|
12829
12944
|
* @public
|
|
12830
12945
|
*/
|
|
12831
12946
|
BaseTextArea.formAssociated = true;
|
|
12832
|
-
__decorateClass$
|
|
12833
|
-
__decorateClass$
|
|
12834
|
-
__decorateClass$
|
|
12835
|
-
__decorateClass$
|
|
12947
|
+
__decorateClass$8([observable], BaseTextArea.prototype, "defaultSlottedNodes", 2);
|
|
12948
|
+
__decorateClass$8([observable], BaseTextArea.prototype, "labelSlottedNodes", 2);
|
|
12949
|
+
__decorateClass$8([attr], BaseTextArea.prototype, "autocomplete", 2);
|
|
12950
|
+
__decorateClass$8([attr({
|
|
12836
12951
|
attribute: "auto-resize",
|
|
12837
12952
|
mode: "boolean"
|
|
12838
12953
|
})], BaseTextArea.prototype, "autoResize", 2);
|
|
12839
|
-
__decorateClass$
|
|
12954
|
+
__decorateClass$8([attr({
|
|
12840
12955
|
attribute: "dirname"
|
|
12841
12956
|
})], BaseTextArea.prototype, "dirName", 2);
|
|
12842
|
-
__decorateClass$
|
|
12957
|
+
__decorateClass$8([attr({
|
|
12843
12958
|
mode: "boolean"
|
|
12844
12959
|
})], BaseTextArea.prototype, "disabled", 2);
|
|
12845
|
-
__decorateClass$
|
|
12960
|
+
__decorateClass$8([attr({
|
|
12846
12961
|
attribute: "display-shadow",
|
|
12847
12962
|
mode: "boolean"
|
|
12848
12963
|
})], BaseTextArea.prototype, "displayShadow", 2);
|
|
12849
|
-
__decorateClass$
|
|
12964
|
+
__decorateClass$8([attr({
|
|
12850
12965
|
attribute: "form"
|
|
12851
12966
|
})], BaseTextArea.prototype, "initialForm", 2);
|
|
12852
|
-
__decorateClass$
|
|
12967
|
+
__decorateClass$8([attr({
|
|
12853
12968
|
attribute: "maxlength",
|
|
12854
12969
|
converter: nullableNumberConverter
|
|
12855
12970
|
})], BaseTextArea.prototype, "maxLength", 2);
|
|
12856
|
-
__decorateClass$
|
|
12971
|
+
__decorateClass$8([attr({
|
|
12857
12972
|
attribute: "minlength",
|
|
12858
12973
|
converter: nullableNumberConverter
|
|
12859
12974
|
})], BaseTextArea.prototype, "minLength", 2);
|
|
12860
|
-
__decorateClass$
|
|
12861
|
-
__decorateClass$
|
|
12862
|
-
__decorateClass$
|
|
12975
|
+
__decorateClass$8([attr], BaseTextArea.prototype, "name", 2);
|
|
12976
|
+
__decorateClass$8([attr], BaseTextArea.prototype, "placeholder", 2);
|
|
12977
|
+
__decorateClass$8([attr({
|
|
12863
12978
|
attribute: "readonly",
|
|
12864
12979
|
mode: "boolean"
|
|
12865
12980
|
})], BaseTextArea.prototype, "readOnly", 2);
|
|
12866
|
-
__decorateClass$
|
|
12981
|
+
__decorateClass$8([attr({
|
|
12867
12982
|
mode: "boolean"
|
|
12868
12983
|
})], BaseTextArea.prototype, "required", 2);
|
|
12869
|
-
__decorateClass$
|
|
12984
|
+
__decorateClass$8([attr({
|
|
12870
12985
|
mode: "fromView"
|
|
12871
12986
|
})], BaseTextArea.prototype, "resize", 2);
|
|
12872
|
-
__decorateClass$
|
|
12987
|
+
__decorateClass$8([attr({
|
|
12873
12988
|
mode: "boolean"
|
|
12874
12989
|
})], BaseTextArea.prototype, "spellcheck", 2);
|
|
12990
|
+
|
|
12991
|
+
var __defProp$7 = Object.defineProperty;
|
|
12992
|
+
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
12993
|
+
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
12994
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
12995
|
+
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$7(target, key, result);
|
|
12997
|
+
return result;
|
|
12998
|
+
};
|
|
12875
12999
|
class TextArea extends BaseTextArea {
|
|
12876
13000
|
constructor() {
|
|
12877
13001
|
super(...arguments);
|
|
@@ -12937,15 +13061,15 @@ class TextArea extends BaseTextArea {
|
|
|
12937
13061
|
toggleState(this.elementInternals, "display-shadow", this.displayShadow && TextAreaAppearancesForDisplayShadow.includes(this.appearance));
|
|
12938
13062
|
}
|
|
12939
13063
|
}
|
|
12940
|
-
__decorateClass$
|
|
13064
|
+
__decorateClass$7([attr({
|
|
12941
13065
|
mode: "fromView"
|
|
12942
13066
|
})], TextArea.prototype, "appearance", 2);
|
|
12943
|
-
__decorateClass$
|
|
13067
|
+
__decorateClass$7([attr({
|
|
12944
13068
|
mode: "boolean"
|
|
12945
13069
|
})], TextArea.prototype, "block", 2);
|
|
12946
|
-
__decorateClass$
|
|
13070
|
+
__decorateClass$7([attr], TextArea.prototype, "size", 2);
|
|
12947
13071
|
|
|
12948
|
-
const styles$
|
|
13072
|
+
const styles$6 = css`
|
|
12949
13073
|
${display("inline-block")}
|
|
12950
13074
|
|
|
12951
13075
|
:host{--font-size:${fontSizeBase300};--line-height:${lineHeightBase300};--padding-inline:${spacingHorizontalMNudge};--padding-block:${spacingVerticalSNudge};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${strokeWidthThin};--control-padding-inline:${spacingHorizontalXXS};--color:${colorNeutralForeground1};--background-color:${colorNeutralBackground1};--border-color:${colorNeutralStroke1};--border-block-end-color:${colorNeutralStrokeAccessible};--placeholder-color:${colorNeutralForeground4};--focus-indicator-color:${colorCompoundBrandStroke};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${fontFamilyBase};font-size:var(--font-size);font-weight:${fontWeightRegular};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${colorNeutralStroke1Hover};--border-block-end-color:${colorNeutralStrokeAccessibleHover}}:host(:active){--border-color:${colorNeutralStroke1Pressed};--border-block-end-color:${colorNeutralStrokeAccessiblePressed}}:host(:focus-within){outline:none}:host(${blockState}:not([hidden])){display:block}:host(${smallState}){--font-size:${fontSizeBase200};--line-height:${lineHeightBase200};--min-block-size:40px;--padding-block:${spacingVerticalXS};--padding-inline:${spacingHorizontalSNudge};--control-padding-inline:${spacingHorizontalXXS}}:host(${largeState}){--font-size:${fontSizeBase400};--line-height:${lineHeightBase400};--min-block-size:64px;--padding-block:${spacingVerticalS};--padding-inline:${spacingHorizontalM};--control-padding-inline:${spacingHorizontalSNudge}}:host(${resizeBothState}:not(:disabled)){--resize:both}:host(${resizeHorizontalState}:not(:disabled)){--resize:horizontal}:host(${resizeVerticalState}:not(:disabled)){--resize:vertical}:host(${autoResizeState}){--block-size:auto;--contain-size:inline-size}:host(${filledDarkerState}){--background-color:${colorNeutralBackground3};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${filledLighterState}){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${filledDarkerState}${displayShadowState}),:host(${filledLighterState}${displayShadowState}){--box-shadow:${shadow2}}:host(${userInvalidState}){--border-color:${colorPaletteRedBorder2};--border-block-end-color:${colorPaletteRedBorder2}}:host(:disabled){--color:${colorNeutralForegroundDisabled};--background-color:${colorTransparentBackground};--border-color:${colorNeutralStrokeDisabled};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${colorNeutralForegroundDisabled};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${borderRadiusMedium};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host(${blockState}) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${borderRadiusMedium});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${curveAccelerateMid};transition-duration:${durationUltraFast};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${spacingVerticalXS};padding-inline-end:${spacingHorizontalXS}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host(${autoResizeState}) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -12960,18 +13084,18 @@ function textAreaTemplate() {
|
|
|
12960
13084
|
filter: whitespaceFilter
|
|
12961
13085
|
})}></slot></div></template>`;
|
|
12962
13086
|
}
|
|
12963
|
-
const template$
|
|
13087
|
+
const template$6 = textAreaTemplate();
|
|
12964
13088
|
|
|
12965
|
-
const definition$
|
|
13089
|
+
const definition$6 = TextArea.compose({
|
|
12966
13090
|
name: `${FluentDesignSystem.prefix}-textarea`,
|
|
12967
|
-
template: template$
|
|
12968
|
-
styles: styles$
|
|
13091
|
+
template: template$6,
|
|
13092
|
+
styles: styles$6,
|
|
12969
13093
|
shadowOptions: {
|
|
12970
13094
|
delegatesFocus: true
|
|
12971
13095
|
}
|
|
12972
13096
|
});
|
|
12973
13097
|
|
|
12974
|
-
definition$
|
|
13098
|
+
definition$6.define(FluentDesignSystem.registry);
|
|
12975
13099
|
|
|
12976
13100
|
const TextInputControlSize = {
|
|
12977
13101
|
small: "small",
|
|
@@ -12993,12 +13117,12 @@ const TextInputType = {
|
|
|
12993
13117
|
};
|
|
12994
13118
|
const ImplicitSubmissionBlockingTypes = ["date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week"];
|
|
12995
13119
|
|
|
12996
|
-
var __defProp$
|
|
12997
|
-
var __getOwnPropDesc$
|
|
12998
|
-
var __decorateClass$
|
|
12999
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13120
|
+
var __defProp$6 = Object.defineProperty;
|
|
13121
|
+
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
13122
|
+
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
13123
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
13000
13124
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13001
|
-
if (kind && result) __defProp$
|
|
13125
|
+
if (kind && result) __defProp$6(target, key, result);
|
|
13002
13126
|
return result;
|
|
13003
13127
|
};
|
|
13004
13128
|
class BaseTextInput extends FASTElement {
|
|
@@ -13319,56 +13443,65 @@ class BaseTextInput extends FASTElement {
|
|
|
13319
13443
|
* @public
|
|
13320
13444
|
*/
|
|
13321
13445
|
BaseTextInput.formAssociated = true;
|
|
13322
|
-
__decorateClass$
|
|
13323
|
-
__decorateClass$
|
|
13446
|
+
__decorateClass$6([attr], BaseTextInput.prototype, "autocomplete", 2);
|
|
13447
|
+
__decorateClass$6([attr({
|
|
13324
13448
|
mode: "boolean"
|
|
13325
13449
|
})], BaseTextInput.prototype, "autofocus", 2);
|
|
13326
|
-
__decorateClass$
|
|
13450
|
+
__decorateClass$6([attr({
|
|
13327
13451
|
attribute: "current-value"
|
|
13328
13452
|
})], BaseTextInput.prototype, "currentValue", 2);
|
|
13329
|
-
__decorateClass$
|
|
13330
|
-
__decorateClass$
|
|
13331
|
-
__decorateClass$
|
|
13453
|
+
__decorateClass$6([observable], BaseTextInput.prototype, "defaultSlottedNodes", 2);
|
|
13454
|
+
__decorateClass$6([attr], BaseTextInput.prototype, "dirname", 2);
|
|
13455
|
+
__decorateClass$6([attr({
|
|
13332
13456
|
mode: "boolean"
|
|
13333
13457
|
})], BaseTextInput.prototype, "disabled", 2);
|
|
13334
|
-
__decorateClass$
|
|
13458
|
+
__decorateClass$6([attr({
|
|
13335
13459
|
attribute: "form"
|
|
13336
13460
|
})], BaseTextInput.prototype, "formAttribute", 2);
|
|
13337
|
-
__decorateClass$
|
|
13461
|
+
__decorateClass$6([attr({
|
|
13338
13462
|
attribute: "value",
|
|
13339
13463
|
mode: "fromView"
|
|
13340
13464
|
})], BaseTextInput.prototype, "initialValue", 2);
|
|
13341
|
-
__decorateClass$
|
|
13342
|
-
__decorateClass$
|
|
13465
|
+
__decorateClass$6([attr], BaseTextInput.prototype, "list", 2);
|
|
13466
|
+
__decorateClass$6([attr({
|
|
13343
13467
|
converter: nullableNumberConverter
|
|
13344
13468
|
})], BaseTextInput.prototype, "maxlength", 2);
|
|
13345
|
-
__decorateClass$
|
|
13469
|
+
__decorateClass$6([attr({
|
|
13346
13470
|
converter: nullableNumberConverter
|
|
13347
13471
|
})], BaseTextInput.prototype, "minlength", 2);
|
|
13348
|
-
__decorateClass$
|
|
13472
|
+
__decorateClass$6([attr({
|
|
13349
13473
|
mode: "boolean"
|
|
13350
13474
|
})], BaseTextInput.prototype, "multiple", 2);
|
|
13351
|
-
__decorateClass$
|
|
13352
|
-
__decorateClass$
|
|
13353
|
-
__decorateClass$
|
|
13354
|
-
__decorateClass$
|
|
13475
|
+
__decorateClass$6([attr], BaseTextInput.prototype, "name", 2);
|
|
13476
|
+
__decorateClass$6([attr], BaseTextInput.prototype, "pattern", 2);
|
|
13477
|
+
__decorateClass$6([attr], BaseTextInput.prototype, "placeholder", 2);
|
|
13478
|
+
__decorateClass$6([attr({
|
|
13355
13479
|
attribute: "readonly",
|
|
13356
13480
|
mode: "boolean"
|
|
13357
13481
|
})], BaseTextInput.prototype, "readOnly", 2);
|
|
13358
|
-
__decorateClass$
|
|
13482
|
+
__decorateClass$6([attr({
|
|
13359
13483
|
mode: "boolean"
|
|
13360
13484
|
})], BaseTextInput.prototype, "required", 2);
|
|
13361
|
-
__decorateClass$
|
|
13485
|
+
__decorateClass$6([attr({
|
|
13362
13486
|
converter: nullableNumberConverter
|
|
13363
13487
|
})], BaseTextInput.prototype, "size", 2);
|
|
13364
|
-
__decorateClass$
|
|
13488
|
+
__decorateClass$6([attr({
|
|
13365
13489
|
converter: {
|
|
13366
13490
|
fromView: value => typeof value === "string" ? ["true", ""].includes(value.trim().toLowerCase()) : null,
|
|
13367
13491
|
toView: value => value.toString()
|
|
13368
13492
|
}
|
|
13369
13493
|
})], BaseTextInput.prototype, "spellcheck", 2);
|
|
13370
|
-
__decorateClass$
|
|
13371
|
-
__decorateClass$
|
|
13494
|
+
__decorateClass$6([attr], BaseTextInput.prototype, "type", 2);
|
|
13495
|
+
__decorateClass$6([observable], BaseTextInput.prototype, "controlLabel", 2);
|
|
13496
|
+
|
|
13497
|
+
var __defProp$5 = Object.defineProperty;
|
|
13498
|
+
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
13499
|
+
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
13500
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
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$5(target, key, result);
|
|
13503
|
+
return result;
|
|
13504
|
+
};
|
|
13372
13505
|
class TextInput extends BaseTextInput {
|
|
13373
13506
|
/**
|
|
13374
13507
|
* Handles changes to appearance attribute custom states
|
|
@@ -13387,13 +13520,13 @@ class TextInput extends BaseTextInput {
|
|
|
13387
13520
|
swapStates(this.elementInternals, prev, next, TextInputControlSize);
|
|
13388
13521
|
}
|
|
13389
13522
|
}
|
|
13390
|
-
__decorateClass$
|
|
13391
|
-
__decorateClass$
|
|
13523
|
+
__decorateClass$5([attr], TextInput.prototype, "appearance", 2);
|
|
13524
|
+
__decorateClass$5([attr({
|
|
13392
13525
|
attribute: "control-size"
|
|
13393
13526
|
})], TextInput.prototype, "controlSize", 2);
|
|
13394
13527
|
applyMixins(TextInput, StartEnd);
|
|
13395
13528
|
|
|
13396
|
-
const styles$
|
|
13529
|
+
const styles$5 = css`
|
|
13397
13530
|
${display("block")}
|
|
13398
13531
|
|
|
13399
13532
|
:host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host(${outlineState}:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host(${smallState}) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host(${smallState}) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host(${smallState}) ::slotted([slot='start']),:host(${smallState}) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host(${largeState}) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host(${largeState}) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host(${largeState}) ::slotted([slot='start']),:host(${largeState}) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host(${underlineState}) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host(${underlineState}:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(${underlineState}:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState}:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState}[disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host(${filledLighterState}) .root,:host(${filledDarkerState}) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host(${filledLighterState}) .root{background:${colorNeutralBackground1}}:host(${filledDarkerState}) .root{background:${colorNeutralBackground3}}:host(${filledLighterState}:hover) .root,:host(${filledDarkerState}:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host(${filledLighterState}:active) .root,:host(${filledDarkerState}:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
|
|
@@ -13404,18 +13537,18 @@ function textInputTemplate(options = {}) {
|
|
|
13404
13537
|
filter: whitespaceFilter
|
|
13405
13538
|
})}></slot></label><div class="root" part="root">${startSlotTemplate(options)}<input class="control" part="control" id="control" @change="${(x, c) => x.changeHandler(c.event)}" @input="${(x, c) => x.inputHandler(c.event)}" ?autofocus="${x => x.autofocus}" autocomplete="${x => x.autocomplete}" ?disabled="${x => x.disabled}" list="${x => x.list}" maxlength="${x => x.maxlength}" minlength="${x => x.minlength}" ?multiple="${x => x.multiple}" name="${x => x.name}" pattern="${x => x.pattern}" placeholder="${x => x.placeholder}" ?readonly="${x => x.readOnly}" ?required="${x => x.required}" size="${x => x.size}" spellcheck="${x => x.spellcheck}" type="${x => x.type}" value="${x => x.initialValue}" ${ref("control")} />${endSlotTemplate(options)}</div></template>`;
|
|
13406
13539
|
}
|
|
13407
|
-
const template$
|
|
13540
|
+
const template$5 = textInputTemplate();
|
|
13408
13541
|
|
|
13409
|
-
const definition$
|
|
13542
|
+
const definition$5 = TextInput.compose({
|
|
13410
13543
|
name: `${FluentDesignSystem.prefix}-text-input`,
|
|
13411
|
-
template: template$
|
|
13412
|
-
styles: styles$
|
|
13544
|
+
template: template$5,
|
|
13545
|
+
styles: styles$5,
|
|
13413
13546
|
shadowOptions: {
|
|
13414
13547
|
delegatesFocus: true
|
|
13415
13548
|
}
|
|
13416
13549
|
});
|
|
13417
13550
|
|
|
13418
|
-
definition$
|
|
13551
|
+
definition$5.define(FluentDesignSystem.registry);
|
|
13419
13552
|
|
|
13420
13553
|
const TextSize = {
|
|
13421
13554
|
_100: "100",
|
|
@@ -13447,12 +13580,12 @@ const TextAlign = {
|
|
|
13447
13580
|
justify: "justify"
|
|
13448
13581
|
};
|
|
13449
13582
|
|
|
13450
|
-
var __defProp$
|
|
13451
|
-
var __getOwnPropDesc$
|
|
13452
|
-
var __decorateClass$
|
|
13453
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13583
|
+
var __defProp$4 = Object.defineProperty;
|
|
13584
|
+
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
13585
|
+
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
13586
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
13454
13587
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13455
|
-
if (kind && result) __defProp$
|
|
13588
|
+
if (kind && result) __defProp$4(target, key, result);
|
|
13456
13589
|
return result;
|
|
13457
13590
|
};
|
|
13458
13591
|
class Text extends FASTElement {
|
|
@@ -13533,50 +13666,50 @@ class Text extends FASTElement {
|
|
|
13533
13666
|
}
|
|
13534
13667
|
}
|
|
13535
13668
|
}
|
|
13536
|
-
__decorateClass$
|
|
13669
|
+
__decorateClass$4([attr({
|
|
13537
13670
|
mode: "boolean"
|
|
13538
13671
|
})], Text.prototype, "nowrap", 2);
|
|
13539
|
-
__decorateClass$
|
|
13672
|
+
__decorateClass$4([attr({
|
|
13540
13673
|
mode: "boolean"
|
|
13541
13674
|
})], Text.prototype, "truncate", 2);
|
|
13542
|
-
__decorateClass$
|
|
13675
|
+
__decorateClass$4([attr({
|
|
13543
13676
|
mode: "boolean"
|
|
13544
13677
|
})], Text.prototype, "italic", 2);
|
|
13545
|
-
__decorateClass$
|
|
13678
|
+
__decorateClass$4([attr({
|
|
13546
13679
|
mode: "boolean"
|
|
13547
13680
|
})], Text.prototype, "underline", 2);
|
|
13548
|
-
__decorateClass$
|
|
13681
|
+
__decorateClass$4([attr({
|
|
13549
13682
|
mode: "boolean"
|
|
13550
13683
|
})], Text.prototype, "strikethrough", 2);
|
|
13551
|
-
__decorateClass$
|
|
13684
|
+
__decorateClass$4([attr({
|
|
13552
13685
|
mode: "boolean"
|
|
13553
13686
|
})], Text.prototype, "block", 2);
|
|
13554
|
-
__decorateClass$
|
|
13555
|
-
__decorateClass$
|
|
13556
|
-
__decorateClass$
|
|
13557
|
-
__decorateClass$
|
|
13687
|
+
__decorateClass$4([attr], Text.prototype, "size", 2);
|
|
13688
|
+
__decorateClass$4([attr], Text.prototype, "font", 2);
|
|
13689
|
+
__decorateClass$4([attr], Text.prototype, "weight", 2);
|
|
13690
|
+
__decorateClass$4([attr], Text.prototype, "align", 2);
|
|
13558
13691
|
|
|
13559
|
-
const styles$
|
|
13692
|
+
const styles$4 = css`
|
|
13560
13693
|
${display("inline")}
|
|
13561
13694
|
|
|
13562
13695
|
:host{contain:content;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start}:host(${nowrapState}),:host(${nowrapState}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${truncateState}),:host(${truncateState}) ::slotted(*){text-overflow:ellipsis}:host(${blockState}){display:block}:host(${italicState}){font-style:italic}:host(${underlineState}){text-decoration-line:underline}:host(${strikethroughState}){text-decoration-line:line-through}:host(${underlineState}${strikethroughState}){text-decoration-line:line-through underline}:host(${size100State}){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host(${size200State}){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${size400State}){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${size500State}){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host(${size600State}){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host(${size700State}){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host(${size800State}){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host(${size900State}){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host(${size1000State}){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host(${monospaceState}){font-family:${fontFamilyMonospace}}:host(${numericState}){font-family:${fontFamilyNumeric}}:host(${mediumState}){font-weight:${fontWeightMedium}}:host(${semiboldState}){font-weight:${fontWeightSemibold}}:host(${boldState}){font-weight:${fontWeightBold}}:host(${centerState}){text-align:center}:host(${endState}){text-align:end}:host(${justifyState}){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`;
|
|
13563
13696
|
|
|
13564
|
-
const template$
|
|
13697
|
+
const template$4 = html`<slot></slot>`;
|
|
13565
13698
|
|
|
13566
|
-
const definition$
|
|
13699
|
+
const definition$4 = Text.compose({
|
|
13567
13700
|
name: `${FluentDesignSystem.prefix}-text`,
|
|
13568
|
-
template: template$
|
|
13569
|
-
styles: styles$
|
|
13701
|
+
template: template$4,
|
|
13702
|
+
styles: styles$4
|
|
13570
13703
|
});
|
|
13571
13704
|
|
|
13572
|
-
definition$
|
|
13705
|
+
definition$4.define(FluentDesignSystem.registry);
|
|
13573
13706
|
|
|
13574
|
-
var __defProp$
|
|
13575
|
-
var __getOwnPropDesc$
|
|
13576
|
-
var __decorateClass$
|
|
13577
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13707
|
+
var __defProp$3 = Object.defineProperty;
|
|
13708
|
+
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
13709
|
+
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
13710
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
13578
13711
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13579
|
-
if (kind && result) __defProp$
|
|
13712
|
+
if (kind && result) __defProp$3(target, key, result);
|
|
13580
13713
|
return result;
|
|
13581
13714
|
};
|
|
13582
13715
|
class ToggleButton extends Button {
|
|
@@ -13623,35 +13756,35 @@ class ToggleButton extends Button {
|
|
|
13623
13756
|
}
|
|
13624
13757
|
}
|
|
13625
13758
|
}
|
|
13626
|
-
__decorateClass$
|
|
13759
|
+
__decorateClass$3([attr({
|
|
13627
13760
|
mode: "boolean"
|
|
13628
13761
|
})], ToggleButton.prototype, "pressed", 2);
|
|
13629
|
-
__decorateClass$
|
|
13762
|
+
__decorateClass$3([attr({
|
|
13630
13763
|
mode: "boolean"
|
|
13631
13764
|
})], ToggleButton.prototype, "mixed", 2);
|
|
13632
13765
|
|
|
13633
|
-
const styles$
|
|
13634
|
-
${styles$
|
|
13766
|
+
const styles$3 = css`
|
|
13767
|
+
${styles$E}
|
|
13635
13768
|
|
|
13636
13769
|
:host(${pressedState}){border-color:${colorNeutralStroke1};background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground1};border-width:${strokeWidthThin}}:host(${pressedState}:hover){border-color:${colorNeutralStroke1Hover};background-color:${colorNeutralBackground1Hover}}:host(${pressedState}:active){border-color:${colorNeutralStroke1Pressed};background-color:${colorNeutralBackground1Pressed}}:host(${pressedState}${primaryState}){border-color:transparent;background-color:${colorBrandBackgroundSelected};color:${colorNeutralForegroundOnBrand}}:host(${pressedState}${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${pressedState}${primaryState}:active){background-color:${colorBrandBackgroundPressed}}:host(${pressedState}${subtleState}){border-color:transparent;background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host(${pressedState}${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}:host(${pressedState}${subtleState}:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}:host(${pressedState}${outlineState}),:host(${pressedState}${transparentState}){background-color:${colorTransparentBackgroundSelected}}:host(${pressedState}${outlineState}:hover),:host(${pressedState}${transparentState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${pressedState}${outlineState}:active),:host(${pressedState}${transparentState}:active){background-color:${colorTransparentBackgroundPressed}}:host(${pressedState}${transparentState}){border-color:transparent;color:${colorNeutralForeground2BrandSelected}}:host(${pressedState}${transparentState}:hover){color:${colorNeutralForeground2BrandHover}}:host(${pressedState}${transparentState}:active){color:${colorNeutralForeground2BrandPressed}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
13637
13770
|
:host(${pressedState}),:host(${pressedState}${primaryState}),:host(${pressedState}${subtleState}),:host(${pressedState}${outlineState}),:host(${pressedState}${transparentState}){background:SelectedItem;color:SelectedItemText}`));
|
|
13638
13771
|
|
|
13639
|
-
const template$
|
|
13772
|
+
const template$3 = buttonTemplate$1();
|
|
13640
13773
|
|
|
13641
|
-
const definition$
|
|
13774
|
+
const definition$3 = ToggleButton.compose({
|
|
13642
13775
|
name: `${FluentDesignSystem.prefix}-toggle-button`,
|
|
13643
|
-
template: template$
|
|
13644
|
-
styles: styles$
|
|
13776
|
+
template: template$3,
|
|
13777
|
+
styles: styles$3
|
|
13645
13778
|
});
|
|
13646
13779
|
|
|
13647
|
-
definition$
|
|
13780
|
+
definition$3.define(FluentDesignSystem.registry);
|
|
13648
13781
|
|
|
13649
|
-
var __defProp = Object.defineProperty;
|
|
13650
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13651
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
13652
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13782
|
+
var __defProp$2 = Object.defineProperty;
|
|
13783
|
+
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
13784
|
+
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
13785
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
13653
13786
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13654
|
-
if (kind && result) __defProp(target, key, result);
|
|
13787
|
+
if (kind && result) __defProp$2(target, key, result);
|
|
13655
13788
|
return result;
|
|
13656
13789
|
};
|
|
13657
13790
|
class Tooltip extends FASTElement {
|
|
@@ -13817,12 +13950,12 @@ class Tooltip extends FASTElement {
|
|
|
13817
13950
|
}
|
|
13818
13951
|
}
|
|
13819
13952
|
}
|
|
13820
|
-
__decorateClass([attr], Tooltip.prototype, "id", 2);
|
|
13821
|
-
__decorateClass([attr({
|
|
13953
|
+
__decorateClass$2([attr], Tooltip.prototype, "id", 2);
|
|
13954
|
+
__decorateClass$2([attr({
|
|
13822
13955
|
converter: nullableNumberConverter
|
|
13823
13956
|
})], Tooltip.prototype, "delay", 2);
|
|
13824
|
-
__decorateClass([attr], Tooltip.prototype, "positioning", 2);
|
|
13825
|
-
__decorateClass([attr], Tooltip.prototype, "anchor", 2);
|
|
13957
|
+
__decorateClass$2([attr], Tooltip.prototype, "positioning", 2);
|
|
13958
|
+
__decorateClass$2([attr], Tooltip.prototype, "anchor", 2);
|
|
13826
13959
|
|
|
13827
13960
|
const TooltipPositioningOption = {
|
|
13828
13961
|
"above-start": "block-start span-inline-end",
|
|
@@ -13839,17 +13972,487 @@ const TooltipPositioningOption = {
|
|
|
13839
13972
|
"after-bottom": "inline-end span-block-start"
|
|
13840
13973
|
};
|
|
13841
13974
|
|
|
13842
|
-
const styles = css`
|
|
13975
|
+
const styles$2 = css`
|
|
13843
13976
|
${display("inline-flex")}
|
|
13844
13977
|
|
|
13845
13978
|
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;overflow:visible;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${TooltipPositioningOption["above-start"]}}:host([positioning='above']){--position-area:${TooltipPositioningOption.above}}:host([positioning='above-end']){--position-area:${TooltipPositioningOption["above-end"]}}:host([positioning='below-start']){--position-area:${TooltipPositioningOption["below-start"]}}:host([positioning='below']){--position-area:${TooltipPositioningOption.below}}:host([positioning='below-end']){--position-area:${TooltipPositioningOption["below-end"]}}:host([positioning='before-top']){--position-area:${TooltipPositioningOption["before-top"]}}:host([positioning='before']){--position-area:${TooltipPositioningOption.before}}:host([positioning='before-bottom']){--position-area:${TooltipPositioningOption["before-bottom"]}}:host([positioning='after-top']){--position-area:${TooltipPositioningOption["after-top"]}}:host([positioning='after']){--position-area:${TooltipPositioningOption.after}}:host([positioning='after-bottom']){--position-area:${TooltipPositioningOption["after-bottom"]}}`;
|
|
13846
13979
|
|
|
13847
|
-
const template = html`<template popover aria-hidden="true"><slot></slot></template>`;
|
|
13980
|
+
const template$2 = html`<template popover aria-hidden="true"><slot></slot></template>`;
|
|
13848
13981
|
|
|
13849
|
-
const definition = Tooltip.compose({
|
|
13982
|
+
const definition$2 = Tooltip.compose({
|
|
13850
13983
|
name: `${FluentDesignSystem.prefix}-tooltip`,
|
|
13851
|
-
template,
|
|
13852
|
-
styles
|
|
13984
|
+
template: template$2,
|
|
13985
|
+
styles: styles$2
|
|
13986
|
+
});
|
|
13987
|
+
|
|
13988
|
+
definition$2.define(FluentDesignSystem.registry);
|
|
13989
|
+
|
|
13990
|
+
const TreeItemAppearance = {
|
|
13991
|
+
subtle: "subtle",
|
|
13992
|
+
subtleAlpha: "subtle-alpha",
|
|
13993
|
+
transparent: "transparent"
|
|
13994
|
+
};
|
|
13995
|
+
const TreeItemSize = {
|
|
13996
|
+
small: "small",
|
|
13997
|
+
medium: "medium"
|
|
13998
|
+
};
|
|
13999
|
+
function isTreeItem(element, tagName = "-tree-item") {
|
|
14000
|
+
if (element?.nodeType !== Node.ELEMENT_NODE) {
|
|
14001
|
+
return false;
|
|
14002
|
+
}
|
|
14003
|
+
return element.tagName.toLowerCase().endsWith(tagName);
|
|
14004
|
+
}
|
|
14005
|
+
|
|
14006
|
+
var __defProp$1 = Object.defineProperty;
|
|
14007
|
+
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
14008
|
+
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
14009
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
14010
|
+
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$1(target, key, result);
|
|
14012
|
+
return result;
|
|
14013
|
+
};
|
|
14014
|
+
class TreeItem extends FASTElement {
|
|
14015
|
+
constructor() {
|
|
14016
|
+
super();
|
|
14017
|
+
/**
|
|
14018
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
14019
|
+
*
|
|
14020
|
+
* @internal
|
|
14021
|
+
*/
|
|
14022
|
+
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
|
+
this.childTreeItems = [];
|
|
14029
|
+
this.elementInternals.role = "treeitem";
|
|
14030
|
+
}
|
|
14031
|
+
/**
|
|
14032
|
+
* Handles changes to the expanded attribute
|
|
14033
|
+
* @param prev - the previous state
|
|
14034
|
+
* @param next - the next state
|
|
14035
|
+
*
|
|
14036
|
+
* @public
|
|
14037
|
+
*/
|
|
14038
|
+
expandedChanged(prev, next) {
|
|
14039
|
+
toggleState(this.elementInternals, "expanded", next);
|
|
14040
|
+
if (this.childTreeItems && this.childTreeItems.length > 0) {
|
|
14041
|
+
this.elementInternals.ariaExpanded = next ? "true" : "false";
|
|
14042
|
+
}
|
|
14043
|
+
}
|
|
14044
|
+
/**
|
|
14045
|
+
* Handles changes to the selected attribute
|
|
14046
|
+
* @param prev - the previous state
|
|
14047
|
+
* @param next - the next state
|
|
14048
|
+
*
|
|
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
|
+
* @internal
|
|
14060
|
+
*/
|
|
14061
|
+
sizeChanged() {
|
|
14062
|
+
this.updateChildTreeItems();
|
|
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);
|
|
14075
|
+
}
|
|
14076
|
+
this.styles = css`
|
|
14077
|
+
:host{--indent:${next}}`;
|
|
14078
|
+
this.$fastController.addStyles(this.styles);
|
|
14079
|
+
}
|
|
14080
|
+
/**
|
|
14081
|
+
* Handles changes to the child tree items
|
|
14082
|
+
*
|
|
14083
|
+
* @internal
|
|
14084
|
+
*/
|
|
14085
|
+
childTreeItemsChanged() {
|
|
14086
|
+
this.empty = this.childTreeItems?.length === 0;
|
|
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) {
|
|
14095
|
+
return;
|
|
14096
|
+
}
|
|
14097
|
+
this.childTreeItems.forEach(item => {
|
|
14098
|
+
if (!isTreeItem(item)) {
|
|
14099
|
+
return;
|
|
14100
|
+
}
|
|
14101
|
+
this.setIndent(item);
|
|
14102
|
+
item.size = this.size;
|
|
14103
|
+
item.appearance = this.appearance;
|
|
14104
|
+
});
|
|
14105
|
+
}
|
|
14106
|
+
/**
|
|
14107
|
+
* Sets the indent for each item
|
|
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");
|
|
14124
|
+
}
|
|
14125
|
+
}
|
|
14126
|
+
/**
|
|
14127
|
+
* Handle blur events
|
|
14128
|
+
*
|
|
14129
|
+
* @public
|
|
14130
|
+
*/
|
|
14131
|
+
blurHandler(e) {
|
|
14132
|
+
if (e.target === this) {
|
|
14133
|
+
this.setAttribute("tabindex", "-1");
|
|
14134
|
+
}
|
|
14135
|
+
}
|
|
14136
|
+
/**
|
|
14137
|
+
* Toggle the expansion state of the tree item
|
|
14138
|
+
*
|
|
14139
|
+
* @public
|
|
14140
|
+
*/
|
|
14141
|
+
toggleExpansion() {
|
|
14142
|
+
if (this.childTreeItems?.length) {
|
|
14143
|
+
this.expanded = !this.expanded;
|
|
14144
|
+
}
|
|
14145
|
+
}
|
|
14146
|
+
/**
|
|
14147
|
+
* Toggle the single selection state of the tree item
|
|
14148
|
+
*
|
|
14149
|
+
* @public
|
|
14150
|
+
*/
|
|
14151
|
+
toggleSelection() {
|
|
14152
|
+
this.selected = !this.selected;
|
|
14153
|
+
}
|
|
14154
|
+
/**
|
|
14155
|
+
* Whether the tree is nested
|
|
14156
|
+
* @internal
|
|
14157
|
+
*/
|
|
14158
|
+
get isNestedItem() {
|
|
14159
|
+
return isTreeItem(this.parentElement);
|
|
14160
|
+
}
|
|
14161
|
+
}
|
|
14162
|
+
__decorateClass$1([attr({
|
|
14163
|
+
mode: "boolean"
|
|
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);
|
|
14177
|
+
|
|
14178
|
+
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>`;
|
|
14179
|
+
const template$1 = 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({
|
|
14180
|
+
property: "childTreeItems",
|
|
14181
|
+
filter: elements()
|
|
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;
|
|
14200
|
+
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);
|
|
14202
|
+
return result;
|
|
14203
|
+
};
|
|
14204
|
+
class Tree extends FASTElement {
|
|
14205
|
+
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();
|
|
14220
|
+
this.size = TreeItemSize.small;
|
|
14221
|
+
this.appearance = TreeItemAppearance.subtle;
|
|
14222
|
+
this.childTreeItems = [];
|
|
14223
|
+
this.elementInternals.role = "tree";
|
|
14224
|
+
}
|
|
14225
|
+
sizeChanged() {
|
|
14226
|
+
this.updateSizeAndAppearance();
|
|
14227
|
+
}
|
|
14228
|
+
appearanceChanged() {
|
|
14229
|
+
this.updateSizeAndAppearance();
|
|
14230
|
+
}
|
|
14231
|
+
childTreeItemsChanged() {
|
|
14232
|
+
this.updateSizeAndAppearance();
|
|
14233
|
+
this.updateCurrentSelected();
|
|
14234
|
+
}
|
|
14235
|
+
/**
|
|
14236
|
+
* 1. Update the child items' size based on the tree's size
|
|
14237
|
+
* 2. Update the child items' appearance based on the tree's appearance
|
|
14238
|
+
*/
|
|
14239
|
+
updateSizeAndAppearance() {
|
|
14240
|
+
if (!this.childTreeItems?.length) {
|
|
14241
|
+
return;
|
|
14242
|
+
}
|
|
14243
|
+
this.childTreeItems.forEach(item => {
|
|
14244
|
+
if (!isTreeItem(item)) {
|
|
14245
|
+
return;
|
|
14246
|
+
}
|
|
14247
|
+
item.size = this.size;
|
|
14248
|
+
item.appearance = this.appearance;
|
|
14249
|
+
});
|
|
14250
|
+
}
|
|
14251
|
+
/**
|
|
14252
|
+
* Updates current selected when slottedTreeItems changes
|
|
14253
|
+
*/
|
|
14254
|
+
updateCurrentSelected() {
|
|
14255
|
+
const selectedItem = this.querySelector(`[aria-selected='true']`);
|
|
14256
|
+
this.currentSelected = selectedItem;
|
|
14257
|
+
if (this.currentFocused === null || !this.contains(this.currentFocused)) {
|
|
14258
|
+
this.currentFocused = this.getValidFocusableItem();
|
|
14259
|
+
}
|
|
14260
|
+
}
|
|
14261
|
+
/**
|
|
14262
|
+
* KeyDown handler
|
|
14263
|
+
*
|
|
14264
|
+
* @internal
|
|
14265
|
+
*/
|
|
14266
|
+
keydownHandler(e) {
|
|
14267
|
+
if (e.defaultPrevented) {
|
|
14268
|
+
return;
|
|
14269
|
+
}
|
|
14270
|
+
const item = e.target;
|
|
14271
|
+
if (!isTreeItem(item) || this.childTreeItems.length < 1) {
|
|
14272
|
+
return true;
|
|
14273
|
+
}
|
|
14274
|
+
const elements = this.getVisibleNodes();
|
|
14275
|
+
switch (e.key) {
|
|
14276
|
+
case keyHome:
|
|
14277
|
+
{
|
|
14278
|
+
if (elements.length) {
|
|
14279
|
+
elements[0].focus();
|
|
14280
|
+
}
|
|
14281
|
+
return;
|
|
14282
|
+
}
|
|
14283
|
+
case keyEnd:
|
|
14284
|
+
{
|
|
14285
|
+
if (elements.length) {
|
|
14286
|
+
elements[elements.length - 1].focus();
|
|
14287
|
+
}
|
|
14288
|
+
return;
|
|
14289
|
+
}
|
|
14290
|
+
case keyArrowLeft:
|
|
14291
|
+
{
|
|
14292
|
+
if (item?.childTreeItems?.length && item.expanded) {
|
|
14293
|
+
item.expanded = false;
|
|
14294
|
+
} else if (isTreeItem(item.parentElement)) {
|
|
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
|
+
}
|
|
14330
|
+
}
|
|
14331
|
+
return true;
|
|
14332
|
+
}
|
|
14333
|
+
/**
|
|
14334
|
+
* Handle focus events
|
|
14335
|
+
*
|
|
14336
|
+
* @internal
|
|
14337
|
+
*/
|
|
14338
|
+
focusHandler(e) {
|
|
14339
|
+
if (this.childTreeItems.length < 1) {
|
|
14340
|
+
return;
|
|
14341
|
+
}
|
|
14342
|
+
if (e.target === this) {
|
|
14343
|
+
if (this.currentFocused === null) {
|
|
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;
|
|
14354
|
+
}
|
|
14355
|
+
}
|
|
14356
|
+
/**
|
|
14357
|
+
* Handle blur events
|
|
14358
|
+
*
|
|
14359
|
+
* @internal
|
|
14360
|
+
*/
|
|
14361
|
+
blurHandler(e) {
|
|
14362
|
+
if (e.target instanceof HTMLElement && (e.relatedTarget === null || !this.contains(e.relatedTarget))) {
|
|
14363
|
+
this.setAttribute("tabindex", "0");
|
|
14364
|
+
}
|
|
14365
|
+
}
|
|
14366
|
+
/**
|
|
14367
|
+
* Handles click events bubbling up
|
|
14368
|
+
*
|
|
14369
|
+
* @internal
|
|
14370
|
+
*/
|
|
14371
|
+
clickHandler(e) {
|
|
14372
|
+
if (e.defaultPrevented) {
|
|
14373
|
+
return;
|
|
14374
|
+
}
|
|
14375
|
+
if (!isTreeItem(e.target)) {
|
|
14376
|
+
return true;
|
|
14377
|
+
}
|
|
14378
|
+
const item = e.target;
|
|
14379
|
+
item.toggleExpansion();
|
|
14380
|
+
item.toggleSelection();
|
|
14381
|
+
}
|
|
14382
|
+
/**
|
|
14383
|
+
* Handles the selected-changed events bubbling up
|
|
14384
|
+
* from child tree items
|
|
14385
|
+
*
|
|
14386
|
+
* @internal
|
|
14387
|
+
*/
|
|
14388
|
+
changeHandler(e) {
|
|
14389
|
+
if (e.defaultPrevented) {
|
|
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
|
+
}
|
|
14404
|
+
}
|
|
14405
|
+
/**
|
|
14406
|
+
* checks if there are any nested tree items
|
|
14407
|
+
*/
|
|
14408
|
+
getValidFocusableItem() {
|
|
14409
|
+
const elements = this.getVisibleNodes();
|
|
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;
|
|
14418
|
+
}
|
|
14419
|
+
getVisibleNodes() {
|
|
14420
|
+
return Array.from(this.querySelectorAll("*")).filter(node => isTreeItem(node) && node.offsetParent !== null);
|
|
14421
|
+
}
|
|
14422
|
+
/**
|
|
14423
|
+
* Move focus to a tree item based on its offset from the provided item
|
|
14424
|
+
*/
|
|
14425
|
+
focusNextNode(delta, item) {
|
|
14426
|
+
const visibleNodes = this.getVisibleNodes();
|
|
14427
|
+
if (!visibleNodes.length) {
|
|
14428
|
+
return;
|
|
14429
|
+
}
|
|
14430
|
+
const focusItem = visibleNodes[visibleNodes.indexOf(item) + delta];
|
|
14431
|
+
if (isHTMLElement(focusItem)) {
|
|
14432
|
+
focusItem.focus();
|
|
14433
|
+
}
|
|
14434
|
+
}
|
|
14435
|
+
}
|
|
14436
|
+
__decorateClass([observable], Tree.prototype, "currentSelected", 2);
|
|
14437
|
+
__decorateClass([attr], Tree.prototype, "size", 2);
|
|
14438
|
+
__decorateClass([attr], Tree.prototype, "appearance", 2);
|
|
14439
|
+
__decorateClass([observable], Tree.prototype, "childTreeItems", 2);
|
|
14440
|
+
|
|
14441
|
+
const styles = css`
|
|
14442
|
+
${display("block")}
|
|
14443
|
+
:host{outline:none}`;
|
|
14444
|
+
|
|
14445
|
+
const template = 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({
|
|
14446
|
+
property: "childTreeItems",
|
|
14447
|
+
filter: elements()
|
|
14448
|
+
})}><slot></slot></template>`;
|
|
14449
|
+
|
|
14450
|
+
const definition = Tree.compose({
|
|
14451
|
+
name: `${FluentDesignSystem.prefix}-tree`,
|
|
14452
|
+
template: template,
|
|
14453
|
+
styles: styles
|
|
13853
14454
|
});
|
|
13854
14455
|
|
|
13855
14456
|
definition.define(FluentDesignSystem.registry);
|
|
14457
|
+
|
|
14458
|
+
definition$1.define(FluentDesignSystem.registry);
|