@fluentui/web-components 3.0.0-alpha.4 → 3.0.0-alpha.6
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.json +61 -1
- package/CHANGELOG.md +20 -2
- package/dist/dts/accordion/accordion.d.ts +7 -0
- package/dist/dts/accordion/accordion.definition.d.ts +11 -0
- package/dist/dts/accordion/accordion.styles.d.ts +1 -0
- package/dist/dts/accordion/accordion.template.d.ts +3 -0
- package/dist/dts/accordion/define.d.ts +1 -0
- package/dist/dts/accordion/index.d.ts +4 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +33 -0
- package/dist/dts/accordion-item/accordion-item.definition.d.ts +11 -0
- package/dist/dts/accordion-item/accordion-item.options.d.ts +27 -0
- package/dist/dts/accordion-item/accordion-item.styles.d.ts +1 -0
- package/dist/dts/accordion-item/accordion-item.template.d.ts +7 -0
- package/dist/dts/accordion-item/define.d.ts +1 -0
- package/dist/dts/accordion-item/index.d.ts +5 -0
- package/dist/dts/index.d.ts +3 -0
- package/dist/dts/switch/define.d.ts +1 -0
- package/dist/dts/switch/index.d.ts +5 -0
- package/dist/dts/switch/switch.d.ts +13 -0
- package/dist/dts/switch/switch.definition.d.ts +9 -0
- package/dist/dts/switch/switch.options.d.ts +15 -0
- package/dist/dts/switch/switch.styles.d.ts +1 -0
- package/dist/dts/switch/switch.template.d.ts +3 -0
- package/dist/esm/accordion/accordion.definition.js +19 -0
- package/dist/esm/accordion/accordion.definition.js.map +1 -0
- package/dist/esm/accordion/accordion.js +8 -0
- package/dist/esm/accordion/accordion.js.map +1 -0
- package/dist/esm/accordion/accordion.styles.js +11 -0
- package/dist/esm/accordion/accordion.styles.js.map +1 -0
- package/dist/esm/accordion/accordion.template.js +3 -0
- package/dist/esm/accordion/accordion.template.js.map +1 -0
- package/dist/esm/accordion/define.js +4 -0
- package/dist/esm/accordion/define.js.map +1 -0
- package/dist/esm/accordion/index.js +5 -0
- package/dist/esm/accordion/index.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.definition.js +19 -0
- package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.js +29 -0
- package/dist/esm/accordion-item/accordion-item.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.options.js +17 -0
- package/dist/esm/accordion-item/accordion-item.options.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.styles.js +197 -0
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.template.js +37 -0
- package/dist/esm/accordion-item/accordion-item.template.js.map +1 -0
- package/dist/esm/accordion-item/define.js +4 -0
- package/dist/esm/accordion-item/define.js.map +1 -0
- package/dist/esm/accordion-item/index.js +6 -0
- package/dist/esm/accordion-item/index.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/switch/define.js +4 -0
- package/dist/esm/switch/define.js.map +1 -0
- package/dist/esm/switch/index.js +6 -0
- package/dist/esm/switch/index.js.map +1 -0
- package/dist/esm/switch/switch.definition.js +17 -0
- package/dist/esm/switch/switch.definition.js.map +1 -0
- package/dist/esm/switch/switch.js +9 -0
- package/dist/esm/switch/switch.js.map +1 -0
- package/dist/esm/switch/switch.options.js +10 -0
- package/dist/esm/switch/switch.options.js.map +1 -0
- package/dist/esm/switch/switch.styles.js +114 -0
- package/dist/esm/switch/switch.styles.js.map +1 -0
- package/dist/esm/switch/switch.template.js +5 -0
- package/dist/esm/switch/switch.template.js.map +1 -0
- package/dist/fluent-web-components.api.json +585 -0
- package/dist/web-components.d.ts +147 -0
- package/dist/web-components.js +1795 -601
- package/dist/web-components.min.js +122 -113
- package/docs/api-report.md +85 -0
- package/package.json +13 -1
package/dist/web-components.js
CHANGED
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import { composedContains, composedParent } from '@microsoft/fast-element/utilities';
|
|
2
2
|
|
|
3
|
-
/******************************************************************************
|
|
4
|
-
Copyright (c) Microsoft Corporation.
|
|
5
|
-
|
|
6
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
-
purpose with or without fee is hereby granted.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
-
***************************************************************************** */
|
|
17
|
-
function __decorate(decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length,
|
|
19
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
20
|
-
d;
|
|
21
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
26
4
|
|
|
27
5
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
@@ -93,7 +71,7 @@ if (FAST.error === void 0) {
|
|
|
93
71
|
* no actual items to return.
|
|
94
72
|
* @public
|
|
95
73
|
*/
|
|
96
|
-
Object.freeze([]);
|
|
74
|
+
const emptyArray = Object.freeze([]);
|
|
97
75
|
/**
|
|
98
76
|
* Do not change. Part of shared kernel contract.
|
|
99
77
|
* @internal
|
|
@@ -2199,6 +2177,136 @@ function when(condition, templateOrTemplateBinding) {
|
|
|
2199
2177
|
return (source, context) => dataBinding(source, context) ? templateBinding(source, context) : null;
|
|
2200
2178
|
}
|
|
2201
2179
|
|
|
2180
|
+
const selectElements = value => value.nodeType === 1;
|
|
2181
|
+
/**
|
|
2182
|
+
* Creates a function that can be used to filter a Node array, selecting only elements.
|
|
2183
|
+
* @param selector - An optional selector to restrict the filter to.
|
|
2184
|
+
* @public
|
|
2185
|
+
*/
|
|
2186
|
+
const elements = selector => selector ? value => value.nodeType === 1 && value.matches(selector) : selectElements;
|
|
2187
|
+
/**
|
|
2188
|
+
* A base class for node observation.
|
|
2189
|
+
* @public
|
|
2190
|
+
* @remarks
|
|
2191
|
+
* Internally used by the SlottedDirective and the ChildrenDirective.
|
|
2192
|
+
*/
|
|
2193
|
+
class NodeObservationDirective extends StatelessAttachedAttributeDirective {
|
|
2194
|
+
/**
|
|
2195
|
+
* The unique id of the factory.
|
|
2196
|
+
*/
|
|
2197
|
+
get id() {
|
|
2198
|
+
return this._id;
|
|
2199
|
+
}
|
|
2200
|
+
set id(value) {
|
|
2201
|
+
this._id = value;
|
|
2202
|
+
this._controllerProperty = `${value}-c`;
|
|
2203
|
+
}
|
|
2204
|
+
/**
|
|
2205
|
+
* Bind this behavior to the source.
|
|
2206
|
+
* @param source - The source to bind to.
|
|
2207
|
+
* @param context - The execution context that the binding is operating within.
|
|
2208
|
+
* @param targets - The targets that behaviors in a view can attach to.
|
|
2209
|
+
*/
|
|
2210
|
+
bind(controller) {
|
|
2211
|
+
const target = controller.targets[this.targetNodeId];
|
|
2212
|
+
target[this._controllerProperty] = controller;
|
|
2213
|
+
this.updateTarget(controller.source, this.computeNodes(target));
|
|
2214
|
+
this.observe(target);
|
|
2215
|
+
controller.onUnbind(this);
|
|
2216
|
+
}
|
|
2217
|
+
/**
|
|
2218
|
+
* Unbinds this behavior from the source.
|
|
2219
|
+
* @param source - The source to unbind from.
|
|
2220
|
+
* @param context - The execution context that the binding is operating within.
|
|
2221
|
+
* @param targets - The targets that behaviors in a view can attach to.
|
|
2222
|
+
*/
|
|
2223
|
+
unbind(controller) {
|
|
2224
|
+
const target = controller.targets[this.targetNodeId];
|
|
2225
|
+
this.updateTarget(controller.source, emptyArray);
|
|
2226
|
+
this.disconnect(target);
|
|
2227
|
+
target[this._controllerProperty] = null;
|
|
2228
|
+
}
|
|
2229
|
+
/**
|
|
2230
|
+
* Gets the data source for the target.
|
|
2231
|
+
* @param target - The target to get the source for.
|
|
2232
|
+
* @returns The source.
|
|
2233
|
+
*/
|
|
2234
|
+
getSource(target) {
|
|
2235
|
+
return target[this._controllerProperty].source;
|
|
2236
|
+
}
|
|
2237
|
+
/**
|
|
2238
|
+
* Updates the source property with the computed nodes.
|
|
2239
|
+
* @param source - The source object to assign the nodes property to.
|
|
2240
|
+
* @param value - The nodes to assign to the source object property.
|
|
2241
|
+
*/
|
|
2242
|
+
updateTarget(source, value) {
|
|
2243
|
+
source[this.options.property] = value;
|
|
2244
|
+
}
|
|
2245
|
+
/**
|
|
2246
|
+
* Computes the set of nodes that should be assigned to the source property.
|
|
2247
|
+
* @param target - The target to compute the nodes for.
|
|
2248
|
+
* @returns The computed nodes.
|
|
2249
|
+
* @remarks
|
|
2250
|
+
* Applies filters if provided.
|
|
2251
|
+
*/
|
|
2252
|
+
computeNodes(target) {
|
|
2253
|
+
let nodes = this.getNodes(target);
|
|
2254
|
+
if ("filter" in this.options) {
|
|
2255
|
+
nodes = nodes.filter(this.options.filter);
|
|
2256
|
+
}
|
|
2257
|
+
return nodes;
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
const slotEvent = "slotchange";
|
|
2262
|
+
/**
|
|
2263
|
+
* The runtime behavior for slotted node observation.
|
|
2264
|
+
* @public
|
|
2265
|
+
*/
|
|
2266
|
+
class SlottedDirective extends NodeObservationDirective {
|
|
2267
|
+
/**
|
|
2268
|
+
* Begins observation of the nodes.
|
|
2269
|
+
* @param target - The target to observe.
|
|
2270
|
+
*/
|
|
2271
|
+
observe(target) {
|
|
2272
|
+
target.addEventListener(slotEvent, this);
|
|
2273
|
+
}
|
|
2274
|
+
/**
|
|
2275
|
+
* Disconnects observation of the nodes.
|
|
2276
|
+
* @param target - The target to unobserve.
|
|
2277
|
+
*/
|
|
2278
|
+
disconnect(target) {
|
|
2279
|
+
target.removeEventListener(slotEvent, this);
|
|
2280
|
+
}
|
|
2281
|
+
/**
|
|
2282
|
+
* Retrieves the raw nodes that should be assigned to the source property.
|
|
2283
|
+
* @param target - The target to get the node to.
|
|
2284
|
+
*/
|
|
2285
|
+
getNodes(target) {
|
|
2286
|
+
return target.assignedNodes(this.options);
|
|
2287
|
+
}
|
|
2288
|
+
/** @internal */
|
|
2289
|
+
handleEvent(event) {
|
|
2290
|
+
const target = event.currentTarget;
|
|
2291
|
+
this.updateTarget(this.getSource(target), this.computeNodes(target));
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
HTMLDirective.define(SlottedDirective);
|
|
2295
|
+
/**
|
|
2296
|
+
* A directive that observes the `assignedNodes()` of a slot and updates a property
|
|
2297
|
+
* whenever they change.
|
|
2298
|
+
* @param propertyOrOptions - The options used to configure slotted node observation.
|
|
2299
|
+
* @public
|
|
2300
|
+
*/
|
|
2301
|
+
function slotted(propertyOrOptions) {
|
|
2302
|
+
if (isString(propertyOrOptions)) {
|
|
2303
|
+
propertyOrOptions = {
|
|
2304
|
+
property: propertyOrOptions
|
|
2305
|
+
};
|
|
2306
|
+
}
|
|
2307
|
+
return new SlottedDirective(propertyOrOptions);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2202
2310
|
const booleanMode = "boolean";
|
|
2203
2311
|
const reflectMode = "reflect";
|
|
2204
2312
|
/**
|
|
@@ -3039,6 +3147,28 @@ function staticallyCompose(item) {
|
|
|
3039
3147
|
return item;
|
|
3040
3148
|
}
|
|
3041
3149
|
|
|
3150
|
+
/******************************************************************************
|
|
3151
|
+
Copyright (c) Microsoft Corporation.
|
|
3152
|
+
|
|
3153
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
3154
|
+
purpose with or without fee is hereby granted.
|
|
3155
|
+
|
|
3156
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3157
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3158
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3159
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3160
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3161
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3162
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
3163
|
+
***************************************************************************** */
|
|
3164
|
+
function __decorate(decorators, target, key, desc) {
|
|
3165
|
+
var c = arguments.length,
|
|
3166
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
3167
|
+
d;
|
|
3168
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3169
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3042
3172
|
/**
|
|
3043
3173
|
* A mixin class implementing start and end slots.
|
|
3044
3174
|
* These are generally used to decorate text elements with icons or other visual indicators.
|
|
@@ -3064,6 +3194,46 @@ function startSlotTemplate(options) {
|
|
|
3064
3194
|
return html`<slot name="start" ${ref("start")}>${staticallyCompose(options.start)}</slot>`.inline();
|
|
3065
3195
|
}
|
|
3066
3196
|
|
|
3197
|
+
/**
|
|
3198
|
+
* The template for the {@link @microsoft/fast-foundation#(FASTAccordionItem:class)} component.
|
|
3199
|
+
* @public
|
|
3200
|
+
*/
|
|
3201
|
+
function accordionItemTemplate(options = {}) {
|
|
3202
|
+
return html`<div class="heading" part="heading" role="heading" aria-level="${x => x.headinglevel}"><button class="button" part="button" ${ref("expandbutton")} ?disabled="${x => x.disabled ? "true" : void 0}" aria-expanded="${x => x.expanded}" aria-controls="${x => x.id}-panel" id="${x => x.id}" @click="${(x, c) => x.clickHandler(c.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${startSlotTemplate(options)} ${endSlotTemplate(options)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${staticallyCompose(options.expandedIcon)}</slot><slot name="collapsed-icon">${staticallyCompose(options.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${x => x.id}-panel" role="region" aria-labelledby="${x => x.id}"><slot></slot></div>`;
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
/**
|
|
3206
|
+
* String values for use with KeyboardEvent.key
|
|
3207
|
+
*/
|
|
3208
|
+
const keyArrowDown = "ArrowDown";
|
|
3209
|
+
const keyArrowUp = "ArrowUp";
|
|
3210
|
+
const keyEnd = "End";
|
|
3211
|
+
const keyEnter = "Enter";
|
|
3212
|
+
const keyHome = "Home";
|
|
3213
|
+
const keySpace = " ";
|
|
3214
|
+
|
|
3215
|
+
/**
|
|
3216
|
+
* This method keeps a given value within the bounds of a min and max value. If the value
|
|
3217
|
+
* is larger than the max, the minimum value will be returned. If the value is smaller than the minimum,
|
|
3218
|
+
* the maximum will be returned. Otherwise, the value is returned un-changed.
|
|
3219
|
+
*/
|
|
3220
|
+
function wrapInBounds(min, max, value) {
|
|
3221
|
+
if (value < min) {
|
|
3222
|
+
return max;
|
|
3223
|
+
} else if (value > max) {
|
|
3224
|
+
return min;
|
|
3225
|
+
}
|
|
3226
|
+
return value;
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3229
|
+
let uniqueIdCounter = 0;
|
|
3230
|
+
/**
|
|
3231
|
+
* Generates a unique ID based on incrementing a counter.
|
|
3232
|
+
*/
|
|
3233
|
+
function uniqueId(prefix = "") {
|
|
3234
|
+
return `${prefix}${uniqueIdCounter++}`;
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3067
3237
|
/**
|
|
3068
3238
|
* Apply mixins to a constructor.
|
|
3069
3239
|
* Sourced from {@link https://www.typescriptlang.org/docs/handbook/mixins.html | TypeScript Documentation }.
|
|
@@ -3083,127 +3253,897 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
3083
3253
|
});
|
|
3084
3254
|
}
|
|
3085
3255
|
|
|
3086
|
-
class DerivedValueEvaluator {
|
|
3087
|
-
constructor(value) {
|
|
3088
|
-
this.value = value;
|
|
3089
|
-
this.notifier = Observable.getNotifier(this);
|
|
3090
|
-
this.dependencies = new Set();
|
|
3091
|
-
this.binding = Observable.binding(value, this);
|
|
3092
|
-
this.binding.setMode(false);
|
|
3093
|
-
}
|
|
3094
|
-
static getOrCreate(value) {
|
|
3095
|
-
let v = DerivedValueEvaluator.cache.get(value);
|
|
3096
|
-
if (v) {
|
|
3097
|
-
return v;
|
|
3098
|
-
}
|
|
3099
|
-
v = new DerivedValueEvaluator(value);
|
|
3100
|
-
DerivedValueEvaluator.cache.set(value, v);
|
|
3101
|
-
return v;
|
|
3102
|
-
}
|
|
3103
|
-
evaluate(node, tokenContext) {
|
|
3104
|
-
const resolve = token => {
|
|
3105
|
-
this.dependencies.add(token);
|
|
3106
|
-
if (tokenContext === token) {
|
|
3107
|
-
if (node.parent) {
|
|
3108
|
-
return node.parent.getTokenValue(token);
|
|
3109
|
-
}
|
|
3110
|
-
throw new Error("DesignTokenNode has encountered a circular token reference. Avoid this by setting the token value for an ancestor node.");
|
|
3111
|
-
} else {
|
|
3112
|
-
return node.getTokenValue(token);
|
|
3113
|
-
}
|
|
3114
|
-
};
|
|
3115
|
-
return this.binding.observe(resolve);
|
|
3116
|
-
}
|
|
3117
|
-
handleChange() {
|
|
3118
|
-
this.notifier.notify(undefined);
|
|
3119
|
-
}
|
|
3120
|
-
}
|
|
3121
|
-
DerivedValueEvaluator.cache = new WeakMap();
|
|
3122
|
-
class DerivedValue {
|
|
3123
|
-
constructor(token, evaluator, node, subscriber) {
|
|
3124
|
-
this.token = token;
|
|
3125
|
-
this.evaluator = evaluator;
|
|
3126
|
-
this.node = node;
|
|
3127
|
-
this.subscriber = subscriber;
|
|
3128
|
-
this.value = evaluator.evaluate(node, token);
|
|
3129
|
-
if (this.subscriber) {
|
|
3130
|
-
Observable.getNotifier(this.evaluator).subscribe(this.subscriber);
|
|
3131
|
-
}
|
|
3132
|
-
}
|
|
3133
|
-
dispose() {
|
|
3134
|
-
if (this.subscriber) {
|
|
3135
|
-
Observable.getNotifier(this.evaluator).unsubscribe(this.subscriber);
|
|
3136
|
-
}
|
|
3137
|
-
}
|
|
3138
|
-
update() {
|
|
3139
|
-
this.value = this.evaluator.evaluate(this.node, this.token);
|
|
3140
|
-
return this;
|
|
3141
|
-
}
|
|
3142
|
-
}
|
|
3143
3256
|
/**
|
|
3144
|
-
* @
|
|
3257
|
+
* An individual item in an {@link @microsoft/fast-foundation#(FASTAccordion:class) }.
|
|
3258
|
+
*
|
|
3259
|
+
* @slot start - Content which can be provided between the heading and the icon
|
|
3260
|
+
* @slot end - Content which can be provided between the start slot and icon
|
|
3261
|
+
* @slot heading - Content which serves as the accordion item heading and text of the expand button
|
|
3262
|
+
* @slot - The default slot for accordion item content
|
|
3263
|
+
* @slot expanded-icon - The expanded icon
|
|
3264
|
+
* @slot collapsed-icon - The collapsed icon
|
|
3265
|
+
* @fires change - Fires a custom 'change' event when the button is invoked
|
|
3266
|
+
* @csspart heading - Wraps the button
|
|
3267
|
+
* @csspart button - The button which serves to invoke the item
|
|
3268
|
+
* @csspart heading-content - Wraps the slot for the heading content within the button
|
|
3269
|
+
* @csspart icon - The icon container
|
|
3270
|
+
* @csspart region - The wrapper for the accordion item content
|
|
3271
|
+
*
|
|
3272
|
+
* @public
|
|
3145
3273
|
*/
|
|
3146
|
-
class
|
|
3147
|
-
constructor(
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3274
|
+
class FASTAccordionItem extends FASTElement {
|
|
3275
|
+
constructor() {
|
|
3276
|
+
super(...arguments);
|
|
3277
|
+
/**
|
|
3278
|
+
* Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the
|
|
3279
|
+
* heading element.
|
|
3280
|
+
*
|
|
3281
|
+
* @defaultValue 2
|
|
3282
|
+
* @public
|
|
3283
|
+
* @remarks
|
|
3284
|
+
* HTML attribute: heading-level
|
|
3285
|
+
*/
|
|
3286
|
+
this.headinglevel = 2;
|
|
3287
|
+
/**
|
|
3288
|
+
* Expands or collapses the item.
|
|
3289
|
+
*
|
|
3290
|
+
* @public
|
|
3291
|
+
* @remarks
|
|
3292
|
+
* HTML attribute: expanded
|
|
3293
|
+
*/
|
|
3294
|
+
this.expanded = false;
|
|
3295
|
+
/**
|
|
3296
|
+
* Disables an accordion item
|
|
3297
|
+
*
|
|
3298
|
+
* @public
|
|
3299
|
+
* @remarks
|
|
3300
|
+
* HTML attribute: disabled
|
|
3301
|
+
*/
|
|
3302
|
+
this.disabled = false;
|
|
3303
|
+
/**
|
|
3304
|
+
* The item ID
|
|
3305
|
+
*
|
|
3306
|
+
* @public
|
|
3307
|
+
* @remarks
|
|
3308
|
+
* HTML Attribute: id
|
|
3309
|
+
*/
|
|
3310
|
+
this.id = uniqueId("accordion-");
|
|
3311
|
+
/**
|
|
3312
|
+
* @internal
|
|
3313
|
+
*/
|
|
3314
|
+
this.clickHandler = e => {
|
|
3315
|
+
if (this.disabled) {
|
|
3316
|
+
return;
|
|
3317
|
+
}
|
|
3318
|
+
this.$emit("click", e);
|
|
3319
|
+
};
|
|
3155
3320
|
}
|
|
3156
3321
|
}
|
|
3322
|
+
__decorate([attr({
|
|
3323
|
+
attribute: "heading-level",
|
|
3324
|
+
mode: "fromView",
|
|
3325
|
+
converter: nullableNumberConverter
|
|
3326
|
+
})], FASTAccordionItem.prototype, "headinglevel", void 0);
|
|
3327
|
+
__decorate([attr({
|
|
3328
|
+
mode: "boolean"
|
|
3329
|
+
})], FASTAccordionItem.prototype, "expanded", void 0);
|
|
3330
|
+
__decorate([attr({
|
|
3331
|
+
mode: "boolean"
|
|
3332
|
+
})], FASTAccordionItem.prototype, "disabled", void 0);
|
|
3333
|
+
__decorate([attr], FASTAccordionItem.prototype, "id", void 0);
|
|
3334
|
+
applyMixins(FASTAccordionItem, StartEnd);
|
|
3335
|
+
|
|
3157
3336
|
/**
|
|
3337
|
+
* Expand mode for {@link FASTAccordion}
|
|
3158
3338
|
* @public
|
|
3159
3339
|
*/
|
|
3160
|
-
|
|
3161
|
-
constructor() {
|
|
3162
|
-
this._parent = null;
|
|
3163
|
-
this._children = new Set();
|
|
3164
|
-
this._values = new Map();
|
|
3165
|
-
this._derived = new Map();
|
|
3166
|
-
this.dependencyGraph = new Map();
|
|
3167
|
-
}
|
|
3168
|
-
/**
|
|
3169
|
-
* Determines if a value is a {@link DerivedDesignTokenValue}
|
|
3170
|
-
* @param value - The value to test
|
|
3171
|
-
*/
|
|
3172
|
-
static isDerivedTokenValue(value) {
|
|
3173
|
-
return typeof value === "function";
|
|
3174
|
-
}
|
|
3340
|
+
const AccordionExpandMode = {
|
|
3175
3341
|
/**
|
|
3176
|
-
*
|
|
3342
|
+
* Designates only a single {@link @microsoft/fast-foundation#(FASTAccordionItem:class) } can be open a time.
|
|
3177
3343
|
*/
|
|
3178
|
-
|
|
3179
|
-
return node._derived.has(token);
|
|
3180
|
-
}
|
|
3344
|
+
single: "single",
|
|
3181
3345
|
/**
|
|
3182
|
-
*
|
|
3346
|
+
* Designates multiple {@link @microsoft/fast-foundation#(FASTAccordionItem:class) | FASTAccordionItemItems} can be open simultaneously.
|
|
3183
3347
|
*/
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3348
|
+
multi: "multi"
|
|
3349
|
+
};
|
|
3350
|
+
|
|
3351
|
+
/**
|
|
3352
|
+
* An Accordion Custom HTML Element
|
|
3353
|
+
* Implements {@link https://www.w3.org/TR/wai-aria-practices-1.1/#accordion | ARIA Accordion}.
|
|
3354
|
+
*
|
|
3355
|
+
* @fires change - Fires a custom 'change' event when the active item changes
|
|
3356
|
+
* @csspart item - The slot for the accordion items
|
|
3357
|
+
* @public
|
|
3358
|
+
*
|
|
3359
|
+
* @remarks
|
|
3360
|
+
* Designed to be used with {@link @microsoft/fast-foundation#accordionTemplate} and {@link @microsoft/fast-foundation#(FASTAccordionItem:class)}.
|
|
3361
|
+
*/
|
|
3362
|
+
class FASTAccordion extends FASTElement {
|
|
3363
|
+
constructor() {
|
|
3364
|
+
super(...arguments);
|
|
3365
|
+
/**
|
|
3366
|
+
* Controls the expand mode of the Accordion, either allowing
|
|
3367
|
+
* single or multiple item expansion.
|
|
3368
|
+
* @public
|
|
3369
|
+
*
|
|
3370
|
+
* @remarks
|
|
3371
|
+
* HTML attribute: expand-mode
|
|
3372
|
+
*/
|
|
3373
|
+
this.expandmode = AccordionExpandMode.multi;
|
|
3374
|
+
this.activeItemIndex = 0;
|
|
3375
|
+
this.change = () => {
|
|
3376
|
+
this.$emit("change", this.activeid);
|
|
3377
|
+
};
|
|
3378
|
+
this.setItems = () => {
|
|
3379
|
+
if (this.slottedAccordionItems.length === 0) {
|
|
3380
|
+
return;
|
|
3381
|
+
}
|
|
3382
|
+
const children = Array.from(this.children);
|
|
3383
|
+
this.removeItemListeners(children);
|
|
3384
|
+
children.forEach(child => Observable.getNotifier(child).subscribe(this, "disabled"));
|
|
3385
|
+
this.accordionItems = children.filter(child => !child.hasAttribute("disabled"));
|
|
3386
|
+
this.accordionIds = this.getItemIds();
|
|
3387
|
+
this.accordionItems.forEach((item, index) => {
|
|
3388
|
+
if (item instanceof FASTAccordionItem) {
|
|
3389
|
+
item.addEventListener("click", this.activeItemChange);
|
|
3390
|
+
Observable.getNotifier(item).subscribe(this, "expanded");
|
|
3391
|
+
}
|
|
3392
|
+
const itemId = this.accordionIds[index];
|
|
3393
|
+
item.setAttribute("id", typeof itemId !== "string" ? `accordion-${index + 1}` : itemId);
|
|
3394
|
+
this.activeid = this.accordionIds[this.activeItemIndex];
|
|
3395
|
+
item.addEventListener("keydown", this.handleItemKeyDown);
|
|
3396
|
+
item.addEventListener("focus", this.handleItemFocus);
|
|
3397
|
+
});
|
|
3398
|
+
if (this.isSingleExpandMode()) {
|
|
3399
|
+
const expandedItem = this.findExpandedItem();
|
|
3400
|
+
this.setSingleExpandMode(expandedItem);
|
|
3401
|
+
}
|
|
3402
|
+
};
|
|
3403
|
+
this.removeItemListeners = oldValue => {
|
|
3404
|
+
oldValue.forEach((item, index) => {
|
|
3405
|
+
Observable.getNotifier(item).unsubscribe(this, "disabled");
|
|
3406
|
+
Observable.getNotifier(item).unsubscribe(this, "expanded");
|
|
3407
|
+
item.removeEventListener("click", this.activeItemChange);
|
|
3408
|
+
item.removeEventListener("keydown", this.handleItemKeyDown);
|
|
3409
|
+
item.removeEventListener("focus", this.handleItemFocus);
|
|
3410
|
+
});
|
|
3411
|
+
};
|
|
3412
|
+
this.activeItemChange = event => {
|
|
3413
|
+
if (event.defaultPrevented || event.target !== event.currentTarget) {
|
|
3414
|
+
return;
|
|
3415
|
+
}
|
|
3416
|
+
event.preventDefault();
|
|
3417
|
+
this.handleExpandedChange(event.target);
|
|
3418
|
+
};
|
|
3419
|
+
this.handleExpandedChange = item => {
|
|
3420
|
+
if (item instanceof FASTAccordionItem) {
|
|
3421
|
+
this.activeid = item.getAttribute("id");
|
|
3422
|
+
if (!this.isSingleExpandMode()) {
|
|
3423
|
+
item.expanded = !item.expanded;
|
|
3424
|
+
// setSingleExpandMode sets activeItemIndex on its own
|
|
3425
|
+
this.activeItemIndex = this.accordionItems.indexOf(item);
|
|
3426
|
+
} else {
|
|
3427
|
+
this.setSingleExpandMode(item);
|
|
3428
|
+
}
|
|
3429
|
+
this.change();
|
|
3430
|
+
}
|
|
3431
|
+
};
|
|
3432
|
+
this.handleItemKeyDown = event => {
|
|
3433
|
+
// only handle the keydown if the event target is the accordion item
|
|
3434
|
+
// prevents arrow keys from moving focus to accordion headers when focus is on accordion item panel content
|
|
3435
|
+
if (event.target !== event.currentTarget) {
|
|
3436
|
+
return;
|
|
3437
|
+
}
|
|
3438
|
+
this.accordionIds = this.getItemIds();
|
|
3439
|
+
switch (event.key) {
|
|
3440
|
+
case keyArrowUp:
|
|
3441
|
+
event.preventDefault();
|
|
3442
|
+
this.adjust(-1);
|
|
3443
|
+
break;
|
|
3444
|
+
case keyArrowDown:
|
|
3445
|
+
event.preventDefault();
|
|
3446
|
+
this.adjust(1);
|
|
3447
|
+
break;
|
|
3448
|
+
case keyHome:
|
|
3449
|
+
this.activeItemIndex = 0;
|
|
3450
|
+
this.focusItem();
|
|
3451
|
+
break;
|
|
3452
|
+
case keyEnd:
|
|
3453
|
+
this.activeItemIndex = this.accordionItems.length - 1;
|
|
3454
|
+
this.focusItem();
|
|
3455
|
+
break;
|
|
3456
|
+
}
|
|
3457
|
+
};
|
|
3458
|
+
this.handleItemFocus = event => {
|
|
3459
|
+
// update the active item index if the focus moves to an accordion item via a different method other than the up and down arrow key actions
|
|
3460
|
+
// only do so if the focus is actually on the accordion item and not on any of its children
|
|
3461
|
+
if (event.target === event.currentTarget) {
|
|
3462
|
+
const focusedItem = event.target;
|
|
3463
|
+
const focusedIndex = this.activeItemIndex = Array.from(this.accordionItems).indexOf(focusedItem);
|
|
3464
|
+
if (this.activeItemIndex !== focusedIndex && focusedIndex !== -1) {
|
|
3465
|
+
this.activeItemIndex = focusedIndex;
|
|
3466
|
+
this.activeid = this.accordionIds[this.activeItemIndex];
|
|
3467
|
+
}
|
|
3468
|
+
}
|
|
3469
|
+
};
|
|
3470
|
+
}
|
|
3471
|
+
expandmodeChanged(prev, next) {
|
|
3472
|
+
if (!this.$fastController.isConnected) {
|
|
3473
|
+
return;
|
|
3474
|
+
}
|
|
3475
|
+
const expandedItem = this.findExpandedItem();
|
|
3476
|
+
if (!expandedItem) {
|
|
3477
|
+
return;
|
|
3478
|
+
}
|
|
3479
|
+
if (next !== AccordionExpandMode.single) {
|
|
3480
|
+
expandedItem === null || expandedItem === void 0 ? void 0 : expandedItem.expandbutton.removeAttribute("aria-disabled");
|
|
3481
|
+
} else {
|
|
3482
|
+
this.setSingleExpandMode(expandedItem);
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
/**
|
|
3486
|
+
* @internal
|
|
3487
|
+
*/
|
|
3488
|
+
slottedAccordionItemsChanged(oldValue, newValue) {
|
|
3489
|
+
if (this.$fastController.isConnected) {
|
|
3490
|
+
this.setItems();
|
|
3491
|
+
}
|
|
3492
|
+
}
|
|
3493
|
+
/**
|
|
3494
|
+
* @internal
|
|
3495
|
+
*/
|
|
3496
|
+
handleChange(source, propertyName) {
|
|
3497
|
+
if (propertyName === "disabled") {
|
|
3498
|
+
this.setItems();
|
|
3499
|
+
} else if (propertyName === "expanded") {
|
|
3500
|
+
// we only need to manage single expanded instances
|
|
3501
|
+
// such as scenarios where a child is programatically expanded
|
|
3502
|
+
if (source.expanded && this.isSingleExpandMode()) {
|
|
3503
|
+
this.setSingleExpandMode(source);
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
findExpandedItem() {
|
|
3508
|
+
var _a;
|
|
3509
|
+
if (this.accordionItems.length === 0) {
|
|
3510
|
+
return null;
|
|
3511
|
+
}
|
|
3512
|
+
return (_a = this.accordionItems.find(item => item instanceof FASTAccordionItem && item.expanded)) !== null && _a !== void 0 ? _a : this.accordionItems[0];
|
|
3513
|
+
}
|
|
3514
|
+
setSingleExpandMode(expandedItem) {
|
|
3515
|
+
if (this.accordionItems.length === 0) {
|
|
3516
|
+
return;
|
|
3517
|
+
}
|
|
3518
|
+
const currentItems = Array.from(this.accordionItems);
|
|
3519
|
+
this.activeItemIndex = currentItems.indexOf(expandedItem);
|
|
3520
|
+
currentItems.forEach((item, index) => {
|
|
3521
|
+
if (this.activeItemIndex === index) {
|
|
3522
|
+
item.expanded = true;
|
|
3523
|
+
item.expandbutton.setAttribute("aria-disabled", "true");
|
|
3524
|
+
} else {
|
|
3525
|
+
item.expanded = false;
|
|
3526
|
+
if (!item.hasAttribute("disabled")) {
|
|
3527
|
+
item.expandbutton.removeAttribute("aria-disabled");
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3530
|
+
});
|
|
3531
|
+
}
|
|
3532
|
+
getItemIds() {
|
|
3533
|
+
return this.slottedAccordionItems.map(accordionItem => {
|
|
3534
|
+
return accordionItem.id;
|
|
3535
|
+
});
|
|
3536
|
+
}
|
|
3537
|
+
isSingleExpandMode() {
|
|
3538
|
+
return this.expandmode === AccordionExpandMode.single;
|
|
3539
|
+
}
|
|
3540
|
+
adjust(adjustment) {
|
|
3541
|
+
this.activeItemIndex = wrapInBounds(0, this.accordionItems.length - 1, this.activeItemIndex + adjustment);
|
|
3542
|
+
this.focusItem();
|
|
3543
|
+
}
|
|
3544
|
+
focusItem() {
|
|
3545
|
+
const element = this.accordionItems[this.activeItemIndex];
|
|
3546
|
+
if (element instanceof FASTAccordionItem) {
|
|
3547
|
+
element.expandbutton.focus();
|
|
3548
|
+
}
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
__decorate([attr({
|
|
3552
|
+
attribute: "expand-mode"
|
|
3553
|
+
})], FASTAccordion.prototype, "expandmode", void 0);
|
|
3554
|
+
__decorate([observable], FASTAccordion.prototype, "slottedAccordionItems", void 0);
|
|
3555
|
+
|
|
3556
|
+
/**
|
|
3557
|
+
* Creates a template for the {@link @microsoft/fast-foundation#FASTAccordion} component.
|
|
3558
|
+
* @public
|
|
3559
|
+
*/
|
|
3560
|
+
function accordionTemplate() {
|
|
3561
|
+
return html`<template><slot ${slotted({
|
|
3562
|
+
property: "slottedAccordionItems",
|
|
3563
|
+
filter: elements()
|
|
3564
|
+
})}></slot></template>`;
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3567
|
+
const proxySlotName = "form-associated-proxy";
|
|
3568
|
+
const ElementInternalsKey = "ElementInternals";
|
|
3569
|
+
/**
|
|
3570
|
+
* @alpha
|
|
3571
|
+
*/
|
|
3572
|
+
const supportsElementInternals = ElementInternalsKey in window && "setFormValue" in window[ElementInternalsKey].prototype;
|
|
3573
|
+
const InternalsMap = new WeakMap();
|
|
3574
|
+
/**
|
|
3575
|
+
* Base function for providing Custom Element Form Association.
|
|
3576
|
+
*
|
|
3577
|
+
* @beta
|
|
3578
|
+
*/
|
|
3579
|
+
function FormAssociated(BaseCtor) {
|
|
3580
|
+
const C = class extends BaseCtor {
|
|
3581
|
+
constructor(...args) {
|
|
3582
|
+
super(...args);
|
|
3583
|
+
/**
|
|
3584
|
+
* Track whether the value has been changed from the initial value
|
|
3585
|
+
*/
|
|
3586
|
+
this.dirtyValue = false;
|
|
3587
|
+
/**
|
|
3588
|
+
* Sets the element's disabled state. A disabled element will not be included during form submission.
|
|
3589
|
+
*
|
|
3590
|
+
* @remarks
|
|
3591
|
+
* HTML Attribute: disabled
|
|
3592
|
+
*/
|
|
3593
|
+
this.disabled = false;
|
|
3594
|
+
/**
|
|
3595
|
+
* These are events that are still fired by the proxy
|
|
3596
|
+
* element based on user / programmatic interaction.
|
|
3597
|
+
*
|
|
3598
|
+
* The proxy implementation should be transparent to
|
|
3599
|
+
* the app author, so block these events from emitting.
|
|
3600
|
+
*/
|
|
3601
|
+
this.proxyEventsToBlock = ["change", "click"];
|
|
3602
|
+
this.proxyInitialized = false;
|
|
3603
|
+
this.required = false;
|
|
3604
|
+
this.initialValue = this.initialValue || "";
|
|
3605
|
+
if (!this.elementInternals) {
|
|
3606
|
+
// When elementInternals is not supported, formResetCallback is
|
|
3607
|
+
// bound to an event listener, so ensure the handler's `this`
|
|
3608
|
+
// context is correct.
|
|
3609
|
+
this.formResetCallback = this.formResetCallback.bind(this);
|
|
3610
|
+
}
|
|
3611
|
+
}
|
|
3612
|
+
/**
|
|
3613
|
+
* Must evaluate to true to enable elementInternals.
|
|
3614
|
+
* Feature detects API support and resolve respectively
|
|
3615
|
+
*
|
|
3616
|
+
* @internal
|
|
3617
|
+
*/
|
|
3618
|
+
static get formAssociated() {
|
|
3619
|
+
return supportsElementInternals;
|
|
3620
|
+
}
|
|
3621
|
+
/**
|
|
3622
|
+
* Returns the validity state of the element
|
|
3623
|
+
*
|
|
3624
|
+
* @beta
|
|
3625
|
+
*/
|
|
3626
|
+
get validity() {
|
|
3627
|
+
return this.elementInternals ? this.elementInternals.validity : this.proxy.validity;
|
|
3628
|
+
}
|
|
3629
|
+
/**
|
|
3630
|
+
* Retrieve a reference to the associated form.
|
|
3631
|
+
* Returns null if not associated to any form.
|
|
3632
|
+
*
|
|
3633
|
+
* @beta
|
|
3634
|
+
*/
|
|
3635
|
+
get form() {
|
|
3636
|
+
return this.elementInternals ? this.elementInternals.form : this.proxy.form;
|
|
3637
|
+
}
|
|
3638
|
+
/**
|
|
3639
|
+
* Retrieve the localized validation message,
|
|
3640
|
+
* or custom validation message if set.
|
|
3641
|
+
*
|
|
3642
|
+
* @beta
|
|
3643
|
+
*/
|
|
3644
|
+
get validationMessage() {
|
|
3645
|
+
return this.elementInternals ? this.elementInternals.validationMessage : this.proxy.validationMessage;
|
|
3646
|
+
}
|
|
3647
|
+
/**
|
|
3648
|
+
* Whether the element will be validated when the
|
|
3649
|
+
* form is submitted
|
|
3650
|
+
*/
|
|
3651
|
+
get willValidate() {
|
|
3652
|
+
return this.elementInternals ? this.elementInternals.willValidate : this.proxy.willValidate;
|
|
3653
|
+
}
|
|
3654
|
+
/**
|
|
3655
|
+
* A reference to all associated label elements
|
|
3656
|
+
*/
|
|
3657
|
+
get labels() {
|
|
3658
|
+
if (this.elementInternals) {
|
|
3659
|
+
return Object.freeze(Array.from(this.elementInternals.labels));
|
|
3660
|
+
} else if (this.proxy instanceof HTMLElement && this.proxy.ownerDocument && this.id) {
|
|
3661
|
+
// Labels associated by wrapping the element: <label><custom-element></custom-element></label>
|
|
3662
|
+
const parentLabels = this.proxy.labels;
|
|
3663
|
+
// Labels associated using the `for` attribute
|
|
3664
|
+
const forLabels = Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`));
|
|
3665
|
+
const labels = parentLabels ? forLabels.concat(Array.from(parentLabels)) : forLabels;
|
|
3666
|
+
return Object.freeze(labels);
|
|
3667
|
+
} else {
|
|
3668
|
+
return emptyArray;
|
|
3669
|
+
}
|
|
3670
|
+
}
|
|
3671
|
+
/**
|
|
3672
|
+
* Invoked when the `value` property changes
|
|
3673
|
+
* @param previous - the previous value
|
|
3674
|
+
* @param next - the new value
|
|
3675
|
+
*
|
|
3676
|
+
* @remarks
|
|
3677
|
+
* If elements extending `FormAssociated` implement a `valueChanged` method
|
|
3678
|
+
* They must be sure to invoke `super.valueChanged(previous, next)` to ensure
|
|
3679
|
+
* proper functioning of `FormAssociated`
|
|
3680
|
+
*/
|
|
3681
|
+
valueChanged(previous, next) {
|
|
3682
|
+
this.dirtyValue = true;
|
|
3683
|
+
if (this.proxy instanceof HTMLElement) {
|
|
3684
|
+
this.proxy.value = this.value;
|
|
3685
|
+
}
|
|
3686
|
+
this.currentValue = this.value;
|
|
3687
|
+
this.setFormValue(this.value);
|
|
3688
|
+
this.validate();
|
|
3689
|
+
}
|
|
3690
|
+
currentValueChanged() {
|
|
3691
|
+
this.value = this.currentValue;
|
|
3692
|
+
}
|
|
3693
|
+
/**
|
|
3694
|
+
* Invoked when the `initialValue` property changes
|
|
3695
|
+
*
|
|
3696
|
+
* @param previous - the previous value
|
|
3697
|
+
* @param next - the new value
|
|
3698
|
+
*
|
|
3699
|
+
* @remarks
|
|
3700
|
+
* If elements extending `FormAssociated` implement a `initialValueChanged` method
|
|
3701
|
+
* They must be sure to invoke `super.initialValueChanged(previous, next)` to ensure
|
|
3702
|
+
* proper functioning of `FormAssociated`
|
|
3703
|
+
*/
|
|
3704
|
+
initialValueChanged(previous, next) {
|
|
3705
|
+
// If the value is clean and the component is connected to the DOM
|
|
3706
|
+
// then set value equal to the attribute value.
|
|
3707
|
+
if (!this.dirtyValue) {
|
|
3708
|
+
this.value = this.initialValue;
|
|
3709
|
+
this.dirtyValue = false;
|
|
3710
|
+
}
|
|
3711
|
+
}
|
|
3712
|
+
/**
|
|
3713
|
+
* Invoked when the `disabled` property changes
|
|
3714
|
+
*
|
|
3715
|
+
* @param previous - the previous value
|
|
3716
|
+
* @param next - the new value
|
|
3717
|
+
*
|
|
3718
|
+
* @remarks
|
|
3719
|
+
* If elements extending `FormAssociated` implement a `disabledChanged` method
|
|
3720
|
+
* They must be sure to invoke `super.disabledChanged(previous, next)` to ensure
|
|
3721
|
+
* proper functioning of `FormAssociated`
|
|
3722
|
+
*/
|
|
3723
|
+
disabledChanged(previous, next) {
|
|
3724
|
+
if (this.proxy instanceof HTMLElement) {
|
|
3725
|
+
this.proxy.disabled = this.disabled;
|
|
3726
|
+
}
|
|
3727
|
+
Updates.enqueue(() => this.classList.toggle("disabled", this.disabled));
|
|
3728
|
+
}
|
|
3729
|
+
/**
|
|
3730
|
+
* Invoked when the `name` property changes
|
|
3731
|
+
*
|
|
3732
|
+
* @param previous - the previous value
|
|
3733
|
+
* @param next - the new value
|
|
3734
|
+
*
|
|
3735
|
+
* @remarks
|
|
3736
|
+
* If elements extending `FormAssociated` implement a `nameChanged` method
|
|
3737
|
+
* They must be sure to invoke `super.nameChanged(previous, next)` to ensure
|
|
3738
|
+
* proper functioning of `FormAssociated`
|
|
3739
|
+
*/
|
|
3740
|
+
nameChanged(previous, next) {
|
|
3741
|
+
if (this.proxy instanceof HTMLElement) {
|
|
3742
|
+
this.proxy.name = this.name;
|
|
3743
|
+
}
|
|
3744
|
+
}
|
|
3745
|
+
/**
|
|
3746
|
+
* Invoked when the `required` property changes
|
|
3747
|
+
*
|
|
3748
|
+
* @param previous - the previous value
|
|
3749
|
+
* @param next - the new value
|
|
3750
|
+
*
|
|
3751
|
+
* @remarks
|
|
3752
|
+
* If elements extending `FormAssociated` implement a `requiredChanged` method
|
|
3753
|
+
* They must be sure to invoke `super.requiredChanged(previous, next)` to ensure
|
|
3754
|
+
* proper functioning of `FormAssociated`
|
|
3755
|
+
*/
|
|
3756
|
+
requiredChanged(prev, next) {
|
|
3757
|
+
if (this.proxy instanceof HTMLElement) {
|
|
3758
|
+
this.proxy.required = this.required;
|
|
3759
|
+
}
|
|
3760
|
+
Updates.enqueue(() => this.classList.toggle("required", this.required));
|
|
3761
|
+
this.validate();
|
|
3762
|
+
}
|
|
3763
|
+
/**
|
|
3764
|
+
* The element internals object. Will only exist
|
|
3765
|
+
* in browsers supporting the attachInternals API
|
|
3766
|
+
*/
|
|
3767
|
+
get elementInternals() {
|
|
3768
|
+
if (!supportsElementInternals) {
|
|
3769
|
+
return null;
|
|
3770
|
+
}
|
|
3771
|
+
let internals = InternalsMap.get(this);
|
|
3772
|
+
if (!internals) {
|
|
3773
|
+
internals = this.attachInternals();
|
|
3774
|
+
InternalsMap.set(this, internals);
|
|
3775
|
+
}
|
|
3776
|
+
return internals;
|
|
3777
|
+
}
|
|
3778
|
+
/**
|
|
3779
|
+
* @internal
|
|
3780
|
+
*/
|
|
3781
|
+
connectedCallback() {
|
|
3782
|
+
super.connectedCallback();
|
|
3783
|
+
this.addEventListener("keypress", this._keypressHandler);
|
|
3784
|
+
if (!this.value) {
|
|
3785
|
+
this.value = this.initialValue;
|
|
3786
|
+
this.dirtyValue = false;
|
|
3787
|
+
}
|
|
3788
|
+
if (!this.elementInternals) {
|
|
3789
|
+
this.attachProxy();
|
|
3790
|
+
if (this.form) {
|
|
3791
|
+
this.form.addEventListener("reset", this.formResetCallback);
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
}
|
|
3795
|
+
/**
|
|
3796
|
+
* @internal
|
|
3797
|
+
*/
|
|
3798
|
+
disconnectedCallback() {
|
|
3799
|
+
this.proxyEventsToBlock.forEach(name => this.proxy.removeEventListener(name, this.stopPropagation));
|
|
3800
|
+
if (!this.elementInternals && this.form) {
|
|
3801
|
+
this.form.removeEventListener("reset", this.formResetCallback);
|
|
3802
|
+
}
|
|
3803
|
+
}
|
|
3804
|
+
/**
|
|
3805
|
+
* Return the current validity of the element.
|
|
3806
|
+
*/
|
|
3807
|
+
checkValidity() {
|
|
3808
|
+
return this.elementInternals ? this.elementInternals.checkValidity() : this.proxy.checkValidity();
|
|
3809
|
+
}
|
|
3810
|
+
/**
|
|
3811
|
+
* Return the current validity of the element.
|
|
3812
|
+
* If false, fires an invalid event at the element.
|
|
3813
|
+
*/
|
|
3814
|
+
reportValidity() {
|
|
3815
|
+
return this.elementInternals ? this.elementInternals.reportValidity() : this.proxy.reportValidity();
|
|
3816
|
+
}
|
|
3817
|
+
/**
|
|
3818
|
+
* Set the validity of the control. In cases when the elementInternals object is not
|
|
3819
|
+
* available (and the proxy element is used to report validity), this function will
|
|
3820
|
+
* do nothing unless a message is provided, at which point the setCustomValidity method
|
|
3821
|
+
* of the proxy element will be invoked with the provided message.
|
|
3822
|
+
* @param flags - Validity flags
|
|
3823
|
+
* @param message - Optional message to supply
|
|
3824
|
+
* @param anchor - Optional element used by UA to display an interactive validation UI
|
|
3825
|
+
*/
|
|
3826
|
+
setValidity(flags, message, anchor) {
|
|
3827
|
+
if (this.elementInternals) {
|
|
3828
|
+
this.elementInternals.setValidity(flags, message, anchor);
|
|
3829
|
+
} else if (typeof message === "string") {
|
|
3830
|
+
this.proxy.setCustomValidity(message);
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
/**
|
|
3834
|
+
* Invoked when a connected component's form or fieldset has its disabled
|
|
3835
|
+
* state changed.
|
|
3836
|
+
* @param disabled - the disabled value of the form / fieldset
|
|
3837
|
+
*/
|
|
3838
|
+
formDisabledCallback(disabled) {
|
|
3839
|
+
this.disabled = disabled;
|
|
3840
|
+
}
|
|
3841
|
+
formResetCallback() {
|
|
3842
|
+
this.value = this.initialValue;
|
|
3843
|
+
this.dirtyValue = false;
|
|
3844
|
+
}
|
|
3845
|
+
/**
|
|
3846
|
+
* Attach the proxy element to the DOM
|
|
3847
|
+
*/
|
|
3848
|
+
attachProxy() {
|
|
3849
|
+
var _a;
|
|
3850
|
+
if (!this.proxyInitialized) {
|
|
3851
|
+
this.proxyInitialized = true;
|
|
3852
|
+
this.proxy.style.display = "none";
|
|
3853
|
+
this.proxyEventsToBlock.forEach(name => this.proxy.addEventListener(name, this.stopPropagation));
|
|
3854
|
+
// These are typically mapped to the proxy during
|
|
3855
|
+
// property change callbacks, but during initialization
|
|
3856
|
+
// on the initial call of the callback, the proxy is
|
|
3857
|
+
// still undefined. We should find a better way to address this.
|
|
3858
|
+
this.proxy.disabled = this.disabled;
|
|
3859
|
+
this.proxy.required = this.required;
|
|
3860
|
+
if (typeof this.name === "string") {
|
|
3861
|
+
this.proxy.name = this.name;
|
|
3862
|
+
}
|
|
3863
|
+
if (typeof this.value === "string") {
|
|
3864
|
+
this.proxy.value = this.value;
|
|
3865
|
+
}
|
|
3866
|
+
this.proxy.setAttribute("slot", proxySlotName);
|
|
3867
|
+
this.proxySlot = document.createElement("slot");
|
|
3868
|
+
this.proxySlot.setAttribute("name", proxySlotName);
|
|
3869
|
+
}
|
|
3870
|
+
(_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.appendChild(this.proxySlot);
|
|
3871
|
+
this.appendChild(this.proxy);
|
|
3872
|
+
}
|
|
3873
|
+
/**
|
|
3874
|
+
* Detach the proxy element from the DOM
|
|
3875
|
+
*/
|
|
3876
|
+
detachProxy() {
|
|
3877
|
+
var _a;
|
|
3878
|
+
this.removeChild(this.proxy);
|
|
3879
|
+
(_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeChild(this.proxySlot);
|
|
3880
|
+
}
|
|
3881
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
3882
|
+
validate(anchor) {
|
|
3883
|
+
if (this.proxy instanceof HTMLElement) {
|
|
3884
|
+
this.setValidity(this.proxy.validity, this.proxy.validationMessage, anchor);
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
/**
|
|
3888
|
+
* Associates the provided value (and optional state) with the parent form.
|
|
3889
|
+
* @param value - The value to set
|
|
3890
|
+
* @param state - The state object provided to during session restores and when autofilling.
|
|
3891
|
+
*/
|
|
3892
|
+
setFormValue(value, state) {
|
|
3893
|
+
if (this.elementInternals) {
|
|
3894
|
+
this.elementInternals.setFormValue(value, state || value);
|
|
3895
|
+
}
|
|
3896
|
+
}
|
|
3897
|
+
_keypressHandler(e) {
|
|
3898
|
+
switch (e.key) {
|
|
3899
|
+
case keyEnter:
|
|
3900
|
+
if (this.form instanceof HTMLFormElement) {
|
|
3901
|
+
// Implicit submission
|
|
3902
|
+
const defaultButton = this.form.querySelector("[type=submit]");
|
|
3903
|
+
defaultButton === null || defaultButton === void 0 ? void 0 : defaultButton.click();
|
|
3904
|
+
}
|
|
3905
|
+
break;
|
|
3906
|
+
}
|
|
3907
|
+
}
|
|
3908
|
+
/**
|
|
3909
|
+
* Used to stop propagation of proxy element events
|
|
3910
|
+
* @param e - Event object
|
|
3911
|
+
*/
|
|
3912
|
+
stopPropagation(e) {
|
|
3913
|
+
e.stopPropagation();
|
|
3914
|
+
}
|
|
3915
|
+
};
|
|
3916
|
+
attr({
|
|
3917
|
+
mode: "boolean"
|
|
3918
|
+
})(C.prototype, "disabled");
|
|
3919
|
+
attr({
|
|
3920
|
+
mode: "fromView",
|
|
3921
|
+
attribute: "value"
|
|
3922
|
+
})(C.prototype, "initialValue");
|
|
3923
|
+
attr({
|
|
3924
|
+
attribute: "current-value"
|
|
3925
|
+
})(C.prototype, "currentValue");
|
|
3926
|
+
attr(C.prototype, "name");
|
|
3927
|
+
attr({
|
|
3928
|
+
mode: "boolean"
|
|
3929
|
+
})(C.prototype, "required");
|
|
3930
|
+
observable(C.prototype, "value");
|
|
3931
|
+
return C;
|
|
3932
|
+
}
|
|
3933
|
+
/**
|
|
3934
|
+
* Creates a checkable form associated component.
|
|
3935
|
+
* @beta
|
|
3936
|
+
*/
|
|
3937
|
+
function CheckableFormAssociated(BaseCtor) {
|
|
3938
|
+
class C extends FormAssociated(BaseCtor) {}
|
|
3939
|
+
class D extends C {
|
|
3940
|
+
constructor(...args) {
|
|
3941
|
+
super(args);
|
|
3942
|
+
/**
|
|
3943
|
+
* Tracks whether the "checked" property has been changed.
|
|
3944
|
+
* This is necessary to provide consistent behavior with
|
|
3945
|
+
* normal input checkboxes
|
|
3946
|
+
*/
|
|
3947
|
+
this.dirtyChecked = false;
|
|
3948
|
+
/**
|
|
3949
|
+
* Provides the default checkedness of the input element
|
|
3950
|
+
* Passed down to proxy
|
|
3951
|
+
*
|
|
3952
|
+
* @public
|
|
3953
|
+
* @remarks
|
|
3954
|
+
* HTML Attribute: checked
|
|
3955
|
+
*/
|
|
3956
|
+
this.checkedAttribute = false;
|
|
3957
|
+
/**
|
|
3958
|
+
* The checked state of the control.
|
|
3959
|
+
*
|
|
3960
|
+
* @public
|
|
3961
|
+
*/
|
|
3962
|
+
this.checked = false;
|
|
3963
|
+
// Re-initialize dirtyChecked because initialization of other values
|
|
3964
|
+
// causes it to become true
|
|
3965
|
+
this.dirtyChecked = false;
|
|
3966
|
+
}
|
|
3967
|
+
checkedAttributeChanged() {
|
|
3968
|
+
this.defaultChecked = this.checkedAttribute;
|
|
3969
|
+
}
|
|
3970
|
+
/**
|
|
3971
|
+
* @internal
|
|
3972
|
+
*/
|
|
3973
|
+
defaultCheckedChanged() {
|
|
3974
|
+
if (!this.dirtyChecked) {
|
|
3975
|
+
// Setting this.checked will cause us to enter a dirty state,
|
|
3976
|
+
// but if we are clean when defaultChecked is changed, we want to stay
|
|
3977
|
+
// in a clean state, so reset this.dirtyChecked
|
|
3978
|
+
this.checked = this.defaultChecked;
|
|
3979
|
+
this.dirtyChecked = false;
|
|
3980
|
+
}
|
|
3981
|
+
}
|
|
3982
|
+
checkedChanged(prev, next) {
|
|
3983
|
+
if (!this.dirtyChecked) {
|
|
3984
|
+
this.dirtyChecked = true;
|
|
3985
|
+
}
|
|
3986
|
+
this.currentChecked = this.checked;
|
|
3987
|
+
this.updateForm();
|
|
3988
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
3989
|
+
this.proxy.checked = this.checked;
|
|
3990
|
+
}
|
|
3991
|
+
if (prev !== undefined) {
|
|
3992
|
+
this.$emit("change");
|
|
3993
|
+
}
|
|
3994
|
+
this.validate();
|
|
3995
|
+
}
|
|
3996
|
+
currentCheckedChanged(prev, next) {
|
|
3997
|
+
this.checked = this.currentChecked;
|
|
3998
|
+
}
|
|
3999
|
+
updateForm() {
|
|
4000
|
+
const value = this.checked ? this.value : null;
|
|
4001
|
+
this.setFormValue(value, value);
|
|
4002
|
+
}
|
|
4003
|
+
connectedCallback() {
|
|
4004
|
+
super.connectedCallback();
|
|
4005
|
+
this.updateForm();
|
|
4006
|
+
}
|
|
4007
|
+
formResetCallback() {
|
|
4008
|
+
super.formResetCallback();
|
|
4009
|
+
this.checked = !!this.checkedAttribute;
|
|
4010
|
+
this.dirtyChecked = false;
|
|
4011
|
+
}
|
|
4012
|
+
}
|
|
4013
|
+
attr({
|
|
4014
|
+
attribute: "checked",
|
|
4015
|
+
mode: "boolean"
|
|
4016
|
+
})(D.prototype, "checkedAttribute");
|
|
4017
|
+
attr({
|
|
4018
|
+
attribute: "current-checked",
|
|
4019
|
+
converter: booleanConverter
|
|
4020
|
+
})(D.prototype, "currentChecked");
|
|
4021
|
+
observable(D.prototype, "defaultChecked");
|
|
4022
|
+
observable(D.prototype, "checked");
|
|
4023
|
+
return D;
|
|
4024
|
+
}
|
|
4025
|
+
|
|
4026
|
+
class DerivedValueEvaluator {
|
|
4027
|
+
constructor(value) {
|
|
4028
|
+
this.value = value;
|
|
4029
|
+
this.notifier = Observable.getNotifier(this);
|
|
4030
|
+
this.dependencies = new Set();
|
|
4031
|
+
this.binding = Observable.binding(value, this);
|
|
4032
|
+
this.binding.setMode(false);
|
|
4033
|
+
}
|
|
4034
|
+
static getOrCreate(value) {
|
|
4035
|
+
let v = DerivedValueEvaluator.cache.get(value);
|
|
4036
|
+
if (v) {
|
|
4037
|
+
return v;
|
|
4038
|
+
}
|
|
4039
|
+
v = new DerivedValueEvaluator(value);
|
|
4040
|
+
DerivedValueEvaluator.cache.set(value, v);
|
|
4041
|
+
return v;
|
|
4042
|
+
}
|
|
4043
|
+
evaluate(node, tokenContext) {
|
|
4044
|
+
const resolve = token => {
|
|
4045
|
+
this.dependencies.add(token);
|
|
4046
|
+
if (tokenContext === token) {
|
|
4047
|
+
if (node.parent) {
|
|
4048
|
+
return node.parent.getTokenValue(token);
|
|
4049
|
+
}
|
|
4050
|
+
throw new Error("DesignTokenNode has encountered a circular token reference. Avoid this by setting the token value for an ancestor node.");
|
|
4051
|
+
} else {
|
|
4052
|
+
return node.getTokenValue(token);
|
|
4053
|
+
}
|
|
4054
|
+
};
|
|
4055
|
+
return this.binding.observe(resolve);
|
|
4056
|
+
}
|
|
4057
|
+
handleChange() {
|
|
4058
|
+
this.notifier.notify(undefined);
|
|
4059
|
+
}
|
|
4060
|
+
}
|
|
4061
|
+
DerivedValueEvaluator.cache = new WeakMap();
|
|
4062
|
+
class DerivedValue {
|
|
4063
|
+
constructor(token, evaluator, node, subscriber) {
|
|
4064
|
+
this.token = token;
|
|
4065
|
+
this.evaluator = evaluator;
|
|
4066
|
+
this.node = node;
|
|
4067
|
+
this.subscriber = subscriber;
|
|
4068
|
+
this.value = evaluator.evaluate(node, token);
|
|
4069
|
+
if (this.subscriber) {
|
|
4070
|
+
Observable.getNotifier(this.evaluator).subscribe(this.subscriber);
|
|
4071
|
+
}
|
|
4072
|
+
}
|
|
4073
|
+
dispose() {
|
|
4074
|
+
if (this.subscriber) {
|
|
4075
|
+
Observable.getNotifier(this.evaluator).unsubscribe(this.subscriber);
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
|
+
update() {
|
|
4079
|
+
this.value = this.evaluator.evaluate(this.node, this.token);
|
|
4080
|
+
return this;
|
|
4081
|
+
}
|
|
4082
|
+
}
|
|
4083
|
+
/**
|
|
4084
|
+
* @internal
|
|
4085
|
+
*/
|
|
4086
|
+
class DesignTokenChangeRecordImpl {
|
|
4087
|
+
constructor(target, type, token, value) {
|
|
4088
|
+
this.target = target;
|
|
4089
|
+
this.type = type;
|
|
4090
|
+
this.token = token;
|
|
4091
|
+
this.value = value;
|
|
4092
|
+
}
|
|
4093
|
+
notify() {
|
|
4094
|
+
Observable.getNotifier(this.token).notify(this);
|
|
4095
|
+
}
|
|
4096
|
+
}
|
|
4097
|
+
/**
|
|
4098
|
+
* @public
|
|
4099
|
+
*/
|
|
4100
|
+
class DesignTokenNode {
|
|
4101
|
+
constructor() {
|
|
4102
|
+
this._parent = null;
|
|
4103
|
+
this._children = new Set();
|
|
4104
|
+
this._values = new Map();
|
|
4105
|
+
this._derived = new Map();
|
|
4106
|
+
this.dependencyGraph = new Map();
|
|
4107
|
+
}
|
|
4108
|
+
/**
|
|
4109
|
+
* Determines if a value is a {@link DerivedDesignTokenValue}
|
|
4110
|
+
* @param value - The value to test
|
|
4111
|
+
*/
|
|
4112
|
+
static isDerivedTokenValue(value) {
|
|
4113
|
+
return typeof value === "function";
|
|
4114
|
+
}
|
|
4115
|
+
/**
|
|
4116
|
+
* Determines if a token has a derived value for a node.
|
|
4117
|
+
*/
|
|
4118
|
+
static isDerivedFor(node, token) {
|
|
4119
|
+
return node._derived.has(token);
|
|
4120
|
+
}
|
|
4121
|
+
/**
|
|
4122
|
+
* Collects token/value pairs for all derived token / values set on upstream nodes.
|
|
4123
|
+
*/
|
|
4124
|
+
static collectDerivedContext(node) {
|
|
4125
|
+
const collected = new Map();
|
|
4126
|
+
// Exit early if there is no parent
|
|
4127
|
+
if (node.parent === null) {
|
|
4128
|
+
return collected;
|
|
4129
|
+
}
|
|
4130
|
+
let ignored = DesignTokenNode.getAssignedTokensForNode(node);
|
|
4131
|
+
let current = node.parent;
|
|
4132
|
+
do {
|
|
4133
|
+
const assigned = DesignTokenNode.getAssignedTokensForNode(current);
|
|
4134
|
+
for (let i = 0, l = assigned.length; i < l; i++) {
|
|
4135
|
+
const token = assigned[i];
|
|
4136
|
+
if (!ignored.includes(token) && DesignTokenNode.isDerivedFor(current, token)) {
|
|
4137
|
+
collected.set(token, current._derived.get(token));
|
|
4138
|
+
}
|
|
4139
|
+
}
|
|
4140
|
+
ignored = Array.from(new Set(ignored.concat(assigned)));
|
|
4141
|
+
current = current.parent;
|
|
4142
|
+
} while (current !== null);
|
|
4143
|
+
return collected;
|
|
4144
|
+
}
|
|
4145
|
+
/**
|
|
4146
|
+
* Resolves the local value for a token if it is assigned, otherwise returns undefined.
|
|
3207
4147
|
*/
|
|
3208
4148
|
static getLocalTokenValue(node, token) {
|
|
3209
4149
|
return !DesignTokenNode.isAssigned(node, token) ? undefined : DesignTokenNode.isDerivedFor(node, token) ? node._derived.get(token).value : node._values.get(token);
|
|
@@ -4068,6 +5008,99 @@ function progressTemplate(options = {}) {
|
|
|
4068
5008
|
return html`<template role="progressbar" aria-valuenow="${x => x.value}" aria-valuemin="${x => x.min}" aria-valuemax="${x => x.max}">${when(x => typeof x.value === "number", html`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${x => x.percentComplete}%"></div></div>`)} ${when(x => typeof x.value !== "number", html`<div class="progress" part="progress" slot="indeterminate"><slot name="indeterminate">${staticallyCompose(options.indeterminateIndicator1)} ${staticallyCompose(options.indeterminateIndicator2)}</slot></div>`)}</template>`;
|
|
4069
5009
|
}
|
|
4070
5010
|
|
|
5011
|
+
/**
|
|
5012
|
+
* The template for the {@link @microsoft/fast-foundation#(FASTSwitch:class)} component.
|
|
5013
|
+
* @public
|
|
5014
|
+
*/
|
|
5015
|
+
function switchTemplate(options = {}) {
|
|
5016
|
+
return html`<template role="switch" aria-checked="${x => x.checked}" aria-disabled="${x => x.disabled}" aria-readonly="${x => x.readOnly}" tabindex="${x => x.disabled ? null : 0}" @keypress="${(x, c) => x.keypressHandler(c.event)}" @click="${(x, c) => x.clickHandler(c.event)}"><label part="label" class="${x => x.defaultSlottedNodes && x.defaultSlottedNodes.length ? "label" : "label label__hidden"}"><slot ${slotted("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${staticallyCompose(options.switch)}</slot></div></template>`;
|
|
5017
|
+
}
|
|
5018
|
+
|
|
5019
|
+
class _Switch extends FASTElement {}
|
|
5020
|
+
/**
|
|
5021
|
+
* A form-associated base class for the {@link @microsoft/fast-foundation#(FASTSwitch:class)} component.
|
|
5022
|
+
*
|
|
5023
|
+
* @beta
|
|
5024
|
+
*/
|
|
5025
|
+
class FormAssociatedSwitch extends CheckableFormAssociated(_Switch) {
|
|
5026
|
+
constructor() {
|
|
5027
|
+
super(...arguments);
|
|
5028
|
+
this.proxy = document.createElement("input");
|
|
5029
|
+
}
|
|
5030
|
+
}
|
|
5031
|
+
|
|
5032
|
+
/**
|
|
5033
|
+
* A Switch Custom HTML Element.
|
|
5034
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#switch | ARIA switch }.
|
|
5035
|
+
*
|
|
5036
|
+
* @slot - The deafult slot for the label
|
|
5037
|
+
* @slot checked-message - The message when in a checked state
|
|
5038
|
+
* @slot unchecked-message - The message when in an unchecked state
|
|
5039
|
+
* @csspart label - The label
|
|
5040
|
+
* @csspart switch - The element representing the switch, which wraps the indicator
|
|
5041
|
+
* @csspart status-message - The wrapper for the status messages
|
|
5042
|
+
* @csspart checked-message - The checked message
|
|
5043
|
+
* @csspart unchecked-message - The unchecked message
|
|
5044
|
+
* @fires change - Emits a custom change event when the checked state changes
|
|
5045
|
+
*
|
|
5046
|
+
* @public
|
|
5047
|
+
*/
|
|
5048
|
+
class FASTSwitch extends FormAssociatedSwitch {
|
|
5049
|
+
constructor() {
|
|
5050
|
+
super();
|
|
5051
|
+
/**
|
|
5052
|
+
* The element's value to be included in form submission when checked.
|
|
5053
|
+
* Default to "on" to reach parity with input[type="checkbox"]
|
|
5054
|
+
*
|
|
5055
|
+
* @internal
|
|
5056
|
+
*/
|
|
5057
|
+
this.initialValue = "on";
|
|
5058
|
+
/**
|
|
5059
|
+
* @internal
|
|
5060
|
+
*/
|
|
5061
|
+
this.keypressHandler = e => {
|
|
5062
|
+
if (this.readOnly) {
|
|
5063
|
+
return;
|
|
5064
|
+
}
|
|
5065
|
+
switch (e.key) {
|
|
5066
|
+
case keyEnter:
|
|
5067
|
+
case keySpace:
|
|
5068
|
+
this.checked = !this.checked;
|
|
5069
|
+
break;
|
|
5070
|
+
}
|
|
5071
|
+
};
|
|
5072
|
+
/**
|
|
5073
|
+
* @internal
|
|
5074
|
+
*/
|
|
5075
|
+
this.clickHandler = e => {
|
|
5076
|
+
if (!this.disabled && !this.readOnly) {
|
|
5077
|
+
this.checked = !this.checked;
|
|
5078
|
+
}
|
|
5079
|
+
};
|
|
5080
|
+
this.proxy.setAttribute("type", "checkbox");
|
|
5081
|
+
}
|
|
5082
|
+
readOnlyChanged() {
|
|
5083
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
5084
|
+
this.proxy.readOnly = this.readOnly;
|
|
5085
|
+
}
|
|
5086
|
+
}
|
|
5087
|
+
/**
|
|
5088
|
+
* @internal
|
|
5089
|
+
*/
|
|
5090
|
+
checkedChanged(prev, next) {
|
|
5091
|
+
super.checkedChanged(prev, next);
|
|
5092
|
+
/**
|
|
5093
|
+
* @deprecated - this behavior already exists in the template and should not exist in the class.
|
|
5094
|
+
*/
|
|
5095
|
+
this.checked ? this.classList.add("checked") : this.classList.remove("checked");
|
|
5096
|
+
}
|
|
5097
|
+
}
|
|
5098
|
+
__decorate([attr({
|
|
5099
|
+
attribute: "readonly",
|
|
5100
|
+
mode: "boolean"
|
|
5101
|
+
})], FASTSwitch.prototype, "readOnly", void 0);
|
|
5102
|
+
__decorate([observable], FASTSwitch.prototype, "defaultSlottedNodes", void 0);
|
|
5103
|
+
|
|
4071
5104
|
/**
|
|
4072
5105
|
* A CSS fragment to set `display: none;` when the host is hidden using the [hidden] attribute.
|
|
4073
5106
|
* @public
|
|
@@ -4084,90 +5117,79 @@ function display(displayValue) {
|
|
|
4084
5117
|
}
|
|
4085
5118
|
|
|
4086
5119
|
/**
|
|
4087
|
-
*
|
|
4088
|
-
* @public
|
|
4089
|
-
*/
|
|
4090
|
-
const BadgeAppearance = {
|
|
4091
|
-
filled: 'filled',
|
|
4092
|
-
ghost: 'ghost',
|
|
4093
|
-
outline: 'outline',
|
|
4094
|
-
tint: 'tint'
|
|
4095
|
-
};
|
|
4096
|
-
/**
|
|
4097
|
-
* BadgeColor constants
|
|
4098
|
-
* @public
|
|
4099
|
-
*/
|
|
4100
|
-
const BadgeColor = {
|
|
4101
|
-
brand: 'brand',
|
|
4102
|
-
danger: 'danger',
|
|
4103
|
-
important: 'important',
|
|
4104
|
-
informative: 'informative',
|
|
4105
|
-
severe: 'severe',
|
|
4106
|
-
subtle: 'subtle',
|
|
4107
|
-
success: 'success',
|
|
4108
|
-
warning: 'warning'
|
|
4109
|
-
};
|
|
4110
|
-
/**
|
|
4111
|
-
* A Badge can be square, circular or rounded.
|
|
5120
|
+
* The base class used for constructing a fluent-accordion custom element
|
|
4112
5121
|
* @public
|
|
4113
5122
|
*/
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
5123
|
+
class Accordion extends FASTAccordion {}
|
|
5124
|
+
|
|
5125
|
+
const template$7 = accordionTemplate();
|
|
5126
|
+
|
|
5127
|
+
const styles$7 = css`
|
|
5128
|
+
${display('flex')}
|
|
5129
|
+
|
|
5130
|
+
:host{flex-direction:column;width:100%}`;
|
|
5131
|
+
|
|
5132
|
+
const FluentDesignSystem = Object.freeze({
|
|
5133
|
+
prefix: 'fluent',
|
|
5134
|
+
shadowRootMode: 'open',
|
|
5135
|
+
registry: customElements
|
|
5136
|
+
});
|
|
5137
|
+
|
|
4119
5138
|
/**
|
|
4120
|
-
*
|
|
5139
|
+
* The Fluent Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion },
|
|
5140
|
+
* {@link @microsoft/fast-foundation#accordionTemplate}
|
|
5141
|
+
*
|
|
5142
|
+
*
|
|
4121
5143
|
* @public
|
|
5144
|
+
* @remarks
|
|
5145
|
+
* HTML Element: \<fluent-accordion\>
|
|
4122
5146
|
*/
|
|
4123
|
-
const
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
large: 'large',
|
|
4129
|
-
extraLarge: 'extra-large'
|
|
4130
|
-
};
|
|
5147
|
+
const definition$7 = Accordion.compose({
|
|
5148
|
+
name: `${FluentDesignSystem.prefix}-accordion`,
|
|
5149
|
+
template: template$7,
|
|
5150
|
+
styles: styles$7
|
|
5151
|
+
});
|
|
4131
5152
|
|
|
4132
5153
|
/**
|
|
4133
|
-
*
|
|
4134
|
-
* @public
|
|
5154
|
+
* @internal
|
|
4135
5155
|
*/
|
|
4136
|
-
class
|
|
5156
|
+
class AccordionItem extends FASTAccordionItem {
|
|
4137
5157
|
constructor() {
|
|
4138
5158
|
super(...arguments);
|
|
4139
5159
|
/**
|
|
4140
|
-
*
|
|
4141
|
-
*
|
|
4142
|
-
* @public
|
|
4143
|
-
* @remarks
|
|
4144
|
-
* HTML Attribute: appearance
|
|
4145
|
-
*/
|
|
4146
|
-
this.appearance = BadgeAppearance.filled;
|
|
4147
|
-
/**
|
|
4148
|
-
* The color the badge should have.
|
|
5160
|
+
* Sets the width of the focus state.
|
|
4149
5161
|
*
|
|
4150
5162
|
* @public
|
|
4151
5163
|
* @remarks
|
|
4152
|
-
* HTML Attribute:
|
|
5164
|
+
* HTML Attribute: block
|
|
4153
5165
|
*/
|
|
4154
|
-
this.
|
|
5166
|
+
this.block = false;
|
|
4155
5167
|
}
|
|
4156
5168
|
}
|
|
4157
|
-
__decorate([attr],
|
|
4158
|
-
__decorate([attr
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
5169
|
+
__decorate([attr], AccordionItem.prototype, "size", void 0);
|
|
5170
|
+
__decorate([attr({
|
|
5171
|
+
mode: 'boolean'
|
|
5172
|
+
})], AccordionItem.prototype, "block", void 0);
|
|
5173
|
+
__decorate([attr({
|
|
5174
|
+
attribute: 'expand-icon-position'
|
|
5175
|
+
})], AccordionItem.prototype, "expandIconPosition", void 0);
|
|
4162
5176
|
|
|
4163
5177
|
/**
|
|
4164
|
-
*
|
|
4165
|
-
* @public
|
|
5178
|
+
* An Accordion Item header font size can be small, medium, large, and extra-large
|
|
4166
5179
|
*/
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
5180
|
+
const AccordionItemSize = {
|
|
5181
|
+
small: 'small',
|
|
5182
|
+
medium: 'medium',
|
|
5183
|
+
large: 'large',
|
|
5184
|
+
extraLarge: 'extra-large'
|
|
5185
|
+
};
|
|
5186
|
+
/**
|
|
5187
|
+
* An Accordion Item expand/collapse icon can appear at the start or end of the accordion
|
|
5188
|
+
*/
|
|
5189
|
+
const AccordionItemExpandIconPosition = {
|
|
5190
|
+
start: 'start',
|
|
5191
|
+
end: 'end'
|
|
5192
|
+
};
|
|
4171
5193
|
|
|
4172
5194
|
const {
|
|
4173
5195
|
create
|
|
@@ -4553,388 +5575,529 @@ const shadow28Brand = create('shadow28Brand');
|
|
|
4553
5575
|
const shadow64Brand = create('shadow64Brand');
|
|
4554
5576
|
|
|
4555
5577
|
var tokens = /*#__PURE__*/Object.freeze({
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
5578
|
+
__proto__: null,
|
|
5579
|
+
borderRadiusNone: borderRadiusNone,
|
|
5580
|
+
borderRadiusSmall: borderRadiusSmall,
|
|
5581
|
+
borderRadiusMedium: borderRadiusMedium,
|
|
5582
|
+
borderRadiusLarge: borderRadiusLarge,
|
|
5583
|
+
borderRadiusXLarge: borderRadiusXLarge,
|
|
5584
|
+
borderRadiusCircular: borderRadiusCircular,
|
|
5585
|
+
fontSizeBase100: fontSizeBase100,
|
|
5586
|
+
fontSizeBase200: fontSizeBase200,
|
|
5587
|
+
fontSizeBase300: fontSizeBase300,
|
|
5588
|
+
fontSizeBase400: fontSizeBase400,
|
|
5589
|
+
fontSizeBase500: fontSizeBase500,
|
|
5590
|
+
fontSizeBase600: fontSizeBase600,
|
|
5591
|
+
fontSizeHero700: fontSizeHero700,
|
|
5592
|
+
fontSizeHero800: fontSizeHero800,
|
|
5593
|
+
fontSizeHero900: fontSizeHero900,
|
|
5594
|
+
fontSizeHero1000: fontSizeHero1000,
|
|
5595
|
+
lineHeightBase100: lineHeightBase100,
|
|
5596
|
+
lineHeightBase200: lineHeightBase200,
|
|
5597
|
+
lineHeightBase300: lineHeightBase300,
|
|
5598
|
+
lineHeightBase400: lineHeightBase400,
|
|
5599
|
+
lineHeightBase500: lineHeightBase500,
|
|
5600
|
+
lineHeightBase600: lineHeightBase600,
|
|
5601
|
+
lineHeightHero700: lineHeightHero700,
|
|
5602
|
+
lineHeightHero800: lineHeightHero800,
|
|
5603
|
+
lineHeightHero900: lineHeightHero900,
|
|
5604
|
+
lineHeightHero1000: lineHeightHero1000,
|
|
5605
|
+
fontFamilyBase: fontFamilyBase,
|
|
5606
|
+
fontFamilyMonospace: fontFamilyMonospace,
|
|
5607
|
+
fontFamilyNumeric: fontFamilyNumeric,
|
|
5608
|
+
fontWeightRegular: fontWeightRegular,
|
|
5609
|
+
fontWeightMedium: fontWeightMedium,
|
|
5610
|
+
fontWeightSemibold: fontWeightSemibold,
|
|
5611
|
+
fontWeightBold: fontWeightBold,
|
|
5612
|
+
strokeWidthThin: strokeWidthThin,
|
|
5613
|
+
strokeWidthThick: strokeWidthThick,
|
|
5614
|
+
strokeWidthThicker: strokeWidthThicker,
|
|
5615
|
+
strokeWidthThickest: strokeWidthThickest,
|
|
5616
|
+
spacingHorizontalNone: spacingHorizontalNone,
|
|
5617
|
+
spacingHorizontalXXS: spacingHorizontalXXS,
|
|
5618
|
+
spacingHorizontalXS: spacingHorizontalXS,
|
|
5619
|
+
spacingHorizontalSNudge: spacingHorizontalSNudge,
|
|
5620
|
+
spacingHorizontalS: spacingHorizontalS,
|
|
5621
|
+
spacingHorizontalMNudge: spacingHorizontalMNudge,
|
|
5622
|
+
spacingHorizontalM: spacingHorizontalM,
|
|
5623
|
+
spacingHorizontalL: spacingHorizontalL,
|
|
5624
|
+
spacingHorizontalXL: spacingHorizontalXL,
|
|
5625
|
+
spacingHorizontalXXL: spacingHorizontalXXL,
|
|
5626
|
+
spacingHorizontalXXXL: spacingHorizontalXXXL,
|
|
5627
|
+
spacingVerticalNone: spacingVerticalNone,
|
|
5628
|
+
spacingVerticalXXS: spacingVerticalXXS,
|
|
5629
|
+
spacingVerticalXS: spacingVerticalXS,
|
|
5630
|
+
spacingVerticalSNudge: spacingVerticalSNudge,
|
|
5631
|
+
spacingVerticalS: spacingVerticalS,
|
|
5632
|
+
spacingVerticalMNudge: spacingVerticalMNudge,
|
|
5633
|
+
spacingVerticalM: spacingVerticalM,
|
|
5634
|
+
spacingVerticalL: spacingVerticalL,
|
|
5635
|
+
spacingVerticalXL: spacingVerticalXL,
|
|
5636
|
+
spacingVerticalXXL: spacingVerticalXXL,
|
|
5637
|
+
spacingVerticalXXXL: spacingVerticalXXXL,
|
|
5638
|
+
durationUltraFast: durationUltraFast,
|
|
5639
|
+
durationFaster: durationFaster,
|
|
5640
|
+
durationFast: durationFast,
|
|
5641
|
+
durationNormal: durationNormal,
|
|
5642
|
+
durationSlow: durationSlow,
|
|
5643
|
+
durationSlower: durationSlower,
|
|
5644
|
+
durationUltraSlow: durationUltraSlow,
|
|
5645
|
+
curveAccelerateMax: curveAccelerateMax,
|
|
5646
|
+
curveAccelerateMid: curveAccelerateMid,
|
|
5647
|
+
curveAccelerateMin: curveAccelerateMin,
|
|
5648
|
+
curveDecelerateMax: curveDecelerateMax,
|
|
5649
|
+
curveDecelerateMid: curveDecelerateMid,
|
|
5650
|
+
curveDecelerateMin: curveDecelerateMin,
|
|
5651
|
+
curveEasyEaseMax: curveEasyEaseMax,
|
|
5652
|
+
curveEasyEase: curveEasyEase,
|
|
5653
|
+
curveLinear: curveLinear,
|
|
5654
|
+
colorNeutralForeground1: colorNeutralForeground1,
|
|
5655
|
+
colorNeutralForeground1Hover: colorNeutralForeground1Hover,
|
|
5656
|
+
colorNeutralForeground1Pressed: colorNeutralForeground1Pressed,
|
|
5657
|
+
colorNeutralForeground1Selected: colorNeutralForeground1Selected,
|
|
5658
|
+
colorNeutralForeground2: colorNeutralForeground2,
|
|
5659
|
+
colorNeutralForeground2Hover: colorNeutralForeground2Hover,
|
|
5660
|
+
colorNeutralForeground2Pressed: colorNeutralForeground2Pressed,
|
|
5661
|
+
colorNeutralForeground2Selected: colorNeutralForeground2Selected,
|
|
5662
|
+
colorNeutralForeground2BrandHover: colorNeutralForeground2BrandHover,
|
|
5663
|
+
colorNeutralForeground2BrandPressed: colorNeutralForeground2BrandPressed,
|
|
5664
|
+
colorNeutralForeground2BrandSelected: colorNeutralForeground2BrandSelected,
|
|
5665
|
+
colorNeutralForeground3: colorNeutralForeground3,
|
|
5666
|
+
colorNeutralForeground3Hover: colorNeutralForeground3Hover,
|
|
5667
|
+
colorNeutralForeground3Pressed: colorNeutralForeground3Pressed,
|
|
5668
|
+
colorNeutralForeground3Selected: colorNeutralForeground3Selected,
|
|
5669
|
+
colorNeutralForeground3BrandHover: colorNeutralForeground3BrandHover,
|
|
5670
|
+
colorNeutralForeground3BrandPressed: colorNeutralForeground3BrandPressed,
|
|
5671
|
+
colorNeutralForeground3BrandSelected: colorNeutralForeground3BrandSelected,
|
|
5672
|
+
colorNeutralForeground4: colorNeutralForeground4,
|
|
5673
|
+
colorNeutralForegroundDisabled: colorNeutralForegroundDisabled,
|
|
5674
|
+
colorNeutralForegroundInvertedDisabled: colorNeutralForegroundInvertedDisabled,
|
|
5675
|
+
colorBrandForegroundLink: colorBrandForegroundLink,
|
|
5676
|
+
colorBrandForegroundLinkHover: colorBrandForegroundLinkHover,
|
|
5677
|
+
colorBrandForegroundLinkPressed: colorBrandForegroundLinkPressed,
|
|
5678
|
+
colorBrandForegroundLinkSelected: colorBrandForegroundLinkSelected,
|
|
5679
|
+
colorNeutralForeground2Link: colorNeutralForeground2Link,
|
|
5680
|
+
colorNeutralForeground2LinkHover: colorNeutralForeground2LinkHover,
|
|
5681
|
+
colorNeutralForeground2LinkPressed: colorNeutralForeground2LinkPressed,
|
|
5682
|
+
colorNeutralForeground2LinkSelected: colorNeutralForeground2LinkSelected,
|
|
5683
|
+
colorCompoundBrandForeground1: colorCompoundBrandForeground1,
|
|
5684
|
+
colorCompoundBrandForeground1Hover: colorCompoundBrandForeground1Hover,
|
|
5685
|
+
colorCompoundBrandForeground1Pressed: colorCompoundBrandForeground1Pressed,
|
|
5686
|
+
colorBrandForeground1: colorBrandForeground1,
|
|
5687
|
+
colorBrandForeground2: colorBrandForeground2,
|
|
5688
|
+
colorNeutralForeground1Static: colorNeutralForeground1Static,
|
|
5689
|
+
colorNeutralForegroundStaticInverted: colorNeutralForegroundStaticInverted,
|
|
5690
|
+
colorNeutralForegroundInverted: colorNeutralForegroundInverted,
|
|
5691
|
+
colorNeutralForegroundInvertedHover: colorNeutralForegroundInvertedHover,
|
|
5692
|
+
colorNeutralForegroundInvertedPressed: colorNeutralForegroundInvertedPressed,
|
|
5693
|
+
colorNeutralForegroundInvertedSelected: colorNeutralForegroundInvertedSelected,
|
|
5694
|
+
colorNeutralForegroundInverted2: colorNeutralForegroundInverted2,
|
|
5695
|
+
colorNeutralForegroundOnBrand: colorNeutralForegroundOnBrand,
|
|
5696
|
+
colorNeutralForegroundInvertedLink: colorNeutralForegroundInvertedLink,
|
|
5697
|
+
colorNeutralForegroundInvertedLinkHover: colorNeutralForegroundInvertedLinkHover,
|
|
5698
|
+
colorNeutralForegroundInvertedLinkPressed: colorNeutralForegroundInvertedLinkPressed,
|
|
5699
|
+
colorNeutralForegroundInvertedLinkSelected: colorNeutralForegroundInvertedLinkSelected,
|
|
5700
|
+
colorBrandForegroundInverted: colorBrandForegroundInverted,
|
|
5701
|
+
colorBrandForegroundInvertedHover: colorBrandForegroundInvertedHover,
|
|
5702
|
+
colorBrandForegroundInvertedPressed: colorBrandForegroundInvertedPressed,
|
|
5703
|
+
colorBrandForegroundOnLight: colorBrandForegroundOnLight,
|
|
5704
|
+
colorBrandForegroundOnLightHover: colorBrandForegroundOnLightHover,
|
|
5705
|
+
colorBrandForegroundOnLightPressed: colorBrandForegroundOnLightPressed,
|
|
5706
|
+
colorBrandForegroundOnLightSelected: colorBrandForegroundOnLightSelected,
|
|
5707
|
+
colorNeutralBackground1: colorNeutralBackground1,
|
|
5708
|
+
colorNeutralBackground1Hover: colorNeutralBackground1Hover,
|
|
5709
|
+
colorNeutralBackground1Pressed: colorNeutralBackground1Pressed,
|
|
5710
|
+
colorNeutralBackground1Selected: colorNeutralBackground1Selected,
|
|
5711
|
+
colorNeutralBackground2: colorNeutralBackground2,
|
|
5712
|
+
colorNeutralBackground2Hover: colorNeutralBackground2Hover,
|
|
5713
|
+
colorNeutralBackground2Pressed: colorNeutralBackground2Pressed,
|
|
5714
|
+
colorNeutralBackground2Selected: colorNeutralBackground2Selected,
|
|
5715
|
+
colorNeutralBackground3: colorNeutralBackground3,
|
|
5716
|
+
colorNeutralBackground3Hover: colorNeutralBackground3Hover,
|
|
5717
|
+
colorNeutralBackground3Pressed: colorNeutralBackground3Pressed,
|
|
5718
|
+
colorNeutralBackground3Selected: colorNeutralBackground3Selected,
|
|
5719
|
+
colorNeutralBackground4: colorNeutralBackground4,
|
|
5720
|
+
colorNeutralBackground4Hover: colorNeutralBackground4Hover,
|
|
5721
|
+
colorNeutralBackground4Pressed: colorNeutralBackground4Pressed,
|
|
5722
|
+
colorNeutralBackground4Selected: colorNeutralBackground4Selected,
|
|
5723
|
+
colorNeutralBackground5: colorNeutralBackground5,
|
|
5724
|
+
colorNeutralBackground5Hover: colorNeutralBackground5Hover,
|
|
5725
|
+
colorNeutralBackground5Pressed: colorNeutralBackground5Pressed,
|
|
5726
|
+
colorNeutralBackground5Selected: colorNeutralBackground5Selected,
|
|
5727
|
+
colorNeutralBackground6: colorNeutralBackground6,
|
|
5728
|
+
colorNeutralBackgroundInverted: colorNeutralBackgroundInverted,
|
|
5729
|
+
colorNeutralBackgroundStatic: colorNeutralBackgroundStatic,
|
|
5730
|
+
colorSubtleBackground: colorSubtleBackground,
|
|
5731
|
+
colorSubtleBackgroundHover: colorSubtleBackgroundHover,
|
|
5732
|
+
colorSubtleBackgroundPressed: colorSubtleBackgroundPressed,
|
|
5733
|
+
colorSubtleBackgroundSelected: colorSubtleBackgroundSelected,
|
|
5734
|
+
colorSubtleBackgroundLightAlphaHover: colorSubtleBackgroundLightAlphaHover,
|
|
5735
|
+
colorSubtleBackgroundLightAlphaPressed: colorSubtleBackgroundLightAlphaPressed,
|
|
5736
|
+
colorSubtleBackgroundLightAlphaSelected: colorSubtleBackgroundLightAlphaSelected,
|
|
5737
|
+
colorSubtleBackgroundInverted: colorSubtleBackgroundInverted,
|
|
5738
|
+
colorSubtleBackgroundInvertedHover: colorSubtleBackgroundInvertedHover,
|
|
5739
|
+
colorSubtleBackgroundInvertedPressed: colorSubtleBackgroundInvertedPressed,
|
|
5740
|
+
colorSubtleBackgroundInvertedSelected: colorSubtleBackgroundInvertedSelected,
|
|
5741
|
+
colorTransparentBackground: colorTransparentBackground,
|
|
5742
|
+
colorTransparentBackgroundHover: colorTransparentBackgroundHover,
|
|
5743
|
+
colorTransparentBackgroundPressed: colorTransparentBackgroundPressed,
|
|
5744
|
+
colorTransparentBackgroundSelected: colorTransparentBackgroundSelected,
|
|
5745
|
+
colorNeutralBackgroundDisabled: colorNeutralBackgroundDisabled,
|
|
5746
|
+
colorNeutralBackgroundInvertedDisabled: colorNeutralBackgroundInvertedDisabled,
|
|
5747
|
+
colorNeutralStencil1: colorNeutralStencil1,
|
|
5748
|
+
colorNeutralStencil2: colorNeutralStencil2,
|
|
5749
|
+
colorBackgroundOverlay: colorBackgroundOverlay,
|
|
5750
|
+
colorScrollbarOverlay: colorScrollbarOverlay,
|
|
5751
|
+
colorBrandBackground: colorBrandBackground,
|
|
5752
|
+
colorBrandBackgroundHover: colorBrandBackgroundHover,
|
|
5753
|
+
colorBrandBackgroundPressed: colorBrandBackgroundPressed,
|
|
5754
|
+
colorBrandBackgroundSelected: colorBrandBackgroundSelected,
|
|
5755
|
+
colorCompoundBrandBackground: colorCompoundBrandBackground,
|
|
5756
|
+
colorCompoundBrandBackgroundHover: colorCompoundBrandBackgroundHover,
|
|
5757
|
+
colorCompoundBrandBackgroundPressed: colorCompoundBrandBackgroundPressed,
|
|
5758
|
+
colorBrandBackgroundStatic: colorBrandBackgroundStatic,
|
|
5759
|
+
colorBrandBackground2: colorBrandBackground2,
|
|
5760
|
+
colorBrandBackgroundInverted: colorBrandBackgroundInverted,
|
|
5761
|
+
colorBrandBackgroundInvertedHover: colorBrandBackgroundInvertedHover,
|
|
5762
|
+
colorBrandBackgroundInvertedPressed: colorBrandBackgroundInvertedPressed,
|
|
5763
|
+
colorBrandBackgroundInvertedSelected: colorBrandBackgroundInvertedSelected,
|
|
5764
|
+
colorNeutralStrokeAccessible: colorNeutralStrokeAccessible,
|
|
5765
|
+
colorNeutralStrokeAccessibleHover: colorNeutralStrokeAccessibleHover,
|
|
5766
|
+
colorNeutralStrokeAccessiblePressed: colorNeutralStrokeAccessiblePressed,
|
|
5767
|
+
colorNeutralStrokeAccessibleSelected: colorNeutralStrokeAccessibleSelected,
|
|
5768
|
+
colorNeutralStroke1: colorNeutralStroke1,
|
|
5769
|
+
colorNeutralStroke1Hover: colorNeutralStroke1Hover,
|
|
5770
|
+
colorNeutralStroke1Pressed: colorNeutralStroke1Pressed,
|
|
5771
|
+
colorNeutralStroke1Selected: colorNeutralStroke1Selected,
|
|
5772
|
+
colorNeutralStroke2: colorNeutralStroke2,
|
|
5773
|
+
colorNeutralStroke3: colorNeutralStroke3,
|
|
5774
|
+
colorNeutralStrokeOnBrand: colorNeutralStrokeOnBrand,
|
|
5775
|
+
colorNeutralStrokeOnBrand2: colorNeutralStrokeOnBrand2,
|
|
5776
|
+
colorNeutralStrokeOnBrand2Hover: colorNeutralStrokeOnBrand2Hover,
|
|
5777
|
+
colorNeutralStrokeOnBrand2Pressed: colorNeutralStrokeOnBrand2Pressed,
|
|
5778
|
+
colorNeutralStrokeOnBrand2Selected: colorNeutralStrokeOnBrand2Selected,
|
|
5779
|
+
colorBrandStroke1: colorBrandStroke1,
|
|
5780
|
+
colorBrandStroke2: colorBrandStroke2,
|
|
5781
|
+
colorCompoundBrandStroke: colorCompoundBrandStroke,
|
|
5782
|
+
colorCompoundBrandStrokeHover: colorCompoundBrandStrokeHover,
|
|
5783
|
+
colorCompoundBrandStrokePressed: colorCompoundBrandStrokePressed,
|
|
5784
|
+
colorNeutralStrokeDisabled: colorNeutralStrokeDisabled,
|
|
5785
|
+
colorNeutralStrokeInvertedDisabled: colorNeutralStrokeInvertedDisabled,
|
|
5786
|
+
colorTransparentStroke: colorTransparentStroke,
|
|
5787
|
+
colorTransparentStrokeInteractive: colorTransparentStrokeInteractive,
|
|
5788
|
+
colorTransparentStrokeDisabled: colorTransparentStrokeDisabled,
|
|
5789
|
+
colorStrokeFocus1: colorStrokeFocus1,
|
|
5790
|
+
colorStrokeFocus2: colorStrokeFocus2,
|
|
5791
|
+
colorNeutralShadowAmbient: colorNeutralShadowAmbient,
|
|
5792
|
+
colorNeutralShadowKey: colorNeutralShadowKey,
|
|
5793
|
+
colorNeutralShadowAmbientLighter: colorNeutralShadowAmbientLighter,
|
|
5794
|
+
colorNeutralShadowKeyLighter: colorNeutralShadowKeyLighter,
|
|
5795
|
+
colorNeutralShadowAmbientDarker: colorNeutralShadowAmbientDarker,
|
|
5796
|
+
colorNeutralShadowKeyDarker: colorNeutralShadowKeyDarker,
|
|
5797
|
+
colorBrandShadowAmbient: colorBrandShadowAmbient,
|
|
5798
|
+
colorBrandShadowKey: colorBrandShadowKey,
|
|
5799
|
+
colorPaletteRedBackground1: colorPaletteRedBackground1,
|
|
5800
|
+
colorPaletteRedBackground2: colorPaletteRedBackground2,
|
|
5801
|
+
colorPaletteRedBackground3: colorPaletteRedBackground3,
|
|
5802
|
+
colorPaletteRedForeground1: colorPaletteRedForeground1,
|
|
5803
|
+
colorPaletteRedForeground2: colorPaletteRedForeground2,
|
|
5804
|
+
colorPaletteRedForeground3: colorPaletteRedForeground3,
|
|
5805
|
+
colorPaletteRedBorderActive: colorPaletteRedBorderActive,
|
|
5806
|
+
colorPaletteRedBorder1: colorPaletteRedBorder1,
|
|
5807
|
+
colorPaletteRedBorder2: colorPaletteRedBorder2,
|
|
5808
|
+
colorPaletteGreenBackground1: colorPaletteGreenBackground1,
|
|
5809
|
+
colorPaletteGreenBackground2: colorPaletteGreenBackground2,
|
|
5810
|
+
colorPaletteGreenBackground3: colorPaletteGreenBackground3,
|
|
5811
|
+
colorPaletteGreenForeground1: colorPaletteGreenForeground1,
|
|
5812
|
+
colorPaletteGreenForeground2: colorPaletteGreenForeground2,
|
|
5813
|
+
colorPaletteGreenForeground3: colorPaletteGreenForeground3,
|
|
5814
|
+
colorPaletteGreenBorderActive: colorPaletteGreenBorderActive,
|
|
5815
|
+
colorPaletteGreenBorder1: colorPaletteGreenBorder1,
|
|
5816
|
+
colorPaletteGreenBorder2: colorPaletteGreenBorder2,
|
|
5817
|
+
colorPaletteDarkOrangeBackground1: colorPaletteDarkOrangeBackground1,
|
|
5818
|
+
colorPaletteDarkOrangeBackground2: colorPaletteDarkOrangeBackground2,
|
|
5819
|
+
colorPaletteDarkOrangeBackground3: colorPaletteDarkOrangeBackground3,
|
|
5820
|
+
colorPaletteDarkOrangeForeground1: colorPaletteDarkOrangeForeground1,
|
|
5821
|
+
colorPaletteDarkOrangeForeground2: colorPaletteDarkOrangeForeground2,
|
|
5822
|
+
colorPaletteDarkOrangeForeground3: colorPaletteDarkOrangeForeground3,
|
|
5823
|
+
colorPaletteDarkOrangeBorderActive: colorPaletteDarkOrangeBorderActive,
|
|
5824
|
+
colorPaletteDarkOrangeBorder1: colorPaletteDarkOrangeBorder1,
|
|
5825
|
+
colorPaletteDarkOrangeBorder2: colorPaletteDarkOrangeBorder2,
|
|
5826
|
+
colorPaletteYellowBackground1: colorPaletteYellowBackground1,
|
|
5827
|
+
colorPaletteYellowBackground2: colorPaletteYellowBackground2,
|
|
5828
|
+
colorPaletteYellowBackground3: colorPaletteYellowBackground3,
|
|
5829
|
+
colorPaletteYellowForeground1: colorPaletteYellowForeground1,
|
|
5830
|
+
colorPaletteYellowForeground2: colorPaletteYellowForeground2,
|
|
5831
|
+
colorPaletteYellowForeground3: colorPaletteYellowForeground3,
|
|
5832
|
+
colorPaletteYellowBorderActive: colorPaletteYellowBorderActive,
|
|
5833
|
+
colorPaletteYellowBorder1: colorPaletteYellowBorder1,
|
|
5834
|
+
colorPaletteYellowBorder2: colorPaletteYellowBorder2,
|
|
5835
|
+
colorPaletteBerryBackground1: colorPaletteBerryBackground1,
|
|
5836
|
+
colorPaletteBerryBackground2: colorPaletteBerryBackground2,
|
|
5837
|
+
colorPaletteBerryBackground3: colorPaletteBerryBackground3,
|
|
5838
|
+
colorPaletteBerryForeground1: colorPaletteBerryForeground1,
|
|
5839
|
+
colorPaletteBerryForeground2: colorPaletteBerryForeground2,
|
|
5840
|
+
colorPaletteBerryForeground3: colorPaletteBerryForeground3,
|
|
5841
|
+
colorPaletteBerryBorderActive: colorPaletteBerryBorderActive,
|
|
5842
|
+
colorPaletteBerryBorder1: colorPaletteBerryBorder1,
|
|
5843
|
+
colorPaletteBerryBorder2: colorPaletteBerryBorder2,
|
|
5844
|
+
colorPaletteLightGreenBackground1: colorPaletteLightGreenBackground1,
|
|
5845
|
+
colorPaletteLightGreenBackground2: colorPaletteLightGreenBackground2,
|
|
5846
|
+
colorPaletteLightGreenBackground3: colorPaletteLightGreenBackground3,
|
|
5847
|
+
colorPaletteLightGreenForeground1: colorPaletteLightGreenForeground1,
|
|
5848
|
+
colorPaletteLightGreenForeground2: colorPaletteLightGreenForeground2,
|
|
5849
|
+
colorPaletteLightGreenForeground3: colorPaletteLightGreenForeground3,
|
|
5850
|
+
colorPaletteLightGreenBorderActive: colorPaletteLightGreenBorderActive,
|
|
5851
|
+
colorPaletteLightGreenBorder1: colorPaletteLightGreenBorder1,
|
|
5852
|
+
colorPaletteLightGreenBorder2: colorPaletteLightGreenBorder2,
|
|
5853
|
+
colorPaletteMarigoldBackground1: colorPaletteMarigoldBackground1,
|
|
5854
|
+
colorPaletteMarigoldBackground2: colorPaletteMarigoldBackground2,
|
|
5855
|
+
colorPaletteMarigoldBackground3: colorPaletteMarigoldBackground3,
|
|
5856
|
+
colorPaletteMarigoldForeground1: colorPaletteMarigoldForeground1,
|
|
5857
|
+
colorPaletteMarigoldForeground2: colorPaletteMarigoldForeground2,
|
|
5858
|
+
colorPaletteMarigoldForeground3: colorPaletteMarigoldForeground3,
|
|
5859
|
+
colorPaletteMarigoldBorderActive: colorPaletteMarigoldBorderActive,
|
|
5860
|
+
colorPaletteMarigoldBorder1: colorPaletteMarigoldBorder1,
|
|
5861
|
+
colorPaletteMarigoldBorder2: colorPaletteMarigoldBorder2,
|
|
5862
|
+
colorPaletteDarkRedBackground2: colorPaletteDarkRedBackground2,
|
|
5863
|
+
colorPaletteDarkRedForeground2: colorPaletteDarkRedForeground2,
|
|
5864
|
+
colorPaletteDarkRedBorderActive: colorPaletteDarkRedBorderActive,
|
|
5865
|
+
colorPaletteCranberryBackground2: colorPaletteCranberryBackground2,
|
|
5866
|
+
colorPaletteCranberryForeground2: colorPaletteCranberryForeground2,
|
|
5867
|
+
colorPaletteCranberryBorderActive: colorPaletteCranberryBorderActive,
|
|
5868
|
+
colorPalettePumpkinBackground2: colorPalettePumpkinBackground2,
|
|
5869
|
+
colorPalettePumpkinForeground2: colorPalettePumpkinForeground2,
|
|
5870
|
+
colorPalettePumpkinBorderActive: colorPalettePumpkinBorderActive,
|
|
5871
|
+
colorPalettePeachBackground2: colorPalettePeachBackground2,
|
|
5872
|
+
colorPalettePeachForeground2: colorPalettePeachForeground2,
|
|
5873
|
+
colorPalettePeachBorderActive: colorPalettePeachBorderActive,
|
|
5874
|
+
colorPaletteGoldBackground2: colorPaletteGoldBackground2,
|
|
5875
|
+
colorPaletteGoldForeground2: colorPaletteGoldForeground2,
|
|
5876
|
+
colorPaletteGoldBorderActive: colorPaletteGoldBorderActive,
|
|
5877
|
+
colorPaletteBrassBackground2: colorPaletteBrassBackground2,
|
|
5878
|
+
colorPaletteBrassForeground2: colorPaletteBrassForeground2,
|
|
5879
|
+
colorPaletteBrassBorderActive: colorPaletteBrassBorderActive,
|
|
5880
|
+
colorPaletteBrownBackground2: colorPaletteBrownBackground2,
|
|
5881
|
+
colorPaletteBrownForeground2: colorPaletteBrownForeground2,
|
|
5882
|
+
colorPaletteBrownBorderActive: colorPaletteBrownBorderActive,
|
|
5883
|
+
colorPaletteForestBackground2: colorPaletteForestBackground2,
|
|
5884
|
+
colorPaletteForestForeground2: colorPaletteForestForeground2,
|
|
5885
|
+
colorPaletteForestBorderActive: colorPaletteForestBorderActive,
|
|
5886
|
+
colorPaletteSeafoamBackground2: colorPaletteSeafoamBackground2,
|
|
5887
|
+
colorPaletteSeafoamForeground2: colorPaletteSeafoamForeground2,
|
|
5888
|
+
colorPaletteSeafoamBorderActive: colorPaletteSeafoamBorderActive,
|
|
5889
|
+
colorPaletteDarkGreenBackground2: colorPaletteDarkGreenBackground2,
|
|
5890
|
+
colorPaletteDarkGreenForeground2: colorPaletteDarkGreenForeground2,
|
|
5891
|
+
colorPaletteDarkGreenBorderActive: colorPaletteDarkGreenBorderActive,
|
|
5892
|
+
colorPaletteLightTealBackground2: colorPaletteLightTealBackground2,
|
|
5893
|
+
colorPaletteLightTealForeground2: colorPaletteLightTealForeground2,
|
|
5894
|
+
colorPaletteLightTealBorderActive: colorPaletteLightTealBorderActive,
|
|
5895
|
+
colorPaletteTealBackground2: colorPaletteTealBackground2,
|
|
5896
|
+
colorPaletteTealForeground2: colorPaletteTealForeground2,
|
|
5897
|
+
colorPaletteTealBorderActive: colorPaletteTealBorderActive,
|
|
5898
|
+
colorPaletteSteelBackground2: colorPaletteSteelBackground2,
|
|
5899
|
+
colorPaletteSteelForeground2: colorPaletteSteelForeground2,
|
|
5900
|
+
colorPaletteSteelBorderActive: colorPaletteSteelBorderActive,
|
|
5901
|
+
colorPaletteBlueBackground2: colorPaletteBlueBackground2,
|
|
5902
|
+
colorPaletteBlueForeground2: colorPaletteBlueForeground2,
|
|
5903
|
+
colorPaletteBlueBorderActive: colorPaletteBlueBorderActive,
|
|
5904
|
+
colorPaletteRoyalBlueBackground2: colorPaletteRoyalBlueBackground2,
|
|
5905
|
+
colorPaletteRoyalBlueForeground2: colorPaletteRoyalBlueForeground2,
|
|
5906
|
+
colorPaletteRoyalBlueBorderActive: colorPaletteRoyalBlueBorderActive,
|
|
5907
|
+
colorPaletteCornflowerBackground2: colorPaletteCornflowerBackground2,
|
|
5908
|
+
colorPaletteCornflowerForeground2: colorPaletteCornflowerForeground2,
|
|
5909
|
+
colorPaletteCornflowerBorderActive: colorPaletteCornflowerBorderActive,
|
|
5910
|
+
colorPaletteNavyBackground2: colorPaletteNavyBackground2,
|
|
5911
|
+
colorPaletteNavyForeground2: colorPaletteNavyForeground2,
|
|
5912
|
+
colorPaletteNavyBorderActive: colorPaletteNavyBorderActive,
|
|
5913
|
+
colorPaletteLavenderBackground2: colorPaletteLavenderBackground2,
|
|
5914
|
+
colorPaletteLavenderForeground2: colorPaletteLavenderForeground2,
|
|
5915
|
+
colorPaletteLavenderBorderActive: colorPaletteLavenderBorderActive,
|
|
5916
|
+
colorPalettePurpleBackground2: colorPalettePurpleBackground2,
|
|
5917
|
+
colorPalettePurpleForeground2: colorPalettePurpleForeground2,
|
|
5918
|
+
colorPalettePurpleBorderActive: colorPalettePurpleBorderActive,
|
|
5919
|
+
colorPaletteGrapeBackground2: colorPaletteGrapeBackground2,
|
|
5920
|
+
colorPaletteGrapeForeground2: colorPaletteGrapeForeground2,
|
|
5921
|
+
colorPaletteGrapeBorderActive: colorPaletteGrapeBorderActive,
|
|
5922
|
+
colorPaletteLilacBackground2: colorPaletteLilacBackground2,
|
|
5923
|
+
colorPaletteLilacForeground2: colorPaletteLilacForeground2,
|
|
5924
|
+
colorPaletteLilacBorderActive: colorPaletteLilacBorderActive,
|
|
5925
|
+
colorPalettePinkBackground2: colorPalettePinkBackground2,
|
|
5926
|
+
colorPalettePinkForeground2: colorPalettePinkForeground2,
|
|
5927
|
+
colorPalettePinkBorderActive: colorPalettePinkBorderActive,
|
|
5928
|
+
colorPaletteMagentaBackground2: colorPaletteMagentaBackground2,
|
|
5929
|
+
colorPaletteMagentaForeground2: colorPaletteMagentaForeground2,
|
|
5930
|
+
colorPaletteMagentaBorderActive: colorPaletteMagentaBorderActive,
|
|
5931
|
+
colorPalettePlumBackground2: colorPalettePlumBackground2,
|
|
5932
|
+
colorPalettePlumForeground2: colorPalettePlumForeground2,
|
|
5933
|
+
colorPalettePlumBorderActive: colorPalettePlumBorderActive,
|
|
5934
|
+
colorPaletteBeigeBackground2: colorPaletteBeigeBackground2,
|
|
5935
|
+
colorPaletteBeigeForeground2: colorPaletteBeigeForeground2,
|
|
5936
|
+
colorPaletteBeigeBorderActive: colorPaletteBeigeBorderActive,
|
|
5937
|
+
colorPaletteMinkBackground2: colorPaletteMinkBackground2,
|
|
5938
|
+
colorPaletteMinkForeground2: colorPaletteMinkForeground2,
|
|
5939
|
+
colorPaletteMinkBorderActive: colorPaletteMinkBorderActive,
|
|
5940
|
+
colorPalettePlatinumBackground2: colorPalettePlatinumBackground2,
|
|
5941
|
+
colorPalettePlatinumForeground2: colorPalettePlatinumForeground2,
|
|
5942
|
+
colorPalettePlatinumBorderActive: colorPalettePlatinumBorderActive,
|
|
5943
|
+
colorPaletteAnchorBackground2: colorPaletteAnchorBackground2,
|
|
5944
|
+
colorPaletteAnchorForeground2: colorPaletteAnchorForeground2,
|
|
5945
|
+
colorPaletteAnchorBorderActive: colorPaletteAnchorBorderActive,
|
|
5946
|
+
shadow2: shadow2,
|
|
5947
|
+
shadow4: shadow4,
|
|
5948
|
+
shadow8: shadow8,
|
|
5949
|
+
shadow16: shadow16,
|
|
5950
|
+
shadow28: shadow28,
|
|
5951
|
+
shadow64: shadow64,
|
|
5952
|
+
shadow2Brand: shadow2Brand,
|
|
5953
|
+
shadow4Brand: shadow4Brand,
|
|
5954
|
+
shadow8Brand: shadow8Brand,
|
|
5955
|
+
shadow16Brand: shadow16Brand,
|
|
5956
|
+
shadow28Brand: shadow28Brand,
|
|
5957
|
+
shadow64Brand: shadow64Brand
|
|
4936
5958
|
});
|
|
4937
5959
|
|
|
5960
|
+
const styles$6 = css`
|
|
5961
|
+
${display('block')}
|
|
5962
|
+
|
|
5963
|
+
:host{max-width:fit-content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${colorNeutralForeground1};background:${colorTransparentBackground};line-height:${lineHeightBase300};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${spacingHorizontalS};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${spacingHorizontalM}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='small']) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='extra-large']) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`;
|
|
5964
|
+
|
|
5965
|
+
const chevronRight20Filled = html.partial(`<svg
|
|
5966
|
+
width="20"
|
|
5967
|
+
height="20"
|
|
5968
|
+
viewBox="0 0 20 20"
|
|
5969
|
+
fill="none"
|
|
5970
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5971
|
+
class="default-collapsed-icon"
|
|
5972
|
+
>
|
|
5973
|
+
<path
|
|
5974
|
+
d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
|
|
5975
|
+
fill="#212121"
|
|
5976
|
+
/>
|
|
5977
|
+
</svg>`);
|
|
5978
|
+
const chevronDown20Filled = html.partial(`<svg
|
|
5979
|
+
width="20"
|
|
5980
|
+
height="20"
|
|
5981
|
+
viewBox="0 0 20 20"
|
|
5982
|
+
fill="none"
|
|
5983
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5984
|
+
class="default-expanded-icon"
|
|
5985
|
+
>
|
|
5986
|
+
<path
|
|
5987
|
+
d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
|
|
5988
|
+
fill="#212121"
|
|
5989
|
+
/>
|
|
5990
|
+
</svg>`);
|
|
5991
|
+
/**
|
|
5992
|
+
* The template for the fluent-accordion component.
|
|
5993
|
+
* @public
|
|
5994
|
+
*/
|
|
5995
|
+
const template$6 = accordionItemTemplate({
|
|
5996
|
+
collapsedIcon: chevronRight20Filled,
|
|
5997
|
+
expandedIcon: chevronDown20Filled
|
|
5998
|
+
});
|
|
5999
|
+
|
|
6000
|
+
/**
|
|
6001
|
+
* The Fluent AccordionItem Element. Implements {@link @microsoft/fast-foundation#AccordionItem },
|
|
6002
|
+
* {@link @microsoft/fast-foundation#accordionItemTemplate}
|
|
6003
|
+
*
|
|
6004
|
+
*
|
|
6005
|
+
* @public
|
|
6006
|
+
* @remarks
|
|
6007
|
+
* HTML Element: \<fluent-accordion-item\>
|
|
6008
|
+
*/
|
|
6009
|
+
const definition$6 = AccordionItem.compose({
|
|
6010
|
+
name: `${FluentDesignSystem.prefix}-accordion-item`,
|
|
6011
|
+
template: template$6,
|
|
6012
|
+
styles: styles$6
|
|
6013
|
+
});
|
|
6014
|
+
|
|
6015
|
+
/**
|
|
6016
|
+
* BadgeAppearance constants
|
|
6017
|
+
* @public
|
|
6018
|
+
*/
|
|
6019
|
+
const BadgeAppearance = {
|
|
6020
|
+
filled: 'filled',
|
|
6021
|
+
ghost: 'ghost',
|
|
6022
|
+
outline: 'outline',
|
|
6023
|
+
tint: 'tint'
|
|
6024
|
+
};
|
|
6025
|
+
/**
|
|
6026
|
+
* BadgeColor constants
|
|
6027
|
+
* @public
|
|
6028
|
+
*/
|
|
6029
|
+
const BadgeColor = {
|
|
6030
|
+
brand: 'brand',
|
|
6031
|
+
danger: 'danger',
|
|
6032
|
+
important: 'important',
|
|
6033
|
+
informative: 'informative',
|
|
6034
|
+
severe: 'severe',
|
|
6035
|
+
subtle: 'subtle',
|
|
6036
|
+
success: 'success',
|
|
6037
|
+
warning: 'warning'
|
|
6038
|
+
};
|
|
6039
|
+
/**
|
|
6040
|
+
* A Badge can be square, circular or rounded.
|
|
6041
|
+
* @public
|
|
6042
|
+
*/
|
|
6043
|
+
const BadgeShape = {
|
|
6044
|
+
circular: 'circular',
|
|
6045
|
+
rounded: 'rounded',
|
|
6046
|
+
square: 'square'
|
|
6047
|
+
};
|
|
6048
|
+
/**
|
|
6049
|
+
* A Badge can be square, circular or rounded.
|
|
6050
|
+
* @public
|
|
6051
|
+
*/
|
|
6052
|
+
const BadgeSize = {
|
|
6053
|
+
tiny: 'tiny',
|
|
6054
|
+
extraSmall: 'extra-small',
|
|
6055
|
+
small: 'small',
|
|
6056
|
+
medium: 'medium',
|
|
6057
|
+
large: 'large',
|
|
6058
|
+
extraLarge: 'extra-large'
|
|
6059
|
+
};
|
|
6060
|
+
|
|
6061
|
+
/**
|
|
6062
|
+
* The base class used for constructing a fluent-badge custom element
|
|
6063
|
+
* @public
|
|
6064
|
+
*/
|
|
6065
|
+
class Badge extends FASTElement {
|
|
6066
|
+
constructor() {
|
|
6067
|
+
super(...arguments);
|
|
6068
|
+
/**
|
|
6069
|
+
* The appearance the badge should have.
|
|
6070
|
+
*
|
|
6071
|
+
* @public
|
|
6072
|
+
* @remarks
|
|
6073
|
+
* HTML Attribute: appearance
|
|
6074
|
+
*/
|
|
6075
|
+
this.appearance = BadgeAppearance.filled;
|
|
6076
|
+
/**
|
|
6077
|
+
* The color the badge should have.
|
|
6078
|
+
*
|
|
6079
|
+
* @public
|
|
6080
|
+
* @remarks
|
|
6081
|
+
* HTML Attribute: color
|
|
6082
|
+
*/
|
|
6083
|
+
this.color = BadgeColor.brand;
|
|
6084
|
+
}
|
|
6085
|
+
}
|
|
6086
|
+
__decorate([attr], Badge.prototype, "appearance", void 0);
|
|
6087
|
+
__decorate([attr], Badge.prototype, "color", void 0);
|
|
6088
|
+
__decorate([attr], Badge.prototype, "shape", void 0);
|
|
6089
|
+
__decorate([attr], Badge.prototype, "size", void 0);
|
|
6090
|
+
applyMixins(Badge, StartEnd);
|
|
6091
|
+
|
|
6092
|
+
/**
|
|
6093
|
+
* The template for the Badge component.
|
|
6094
|
+
* @public
|
|
6095
|
+
*/
|
|
6096
|
+
function badgeTemplate(options = {}) {
|
|
6097
|
+
return html` ${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)} `;
|
|
6098
|
+
}
|
|
6099
|
+
const template$5 = badgeTemplate();
|
|
6100
|
+
|
|
4938
6101
|
const textPadding = spacingHorizontalXXS;
|
|
4939
6102
|
const badgeBaseStyles = css.partial`
|
|
4940
6103
|
${display('inline-flex')} :host {
|
|
@@ -5209,7 +6372,7 @@ const badgeTintStyles = css.partial`
|
|
|
5209
6372
|
/** Badge styles
|
|
5210
6373
|
* @public
|
|
5211
6374
|
*/
|
|
5212
|
-
const styles$
|
|
6375
|
+
const styles$5 = css`
|
|
5213
6376
|
:host([shape='square']){border-radius:${borderRadiusNone}}:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
5214
6377
|
${badgeFilledStyles}
|
|
5215
6378
|
${badgeGhostStyles}
|
|
@@ -5218,12 +6381,6 @@ const styles$4 = css`
|
|
|
5218
6381
|
${badgeBaseStyles}
|
|
5219
6382
|
`;
|
|
5220
6383
|
|
|
5221
|
-
const FluentDesignSystem = Object.freeze({
|
|
5222
|
-
prefix: 'fluent',
|
|
5223
|
-
shadowRootMode: 'open',
|
|
5224
|
-
registry: customElements
|
|
5225
|
-
});
|
|
5226
|
-
|
|
5227
6384
|
/**
|
|
5228
6385
|
* The Fluent Badge Element. Implements {@link @microsoft/fast-foundation#Badge },
|
|
5229
6386
|
* {@link @microsoft/fast-foundation#badgeTemplate}
|
|
@@ -5233,10 +6390,10 @@ const FluentDesignSystem = Object.freeze({
|
|
|
5233
6390
|
* @remarks
|
|
5234
6391
|
* HTML Element: \<fluent-badge\>
|
|
5235
6392
|
*/
|
|
5236
|
-
const definition$
|
|
6393
|
+
const definition$5 = Badge.compose({
|
|
5237
6394
|
name: `${FluentDesignSystem.prefix}-badge`,
|
|
5238
|
-
template: template$
|
|
5239
|
-
styles: styles$
|
|
6395
|
+
template: template$5,
|
|
6396
|
+
styles: styles$5
|
|
5240
6397
|
});
|
|
5241
6398
|
|
|
5242
6399
|
/**
|
|
@@ -5372,12 +6529,12 @@ function composeTemplate(options = {}) {
|
|
|
5372
6529
|
* The template for the Counter Badge component.
|
|
5373
6530
|
* @public
|
|
5374
6531
|
*/
|
|
5375
|
-
const template$
|
|
6532
|
+
const template$4 = composeTemplate();
|
|
5376
6533
|
|
|
5377
6534
|
/** Badge styles
|
|
5378
6535
|
* @public
|
|
5379
6536
|
*/
|
|
5380
|
-
const styles$
|
|
6537
|
+
const styles$4 = css`
|
|
5381
6538
|
:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
5382
6539
|
${badgeFilledStyles}
|
|
5383
6540
|
${badgeGhostStyles}
|
|
@@ -5394,10 +6551,10 @@ const styles$3 = css`
|
|
|
5394
6551
|
* @remarks
|
|
5395
6552
|
* HTML Element: \<fluent-counter-badge\>
|
|
5396
6553
|
*/
|
|
5397
|
-
const definition$
|
|
6554
|
+
const definition$4 = CounterBadge.compose({
|
|
5398
6555
|
name: `${FluentDesignSystem.prefix}-counter-badge`,
|
|
5399
|
-
template: template$
|
|
5400
|
-
styles: styles$
|
|
6556
|
+
template: template$4,
|
|
6557
|
+
styles: styles$4
|
|
5401
6558
|
});
|
|
5402
6559
|
|
|
5403
6560
|
/**
|
|
@@ -5440,7 +6597,7 @@ const ProgressBarValidationState = {
|
|
|
5440
6597
|
/** Text styles
|
|
5441
6598
|
* @public
|
|
5442
6599
|
*/
|
|
5443
|
-
const styles$
|
|
6600
|
+
const styles$3 = css`
|
|
5444
6601
|
${display('flex')}
|
|
5445
6602
|
|
|
5446
6603
|
:host{align-items:center;height:2px;overflow-x:hidden;border-radius:${borderRadiusMedium}}:host([thickness='large']),:host([thickness='large']) .progress,:host([thickness='large']) .determinate{height:4px}:host([shape='square']),:host([shape='square']) .progress,:host([shape='square']) .determinate{border-radius:0}:host([validation-state='error']) .determinate{background-color:${colorPaletteRedBackground3}}:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background:linear-gradient(
|
|
@@ -5455,7 +6612,7 @@ const styles$2 = css`
|
|
|
5455
6612
|
to right,${colorBrandBackground2} 0%,${colorCompoundBrandBackground} 50%,${colorBrandBackground2}
|
|
5456
6613
|
);border-radius:${borderRadiusMedium};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 3s infinite}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`;
|
|
5457
6614
|
|
|
5458
|
-
const template$
|
|
6615
|
+
const template$3 = progressTemplate({
|
|
5459
6616
|
indeterminateIndicator1: `<span class="indeterminate-indicator-1" part="indeterminate-indicator-1></span>`,
|
|
5460
6617
|
indeterminateIndicator2: `<span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>`
|
|
5461
6618
|
});
|
|
@@ -5468,10 +6625,10 @@ const template$2 = progressTemplate({
|
|
|
5468
6625
|
* @remarks
|
|
5469
6626
|
* HTML Element: \<fluent-progress-bar\>
|
|
5470
6627
|
*/
|
|
5471
|
-
const definition$
|
|
6628
|
+
const definition$3 = ProgressBar.compose({
|
|
5472
6629
|
name: `${FluentDesignSystem.prefix}-progress-bar`,
|
|
5473
|
-
template: template$
|
|
5474
|
-
styles: styles$
|
|
6630
|
+
template: template$3,
|
|
6631
|
+
styles: styles$3
|
|
5475
6632
|
});
|
|
5476
6633
|
|
|
5477
6634
|
/**
|
|
@@ -5504,7 +6661,7 @@ const SpinnerSize = {
|
|
|
5504
6661
|
huge: 'huge'
|
|
5505
6662
|
};
|
|
5506
6663
|
|
|
5507
|
-
const template$
|
|
6664
|
+
const template$2 = progressRingTemplate({
|
|
5508
6665
|
indeterminateIndicator: `
|
|
5509
6666
|
<svg class="progress" part="progress" viewBox="0 0 16 16">
|
|
5510
6667
|
<circle
|
|
@@ -5525,7 +6682,7 @@ const template$1 = progressRingTemplate({
|
|
|
5525
6682
|
`
|
|
5526
6683
|
});
|
|
5527
6684
|
|
|
5528
|
-
const styles$
|
|
6685
|
+
const styles$2 = css`
|
|
5529
6686
|
${display('flex')}
|
|
5530
6687
|
|
|
5531
6688
|
:host{display:flex;align-items:center;height:32px;width:32px}:host([size='tiny']){height:20px;width:20px}:host([size='extra-small']){height:24px;width:24px}:host([size='small']){height:28px;width:28px}:host([size='large']){height:36px;width:36px}:host([size='extra-large']){height:40px;width:40px}:host([size='huge']){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${colorBrandStroke2};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.determinate{stroke:${colorBrandStroke1};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}:host([appearance='inverted']) .determinite{stroke:${colorNeutralStrokeOnBrand2}}.indeterminate-indicator-1{stroke:${colorBrandStroke1};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host([appearance='inverted']) .indeterminate-indicator-1{stroke:${colorNeutralStrokeOnBrand2}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`;
|
|
@@ -5539,8 +6696,45 @@ const styles$1 = css`
|
|
|
5539
6696
|
* @remarks
|
|
5540
6697
|
* HTML Element: \<fluent-spinner\>
|
|
5541
6698
|
*/
|
|
5542
|
-
const definition$
|
|
6699
|
+
const definition$2 = Spinner.compose({
|
|
5543
6700
|
name: `${FluentDesignSystem.prefix}-spinner`,
|
|
6701
|
+
template: template$2,
|
|
6702
|
+
styles: styles$2
|
|
6703
|
+
});
|
|
6704
|
+
|
|
6705
|
+
class Switch extends FASTSwitch {}
|
|
6706
|
+
__decorate([attr({
|
|
6707
|
+
attribute: 'label-position'
|
|
6708
|
+
})], Switch.prototype, "labelPosition", void 0);
|
|
6709
|
+
|
|
6710
|
+
/**
|
|
6711
|
+
* SwitchLabelPosition Constants
|
|
6712
|
+
* @public
|
|
6713
|
+
*/
|
|
6714
|
+
const SwitchLabelPosition = {
|
|
6715
|
+
above: 'above',
|
|
6716
|
+
after: 'after',
|
|
6717
|
+
before: 'before'
|
|
6718
|
+
};
|
|
6719
|
+
|
|
6720
|
+
const template$1 = switchTemplate({
|
|
6721
|
+
switch: `<span class="checked-indicator" part="checked-indicator"></span>`
|
|
6722
|
+
});
|
|
6723
|
+
|
|
6724
|
+
const styles$1 = css`
|
|
6725
|
+
${display('inline-flex')}
|
|
6726
|
+
|
|
6727
|
+
:host{align-items:center;flex-direction:row-reverse;outline:none;user-select:none}:host([label-position='before']){flex-direction:row}:host([label-position='above']){flex-direction:column;align-items:flex-start}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:not-allowed}.label{position:relative;color:${colorNeutralForeground1};line-height:${lineHeightBase300};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};font-family:${fontFamilyBase};padding:${spacingVerticalXS} ${spacingHorizontalXS};cursor:pointer}.label__hidden{display:none}.switch{display:flex;align-items:center;padding:0 ${spacingHorizontalXXS};box-sizing:border-box;width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};outline:none;cursor:pointer;margin:${spacingVerticalS} ${spacingHorizontalS}}:host(:hover) .switch{background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .switch{border-color:${colorNeutralStrokeAccessiblePressed}}:host([disabled]) .switch,:host([readonly]) .switch{border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host([aria-checked='true']) .switch{background:${colorCompoundBrandBackground}}:host([aria-checked='true']:hover) .switch{background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host([aria-checked='true']:active) .switch{background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host([aria-checked='true'][disabled]) .switch{background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:transform}:host([aria-checked='true']) .checked-indicator{background-color:${colorNeutralForegroundInverted};transform:translateX(20px)}:host([aria-checked='true']:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host([aria-checked='true']: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([aria-checked='true'][disabled]) .checked-indicator{background:${colorNeutralForegroundDisabled}}`;
|
|
6728
|
+
|
|
6729
|
+
/**
|
|
6730
|
+
* The Fluent Switch Element.
|
|
6731
|
+
*
|
|
6732
|
+
* @public
|
|
6733
|
+
* @remarks
|
|
6734
|
+
* HTML Element: \<fluent-switch\>
|
|
6735
|
+
*/
|
|
6736
|
+
const definition$1 = Switch.compose({
|
|
6737
|
+
name: `${FluentDesignSystem.prefix}-switch`,
|
|
5544
6738
|
template: template$1,
|
|
5545
6739
|
styles: styles$1
|
|
5546
6740
|
});
|
|
@@ -5711,4 +6905,4 @@ const setTheme = theme => {
|
|
|
5711
6905
|
}
|
|
5712
6906
|
};
|
|
5713
6907
|
|
|
5714
|
-
export { Badge, BadgeAppearance, BadgeColor, definition$4 as BadgeDefinition, BadgeShape, BadgeSize, styles$4 as BadgeStyles, template$4 as BadgeTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$3 as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$3 as CounterBadgeStyles, template$3 as CounterBadgeTemplate, ProgressBar, definition$2 as ProgressBarDefinition, ProgressBarShape, styles$2 as ProgressBarStyles, template$2 as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Spinner, SpinnerAppearance, definition$1 as SpinnerDefinition, SpinnerSize, styles$1 as SpinnerStyles, template$1 as SpinnerTemplate, Text, TextAlign, definition as TextDefinition, TextFont, TextSize, styles as TextStyles, template as TextTemplate, TextWeight, borderRadiusCircular, borderRadiusLarge, borderRadiusMedium, borderRadiusNone, borderRadiusSmall, borderRadiusXLarge, colorBackgroundOverlay, colorBrandBackground, colorBrandBackground2, colorBrandBackgroundHover, colorBrandBackgroundInverted, colorBrandBackgroundInvertedHover, colorBrandBackgroundInvertedPressed, colorBrandBackgroundInvertedSelected, colorBrandBackgroundPressed, colorBrandBackgroundSelected, colorBrandBackgroundStatic, colorBrandForeground1, colorBrandForeground2, colorBrandForegroundInverted, colorBrandForegroundInvertedHover, colorBrandForegroundInvertedPressed, colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorBrandForegroundLinkSelected, colorBrandForegroundOnLight, colorBrandForegroundOnLightHover, colorBrandForegroundOnLightPressed, colorBrandForegroundOnLightSelected, colorBrandShadowAmbient, colorBrandShadowKey, colorBrandStroke1, colorBrandStroke2, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorCompoundBrandForeground1, colorCompoundBrandForeground1Hover, colorCompoundBrandForeground1Pressed, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralBackground1, colorNeutralBackground1Hover, colorNeutralBackground1Pressed, colorNeutralBackground1Selected, colorNeutralBackground2, colorNeutralBackground2Hover, colorNeutralBackground2Pressed, colorNeutralBackground2Selected, colorNeutralBackground3, colorNeutralBackground3Hover, colorNeutralBackground3Pressed, colorNeutralBackground3Selected, colorNeutralBackground4, colorNeutralBackground4Hover, colorNeutralBackground4Pressed, colorNeutralBackground4Selected, colorNeutralBackground5, colorNeutralBackground5Hover, colorNeutralBackground5Pressed, colorNeutralBackground5Selected, colorNeutralBackground6, colorNeutralBackgroundDisabled, colorNeutralBackgroundInverted, colorNeutralBackgroundInvertedDisabled, colorNeutralBackgroundStatic, colorNeutralForeground1, colorNeutralForeground1Hover, colorNeutralForeground1Pressed, colorNeutralForeground1Selected, colorNeutralForeground1Static, colorNeutralForeground2, colorNeutralForeground2BrandHover, colorNeutralForeground2BrandPressed, colorNeutralForeground2BrandSelected, colorNeutralForeground2Hover, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, colorNeutralForeground2LinkSelected, colorNeutralForeground2Pressed, colorNeutralForeground2Selected, colorNeutralForeground3, colorNeutralForeground3BrandHover, colorNeutralForeground3BrandPressed, colorNeutralForeground3BrandSelected, colorNeutralForeground3Hover, colorNeutralForeground3Pressed, colorNeutralForeground3Selected, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInverted, colorNeutralForegroundInverted2, colorNeutralForegroundInvertedDisabled, colorNeutralForegroundInvertedHover, colorNeutralForegroundInvertedLink, colorNeutralForegroundInvertedLinkHover, colorNeutralForegroundInvertedLinkPressed, colorNeutralForegroundInvertedLinkSelected, colorNeutralForegroundInvertedPressed, colorNeutralForegroundInvertedSelected, colorNeutralForegroundOnBrand, colorNeutralForegroundStaticInverted, colorNeutralShadowAmbient, colorNeutralShadowAmbientDarker, colorNeutralShadowAmbientLighter, colorNeutralShadowKey, colorNeutralShadowKeyDarker, colorNeutralShadowKeyLighter, colorNeutralStencil1, colorNeutralStencil2, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStroke1Selected, colorNeutralStroke2, colorNeutralStroke3, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeAccessibleSelected, colorNeutralStrokeDisabled, colorNeutralStrokeInvertedDisabled, colorNeutralStrokeOnBrand, colorNeutralStrokeOnBrand2, colorNeutralStrokeOnBrand2Hover, colorNeutralStrokeOnBrand2Pressed, colorNeutralStrokeOnBrand2Selected, colorPaletteAnchorBackground2, colorPaletteAnchorBorderActive, colorPaletteAnchorForeground2, colorPaletteBeigeBackground2, colorPaletteBeigeBorderActive, colorPaletteBeigeForeground2, colorPaletteBerryBackground1, colorPaletteBerryBackground2, colorPaletteBerryBackground3, colorPaletteBerryBorder1, colorPaletteBerryBorder2, colorPaletteBerryBorderActive, colorPaletteBerryForeground1, colorPaletteBerryForeground2, colorPaletteBerryForeground3, colorPaletteBlueBackground2, colorPaletteBlueBorderActive, colorPaletteBlueForeground2, colorPaletteBrassBackground2, colorPaletteBrassBorderActive, colorPaletteBrassForeground2, colorPaletteBrownBackground2, colorPaletteBrownBorderActive, colorPaletteBrownForeground2, colorPaletteCornflowerBackground2, colorPaletteCornflowerBorderActive, colorPaletteCornflowerForeground2, colorPaletteCranberryBackground2, colorPaletteCranberryBorderActive, colorPaletteCranberryForeground2, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenBorderActive, colorPaletteDarkGreenForeground2, colorPaletteDarkOrangeBackground1, colorPaletteDarkOrangeBackground2, colorPaletteDarkOrangeBackground3, colorPaletteDarkOrangeBorder1, colorPaletteDarkOrangeBorder2, colorPaletteDarkOrangeBorderActive, colorPaletteDarkOrangeForeground1, colorPaletteDarkOrangeForeground2, colorPaletteDarkOrangeForeground3, colorPaletteDarkRedBackground2, colorPaletteDarkRedBorderActive, colorPaletteDarkRedForeground2, colorPaletteForestBackground2, colorPaletteForestBorderActive, colorPaletteForestForeground2, colorPaletteGoldBackground2, colorPaletteGoldBorderActive, colorPaletteGoldForeground2, colorPaletteGrapeBackground2, colorPaletteGrapeBorderActive, colorPaletteGrapeForeground2, colorPaletteGreenBackground1, colorPaletteGreenBackground2, colorPaletteGreenBackground3, colorPaletteGreenBorder1, colorPaletteGreenBorder2, colorPaletteGreenBorderActive, colorPaletteGreenForeground1, colorPaletteGreenForeground2, colorPaletteGreenForeground3, colorPaletteLavenderBackground2, colorPaletteLavenderBorderActive, colorPaletteLavenderForeground2, colorPaletteLightGreenBackground1, colorPaletteLightGreenBackground2, colorPaletteLightGreenBackground3, colorPaletteLightGreenBorder1, colorPaletteLightGreenBorder2, colorPaletteLightGreenBorderActive, colorPaletteLightGreenForeground1, colorPaletteLightGreenForeground2, colorPaletteLightGreenForeground3, colorPaletteLightTealBackground2, colorPaletteLightTealBorderActive, colorPaletteLightTealForeground2, colorPaletteLilacBackground2, colorPaletteLilacBorderActive, colorPaletteLilacForeground2, colorPaletteMagentaBackground2, colorPaletteMagentaBorderActive, colorPaletteMagentaForeground2, colorPaletteMarigoldBackground1, colorPaletteMarigoldBackground2, colorPaletteMarigoldBackground3, colorPaletteMarigoldBorder1, colorPaletteMarigoldBorder2, colorPaletteMarigoldBorderActive, colorPaletteMarigoldForeground1, colorPaletteMarigoldForeground2, colorPaletteMarigoldForeground3, colorPaletteMinkBackground2, colorPaletteMinkBorderActive, colorPaletteMinkForeground2, colorPaletteNavyBackground2, colorPaletteNavyBorderActive, colorPaletteNavyForeground2, colorPalettePeachBackground2, colorPalettePeachBorderActive, colorPalettePeachForeground2, colorPalettePinkBackground2, colorPalettePinkBorderActive, colorPalettePinkForeground2, colorPalettePlatinumBackground2, colorPalettePlatinumBorderActive, colorPalettePlatinumForeground2, colorPalettePlumBackground2, colorPalettePlumBorderActive, colorPalettePlumForeground2, colorPalettePumpkinBackground2, colorPalettePumpkinBorderActive, colorPalettePumpkinForeground2, colorPalettePurpleBackground2, colorPalettePurpleBorderActive, colorPalettePurpleForeground2, colorPaletteRedBackground1, colorPaletteRedBackground2, colorPaletteRedBackground3, colorPaletteRedBorder1, colorPaletteRedBorder2, colorPaletteRedBorderActive, colorPaletteRedForeground1, colorPaletteRedForeground2, colorPaletteRedForeground3, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueBorderActive, colorPaletteRoyalBlueForeground2, colorPaletteSeafoamBackground2, colorPaletteSeafoamBorderActive, colorPaletteSeafoamForeground2, colorPaletteSteelBackground2, colorPaletteSteelBorderActive, colorPaletteSteelForeground2, colorPaletteTealBackground2, colorPaletteTealBorderActive, colorPaletteTealForeground2, colorPaletteYellowBackground1, colorPaletteYellowBackground2, colorPaletteYellowBackground3, colorPaletteYellowBorder1, colorPaletteYellowBorder2, colorPaletteYellowBorderActive, colorPaletteYellowForeground1, colorPaletteYellowForeground2, colorPaletteYellowForeground3, colorScrollbarOverlay, colorStrokeFocus1, colorStrokeFocus2, colorSubtleBackground, colorSubtleBackgroundHover, colorSubtleBackgroundInverted, colorSubtleBackgroundInvertedHover, colorSubtleBackgroundInvertedPressed, colorSubtleBackgroundInvertedSelected, colorSubtleBackgroundLightAlphaHover, colorSubtleBackgroundLightAlphaPressed, colorSubtleBackgroundLightAlphaSelected, colorSubtleBackgroundPressed, colorSubtleBackgroundSelected, colorTransparentBackground, colorTransparentBackgroundHover, colorTransparentBackgroundPressed, colorTransparentBackgroundSelected, colorTransparentStroke, colorTransparentStrokeDisabled, colorTransparentStrokeInteractive, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEase, curveEasyEaseMax, curveLinear, durationFast, durationFaster, durationNormal, durationSlow, durationSlower, durationUltraFast, durationUltraSlow, fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero1000, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontWeightBold, fontWeightMedium, fontWeightRegular, fontWeightSemibold, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero1000, lineHeightHero700, lineHeightHero800, lineHeightHero900, setTheme, shadow16, shadow16Brand, shadow2, shadow28, shadow28Brand, shadow2Brand, shadow4, shadow4Brand, shadow64, shadow64Brand, shadow8, shadow8Brand, spacingHorizontalL, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalNone, spacingHorizontalS, spacingHorizontalSNudge, spacingHorizontalXL, spacingHorizontalXS, spacingHorizontalXXL, spacingHorizontalXXS, spacingHorizontalXXXL, spacingVerticalL, spacingVerticalM, spacingVerticalMNudge, spacingVerticalNone, spacingVerticalS, spacingVerticalSNudge, spacingVerticalXL, spacingVerticalXS, spacingVerticalXXL, spacingVerticalXXS, spacingVerticalXXXL, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, strokeWidthThin };
|
|
6908
|
+
export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, Badge, BadgeAppearance, BadgeColor, definition$5 as BadgeDefinition, BadgeShape, BadgeSize, styles$5 as BadgeStyles, template$5 as BadgeTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$4 as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$4 as CounterBadgeStyles, template$4 as CounterBadgeTemplate, ProgressBar, definition$3 as ProgressBarDefinition, ProgressBarShape, styles$3 as ProgressBarStyles, template$3 as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Spinner, SpinnerAppearance, definition$2 as SpinnerDefinition, SpinnerSize, styles$2 as SpinnerStyles, template$2 as SpinnerTemplate, Switch, SwitchLabelPosition, Text, TextAlign, definition as TextDefinition, TextFont, TextSize, styles as TextStyles, template as TextTemplate, TextWeight, definition$7 as accordionDefinition, definition$6 as accordionItemDefinition, styles$6 as accordionItemStyles, template$6 as accordionItemTemplate, styles$7 as accordionStyles, template$7 as accordionTemplate, borderRadiusCircular, borderRadiusLarge, borderRadiusMedium, borderRadiusNone, borderRadiusSmall, borderRadiusXLarge, colorBackgroundOverlay, colorBrandBackground, colorBrandBackground2, colorBrandBackgroundHover, colorBrandBackgroundInverted, colorBrandBackgroundInvertedHover, colorBrandBackgroundInvertedPressed, colorBrandBackgroundInvertedSelected, colorBrandBackgroundPressed, colorBrandBackgroundSelected, colorBrandBackgroundStatic, colorBrandForeground1, colorBrandForeground2, colorBrandForegroundInverted, colorBrandForegroundInvertedHover, colorBrandForegroundInvertedPressed, colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorBrandForegroundLinkSelected, colorBrandForegroundOnLight, colorBrandForegroundOnLightHover, colorBrandForegroundOnLightPressed, colorBrandForegroundOnLightSelected, colorBrandShadowAmbient, colorBrandShadowKey, colorBrandStroke1, colorBrandStroke2, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorCompoundBrandForeground1, colorCompoundBrandForeground1Hover, colorCompoundBrandForeground1Pressed, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralBackground1, colorNeutralBackground1Hover, colorNeutralBackground1Pressed, colorNeutralBackground1Selected, colorNeutralBackground2, colorNeutralBackground2Hover, colorNeutralBackground2Pressed, colorNeutralBackground2Selected, colorNeutralBackground3, colorNeutralBackground3Hover, colorNeutralBackground3Pressed, colorNeutralBackground3Selected, colorNeutralBackground4, colorNeutralBackground4Hover, colorNeutralBackground4Pressed, colorNeutralBackground4Selected, colorNeutralBackground5, colorNeutralBackground5Hover, colorNeutralBackground5Pressed, colorNeutralBackground5Selected, colorNeutralBackground6, colorNeutralBackgroundDisabled, colorNeutralBackgroundInverted, colorNeutralBackgroundInvertedDisabled, colorNeutralBackgroundStatic, colorNeutralForeground1, colorNeutralForeground1Hover, colorNeutralForeground1Pressed, colorNeutralForeground1Selected, colorNeutralForeground1Static, colorNeutralForeground2, colorNeutralForeground2BrandHover, colorNeutralForeground2BrandPressed, colorNeutralForeground2BrandSelected, colorNeutralForeground2Hover, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, colorNeutralForeground2LinkSelected, colorNeutralForeground2Pressed, colorNeutralForeground2Selected, colorNeutralForeground3, colorNeutralForeground3BrandHover, colorNeutralForeground3BrandPressed, colorNeutralForeground3BrandSelected, colorNeutralForeground3Hover, colorNeutralForeground3Pressed, colorNeutralForeground3Selected, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInverted, colorNeutralForegroundInverted2, colorNeutralForegroundInvertedDisabled, colorNeutralForegroundInvertedHover, colorNeutralForegroundInvertedLink, colorNeutralForegroundInvertedLinkHover, colorNeutralForegroundInvertedLinkPressed, colorNeutralForegroundInvertedLinkSelected, colorNeutralForegroundInvertedPressed, colorNeutralForegroundInvertedSelected, colorNeutralForegroundOnBrand, colorNeutralForegroundStaticInverted, colorNeutralShadowAmbient, colorNeutralShadowAmbientDarker, colorNeutralShadowAmbientLighter, colorNeutralShadowKey, colorNeutralShadowKeyDarker, colorNeutralShadowKeyLighter, colorNeutralStencil1, colorNeutralStencil2, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStroke1Selected, colorNeutralStroke2, colorNeutralStroke3, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeAccessibleSelected, colorNeutralStrokeDisabled, colorNeutralStrokeInvertedDisabled, colorNeutralStrokeOnBrand, colorNeutralStrokeOnBrand2, colorNeutralStrokeOnBrand2Hover, colorNeutralStrokeOnBrand2Pressed, colorNeutralStrokeOnBrand2Selected, colorPaletteAnchorBackground2, colorPaletteAnchorBorderActive, colorPaletteAnchorForeground2, colorPaletteBeigeBackground2, colorPaletteBeigeBorderActive, colorPaletteBeigeForeground2, colorPaletteBerryBackground1, colorPaletteBerryBackground2, colorPaletteBerryBackground3, colorPaletteBerryBorder1, colorPaletteBerryBorder2, colorPaletteBerryBorderActive, colorPaletteBerryForeground1, colorPaletteBerryForeground2, colorPaletteBerryForeground3, colorPaletteBlueBackground2, colorPaletteBlueBorderActive, colorPaletteBlueForeground2, colorPaletteBrassBackground2, colorPaletteBrassBorderActive, colorPaletteBrassForeground2, colorPaletteBrownBackground2, colorPaletteBrownBorderActive, colorPaletteBrownForeground2, colorPaletteCornflowerBackground2, colorPaletteCornflowerBorderActive, colorPaletteCornflowerForeground2, colorPaletteCranberryBackground2, colorPaletteCranberryBorderActive, colorPaletteCranberryForeground2, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenBorderActive, colorPaletteDarkGreenForeground2, colorPaletteDarkOrangeBackground1, colorPaletteDarkOrangeBackground2, colorPaletteDarkOrangeBackground3, colorPaletteDarkOrangeBorder1, colorPaletteDarkOrangeBorder2, colorPaletteDarkOrangeBorderActive, colorPaletteDarkOrangeForeground1, colorPaletteDarkOrangeForeground2, colorPaletteDarkOrangeForeground3, colorPaletteDarkRedBackground2, colorPaletteDarkRedBorderActive, colorPaletteDarkRedForeground2, colorPaletteForestBackground2, colorPaletteForestBorderActive, colorPaletteForestForeground2, colorPaletteGoldBackground2, colorPaletteGoldBorderActive, colorPaletteGoldForeground2, colorPaletteGrapeBackground2, colorPaletteGrapeBorderActive, colorPaletteGrapeForeground2, colorPaletteGreenBackground1, colorPaletteGreenBackground2, colorPaletteGreenBackground3, colorPaletteGreenBorder1, colorPaletteGreenBorder2, colorPaletteGreenBorderActive, colorPaletteGreenForeground1, colorPaletteGreenForeground2, colorPaletteGreenForeground3, colorPaletteLavenderBackground2, colorPaletteLavenderBorderActive, colorPaletteLavenderForeground2, colorPaletteLightGreenBackground1, colorPaletteLightGreenBackground2, colorPaletteLightGreenBackground3, colorPaletteLightGreenBorder1, colorPaletteLightGreenBorder2, colorPaletteLightGreenBorderActive, colorPaletteLightGreenForeground1, colorPaletteLightGreenForeground2, colorPaletteLightGreenForeground3, colorPaletteLightTealBackground2, colorPaletteLightTealBorderActive, colorPaletteLightTealForeground2, colorPaletteLilacBackground2, colorPaletteLilacBorderActive, colorPaletteLilacForeground2, colorPaletteMagentaBackground2, colorPaletteMagentaBorderActive, colorPaletteMagentaForeground2, colorPaletteMarigoldBackground1, colorPaletteMarigoldBackground2, colorPaletteMarigoldBackground3, colorPaletteMarigoldBorder1, colorPaletteMarigoldBorder2, colorPaletteMarigoldBorderActive, colorPaletteMarigoldForeground1, colorPaletteMarigoldForeground2, colorPaletteMarigoldForeground3, colorPaletteMinkBackground2, colorPaletteMinkBorderActive, colorPaletteMinkForeground2, colorPaletteNavyBackground2, colorPaletteNavyBorderActive, colorPaletteNavyForeground2, colorPalettePeachBackground2, colorPalettePeachBorderActive, colorPalettePeachForeground2, colorPalettePinkBackground2, colorPalettePinkBorderActive, colorPalettePinkForeground2, colorPalettePlatinumBackground2, colorPalettePlatinumBorderActive, colorPalettePlatinumForeground2, colorPalettePlumBackground2, colorPalettePlumBorderActive, colorPalettePlumForeground2, colorPalettePumpkinBackground2, colorPalettePumpkinBorderActive, colorPalettePumpkinForeground2, colorPalettePurpleBackground2, colorPalettePurpleBorderActive, colorPalettePurpleForeground2, colorPaletteRedBackground1, colorPaletteRedBackground2, colorPaletteRedBackground3, colorPaletteRedBorder1, colorPaletteRedBorder2, colorPaletteRedBorderActive, colorPaletteRedForeground1, colorPaletteRedForeground2, colorPaletteRedForeground3, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueBorderActive, colorPaletteRoyalBlueForeground2, colorPaletteSeafoamBackground2, colorPaletteSeafoamBorderActive, colorPaletteSeafoamForeground2, colorPaletteSteelBackground2, colorPaletteSteelBorderActive, colorPaletteSteelForeground2, colorPaletteTealBackground2, colorPaletteTealBorderActive, colorPaletteTealForeground2, colorPaletteYellowBackground1, colorPaletteYellowBackground2, colorPaletteYellowBackground3, colorPaletteYellowBorder1, colorPaletteYellowBorder2, colorPaletteYellowBorderActive, colorPaletteYellowForeground1, colorPaletteYellowForeground2, colorPaletteYellowForeground3, colorScrollbarOverlay, colorStrokeFocus1, colorStrokeFocus2, colorSubtleBackground, colorSubtleBackgroundHover, colorSubtleBackgroundInverted, colorSubtleBackgroundInvertedHover, colorSubtleBackgroundInvertedPressed, colorSubtleBackgroundInvertedSelected, colorSubtleBackgroundLightAlphaHover, colorSubtleBackgroundLightAlphaPressed, colorSubtleBackgroundLightAlphaSelected, colorSubtleBackgroundPressed, colorSubtleBackgroundSelected, colorTransparentBackground, colorTransparentBackgroundHover, colorTransparentBackgroundPressed, colorTransparentBackgroundSelected, colorTransparentStroke, colorTransparentStrokeDisabled, colorTransparentStrokeInteractive, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEase, curveEasyEaseMax, curveLinear, definition$1 as definition, durationFast, durationFaster, durationNormal, durationSlow, durationSlower, durationUltraFast, durationUltraSlow, fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero1000, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontWeightBold, fontWeightMedium, fontWeightRegular, fontWeightSemibold, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero1000, lineHeightHero700, lineHeightHero800, lineHeightHero900, setTheme, shadow16, shadow16Brand, shadow2, shadow28, shadow28Brand, shadow2Brand, shadow4, shadow4Brand, shadow64, shadow64Brand, shadow8, shadow8Brand, spacingHorizontalL, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalNone, spacingHorizontalS, spacingHorizontalSNudge, spacingHorizontalXL, spacingHorizontalXS, spacingHorizontalXXL, spacingHorizontalXXS, spacingHorizontalXXXL, spacingVerticalL, spacingVerticalM, spacingVerticalMNudge, spacingVerticalNone, spacingVerticalS, spacingVerticalSNudge, spacingVerticalXL, spacingVerticalXS, spacingVerticalXXL, spacingVerticalXXS, spacingVerticalXXXL, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, strokeWidthThin, styles$1 as switchStyles, template$1 as switchTemplate };
|