@fluentui/web-components 3.1.4 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -2
- package/custom-elements.json +1439 -2728
- package/dist/esm/accordion-item/accordion-item.d.ts +4 -25
- package/dist/esm/accordion-item/accordion-item.js +4 -22
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.css +3 -11
- package/dist/esm/accordion-item/accordion-item.styles.js +3 -11
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.d.ts +5 -57
- package/dist/esm/anchor-button/anchor-button.js +5 -59
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/avatar/avatar.d.ts +5 -28
- package/dist/esm/avatar/avatar.js +4 -9
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/badge/badge.d.ts +5 -34
- package/dist/esm/badge/badge.js +6 -35
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/button/button.d.ts +5 -33
- package/dist/esm/button/button.js +5 -25
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/checkbox/checkbox.d.ts +3 -17
- package/dist/esm/checkbox/checkbox.js +4 -7
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/divider/divider.d.ts +4 -19
- package/dist/esm/divider/divider.js +4 -11
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/drawer/drawer.d.ts +4 -16
- package/dist/esm/drawer/drawer.js +4 -22
- package/dist/esm/drawer/drawer.js.map +1 -1
- package/dist/esm/drawer/drawer.template.html +0 -2
- package/dist/esm/drawer/drawer.template.js +0 -2
- package/dist/esm/drawer/drawer.template.js.map +1 -1
- package/dist/esm/dropdown/dropdown.base.js +1 -1
- package/dist/esm/dropdown/dropdown.base.js.map +1 -1
- package/dist/esm/dropdown/dropdown.d.ts +3 -16
- package/dist/esm/dropdown/dropdown.js +3 -20
- package/dist/esm/dropdown/dropdown.js.map +1 -1
- package/dist/esm/dropdown/dropdown.options.d.ts +4 -4
- package/dist/esm/dropdown/dropdown.options.js.map +1 -1
- package/dist/esm/dropdown/dropdown.styles.css +28 -14
- package/dist/esm/dropdown/dropdown.styles.js +28 -14
- package/dist/esm/dropdown/dropdown.styles.js.map +1 -1
- package/dist/esm/field/field.d.ts +2 -9
- package/dist/esm/field/field.js +2 -17
- package/dist/esm/field/field.js.map +1 -1
- package/dist/esm/field/field.styles.css +3 -5
- package/dist/esm/field/field.styles.js +2 -5
- package/dist/esm/field/field.styles.js.map +1 -1
- package/dist/esm/image/image.d.ts +6 -41
- package/dist/esm/image/image.js +7 -17
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/label/label.d.ts +4 -25
- package/dist/esm/label/label.js +4 -17
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/link/link.d.ts +3 -20
- package/dist/esm/link/link.js +3 -22
- package/dist/esm/link/link.js.map +1 -1
- package/dist/esm/menu/menu.d.ts +1 -6
- package/dist/esm/menu/menu.js +1 -4
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu-item/menu-item.styles.css +16 -2
- package/dist/esm/menu-item/menu-item.styles.js +17 -3
- package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
- package/dist/esm/menu-list/menu-list.styles.css +1 -48
- package/dist/esm/menu-list/menu-list.styles.js +1 -48
- package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
- package/dist/esm/message-bar/message-bar.d.ts +3 -25
- package/dist/esm/message-bar/message-bar.js +4 -11
- package/dist/esm/message-bar/message-bar.js.map +1 -1
- package/dist/esm/option/option.d.ts +2 -14
- package/dist/esm/option/option.js +2 -19
- package/dist/esm/option/option.js.map +1 -1
- package/dist/esm/option/option.styles.css +1 -1
- package/dist/esm/option/option.styles.js +2 -2
- package/dist/esm/option/option.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.base.d.ts +2 -16
- package/dist/esm/progress-bar/progress-bar.base.js +2 -22
- package/dist/esm/progress-bar/progress-bar.base.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.d.ts +2 -20
- package/dist/esm/progress-bar/progress-bar.js +2 -8
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/rating-display/rating-display.d.ts +4 -27
- package/dist/esm/rating-display/rating-display.js +4 -22
- package/dist/esm/rating-display/rating-display.js.map +1 -1
- package/dist/esm/slider/slider.d.ts +2 -8
- package/dist/esm/slider/slider.js +1 -3
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/spinner/spinner.d.ts +3 -16
- package/dist/esm/spinner/spinner.js +3 -8
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/tablist/tablist.d.ts +2 -12
- package/dist/esm/tablist/tablist.js +2 -17
- package/dist/esm/tablist/tablist.js.map +1 -1
- package/dist/esm/text/text.d.ts +10 -84
- package/dist/esm/text/text.js +11 -82
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text-input/text-input.d.ts +2 -17
- package/dist/esm/text-input/text-input.js +2 -8
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/textarea/textarea.base.d.ts +3 -18
- package/dist/esm/textarea/textarea.base.js +5 -30
- package/dist/esm/textarea/textarea.base.js.map +1 -1
- package/dist/esm/textarea/textarea.d.ts +3 -17
- package/dist/esm/textarea/textarea.js +14 -28
- package/dist/esm/textarea/textarea.js.map +1 -1
- package/dist/web-components-all.js +415 -890
- package/dist/web-components-all.min.js +15 -15
- package/dist/web-components.d.ts +91 -600
- package/dist/web-components.js +418 -969
- package/dist/web-components.min.js +15 -15
- package/package.json +2 -2
|
@@ -5100,7 +5100,7 @@ const zIndexFloating = "var(--zIndexFloating)";
|
|
|
5100
5100
|
const zIndexPriority = "var(--zIndexPriority)";
|
|
5101
5101
|
const zIndexDebug = "var(--zIndexDebug)";
|
|
5102
5102
|
|
|
5103
|
-
const styles$F = css`${display("block")} :host{max-width:fit-content;contain:content;color:${colorNeutralForeground1}}.heading{height:44px;display:grid;position:relative;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${colorTransparentBackground};border:none;box-sizing:border-box;color:inherit;cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${spacingHorizontalS};grid-column:1/span 1;grid-row:1}.content{margin:0 ${spacingHorizontalM}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){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([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1;color:currentColor}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:
|
|
5103
|
+
const styles$F = css`${display("block")} :host{max-width:fit-content;contain:content;color:${colorNeutralForeground1}}.heading{height:44px;display:grid;position:relative;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${colorTransparentBackground};border:none;box-sizing:border-box;color:inherit;cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${spacingHorizontalS};grid-column:1/span 1;grid-row:1}.content{margin:0 ${spacingHorizontalM}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){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([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1;color:currentColor}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:3;padding-inline-start:${spacingHorizontalS};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto 1fr auto;padding-inline:${spacingHorizontalM}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${spacingHorizontalMNudge} ${spacingHorizontalM}}`;
|
|
5104
5104
|
|
|
5105
5105
|
function staticallyCompose(item) {
|
|
5106
5106
|
if (!item) {
|
|
@@ -5159,14 +5159,14 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
5159
5159
|
});
|
|
5160
5160
|
}
|
|
5161
5161
|
|
|
5162
|
-
var __defProp$
|
|
5163
|
-
var __getOwnPropDesc$
|
|
5164
|
-
var __decorateClass$
|
|
5165
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5162
|
+
var __defProp$z = Object.defineProperty;
|
|
5163
|
+
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
5164
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
5165
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
5166
5166
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5167
5167
|
if (decorator = decorators[i])
|
|
5168
5168
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5169
|
-
if (kind && result) __defProp$
|
|
5169
|
+
if (kind && result) __defProp$z(target, key, result);
|
|
5170
5170
|
return result;
|
|
5171
5171
|
};
|
|
5172
5172
|
class BaseAccordionItem extends FASTElement {
|
|
@@ -5183,48 +5183,25 @@ class BaseAccordionItem extends FASTElement {
|
|
|
5183
5183
|
this.disabled = false;
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
|
-
__decorateClass$
|
|
5186
|
+
__decorateClass$z([
|
|
5187
5187
|
attr({
|
|
5188
5188
|
attribute: "heading-level",
|
|
5189
5189
|
mode: "fromView",
|
|
5190
5190
|
converter: nullableNumberConverter
|
|
5191
5191
|
})
|
|
5192
5192
|
], BaseAccordionItem.prototype, "headinglevel", 2);
|
|
5193
|
-
__decorateClass$
|
|
5193
|
+
__decorateClass$z([
|
|
5194
5194
|
attr({ mode: "boolean" })
|
|
5195
5195
|
], BaseAccordionItem.prototype, "expanded", 2);
|
|
5196
|
-
__decorateClass$
|
|
5196
|
+
__decorateClass$z([
|
|
5197
5197
|
attr({ mode: "boolean" })
|
|
5198
5198
|
], BaseAccordionItem.prototype, "disabled", 2);
|
|
5199
|
-
__decorateClass$
|
|
5199
|
+
__decorateClass$z([
|
|
5200
5200
|
observable
|
|
5201
5201
|
], BaseAccordionItem.prototype, "expandbutton", 2);
|
|
5202
5202
|
|
|
5203
|
-
var __defProp$O = Object.defineProperty;
|
|
5204
|
-
var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
|
|
5205
|
-
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
5206
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
|
|
5207
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5208
|
-
if (decorator = decorators[i])
|
|
5209
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5210
|
-
if (kind && result) __defProp$O(target, key, result);
|
|
5211
|
-
return result;
|
|
5212
|
-
};
|
|
5213
5203
|
class AccordionItem extends BaseAccordionItem {
|
|
5214
|
-
constructor() {
|
|
5215
|
-
super(...arguments);
|
|
5216
|
-
this.block = false;
|
|
5217
|
-
}
|
|
5218
5204
|
}
|
|
5219
|
-
__decorateClass$O([
|
|
5220
|
-
attr
|
|
5221
|
-
], AccordionItem.prototype, "size", 2);
|
|
5222
|
-
__decorateClass$O([
|
|
5223
|
-
attr({ attribute: "marker-position" })
|
|
5224
|
-
], AccordionItem.prototype, "markerPosition", 2);
|
|
5225
|
-
__decorateClass$O([
|
|
5226
|
-
attr({ mode: "boolean" })
|
|
5227
|
-
], AccordionItem.prototype, "block", 2);
|
|
5228
5205
|
applyMixins(AccordionItem, StartEnd);
|
|
5229
5206
|
|
|
5230
5207
|
AccordionItem.define(definition$F);
|
|
@@ -5280,14 +5257,14 @@ function waitForConnectedDescendants(target, callback, options) {
|
|
|
5280
5257
|
scheduleCheck();
|
|
5281
5258
|
}
|
|
5282
5259
|
|
|
5283
|
-
var __defProp$
|
|
5284
|
-
var __getOwnPropDesc$
|
|
5285
|
-
var __decorateClass$
|
|
5286
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5260
|
+
var __defProp$y = Object.defineProperty;
|
|
5261
|
+
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
5262
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
5263
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
5287
5264
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5288
5265
|
if (decorator = decorators[i])
|
|
5289
5266
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5290
|
-
if (kind && result) __defProp$
|
|
5267
|
+
if (kind && result) __defProp$y(target, key, result);
|
|
5291
5268
|
return result;
|
|
5292
5269
|
};
|
|
5293
5270
|
class Accordion extends FASTElement {
|
|
@@ -5432,10 +5409,10 @@ class Accordion extends FASTElement {
|
|
|
5432
5409
|
this.setItems();
|
|
5433
5410
|
}
|
|
5434
5411
|
}
|
|
5435
|
-
__decorateClass$
|
|
5412
|
+
__decorateClass$y([
|
|
5436
5413
|
attr({ attribute: "expand-mode" })
|
|
5437
5414
|
], Accordion.prototype, "expandmode", 2);
|
|
5438
|
-
__decorateClass$
|
|
5415
|
+
__decorateClass$y([
|
|
5439
5416
|
observable
|
|
5440
5417
|
], Accordion.prototype, "slottedAccordionItems", 2);
|
|
5441
5418
|
|
|
@@ -5508,55 +5485,14 @@ const definition$D = {
|
|
|
5508
5485
|
template: template$D
|
|
5509
5486
|
};
|
|
5510
5487
|
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
const statesMap = /* @__PURE__ */ new Map();
|
|
5516
|
-
function stateSelector(state) {
|
|
5517
|
-
return statesMap.get(state) ?? statesMap.set(state, CustomStatesSetSupported ? `:state(${state})` : `[state--${state}]`).get(state);
|
|
5518
|
-
}
|
|
5519
|
-
function toggleState(elementInternals, state, force) {
|
|
5520
|
-
if (!state || !elementInternals) {
|
|
5521
|
-
return;
|
|
5522
|
-
}
|
|
5523
|
-
if (!CustomStatesSetSupported) {
|
|
5524
|
-
elementInternals.shadowRoot.host.toggleAttribute(`state--${state}`, force);
|
|
5525
|
-
return;
|
|
5526
|
-
}
|
|
5527
|
-
if (force ?? !elementInternals.states.has(state)) {
|
|
5528
|
-
elementInternals.states.add(state);
|
|
5529
|
-
return;
|
|
5530
|
-
}
|
|
5531
|
-
elementInternals.states.delete(state);
|
|
5532
|
-
}
|
|
5533
|
-
const matchingStateMap = /* @__PURE__ */ new WeakMap();
|
|
5534
|
-
function hasMatchingState(States, state) {
|
|
5535
|
-
if (!States || !state) {
|
|
5536
|
-
return false;
|
|
5537
|
-
}
|
|
5538
|
-
if (matchingStateMap.has(States)) {
|
|
5539
|
-
return matchingStateMap.get(States).has(state);
|
|
5540
|
-
}
|
|
5541
|
-
const stateSet = new Set(Object.values(States));
|
|
5542
|
-
matchingStateMap.set(States, stateSet);
|
|
5543
|
-
return stateSet.has(state);
|
|
5544
|
-
}
|
|
5545
|
-
function swapStates(elementInternals, prev = "", next = "", States, prefix = "") {
|
|
5546
|
-
toggleState(elementInternals, `${prefix}${prev}`, false);
|
|
5547
|
-
if (!States || hasMatchingState(States, next)) {
|
|
5548
|
-
toggleState(elementInternals, `${prefix}${next}`, true);
|
|
5549
|
-
}
|
|
5550
|
-
}
|
|
5551
|
-
|
|
5552
|
-
var __defProp$M = Object.defineProperty;
|
|
5553
|
-
var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
|
|
5554
|
-
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
5555
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
|
|
5488
|
+
var __defProp$x = Object.defineProperty;
|
|
5489
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
5490
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
5491
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
5556
5492
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5557
5493
|
if (decorator = decorators[i])
|
|
5558
5494
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5559
|
-
if (kind && result) __defProp$
|
|
5495
|
+
if (kind && result) __defProp$x(target, key, result);
|
|
5560
5496
|
return result;
|
|
5561
5497
|
};
|
|
5562
5498
|
class BaseAnchor extends FASTElement {
|
|
@@ -5668,91 +5604,33 @@ class BaseAnchor extends FASTElement {
|
|
|
5668
5604
|
return proxy;
|
|
5669
5605
|
}
|
|
5670
5606
|
}
|
|
5671
|
-
__decorateClass$
|
|
5607
|
+
__decorateClass$x([
|
|
5672
5608
|
attr
|
|
5673
5609
|
], BaseAnchor.prototype, "download", 2);
|
|
5674
|
-
__decorateClass$
|
|
5610
|
+
__decorateClass$x([
|
|
5675
5611
|
attr
|
|
5676
5612
|
], BaseAnchor.prototype, "href", 2);
|
|
5677
|
-
__decorateClass$
|
|
5613
|
+
__decorateClass$x([
|
|
5678
5614
|
attr
|
|
5679
5615
|
], BaseAnchor.prototype, "hreflang", 2);
|
|
5680
|
-
__decorateClass$
|
|
5616
|
+
__decorateClass$x([
|
|
5681
5617
|
attr
|
|
5682
5618
|
], BaseAnchor.prototype, "ping", 2);
|
|
5683
|
-
__decorateClass$
|
|
5619
|
+
__decorateClass$x([
|
|
5684
5620
|
attr
|
|
5685
5621
|
], BaseAnchor.prototype, "referrerpolicy", 2);
|
|
5686
|
-
__decorateClass$
|
|
5622
|
+
__decorateClass$x([
|
|
5687
5623
|
attr
|
|
5688
5624
|
], BaseAnchor.prototype, "rel", 2);
|
|
5689
|
-
__decorateClass$
|
|
5625
|
+
__decorateClass$x([
|
|
5690
5626
|
attr
|
|
5691
5627
|
], BaseAnchor.prototype, "target", 2);
|
|
5692
|
-
__decorateClass$
|
|
5628
|
+
__decorateClass$x([
|
|
5693
5629
|
attr
|
|
5694
5630
|
], BaseAnchor.prototype, "type", 2);
|
|
5695
5631
|
|
|
5696
|
-
var __defProp$L = Object.defineProperty;
|
|
5697
|
-
var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
|
|
5698
|
-
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
5699
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
|
|
5700
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5701
|
-
if (decorator = decorators[i])
|
|
5702
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5703
|
-
if (kind && result) __defProp$L(target, key, result);
|
|
5704
|
-
return result;
|
|
5705
|
-
};
|
|
5706
5632
|
class AnchorButton extends BaseAnchor {
|
|
5707
|
-
constructor() {
|
|
5708
|
-
super(...arguments);
|
|
5709
|
-
this.iconOnly = false;
|
|
5710
|
-
}
|
|
5711
|
-
/**
|
|
5712
|
-
* Handles changes to appearance attribute custom states
|
|
5713
|
-
* @param prev - the previous state
|
|
5714
|
-
* @param next - the next state
|
|
5715
|
-
*/
|
|
5716
|
-
appearanceChanged(prev, next) {
|
|
5717
|
-
swapStates(this.elementInternals, prev, next, AnchorButtonAppearance);
|
|
5718
|
-
}
|
|
5719
|
-
/**
|
|
5720
|
-
* Handles changes to shape attribute custom states
|
|
5721
|
-
* @param prev - the previous state
|
|
5722
|
-
* @param next - the next state
|
|
5723
|
-
*/
|
|
5724
|
-
shapeChanged(prev, next) {
|
|
5725
|
-
swapStates(this.elementInternals, prev, next, AnchorButtonShape);
|
|
5726
|
-
}
|
|
5727
|
-
/**
|
|
5728
|
-
* Handles changes to size attribute custom states
|
|
5729
|
-
* @param prev - the previous state
|
|
5730
|
-
* @param next - the next state
|
|
5731
|
-
*/
|
|
5732
|
-
sizeChanged(prev, next) {
|
|
5733
|
-
swapStates(this.elementInternals, prev, next, AnchorButtonSize);
|
|
5734
|
-
}
|
|
5735
|
-
/**
|
|
5736
|
-
* Handles changes to icon only custom states
|
|
5737
|
-
* @param prev - the previous state
|
|
5738
|
-
* @param next - the next state
|
|
5739
|
-
*/
|
|
5740
|
-
iconOnlyChanged(prev, next) {
|
|
5741
|
-
toggleState(this.elementInternals, "icon", !!next);
|
|
5742
|
-
}
|
|
5743
5633
|
}
|
|
5744
|
-
__decorateClass$L([
|
|
5745
|
-
attr
|
|
5746
|
-
], AnchorButton.prototype, "appearance", 2);
|
|
5747
|
-
__decorateClass$L([
|
|
5748
|
-
attr
|
|
5749
|
-
], AnchorButton.prototype, "shape", 2);
|
|
5750
|
-
__decorateClass$L([
|
|
5751
|
-
attr
|
|
5752
|
-
], AnchorButton.prototype, "size", 2);
|
|
5753
|
-
__decorateClass$L([
|
|
5754
|
-
attr({ attribute: "icon-only", mode: "boolean" })
|
|
5755
|
-
], AnchorButton.prototype, "iconOnly", 2);
|
|
5756
5634
|
applyMixins(AnchorButton, StartEnd);
|
|
5757
5635
|
|
|
5758
5636
|
AnchorButton.define(definition$D);
|
|
@@ -5893,14 +5771,14 @@ function getInitials(displayName, isRtl, options) {
|
|
|
5893
5771
|
return getInitialsLatin(displayName, isRtl, options?.firstInitialOnly);
|
|
5894
5772
|
}
|
|
5895
5773
|
|
|
5896
|
-
var __defProp$
|
|
5897
|
-
var __getOwnPropDesc$
|
|
5898
|
-
var __decorateClass$
|
|
5899
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5774
|
+
var __defProp$w = Object.defineProperty;
|
|
5775
|
+
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
5776
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
5777
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
5900
5778
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5901
5779
|
if (decorator = decorators[i])
|
|
5902
5780
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5903
|
-
if (kind && result) __defProp$
|
|
5781
|
+
if (kind && result) __defProp$w(target, key, result);
|
|
5904
5782
|
return result;
|
|
5905
5783
|
};
|
|
5906
5784
|
class BaseAvatar extends FASTElement {
|
|
@@ -6009,30 +5887,30 @@ class BaseAvatar extends FASTElement {
|
|
|
6009
5887
|
}
|
|
6010
5888
|
}
|
|
6011
5889
|
}
|
|
6012
|
-
__decorateClass$
|
|
5890
|
+
__decorateClass$w([
|
|
6013
5891
|
observable
|
|
6014
5892
|
], BaseAvatar.prototype, "defaultSlot", 2);
|
|
6015
|
-
__decorateClass$
|
|
5893
|
+
__decorateClass$w([
|
|
6016
5894
|
observable
|
|
6017
5895
|
], BaseAvatar.prototype, "monogram", 2);
|
|
6018
|
-
__decorateClass$
|
|
5896
|
+
__decorateClass$w([
|
|
6019
5897
|
observable
|
|
6020
5898
|
], BaseAvatar.prototype, "slottedDefaults", 2);
|
|
6021
|
-
__decorateClass$
|
|
5899
|
+
__decorateClass$w([
|
|
6022
5900
|
attr
|
|
6023
5901
|
], BaseAvatar.prototype, "name", 2);
|
|
6024
|
-
__decorateClass$
|
|
5902
|
+
__decorateClass$w([
|
|
6025
5903
|
attr
|
|
6026
5904
|
], BaseAvatar.prototype, "initials", 2);
|
|
6027
5905
|
|
|
6028
|
-
var __defProp$
|
|
6029
|
-
var __getOwnPropDesc$
|
|
6030
|
-
var __decorateClass$
|
|
6031
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5906
|
+
var __defProp$v = Object.defineProperty;
|
|
5907
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
5908
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
5909
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
6032
5910
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6033
5911
|
if (decorator = decorators[i])
|
|
6034
5912
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6035
|
-
if (kind && result) __defProp$
|
|
5913
|
+
if (kind && result) __defProp$v(target, key, result);
|
|
6036
5914
|
return result;
|
|
6037
5915
|
};
|
|
6038
5916
|
const _Avatar = class _Avatar extends BaseAvatar {
|
|
@@ -6087,22 +5965,13 @@ const _Avatar = class _Avatar extends BaseAvatar {
|
|
|
6087
5965
|
* An array of the available Avatar named colors
|
|
6088
5966
|
*/
|
|
6089
5967
|
_Avatar.colors = Object.values(AvatarNamedColor);
|
|
6090
|
-
__decorateClass$
|
|
6091
|
-
attr
|
|
6092
|
-
], _Avatar.prototype, "active", 2);
|
|
6093
|
-
__decorateClass$J([
|
|
6094
|
-
attr
|
|
6095
|
-
], _Avatar.prototype, "shape", 2);
|
|
6096
|
-
__decorateClass$J([
|
|
6097
|
-
attr
|
|
6098
|
-
], _Avatar.prototype, "appearance", 2);
|
|
6099
|
-
__decorateClass$J([
|
|
5968
|
+
__decorateClass$v([
|
|
6100
5969
|
attr({ converter: nullableNumberConverter })
|
|
6101
5970
|
], _Avatar.prototype, "size", 2);
|
|
6102
|
-
__decorateClass$
|
|
5971
|
+
__decorateClass$v([
|
|
6103
5972
|
attr
|
|
6104
5973
|
], _Avatar.prototype, "color", 2);
|
|
6105
|
-
__decorateClass$
|
|
5974
|
+
__decorateClass$v([
|
|
6106
5975
|
attr({ attribute: "color-id" })
|
|
6107
5976
|
], _Avatar.prototype, "colorId", 2);
|
|
6108
5977
|
let Avatar = _Avatar;
|
|
@@ -6170,35 +6039,8 @@ const definition$B = {
|
|
|
6170
6039
|
template: template$B
|
|
6171
6040
|
};
|
|
6172
6041
|
|
|
6173
|
-
var __defProp$I = Object.defineProperty;
|
|
6174
|
-
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
6175
|
-
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
6176
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
6177
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6178
|
-
if (decorator = decorators[i])
|
|
6179
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6180
|
-
if (kind && result) __defProp$I(target, key, result);
|
|
6181
|
-
return result;
|
|
6182
|
-
};
|
|
6183
6042
|
class Badge extends FASTElement {
|
|
6184
|
-
constructor() {
|
|
6185
|
-
super(...arguments);
|
|
6186
|
-
this.appearance = BadgeAppearance.filled;
|
|
6187
|
-
this.color = BadgeColor.brand;
|
|
6188
|
-
}
|
|
6189
6043
|
}
|
|
6190
|
-
__decorateClass$I([
|
|
6191
|
-
attr
|
|
6192
|
-
], Badge.prototype, "appearance", 2);
|
|
6193
|
-
__decorateClass$I([
|
|
6194
|
-
attr
|
|
6195
|
-
], Badge.prototype, "color", 2);
|
|
6196
|
-
__decorateClass$I([
|
|
6197
|
-
attr
|
|
6198
|
-
], Badge.prototype, "shape", 2);
|
|
6199
|
-
__decorateClass$I([
|
|
6200
|
-
attr
|
|
6201
|
-
], Badge.prototype, "size", 2);
|
|
6202
6044
|
applyMixins(Badge, StartEnd);
|
|
6203
6045
|
|
|
6204
6046
|
Badge.define(definition$B);
|
|
@@ -6225,14 +6067,14 @@ function maybeSetAutoFocus(element) {
|
|
|
6225
6067
|
}
|
|
6226
6068
|
}
|
|
6227
6069
|
|
|
6228
|
-
var __defProp$
|
|
6229
|
-
var __getOwnPropDesc$
|
|
6230
|
-
var __decorateClass$
|
|
6231
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6070
|
+
var __defProp$u = Object.defineProperty;
|
|
6071
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
6072
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
6073
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
6232
6074
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6233
6075
|
if (decorator = decorators[i])
|
|
6234
6076
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6235
|
-
if (kind && result) __defProp$
|
|
6077
|
+
if (kind && result) __defProp$u(target, key, result);
|
|
6236
6078
|
return result;
|
|
6237
6079
|
};
|
|
6238
6080
|
class BaseButton extends FASTElement {
|
|
@@ -6458,71 +6300,45 @@ class BaseButton extends FASTElement {
|
|
|
6458
6300
|
* @public
|
|
6459
6301
|
*/
|
|
6460
6302
|
BaseButton.formAssociated = true;
|
|
6461
|
-
__decorateClass$
|
|
6303
|
+
__decorateClass$u([
|
|
6462
6304
|
observable
|
|
6463
6305
|
], BaseButton.prototype, "defaultSlottedContent", 2);
|
|
6464
|
-
__decorateClass$
|
|
6306
|
+
__decorateClass$u([
|
|
6465
6307
|
attr({ mode: "boolean" })
|
|
6466
6308
|
], BaseButton.prototype, "disabled", 2);
|
|
6467
|
-
__decorateClass$
|
|
6309
|
+
__decorateClass$u([
|
|
6468
6310
|
attr({ attribute: "disabled-focusable", mode: "boolean" })
|
|
6469
6311
|
], BaseButton.prototype, "disabledFocusable", 2);
|
|
6470
|
-
__decorateClass$
|
|
6312
|
+
__decorateClass$u([
|
|
6471
6313
|
attr({ attribute: "formaction" })
|
|
6472
6314
|
], BaseButton.prototype, "formAction", 2);
|
|
6473
|
-
__decorateClass$
|
|
6315
|
+
__decorateClass$u([
|
|
6474
6316
|
attr({ attribute: "form" })
|
|
6475
6317
|
], BaseButton.prototype, "formAttribute", 2);
|
|
6476
|
-
__decorateClass$
|
|
6318
|
+
__decorateClass$u([
|
|
6477
6319
|
attr({ attribute: "formenctype" })
|
|
6478
6320
|
], BaseButton.prototype, "formEnctype", 2);
|
|
6479
|
-
__decorateClass$
|
|
6321
|
+
__decorateClass$u([
|
|
6480
6322
|
attr({ attribute: "formmethod" })
|
|
6481
6323
|
], BaseButton.prototype, "formMethod", 2);
|
|
6482
|
-
__decorateClass$
|
|
6324
|
+
__decorateClass$u([
|
|
6483
6325
|
attr({ attribute: "formnovalidate", mode: "boolean" })
|
|
6484
6326
|
], BaseButton.prototype, "formNoValidate", 2);
|
|
6485
|
-
__decorateClass$
|
|
6327
|
+
__decorateClass$u([
|
|
6486
6328
|
attr({ attribute: "formtarget" })
|
|
6487
6329
|
], BaseButton.prototype, "formTarget", 2);
|
|
6488
|
-
__decorateClass$
|
|
6330
|
+
__decorateClass$u([
|
|
6489
6331
|
attr
|
|
6490
6332
|
], BaseButton.prototype, "name", 2);
|
|
6491
|
-
__decorateClass$
|
|
6333
|
+
__decorateClass$u([
|
|
6492
6334
|
attr
|
|
6493
6335
|
], BaseButton.prototype, "type", 2);
|
|
6494
|
-
__decorateClass$
|
|
6336
|
+
__decorateClass$u([
|
|
6495
6337
|
attr
|
|
6496
6338
|
], BaseButton.prototype, "value", 2);
|
|
6497
6339
|
|
|
6498
|
-
var __defProp$G = Object.defineProperty;
|
|
6499
|
-
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6500
|
-
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
6501
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
6502
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6503
|
-
if (decorator = decorators[i])
|
|
6504
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6505
|
-
if (kind && result) __defProp$G(target, key, result);
|
|
6506
|
-
return result;
|
|
6507
|
-
};
|
|
6508
6340
|
class Button extends BaseButton {
|
|
6509
|
-
constructor() {
|
|
6510
|
-
super(...arguments);
|
|
6511
|
-
this.iconOnly = false;
|
|
6512
|
-
}
|
|
6513
6341
|
}
|
|
6514
|
-
__decorateClass$G([
|
|
6515
|
-
attr
|
|
6516
|
-
], Button.prototype, "appearance", 2);
|
|
6517
|
-
__decorateClass$G([
|
|
6518
|
-
attr
|
|
6519
|
-
], Button.prototype, "shape", 2);
|
|
6520
|
-
__decorateClass$G([
|
|
6521
|
-
attr
|
|
6522
|
-
], Button.prototype, "size", 2);
|
|
6523
|
-
__decorateClass$G([
|
|
6524
|
-
attr({ attribute: "icon-only", mode: "boolean" })
|
|
6525
|
-
], Button.prototype, "iconOnly", 2);
|
|
6526
6342
|
applyMixins(Button, StartEnd);
|
|
6527
6343
|
|
|
6528
6344
|
Button.define(definition$A);
|
|
@@ -6537,7 +6353,48 @@ const CheckboxSize = {
|
|
|
6537
6353
|
};
|
|
6538
6354
|
const tagName$z = `${FluentDesignSystem.prefix}-checkbox`;
|
|
6539
6355
|
|
|
6540
|
-
const
|
|
6356
|
+
const AnchorPositioningCSSSupported = CSS.supports("anchor-name: --a");
|
|
6357
|
+
const AnchorPositioningHTMLSupported = "anchor" in HTMLElement.prototype;
|
|
6358
|
+
const CustomStatesSetSupported = CSS.supports("selector(:state(g))");
|
|
6359
|
+
|
|
6360
|
+
const statesMap = /* @__PURE__ */ new Map();
|
|
6361
|
+
function stateSelector(state) {
|
|
6362
|
+
return statesMap.get(state) ?? statesMap.set(state, CustomStatesSetSupported ? `:state(${state})` : `[state--${state}]`).get(state);
|
|
6363
|
+
}
|
|
6364
|
+
function toggleState(elementInternals, state, force) {
|
|
6365
|
+
if (!state || !elementInternals) {
|
|
6366
|
+
return;
|
|
6367
|
+
}
|
|
6368
|
+
if (!CustomStatesSetSupported) {
|
|
6369
|
+
elementInternals.shadowRoot.host.toggleAttribute(`state--${state}`, force);
|
|
6370
|
+
return;
|
|
6371
|
+
}
|
|
6372
|
+
if (force ?? !elementInternals.states.has(state)) {
|
|
6373
|
+
elementInternals.states.add(state);
|
|
6374
|
+
return;
|
|
6375
|
+
}
|
|
6376
|
+
elementInternals.states.delete(state);
|
|
6377
|
+
}
|
|
6378
|
+
const matchingStateMap = /* @__PURE__ */ new WeakMap();
|
|
6379
|
+
function hasMatchingState(States, state) {
|
|
6380
|
+
if (!States || !state) {
|
|
6381
|
+
return false;
|
|
6382
|
+
}
|
|
6383
|
+
if (matchingStateMap.has(States)) {
|
|
6384
|
+
return matchingStateMap.get(States).has(state);
|
|
6385
|
+
}
|
|
6386
|
+
const stateSet = new Set(Object.values(States));
|
|
6387
|
+
matchingStateMap.set(States, stateSet);
|
|
6388
|
+
return stateSet.has(state);
|
|
6389
|
+
}
|
|
6390
|
+
function swapStates(elementInternals, prev = "", next = "", States, prefix = "") {
|
|
6391
|
+
toggleState(elementInternals, `${prefix}${prev}`, false);
|
|
6392
|
+
if (!States || hasMatchingState(States, next)) {
|
|
6393
|
+
toggleState(elementInternals, `${prefix}${next}`, true);
|
|
6394
|
+
}
|
|
6395
|
+
}
|
|
6396
|
+
|
|
6397
|
+
stateSelector("active");
|
|
6541
6398
|
const badInputState = stateSelector("bad-input");
|
|
6542
6399
|
const checkedState = stateSelector("checked");
|
|
6543
6400
|
const customErrorState = stateSelector("custom-error");
|
|
@@ -6592,14 +6449,14 @@ const definition$z = {
|
|
|
6592
6449
|
template: template$z
|
|
6593
6450
|
};
|
|
6594
6451
|
|
|
6595
|
-
var __defProp$
|
|
6596
|
-
var __getOwnPropDesc$
|
|
6597
|
-
var __decorateClass$
|
|
6598
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6452
|
+
var __defProp$t = Object.defineProperty;
|
|
6453
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
6454
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
6455
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
6599
6456
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6600
6457
|
if (decorator = decorators[i])
|
|
6601
6458
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6602
|
-
if (kind && result) __defProp$
|
|
6459
|
+
if (kind && result) __defProp$t(target, key, result);
|
|
6603
6460
|
return result;
|
|
6604
6461
|
};
|
|
6605
6462
|
class BaseCheckbox extends FASTElement {
|
|
@@ -6952,36 +6809,36 @@ class BaseCheckbox extends FASTElement {
|
|
|
6952
6809
|
* @public
|
|
6953
6810
|
*/
|
|
6954
6811
|
BaseCheckbox.formAssociated = true;
|
|
6955
|
-
__decorateClass$
|
|
6812
|
+
__decorateClass$t([
|
|
6956
6813
|
observable
|
|
6957
6814
|
], BaseCheckbox.prototype, "disabled", 2);
|
|
6958
|
-
__decorateClass$
|
|
6815
|
+
__decorateClass$t([
|
|
6959
6816
|
attr({ attribute: "disabled", mode: "boolean" })
|
|
6960
6817
|
], BaseCheckbox.prototype, "disabledAttribute", 2);
|
|
6961
|
-
__decorateClass$
|
|
6818
|
+
__decorateClass$t([
|
|
6962
6819
|
attr({ attribute: "form" })
|
|
6963
6820
|
], BaseCheckbox.prototype, "formAttribute", 2);
|
|
6964
|
-
__decorateClass$
|
|
6821
|
+
__decorateClass$t([
|
|
6965
6822
|
attr({ attribute: "checked", mode: "boolean" })
|
|
6966
6823
|
], BaseCheckbox.prototype, "initialChecked", 2);
|
|
6967
|
-
__decorateClass$
|
|
6824
|
+
__decorateClass$t([
|
|
6968
6825
|
attr({ attribute: "value", mode: "fromView" })
|
|
6969
6826
|
], BaseCheckbox.prototype, "initialValue", 2);
|
|
6970
|
-
__decorateClass$
|
|
6827
|
+
__decorateClass$t([
|
|
6971
6828
|
attr
|
|
6972
6829
|
], BaseCheckbox.prototype, "name", 2);
|
|
6973
|
-
__decorateClass$
|
|
6830
|
+
__decorateClass$t([
|
|
6974
6831
|
attr({ mode: "boolean" })
|
|
6975
6832
|
], BaseCheckbox.prototype, "required", 2);
|
|
6976
6833
|
|
|
6977
|
-
var __defProp$
|
|
6978
|
-
var __getOwnPropDesc$
|
|
6979
|
-
var __decorateClass$
|
|
6980
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6834
|
+
var __defProp$s = Object.defineProperty;
|
|
6835
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
6836
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
6837
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
6981
6838
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6982
6839
|
if (decorator = decorators[i])
|
|
6983
6840
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6984
|
-
if (kind && result) __defProp$
|
|
6841
|
+
if (kind && result) __defProp$s(target, key, result);
|
|
6985
6842
|
return result;
|
|
6986
6843
|
};
|
|
6987
6844
|
class Checkbox extends BaseCheckbox {
|
|
@@ -7024,15 +6881,9 @@ class Checkbox extends BaseCheckbox {
|
|
|
7024
6881
|
super.toggleChecked(force);
|
|
7025
6882
|
}
|
|
7026
6883
|
}
|
|
7027
|
-
__decorateClass$
|
|
6884
|
+
__decorateClass$s([
|
|
7028
6885
|
observable
|
|
7029
6886
|
], Checkbox.prototype, "indeterminate", 2);
|
|
7030
|
-
__decorateClass$E([
|
|
7031
|
-
attr
|
|
7032
|
-
], Checkbox.prototype, "shape", 2);
|
|
7033
|
-
__decorateClass$E([
|
|
7034
|
-
attr
|
|
7035
|
-
], Checkbox.prototype, "size", 2);
|
|
7036
6887
|
|
|
7037
6888
|
Checkbox.define(definition$z);
|
|
7038
6889
|
|
|
@@ -7102,14 +6953,14 @@ const definition$x = {
|
|
|
7102
6953
|
template: template$x
|
|
7103
6954
|
};
|
|
7104
6955
|
|
|
7105
|
-
var __defProp$
|
|
7106
|
-
var __getOwnPropDesc$
|
|
7107
|
-
var __decorateClass$
|
|
7108
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6956
|
+
var __defProp$r = Object.defineProperty;
|
|
6957
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
6958
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
6959
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
7109
6960
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7110
6961
|
if (decorator = decorators[i])
|
|
7111
6962
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7112
|
-
if (kind && result) __defProp$
|
|
6963
|
+
if (kind && result) __defProp$r(target, key, result);
|
|
7113
6964
|
return result;
|
|
7114
6965
|
};
|
|
7115
6966
|
class BaseCounterBadge extends FASTElement {
|
|
@@ -7137,44 +6988,44 @@ class BaseCounterBadge extends FASTElement {
|
|
|
7137
6988
|
return `${count}`;
|
|
7138
6989
|
}
|
|
7139
6990
|
}
|
|
7140
|
-
__decorateClass$
|
|
6991
|
+
__decorateClass$r([
|
|
7141
6992
|
attr({ converter: nullableNumberConverter })
|
|
7142
6993
|
], BaseCounterBadge.prototype, "count", 2);
|
|
7143
|
-
__decorateClass$
|
|
6994
|
+
__decorateClass$r([
|
|
7144
6995
|
attr({ attribute: "overflow-count", converter: nullableNumberConverter })
|
|
7145
6996
|
], BaseCounterBadge.prototype, "overflowCount", 2);
|
|
7146
|
-
__decorateClass$
|
|
6997
|
+
__decorateClass$r([
|
|
7147
6998
|
attr({ attribute: "show-zero", mode: "boolean" })
|
|
7148
6999
|
], BaseCounterBadge.prototype, "showZero", 2);
|
|
7149
|
-
__decorateClass$
|
|
7000
|
+
__decorateClass$r([
|
|
7150
7001
|
attr({ mode: "boolean" })
|
|
7151
7002
|
], BaseCounterBadge.prototype, "dot", 2);
|
|
7152
|
-
__decorateClass$
|
|
7003
|
+
__decorateClass$r([
|
|
7153
7004
|
volatile
|
|
7154
7005
|
], BaseCounterBadge.prototype, "displayValue", 1);
|
|
7155
7006
|
|
|
7156
|
-
var __defProp$
|
|
7157
|
-
var __getOwnPropDesc$
|
|
7158
|
-
var __decorateClass$
|
|
7159
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7007
|
+
var __defProp$q = Object.defineProperty;
|
|
7008
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
7009
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
7010
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
7160
7011
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7161
7012
|
if (decorator = decorators[i])
|
|
7162
7013
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7163
|
-
if (kind && result) __defProp$
|
|
7014
|
+
if (kind && result) __defProp$q(target, key, result);
|
|
7164
7015
|
return result;
|
|
7165
7016
|
};
|
|
7166
7017
|
class CounterBadge extends BaseCounterBadge {
|
|
7167
7018
|
}
|
|
7168
|
-
__decorateClass$
|
|
7019
|
+
__decorateClass$q([
|
|
7169
7020
|
attr
|
|
7170
7021
|
], CounterBadge.prototype, "appearance", 2);
|
|
7171
|
-
__decorateClass$
|
|
7022
|
+
__decorateClass$q([
|
|
7172
7023
|
attr
|
|
7173
7024
|
], CounterBadge.prototype, "color", 2);
|
|
7174
|
-
__decorateClass$
|
|
7025
|
+
__decorateClass$q([
|
|
7175
7026
|
attr
|
|
7176
7027
|
], CounterBadge.prototype, "shape", 2);
|
|
7177
|
-
__decorateClass$
|
|
7028
|
+
__decorateClass$q([
|
|
7178
7029
|
attr
|
|
7179
7030
|
], CounterBadge.prototype, "size", 2);
|
|
7180
7031
|
applyMixins(CounterBadge, StartEnd);
|
|
@@ -7205,14 +7056,14 @@ const definition$w = {
|
|
|
7205
7056
|
template: template$w
|
|
7206
7057
|
};
|
|
7207
7058
|
|
|
7208
|
-
var __defProp$
|
|
7209
|
-
var __getOwnPropDesc$
|
|
7210
|
-
var __decorateClass$
|
|
7211
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7059
|
+
var __defProp$p = Object.defineProperty;
|
|
7060
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
7061
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
7062
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
7212
7063
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7213
7064
|
if (decorator = decorators[i])
|
|
7214
7065
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7215
|
-
if (kind && result) __defProp$
|
|
7066
|
+
if (kind && result) __defProp$p(target, key, result);
|
|
7216
7067
|
return result;
|
|
7217
7068
|
};
|
|
7218
7069
|
class Dialog extends FASTElement {
|
|
@@ -7315,34 +7166,34 @@ class Dialog extends FASTElement {
|
|
|
7315
7166
|
return true;
|
|
7316
7167
|
}
|
|
7317
7168
|
}
|
|
7318
|
-
__decorateClass$
|
|
7169
|
+
__decorateClass$p([
|
|
7319
7170
|
observable
|
|
7320
7171
|
], Dialog.prototype, "dialog", 2);
|
|
7321
|
-
__decorateClass$
|
|
7172
|
+
__decorateClass$p([
|
|
7322
7173
|
attr({ attribute: "aria-describedby" })
|
|
7323
7174
|
], Dialog.prototype, "ariaDescribedby", 2);
|
|
7324
|
-
__decorateClass$
|
|
7175
|
+
__decorateClass$p([
|
|
7325
7176
|
attr({ attribute: "aria-labelledby" })
|
|
7326
7177
|
], Dialog.prototype, "ariaLabelledby", 2);
|
|
7327
|
-
__decorateClass$
|
|
7178
|
+
__decorateClass$p([
|
|
7328
7179
|
attr({ attribute: "aria-label" })
|
|
7329
7180
|
], Dialog.prototype, "ariaLabel", 2);
|
|
7330
|
-
__decorateClass$
|
|
7181
|
+
__decorateClass$p([
|
|
7331
7182
|
attr
|
|
7332
7183
|
], Dialog.prototype, "type", 2);
|
|
7333
|
-
__decorateClass$
|
|
7184
|
+
__decorateClass$p([
|
|
7334
7185
|
volatile
|
|
7335
7186
|
], Dialog.prototype, "dialogDescribedby", 1);
|
|
7336
|
-
__decorateClass$
|
|
7187
|
+
__decorateClass$p([
|
|
7337
7188
|
volatile
|
|
7338
7189
|
], Dialog.prototype, "dialogLabel", 1);
|
|
7339
|
-
__decorateClass$
|
|
7190
|
+
__decorateClass$p([
|
|
7340
7191
|
volatile
|
|
7341
7192
|
], Dialog.prototype, "dialogLabelledby", 1);
|
|
7342
|
-
__decorateClass$
|
|
7193
|
+
__decorateClass$p([
|
|
7343
7194
|
volatile
|
|
7344
7195
|
], Dialog.prototype, "dialogModal", 1);
|
|
7345
|
-
__decorateClass$
|
|
7196
|
+
__decorateClass$p([
|
|
7346
7197
|
volatile
|
|
7347
7198
|
], Dialog.prototype, "dialogRole", 1);
|
|
7348
7199
|
|
|
@@ -7423,14 +7274,14 @@ const definition$u = {
|
|
|
7423
7274
|
template: template$u
|
|
7424
7275
|
};
|
|
7425
7276
|
|
|
7426
|
-
var __defProp$
|
|
7427
|
-
var __getOwnPropDesc$
|
|
7428
|
-
var __decorateClass$
|
|
7429
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7277
|
+
var __defProp$o = Object.defineProperty;
|
|
7278
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
7279
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
7280
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
7430
7281
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7431
7282
|
if (decorator = decorators[i])
|
|
7432
7283
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7433
|
-
if (kind && result) __defProp$
|
|
7284
|
+
if (kind && result) __defProp$o(target, key, result);
|
|
7434
7285
|
return result;
|
|
7435
7286
|
};
|
|
7436
7287
|
class BaseDivider extends FASTElement {
|
|
@@ -7477,34 +7328,15 @@ class BaseDivider extends FASTElement {
|
|
|
7477
7328
|
swapStates(this.elementInternals, previous, next, DividerOrientation);
|
|
7478
7329
|
}
|
|
7479
7330
|
}
|
|
7480
|
-
__decorateClass$
|
|
7331
|
+
__decorateClass$o([
|
|
7481
7332
|
attr
|
|
7482
7333
|
], BaseDivider.prototype, "role", 2);
|
|
7483
|
-
__decorateClass$
|
|
7334
|
+
__decorateClass$o([
|
|
7484
7335
|
attr
|
|
7485
7336
|
], BaseDivider.prototype, "orientation", 2);
|
|
7486
7337
|
|
|
7487
|
-
var __defProp$z = Object.defineProperty;
|
|
7488
|
-
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
7489
|
-
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
7490
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
7491
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7492
|
-
if (decorator = decorators[i])
|
|
7493
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7494
|
-
if (kind && result) __defProp$z(target, key, result);
|
|
7495
|
-
return result;
|
|
7496
|
-
};
|
|
7497
7338
|
class Divider extends BaseDivider {
|
|
7498
7339
|
}
|
|
7499
|
-
__decorateClass$z([
|
|
7500
|
-
attr({ attribute: "align-content" })
|
|
7501
|
-
], Divider.prototype, "alignContent", 2);
|
|
7502
|
-
__decorateClass$z([
|
|
7503
|
-
attr
|
|
7504
|
-
], Divider.prototype, "appearance", 2);
|
|
7505
|
-
__decorateClass$z([
|
|
7506
|
-
attr({ mode: "boolean" })
|
|
7507
|
-
], Divider.prototype, "inset", 2);
|
|
7508
7340
|
|
|
7509
7341
|
Divider.define(definition$u);
|
|
7510
7342
|
|
|
@@ -7528,7 +7360,7 @@ const tagName$t = `${FluentDesignSystem.prefix}-drawer`;
|
|
|
7528
7360
|
const styles$t = css`${display("block")} :host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{background:${colorNeutralBackground1};border-radius:0;border:${strokeWidthThin} solid ${colorTransparentStroke};border-inline-end-color:${colorTransparentStroke};border-inline-start-color:var(--drawer-separator,${colorTransparentStroke});box-shadow:${shadow64};box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};height:100%;line-height:${lineHeightBase300};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${spacingHorizontalXXL});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${curveAccelerateMid}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${curveAccelerateMid}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};background:var(--dialog-backdrop,${colorBackgroundOverlay});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${curveLinear}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;
|
|
7529
7361
|
|
|
7530
7362
|
function drawerTemplate() {
|
|
7531
|
-
return html`<dialog class=dialog part=dialog aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} aria-modal=${(x) => x.dialogModal} role=${(x) => x.dialogRole}
|
|
7363
|
+
return html`<dialog class=dialog part=dialog aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} aria-modal=${(x) => x.dialogModal} role=${(x) => x.dialogRole} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.cancelHandler()} ${ref("dialog")}><slot></slot></dialog>`;
|
|
7532
7364
|
}
|
|
7533
7365
|
const template$t = drawerTemplate();
|
|
7534
7366
|
|
|
@@ -7539,21 +7371,19 @@ const definition$t = {
|
|
|
7539
7371
|
template: template$t
|
|
7540
7372
|
};
|
|
7541
7373
|
|
|
7542
|
-
var __defProp$
|
|
7543
|
-
var __getOwnPropDesc$
|
|
7544
|
-
var __decorateClass$
|
|
7545
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7374
|
+
var __defProp$n = Object.defineProperty;
|
|
7375
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
7376
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
7377
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
7546
7378
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7547
7379
|
if (decorator = decorators[i])
|
|
7548
7380
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7549
|
-
if (kind && result) __defProp$
|
|
7381
|
+
if (kind && result) __defProp$n(target, key, result);
|
|
7550
7382
|
return result;
|
|
7551
7383
|
};
|
|
7552
7384
|
class Drawer extends FASTElement {
|
|
7553
7385
|
constructor() {
|
|
7554
7386
|
super(...arguments);
|
|
7555
|
-
this.position = DrawerPosition.start;
|
|
7556
|
-
this.size = DrawerSize.medium;
|
|
7557
7387
|
/**
|
|
7558
7388
|
* Method to emit an event after the dialog's open state changes
|
|
7559
7389
|
* HTML spec proposal: https://github.com/whatwg/html/issues/9733
|
|
@@ -7659,40 +7489,34 @@ class Drawer extends FASTElement {
|
|
|
7659
7489
|
this.hide();
|
|
7660
7490
|
}
|
|
7661
7491
|
}
|
|
7662
|
-
__decorateClass$
|
|
7492
|
+
__decorateClass$n([
|
|
7663
7493
|
attr
|
|
7664
7494
|
], Drawer.prototype, "type", 2);
|
|
7665
|
-
__decorateClass$
|
|
7495
|
+
__decorateClass$n([
|
|
7666
7496
|
attr({ attribute: "aria-labelledby" })
|
|
7667
7497
|
], Drawer.prototype, "ariaLabelledby", 2);
|
|
7668
|
-
__decorateClass$
|
|
7498
|
+
__decorateClass$n([
|
|
7669
7499
|
attr({ attribute: "aria-describedby" })
|
|
7670
7500
|
], Drawer.prototype, "ariaDescribedby", 2);
|
|
7671
|
-
__decorateClass$
|
|
7672
|
-
attr
|
|
7673
|
-
], Drawer.prototype, "position", 2);
|
|
7674
|
-
__decorateClass$y([
|
|
7501
|
+
__decorateClass$n([
|
|
7675
7502
|
observable
|
|
7676
7503
|
], Drawer.prototype, "role", 2);
|
|
7677
|
-
__decorateClass$
|
|
7678
|
-
attr({ attribute: "size" })
|
|
7679
|
-
], Drawer.prototype, "size", 2);
|
|
7680
|
-
__decorateClass$y([
|
|
7504
|
+
__decorateClass$n([
|
|
7681
7505
|
observable
|
|
7682
7506
|
], Drawer.prototype, "dialog", 2);
|
|
7683
|
-
__decorateClass$
|
|
7507
|
+
__decorateClass$n([
|
|
7684
7508
|
volatile
|
|
7685
7509
|
], Drawer.prototype, "dialogDescribedby", 1);
|
|
7686
|
-
__decorateClass$
|
|
7510
|
+
__decorateClass$n([
|
|
7687
7511
|
volatile
|
|
7688
7512
|
], Drawer.prototype, "dialogLabel", 1);
|
|
7689
|
-
__decorateClass$
|
|
7513
|
+
__decorateClass$n([
|
|
7690
7514
|
volatile
|
|
7691
7515
|
], Drawer.prototype, "dialogLabelledby", 1);
|
|
7692
|
-
__decorateClass$
|
|
7516
|
+
__decorateClass$n([
|
|
7693
7517
|
volatile
|
|
7694
7518
|
], Drawer.prototype, "dialogModal", 1);
|
|
7695
|
-
__decorateClass$
|
|
7519
|
+
__decorateClass$n([
|
|
7696
7520
|
volatile
|
|
7697
7521
|
], Drawer.prototype, "dialogRole", 1);
|
|
7698
7522
|
|
|
@@ -7776,7 +7600,7 @@ const DropdownType = {
|
|
|
7776
7600
|
};
|
|
7777
7601
|
const tagName$r = `${FluentDesignSystem.prefix}-dropdown`;
|
|
7778
7602
|
|
|
7779
|
-
const styles$r = css`${display("inline-flex")} :host{--_indicator-size:20px;--_placeholder-color:${colorNeutralForeground4};--_initial-display:attr(initial-display raw-string,attr(placeholder raw-string,none));box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:var(--_placeholder-color)}.control{appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-grid;grid-template-columns:1fr var(--_indicator-size);justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host([size='small']) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host([size='large']) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}:host(:not(:has([slot='control']))) slot[name='control']::before{content:var(--_initial-display)}@scope{:scope:not(:has([slot='control'])) slot[name='control']::before{content:var(--_initial-display)}}:host(:is(:not([value]),[value=''])) slot[name='control']::before{color:var(--_placeholder-color)}::slotted(:is(input,button)){all:unset}slot[name='control']::before,::slotted(:is(input,button)){grid-area:1/1}::slotted(button){cursor:pointer}::slotted(input){cursor:text;min-width:0;width:100%}::slotted(input)::placeholder{color:var(--_placeholder-color)}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;grid-area:1/2;justify-content:center;width:var(--_indicator-size)}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(:focus-within)) .control{border-radius:${borderRadiusMedium};box-shadow:inset 0 0 0 1px ${colorStrokeFocus1};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host(
|
|
7603
|
+
const styles$r = css`${display("inline-flex")} :host{--_indicator-size:20px;--_placeholder-color:${colorNeutralForeground4};--_initial-display:attr(initial-display raw-string,attr(placeholder raw-string,none));box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:var(--_placeholder-color)}.control{--control-border-color:${colorNeutralStroke1};appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-grid;grid-template-columns:1fr var(--_indicator-size);justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host([size='small']) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host([size='large']) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}:host(:not(:has([slot='control']))) slot[name='control']::before{content:var(--_initial-display)}@scope{:scope:not(:has([slot='control'])) slot[name='control']::before{content:var(--_initial-display)}}:host(:is(:not([value]),[value=''])) slot[name='control']::before{color:var(--_placeholder-color)}::slotted(:is(input,button)){all:unset}slot[name='control']::before,::slotted(:is(input,button)){grid-area:1/1}::slotted(button){cursor:pointer}::slotted(input){cursor:text;min-width:0;width:100%}::slotted(input)::placeholder{color:var(--_placeholder-color)}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;grid-area:1/2;justify-content:center;width:var(--_indicator-size)}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{background-color:${colorNeutralStrokeAccessible};height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(:focus-within)) .control{border-radius:${borderRadiusMedium};box-shadow:inset 0 0 0 1px ${colorStrokeFocus1};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host([appearance='transparent']) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}.control:hover{--control-border-color:${colorNeutralStroke1Hover}}.control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}.control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}.control:active{--control-border-color:${colorNeutralStroke1Pressed}}.control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}.control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host([appearance='transparent']) .control:is(:hover,:active){--control-border-color:${colorTransparentStrokeInteractive}}:host([appearance='transparent']) .control:hover::after{background-color:${colorCompoundBrandStroke}}:host([appearance='filled-darker']) .control{background-color:${colorNeutralBackground3}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${colorTransparentStroke}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control:is(:hover,:active){--control-border-color:${colorTransparentStroke}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control::before{background-color:initial}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control:is(:hover,:active)::after{background-color:${colorCompoundBrandStroke}}:host(${nativeDisabledState}),:host(${nativeDisabledState}) ::slotted(:where(button,input)){cursor:not-allowed}:host(${nativeDisabledState}) .control::before,:host(${nativeDisabledState}) .control::after{content:none}:host(${nativeDisabledState}) .control:is(*,:active,:hover),:host(${nativeDisabledState}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin})}:host([size='small']){--margin-offset:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host([size='large']){--margin-offset:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}}@media (forced-colors:active){:host(${nativeDisabledState}) .control{border-color:GrayText}:host(${nativeDisabledState}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`;
|
|
7780
7604
|
|
|
7781
7605
|
const dropdownIndicatorTemplate = html`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${ref("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`;
|
|
7782
7606
|
const dropdownInputTemplate = html`<input @input=${(x, c) => x.inputHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-labelledby=${(x) => x.ariaLabelledBy} aria-expanded=${(x) => x.open} aria-haspopup=listbox size=1 placeholder=${(x) => x.placeholder} role=combobox ?disabled=${(x) => x.disabled} value=${(x) => x.initialValue} slot=control ${ref("control")}>`;
|
|
@@ -7829,14 +7653,14 @@ function uniqueId(prefix = "id-") {
|
|
|
7829
7653
|
return document.getElementById(str) ? uniqueId(prefix) : str;
|
|
7830
7654
|
}
|
|
7831
7655
|
|
|
7832
|
-
var __defProp$
|
|
7833
|
-
var __getOwnPropDesc$
|
|
7834
|
-
var __decorateClass$
|
|
7835
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7656
|
+
var __defProp$m = Object.defineProperty;
|
|
7657
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
7658
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
7659
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
7836
7660
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7837
7661
|
if (decorator = decorators[i])
|
|
7838
7662
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7839
|
-
if (kind && result) __defProp$
|
|
7663
|
+
if (kind && result) __defProp$m(target, key, result);
|
|
7840
7664
|
return result;
|
|
7841
7665
|
};
|
|
7842
7666
|
const _BaseDropdown = class _BaseDropdown extends FASTElement {
|
|
@@ -7911,7 +7735,7 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
|
|
|
7911
7735
|
if (typeof next === "number") {
|
|
7912
7736
|
const optionIndex = this.matches(":has(:focus-visible)") ? next : -1;
|
|
7913
7737
|
this.enabledOptions.forEach((option, index) => {
|
|
7914
|
-
option.active
|
|
7738
|
+
option.toggleAttribute("active", index === optionIndex);
|
|
7915
7739
|
});
|
|
7916
7740
|
if (this.open) {
|
|
7917
7741
|
this.enabledOptions[optionIndex]?.scrollIntoView({ block: "nearest" });
|
|
@@ -8623,81 +8447,61 @@ _BaseDropdown.elementIdentity = "dropdown";
|
|
|
8623
8447
|
* @public
|
|
8624
8448
|
*/
|
|
8625
8449
|
_BaseDropdown.formAssociated = true;
|
|
8626
|
-
__decorateClass$
|
|
8450
|
+
__decorateClass$m([
|
|
8627
8451
|
volatile
|
|
8628
8452
|
], _BaseDropdown.prototype, "activeDescendant", 1);
|
|
8629
|
-
__decorateClass$
|
|
8453
|
+
__decorateClass$m([
|
|
8630
8454
|
observable
|
|
8631
8455
|
], _BaseDropdown.prototype, "activeIndex", 2);
|
|
8632
|
-
__decorateClass$
|
|
8456
|
+
__decorateClass$m([
|
|
8633
8457
|
attr({ attribute: "aria-labelledby", mode: "fromView" })
|
|
8634
8458
|
], _BaseDropdown.prototype, "ariaLabelledBy", 2);
|
|
8635
|
-
__decorateClass$
|
|
8459
|
+
__decorateClass$m([
|
|
8636
8460
|
observable
|
|
8637
8461
|
], _BaseDropdown.prototype, "control", 2);
|
|
8638
|
-
__decorateClass$
|
|
8462
|
+
__decorateClass$m([
|
|
8639
8463
|
attr({ mode: "boolean" })
|
|
8640
8464
|
], _BaseDropdown.prototype, "disabled", 2);
|
|
8641
|
-
__decorateClass$
|
|
8465
|
+
__decorateClass$m([
|
|
8642
8466
|
volatile
|
|
8643
8467
|
], _BaseDropdown.prototype, "displayValue", 1);
|
|
8644
|
-
__decorateClass$
|
|
8468
|
+
__decorateClass$m([
|
|
8645
8469
|
attr({ attribute: "id" })
|
|
8646
8470
|
], _BaseDropdown.prototype, "id", 2);
|
|
8647
|
-
__decorateClass$
|
|
8471
|
+
__decorateClass$m([
|
|
8648
8472
|
observable
|
|
8649
8473
|
], _BaseDropdown.prototype, "indicator", 2);
|
|
8650
|
-
__decorateClass$
|
|
8474
|
+
__decorateClass$m([
|
|
8651
8475
|
observable
|
|
8652
8476
|
], _BaseDropdown.prototype, "indicatorSlot", 2);
|
|
8653
|
-
__decorateClass$
|
|
8477
|
+
__decorateClass$m([
|
|
8654
8478
|
attr({ attribute: "value", mode: "fromView" })
|
|
8655
8479
|
], _BaseDropdown.prototype, "initialValue", 2);
|
|
8656
|
-
__decorateClass$
|
|
8480
|
+
__decorateClass$m([
|
|
8657
8481
|
observable
|
|
8658
8482
|
], _BaseDropdown.prototype, "listbox", 2);
|
|
8659
|
-
__decorateClass$
|
|
8483
|
+
__decorateClass$m([
|
|
8660
8484
|
attr({ mode: "boolean" })
|
|
8661
8485
|
], _BaseDropdown.prototype, "multiple", 2);
|
|
8662
|
-
__decorateClass$
|
|
8486
|
+
__decorateClass$m([
|
|
8663
8487
|
attr
|
|
8664
8488
|
], _BaseDropdown.prototype, "name", 2);
|
|
8665
|
-
__decorateClass$
|
|
8489
|
+
__decorateClass$m([
|
|
8666
8490
|
observable
|
|
8667
8491
|
], _BaseDropdown.prototype, "open", 2);
|
|
8668
|
-
__decorateClass$
|
|
8492
|
+
__decorateClass$m([
|
|
8669
8493
|
attr
|
|
8670
8494
|
], _BaseDropdown.prototype, "placeholder", 2);
|
|
8671
|
-
__decorateClass$
|
|
8495
|
+
__decorateClass$m([
|
|
8672
8496
|
attr({ mode: "boolean" })
|
|
8673
8497
|
], _BaseDropdown.prototype, "required", 2);
|
|
8674
|
-
__decorateClass$
|
|
8498
|
+
__decorateClass$m([
|
|
8675
8499
|
attr
|
|
8676
8500
|
], _BaseDropdown.prototype, "type", 2);
|
|
8677
8501
|
let BaseDropdown = _BaseDropdown;
|
|
8678
8502
|
|
|
8679
|
-
var __defProp$w = Object.defineProperty;
|
|
8680
|
-
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
8681
|
-
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
8682
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
8683
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8684
|
-
if (decorator = decorators[i])
|
|
8685
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8686
|
-
if (kind && result) __defProp$w(target, key, result);
|
|
8687
|
-
return result;
|
|
8688
|
-
};
|
|
8689
8503
|
class Dropdown extends BaseDropdown {
|
|
8690
|
-
constructor() {
|
|
8691
|
-
super(...arguments);
|
|
8692
|
-
this.appearance = DropdownAppearance.outline;
|
|
8693
|
-
}
|
|
8694
8504
|
}
|
|
8695
|
-
__decorateClass$w([
|
|
8696
|
-
attr
|
|
8697
|
-
], Dropdown.prototype, "appearance", 2);
|
|
8698
|
-
__decorateClass$w([
|
|
8699
|
-
attr
|
|
8700
|
-
], Dropdown.prototype, "size", 2);
|
|
8701
8505
|
|
|
8702
8506
|
Dropdown.define(definition$r);
|
|
8703
8507
|
|
|
@@ -8721,7 +8525,7 @@ const ValidationFlags = {
|
|
|
8721
8525
|
};
|
|
8722
8526
|
const tagName$o = `${FluentDesignSystem.prefix}-field`;
|
|
8723
8527
|
|
|
8724
|
-
const styles$q = css`${display("inline-grid")} :host{color:${colorNeutralForeground1};align-items:center;gap:0 ${spacingHorizontalM};justify-items:start}:has([slot='message']){color:${colorNeutralForeground1};row-gap:${spacingVerticalS}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${spacingHorizontalM}}:host([label-position='
|
|
8528
|
+
const styles$q = css`${display("inline-grid")} :host{color:${colorNeutralForeground1};align-items:center;gap:0 ${spacingHorizontalM};justify-items:start;grid-template-areas:'label' 'input' 'message';row-gap:${spacingVerticalXXS}}:has([slot='message']){color:${colorNeutralForeground1};row-gap:${spacingVerticalS}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${spacingHorizontalM}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${spacingVerticalM}}:host(${requiredState}) ::slotted([slot='label'])::after{content:'*'/'';color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${colorNeutralForeground3};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};grid-area:message;line-height:${lineHeightBase200};margin-block-start:${spacingVerticalXXS}}:host(${focusVisibleState}:focus-within){border-radius:${borderRadiusMedium};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};grid-area:label;line-height:${lineHeightBase300};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) ::slotted(label){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${fontWeightSemibold}}:host(${disabledState}){cursor:default}::slotted([flag]){display:none}:host(${badInputState}) ::slotted([flag='${ValidationFlags.badInput}']),:host(${customErrorState}) ::slotted([flag='${ValidationFlags.customError}']),:host(${patternMismatchState}) ::slotted([flag='${ValidationFlags.patternMismatch}']),:host(${rangeOverflowState}) ::slotted([flag='${ValidationFlags.rangeOverflow}']),:host(${rangeUnderflowState}) ::slotted([flag='${ValidationFlags.rangeUnderflow}']),:host(${stepMismatchState}) ::slotted([flag='${ValidationFlags.stepMismatch}']),:host(${tooLongState}) ::slotted([flag='${ValidationFlags.tooLong}']),:host(${tooShortState}) ::slotted([flag='${ValidationFlags.tooShort}']),:host(${typeMismatchState}) ::slotted([flag='${ValidationFlags.typeMismatch}']),:host(${valueMissingState}) ::slotted([flag='${ValidationFlags.valueMissing}']),:host(${validState}) ::slotted([flag='${ValidationFlags.valid}']){display:block}`;
|
|
8725
8529
|
|
|
8726
8530
|
const template$q = html`<template @click=${(x, c) => x.clickHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @focusin=${(x, c) => x.focusinHandler(c.event)} @focusout=${(x, c) => x.focusoutHandler(c.event)}><slot name=label part=label ${slotted("labelSlot")}></slot><slot name=input part=input ${slotted("slottedInputs")}></slot><slot name=message part=message ${slotted({ property: "messageSlot", filter: elements("[flag]") })}></slot></template>`;
|
|
8727
8531
|
|
|
@@ -8735,14 +8539,14 @@ const definition$q = {
|
|
|
8735
8539
|
template: template$q
|
|
8736
8540
|
};
|
|
8737
8541
|
|
|
8738
|
-
var __defProp$
|
|
8739
|
-
var __getOwnPropDesc$
|
|
8740
|
-
var __decorateClass$
|
|
8741
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8542
|
+
var __defProp$l = Object.defineProperty;
|
|
8543
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
8544
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
8545
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
8742
8546
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8743
8547
|
if (decorator = decorators[i])
|
|
8744
8548
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8745
|
-
if (kind && result) __defProp$
|
|
8549
|
+
if (kind && result) __defProp$l(target, key, result);
|
|
8746
8550
|
return result;
|
|
8747
8551
|
};
|
|
8748
8552
|
class BaseField extends FASTElement {
|
|
@@ -8948,38 +8752,21 @@ class BaseField extends FASTElement {
|
|
|
8948
8752
|
}
|
|
8949
8753
|
}
|
|
8950
8754
|
}
|
|
8951
|
-
__decorateClass$
|
|
8755
|
+
__decorateClass$l([
|
|
8952
8756
|
observable
|
|
8953
8757
|
], BaseField.prototype, "labelSlot", 2);
|
|
8954
|
-
__decorateClass$
|
|
8758
|
+
__decorateClass$l([
|
|
8955
8759
|
observable
|
|
8956
8760
|
], BaseField.prototype, "messageSlot", 2);
|
|
8957
|
-
__decorateClass$
|
|
8761
|
+
__decorateClass$l([
|
|
8958
8762
|
observable
|
|
8959
8763
|
], BaseField.prototype, "slottedInputs", 2);
|
|
8960
|
-
__decorateClass$
|
|
8764
|
+
__decorateClass$l([
|
|
8961
8765
|
observable
|
|
8962
8766
|
], BaseField.prototype, "input", 2);
|
|
8963
8767
|
|
|
8964
|
-
var __defProp$u = Object.defineProperty;
|
|
8965
|
-
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
8966
|
-
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
8967
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
8968
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8969
|
-
if (decorator = decorators[i])
|
|
8970
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8971
|
-
if (kind && result) __defProp$u(target, key, result);
|
|
8972
|
-
return result;
|
|
8973
|
-
};
|
|
8974
8768
|
class Field extends BaseField {
|
|
8975
|
-
constructor() {
|
|
8976
|
-
super(...arguments);
|
|
8977
|
-
this.labelPosition = LabelPosition.above;
|
|
8978
|
-
}
|
|
8979
8769
|
}
|
|
8980
|
-
__decorateClass$u([
|
|
8981
|
-
attr({ attribute: "label-position" })
|
|
8982
|
-
], Field.prototype, "labelPosition", 2);
|
|
8983
8770
|
|
|
8984
8771
|
Field.define(definition$q);
|
|
8985
8772
|
|
|
@@ -9007,33 +8794,8 @@ const definition$p = {
|
|
|
9007
8794
|
template: template$p
|
|
9008
8795
|
};
|
|
9009
8796
|
|
|
9010
|
-
var __defProp$t = Object.defineProperty;
|
|
9011
|
-
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
9012
|
-
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
9013
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
9014
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9015
|
-
if (decorator = decorators[i])
|
|
9016
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9017
|
-
if (kind && result) __defProp$t(target, key, result);
|
|
9018
|
-
return result;
|
|
9019
|
-
};
|
|
9020
8797
|
class Image extends FASTElement {
|
|
9021
8798
|
}
|
|
9022
|
-
__decorateClass$t([
|
|
9023
|
-
attr({ mode: "boolean" })
|
|
9024
|
-
], Image.prototype, "block", 2);
|
|
9025
|
-
__decorateClass$t([
|
|
9026
|
-
attr({ mode: "boolean" })
|
|
9027
|
-
], Image.prototype, "bordered", 2);
|
|
9028
|
-
__decorateClass$t([
|
|
9029
|
-
attr({ mode: "boolean" })
|
|
9030
|
-
], Image.prototype, "shadow", 2);
|
|
9031
|
-
__decorateClass$t([
|
|
9032
|
-
attr
|
|
9033
|
-
], Image.prototype, "fit", 2);
|
|
9034
|
-
__decorateClass$t([
|
|
9035
|
-
attr
|
|
9036
|
-
], Image.prototype, "shape", 2);
|
|
9037
8799
|
|
|
9038
8800
|
Image.define(definition$p);
|
|
9039
8801
|
|
|
@@ -9062,33 +8824,23 @@ const definition$o = {
|
|
|
9062
8824
|
template: template$o
|
|
9063
8825
|
};
|
|
9064
8826
|
|
|
9065
|
-
var __defProp$
|
|
9066
|
-
var __getOwnPropDesc$
|
|
9067
|
-
var __decorateClass$
|
|
9068
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8827
|
+
var __defProp$k = Object.defineProperty;
|
|
8828
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
8829
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
8830
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
9069
8831
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9070
8832
|
if (decorator = decorators[i])
|
|
9071
8833
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9072
|
-
if (kind && result) __defProp$
|
|
8834
|
+
if (kind && result) __defProp$k(target, key, result);
|
|
9073
8835
|
return result;
|
|
9074
8836
|
};
|
|
9075
8837
|
class Label extends FASTElement {
|
|
9076
8838
|
constructor() {
|
|
9077
8839
|
super(...arguments);
|
|
9078
|
-
this.disabled = false;
|
|
9079
8840
|
this.required = false;
|
|
9080
8841
|
}
|
|
9081
8842
|
}
|
|
9082
|
-
__decorateClass$
|
|
9083
|
-
attr
|
|
9084
|
-
], Label.prototype, "size", 2);
|
|
9085
|
-
__decorateClass$s([
|
|
9086
|
-
attr
|
|
9087
|
-
], Label.prototype, "weight", 2);
|
|
9088
|
-
__decorateClass$s([
|
|
9089
|
-
attr({ mode: "boolean" })
|
|
9090
|
-
], Label.prototype, "disabled", 2);
|
|
9091
|
-
__decorateClass$s([
|
|
8843
|
+
__decorateClass$k([
|
|
9092
8844
|
attr({ mode: "boolean" })
|
|
9093
8845
|
], Label.prototype, "required", 2);
|
|
9094
8846
|
|
|
@@ -9114,28 +8866,8 @@ const definition$n = {
|
|
|
9114
8866
|
template: template$n
|
|
9115
8867
|
};
|
|
9116
8868
|
|
|
9117
|
-
var __defProp$r = Object.defineProperty;
|
|
9118
|
-
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
9119
|
-
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
9120
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
9121
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9122
|
-
if (decorator = decorators[i])
|
|
9123
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9124
|
-
if (kind && result) __defProp$r(target, key, result);
|
|
9125
|
-
return result;
|
|
9126
|
-
};
|
|
9127
8869
|
class Link extends BaseAnchor {
|
|
9128
|
-
constructor() {
|
|
9129
|
-
super(...arguments);
|
|
9130
|
-
this.inline = false;
|
|
9131
|
-
}
|
|
9132
8870
|
}
|
|
9133
|
-
__decorateClass$r([
|
|
9134
|
-
attr
|
|
9135
|
-
], Link.prototype, "appearance", 2);
|
|
9136
|
-
__decorateClass$r([
|
|
9137
|
-
attr({ mode: "boolean" })
|
|
9138
|
-
], Link.prototype, "inline", 2);
|
|
9139
8871
|
|
|
9140
8872
|
Link.define(definition$n);
|
|
9141
8873
|
|
|
@@ -9153,14 +8885,14 @@ const definition$m = {
|
|
|
9153
8885
|
template: template$m
|
|
9154
8886
|
};
|
|
9155
8887
|
|
|
9156
|
-
var __defProp$
|
|
9157
|
-
var __getOwnPropDesc$
|
|
9158
|
-
var __decorateClass$
|
|
9159
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8888
|
+
var __defProp$j = Object.defineProperty;
|
|
8889
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
8890
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
8891
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
9160
8892
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9161
8893
|
if (decorator = decorators[i])
|
|
9162
8894
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9163
|
-
if (kind && result) __defProp$
|
|
8895
|
+
if (kind && result) __defProp$j(target, key, result);
|
|
9164
8896
|
return result;
|
|
9165
8897
|
};
|
|
9166
8898
|
class Listbox extends FASTElement {
|
|
@@ -9327,19 +9059,19 @@ class Listbox extends FASTElement {
|
|
|
9327
9059
|
});
|
|
9328
9060
|
}
|
|
9329
9061
|
}
|
|
9330
|
-
__decorateClass$
|
|
9062
|
+
__decorateClass$j([
|
|
9331
9063
|
observable
|
|
9332
9064
|
], Listbox.prototype, "defaultSlot", 2);
|
|
9333
|
-
__decorateClass$
|
|
9065
|
+
__decorateClass$j([
|
|
9334
9066
|
observable
|
|
9335
9067
|
], Listbox.prototype, "multiple", 2);
|
|
9336
|
-
__decorateClass$
|
|
9068
|
+
__decorateClass$j([
|
|
9337
9069
|
observable
|
|
9338
9070
|
], Listbox.prototype, "options", 2);
|
|
9339
|
-
__decorateClass$
|
|
9071
|
+
__decorateClass$j([
|
|
9340
9072
|
observable
|
|
9341
9073
|
], Listbox.prototype, "selectedIndex", 2);
|
|
9342
|
-
__decorateClass$
|
|
9074
|
+
__decorateClass$j([
|
|
9343
9075
|
observable
|
|
9344
9076
|
], Listbox.prototype, "dropdown", 2);
|
|
9345
9077
|
|
|
@@ -9398,7 +9130,7 @@ function isMenuItem(element, tagName2 = "-menu-item") {
|
|
|
9398
9130
|
}
|
|
9399
9131
|
const tagName$j = `${FluentDesignSystem.prefix}-menu-item`;
|
|
9400
9132
|
|
|
9401
|
-
const styles$k = css`${display("flex")} :host{align-items:center;background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};box-sizing:border-box;color:${colorNeutralForeground2};cursor:pointer;font:${fontWeightRegular} ${fontSizeBase300}/${lineHeightBase300} ${fontFamilyBase};gap:4px;min-block-size:32px;overflow:visible;padding-inline:10px}@supports (grid-template-columns:subgrid){:host{display:grid;gap:0;grid-template-columns:subgrid;padding-inline:unset}}:host(:hover){background:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground2Pressed}}:host(:active) ::slotted([slot='start']){color:${colorCompoundBrandForeground1Pressed}}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}:host(:focus-visible){border-radius:${borderRadiusMedium};outline:2px solid ${colorStrokeFocus2}}:host(:not(
|
|
9133
|
+
const styles$k = css`${display("flex")} :host{align-items:center;background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};box-sizing:border-box;color:${colorNeutralForeground2};cursor:pointer;font:${fontWeightRegular} ${fontSizeBase300}/${lineHeightBase300} ${fontFamilyBase};gap:4px;min-block-size:32px;overflow:visible;padding-inline:10px}@supports (grid-template-columns:subgrid){:host{display:grid;gap:0;grid-template-columns:subgrid;padding-inline:unset}}:host(:hover){background:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground2Pressed}}:host(:active) ::slotted([slot='start']){color:${colorCompoundBrandForeground1Pressed}}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}:host(:focus-visible){border-radius:${borderRadiusMedium};outline:2px solid ${colorStrokeFocus2}}:host(:not([role='menuitemcheckbox']):not([role='menuitemradio'])) .indicator,:host(:not([role='menuitemcheckbox']):not([role='menuitemradio'])) ::slotted([slot='indicator']),:host(:not(${submenuState})) .submenu-glyph,:host(:not(${submenuState})) ::slotted([slot='submenu-glyph']){display:none}:host(:not(${checkedState})) .indicator,:host(:not(${checkedState})) ::slotted([slot='indicator']){visibility:hidden}.indicator,::slotted([slot='indicator']),::slotted([slot='start']),::slotted([slot='end']),.submenu-glyph,::slotted([slot='submenu-glyph']){margin-inline:${spacingHorizontalXXS}}::slotted([slot='end']){color:${colorNeutralForeground3};font:${fontWeightRegular} ${fontSizeBase200}/${lineHeightBase200} ${fontFamilyBase};white-space:nowrap}.indicator,::slotted([slot='indicator']){grid-column:2/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:3/span 1}.content{flex-grow:1;grid-column:4/span 1;padding:0 2px;white-space:nowrap}::slotted([slot='end']){grid-column:5/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:6/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-block-size:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${disabledState}),:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:GrayText}}`;
|
|
9402
9134
|
|
|
9403
9135
|
const Checkmark16Filled = html.partial(
|
|
9404
9136
|
`<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>`
|
|
@@ -9421,14 +9153,14 @@ const definition$k = {
|
|
|
9421
9153
|
template: template$k
|
|
9422
9154
|
};
|
|
9423
9155
|
|
|
9424
|
-
var __defProp$
|
|
9425
|
-
var __getOwnPropDesc$
|
|
9426
|
-
var __decorateClass$
|
|
9427
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9156
|
+
var __defProp$i = Object.defineProperty;
|
|
9157
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
9158
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
9159
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
9428
9160
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9429
9161
|
if (decorator = decorators[i])
|
|
9430
9162
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9431
|
-
if (kind && result) __defProp$
|
|
9163
|
+
if (kind && result) __defProp$i(target, key, result);
|
|
9432
9164
|
return result;
|
|
9433
9165
|
};
|
|
9434
9166
|
class MenuItem extends FASTElement {
|
|
@@ -9628,22 +9360,22 @@ class MenuItem extends FASTElement {
|
|
|
9628
9360
|
maybeSetAutoFocus(this);
|
|
9629
9361
|
}
|
|
9630
9362
|
}
|
|
9631
|
-
__decorateClass$
|
|
9363
|
+
__decorateClass$i([
|
|
9632
9364
|
attr({ mode: "boolean" })
|
|
9633
9365
|
], MenuItem.prototype, "disabled", 2);
|
|
9634
|
-
__decorateClass$
|
|
9366
|
+
__decorateClass$i([
|
|
9635
9367
|
attr
|
|
9636
9368
|
], MenuItem.prototype, "role", 2);
|
|
9637
|
-
__decorateClass$
|
|
9369
|
+
__decorateClass$i([
|
|
9638
9370
|
attr({ mode: "boolean" })
|
|
9639
9371
|
], MenuItem.prototype, "checked", 2);
|
|
9640
|
-
__decorateClass$
|
|
9372
|
+
__decorateClass$i([
|
|
9641
9373
|
attr({ mode: "boolean" })
|
|
9642
9374
|
], MenuItem.prototype, "hidden", 2);
|
|
9643
|
-
__decorateClass$
|
|
9375
|
+
__decorateClass$i([
|
|
9644
9376
|
observable
|
|
9645
9377
|
], MenuItem.prototype, "slottedSubmenu", 2);
|
|
9646
|
-
__decorateClass$
|
|
9378
|
+
__decorateClass$i([
|
|
9647
9379
|
observable
|
|
9648
9380
|
], MenuItem.prototype, "submenu", 2);
|
|
9649
9381
|
applyMixins(MenuItem, StartEnd);
|
|
@@ -9652,7 +9384,7 @@ MenuItem.define(definition$k);
|
|
|
9652
9384
|
|
|
9653
9385
|
const tagName$i = `${FluentDesignSystem.prefix}-menu-list`;
|
|
9654
9386
|
|
|
9655
|
-
const styles$j = css`${display("grid")} :host{
|
|
9387
|
+
const styles$j = css`${display("grid")} :host{contain:layout style;block-size:auto;max-inline-size:300px;min-inline-size:160px;inline-size:auto;background-color:${colorNeutralBackground1};border:1px solid ${colorTransparentStroke};border-radius:${borderRadiusMedium};box-shadow:${shadow16};grid-template-columns:10px max-content max-content minmax(0,1fr) max-content max-content 10px;gap:2px 0;padding:4px}::slotted(*){grid-column:1/-1}`;
|
|
9656
9388
|
|
|
9657
9389
|
function menuTemplate$1() {
|
|
9658
9390
|
return html`<template focusgroup=menu><slot ${slotted("items")}></slot></template>`;
|
|
@@ -10131,14 +9863,14 @@ class ArrayItemCollection {
|
|
|
10131
9863
|
}
|
|
10132
9864
|
}
|
|
10133
9865
|
|
|
10134
|
-
var __defProp$
|
|
10135
|
-
var __getOwnPropDesc$
|
|
10136
|
-
var __decorateClass$
|
|
10137
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9866
|
+
var __defProp$h = Object.defineProperty;
|
|
9867
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
9868
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
9869
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
10138
9870
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10139
9871
|
if (decorator = decorators[i])
|
|
10140
9872
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10141
|
-
if (kind && result) __defProp$
|
|
9873
|
+
if (kind && result) __defProp$h(target, key, result);
|
|
10142
9874
|
return result;
|
|
10143
9875
|
};
|
|
10144
9876
|
const _BaseMenuList = class _BaseMenuList extends FASTElement {
|
|
@@ -10257,7 +9989,7 @@ const _BaseMenuList = class _BaseMenuList extends FASTElement {
|
|
|
10257
9989
|
}
|
|
10258
9990
|
};
|
|
10259
9991
|
_BaseMenuList.focusableElementRoles = MenuItemRole;
|
|
10260
|
-
__decorateClass$
|
|
9992
|
+
__decorateClass$h([
|
|
10261
9993
|
observable
|
|
10262
9994
|
], _BaseMenuList.prototype, "items", 2);
|
|
10263
9995
|
let BaseMenuList = _BaseMenuList;
|
|
@@ -10302,14 +10034,14 @@ const definition$i = {
|
|
|
10302
10034
|
template: template$i
|
|
10303
10035
|
};
|
|
10304
10036
|
|
|
10305
|
-
var __defProp$
|
|
10306
|
-
var __getOwnPropDesc$
|
|
10307
|
-
var __decorateClass$
|
|
10308
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10037
|
+
var __defProp$g = Object.defineProperty;
|
|
10038
|
+
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
10039
|
+
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
10040
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
10309
10041
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10310
10042
|
if (decorator = decorators[i])
|
|
10311
10043
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10312
|
-
if (kind && result) __defProp$
|
|
10044
|
+
if (kind && result) __defProp$g(target, key, result);
|
|
10313
10045
|
return result;
|
|
10314
10046
|
};
|
|
10315
10047
|
class Menu extends FASTElement {
|
|
@@ -10603,28 +10335,25 @@ class Menu extends FASTElement {
|
|
|
10603
10335
|
}
|
|
10604
10336
|
}
|
|
10605
10337
|
}
|
|
10606
|
-
__decorateClass$
|
|
10338
|
+
__decorateClass$g([
|
|
10607
10339
|
attr({ attribute: "open-on-hover", mode: "boolean" })
|
|
10608
10340
|
], Menu.prototype, "openOnHover", 2);
|
|
10609
|
-
__decorateClass$
|
|
10341
|
+
__decorateClass$g([
|
|
10610
10342
|
attr({ attribute: "open-on-context", mode: "boolean" })
|
|
10611
10343
|
], Menu.prototype, "openOnContext", 2);
|
|
10612
|
-
__decorateClass$
|
|
10344
|
+
__decorateClass$g([
|
|
10613
10345
|
attr({ attribute: "close-on-scroll", mode: "boolean" })
|
|
10614
10346
|
], Menu.prototype, "closeOnScroll", 2);
|
|
10615
|
-
__decorateClass$
|
|
10347
|
+
__decorateClass$g([
|
|
10616
10348
|
attr({ attribute: "persist-on-item-click", mode: "boolean" })
|
|
10617
10349
|
], Menu.prototype, "persistOnItemClick", 2);
|
|
10618
|
-
__decorateClass$
|
|
10619
|
-
attr({ mode: "boolean" })
|
|
10620
|
-
], Menu.prototype, "split", 2);
|
|
10621
|
-
__decorateClass$n([
|
|
10350
|
+
__decorateClass$g([
|
|
10622
10351
|
observable
|
|
10623
10352
|
], Menu.prototype, "slottedMenuList", 2);
|
|
10624
|
-
__decorateClass$
|
|
10353
|
+
__decorateClass$g([
|
|
10625
10354
|
observable
|
|
10626
10355
|
], Menu.prototype, "slottedTriggers", 2);
|
|
10627
|
-
__decorateClass$
|
|
10356
|
+
__decorateClass$g([
|
|
10628
10357
|
observable
|
|
10629
10358
|
], Menu.prototype, "primaryAction", 2);
|
|
10630
10359
|
|
|
@@ -10660,16 +10389,6 @@ const definition$h = {
|
|
|
10660
10389
|
template: template$h
|
|
10661
10390
|
};
|
|
10662
10391
|
|
|
10663
|
-
var __defProp$m = Object.defineProperty;
|
|
10664
|
-
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
10665
|
-
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
10666
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
10667
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10668
|
-
if (decorator = decorators[i])
|
|
10669
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10670
|
-
if (kind && result) __defProp$m(target, key, result);
|
|
10671
|
-
return result;
|
|
10672
|
-
};
|
|
10673
10392
|
class MessageBar extends FASTElement {
|
|
10674
10393
|
constructor() {
|
|
10675
10394
|
super();
|
|
@@ -10690,19 +10409,10 @@ class MessageBar extends FASTElement {
|
|
|
10690
10409
|
this.elementInternals.role = "status";
|
|
10691
10410
|
}
|
|
10692
10411
|
}
|
|
10693
|
-
__decorateClass$m([
|
|
10694
|
-
attr
|
|
10695
|
-
], MessageBar.prototype, "shape", 2);
|
|
10696
|
-
__decorateClass$m([
|
|
10697
|
-
attr
|
|
10698
|
-
], MessageBar.prototype, "layout", 2);
|
|
10699
|
-
__decorateClass$m([
|
|
10700
|
-
attr
|
|
10701
|
-
], MessageBar.prototype, "intent", 2);
|
|
10702
10412
|
|
|
10703
10413
|
MessageBar.define(definition$h);
|
|
10704
10414
|
|
|
10705
|
-
const styles$g = css`${display("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${typographyBody1Styles} align-items:center;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};box-sizing:border-box;color:${colorNeutralForeground2};column-gap:${spacingHorizontalXS};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${spacingHorizontalSNudge};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Pressed};color:${colorNeutralForeground2Pressed}}:host(${nativeDisabledState}){background-color:${colorNeutralBackground1};color:${colorNeutralForegroundDisabled};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${selectedState}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${multipleState}) .checkmark-16-filled,:host(:not(${multipleState})) .checkmark-12-regular{display:none}:host(${multipleState}) .checkmark-12-regular{background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorCompoundBrandBackground};border-color:${colorCompoundBrandStroke};fill:${colorNeutralForegroundInverted}}:host(${nativeDisabledState}${multipleState}) .checkmark-12-regular{border-color:${colorNeutralStrokeDisabled}}:host(${nativeDisabledState}${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorNeutralBackgroundDisabled}}:host(
|
|
10415
|
+
const styles$g = css`${display("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${typographyBody1Styles} align-items:center;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};box-sizing:border-box;color:${colorNeutralForeground2};column-gap:${spacingHorizontalXS};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${spacingHorizontalSNudge};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Pressed};color:${colorNeutralForeground2Pressed}}:host(${nativeDisabledState}){background-color:${colorNeutralBackground1};color:${colorNeutralForegroundDisabled};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${selectedState}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${multipleState}) .checkmark-16-filled,:host(:not(${multipleState})) .checkmark-12-regular{display:none}:host(${multipleState}) .checkmark-12-regular{background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorCompoundBrandBackground};border-color:${colorCompoundBrandStroke};fill:${colorNeutralForegroundInverted}}:host(${nativeDisabledState}${multipleState}) .checkmark-12-regular{border-color:${colorNeutralStrokeDisabled}}:host(${nativeDisabledState}${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorNeutralBackgroundDisabled}}:host([active]){border:${strokeWidthThick} solid ${colorStrokeFocus2}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${spacingHorizontalSNudge}}}:host(${descriptionState}){column-gap:${spacingHorizontalSNudge};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${colorNeutralForeground3};grid-area:description;${typographyCaption1Styles}}@media (forced-colors:active){:host(${nativeDisabledState}){color:GrayText}}`;
|
|
10706
10416
|
|
|
10707
10417
|
const checkedIndicator$1 = html.partial(
|
|
10708
10418
|
/* html */
|
|
@@ -10722,20 +10432,19 @@ const definition$g = {
|
|
|
10722
10432
|
template: template$g
|
|
10723
10433
|
};
|
|
10724
10434
|
|
|
10725
|
-
var __defProp$
|
|
10726
|
-
var __getOwnPropDesc$
|
|
10727
|
-
var __decorateClass$
|
|
10728
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10435
|
+
var __defProp$f = Object.defineProperty;
|
|
10436
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
10437
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
10438
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
10729
10439
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10730
10440
|
if (decorator = decorators[i])
|
|
10731
10441
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10732
|
-
if (kind && result) __defProp$
|
|
10442
|
+
if (kind && result) __defProp$f(target, key, result);
|
|
10733
10443
|
return result;
|
|
10734
10444
|
};
|
|
10735
10445
|
class DropdownOption extends FASTElement {
|
|
10736
10446
|
constructor() {
|
|
10737
10447
|
super();
|
|
10738
|
-
this.active = false;
|
|
10739
10448
|
this.id = uniqueId("option-");
|
|
10740
10449
|
this.initialValue = "";
|
|
10741
10450
|
this.multiple = false;
|
|
@@ -10753,16 +10462,6 @@ class DropdownOption extends FASTElement {
|
|
|
10753
10462
|
this._value = this.initialValue;
|
|
10754
10463
|
this.elementInternals.role = "option";
|
|
10755
10464
|
}
|
|
10756
|
-
/**
|
|
10757
|
-
* Changes the active state of the option when the active property changes.
|
|
10758
|
-
*
|
|
10759
|
-
* @param prev - the previous active state
|
|
10760
|
-
* @param next - the current active state
|
|
10761
|
-
* @internal
|
|
10762
|
-
*/
|
|
10763
|
-
activeChanged(prev, next) {
|
|
10764
|
-
toggleState(this.elementInternals, "active", next);
|
|
10765
|
-
}
|
|
10766
10465
|
/**
|
|
10767
10466
|
* Sets the selected property to match the currentSelected state.
|
|
10768
10467
|
*
|
|
@@ -10940,46 +10639,43 @@ class DropdownOption extends FASTElement {
|
|
|
10940
10639
|
* @public
|
|
10941
10640
|
*/
|
|
10942
10641
|
DropdownOption.formAssociated = true;
|
|
10943
|
-
__decorateClass$
|
|
10944
|
-
observable
|
|
10945
|
-
], DropdownOption.prototype, "active", 2);
|
|
10946
|
-
__decorateClass$l([
|
|
10642
|
+
__decorateClass$f([
|
|
10947
10643
|
attr({ attribute: "current-selected", mode: "boolean" })
|
|
10948
10644
|
], DropdownOption.prototype, "currentSelected", 2);
|
|
10949
|
-
__decorateClass$
|
|
10645
|
+
__decorateClass$f([
|
|
10950
10646
|
attr({ attribute: "selected", mode: "boolean" })
|
|
10951
10647
|
], DropdownOption.prototype, "defaultSelected", 2);
|
|
10952
|
-
__decorateClass$
|
|
10648
|
+
__decorateClass$f([
|
|
10953
10649
|
observable
|
|
10954
10650
|
], DropdownOption.prototype, "descriptionSlot", 2);
|
|
10955
|
-
__decorateClass$
|
|
10651
|
+
__decorateClass$f([
|
|
10956
10652
|
observable
|
|
10957
10653
|
], DropdownOption.prototype, "disabled", 2);
|
|
10958
|
-
__decorateClass$
|
|
10654
|
+
__decorateClass$f([
|
|
10959
10655
|
attr({ attribute: "disabled", mode: "boolean" })
|
|
10960
10656
|
], DropdownOption.prototype, "disabledAttribute", 2);
|
|
10961
|
-
__decorateClass$
|
|
10657
|
+
__decorateClass$f([
|
|
10962
10658
|
attr({ attribute: "form" })
|
|
10963
10659
|
], DropdownOption.prototype, "formAttribute", 2);
|
|
10964
|
-
__decorateClass$
|
|
10660
|
+
__decorateClass$f([
|
|
10965
10661
|
attr({ mode: "boolean" })
|
|
10966
10662
|
], DropdownOption.prototype, "freeform", 2);
|
|
10967
|
-
__decorateClass$
|
|
10663
|
+
__decorateClass$f([
|
|
10968
10664
|
attr({ attribute: "id" })
|
|
10969
10665
|
], DropdownOption.prototype, "id", 2);
|
|
10970
|
-
__decorateClass$
|
|
10666
|
+
__decorateClass$f([
|
|
10971
10667
|
attr({ attribute: "value", mode: "fromView" })
|
|
10972
10668
|
], DropdownOption.prototype, "initialValue", 2);
|
|
10973
|
-
__decorateClass$
|
|
10669
|
+
__decorateClass$f([
|
|
10974
10670
|
observable
|
|
10975
10671
|
], DropdownOption.prototype, "multiple", 2);
|
|
10976
|
-
__decorateClass$
|
|
10672
|
+
__decorateClass$f([
|
|
10977
10673
|
attr
|
|
10978
10674
|
], DropdownOption.prototype, "name", 2);
|
|
10979
|
-
__decorateClass$
|
|
10675
|
+
__decorateClass$f([
|
|
10980
10676
|
observable
|
|
10981
10677
|
], DropdownOption.prototype, "start", 2);
|
|
10982
|
-
__decorateClass$
|
|
10678
|
+
__decorateClass$f([
|
|
10983
10679
|
attr({ attribute: "text", mode: "fromView" })
|
|
10984
10680
|
], DropdownOption.prototype, "textAttribute", 2);
|
|
10985
10681
|
|
|
@@ -11014,14 +10710,14 @@ const definition$f = {
|
|
|
11014
10710
|
template: template$f
|
|
11015
10711
|
};
|
|
11016
10712
|
|
|
11017
|
-
var __defProp$
|
|
11018
|
-
var __getOwnPropDesc$
|
|
11019
|
-
var __decorateClass$
|
|
11020
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10713
|
+
var __defProp$e = Object.defineProperty;
|
|
10714
|
+
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
10715
|
+
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
10716
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
11021
10717
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11022
10718
|
if (decorator = decorators[i])
|
|
11023
10719
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11024
|
-
if (kind && result) __defProp$
|
|
10720
|
+
if (kind && result) __defProp$e(target, key, result);
|
|
11025
10721
|
return result;
|
|
11026
10722
|
};
|
|
11027
10723
|
class BaseProgressBar extends FASTElement {
|
|
@@ -11033,7 +10729,6 @@ class BaseProgressBar extends FASTElement {
|
|
|
11033
10729
|
* @internal
|
|
11034
10730
|
*/
|
|
11035
10731
|
this.elementInternals = this.attachInternals();
|
|
11036
|
-
this.validationState = null;
|
|
11037
10732
|
this.elementInternals.role = "progressbar";
|
|
11038
10733
|
}
|
|
11039
10734
|
/**
|
|
@@ -11043,14 +10738,6 @@ class BaseProgressBar extends FASTElement {
|
|
|
11043
10738
|
indicatorChanged() {
|
|
11044
10739
|
this.setIndicatorWidth();
|
|
11045
10740
|
}
|
|
11046
|
-
/**
|
|
11047
|
-
* Handles changes to validation-state attribute custom states
|
|
11048
|
-
* @param prev - the previous state
|
|
11049
|
-
* @param next - the next state
|
|
11050
|
-
*/
|
|
11051
|
-
validationStateChanged(prev, next) {
|
|
11052
|
-
swapStates(this.elementInternals, prev, next, ProgressBarValidationState);
|
|
11053
|
-
}
|
|
11054
10741
|
/**
|
|
11055
10742
|
* Updates the percent complete when the `value` property changes.
|
|
11056
10743
|
*
|
|
@@ -11112,40 +10799,21 @@ class BaseProgressBar extends FASTElement {
|
|
|
11112
10799
|
});
|
|
11113
10800
|
}
|
|
11114
10801
|
}
|
|
11115
|
-
__decorateClass$
|
|
10802
|
+
__decorateClass$e([
|
|
11116
10803
|
observable
|
|
11117
10804
|
], BaseProgressBar.prototype, "indicator", 2);
|
|
11118
|
-
__decorateClass$
|
|
11119
|
-
attr({ attribute: "validation-state" })
|
|
11120
|
-
], BaseProgressBar.prototype, "validationState", 2);
|
|
11121
|
-
__decorateClass$k([
|
|
10805
|
+
__decorateClass$e([
|
|
11122
10806
|
attr({ converter: nullableNumberConverter })
|
|
11123
10807
|
], BaseProgressBar.prototype, "value", 2);
|
|
11124
|
-
__decorateClass$
|
|
10808
|
+
__decorateClass$e([
|
|
11125
10809
|
attr({ converter: nullableNumberConverter })
|
|
11126
10810
|
], BaseProgressBar.prototype, "min", 2);
|
|
11127
|
-
__decorateClass$
|
|
10811
|
+
__decorateClass$e([
|
|
11128
10812
|
attr({ converter: nullableNumberConverter })
|
|
11129
10813
|
], BaseProgressBar.prototype, "max", 2);
|
|
11130
10814
|
|
|
11131
|
-
var __defProp$j = Object.defineProperty;
|
|
11132
|
-
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
11133
|
-
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
11134
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
11135
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11136
|
-
if (decorator = decorators[i])
|
|
11137
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11138
|
-
if (kind && result) __defProp$j(target, key, result);
|
|
11139
|
-
return result;
|
|
11140
|
-
};
|
|
11141
10815
|
class ProgressBar extends BaseProgressBar {
|
|
11142
10816
|
}
|
|
11143
|
-
__decorateClass$j([
|
|
11144
|
-
attr
|
|
11145
|
-
], ProgressBar.prototype, "thickness", 2);
|
|
11146
|
-
__decorateClass$j([
|
|
11147
|
-
attr
|
|
11148
|
-
], ProgressBar.prototype, "shape", 2);
|
|
11149
10817
|
|
|
11150
10818
|
ProgressBar.define(definition$f);
|
|
11151
10819
|
|
|
@@ -11171,14 +10839,14 @@ function isRadio(element, tagName2 = "-radio") {
|
|
|
11171
10839
|
}
|
|
11172
10840
|
const tagName$d = `${FluentDesignSystem.prefix}-radio`;
|
|
11173
10841
|
|
|
11174
|
-
var __defProp$
|
|
11175
|
-
var __getOwnPropDesc$
|
|
11176
|
-
var __decorateClass$
|
|
11177
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10842
|
+
var __defProp$d = Object.defineProperty;
|
|
10843
|
+
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
10844
|
+
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
10845
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
11178
10846
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11179
10847
|
if (decorator = decorators[i])
|
|
11180
10848
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11181
|
-
if (kind && result) __defProp$
|
|
10849
|
+
if (kind && result) __defProp$d(target, key, result);
|
|
11182
10850
|
return result;
|
|
11183
10851
|
};
|
|
11184
10852
|
class BaseRadioGroup extends FASTElement {
|
|
@@ -11574,28 +11242,28 @@ class BaseRadioGroup extends FASTElement {
|
|
|
11574
11242
|
* @public
|
|
11575
11243
|
*/
|
|
11576
11244
|
BaseRadioGroup.formAssociated = true;
|
|
11577
|
-
__decorateClass$
|
|
11245
|
+
__decorateClass$d([
|
|
11578
11246
|
observable
|
|
11579
11247
|
], BaseRadioGroup.prototype, "checkedIndex", 2);
|
|
11580
|
-
__decorateClass$
|
|
11248
|
+
__decorateClass$d([
|
|
11581
11249
|
attr({ attribute: "disabled", mode: "boolean" })
|
|
11582
11250
|
], BaseRadioGroup.prototype, "disabled", 2);
|
|
11583
|
-
__decorateClass$
|
|
11251
|
+
__decorateClass$d([
|
|
11584
11252
|
attr({ attribute: "value", mode: "fromView" })
|
|
11585
11253
|
], BaseRadioGroup.prototype, "initialValue", 2);
|
|
11586
|
-
__decorateClass$
|
|
11254
|
+
__decorateClass$d([
|
|
11587
11255
|
attr
|
|
11588
11256
|
], BaseRadioGroup.prototype, "name", 2);
|
|
11589
|
-
__decorateClass$
|
|
11257
|
+
__decorateClass$d([
|
|
11590
11258
|
attr
|
|
11591
11259
|
], BaseRadioGroup.prototype, "orientation", 2);
|
|
11592
|
-
__decorateClass$
|
|
11260
|
+
__decorateClass$d([
|
|
11593
11261
|
observable
|
|
11594
11262
|
], BaseRadioGroup.prototype, "radios", 2);
|
|
11595
|
-
__decorateClass$
|
|
11263
|
+
__decorateClass$d([
|
|
11596
11264
|
attr({ mode: "boolean" })
|
|
11597
11265
|
], BaseRadioGroup.prototype, "required", 2);
|
|
11598
|
-
__decorateClass$
|
|
11266
|
+
__decorateClass$d([
|
|
11599
11267
|
observable
|
|
11600
11268
|
], BaseRadioGroup.prototype, "slottedRadios", 2);
|
|
11601
11269
|
|
|
@@ -11722,14 +11390,14 @@ const RatingDisplaySize = {
|
|
|
11722
11390
|
};
|
|
11723
11391
|
const tagName$c = `${FluentDesignSystem.prefix}-rating-display`;
|
|
11724
11392
|
|
|
11725
|
-
var __defProp$
|
|
11726
|
-
var __getOwnPropDesc$
|
|
11727
|
-
var __decorateClass$
|
|
11728
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11393
|
+
var __defProp$c = Object.defineProperty;
|
|
11394
|
+
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
11395
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
11396
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
11729
11397
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11730
11398
|
if (decorator = decorators[i])
|
|
11731
11399
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11732
|
-
if (kind && result) __defProp$
|
|
11400
|
+
if (kind && result) __defProp$c(target, key, result);
|
|
11733
11401
|
return result;
|
|
11734
11402
|
};
|
|
11735
11403
|
const SUPPORTS_ATTR_TYPE = CSS.supports("width: attr(value type(<number>))");
|
|
@@ -11828,19 +11496,19 @@ class BaseRatingDisplay extends FASTElement {
|
|
|
11828
11496
|
});
|
|
11829
11497
|
}
|
|
11830
11498
|
}
|
|
11831
|
-
__decorateClass$
|
|
11499
|
+
__decorateClass$c([
|
|
11832
11500
|
observable
|
|
11833
11501
|
], BaseRatingDisplay.prototype, "iconSlot", 2);
|
|
11834
|
-
__decorateClass$
|
|
11502
|
+
__decorateClass$c([
|
|
11835
11503
|
attr({ converter: nullableNumberConverter })
|
|
11836
11504
|
], BaseRatingDisplay.prototype, "count", 2);
|
|
11837
|
-
__decorateClass$
|
|
11505
|
+
__decorateClass$c([
|
|
11838
11506
|
attr({ attribute: "icon-view-box" })
|
|
11839
11507
|
], BaseRatingDisplay.prototype, "iconViewBox", 2);
|
|
11840
|
-
__decorateClass$
|
|
11508
|
+
__decorateClass$c([
|
|
11841
11509
|
attr({ converter: nullableNumberConverter })
|
|
11842
11510
|
], BaseRatingDisplay.prototype, "max", 2);
|
|
11843
|
-
__decorateClass$
|
|
11511
|
+
__decorateClass$c([
|
|
11844
11512
|
attr({ converter: nullableNumberConverter })
|
|
11845
11513
|
], BaseRatingDisplay.prototype, "value", 2);
|
|
11846
11514
|
|
|
@@ -11867,31 +11535,8 @@ const definition$c = {
|
|
|
11867
11535
|
template: template$c
|
|
11868
11536
|
};
|
|
11869
11537
|
|
|
11870
|
-
var __defProp$g = Object.defineProperty;
|
|
11871
|
-
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
11872
|
-
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
11873
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
11874
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11875
|
-
if (decorator = decorators[i])
|
|
11876
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11877
|
-
if (kind && result) __defProp$g(target, key, result);
|
|
11878
|
-
return result;
|
|
11879
|
-
};
|
|
11880
11538
|
class RatingDisplay extends BaseRatingDisplay {
|
|
11881
|
-
constructor() {
|
|
11882
|
-
super(...arguments);
|
|
11883
|
-
this.compact = false;
|
|
11884
|
-
}
|
|
11885
11539
|
}
|
|
11886
|
-
__decorateClass$g([
|
|
11887
|
-
attr
|
|
11888
|
-
], RatingDisplay.prototype, "color", 2);
|
|
11889
|
-
__decorateClass$g([
|
|
11890
|
-
attr
|
|
11891
|
-
], RatingDisplay.prototype, "size", 2);
|
|
11892
|
-
__decorateClass$g([
|
|
11893
|
-
attr({ mode: "boolean" })
|
|
11894
|
-
], RatingDisplay.prototype, "compact", 2);
|
|
11895
11540
|
|
|
11896
11541
|
RatingDisplay.define(definition$c);
|
|
11897
11542
|
|
|
@@ -11944,14 +11589,14 @@ function convertPixelToPercent(pixelPos, minPosition, maxPosition, direction) {
|
|
|
11944
11589
|
return pct;
|
|
11945
11590
|
}
|
|
11946
11591
|
|
|
11947
|
-
var __defProp$
|
|
11948
|
-
var __getOwnPropDesc$
|
|
11949
|
-
var __decorateClass$
|
|
11950
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
11592
|
+
var __defProp$b = Object.defineProperty;
|
|
11593
|
+
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
11594
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
11595
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
11951
11596
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11952
11597
|
if (decorator = decorators[i])
|
|
11953
11598
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11954
|
-
if (kind && result) __defProp$
|
|
11599
|
+
if (kind && result) __defProp$b(target, key, result);
|
|
11955
11600
|
return result;
|
|
11956
11601
|
};
|
|
11957
11602
|
class Slider extends FASTElement {
|
|
@@ -12492,55 +12137,52 @@ class Slider extends FASTElement {
|
|
|
12492
12137
|
* @public
|
|
12493
12138
|
*/
|
|
12494
12139
|
Slider.formAssociated = true;
|
|
12495
|
-
__decorateClass$
|
|
12496
|
-
attr
|
|
12497
|
-
], Slider.prototype, "size", 2);
|
|
12498
|
-
__decorateClass$f([
|
|
12140
|
+
__decorateClass$b([
|
|
12499
12141
|
attr({ attribute: "value", mode: "fromView" })
|
|
12500
12142
|
], Slider.prototype, "initialValue", 2);
|
|
12501
|
-
__decorateClass$
|
|
12143
|
+
__decorateClass$b([
|
|
12502
12144
|
observable
|
|
12503
12145
|
], Slider.prototype, "direction", 2);
|
|
12504
|
-
__decorateClass$
|
|
12146
|
+
__decorateClass$b([
|
|
12505
12147
|
observable
|
|
12506
12148
|
], Slider.prototype, "isDragging", 2);
|
|
12507
|
-
__decorateClass$
|
|
12149
|
+
__decorateClass$b([
|
|
12508
12150
|
observable
|
|
12509
12151
|
], Slider.prototype, "position", 2);
|
|
12510
|
-
__decorateClass$
|
|
12152
|
+
__decorateClass$b([
|
|
12511
12153
|
observable
|
|
12512
12154
|
], Slider.prototype, "trackWidth", 2);
|
|
12513
|
-
__decorateClass$
|
|
12155
|
+
__decorateClass$b([
|
|
12514
12156
|
observable
|
|
12515
12157
|
], Slider.prototype, "trackMinWidth", 2);
|
|
12516
|
-
__decorateClass$
|
|
12158
|
+
__decorateClass$b([
|
|
12517
12159
|
observable
|
|
12518
12160
|
], Slider.prototype, "trackHeight", 2);
|
|
12519
|
-
__decorateClass$
|
|
12161
|
+
__decorateClass$b([
|
|
12520
12162
|
observable
|
|
12521
12163
|
], Slider.prototype, "trackLeft", 2);
|
|
12522
|
-
__decorateClass$
|
|
12164
|
+
__decorateClass$b([
|
|
12523
12165
|
observable
|
|
12524
12166
|
], Slider.prototype, "trackMinHeight", 2);
|
|
12525
|
-
__decorateClass$
|
|
12167
|
+
__decorateClass$b([
|
|
12526
12168
|
observable
|
|
12527
12169
|
], Slider.prototype, "valueTextFormatter", 2);
|
|
12528
|
-
__decorateClass$
|
|
12170
|
+
__decorateClass$b([
|
|
12529
12171
|
attr({ mode: "boolean" })
|
|
12530
12172
|
], Slider.prototype, "disabled", 2);
|
|
12531
|
-
__decorateClass$
|
|
12173
|
+
__decorateClass$b([
|
|
12532
12174
|
attr({ converter: numberLikeStringConverter })
|
|
12533
12175
|
], Slider.prototype, "min", 2);
|
|
12534
|
-
__decorateClass$
|
|
12176
|
+
__decorateClass$b([
|
|
12535
12177
|
attr({ converter: numberLikeStringConverter })
|
|
12536
12178
|
], Slider.prototype, "max", 2);
|
|
12537
|
-
__decorateClass$
|
|
12179
|
+
__decorateClass$b([
|
|
12538
12180
|
attr({ converter: numberLikeStringConverter })
|
|
12539
12181
|
], Slider.prototype, "step", 2);
|
|
12540
|
-
__decorateClass$
|
|
12182
|
+
__decorateClass$b([
|
|
12541
12183
|
attr
|
|
12542
12184
|
], Slider.prototype, "orientation", 2);
|
|
12543
|
-
__decorateClass$
|
|
12185
|
+
__decorateClass$b([
|
|
12544
12186
|
attr
|
|
12545
12187
|
], Slider.prototype, "mode", 2);
|
|
12546
12188
|
|
|
@@ -12585,24 +12227,8 @@ class BaseSpinner extends FASTElement {
|
|
|
12585
12227
|
}
|
|
12586
12228
|
}
|
|
12587
12229
|
|
|
12588
|
-
var __defProp$e = Object.defineProperty;
|
|
12589
|
-
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
12590
|
-
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
12591
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
12592
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12593
|
-
if (decorator = decorators[i])
|
|
12594
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12595
|
-
if (kind && result) __defProp$e(target, key, result);
|
|
12596
|
-
return result;
|
|
12597
|
-
};
|
|
12598
12230
|
class Spinner extends BaseSpinner {
|
|
12599
12231
|
}
|
|
12600
|
-
__decorateClass$e([
|
|
12601
|
-
attr
|
|
12602
|
-
], Spinner.prototype, "size", 2);
|
|
12603
|
-
__decorateClass$e([
|
|
12604
|
-
attr
|
|
12605
|
-
], Spinner.prototype, "appearance", 2);
|
|
12606
12232
|
|
|
12607
12233
|
Spinner.define(definition$a);
|
|
12608
12234
|
|
|
@@ -12660,14 +12286,14 @@ const definition$8 = {
|
|
|
12660
12286
|
template: template$8
|
|
12661
12287
|
};
|
|
12662
12288
|
|
|
12663
|
-
var __defProp$
|
|
12664
|
-
var __getOwnPropDesc$
|
|
12665
|
-
var __decorateClass$
|
|
12666
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12289
|
+
var __defProp$a = Object.defineProperty;
|
|
12290
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
12291
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
12292
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
12667
12293
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12668
12294
|
if (decorator = decorators[i])
|
|
12669
12295
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12670
|
-
if (kind && result) __defProp$
|
|
12296
|
+
if (kind && result) __defProp$a(target, key, result);
|
|
12671
12297
|
return result;
|
|
12672
12298
|
};
|
|
12673
12299
|
class Tab extends FASTElement {
|
|
@@ -12704,7 +12330,7 @@ class Tab extends FASTElement {
|
|
|
12704
12330
|
this.tabIndex = disabled && this.getAttribute("aria-selected") !== "true" ? -1 : 0;
|
|
12705
12331
|
}
|
|
12706
12332
|
}
|
|
12707
|
-
__decorateClass$
|
|
12333
|
+
__decorateClass$a([
|
|
12708
12334
|
attr({ mode: "boolean" })
|
|
12709
12335
|
], Tab.prototype, "disabled", 2);
|
|
12710
12336
|
applyMixins(Tab, StartEnd);
|
|
@@ -12734,14 +12360,14 @@ const definition$7 = {
|
|
|
12734
12360
|
template: template$7
|
|
12735
12361
|
};
|
|
12736
12362
|
|
|
12737
|
-
var __defProp$
|
|
12738
|
-
var __getOwnPropDesc$
|
|
12739
|
-
var __decorateClass$
|
|
12740
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12363
|
+
var __defProp$9 = Object.defineProperty;
|
|
12364
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
12365
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
12366
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
12741
12367
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12742
12368
|
if (decorator = decorators[i])
|
|
12743
12369
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12744
|
-
if (kind && result) __defProp$
|
|
12370
|
+
if (kind && result) __defProp$9(target, key, result);
|
|
12745
12371
|
return result;
|
|
12746
12372
|
};
|
|
12747
12373
|
class BaseTablist extends FASTElement {
|
|
@@ -12883,37 +12509,23 @@ class BaseTablist extends FASTElement {
|
|
|
12883
12509
|
);
|
|
12884
12510
|
}
|
|
12885
12511
|
}
|
|
12886
|
-
__decorateClass$
|
|
12512
|
+
__decorateClass$9([
|
|
12887
12513
|
attr({ mode: "boolean" })
|
|
12888
12514
|
], BaseTablist.prototype, "disabled", 2);
|
|
12889
|
-
__decorateClass$
|
|
12515
|
+
__decorateClass$9([
|
|
12890
12516
|
attr
|
|
12891
12517
|
], BaseTablist.prototype, "orientation", 2);
|
|
12892
|
-
__decorateClass$
|
|
12518
|
+
__decorateClass$9([
|
|
12893
12519
|
attr
|
|
12894
12520
|
], BaseTablist.prototype, "activeid", 2);
|
|
12895
|
-
__decorateClass$
|
|
12521
|
+
__decorateClass$9([
|
|
12896
12522
|
observable
|
|
12897
12523
|
], BaseTablist.prototype, "slottedTabs", 2);
|
|
12898
|
-
__decorateClass$
|
|
12524
|
+
__decorateClass$9([
|
|
12899
12525
|
observable
|
|
12900
12526
|
], BaseTablist.prototype, "tabs", 2);
|
|
12901
12527
|
|
|
12902
|
-
var __defProp$b = Object.defineProperty;
|
|
12903
|
-
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
12904
|
-
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
12905
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
12906
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12907
|
-
if (decorator = decorators[i])
|
|
12908
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12909
|
-
if (kind && result) __defProp$b(target, key, result);
|
|
12910
|
-
return result;
|
|
12911
|
-
};
|
|
12912
12528
|
class Tablist extends BaseTablist {
|
|
12913
|
-
constructor() {
|
|
12914
|
-
super(...arguments);
|
|
12915
|
-
this.appearance = TablistAppearance.transparent;
|
|
12916
|
-
}
|
|
12917
12529
|
disconnectedCallback() {
|
|
12918
12530
|
this.fg?.disconnect();
|
|
12919
12531
|
super.disconnectedCallback();
|
|
@@ -12938,12 +12550,6 @@ class Tablist extends BaseTablist {
|
|
|
12938
12550
|
}
|
|
12939
12551
|
}
|
|
12940
12552
|
}
|
|
12941
|
-
__decorateClass$b([
|
|
12942
|
-
attr
|
|
12943
|
-
], Tablist.prototype, "appearance", 2);
|
|
12944
|
-
__decorateClass$b([
|
|
12945
|
-
attr
|
|
12946
|
-
], Tablist.prototype, "size", 2);
|
|
12947
12553
|
|
|
12948
12554
|
Tablist.define(definition$7);
|
|
12949
12555
|
|
|
@@ -12992,14 +12598,14 @@ const definition$6 = {
|
|
|
12992
12598
|
|
|
12993
12599
|
const whitespaceFilter = (value) => value.nodeType !== Node.TEXT_NODE || !!value.nodeValue?.trim().length;
|
|
12994
12600
|
|
|
12995
|
-
var __defProp$
|
|
12996
|
-
var __getOwnPropDesc$
|
|
12997
|
-
var __decorateClass$
|
|
12998
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12601
|
+
var __defProp$8 = Object.defineProperty;
|
|
12602
|
+
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
12603
|
+
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
12604
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
12999
12605
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13000
12606
|
if (decorator = decorators[i])
|
|
13001
12607
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13002
|
-
if (kind && result) __defProp$
|
|
12608
|
+
if (kind && result) __defProp$8(target, key, result);
|
|
13003
12609
|
return result;
|
|
13004
12610
|
};
|
|
13005
12611
|
class BaseTextArea extends FASTElement {
|
|
@@ -13017,10 +12623,8 @@ class BaseTextArea extends FASTElement {
|
|
|
13017
12623
|
this.preConnectControlEl = document.createElement("textarea");
|
|
13018
12624
|
this.autoResize = false;
|
|
13019
12625
|
this.disabled = false;
|
|
13020
|
-
this.displayShadow = false;
|
|
13021
12626
|
this.readOnly = false;
|
|
13022
12627
|
this.required = false;
|
|
13023
|
-
this.resize = TextAreaResize.none;
|
|
13024
12628
|
this.spellcheck = false;
|
|
13025
12629
|
}
|
|
13026
12630
|
/**
|
|
@@ -13052,7 +12656,7 @@ class BaseTextArea extends FASTElement {
|
|
|
13052
12656
|
this.labelEl.hidden = !this.filteredLabelSlottedNodes.length;
|
|
13053
12657
|
}
|
|
13054
12658
|
this.filteredLabelSlottedNodes.forEach((node) => {
|
|
13055
|
-
node.disabled
|
|
12659
|
+
node.toggleAttribute("disabled", this.disabled);
|
|
13056
12660
|
node.required = this.required;
|
|
13057
12661
|
});
|
|
13058
12662
|
}
|
|
@@ -13092,14 +12696,6 @@ class BaseTextArea extends FASTElement {
|
|
|
13092
12696
|
this.filteredLabelSlottedNodes.forEach((node) => node.required = this.required);
|
|
13093
12697
|
}
|
|
13094
12698
|
}
|
|
13095
|
-
resizeChanged(prev, next) {
|
|
13096
|
-
swapStates(this.elementInternals, prev, next, TextAreaResize, "resize-");
|
|
13097
|
-
toggleState(
|
|
13098
|
-
this.elementInternals,
|
|
13099
|
-
"resize",
|
|
13100
|
-
hasMatchingState(TextAreaResize, next) && next !== TextAreaResize.none
|
|
13101
|
-
);
|
|
13102
|
-
}
|
|
13103
12699
|
/**
|
|
13104
12700
|
* The length of the current value.
|
|
13105
12701
|
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement#textLength | 'textLength'} property
|
|
@@ -13320,7 +12916,7 @@ class BaseTextArea extends FASTElement {
|
|
|
13320
12916
|
this.controlEl.disabled = disabled;
|
|
13321
12917
|
}
|
|
13322
12918
|
if (this.filteredLabelSlottedNodes?.length) {
|
|
13323
|
-
this.filteredLabelSlottedNodes.forEach((node) => node.disabled
|
|
12919
|
+
this.filteredLabelSlottedNodes.forEach((node) => node.toggleAttribute("disabled", this.disabled));
|
|
13324
12920
|
}
|
|
13325
12921
|
}
|
|
13326
12922
|
toggleUserValidityState() {
|
|
@@ -13387,78 +12983,71 @@ class BaseTextArea extends FASTElement {
|
|
|
13387
12983
|
* @public
|
|
13388
12984
|
*/
|
|
13389
12985
|
BaseTextArea.formAssociated = true;
|
|
13390
|
-
__decorateClass$
|
|
12986
|
+
__decorateClass$8([
|
|
13391
12987
|
observable
|
|
13392
12988
|
], BaseTextArea.prototype, "controlEl", 2);
|
|
13393
|
-
__decorateClass$
|
|
12989
|
+
__decorateClass$8([
|
|
13394
12990
|
observable
|
|
13395
12991
|
], BaseTextArea.prototype, "defaultSlottedNodes", 2);
|
|
13396
|
-
__decorateClass$
|
|
12992
|
+
__decorateClass$8([
|
|
13397
12993
|
observable
|
|
13398
12994
|
], BaseTextArea.prototype, "labelSlottedNodes", 2);
|
|
13399
|
-
__decorateClass$
|
|
12995
|
+
__decorateClass$8([
|
|
13400
12996
|
attr
|
|
13401
12997
|
], BaseTextArea.prototype, "autocomplete", 2);
|
|
13402
|
-
__decorateClass$
|
|
12998
|
+
__decorateClass$8([
|
|
13403
12999
|
attr({ attribute: "auto-resize", mode: "boolean" })
|
|
13404
13000
|
], BaseTextArea.prototype, "autoResize", 2);
|
|
13405
|
-
__decorateClass$
|
|
13001
|
+
__decorateClass$8([
|
|
13406
13002
|
attr({ attribute: "dirname" })
|
|
13407
13003
|
], BaseTextArea.prototype, "dirName", 2);
|
|
13408
|
-
__decorateClass$
|
|
13004
|
+
__decorateClass$8([
|
|
13409
13005
|
attr({ mode: "boolean" })
|
|
13410
13006
|
], BaseTextArea.prototype, "disabled", 2);
|
|
13411
|
-
__decorateClass$
|
|
13412
|
-
attr({ attribute: "display-shadow", mode: "boolean" })
|
|
13413
|
-
], BaseTextArea.prototype, "displayShadow", 2);
|
|
13414
|
-
__decorateClass$a([
|
|
13007
|
+
__decorateClass$8([
|
|
13415
13008
|
attr({ attribute: "form" })
|
|
13416
13009
|
], BaseTextArea.prototype, "initialForm", 2);
|
|
13417
|
-
__decorateClass$
|
|
13010
|
+
__decorateClass$8([
|
|
13418
13011
|
attr({ attribute: "maxlength", converter: nullableNumberConverter })
|
|
13419
13012
|
], BaseTextArea.prototype, "maxLength", 2);
|
|
13420
|
-
__decorateClass$
|
|
13013
|
+
__decorateClass$8([
|
|
13421
13014
|
attr({ attribute: "minlength", converter: nullableNumberConverter })
|
|
13422
13015
|
], BaseTextArea.prototype, "minLength", 2);
|
|
13423
|
-
__decorateClass$
|
|
13016
|
+
__decorateClass$8([
|
|
13424
13017
|
attr
|
|
13425
13018
|
], BaseTextArea.prototype, "name", 2);
|
|
13426
|
-
__decorateClass$
|
|
13019
|
+
__decorateClass$8([
|
|
13427
13020
|
attr
|
|
13428
13021
|
], BaseTextArea.prototype, "placeholder", 2);
|
|
13429
|
-
__decorateClass$
|
|
13022
|
+
__decorateClass$8([
|
|
13430
13023
|
attr({ attribute: "readonly", mode: "boolean" })
|
|
13431
13024
|
], BaseTextArea.prototype, "readOnly", 2);
|
|
13432
|
-
__decorateClass$
|
|
13025
|
+
__decorateClass$8([
|
|
13433
13026
|
attr({ mode: "boolean" })
|
|
13434
13027
|
], BaseTextArea.prototype, "required", 2);
|
|
13435
|
-
__decorateClass$
|
|
13436
|
-
attr({ mode: "fromView" })
|
|
13437
|
-
], BaseTextArea.prototype, "resize", 2);
|
|
13438
|
-
__decorateClass$a([
|
|
13028
|
+
__decorateClass$8([
|
|
13439
13029
|
attr({ mode: "boolean" })
|
|
13440
13030
|
], BaseTextArea.prototype, "spellcheck", 2);
|
|
13441
13031
|
|
|
13442
|
-
var __defProp$
|
|
13443
|
-
var __getOwnPropDesc$
|
|
13444
|
-
var __decorateClass$
|
|
13445
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13032
|
+
var __defProp$7 = Object.defineProperty;
|
|
13033
|
+
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
13034
|
+
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
13035
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
13446
13036
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13447
13037
|
if (decorator = decorators[i])
|
|
13448
13038
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13449
|
-
if (kind && result) __defProp$
|
|
13039
|
+
if (kind && result) __defProp$7(target, key, result);
|
|
13450
13040
|
return result;
|
|
13451
13041
|
};
|
|
13452
13042
|
class TextArea extends BaseTextArea {
|
|
13453
|
-
constructor() {
|
|
13454
|
-
super(...arguments);
|
|
13455
|
-
this.appearance = TextAreaAppearance.outline;
|
|
13456
|
-
this.block = false;
|
|
13457
|
-
}
|
|
13458
13043
|
labelSlottedNodesChanged() {
|
|
13459
13044
|
super.labelSlottedNodesChanged();
|
|
13460
13045
|
this.labelSlottedNodes.forEach((node) => {
|
|
13461
|
-
|
|
13046
|
+
if (this.size) {
|
|
13047
|
+
node.setAttribute("size", this.size);
|
|
13048
|
+
} else {
|
|
13049
|
+
node.removeAttribute("size");
|
|
13050
|
+
}
|
|
13462
13051
|
});
|
|
13463
13052
|
}
|
|
13464
13053
|
/**
|
|
@@ -13468,7 +13057,11 @@ class TextArea extends BaseTextArea {
|
|
|
13468
13057
|
switch (propertyName) {
|
|
13469
13058
|
case "size":
|
|
13470
13059
|
this.labelSlottedNodes.forEach((node) => {
|
|
13471
|
-
|
|
13060
|
+
if (this.size) {
|
|
13061
|
+
node.setAttribute("size", this.size);
|
|
13062
|
+
} else {
|
|
13063
|
+
node.removeAttribute("size");
|
|
13064
|
+
}
|
|
13472
13065
|
});
|
|
13473
13066
|
break;
|
|
13474
13067
|
}
|
|
@@ -13488,13 +13081,7 @@ class TextArea extends BaseTextArea {
|
|
|
13488
13081
|
Observable.getNotifier(this).unsubscribe(this, "size");
|
|
13489
13082
|
}
|
|
13490
13083
|
}
|
|
13491
|
-
__decorateClass$
|
|
13492
|
-
attr({ mode: "fromView" })
|
|
13493
|
-
], TextArea.prototype, "appearance", 2);
|
|
13494
|
-
__decorateClass$9([
|
|
13495
|
-
attr({ mode: "boolean" })
|
|
13496
|
-
], TextArea.prototype, "block", 2);
|
|
13497
|
-
__decorateClass$9([
|
|
13084
|
+
__decorateClass$7([
|
|
13498
13085
|
attr
|
|
13499
13086
|
], TextArea.prototype, "size", 2);
|
|
13500
13087
|
|
|
@@ -13551,14 +13138,14 @@ const definition$5 = {
|
|
|
13551
13138
|
template: template$5
|
|
13552
13139
|
};
|
|
13553
13140
|
|
|
13554
|
-
var __defProp$
|
|
13555
|
-
var __getOwnPropDesc$
|
|
13556
|
-
var __decorateClass$
|
|
13557
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
13141
|
+
var __defProp$6 = Object.defineProperty;
|
|
13142
|
+
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
13143
|
+
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
13144
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
13558
13145
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13559
13146
|
if (decorator = decorators[i])
|
|
13560
13147
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13561
|
-
if (kind && result) __defProp$
|
|
13148
|
+
if (kind && result) __defProp$6(target, key, result);
|
|
13562
13149
|
return result;
|
|
13563
13150
|
};
|
|
13564
13151
|
class BaseTextInput extends FASTElement {
|
|
@@ -13921,58 +13508,58 @@ class BaseTextInput extends FASTElement {
|
|
|
13921
13508
|
* @public
|
|
13922
13509
|
*/
|
|
13923
13510
|
BaseTextInput.formAssociated = true;
|
|
13924
|
-
__decorateClass$
|
|
13511
|
+
__decorateClass$6([
|
|
13925
13512
|
attr
|
|
13926
13513
|
], BaseTextInput.prototype, "autocomplete", 2);
|
|
13927
|
-
__decorateClass$
|
|
13514
|
+
__decorateClass$6([
|
|
13928
13515
|
attr({ attribute: "current-value" })
|
|
13929
13516
|
], BaseTextInput.prototype, "currentValue", 2);
|
|
13930
|
-
__decorateClass$
|
|
13517
|
+
__decorateClass$6([
|
|
13931
13518
|
observable
|
|
13932
13519
|
], BaseTextInput.prototype, "defaultSlottedNodes", 2);
|
|
13933
|
-
__decorateClass$
|
|
13520
|
+
__decorateClass$6([
|
|
13934
13521
|
attr
|
|
13935
13522
|
], BaseTextInput.prototype, "dirname", 2);
|
|
13936
|
-
__decorateClass$
|
|
13523
|
+
__decorateClass$6([
|
|
13937
13524
|
attr({ mode: "boolean" })
|
|
13938
13525
|
], BaseTextInput.prototype, "disabled", 2);
|
|
13939
|
-
__decorateClass$
|
|
13526
|
+
__decorateClass$6([
|
|
13940
13527
|
attr({ attribute: "form" })
|
|
13941
13528
|
], BaseTextInput.prototype, "formAttribute", 2);
|
|
13942
|
-
__decorateClass$
|
|
13529
|
+
__decorateClass$6([
|
|
13943
13530
|
attr({ attribute: "value", mode: "fromView" })
|
|
13944
13531
|
], BaseTextInput.prototype, "initialValue", 2);
|
|
13945
|
-
__decorateClass$
|
|
13532
|
+
__decorateClass$6([
|
|
13946
13533
|
attr
|
|
13947
13534
|
], BaseTextInput.prototype, "list", 2);
|
|
13948
|
-
__decorateClass$
|
|
13535
|
+
__decorateClass$6([
|
|
13949
13536
|
attr({ converter: nullableNumberConverter })
|
|
13950
13537
|
], BaseTextInput.prototype, "maxlength", 2);
|
|
13951
|
-
__decorateClass$
|
|
13538
|
+
__decorateClass$6([
|
|
13952
13539
|
attr({ converter: nullableNumberConverter })
|
|
13953
13540
|
], BaseTextInput.prototype, "minlength", 2);
|
|
13954
|
-
__decorateClass$
|
|
13541
|
+
__decorateClass$6([
|
|
13955
13542
|
attr({ mode: "boolean" })
|
|
13956
13543
|
], BaseTextInput.prototype, "multiple", 2);
|
|
13957
|
-
__decorateClass$
|
|
13544
|
+
__decorateClass$6([
|
|
13958
13545
|
attr
|
|
13959
13546
|
], BaseTextInput.prototype, "name", 2);
|
|
13960
|
-
__decorateClass$
|
|
13547
|
+
__decorateClass$6([
|
|
13961
13548
|
attr
|
|
13962
13549
|
], BaseTextInput.prototype, "pattern", 2);
|
|
13963
|
-
__decorateClass$
|
|
13550
|
+
__decorateClass$6([
|
|
13964
13551
|
attr
|
|
13965
13552
|
], BaseTextInput.prototype, "placeholder", 2);
|
|
13966
|
-
__decorateClass$
|
|
13553
|
+
__decorateClass$6([
|
|
13967
13554
|
attr({ attribute: "readonly", mode: "boolean" })
|
|
13968
13555
|
], BaseTextInput.prototype, "readOnly", 2);
|
|
13969
|
-
__decorateClass$
|
|
13556
|
+
__decorateClass$6([
|
|
13970
13557
|
attr({ mode: "boolean" })
|
|
13971
13558
|
], BaseTextInput.prototype, "required", 2);
|
|
13972
|
-
__decorateClass$
|
|
13559
|
+
__decorateClass$6([
|
|
13973
13560
|
attr({ converter: nullableNumberConverter })
|
|
13974
13561
|
], BaseTextInput.prototype, "size", 2);
|
|
13975
|
-
__decorateClass$
|
|
13562
|
+
__decorateClass$6([
|
|
13976
13563
|
attr({
|
|
13977
13564
|
converter: {
|
|
13978
13565
|
fromView: (value) => typeof value === "string" ? ["true", ""].includes(value.trim().toLowerCase()) : null,
|
|
@@ -13980,34 +13567,18 @@ __decorateClass$8([
|
|
|
13980
13567
|
}
|
|
13981
13568
|
})
|
|
13982
13569
|
], BaseTextInput.prototype, "spellcheck", 2);
|
|
13983
|
-
__decorateClass$
|
|
13570
|
+
__decorateClass$6([
|
|
13984
13571
|
attr
|
|
13985
13572
|
], BaseTextInput.prototype, "type", 2);
|
|
13986
|
-
__decorateClass$
|
|
13573
|
+
__decorateClass$6([
|
|
13987
13574
|
observable
|
|
13988
13575
|
], BaseTextInput.prototype, "control", 2);
|
|
13989
|
-
__decorateClass$
|
|
13576
|
+
__decorateClass$6([
|
|
13990
13577
|
observable
|
|
13991
13578
|
], BaseTextInput.prototype, "controlLabel", 2);
|
|
13992
13579
|
|
|
13993
|
-
var __defProp$7 = Object.defineProperty;
|
|
13994
|
-
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
13995
|
-
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
13996
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
13997
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13998
|
-
if (decorator = decorators[i])
|
|
13999
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14000
|
-
if (kind && result) __defProp$7(target, key, result);
|
|
14001
|
-
return result;
|
|
14002
|
-
};
|
|
14003
13580
|
class TextInput extends BaseTextInput {
|
|
14004
13581
|
}
|
|
14005
|
-
__decorateClass$7([
|
|
14006
|
-
attr
|
|
14007
|
-
], TextInput.prototype, "appearance", 2);
|
|
14008
|
-
__decorateClass$7([
|
|
14009
|
-
attr({ attribute: "control-size" })
|
|
14010
|
-
], TextInput.prototype, "controlSize", 2);
|
|
14011
13582
|
applyMixins(TextInput, StartEnd);
|
|
14012
13583
|
|
|
14013
13584
|
TextInput.define(definition$5);
|
|
@@ -14054,16 +13625,6 @@ const definition$4 = {
|
|
|
14054
13625
|
template: template$4
|
|
14055
13626
|
};
|
|
14056
13627
|
|
|
14057
|
-
var __defProp$6 = Object.defineProperty;
|
|
14058
|
-
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
14059
|
-
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
14060
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
14061
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14062
|
-
if (decorator = decorators[i])
|
|
14063
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14064
|
-
if (kind && result) __defProp$6(target, key, result);
|
|
14065
|
-
return result;
|
|
14066
|
-
};
|
|
14067
13628
|
class Text extends FASTElement {
|
|
14068
13629
|
constructor() {
|
|
14069
13630
|
super(...arguments);
|
|
@@ -14073,44 +13634,8 @@ class Text extends FASTElement {
|
|
|
14073
13634
|
* @internal
|
|
14074
13635
|
*/
|
|
14075
13636
|
this.elementInternals = this.attachInternals();
|
|
14076
|
-
this.nowrap = false;
|
|
14077
|
-
this.truncate = false;
|
|
14078
|
-
this.italic = false;
|
|
14079
|
-
this.underline = false;
|
|
14080
|
-
this.strikethrough = false;
|
|
14081
|
-
this.block = false;
|
|
14082
13637
|
}
|
|
14083
13638
|
}
|
|
14084
|
-
__decorateClass$6([
|
|
14085
|
-
attr({ mode: "boolean" })
|
|
14086
|
-
], Text.prototype, "nowrap", 2);
|
|
14087
|
-
__decorateClass$6([
|
|
14088
|
-
attr({ mode: "boolean" })
|
|
14089
|
-
], Text.prototype, "truncate", 2);
|
|
14090
|
-
__decorateClass$6([
|
|
14091
|
-
attr({ mode: "boolean" })
|
|
14092
|
-
], Text.prototype, "italic", 2);
|
|
14093
|
-
__decorateClass$6([
|
|
14094
|
-
attr({ mode: "boolean" })
|
|
14095
|
-
], Text.prototype, "underline", 2);
|
|
14096
|
-
__decorateClass$6([
|
|
14097
|
-
attr({ mode: "boolean" })
|
|
14098
|
-
], Text.prototype, "strikethrough", 2);
|
|
14099
|
-
__decorateClass$6([
|
|
14100
|
-
attr({ mode: "boolean" })
|
|
14101
|
-
], Text.prototype, "block", 2);
|
|
14102
|
-
__decorateClass$6([
|
|
14103
|
-
attr
|
|
14104
|
-
], Text.prototype, "size", 2);
|
|
14105
|
-
__decorateClass$6([
|
|
14106
|
-
attr
|
|
14107
|
-
], Text.prototype, "font", 2);
|
|
14108
|
-
__decorateClass$6([
|
|
14109
|
-
attr
|
|
14110
|
-
], Text.prototype, "weight", 2);
|
|
14111
|
-
__decorateClass$6([
|
|
14112
|
-
attr
|
|
14113
|
-
], Text.prototype, "align", 2);
|
|
14114
13639
|
|
|
14115
13640
|
Text.define(definition$4);
|
|
14116
13641
|
|