@fluentui/web-components 3.0.0-rc.29 → 3.0.0-rc.30
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 +12 -2
- package/custom-elements.json +654 -654
- package/dist/esm/accordion/accordion.bench.d.ts +2 -0
- package/dist/esm/accordion/accordion.bench.js +2 -5
- package/dist/esm/accordion/accordion.bench.js.map +1 -1
- package/dist/esm/accordion/accordion.definition.d.ts +4 -4
- package/dist/esm/accordion/accordion.definition.js +7 -6
- package/dist/esm/accordion/accordion.definition.js.map +1 -1
- package/dist/esm/accordion/define.js +2 -2
- package/dist/esm/accordion/define.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.bench.d.ts +1 -0
- package/dist/esm/accordion-item/accordion-item.bench.js +1 -3
- package/dist/esm/accordion-item/accordion-item.bench.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.definition.d.ts +3 -4
- package/dist/esm/accordion-item/accordion-item.definition.js +6 -6
- package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
- package/dist/esm/accordion-item/define.js +2 -2
- package/dist/esm/accordion-item/define.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.bench.d.ts +1 -0
- package/dist/esm/anchor-button/anchor-button.bench.js +1 -3
- package/dist/esm/anchor-button/anchor-button.bench.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.definition.d.ts +4 -4
- package/dist/esm/anchor-button/anchor-button.definition.js +7 -6
- package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
- package/dist/esm/anchor-button/define.js +2 -2
- package/dist/esm/anchor-button/define.js.map +1 -1
- package/dist/esm/avatar/avatar.bench.d.ts +1 -0
- package/dist/esm/avatar/avatar.bench.js +1 -3
- package/dist/esm/avatar/avatar.bench.js.map +1 -1
- package/dist/esm/avatar/avatar.definition.d.ts +3 -5
- package/dist/esm/avatar/avatar.definition.js +6 -7
- package/dist/esm/avatar/avatar.definition.js.map +1 -1
- package/dist/esm/avatar/define.js +2 -2
- package/dist/esm/avatar/define.js.map +1 -1
- package/dist/esm/badge/badge.bench.d.ts +1 -0
- package/dist/esm/badge/badge.bench.js +1 -3
- package/dist/esm/badge/badge.bench.js.map +1 -1
- package/dist/esm/badge/badge.definition.d.ts +3 -4
- package/dist/esm/badge/badge.definition.js +6 -6
- package/dist/esm/badge/badge.definition.js.map +1 -1
- package/dist/esm/badge/define.js +2 -2
- package/dist/esm/badge/define.js.map +1 -1
- package/dist/esm/button/button.bench.d.ts +1 -0
- package/dist/esm/button/button.bench.js +1 -3
- package/dist/esm/button/button.bench.js.map +1 -1
- package/dist/esm/button/button.definition.d.ts +3 -5
- package/dist/esm/button/button.definition.js +6 -7
- package/dist/esm/button/button.definition.js.map +1 -1
- package/dist/esm/button/define.js +2 -2
- package/dist/esm/button/define.js.map +1 -1
- package/dist/esm/checkbox/checkbox.bench.d.ts +1 -0
- package/dist/esm/checkbox/checkbox.bench.js +1 -3
- package/dist/esm/checkbox/checkbox.bench.js.map +1 -1
- package/dist/esm/checkbox/checkbox.definition.d.ts +3 -5
- package/dist/esm/checkbox/checkbox.definition.js +6 -7
- package/dist/esm/checkbox/checkbox.definition.js.map +1 -1
- package/dist/esm/checkbox/define.js +2 -2
- package/dist/esm/checkbox/define.js.map +1 -1
- package/dist/esm/compound-button/compound-button.bench.d.ts +1 -0
- package/dist/esm/compound-button/compound-button.bench.js +1 -3
- package/dist/esm/compound-button/compound-button.bench.js.map +1 -1
- package/dist/esm/compound-button/compound-button.definition.d.ts +4 -4
- package/dist/esm/compound-button/compound-button.definition.js +7 -6
- package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
- package/dist/esm/compound-button/define.js +2 -2
- package/dist/esm/compound-button/define.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.bench.d.ts +1 -0
- package/dist/esm/counter-badge/counter-badge.bench.js +1 -3
- package/dist/esm/counter-badge/counter-badge.bench.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.definition.d.ts +4 -4
- package/dist/esm/counter-badge/counter-badge.definition.js +7 -6
- package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -1
- package/dist/esm/counter-badge/define.js +2 -2
- package/dist/esm/counter-badge/define.js.map +1 -1
- package/dist/esm/dialog/define.js +2 -2
- package/dist/esm/dialog/define.js.map +1 -1
- package/dist/esm/dialog/dialog.bench.d.ts +1 -0
- package/dist/esm/dialog/dialog.bench.js +1 -3
- package/dist/esm/dialog/dialog.bench.js.map +1 -1
- package/dist/esm/dialog/dialog.definition.d.ts +3 -5
- package/dist/esm/dialog/dialog.definition.js +7 -8
- package/dist/esm/dialog/dialog.definition.js.map +1 -1
- package/dist/esm/dialog-body/define.js +2 -2
- package/dist/esm/dialog-body/define.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.bench.d.ts +1 -0
- package/dist/esm/dialog-body/dialog-body.bench.js +1 -3
- package/dist/esm/dialog-body/dialog-body.bench.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.definition.d.ts +3 -5
- package/dist/esm/dialog-body/dialog-body.definition.js +7 -8
- package/dist/esm/dialog-body/dialog-body.definition.js.map +1 -1
- package/dist/esm/divider/define.js +2 -2
- package/dist/esm/divider/define.js.map +1 -1
- package/dist/esm/divider/divider.bench.d.ts +1 -0
- package/dist/esm/divider/divider.bench.js +1 -3
- package/dist/esm/divider/divider.bench.js.map +1 -1
- package/dist/esm/divider/divider.definition.d.ts +3 -5
- package/dist/esm/divider/divider.definition.js +7 -8
- package/dist/esm/divider/divider.definition.js.map +1 -1
- package/dist/esm/drawer/define.js +2 -2
- package/dist/esm/drawer/define.js.map +1 -1
- package/dist/esm/drawer/drawer.definition.d.ts +3 -4
- package/dist/esm/drawer/drawer.definition.js +6 -6
- package/dist/esm/drawer/drawer.definition.js.map +1 -1
- package/dist/esm/drawer/drawer.styles.css +15 -16
- package/dist/esm/drawer-body/define.js +2 -2
- package/dist/esm/drawer-body/define.js.map +1 -1
- package/dist/esm/drawer-body/drawer-body.definition.d.ts +3 -4
- package/dist/esm/drawer-body/drawer-body.definition.js +6 -6
- package/dist/esm/drawer-body/drawer-body.definition.js.map +1 -1
- package/dist/esm/dropdown/define.js +2 -2
- package/dist/esm/dropdown/define.js.map +1 -1
- package/dist/esm/dropdown/dropdown.definition.d.ts +3 -5
- package/dist/esm/dropdown/dropdown.definition.js +6 -7
- package/dist/esm/dropdown/dropdown.definition.js.map +1 -1
- package/dist/esm/field/define.js +2 -2
- package/dist/esm/field/define.js.map +1 -1
- package/dist/esm/field/field.bench.d.ts +1 -0
- package/dist/esm/field/field.bench.js +1 -3
- package/dist/esm/field/field.bench.js.map +1 -1
- package/dist/esm/field/field.definition.d.ts +3 -5
- package/dist/esm/field/field.definition.js +7 -8
- package/dist/esm/field/field.definition.js.map +1 -1
- package/dist/esm/image/define.js +2 -2
- package/dist/esm/image/define.js.map +1 -1
- package/dist/esm/image/image.bench.d.ts +1 -0
- package/dist/esm/image/image.bench.js +1 -3
- package/dist/esm/image/image.bench.js.map +1 -1
- package/dist/esm/image/image.definition.d.ts +3 -5
- package/dist/esm/image/image.definition.js +7 -8
- package/dist/esm/image/image.definition.js.map +1 -1
- package/dist/esm/label/define.js +2 -2
- package/dist/esm/label/define.js.map +1 -1
- package/dist/esm/label/label.bench.d.ts +1 -0
- package/dist/esm/label/label.bench.js +1 -3
- package/dist/esm/label/label.bench.js.map +1 -1
- package/dist/esm/label/label.definition.d.ts +3 -6
- package/dist/esm/label/label.definition.js +6 -8
- package/dist/esm/label/label.definition.js.map +1 -1
- package/dist/esm/link/define.js +2 -2
- package/dist/esm/link/define.js.map +1 -1
- package/dist/esm/link/link.bench.d.ts +1 -0
- package/dist/esm/link/link.bench.js +1 -3
- package/dist/esm/link/link.bench.js.map +1 -1
- package/dist/esm/link/link.definition.d.ts +4 -4
- package/dist/esm/link/link.definition.js +7 -6
- package/dist/esm/link/link.definition.js.map +1 -1
- package/dist/esm/listbox/define.js +2 -2
- package/dist/esm/listbox/define.js.map +1 -1
- package/dist/esm/listbox/listbox.definition.d.ts +3 -5
- package/dist/esm/listbox/listbox.definition.js +6 -7
- package/dist/esm/listbox/listbox.definition.js.map +1 -1
- package/dist/esm/listbox/listbox.styles.css +2 -2
- package/dist/esm/menu/define.js +2 -2
- package/dist/esm/menu/define.js.map +1 -1
- package/dist/esm/menu/menu.bench.d.ts +4 -0
- package/dist/esm/menu/menu.bench.js +4 -9
- package/dist/esm/menu/menu.bench.js.map +1 -1
- package/dist/esm/menu/menu.definition.d.ts +3 -5
- package/dist/esm/menu/menu.definition.js +6 -7
- package/dist/esm/menu/menu.definition.js.map +1 -1
- package/dist/esm/menu/menu.styles.css +5 -5
- package/dist/esm/menu-button/define.js +2 -2
- package/dist/esm/menu-button/define.js.map +1 -1
- package/dist/esm/menu-button/menu-button.bench.d.ts +1 -0
- package/dist/esm/menu-button/menu-button.bench.js +1 -3
- package/dist/esm/menu-button/menu-button.bench.js.map +1 -1
- package/dist/esm/menu-button/menu-button.definition.d.ts +4 -4
- package/dist/esm/menu-button/menu-button.definition.js +8 -7
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
- package/dist/esm/menu-item/define.js +2 -2
- package/dist/esm/menu-item/define.js.map +1 -1
- package/dist/esm/menu-item/menu-item.bench.d.ts +1 -0
- package/dist/esm/menu-item/menu-item.bench.js +1 -3
- package/dist/esm/menu-item/menu-item.bench.js.map +1 -1
- package/dist/esm/menu-item/menu-item.definition.d.ts +4 -4
- package/dist/esm/menu-item/menu-item.definition.js +7 -6
- package/dist/esm/menu-item/menu-item.definition.js.map +1 -1
- package/dist/esm/menu-item/menu-item.styles.css +8 -3
- package/dist/esm/menu-list/define.js +2 -2
- package/dist/esm/menu-list/define.js.map +1 -1
- package/dist/esm/menu-list/menu-list.bench.d.ts +2 -0
- package/dist/esm/menu-list/menu-list.bench.js +2 -5
- package/dist/esm/menu-list/menu-list.bench.js.map +1 -1
- package/dist/esm/menu-list/menu-list.definition.d.ts +4 -4
- package/dist/esm/menu-list/menu-list.definition.js +7 -6
- package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
- package/dist/esm/message-bar/define.js +2 -2
- package/dist/esm/message-bar/define.js.map +1 -1
- package/dist/esm/message-bar/message-bar.bench.d.ts +2 -0
- package/dist/esm/message-bar/message-bar.bench.js +2 -5
- package/dist/esm/message-bar/message-bar.bench.js.map +1 -1
- package/dist/esm/message-bar/message-bar.definition.d.ts +3 -5
- package/dist/esm/message-bar/message-bar.definition.js +5 -10
- package/dist/esm/message-bar/message-bar.definition.js.map +1 -1
- package/dist/esm/option/define.js +2 -2
- package/dist/esm/option/define.js.map +1 -1
- package/dist/esm/option/option.definition.d.ts +3 -5
- package/dist/esm/option/option.definition.js +6 -7
- package/dist/esm/option/option.definition.js.map +1 -1
- package/dist/esm/progress-bar/define.js +2 -2
- package/dist/esm/progress-bar/define.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.bench.d.ts +1 -0
- package/dist/esm/progress-bar/progress-bar.bench.js +1 -3
- package/dist/esm/progress-bar/progress-bar.bench.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.definition.d.ts +3 -6
- package/dist/esm/progress-bar/progress-bar.definition.js +6 -8
- package/dist/esm/progress-bar/progress-bar.definition.js.map +1 -1
- package/dist/esm/radio/define.js +2 -2
- package/dist/esm/radio/define.js.map +1 -1
- package/dist/esm/radio/radio.bench.d.ts +1 -0
- package/dist/esm/radio/radio.bench.js +1 -3
- package/dist/esm/radio/radio.bench.js.map +1 -1
- package/dist/esm/radio/radio.definition.d.ts +3 -6
- package/dist/esm/radio/radio.definition.js +6 -8
- package/dist/esm/radio/radio.definition.js.map +1 -1
- package/dist/esm/radio-group/define.js +2 -2
- package/dist/esm/radio-group/define.js.map +1 -1
- package/dist/esm/radio-group/radio-group.bench.d.ts +2 -0
- package/dist/esm/radio-group/radio-group.bench.js +2 -5
- package/dist/esm/radio-group/radio-group.bench.js.map +1 -1
- package/dist/esm/radio-group/radio-group.definition.d.ts +3 -6
- package/dist/esm/radio-group/radio-group.definition.js +6 -8
- package/dist/esm/radio-group/radio-group.definition.js.map +1 -1
- package/dist/esm/rating-display/define.js +2 -2
- package/dist/esm/rating-display/define.js.map +1 -1
- package/dist/esm/rating-display/rating-display.definition.d.ts +3 -5
- package/dist/esm/rating-display/rating-display.definition.js +6 -7
- package/dist/esm/rating-display/rating-display.definition.js.map +1 -1
- package/dist/esm/slider/define.js +2 -2
- package/dist/esm/slider/define.js.map +1 -1
- package/dist/esm/slider/slider.bench.d.ts +1 -0
- package/dist/esm/slider/slider.bench.js +1 -3
- package/dist/esm/slider/slider.bench.js.map +1 -1
- package/dist/esm/slider/slider.definition.d.ts +3 -6
- package/dist/esm/slider/slider.definition.js +6 -8
- package/dist/esm/slider/slider.definition.js.map +1 -1
- package/dist/esm/spinner/define.js +2 -2
- package/dist/esm/spinner/define.js.map +1 -1
- package/dist/esm/spinner/spinner.bench.d.ts +1 -0
- package/dist/esm/spinner/spinner.bench.js +1 -3
- package/dist/esm/spinner/spinner.bench.js.map +1 -1
- package/dist/esm/spinner/spinner.definition.d.ts +4 -4
- package/dist/esm/spinner/spinner.definition.js +7 -6
- package/dist/esm/spinner/spinner.definition.js.map +1 -1
- package/dist/esm/switch/define.js +2 -2
- package/dist/esm/switch/define.js.map +1 -1
- package/dist/esm/switch/switch.bench.d.ts +1 -0
- package/dist/esm/switch/switch.bench.js +1 -3
- package/dist/esm/switch/switch.bench.js.map +1 -1
- package/dist/esm/switch/switch.definition.d.ts +3 -5
- package/dist/esm/switch/switch.definition.js +7 -8
- package/dist/esm/switch/switch.definition.js.map +1 -1
- package/dist/esm/tab/define.js +2 -2
- package/dist/esm/tab/define.js.map +1 -1
- package/dist/esm/tab/tab.bench.d.ts +1 -0
- package/dist/esm/tab/tab.bench.js +1 -3
- package/dist/esm/tab/tab.bench.js.map +1 -1
- package/dist/esm/tab/tab.definition.d.ts +7 -2
- package/dist/esm/tab/tab.definition.js +11 -5
- package/dist/esm/tab/tab.definition.js.map +1 -1
- package/dist/esm/tablist/define.js +2 -2
- package/dist/esm/tablist/define.js.map +1 -1
- package/dist/esm/tablist/tablist.bench.d.ts +2 -0
- package/dist/esm/tablist/tablist.bench.js +2 -5
- package/dist/esm/tablist/tablist.bench.js.map +1 -1
- package/dist/esm/tablist/tablist.definition.d.ts +4 -4
- package/dist/esm/tablist/tablist.definition.js +8 -7
- package/dist/esm/tablist/tablist.definition.js.map +1 -1
- package/dist/esm/text/define.js +2 -2
- package/dist/esm/text/define.js.map +1 -1
- package/dist/esm/text/text.bench.d.ts +1 -0
- package/dist/esm/text/text.bench.js +1 -3
- package/dist/esm/text/text.bench.js.map +1 -1
- package/dist/esm/text/text.definition.d.ts +3 -6
- package/dist/esm/text/text.definition.js +6 -8
- package/dist/esm/text/text.definition.js.map +1 -1
- package/dist/esm/text-input/define.js +2 -2
- package/dist/esm/text-input/define.js.map +1 -1
- package/dist/esm/text-input/text-input.bench.d.ts +1 -0
- package/dist/esm/text-input/text-input.bench.js +1 -3
- package/dist/esm/text-input/text-input.bench.js.map +1 -1
- package/dist/esm/text-input/text-input.definition.d.ts +3 -5
- package/dist/esm/text-input/text-input.definition.js +7 -8
- package/dist/esm/text-input/text-input.definition.js.map +1 -1
- package/dist/esm/text-input/text-input.template.html +1 -2
- package/dist/esm/textarea/define.js +2 -2
- package/dist/esm/textarea/define.js.map +1 -1
- package/dist/esm/textarea/textarea.bench.d.ts +1 -0
- package/dist/esm/textarea/textarea.bench.js +1 -3
- package/dist/esm/textarea/textarea.bench.js.map +1 -1
- package/dist/esm/textarea/textarea.definition.d.ts +3 -5
- package/dist/esm/textarea/textarea.definition.js +7 -8
- package/dist/esm/textarea/textarea.definition.js.map +1 -1
- package/dist/esm/toggle-button/define.js +2 -2
- package/dist/esm/toggle-button/define.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.bench.d.ts +1 -0
- package/dist/esm/toggle-button/toggle-button.bench.js +1 -3
- package/dist/esm/toggle-button/toggle-button.bench.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.definition.d.ts +3 -4
- package/dist/esm/toggle-button/toggle-button.definition.js +6 -6
- package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.styles.css +3 -0
- package/dist/esm/toggle-button/toggle-button.styles.js +3 -0
- package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/esm/tooltip/define.js +2 -2
- package/dist/esm/tooltip/define.js.map +1 -1
- package/dist/esm/tooltip/tooltip.definition.d.ts +3 -5
- package/dist/esm/tooltip/tooltip.definition.js +6 -7
- package/dist/esm/tooltip/tooltip.definition.js.map +1 -1
- package/dist/esm/tree/define.js +2 -2
- package/dist/esm/tree/define.js.map +1 -1
- package/dist/esm/tree/tree.bench.d.ts +1 -0
- package/dist/esm/tree/tree.bench.js +1 -3
- package/dist/esm/tree/tree.bench.js.map +1 -1
- package/dist/esm/tree/tree.definition.d.ts +3 -4
- package/dist/esm/tree/tree.definition.js +9 -9
- package/dist/esm/tree/tree.definition.js.map +1 -1
- package/dist/esm/tree-item/define.js +2 -2
- package/dist/esm/tree-item/define.js.map +1 -1
- package/dist/esm/tree-item/tree-item.bench.d.ts +1 -0
- package/dist/esm/tree-item/tree-item.bench.js +1 -3
- package/dist/esm/tree-item/tree-item.bench.js.map +1 -1
- package/dist/esm/tree-item/tree-item.definition.d.ts +3 -4
- package/dist/esm/tree-item/tree-item.definition.js +9 -9
- package/dist/esm/tree-item/tree-item.definition.js.map +1 -1
- package/dist/web-components-all.js +788 -749
- package/dist/web-components-all.min.js +6 -6
- package/dist/web-components.d.ts +99 -155
- package/dist/web-components.js +760 -721
- package/dist/web-components.min.js +5 -5
- package/package.json +1 -1
|
@@ -4695,114 +4695,6 @@ const FASTElement = Object.assign(createFASTElement(HTMLElement), {
|
|
|
4695
4695
|
defineAsync,
|
|
4696
4696
|
});
|
|
4697
4697
|
|
|
4698
|
-
function staticallyCompose(item) {
|
|
4699
|
-
if (!item) {
|
|
4700
|
-
return InlineTemplateDirective.empty;
|
|
4701
|
-
}
|
|
4702
|
-
if (typeof item === "string") {
|
|
4703
|
-
return new InlineTemplateDirective(item);
|
|
4704
|
-
}
|
|
4705
|
-
if ("inline" in item) {
|
|
4706
|
-
return item.inline();
|
|
4707
|
-
}
|
|
4708
|
-
return item;
|
|
4709
|
-
}
|
|
4710
|
-
|
|
4711
|
-
class StartEnd {
|
|
4712
|
-
}
|
|
4713
|
-
function endSlotTemplate(options) {
|
|
4714
|
-
return html`<slot name=end ${ref("end")}>${staticallyCompose(options.end)}</slot>`.inline();
|
|
4715
|
-
}
|
|
4716
|
-
function startSlotTemplate(options) {
|
|
4717
|
-
return html`<slot name=start ${ref("start")}>${staticallyCompose(options.start)}</slot>`.inline();
|
|
4718
|
-
}
|
|
4719
|
-
|
|
4720
|
-
function applyMixins(derivedCtor, ...baseCtors) {
|
|
4721
|
-
const derivedAttributes = AttributeConfiguration.locate(derivedCtor);
|
|
4722
|
-
baseCtors.forEach((baseCtor) => {
|
|
4723
|
-
Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
|
|
4724
|
-
if (name !== "constructor") {
|
|
4725
|
-
Object.defineProperty(
|
|
4726
|
-
derivedCtor.prototype,
|
|
4727
|
-
name,
|
|
4728
|
-
/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */
|
|
4729
|
-
Object.getOwnPropertyDescriptor(baseCtor.prototype, name)
|
|
4730
|
-
);
|
|
4731
|
-
}
|
|
4732
|
-
});
|
|
4733
|
-
const baseAttributes = AttributeConfiguration.locate(baseCtor);
|
|
4734
|
-
baseAttributes.forEach((x) => derivedAttributes.push(x));
|
|
4735
|
-
});
|
|
4736
|
-
}
|
|
4737
|
-
|
|
4738
|
-
var __defProp$P = Object.defineProperty;
|
|
4739
|
-
var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
|
|
4740
|
-
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
4741
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
|
|
4742
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4743
|
-
if (decorator = decorators[i])
|
|
4744
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4745
|
-
if (kind && result) __defProp$P(target, key, result);
|
|
4746
|
-
return result;
|
|
4747
|
-
};
|
|
4748
|
-
class BaseAccordionItem extends FASTElement {
|
|
4749
|
-
constructor() {
|
|
4750
|
-
super(...arguments);
|
|
4751
|
-
/**
|
|
4752
|
-
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
4753
|
-
*
|
|
4754
|
-
* @internal
|
|
4755
|
-
*/
|
|
4756
|
-
this.elementInternals = this.attachInternals();
|
|
4757
|
-
this.headinglevel = 2;
|
|
4758
|
-
this.expanded = false;
|
|
4759
|
-
this.disabled = false;
|
|
4760
|
-
}
|
|
4761
|
-
}
|
|
4762
|
-
__decorateClass$P([
|
|
4763
|
-
attr({
|
|
4764
|
-
attribute: "heading-level",
|
|
4765
|
-
mode: "fromView",
|
|
4766
|
-
converter: nullableNumberConverter
|
|
4767
|
-
})
|
|
4768
|
-
], BaseAccordionItem.prototype, "headinglevel", 2);
|
|
4769
|
-
__decorateClass$P([
|
|
4770
|
-
attr({ mode: "boolean" })
|
|
4771
|
-
], BaseAccordionItem.prototype, "expanded", 2);
|
|
4772
|
-
__decorateClass$P([
|
|
4773
|
-
attr({ mode: "boolean" })
|
|
4774
|
-
], BaseAccordionItem.prototype, "disabled", 2);
|
|
4775
|
-
__decorateClass$P([
|
|
4776
|
-
observable
|
|
4777
|
-
], BaseAccordionItem.prototype, "expandbutton", 2);
|
|
4778
|
-
|
|
4779
|
-
var __defProp$O = Object.defineProperty;
|
|
4780
|
-
var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
|
|
4781
|
-
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
4782
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
|
|
4783
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4784
|
-
if (decorator = decorators[i])
|
|
4785
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4786
|
-
if (kind && result) __defProp$O(target, key, result);
|
|
4787
|
-
return result;
|
|
4788
|
-
};
|
|
4789
|
-
class AccordionItem extends BaseAccordionItem {
|
|
4790
|
-
constructor() {
|
|
4791
|
-
super(...arguments);
|
|
4792
|
-
this.block = false;
|
|
4793
|
-
}
|
|
4794
|
-
}
|
|
4795
|
-
__decorateClass$O([
|
|
4796
|
-
attr
|
|
4797
|
-
], AccordionItem.prototype, "size", 2);
|
|
4798
|
-
__decorateClass$O([
|
|
4799
|
-
attr({ attribute: "marker-position" })
|
|
4800
|
-
], AccordionItem.prototype, "markerPosition", 2);
|
|
4801
|
-
__decorateClass$O([
|
|
4802
|
-
attr({ mode: "boolean" })
|
|
4803
|
-
], AccordionItem.prototype, "block", 2);
|
|
4804
|
-
applyMixins(AccordionItem, StartEnd);
|
|
4805
|
-
|
|
4806
4698
|
const hidden = `:host([hidden]){display:none}`;
|
|
4807
4699
|
function display(displayValue) {
|
|
4808
4700
|
return `${hidden}:host{display:${displayValue}}`;
|
|
@@ -5278,6 +5170,28 @@ const zIndexDebug = "var(--zIndexDebug)";
|
|
|
5278
5170
|
|
|
5279
5171
|
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:4/span 1;padding-inline-start:${spacingHorizontalS};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${spacingHorizontalM}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${spacingHorizontalMNudge} ${spacingHorizontalM}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`;
|
|
5280
5172
|
|
|
5173
|
+
function staticallyCompose(item) {
|
|
5174
|
+
if (!item) {
|
|
5175
|
+
return InlineTemplateDirective.empty;
|
|
5176
|
+
}
|
|
5177
|
+
if (typeof item === "string") {
|
|
5178
|
+
return new InlineTemplateDirective(item);
|
|
5179
|
+
}
|
|
5180
|
+
if ("inline" in item) {
|
|
5181
|
+
return item.inline();
|
|
5182
|
+
}
|
|
5183
|
+
return item;
|
|
5184
|
+
}
|
|
5185
|
+
|
|
5186
|
+
class StartEnd {
|
|
5187
|
+
}
|
|
5188
|
+
function endSlotTemplate(options) {
|
|
5189
|
+
return html`<slot name=end ${ref("end")}>${staticallyCompose(options.end)}</slot>`.inline();
|
|
5190
|
+
}
|
|
5191
|
+
function startSlotTemplate(options) {
|
|
5192
|
+
return html`<slot name=start ${ref("start")}>${staticallyCompose(options.start)}</slot>`.inline();
|
|
5193
|
+
}
|
|
5194
|
+
|
|
5281
5195
|
const chevronRight20Filled = html.partial(`<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>`);
|
|
5282
5196
|
const chevronDown20Filled = html.partial(`<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>`);
|
|
5283
5197
|
function accordionItemTemplate(options = {}) {
|
|
@@ -5288,13 +5202,100 @@ const template$F = accordionItemTemplate({
|
|
|
5288
5202
|
expandedIcon: chevronDown20Filled
|
|
5289
5203
|
});
|
|
5290
5204
|
|
|
5291
|
-
const definition$F =
|
|
5205
|
+
const definition$F = {
|
|
5292
5206
|
name: tagName$F,
|
|
5293
|
-
|
|
5294
|
-
styles: styles$F
|
|
5295
|
-
|
|
5207
|
+
registry: FluentDesignSystem.registry,
|
|
5208
|
+
styles: styles$F,
|
|
5209
|
+
template: template$F
|
|
5210
|
+
};
|
|
5211
|
+
|
|
5212
|
+
function applyMixins(derivedCtor, ...baseCtors) {
|
|
5213
|
+
const derivedAttributes = AttributeConfiguration.locate(derivedCtor);
|
|
5214
|
+
baseCtors.forEach((baseCtor) => {
|
|
5215
|
+
Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
|
|
5216
|
+
if (name !== "constructor") {
|
|
5217
|
+
Object.defineProperty(
|
|
5218
|
+
derivedCtor.prototype,
|
|
5219
|
+
name,
|
|
5220
|
+
/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */
|
|
5221
|
+
Object.getOwnPropertyDescriptor(baseCtor.prototype, name)
|
|
5222
|
+
);
|
|
5223
|
+
}
|
|
5224
|
+
});
|
|
5225
|
+
const baseAttributes = AttributeConfiguration.locate(baseCtor);
|
|
5226
|
+
baseAttributes.forEach((x) => derivedAttributes.push(x));
|
|
5227
|
+
});
|
|
5228
|
+
}
|
|
5229
|
+
|
|
5230
|
+
var __defProp$P = Object.defineProperty;
|
|
5231
|
+
var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
|
|
5232
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
5233
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
|
|
5234
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5235
|
+
if (decorator = decorators[i])
|
|
5236
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5237
|
+
if (kind && result) __defProp$P(target, key, result);
|
|
5238
|
+
return result;
|
|
5239
|
+
};
|
|
5240
|
+
class BaseAccordionItem extends FASTElement {
|
|
5241
|
+
constructor() {
|
|
5242
|
+
super(...arguments);
|
|
5243
|
+
/**
|
|
5244
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
5245
|
+
*
|
|
5246
|
+
* @internal
|
|
5247
|
+
*/
|
|
5248
|
+
this.elementInternals = this.attachInternals();
|
|
5249
|
+
this.headinglevel = 2;
|
|
5250
|
+
this.expanded = false;
|
|
5251
|
+
this.disabled = false;
|
|
5252
|
+
}
|
|
5253
|
+
}
|
|
5254
|
+
__decorateClass$P([
|
|
5255
|
+
attr({
|
|
5256
|
+
attribute: "heading-level",
|
|
5257
|
+
mode: "fromView",
|
|
5258
|
+
converter: nullableNumberConverter
|
|
5259
|
+
})
|
|
5260
|
+
], BaseAccordionItem.prototype, "headinglevel", 2);
|
|
5261
|
+
__decorateClass$P([
|
|
5262
|
+
attr({ mode: "boolean" })
|
|
5263
|
+
], BaseAccordionItem.prototype, "expanded", 2);
|
|
5264
|
+
__decorateClass$P([
|
|
5265
|
+
attr({ mode: "boolean" })
|
|
5266
|
+
], BaseAccordionItem.prototype, "disabled", 2);
|
|
5267
|
+
__decorateClass$P([
|
|
5268
|
+
observable
|
|
5269
|
+
], BaseAccordionItem.prototype, "expandbutton", 2);
|
|
5270
|
+
|
|
5271
|
+
var __defProp$O = Object.defineProperty;
|
|
5272
|
+
var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
|
|
5273
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
5274
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
|
|
5275
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5276
|
+
if (decorator = decorators[i])
|
|
5277
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5278
|
+
if (kind && result) __defProp$O(target, key, result);
|
|
5279
|
+
return result;
|
|
5280
|
+
};
|
|
5281
|
+
class AccordionItem extends BaseAccordionItem {
|
|
5282
|
+
constructor() {
|
|
5283
|
+
super(...arguments);
|
|
5284
|
+
this.block = false;
|
|
5285
|
+
}
|
|
5286
|
+
}
|
|
5287
|
+
__decorateClass$O([
|
|
5288
|
+
attr
|
|
5289
|
+
], AccordionItem.prototype, "size", 2);
|
|
5290
|
+
__decorateClass$O([
|
|
5291
|
+
attr({ attribute: "marker-position" })
|
|
5292
|
+
], AccordionItem.prototype, "markerPosition", 2);
|
|
5293
|
+
__decorateClass$O([
|
|
5294
|
+
attr({ mode: "boolean" })
|
|
5295
|
+
], AccordionItem.prototype, "block", 2);
|
|
5296
|
+
applyMixins(AccordionItem, StartEnd);
|
|
5296
5297
|
|
|
5297
|
-
definition$F
|
|
5298
|
+
AccordionItem.define(definition$F);
|
|
5298
5299
|
|
|
5299
5300
|
const AccordionExpandMode = {
|
|
5300
5301
|
single: "single",
|
|
@@ -5302,6 +5303,20 @@ const AccordionExpandMode = {
|
|
|
5302
5303
|
};
|
|
5303
5304
|
const tagName$E = `${FluentDesignSystem.prefix}-accordion`;
|
|
5304
5305
|
|
|
5306
|
+
const styles$E = css`${display("flex")} :host{flex-direction:column;width:100%;contain:content}`;
|
|
5307
|
+
|
|
5308
|
+
function accordionTemplate() {
|
|
5309
|
+
return html`<template><slot ${slotted({ property: "slottedAccordionItems", filter: elements() })}></slot></template>`;
|
|
5310
|
+
}
|
|
5311
|
+
const template$E = accordionTemplate();
|
|
5312
|
+
|
|
5313
|
+
const definition$E = {
|
|
5314
|
+
name: tagName$E,
|
|
5315
|
+
registry: FluentDesignSystem.registry,
|
|
5316
|
+
styles: styles$E,
|
|
5317
|
+
template: template$E
|
|
5318
|
+
};
|
|
5319
|
+
|
|
5305
5320
|
function requestIdleCallback$1(callback, options) {
|
|
5306
5321
|
if ("requestIdleCallback" in globalThis) {
|
|
5307
5322
|
return globalThis.requestIdleCallback(callback, options);
|
|
@@ -5492,20 +5507,7 @@ __decorateClass$N([
|
|
|
5492
5507
|
observable
|
|
5493
5508
|
], Accordion.prototype, "slottedAccordionItems", 2);
|
|
5494
5509
|
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
function accordionTemplate() {
|
|
5498
|
-
return html`<template><slot ${slotted({ property: "slottedAccordionItems", filter: elements() })}></slot></template>`;
|
|
5499
|
-
}
|
|
5500
|
-
const template$E = accordionTemplate();
|
|
5501
|
-
|
|
5502
|
-
const definition$E = Accordion.compose({
|
|
5503
|
-
name: tagName$E,
|
|
5504
|
-
template: template$E,
|
|
5505
|
-
styles: styles$E
|
|
5506
|
-
});
|
|
5507
|
-
|
|
5508
|
-
definition$E.define(FluentDesignSystem.registry);
|
|
5510
|
+
Accordion.define(definition$E);
|
|
5509
5511
|
|
|
5510
5512
|
const ButtonAppearance = {
|
|
5511
5513
|
primary: "primary",
|
|
@@ -5557,6 +5559,23 @@ const AnchorAttributes = {
|
|
|
5557
5559
|
};
|
|
5558
5560
|
const tagName$C = `${FluentDesignSystem.prefix}-anchor-button`;
|
|
5559
5561
|
|
|
5562
|
+
const baseButtonStyles = css`${display("inline-flex")} :host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${borderRadiusNone}}:host([appearance='primary']){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host([appearance='primary']:hover){background-color:${colorBrandBackgroundHover}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${colorNeutralForegroundOnBrand}}:host([appearance='primary']:hover:active){background-color:${colorBrandBackgroundPressed}}:host([appearance='primary']:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host([appearance='outline']){background-color:${colorTransparentBackground}}:host([appearance='outline']:hover){background-color:${colorTransparentBackgroundHover}}:host([appearance='outline']:hover:active){background-color:${colorTransparentBackgroundPressed}}:host([appearance='subtle']){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host([appearance='subtle']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host([appearance='transparent']){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host([appearance='transparent']:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`;
|
|
5563
|
+
const styles$D = css`${baseButtonStyles} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${colorTransparentBackground}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`;
|
|
5564
|
+
|
|
5565
|
+
const styles$C = css`${baseButtonStyles} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;
|
|
5566
|
+
|
|
5567
|
+
function anchorTemplate$1(options = {}) {
|
|
5568
|
+
return html`<template tabindex=0 @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}>${startSlotTemplate(options)} <span class=content part=content><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
5569
|
+
}
|
|
5570
|
+
const template$D = anchorTemplate$1();
|
|
5571
|
+
|
|
5572
|
+
const definition$D = {
|
|
5573
|
+
name: tagName$C,
|
|
5574
|
+
registry: FluentDesignSystem.registry,
|
|
5575
|
+
styles: styles$C,
|
|
5576
|
+
template: template$D
|
|
5577
|
+
};
|
|
5578
|
+
|
|
5560
5579
|
const AnchorPositioningCSSSupported = CSS.supports("anchor-name: --a");
|
|
5561
5580
|
const AnchorPositioningHTMLSupported = "anchor" in HTMLElement.prototype;
|
|
5562
5581
|
const CustomStatesSetSupported = CSS.supports("selector(:state(g))");
|
|
@@ -5804,23 +5823,7 @@ __decorateClass$L([
|
|
|
5804
5823
|
], AnchorButton.prototype, "iconOnly", 2);
|
|
5805
5824
|
applyMixins(AnchorButton, StartEnd);
|
|
5806
5825
|
|
|
5807
|
-
|
|
5808
|
-
const styles$D = css`${baseButtonStyles} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${colorTransparentBackground}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`;
|
|
5809
|
-
|
|
5810
|
-
const styles$C = css`${baseButtonStyles} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;
|
|
5811
|
-
|
|
5812
|
-
function anchorTemplate$1(options = {}) {
|
|
5813
|
-
return html`<template tabindex=0 @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}>${startSlotTemplate(options)} <span class=content part=content><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
5814
|
-
}
|
|
5815
|
-
const template$D = anchorTemplate$1();
|
|
5816
|
-
|
|
5817
|
-
const definition$D = AnchorButton.compose({
|
|
5818
|
-
name: tagName$C,
|
|
5819
|
-
template: template$D,
|
|
5820
|
-
styles: styles$C
|
|
5821
|
-
});
|
|
5822
|
-
|
|
5823
|
-
definition$D.define(FluentDesignSystem.registry);
|
|
5826
|
+
AnchorButton.define(definition$D);
|
|
5824
5827
|
|
|
5825
5828
|
const AvatarActive = {
|
|
5826
5829
|
active: "active",
|
|
@@ -5891,6 +5894,32 @@ const AvatarSize = {
|
|
|
5891
5894
|
};
|
|
5892
5895
|
const tagName$B = `${FluentDesignSystem.prefix}-avatar`;
|
|
5893
5896
|
|
|
5897
|
+
const animations = {
|
|
5898
|
+
fastOutSlowInMax: curveDecelerateMax,
|
|
5899
|
+
fastOutSlowInMid: curveDecelerateMid,
|
|
5900
|
+
fastOutSlowInMin: curveDecelerateMin,
|
|
5901
|
+
slowOutFastInMax: curveAccelerateMax,
|
|
5902
|
+
slowOutFastInMid: curveAccelerateMid,
|
|
5903
|
+
slowOutFastInMin: curveAccelerateMin,
|
|
5904
|
+
fastEase: curveEasyEaseMax,
|
|
5905
|
+
normalEase: curveEasyEase,
|
|
5906
|
+
nullEasing: curveLinear
|
|
5907
|
+
};
|
|
5908
|
+
const styles$B = css`${display("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin} ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick} ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host([data-color='brand']){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host([data-color='dark-red']){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host([data-color='cranberry']){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host([data-color='red']){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host([data-color='pumpkin']){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host([data-color='peach']){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host([data-color='marigold']){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host([data-color='gold']){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host([data-color='brass']){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host([data-color='brown']){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host([data-color='forest']){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host([data-color='seafoam']){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host([data-color='dark-green']){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host([data-color='light-teal']){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host([data-color='teal']){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host([data-color='steel']){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host([data-color='blue']){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host([data-color='royal-blue']){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host([data-color='cornflower']){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host([data-color='navy']){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host([data-color='lavender']){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host([data-color='purple']){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host([data-color='grape']){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host([data-color='lilac']){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host([data-color='pink']){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host([data-color='magenta']){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host([data-color='plum']){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host([data-color='beige']){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host([data-color='mink']){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host([data-color='platinum']){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host([data-color='anchor']){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
|
|
5909
|
+
|
|
5910
|
+
const defaultIconTemplate = html`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;
|
|
5911
|
+
function avatarTemplate() {
|
|
5912
|
+
return html`<slot class=default-slot ${slotted("slottedDefaults")} ${ref("defaultSlot")}></slot><span class=monogram ${ref("monogram")}>${(x) => x.initials}</span> ${defaultIconTemplate}<slot name=badge></slot>`;
|
|
5913
|
+
}
|
|
5914
|
+
const template$C = avatarTemplate();
|
|
5915
|
+
|
|
5916
|
+
const definition$C = {
|
|
5917
|
+
name: tagName$B,
|
|
5918
|
+
registry: FluentDesignSystem.registry,
|
|
5919
|
+
styles: styles$B,
|
|
5920
|
+
template: template$C
|
|
5921
|
+
};
|
|
5922
|
+
|
|
5894
5923
|
const UNWANTED_ENCLOSURES_REGEX = /[\(\[\{][^\)\]\}]*[\)\]\}]/g;
|
|
5895
5924
|
const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
|
|
5896
5925
|
const PHONENUMBER_REGEX = /^\d+[\d\s]*(:?ext|x|)\s*\d+$/i;
|
|
@@ -6155,32 +6184,7 @@ const getHashCode = (str) => {
|
|
|
6155
6184
|
return hashCode;
|
|
6156
6185
|
};
|
|
6157
6186
|
|
|
6158
|
-
|
|
6159
|
-
fastOutSlowInMax: curveDecelerateMax,
|
|
6160
|
-
fastOutSlowInMid: curveDecelerateMid,
|
|
6161
|
-
fastOutSlowInMin: curveDecelerateMin,
|
|
6162
|
-
slowOutFastInMax: curveAccelerateMax,
|
|
6163
|
-
slowOutFastInMid: curveAccelerateMid,
|
|
6164
|
-
slowOutFastInMin: curveAccelerateMin,
|
|
6165
|
-
fastEase: curveEasyEaseMax,
|
|
6166
|
-
normalEase: curveEasyEase,
|
|
6167
|
-
nullEasing: curveLinear
|
|
6168
|
-
};
|
|
6169
|
-
const styles$B = css`${display("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin} ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick} ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host([data-color='brand']){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host([data-color='dark-red']){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host([data-color='cranberry']){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host([data-color='red']){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host([data-color='pumpkin']){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host([data-color='peach']){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host([data-color='marigold']){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host([data-color='gold']){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host([data-color='brass']){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host([data-color='brown']){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host([data-color='forest']){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host([data-color='seafoam']){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host([data-color='dark-green']){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host([data-color='light-teal']){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host([data-color='teal']){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host([data-color='steel']){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host([data-color='blue']){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host([data-color='royal-blue']){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host([data-color='cornflower']){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host([data-color='navy']){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host([data-color='lavender']){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host([data-color='purple']){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host([data-color='grape']){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host([data-color='lilac']){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host([data-color='pink']){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host([data-color='magenta']){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host([data-color='plum']){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host([data-color='beige']){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host([data-color='mink']){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host([data-color='platinum']){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host([data-color='anchor']){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
|
|
6170
|
-
|
|
6171
|
-
const defaultIconTemplate = html`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;
|
|
6172
|
-
function avatarTemplate() {
|
|
6173
|
-
return html`<slot class=default-slot ${slotted("slottedDefaults")} ${ref("defaultSlot")}></slot><span class=monogram ${ref("monogram")}>${(x) => x.initials}</span> ${defaultIconTemplate}<slot name=badge></slot>`;
|
|
6174
|
-
}
|
|
6175
|
-
const template$C = avatarTemplate();
|
|
6176
|
-
|
|
6177
|
-
const definition$C = Avatar.compose({
|
|
6178
|
-
name: tagName$B,
|
|
6179
|
-
template: template$C,
|
|
6180
|
-
styles: styles$B
|
|
6181
|
-
});
|
|
6182
|
-
|
|
6183
|
-
definition$C.define(FluentDesignSystem.registry);
|
|
6187
|
+
Avatar.define(definition$C);
|
|
6184
6188
|
|
|
6185
6189
|
const BadgeAppearance = {
|
|
6186
6190
|
filled: "filled",
|
|
@@ -6213,6 +6217,27 @@ const BadgeSize = {
|
|
|
6213
6217
|
};
|
|
6214
6218
|
const tagName$A = `${FluentDesignSystem.prefix}-badge`;
|
|
6215
6219
|
|
|
6220
|
+
const badgeBaseStyles = css.partial`${display("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase200};line-height:${lineHeightBase200};min-width:20px;height:20px;padding-inline:calc(${spacingHorizontalXS} + ${spacingHorizontalXXS});border-radius:${borderRadiusCircular};border-color:${colorTransparentStroke};background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${strokeWidthThin};border-color:inherit;border-radius:inherit}`;
|
|
6221
|
+
const badgeSizeStyles = css.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${fontSizeBase100};line-height:${lineHeightBase100};padding-inline:calc(${spacingHorizontalXXS} + ${spacingHorizontalXXS})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${fontSizeBase200};line-height:${lineHeightBase200};padding-inline:calc(${spacingHorizontalXS} + ${spacingHorizontalXXS})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${fontSizeBase200};line-height:${lineHeightBase200};padding-inline:calc(${spacingHorizontalSNudge} + ${spacingHorizontalXXS})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`;
|
|
6222
|
+
const badgeFilledStyles = css.partial`:host([color='danger']){background-color:${colorPaletteRedBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='important']){background-color:${colorNeutralForeground1};color:${colorNeutralBackground1}}:host([color='informative']){background-color:${colorNeutralBackground5};color:${colorNeutralForeground3}}:host([color='severe']){background-color:${colorPaletteDarkOrangeBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='subtle']){background-color:${colorNeutralBackground1};color:${colorNeutralForeground1}}:host([color='success']){background-color:${colorPaletteGreenBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='warning']){background-color:${colorPaletteYellowBackground3};color:${colorNeutralForeground1Static}}`;
|
|
6223
|
+
const badgeGhostStyles = css.partial`:host([appearance='ghost']){color:${colorBrandForeground1};background-color:initial}:host([appearance='ghost'][color='danger']){color:${colorPaletteRedForeground3}}:host([appearance='ghost'][color='important']){color:${colorNeutralForeground1}}:host([appearance='ghost'][color='informative']){color:${colorNeutralForeground3}}:host([appearance='ghost'][color='severe']){color:${colorPaletteDarkOrangeForeground3}}:host([appearance='ghost'][color='subtle']){color:${colorNeutralForegroundInverted}}:host([appearance='ghost'][color='success']){color:${colorPaletteGreenForeground3}}:host([appearance='ghost'][color='warning']){color:${colorPaletteYellowForeground2}}`;
|
|
6224
|
+
const badgeOutlineStyles = css.partial`:host([appearance='outline']){border-color:currentColor;color:${colorBrandForeground1};background-color:initial}:host([appearance='outline'][color='danger']){color:${colorPaletteRedForeground3}}:host([appearance='outline'][color='important']){color:${colorNeutralForeground3};border-color:${colorNeutralStrokeAccessible}}:host([appearance='outline'][color='informative']){color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='outline'][color='severe']){color:${colorPaletteDarkOrangeForeground3}}:host([appearance='outline'][color='subtle']){color:${colorNeutralForegroundStaticInverted}}:host([appearance='outline'][color='success']){color:${colorPaletteGreenForeground2}}:host([appearance='outline'][color='warning']){color:${colorPaletteYellowForeground2}}`;
|
|
6225
|
+
const badgeTintStyles = css.partial`:host([appearance='tint']){background-color:${colorBrandBackground2};color:${colorBrandForeground2};border-color:${colorBrandStroke2}}:host([appearance='tint'][color='danger']){background-color:${colorPaletteRedBackground1};color:${colorPaletteRedForeground1};border-color:${colorPaletteRedBorder1}}:host([appearance='tint'][color='important']){background-color:${colorNeutralForeground3};color:${colorNeutralBackground1};border-color:${colorTransparentStroke}}:host([appearance='tint'][color='informative']){background-color:${colorNeutralBackground4};color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='tint'][color='severe']){background-color:${colorPaletteDarkOrangeBackground1};color:${colorPaletteDarkOrangeForeground1};border-color:${colorPaletteDarkOrangeBorder1}}:host([appearance='tint'][color='subtle']){background-color:${colorNeutralBackground1};color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='tint'][color='success']){background-color:${colorPaletteGreenBackground1};color:${colorPaletteGreenForeground1};border-color:${colorPaletteGreenBorder2}}:host([appearance='tint'][color='warning']){background-color:${colorPaletteYellowBackground1};color:${colorPaletteYellowForeground2};border-color:${colorPaletteYellowBorder1}}`;
|
|
6226
|
+
|
|
6227
|
+
const styles$A = css`:host([shape='square']){border-radius:${borderRadiusNone}}:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${borderRadiusSmall}}${badgeTintStyles} ${badgeOutlineStyles} ${badgeGhostStyles} ${badgeFilledStyles} ${badgeSizeStyles} ${badgeBaseStyles} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;
|
|
6228
|
+
|
|
6229
|
+
function badgeTemplate(options = {}) {
|
|
6230
|
+
return html`${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)}`;
|
|
6231
|
+
}
|
|
6232
|
+
const template$B = badgeTemplate();
|
|
6233
|
+
|
|
6234
|
+
const definition$B = {
|
|
6235
|
+
name: tagName$A,
|
|
6236
|
+
registry: FluentDesignSystem.registry,
|
|
6237
|
+
styles: styles$A,
|
|
6238
|
+
template: template$B
|
|
6239
|
+
};
|
|
6240
|
+
|
|
6216
6241
|
var __defProp$I = Object.defineProperty;
|
|
6217
6242
|
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
6218
6243
|
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
@@ -6244,27 +6269,19 @@ __decorateClass$I([
|
|
|
6244
6269
|
], Badge.prototype, "size", 2);
|
|
6245
6270
|
applyMixins(Badge, StartEnd);
|
|
6246
6271
|
|
|
6247
|
-
|
|
6248
|
-
const badgeSizeStyles = css.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${fontSizeBase100};line-height:${lineHeightBase100};padding-inline:calc(${spacingHorizontalXXS} + ${spacingHorizontalXXS})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${fontSizeBase200};line-height:${lineHeightBase200};padding-inline:calc(${spacingHorizontalXS} + ${spacingHorizontalXXS})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${fontSizeBase200};line-height:${lineHeightBase200};padding-inline:calc(${spacingHorizontalSNudge} + ${spacingHorizontalXXS})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`;
|
|
6249
|
-
const badgeFilledStyles = css.partial`:host([color='danger']){background-color:${colorPaletteRedBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='important']){background-color:${colorNeutralForeground1};color:${colorNeutralBackground1}}:host([color='informative']){background-color:${colorNeutralBackground5};color:${colorNeutralForeground3}}:host([color='severe']){background-color:${colorPaletteDarkOrangeBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='subtle']){background-color:${colorNeutralBackground1};color:${colorNeutralForeground1}}:host([color='success']){background-color:${colorPaletteGreenBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='warning']){background-color:${colorPaletteYellowBackground3};color:${colorNeutralForeground1Static}}`;
|
|
6250
|
-
const badgeGhostStyles = css.partial`:host([appearance='ghost']){color:${colorBrandForeground1};background-color:initial}:host([appearance='ghost'][color='danger']){color:${colorPaletteRedForeground3}}:host([appearance='ghost'][color='important']){color:${colorNeutralForeground1}}:host([appearance='ghost'][color='informative']){color:${colorNeutralForeground3}}:host([appearance='ghost'][color='severe']){color:${colorPaletteDarkOrangeForeground3}}:host([appearance='ghost'][color='subtle']){color:${colorNeutralForegroundInverted}}:host([appearance='ghost'][color='success']){color:${colorPaletteGreenForeground3}}:host([appearance='ghost'][color='warning']){color:${colorPaletteYellowForeground2}}`;
|
|
6251
|
-
const badgeOutlineStyles = css.partial`:host([appearance='outline']){border-color:currentColor;color:${colorBrandForeground1};background-color:initial}:host([appearance='outline'][color='danger']){color:${colorPaletteRedForeground3}}:host([appearance='outline'][color='important']){color:${colorNeutralForeground3};border-color:${colorNeutralStrokeAccessible}}:host([appearance='outline'][color='informative']){color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='outline'][color='severe']){color:${colorPaletteDarkOrangeForeground3}}:host([appearance='outline'][color='subtle']){color:${colorNeutralForegroundStaticInverted}}:host([appearance='outline'][color='success']){color:${colorPaletteGreenForeground2}}:host([appearance='outline'][color='warning']){color:${colorPaletteYellowForeground2}}`;
|
|
6252
|
-
const badgeTintStyles = css.partial`:host([appearance='tint']){background-color:${colorBrandBackground2};color:${colorBrandForeground2};border-color:${colorBrandStroke2}}:host([appearance='tint'][color='danger']){background-color:${colorPaletteRedBackground1};color:${colorPaletteRedForeground1};border-color:${colorPaletteRedBorder1}}:host([appearance='tint'][color='important']){background-color:${colorNeutralForeground3};color:${colorNeutralBackground1};border-color:${colorTransparentStroke}}:host([appearance='tint'][color='informative']){background-color:${colorNeutralBackground4};color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='tint'][color='severe']){background-color:${colorPaletteDarkOrangeBackground1};color:${colorPaletteDarkOrangeForeground1};border-color:${colorPaletteDarkOrangeBorder1}}:host([appearance='tint'][color='subtle']){background-color:${colorNeutralBackground1};color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='tint'][color='success']){background-color:${colorPaletteGreenBackground1};color:${colorPaletteGreenForeground1};border-color:${colorPaletteGreenBorder2}}:host([appearance='tint'][color='warning']){background-color:${colorPaletteYellowBackground1};color:${colorPaletteYellowForeground2};border-color:${colorPaletteYellowBorder1}}`;
|
|
6253
|
-
|
|
6254
|
-
const styles$A = css`:host([shape='square']){border-radius:${borderRadiusNone}}:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${borderRadiusSmall}}${badgeTintStyles} ${badgeOutlineStyles} ${badgeGhostStyles} ${badgeFilledStyles} ${badgeSizeStyles} ${badgeBaseStyles} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;
|
|
6272
|
+
Badge.define(definition$B);
|
|
6255
6273
|
|
|
6256
|
-
function
|
|
6257
|
-
return html
|
|
6274
|
+
function buttonTemplate$1(options = {}) {
|
|
6275
|
+
return html`<template @click=${(x, c) => x.clickHandler(c.event)} @keypress=${(x, c) => x.keypressHandler(c.event)}>${startSlotTemplate(options)} <span class=content part=content><slot ${slotted("defaultSlottedContent")}></slot></span>${endSlotTemplate(options)}</template>`;
|
|
6258
6276
|
}
|
|
6259
|
-
const template$
|
|
6260
|
-
|
|
6261
|
-
const definition$B = Badge.compose({
|
|
6262
|
-
name: tagName$A,
|
|
6263
|
-
template: template$B,
|
|
6264
|
-
styles: styles$A
|
|
6265
|
-
});
|
|
6277
|
+
const template$A = buttonTemplate$1();
|
|
6266
6278
|
|
|
6267
|
-
definition$
|
|
6279
|
+
const definition$A = {
|
|
6280
|
+
name: tagName$D,
|
|
6281
|
+
registry: FluentDesignSystem.registry,
|
|
6282
|
+
styles: styles$D,
|
|
6283
|
+
template: template$A
|
|
6284
|
+
};
|
|
6268
6285
|
|
|
6269
6286
|
function maybeSetAutoFocus(element) {
|
|
6270
6287
|
const doc = element.ownerDocument;
|
|
@@ -6576,28 +6593,71 @@ __decorateClass$G([
|
|
|
6576
6593
|
], Button.prototype, "iconOnly", 2);
|
|
6577
6594
|
applyMixins(Button, StartEnd);
|
|
6578
6595
|
|
|
6579
|
-
|
|
6580
|
-
|
|
6596
|
+
Button.define(definition$A);
|
|
6597
|
+
|
|
6598
|
+
const CheckboxShape = {
|
|
6599
|
+
circular: "circular",
|
|
6600
|
+
square: "square"
|
|
6601
|
+
};
|
|
6602
|
+
const CheckboxSize = {
|
|
6603
|
+
medium: "medium",
|
|
6604
|
+
large: "large"
|
|
6605
|
+
};
|
|
6606
|
+
const tagName$z = `${FluentDesignSystem.prefix}-checkbox`;
|
|
6607
|
+
|
|
6608
|
+
const activeState = stateSelector("active");
|
|
6609
|
+
const badInputState = stateSelector("bad-input");
|
|
6610
|
+
const checkedState = stateSelector("checked");
|
|
6611
|
+
const customErrorState = stateSelector("custom-error");
|
|
6612
|
+
const descriptionState = stateSelector("description");
|
|
6613
|
+
const disabledState = stateSelector("disabled");
|
|
6614
|
+
stateSelector("error");
|
|
6615
|
+
const flipBlockState = stateSelector("flip-block");
|
|
6616
|
+
const focusVisibleState = stateSelector("focus-visible");
|
|
6617
|
+
stateSelector("has-message");
|
|
6618
|
+
const indeterminateState = stateSelector("indeterminate");
|
|
6619
|
+
const multipleState = stateSelector("multiple");
|
|
6620
|
+
const openState = stateSelector("open");
|
|
6621
|
+
const patternMismatchState = stateSelector("pattern-mismatch");
|
|
6622
|
+
const placeholderShownState = stateSelector("placeholder-shown");
|
|
6623
|
+
const pressedState = stateSelector("pressed");
|
|
6624
|
+
const rangeOverflowState = stateSelector("range-overflow");
|
|
6625
|
+
const rangeUnderflowState = stateSelector("range-underflow");
|
|
6626
|
+
const requiredState = stateSelector("required");
|
|
6627
|
+
const selectedState = stateSelector("selected");
|
|
6628
|
+
const stepMismatchState = stateSelector("step-mismatch");
|
|
6629
|
+
const submenuState = stateSelector("submenu");
|
|
6630
|
+
const tooLongState = stateSelector("too-long");
|
|
6631
|
+
const tooShortState = stateSelector("too-short");
|
|
6632
|
+
const typeMismatchState = stateSelector("type-mismatch");
|
|
6633
|
+
const userInvalidState = stateSelector("user-invalid");
|
|
6634
|
+
const validState = stateSelector("valid");
|
|
6635
|
+
const valueMissingState = stateSelector("value-missing");
|
|
6636
|
+
|
|
6637
|
+
const styles$z = css`${display("inline-flex")} :host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState}) .checked-indicator{color:${colorNeutralStrokeDisabled}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${checkedState}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:FieldText}:host(${checkedState}:not([disabled]):hover),:host(${indeterminateState}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${checkedState}) .checked-indicator{color:GrayText}}`;
|
|
6638
|
+
|
|
6639
|
+
const checkedIndicator$2 = html.partial(
|
|
6640
|
+
/* html */
|
|
6641
|
+
`<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>`
|
|
6642
|
+
);
|
|
6643
|
+
const indeterminateIndicator = html.partial(
|
|
6644
|
+
/* html */
|
|
6645
|
+
`<span class=indeterminate-indicator></span>`
|
|
6646
|
+
);
|
|
6647
|
+
function checkboxTemplate(options = {}) {
|
|
6648
|
+
return html`<template @click=${(x, c) => x.clickHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot><slot name=indeterminate-indicator>${staticallyCompose(options.indeterminateIndicator)}</slot></template>`;
|
|
6581
6649
|
}
|
|
6582
|
-
const template$
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
name: tagName$D,
|
|
6586
|
-
template: template$A,
|
|
6587
|
-
styles: styles$D
|
|
6650
|
+
const template$z = checkboxTemplate({
|
|
6651
|
+
checkedIndicator: checkedIndicator$2,
|
|
6652
|
+
indeterminateIndicator
|
|
6588
6653
|
});
|
|
6589
6654
|
|
|
6590
|
-
definition$
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
};
|
|
6596
|
-
const CheckboxSize = {
|
|
6597
|
-
medium: "medium",
|
|
6598
|
-
large: "large"
|
|
6655
|
+
const definition$z = {
|
|
6656
|
+
name: tagName$z,
|
|
6657
|
+
registry: FluentDesignSystem.registry,
|
|
6658
|
+
styles: styles$z,
|
|
6659
|
+
template: template$z
|
|
6599
6660
|
};
|
|
6600
|
-
const tagName$z = `${FluentDesignSystem.prefix}-checkbox`;
|
|
6601
6661
|
|
|
6602
6662
|
var __defProp$F = Object.defineProperty;
|
|
6603
6663
|
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
@@ -7041,69 +7101,13 @@ __decorateClass$E([
|
|
|
7041
7101
|
attr
|
|
7042
7102
|
], Checkbox.prototype, "size", 2);
|
|
7043
7103
|
|
|
7044
|
-
|
|
7045
|
-
const badInputState = stateSelector("bad-input");
|
|
7046
|
-
const checkedState = stateSelector("checked");
|
|
7047
|
-
const customErrorState = stateSelector("custom-error");
|
|
7048
|
-
const descriptionState = stateSelector("description");
|
|
7049
|
-
const disabledState = stateSelector("disabled");
|
|
7050
|
-
stateSelector("error");
|
|
7051
|
-
const flipBlockState = stateSelector("flip-block");
|
|
7052
|
-
const focusVisibleState = stateSelector("focus-visible");
|
|
7053
|
-
stateSelector("has-message");
|
|
7054
|
-
const indeterminateState = stateSelector("indeterminate");
|
|
7055
|
-
const multipleState = stateSelector("multiple");
|
|
7056
|
-
const openState = stateSelector("open");
|
|
7057
|
-
const patternMismatchState = stateSelector("pattern-mismatch");
|
|
7058
|
-
const placeholderShownState = stateSelector("placeholder-shown");
|
|
7059
|
-
const pressedState = stateSelector("pressed");
|
|
7060
|
-
const rangeOverflowState = stateSelector("range-overflow");
|
|
7061
|
-
const rangeUnderflowState = stateSelector("range-underflow");
|
|
7062
|
-
const requiredState = stateSelector("required");
|
|
7063
|
-
const selectedState = stateSelector("selected");
|
|
7064
|
-
const stepMismatchState = stateSelector("step-mismatch");
|
|
7065
|
-
const submenuState = stateSelector("submenu");
|
|
7066
|
-
const tooLongState = stateSelector("too-long");
|
|
7067
|
-
const tooShortState = stateSelector("too-short");
|
|
7068
|
-
const typeMismatchState = stateSelector("type-mismatch");
|
|
7069
|
-
const userInvalidState = stateSelector("user-invalid");
|
|
7070
|
-
const validState = stateSelector("valid");
|
|
7071
|
-
const valueMissingState = stateSelector("value-missing");
|
|
7072
|
-
|
|
7073
|
-
const styles$z = css`${display("inline-flex")} :host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState}) .checked-indicator{color:${colorNeutralStrokeDisabled}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${checkedState}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:FieldText}:host(${checkedState}:not([disabled]):hover),:host(${indeterminateState}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${checkedState}) .checked-indicator{color:GrayText}}`;
|
|
7074
|
-
|
|
7075
|
-
const checkedIndicator$2 = html.partial(
|
|
7076
|
-
/* html */
|
|
7077
|
-
`<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>`
|
|
7078
|
-
);
|
|
7079
|
-
const indeterminateIndicator = html.partial(
|
|
7080
|
-
/* html */
|
|
7081
|
-
`<span class=indeterminate-indicator></span>`
|
|
7082
|
-
);
|
|
7083
|
-
function checkboxTemplate(options = {}) {
|
|
7084
|
-
return html`<template @click=${(x, c) => x.clickHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot><slot name=indeterminate-indicator>${staticallyCompose(options.indeterminateIndicator)}</slot></template>`;
|
|
7085
|
-
}
|
|
7086
|
-
const template$z = checkboxTemplate({
|
|
7087
|
-
checkedIndicator: checkedIndicator$2,
|
|
7088
|
-
indeterminateIndicator
|
|
7089
|
-
});
|
|
7090
|
-
|
|
7091
|
-
const definition$z = Checkbox.compose({
|
|
7092
|
-
name: tagName$z,
|
|
7093
|
-
template: template$z,
|
|
7094
|
-
styles: styles$z
|
|
7095
|
-
});
|
|
7096
|
-
|
|
7097
|
-
definition$z.define(FluentDesignSystem.registry);
|
|
7104
|
+
Checkbox.define(definition$z);
|
|
7098
7105
|
|
|
7099
7106
|
const CompoundButtonAppearance = ButtonAppearance;
|
|
7100
7107
|
const CompoundButtonShape = ButtonShape;
|
|
7101
7108
|
const CompoundButtonSize = ButtonSize;
|
|
7102
7109
|
const tagName$y = `${FluentDesignSystem.prefix}-compound-button`;
|
|
7103
7110
|
|
|
7104
|
-
class CompoundButton extends Button {
|
|
7105
|
-
}
|
|
7106
|
-
|
|
7107
7111
|
const styles$y = css`${styles$D} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${colorNeutralForeground2};line-height:100%;font-size:${fontSizeBase200};font-weight:${fontWeightRegular}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${colorNeutralForeground2Hover}}:host(:active) ::slotted([slot='description']){color:${colorNeutralForeground2Pressed}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${colorNeutralForegroundOnBrand}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${colorNeutralForeground2}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${colorNeutralForeground2BrandPressed}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${colorNeutralForegroundDisabled}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${spacingHorizontalSNudge}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${spacingHorizontalXS}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${spacingHorizontalS}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted([slot='description']){font-size:${fontSizeBase300}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;
|
|
7108
7112
|
|
|
7109
7113
|
function buttonTemplate(options = {}) {
|
|
@@ -7111,13 +7115,17 @@ function buttonTemplate(options = {}) {
|
|
|
7111
7115
|
}
|
|
7112
7116
|
const template$y = buttonTemplate();
|
|
7113
7117
|
|
|
7114
|
-
const definition$y =
|
|
7118
|
+
const definition$y = {
|
|
7115
7119
|
name: tagName$y,
|
|
7116
|
-
|
|
7117
|
-
styles: styles$y
|
|
7118
|
-
|
|
7120
|
+
registry: FluentDesignSystem.registry,
|
|
7121
|
+
styles: styles$y,
|
|
7122
|
+
template: template$y
|
|
7123
|
+
};
|
|
7124
|
+
|
|
7125
|
+
class CompoundButton extends Button {
|
|
7126
|
+
}
|
|
7119
7127
|
|
|
7120
|
-
definition$y
|
|
7128
|
+
CompoundButton.define(definition$y);
|
|
7121
7129
|
|
|
7122
7130
|
const CounterBadgeAppearance = {
|
|
7123
7131
|
filled: "filled",
|
|
@@ -7147,6 +7155,20 @@ const CounterBadgeSize = {
|
|
|
7147
7155
|
};
|
|
7148
7156
|
const tagName$x = `${FluentDesignSystem.prefix}-counter-badge`;
|
|
7149
7157
|
|
|
7158
|
+
const styles$x = css`:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${borderRadiusSmall}}${badgeSizeStyles} ${badgeFilledStyles} ${badgeGhostStyles} ${badgeBaseStyles} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;
|
|
7159
|
+
|
|
7160
|
+
function counterBadgeTemplate(options = {}) {
|
|
7161
|
+
return html`${startSlotTemplate(options)} <span>${(x) => x.displayValue}</span> ${endSlotTemplate(options)}`;
|
|
7162
|
+
}
|
|
7163
|
+
const template$x = counterBadgeTemplate();
|
|
7164
|
+
|
|
7165
|
+
const definition$x = {
|
|
7166
|
+
name: tagName$x,
|
|
7167
|
+
registry: FluentDesignSystem.registry,
|
|
7168
|
+
styles: styles$x,
|
|
7169
|
+
template: template$x
|
|
7170
|
+
};
|
|
7171
|
+
|
|
7150
7172
|
var __defProp$D = Object.defineProperty;
|
|
7151
7173
|
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
7152
7174
|
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
@@ -7224,20 +7246,7 @@ __decorateClass$C([
|
|
|
7224
7246
|
], CounterBadge.prototype, "size", 2);
|
|
7225
7247
|
applyMixins(CounterBadge, StartEnd);
|
|
7226
7248
|
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
function counterBadgeTemplate(options = {}) {
|
|
7230
|
-
return html`${startSlotTemplate(options)} <span>${(x) => x.displayValue}</span> ${endSlotTemplate(options)}`;
|
|
7231
|
-
}
|
|
7232
|
-
const template$x = counterBadgeTemplate();
|
|
7233
|
-
|
|
7234
|
-
const definition$x = CounterBadge.compose({
|
|
7235
|
-
name: tagName$x,
|
|
7236
|
-
template: template$x,
|
|
7237
|
-
styles: styles$x
|
|
7238
|
-
});
|
|
7239
|
-
|
|
7240
|
-
definition$x.define(FluentDesignSystem.registry);
|
|
7249
|
+
CounterBadge.define(definition$x);
|
|
7241
7250
|
|
|
7242
7251
|
const DialogType = {
|
|
7243
7252
|
modal: "modal",
|
|
@@ -7252,6 +7261,17 @@ function isDialog(element, tagName2 = "-dialog") {
|
|
|
7252
7261
|
}
|
|
7253
7262
|
const tagName$w = `${FluentDesignSystem.prefix}-dialog`;
|
|
7254
7263
|
|
|
7264
|
+
const styles$w = css`@layer base{:host{--dialog-backdrop:${colorBackgroundOverlay};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${colorNeutralBackground1};border-radius:${borderRadiusXLarge};border:none;box-shadow:${shadow64};color:${colorNeutralForeground1};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};opacity:0}::backdrop{transition-timing-function:${curveLinear}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${curveAccelerateMid}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${strokeWidthThin} solid ${colorTransparentStroke}}}}`;
|
|
7265
|
+
|
|
7266
|
+
const template$w = html`<dialog class=dialog part=dialog aria-modal=${(x) => x.dialogModal} aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} role=${(x) => x.dialogRole} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.hide()} ${ref("dialog")}><div tabindex=-1></div><slot></slot></dialog>`;
|
|
7267
|
+
|
|
7268
|
+
const definition$w = {
|
|
7269
|
+
name: tagName$w,
|
|
7270
|
+
registry: FluentDesignSystem.registry,
|
|
7271
|
+
styles: styles$w,
|
|
7272
|
+
template: template$w
|
|
7273
|
+
};
|
|
7274
|
+
|
|
7255
7275
|
var __defProp$B = Object.defineProperty;
|
|
7256
7276
|
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
7257
7277
|
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
@@ -7392,19 +7412,20 @@ __decorateClass$B([
|
|
|
7392
7412
|
volatile
|
|
7393
7413
|
], Dialog.prototype, "dialogRole", 1);
|
|
7394
7414
|
|
|
7395
|
-
|
|
7415
|
+
Dialog.define(definition$w);
|
|
7396
7416
|
|
|
7397
|
-
const
|
|
7417
|
+
const tagName$v = `${FluentDesignSystem.prefix}-dialog-body`;
|
|
7398
7418
|
|
|
7399
|
-
const
|
|
7400
|
-
name: tagName$w,
|
|
7401
|
-
template: template$w,
|
|
7402
|
-
styles: styles$w
|
|
7403
|
-
});
|
|
7419
|
+
const styles$v = css`${display("grid")} :host{background:${colorNeutralBackground1};box-sizing:border-box;gap:${spacingVerticalS};padding:${spacingVerticalXXL} ${spacingHorizontalXXL};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${colorNeutralBackground1};color:${colorNeutralForeground1};column-gap:8px;display:flex;font-family:${fontFamilyBase};font-size:${fontSizeBase500};font-weight:${fontWeightSemibold};inset-block-start:0;justify-content:space-between;line-height:${lineHeightBase500};margin-block-end:calc(${spacingVerticalS} * -1);margin-block-start:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalS};padding-block-start:${spacingVerticalXXL}}.content{box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};min-height:32px}.actions{box-sizing:border-box;background:${colorNeutralBackground1};display:flex;flex-direction:column;gap:${spacingVerticalS};inset-block-end:0;margin-block-end:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalXXL};padding-block-start:${spacingVerticalL}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${spacingVerticalS} * -1);padding-block-start:${spacingVerticalS}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`;
|
|
7404
7420
|
|
|
7405
|
-
|
|
7421
|
+
const template$v = html`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(x, c) => x.clickHandler(c.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`;
|
|
7406
7422
|
|
|
7407
|
-
const
|
|
7423
|
+
const definition$v = {
|
|
7424
|
+
name: tagName$v,
|
|
7425
|
+
registry: FluentDesignSystem.registry,
|
|
7426
|
+
styles: styles$v,
|
|
7427
|
+
template: template$v
|
|
7428
|
+
};
|
|
7408
7429
|
|
|
7409
7430
|
class DialogBody extends FASTElement {
|
|
7410
7431
|
/**
|
|
@@ -7424,17 +7445,7 @@ class DialogBody extends FASTElement {
|
|
|
7424
7445
|
}
|
|
7425
7446
|
}
|
|
7426
7447
|
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
const styles$v = css`${display("grid")} :host{background:${colorNeutralBackground1};box-sizing:border-box;gap:${spacingVerticalS};padding:${spacingVerticalXXL} ${spacingHorizontalXXL};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${colorNeutralBackground1};color:${colorNeutralForeground1};column-gap:8px;display:flex;font-family:${fontFamilyBase};font-size:${fontSizeBase500};font-weight:${fontWeightSemibold};inset-block-start:0;justify-content:space-between;line-height:${lineHeightBase500};margin-block-end:calc(${spacingVerticalS} * -1);margin-block-start:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalS};padding-block-start:${spacingVerticalXXL}}.content{box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};min-height:32px}.actions{box-sizing:border-box;background:${colorNeutralBackground1};display:flex;flex-direction:column;gap:${spacingVerticalS};inset-block-end:0;margin-block-end:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalXXL};padding-block-start:${spacingVerticalL}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${spacingVerticalS} * -1);padding-block-start:${spacingVerticalS}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`;
|
|
7430
|
-
|
|
7431
|
-
const definition$v = DialogBody.compose({
|
|
7432
|
-
name: tagName$v,
|
|
7433
|
-
template: template$v,
|
|
7434
|
-
styles: styles$v
|
|
7435
|
-
});
|
|
7436
|
-
|
|
7437
|
-
definition$v.define(FluentDesignSystem.registry);
|
|
7448
|
+
DialogBody.define(definition$v);
|
|
7438
7449
|
|
|
7439
7450
|
const Orientation = {
|
|
7440
7451
|
horizontal: "horizontal",
|
|
@@ -7464,6 +7475,20 @@ const DividerAppearance = {
|
|
|
7464
7475
|
};
|
|
7465
7476
|
const tagName$u = `${FluentDesignSystem.prefix}-divider`;
|
|
7466
7477
|
|
|
7478
|
+
const styles$u = css`${display("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`;
|
|
7479
|
+
|
|
7480
|
+
function dividerTemplate() {
|
|
7481
|
+
return html`<slot></slot>`;
|
|
7482
|
+
}
|
|
7483
|
+
const template$u = dividerTemplate();
|
|
7484
|
+
|
|
7485
|
+
const definition$u = {
|
|
7486
|
+
name: tagName$u,
|
|
7487
|
+
registry: FluentDesignSystem.registry,
|
|
7488
|
+
styles: styles$u,
|
|
7489
|
+
template: template$u
|
|
7490
|
+
};
|
|
7491
|
+
|
|
7467
7492
|
var __defProp$A = Object.defineProperty;
|
|
7468
7493
|
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
7469
7494
|
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
@@ -7547,20 +7572,7 @@ __decorateClass$z([
|
|
|
7547
7572
|
attr({ mode: "boolean" })
|
|
7548
7573
|
], Divider.prototype, "inset", 2);
|
|
7549
7574
|
|
|
7550
|
-
|
|
7551
|
-
return html`<slot></slot>`;
|
|
7552
|
-
}
|
|
7553
|
-
const template$u = dividerTemplate();
|
|
7554
|
-
|
|
7555
|
-
const styles$u = css`${display("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`;
|
|
7556
|
-
|
|
7557
|
-
const definition$u = Divider.compose({
|
|
7558
|
-
name: tagName$u,
|
|
7559
|
-
template: template$u,
|
|
7560
|
-
styles: styles$u
|
|
7561
|
-
});
|
|
7562
|
-
|
|
7563
|
-
definition$u.define(FluentDesignSystem.registry);
|
|
7575
|
+
Divider.define(definition$u);
|
|
7564
7576
|
|
|
7565
7577
|
const DrawerPosition = {
|
|
7566
7578
|
start: "start",
|
|
@@ -7579,6 +7591,20 @@ const DrawerType = {
|
|
|
7579
7591
|
};
|
|
7580
7592
|
const tagName$t = `${FluentDesignSystem.prefix}-drawer`;
|
|
7581
7593
|
|
|
7594
|
+
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}}}`;
|
|
7595
|
+
|
|
7596
|
+
function drawerTemplate() {
|
|
7597
|
+
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} size=${(x) => x.size} position=${(x) => x.position} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.cancelHandler()} ${ref("dialog")}><slot></slot></dialog>`;
|
|
7598
|
+
}
|
|
7599
|
+
const template$t = drawerTemplate();
|
|
7600
|
+
|
|
7601
|
+
const definition$t = {
|
|
7602
|
+
name: tagName$t,
|
|
7603
|
+
registry: FluentDesignSystem.registry,
|
|
7604
|
+
styles: styles$t,
|
|
7605
|
+
template: template$t
|
|
7606
|
+
};
|
|
7607
|
+
|
|
7582
7608
|
var __defProp$y = Object.defineProperty;
|
|
7583
7609
|
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
7584
7610
|
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
@@ -7735,41 +7761,10 @@ __decorateClass$y([
|
|
|
7735
7761
|
volatile
|
|
7736
7762
|
], Drawer.prototype, "dialogRole", 1);
|
|
7737
7763
|
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
function drawerTemplate() {
|
|
7741
|
-
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} size=${(x) => x.size} position=${(x) => x.position} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.cancelHandler()} ${ref("dialog")}><slot></slot></dialog>`;
|
|
7742
|
-
}
|
|
7743
|
-
const template$t = drawerTemplate();
|
|
7744
|
-
|
|
7745
|
-
const definition$t = Drawer.compose({
|
|
7746
|
-
name: tagName$t,
|
|
7747
|
-
template: template$t,
|
|
7748
|
-
styles: styles$t
|
|
7749
|
-
});
|
|
7750
|
-
|
|
7751
|
-
definition$t.define(FluentDesignSystem.registry);
|
|
7764
|
+
Drawer.define(definition$t);
|
|
7752
7765
|
|
|
7753
7766
|
const tagName$s = `${FluentDesignSystem.prefix}-drawer-body`;
|
|
7754
7767
|
|
|
7755
|
-
class DrawerBody extends FASTElement {
|
|
7756
|
-
/**
|
|
7757
|
-
* Handles click event for the close slot
|
|
7758
|
-
*
|
|
7759
|
-
* @param e - the click event
|
|
7760
|
-
* @internal
|
|
7761
|
-
*/
|
|
7762
|
-
clickHandler(event) {
|
|
7763
|
-
if (!event.defaultPrevented) {
|
|
7764
|
-
const dialog = this.parentElement;
|
|
7765
|
-
if (isDialog(dialog, "-drawer")) {
|
|
7766
|
-
dialog.hide();
|
|
7767
|
-
}
|
|
7768
|
-
}
|
|
7769
|
-
return true;
|
|
7770
|
-
}
|
|
7771
|
-
}
|
|
7772
|
-
|
|
7773
7768
|
const typographyBody1Styles = css.partial`font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};`;
|
|
7774
7769
|
const typographyBody1StrongStyles = css.partial`font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightSemibold};`;
|
|
7775
7770
|
const typographyBody1StrongerStyles = css.partial`font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightBold};`;
|
|
@@ -7795,13 +7790,32 @@ function drawerBodyTemplate() {
|
|
|
7795
7790
|
}
|
|
7796
7791
|
const template$s = drawerBodyTemplate();
|
|
7797
7792
|
|
|
7798
|
-
const definition$s =
|
|
7793
|
+
const definition$s = {
|
|
7799
7794
|
name: tagName$s,
|
|
7800
|
-
|
|
7801
|
-
styles: styles$s
|
|
7802
|
-
|
|
7795
|
+
registry: FluentDesignSystem.registry,
|
|
7796
|
+
styles: styles$s,
|
|
7797
|
+
template: template$s
|
|
7798
|
+
};
|
|
7799
|
+
|
|
7800
|
+
class DrawerBody extends FASTElement {
|
|
7801
|
+
/**
|
|
7802
|
+
* Handles click event for the close slot
|
|
7803
|
+
*
|
|
7804
|
+
* @param e - the click event
|
|
7805
|
+
* @internal
|
|
7806
|
+
*/
|
|
7807
|
+
clickHandler(event) {
|
|
7808
|
+
if (!event.defaultPrevented) {
|
|
7809
|
+
const dialog = this.parentElement;
|
|
7810
|
+
if (isDialog(dialog, "-drawer")) {
|
|
7811
|
+
dialog.hide();
|
|
7812
|
+
}
|
|
7813
|
+
}
|
|
7814
|
+
return true;
|
|
7815
|
+
}
|
|
7816
|
+
}
|
|
7803
7817
|
|
|
7804
|
-
definition$s
|
|
7818
|
+
DrawerBody.define(definition$s);
|
|
7805
7819
|
|
|
7806
7820
|
function isDropdown(element, tagName2 = "-dropdown") {
|
|
7807
7821
|
if (element?.nodeType !== Node.ELEMENT_NODE) {
|
|
@@ -7827,6 +7841,25 @@ const DropdownType = {
|
|
|
7827
7841
|
};
|
|
7828
7842
|
const tagName$r = `${FluentDesignSystem.prefix}-dropdown`;
|
|
7829
7843
|
|
|
7844
|
+
const styles$r = css`${display("inline-flex")} :host{box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:${colorNeutralForeground4}}.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-flex;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}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(: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(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${colorNeutralStrokeAccessible}}:host([appearance='transparent']) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}:host([appearance='outline']) .control{--control-border-color:${colorNeutralStroke1}}:host([appearance='outline']) .control:hover{--control-border-color:${colorNeutralStroke1Hover}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='outline']) .control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}:host([appearance='outline']) .control:active{--control-border-color:${colorNeutralStroke1Pressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host([appearance='filled-darker']) .control{background-color:${colorNeutralBackground3}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${colorTransparentStroke}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted(: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(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`;
|
|
7845
|
+
|
|
7846
|
+
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>`;
|
|
7847
|
+
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 placeholder=${(x) => x.placeholder} role=combobox ?disabled=${(x) => x.disabled} type=${(x) => x.type} value=${(x) => x.valueAttribute} slot=control ${ref("control")}>`;
|
|
7848
|
+
const dropdownButtonTemplate = html`<button aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-expanded=${(x) => x.open} aria-haspopup=listbox role=combobox ?disabled=${(x) => x.disabled} type=button slot=control ${ref("control")}>${(x) => x.displayValue}</button>`;
|
|
7849
|
+
function dropdownTemplate(options = {}) {
|
|
7850
|
+
return html`<template @click=${(x, c) => x.clickHandler(c.event)} @focusout=${(x, c) => x.focusoutHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @mousedown=${(x, c) => x.mousedownHandler(c.event)}><div class=control><slot name=control ${ref("controlSlot")}></slot><slot name=indicator ${ref("indicatorSlot")}>${staticallyCompose(options.indicator)}</slot></div><slot @slotchange=${(x, c) => x.slotchangeHandler(c.event)}></slot></template>`;
|
|
7851
|
+
}
|
|
7852
|
+
const template$r = dropdownTemplate({
|
|
7853
|
+
indicator: dropdownIndicatorTemplate
|
|
7854
|
+
});
|
|
7855
|
+
|
|
7856
|
+
const definition$r = {
|
|
7857
|
+
name: tagName$r,
|
|
7858
|
+
registry: FluentDesignSystem.registry,
|
|
7859
|
+
styles: styles$r,
|
|
7860
|
+
template: template$r
|
|
7861
|
+
};
|
|
7862
|
+
|
|
7830
7863
|
function isListbox(element, tagName2 = "-listbox") {
|
|
7831
7864
|
if (element?.nodeType !== Node.ELEMENT_NODE) {
|
|
7832
7865
|
return false;
|
|
@@ -7861,16 +7894,6 @@ function uniqueId(prefix = "id-") {
|
|
|
7861
7894
|
return document.getElementById(str) ? uniqueId(prefix) : str;
|
|
7862
7895
|
}
|
|
7863
7896
|
|
|
7864
|
-
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>`;
|
|
7865
|
-
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 placeholder=${(x) => x.placeholder} role=combobox ?disabled=${(x) => x.disabled} type=${(x) => x.type} value=${(x) => x.valueAttribute} slot=control ${ref("control")}>`;
|
|
7866
|
-
const dropdownButtonTemplate = html`<button aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-expanded=${(x) => x.open} aria-haspopup=listbox role=combobox ?disabled=${(x) => x.disabled} type=button slot=control ${ref("control")}>${(x) => x.displayValue}</button>`;
|
|
7867
|
-
function dropdownTemplate(options = {}) {
|
|
7868
|
-
return html`<template @click=${(x, c) => x.clickHandler(c.event)} @focusout=${(x, c) => x.focusoutHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @mousedown=${(x, c) => x.mousedownHandler(c.event)}><div class=control><slot name=control ${ref("controlSlot")}></slot><slot name=indicator ${ref("indicatorSlot")}>${staticallyCompose(options.indicator)}</slot></div><slot @slotchange=${(x, c) => x.slotchangeHandler(c.event)}></slot></template>`;
|
|
7869
|
-
}
|
|
7870
|
-
const template$r = dropdownTemplate({
|
|
7871
|
-
indicator: dropdownIndicatorTemplate
|
|
7872
|
-
});
|
|
7873
|
-
|
|
7874
7897
|
var __defProp$x = Object.defineProperty;
|
|
7875
7898
|
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
7876
7899
|
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
@@ -8738,15 +8761,7 @@ __decorateClass$w([
|
|
|
8738
8761
|
attr
|
|
8739
8762
|
], Dropdown.prototype, "size", 2);
|
|
8740
8763
|
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
const definition$r = Dropdown.compose({
|
|
8744
|
-
name: tagName$r,
|
|
8745
|
-
template: template$r,
|
|
8746
|
-
styles: styles$r
|
|
8747
|
-
});
|
|
8748
|
-
|
|
8749
|
-
definition$r.define(FluentDesignSystem.registry);
|
|
8764
|
+
Dropdown.define(definition$r);
|
|
8750
8765
|
|
|
8751
8766
|
const LabelPosition = {
|
|
8752
8767
|
above: "above",
|
|
@@ -8768,6 +8783,20 @@ const ValidationFlags = {
|
|
|
8768
8783
|
};
|
|
8769
8784
|
const tagName$o = `${FluentDesignSystem.prefix}-field`;
|
|
8770
8785
|
|
|
8786
|
+
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='above']){grid-template-areas:'label' 'input' 'message';row-gap:${spacingVerticalXXS}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${spacingVerticalM}}:host(${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}`;
|
|
8787
|
+
|
|
8788
|
+
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>`;
|
|
8789
|
+
|
|
8790
|
+
const definition$q = {
|
|
8791
|
+
name: tagName$o,
|
|
8792
|
+
registry: FluentDesignSystem.registry,
|
|
8793
|
+
shadowOptions: {
|
|
8794
|
+
delegatesFocus: true
|
|
8795
|
+
},
|
|
8796
|
+
styles: styles$q,
|
|
8797
|
+
template: template$q
|
|
8798
|
+
};
|
|
8799
|
+
|
|
8771
8800
|
var __defProp$v = Object.defineProperty;
|
|
8772
8801
|
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
8773
8802
|
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
@@ -8983,20 +9012,7 @@ __decorateClass$u([
|
|
|
8983
9012
|
attr({ attribute: "label-position" })
|
|
8984
9013
|
], Field.prototype, "labelPosition", 2);
|
|
8985
9014
|
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
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>`;
|
|
8989
|
-
|
|
8990
|
-
const definition$q = Field.compose({
|
|
8991
|
-
name: tagName$o,
|
|
8992
|
-
template: template$q,
|
|
8993
|
-
styles: styles$q,
|
|
8994
|
-
shadowOptions: {
|
|
8995
|
-
delegatesFocus: true
|
|
8996
|
-
}
|
|
8997
|
-
});
|
|
8998
|
-
|
|
8999
|
-
definition$q.define(FluentDesignSystem.registry);
|
|
9015
|
+
Field.define(definition$q);
|
|
9000
9016
|
|
|
9001
9017
|
const ImageFit = {
|
|
9002
9018
|
none: "none",
|
|
@@ -9009,7 +9025,18 @@ const ImageShape = {
|
|
|
9009
9025
|
rounded: "rounded",
|
|
9010
9026
|
square: "square"
|
|
9011
9027
|
};
|
|
9012
|
-
const tagName$n = `${FluentDesignSystem.prefix}-image`;
|
|
9028
|
+
const tagName$n = `${FluentDesignSystem.prefix}-image`;
|
|
9029
|
+
|
|
9030
|
+
const styles$p = css`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${shadow4}}:host([shape='circular']) ::slotted(img){border-radius:${borderRadiusCircular}}:host([shape='rounded']) ::slotted(img){border-radius:${borderRadiusMedium}}`;
|
|
9031
|
+
|
|
9032
|
+
const template$p = html`<slot></slot>`;
|
|
9033
|
+
|
|
9034
|
+
const definition$p = {
|
|
9035
|
+
name: tagName$n,
|
|
9036
|
+
registry: FluentDesignSystem.registry,
|
|
9037
|
+
styles: styles$p,
|
|
9038
|
+
template: template$p
|
|
9039
|
+
};
|
|
9013
9040
|
|
|
9014
9041
|
var __defProp$t = Object.defineProperty;
|
|
9015
9042
|
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
@@ -9039,17 +9066,7 @@ __decorateClass$t([
|
|
|
9039
9066
|
attr
|
|
9040
9067
|
], Image.prototype, "shape", 2);
|
|
9041
9068
|
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
const styles$p = css`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${shadow4}}:host([shape='circular']) ::slotted(img){border-radius:${borderRadiusCircular}}:host([shape='rounded']) ::slotted(img){border-radius:${borderRadiusMedium}}`;
|
|
9045
|
-
|
|
9046
|
-
const definition$p = Image.compose({
|
|
9047
|
-
name: tagName$n,
|
|
9048
|
-
template: template$p,
|
|
9049
|
-
styles: styles$p
|
|
9050
|
-
});
|
|
9051
|
-
|
|
9052
|
-
definition$p.define(FluentDesignSystem.registry);
|
|
9069
|
+
Image.define(definition$p);
|
|
9053
9070
|
|
|
9054
9071
|
const LabelSize = {
|
|
9055
9072
|
small: "small",
|
|
@@ -9062,6 +9079,20 @@ const LabelWeight = {
|
|
|
9062
9079
|
};
|
|
9063
9080
|
const tagName$m = `${FluentDesignSystem.prefix}-label`;
|
|
9064
9081
|
|
|
9082
|
+
const styles$o = css`${display("inline-flex")} :host{color:${colorNeutralForeground1};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};user-select:none}.asterisk{color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}:host([size='small']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(:is([size='large'],[weight='semibold'])){font-weight:${fontWeightSemibold}}:host([disabled]),:host([disabled]) .asterisk{color:${colorNeutralForegroundDisabled}}`;
|
|
9083
|
+
|
|
9084
|
+
function labelTemplate() {
|
|
9085
|
+
return html`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${(x) => !x.required}>*</span>`;
|
|
9086
|
+
}
|
|
9087
|
+
const template$o = labelTemplate();
|
|
9088
|
+
|
|
9089
|
+
const definition$o = {
|
|
9090
|
+
name: tagName$m,
|
|
9091
|
+
registry: FluentDesignSystem.registry,
|
|
9092
|
+
styles: styles$o,
|
|
9093
|
+
template: template$o
|
|
9094
|
+
};
|
|
9095
|
+
|
|
9065
9096
|
var __defProp$s = Object.defineProperty;
|
|
9066
9097
|
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
9067
9098
|
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
@@ -9092,20 +9123,7 @@ __decorateClass$s([
|
|
|
9092
9123
|
attr({ mode: "boolean" })
|
|
9093
9124
|
], Label.prototype, "required", 2);
|
|
9094
9125
|
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
function labelTemplate() {
|
|
9098
|
-
return html`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${(x) => !x.required}>*</span>`;
|
|
9099
|
-
}
|
|
9100
|
-
const template$o = labelTemplate();
|
|
9101
|
-
|
|
9102
|
-
const definition$o = Label.compose({
|
|
9103
|
-
name: tagName$m,
|
|
9104
|
-
template: template$o,
|
|
9105
|
-
styles: styles$o
|
|
9106
|
-
});
|
|
9107
|
-
|
|
9108
|
-
definition$o.define(FluentDesignSystem.registry);
|
|
9126
|
+
Label.define(definition$o);
|
|
9109
9127
|
|
|
9110
9128
|
const LinkAppearance = {
|
|
9111
9129
|
subtle: "subtle"
|
|
@@ -9113,6 +9131,20 @@ const LinkAppearance = {
|
|
|
9113
9131
|
const LinkTarget = AnchorTarget;
|
|
9114
9132
|
const tagName$l = `${FluentDesignSystem.prefix}-link`;
|
|
9115
9133
|
|
|
9134
|
+
const styles$n = css`${display("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${strokeWidthThin};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${colorBrandForegroundLinkHover}}:host(:active){color:${colorBrandForegroundLinkPressed}}:host([appearance='subtle']:hover){color:${colorNeutralForeground2LinkHover}}:host([appearance='subtle']:active){color:${colorNeutralForeground2LinkPressed}}}:host([appearance='subtle']){color:${colorNeutralForeground2Link}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;
|
|
9135
|
+
|
|
9136
|
+
function anchorTemplate() {
|
|
9137
|
+
return html`<template tabindex=0 @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><slot></slot></template>`;
|
|
9138
|
+
}
|
|
9139
|
+
const template$n = anchorTemplate();
|
|
9140
|
+
|
|
9141
|
+
const definition$n = {
|
|
9142
|
+
name: tagName$l,
|
|
9143
|
+
registry: FluentDesignSystem.registry,
|
|
9144
|
+
styles: styles$n,
|
|
9145
|
+
template: template$n
|
|
9146
|
+
};
|
|
9147
|
+
|
|
9116
9148
|
var __defProp$r = Object.defineProperty;
|
|
9117
9149
|
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
9118
9150
|
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
@@ -9136,20 +9168,21 @@ __decorateClass$r([
|
|
|
9136
9168
|
attr({ mode: "boolean" })
|
|
9137
9169
|
], Link.prototype, "inline", 2);
|
|
9138
9170
|
|
|
9139
|
-
|
|
9171
|
+
Link.define(definition$n);
|
|
9140
9172
|
|
|
9141
|
-
|
|
9142
|
-
return html`<template tabindex=0 @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><slot></slot></template>`;
|
|
9143
|
-
}
|
|
9144
|
-
const template$n = anchorTemplate();
|
|
9173
|
+
const styles$m = css`${display("inline-flex")} :host{background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow16};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${spacingHorizontalXS};row-gap:${spacingHorizontalXXS};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(outside);inset-inline-start:anchor(inside);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${flipBlockState}){margin-block-start:revert;translate:0 -100%}}`;
|
|
9145
9174
|
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
});
|
|
9175
|
+
function listboxTemplate() {
|
|
9176
|
+
return html`<template @beforetoggle=${(x, c) => x.beforetoggleHandler(c.event)} @click=${(x, c) => x.clickHandler(c.event)}><slot ${ref("defaultSlot")} @slotchange=${(x, c) => x.slotchangeHandler(c.event)}></slot></template>`;
|
|
9177
|
+
}
|
|
9178
|
+
const template$m = listboxTemplate();
|
|
9151
9179
|
|
|
9152
|
-
definition$
|
|
9180
|
+
const definition$m = {
|
|
9181
|
+
name: tagName$q,
|
|
9182
|
+
registry: FluentDesignSystem.registry,
|
|
9183
|
+
styles: styles$m,
|
|
9184
|
+
template: template$m
|
|
9185
|
+
};
|
|
9153
9186
|
|
|
9154
9187
|
var __defProp$q = Object.defineProperty;
|
|
9155
9188
|
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
@@ -9341,30 +9374,14 @@ __decorateClass$q([
|
|
|
9341
9374
|
observable
|
|
9342
9375
|
], Listbox.prototype, "dropdown", 2);
|
|
9343
9376
|
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
function listboxTemplate() {
|
|
9347
|
-
return html`<template @beforetoggle=${(x, c) => x.beforetoggleHandler(c.event)} @click=${(x, c) => x.clickHandler(c.event)}><slot ${ref("defaultSlot")} @slotchange=${(x, c) => x.slotchangeHandler(c.event)}></slot></template>`;
|
|
9348
|
-
}
|
|
9349
|
-
const template$m = listboxTemplate();
|
|
9350
|
-
|
|
9351
|
-
const definition$m = Listbox.compose({
|
|
9352
|
-
name: tagName$q,
|
|
9353
|
-
template: template$m,
|
|
9354
|
-
styles: styles$m
|
|
9355
|
-
});
|
|
9356
|
-
|
|
9357
|
-
definition$m.define(FluentDesignSystem.registry);
|
|
9358
|
-
|
|
9359
|
-
const styles$l = styles$D;
|
|
9377
|
+
Listbox.define(definition$m);
|
|
9360
9378
|
|
|
9361
9379
|
const MenuButtonAppearance = ButtonAppearance;
|
|
9362
9380
|
const MenuButtonShape = ButtonShape;
|
|
9363
9381
|
const MenuButtonSize = ButtonSize;
|
|
9364
9382
|
const tagName$k = `${FluentDesignSystem.prefix}-menu-button`;
|
|
9365
9383
|
|
|
9366
|
-
|
|
9367
|
-
}
|
|
9384
|
+
const styles$l = styles$D;
|
|
9368
9385
|
|
|
9369
9386
|
const template$l = buttonTemplate$1({
|
|
9370
9387
|
end: html.partial(
|
|
@@ -9373,13 +9390,17 @@ const template$l = buttonTemplate$1({
|
|
|
9373
9390
|
)
|
|
9374
9391
|
});
|
|
9375
9392
|
|
|
9376
|
-
const definition$l =
|
|
9393
|
+
const definition$l = {
|
|
9377
9394
|
name: tagName$k,
|
|
9378
|
-
|
|
9379
|
-
styles: styles$l
|
|
9380
|
-
|
|
9395
|
+
registry: FluentDesignSystem.registry,
|
|
9396
|
+
styles: styles$l,
|
|
9397
|
+
template: template$l
|
|
9398
|
+
};
|
|
9399
|
+
|
|
9400
|
+
class MenuButton extends Button {
|
|
9401
|
+
}
|
|
9381
9402
|
|
|
9382
|
-
definition$l
|
|
9403
|
+
MenuButton.define(definition$l);
|
|
9383
9404
|
|
|
9384
9405
|
const MenuItemRole = {
|
|
9385
9406
|
/**
|
|
@@ -9408,6 +9429,29 @@ function isMenuItem(element, tagName2 = "-menu-item") {
|
|
|
9408
9429
|
}
|
|
9409
9430
|
const tagName$j = `${FluentDesignSystem.prefix}-menu-item`;
|
|
9410
9431
|
|
|
9432
|
+
const styles$k = css`${display("grid")} :host{--indent:0;align-items:center;background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};color:${colorNeutralForeground2};contain:layout;cursor:pointer;flex-shrink:0;font:${fontWeightRegular} ${fontSizeBase300}/${lineHeightBase300} ${fontFamilyBase};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground2Pressed}}:host(:active) ::slotted([slot='start']){color:${colorCompoundBrandForeground1Pressed}}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}:host(:focus-visible){border-radius:${borderRadiusMedium};outline:2px solid ${colorStrokeFocus2}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${checkedState})) .indicator,:host(:not(${checkedState})) ::slotted([slot='indicator']),:host(:not(${submenuState})) .submenu-glyph,:host(:not(${submenuState})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${colorNeutralForeground3};font:${fontWeightRegular} ${fontSizeBase200}/${lineHeightBase200} ${fontFamilyBase};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${submenuState}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${submenuState}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-height: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}}`;
|
|
9433
|
+
|
|
9434
|
+
const Checkmark16Filled = html.partial(
|
|
9435
|
+
`<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>`
|
|
9436
|
+
);
|
|
9437
|
+
const chevronRight16Filled = html.partial(
|
|
9438
|
+
`<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>`
|
|
9439
|
+
);
|
|
9440
|
+
function menuItemTemplate(options = {}) {
|
|
9441
|
+
return html`<template tabindex=0 @keydown=${(x, c) => x.handleMenuItemKeyDown(c.event)} @click=${(x, c) => x.handleMenuItemClick(c.event)} @mouseover=${(x, c) => x.handleMouseOver(c.event)} @mouseout=${(x, c) => x.handleMouseOut(c.event)} @toggle=${(x, c) => x.handleToggle(c.event)}><slot name=indicator>${staticallyCompose(options.indicator)}</slot>${startSlotTemplate(options)}<div part=content class=content><slot></slot></div>${endSlotTemplate(options)}<slot name=submenu-glyph>${staticallyCompose(options.submenuGlyph)}</slot><slot name=submenu ${slotted({ property: "slottedSubmenu" })}></slot></template>`;
|
|
9442
|
+
}
|
|
9443
|
+
const template$k = menuItemTemplate({
|
|
9444
|
+
indicator: Checkmark16Filled,
|
|
9445
|
+
submenuGlyph: chevronRight16Filled
|
|
9446
|
+
});
|
|
9447
|
+
|
|
9448
|
+
const definition$k = {
|
|
9449
|
+
name: tagName$j,
|
|
9450
|
+
registry: FluentDesignSystem.registry,
|
|
9451
|
+
styles: styles$k,
|
|
9452
|
+
template: template$k
|
|
9453
|
+
};
|
|
9454
|
+
|
|
9411
9455
|
var __defProp$p = Object.defineProperty;
|
|
9412
9456
|
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
9413
9457
|
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
@@ -9635,31 +9679,23 @@ __decorateClass$p([
|
|
|
9635
9679
|
], MenuItem.prototype, "submenu", 2);
|
|
9636
9680
|
applyMixins(MenuItem, StartEnd);
|
|
9637
9681
|
|
|
9638
|
-
|
|
9682
|
+
MenuItem.define(definition$k);
|
|
9639
9683
|
|
|
9640
|
-
const
|
|
9641
|
-
`<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>`
|
|
9642
|
-
);
|
|
9643
|
-
const chevronRight16Filled = html.partial(
|
|
9644
|
-
`<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>`
|
|
9645
|
-
);
|
|
9646
|
-
function menuItemTemplate(options = {}) {
|
|
9647
|
-
return html`<template tabindex=0 @keydown=${(x, c) => x.handleMenuItemKeyDown(c.event)} @click=${(x, c) => x.handleMenuItemClick(c.event)} @mouseover=${(x, c) => x.handleMouseOver(c.event)} @mouseout=${(x, c) => x.handleMouseOut(c.event)} @toggle=${(x, c) => x.handleToggle(c.event)}><slot name=indicator>${staticallyCompose(options.indicator)}</slot>${startSlotTemplate(options)}<div part=content class=content><slot></slot></div>${endSlotTemplate(options)}<slot name=submenu-glyph>${staticallyCompose(options.submenuGlyph)}</slot><slot name=submenu ${slotted({ property: "slottedSubmenu" })}></slot></template>`;
|
|
9648
|
-
}
|
|
9649
|
-
const template$k = menuItemTemplate({
|
|
9650
|
-
indicator: Checkmark16Filled,
|
|
9651
|
-
submenuGlyph: chevronRight16Filled
|
|
9652
|
-
});
|
|
9684
|
+
const tagName$i = `${FluentDesignSystem.prefix}-menu-list`;
|
|
9653
9685
|
|
|
9654
|
-
const
|
|
9655
|
-
name: tagName$j,
|
|
9656
|
-
template: template$k,
|
|
9657
|
-
styles: styles$k
|
|
9658
|
-
});
|
|
9686
|
+
const styles$j = css`${display("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${colorNeutralBackground1};border:1px solid ${colorTransparentStroke};border-radius:${borderRadiusMedium};box-shadow:${shadow16};padding:4px;row-gap:2px}`;
|
|
9659
9687
|
|
|
9660
|
-
|
|
9688
|
+
function menuTemplate$1() {
|
|
9689
|
+
return html`<template focusgroup=menu><slot ${slotted("items")}></slot></template>`;
|
|
9690
|
+
}
|
|
9691
|
+
const template$j = menuTemplate$1();
|
|
9661
9692
|
|
|
9662
|
-
const
|
|
9693
|
+
const definition$j = {
|
|
9694
|
+
name: tagName$i,
|
|
9695
|
+
registry: FluentDesignSystem.registry,
|
|
9696
|
+
styles: styles$j,
|
|
9697
|
+
template: template$j
|
|
9698
|
+
};
|
|
9663
9699
|
|
|
9664
9700
|
//#region src/constants.js
|
|
9665
9701
|
/** @enum {string} */
|
|
@@ -10292,22 +10328,23 @@ class MenuList extends BaseMenuList {
|
|
|
10292
10328
|
}
|
|
10293
10329
|
}
|
|
10294
10330
|
|
|
10295
|
-
|
|
10331
|
+
MenuList.define(definition$j);
|
|
10296
10332
|
|
|
10297
|
-
|
|
10298
|
-
return html`<template focusgroup=menu><slot ${slotted("items")}></slot></template>`;
|
|
10299
|
-
}
|
|
10300
|
-
const template$j = menuTemplate$1();
|
|
10333
|
+
const tagName$h = `${FluentDesignSystem.prefix}-menu`;
|
|
10301
10334
|
|
|
10302
|
-
const
|
|
10303
|
-
name: tagName$i,
|
|
10304
|
-
template: template$j,
|
|
10305
|
-
styles: styles$j
|
|
10306
|
-
});
|
|
10335
|
+
const styles$i = css`${display("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(outside);inset-inline-start:anchor(self-start);position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:unset;inset-inline-end:anchor(self-end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${strokeWidthThin} solid ${colorNeutralStroke1};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${strokeWidthThin} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;
|
|
10307
10336
|
|
|
10308
|
-
|
|
10337
|
+
function menuTemplate() {
|
|
10338
|
+
return html`<template @keydown=${(x, c) => x.menuKeydownHandler(c.event)}><slot name=primary-action ${ref("primaryAction")}></slot><slot name=trigger ${slotted({ property: "slottedTriggers", filter: elements() })}></slot><slot ${slotted({ property: "slottedMenuList", filter: elements() })}></slot></template>`;
|
|
10339
|
+
}
|
|
10340
|
+
const template$i = menuTemplate();
|
|
10309
10341
|
|
|
10310
|
-
const
|
|
10342
|
+
const definition$i = {
|
|
10343
|
+
name: tagName$h,
|
|
10344
|
+
registry: FluentDesignSystem.registry,
|
|
10345
|
+
styles: styles$i,
|
|
10346
|
+
template: template$i
|
|
10347
|
+
};
|
|
10311
10348
|
|
|
10312
10349
|
var __defProp$n = Object.defineProperty;
|
|
10313
10350
|
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
@@ -10635,20 +10672,7 @@ __decorateClass$n([
|
|
|
10635
10672
|
observable
|
|
10636
10673
|
], Menu.prototype, "primaryAction", 2);
|
|
10637
10674
|
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
function menuTemplate() {
|
|
10641
|
-
return html`<template @keydown=${(x, c) => x.menuKeydownHandler(c.event)}><slot name=primary-action ${ref("primaryAction")}></slot><slot name=trigger ${slotted({ property: "slottedTriggers", filter: elements() })}></slot><slot ${slotted({ property: "slottedMenuList", filter: elements() })}></slot></template>`;
|
|
10642
|
-
}
|
|
10643
|
-
const template$i = menuTemplate();
|
|
10644
|
-
|
|
10645
|
-
const definition$i = Menu.compose({
|
|
10646
|
-
name: tagName$h,
|
|
10647
|
-
template: template$i,
|
|
10648
|
-
styles: styles$i
|
|
10649
|
-
});
|
|
10650
|
-
|
|
10651
|
-
definition$i.define(FluentDesignSystem.registry);
|
|
10675
|
+
Menu.define(definition$i);
|
|
10652
10676
|
|
|
10653
10677
|
const MessageBarLayout = {
|
|
10654
10678
|
multiline: "multiline",
|
|
@@ -10666,6 +10690,20 @@ const MessageBarIntent = {
|
|
|
10666
10690
|
};
|
|
10667
10691
|
const tagName$g = `${FluentDesignSystem.prefix}-message-bar`;
|
|
10668
10692
|
|
|
10693
|
+
const styles$h = css`:host{display:grid;box-sizing:border-box;font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};width:100%;background:${colorNeutralBackground3};color:${colorNeutralForeground3};border:1px solid ${colorNeutralStroke1};padding-inline:${spacingHorizontalM};border-radius:${borderRadiusMedium};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${colorPaletteGreenBackground1};border-color:${colorPaletteGreenBorder1}}:host([intent='warning']){background-color:${colorPaletteDarkOrangeBackground1};border-color:${colorPaletteDarkOrangeBorder1}}:host([intent='error']){background-color:${colorPaletteRedBackground1};border-color:${colorPaletteRedBorder1}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${spacingVerticalMNudge};padding-inline:${spacingHorizontalM}}.content{grid-area:body;max-width:520px;padding-block:${spacingVerticalMNudge};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${colorNeutralForeground3};margin-inline-end:${spacingHorizontalS}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${spacingHorizontalS};gap:${spacingHorizontalS}}:host([layout='multiline']) .actions{margin-block-start:${spacingVerticalMNudge};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${spacingVerticalS}}::slotted(*){font-size:inherit}`;
|
|
10694
|
+
|
|
10695
|
+
function messageBarTemplate() {
|
|
10696
|
+
return html`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`;
|
|
10697
|
+
}
|
|
10698
|
+
const template$h = messageBarTemplate();
|
|
10699
|
+
|
|
10700
|
+
const definition$h = {
|
|
10701
|
+
name: tagName$g,
|
|
10702
|
+
registry: FluentDesignSystem.registry,
|
|
10703
|
+
styles: styles$h,
|
|
10704
|
+
template: template$h
|
|
10705
|
+
};
|
|
10706
|
+
|
|
10669
10707
|
var __defProp$m = Object.defineProperty;
|
|
10670
10708
|
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
10671
10709
|
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
@@ -10706,23 +10744,27 @@ __decorateClass$m([
|
|
|
10706
10744
|
attr
|
|
10707
10745
|
], MessageBar.prototype, "intent", 2);
|
|
10708
10746
|
|
|
10709
|
-
|
|
10747
|
+
MessageBar.define(definition$h);
|
|
10710
10748
|
|
|
10711
|
-
|
|
10712
|
-
return html`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`;
|
|
10713
|
-
}
|
|
10714
|
-
const template$h = messageBarTemplate();
|
|
10749
|
+
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(:disabled){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(:disabled${multipleState}) .checkmark-12-regular{border-color:${colorNeutralStrokeDisabled}}:host(:disabled${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorNeutralBackgroundDisabled}}:host(${activeState}){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(:disabled){color:GrayText}}`;
|
|
10715
10750
|
|
|
10716
|
-
const
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
|
|
10751
|
+
const checkedIndicator$1 = html.partial(
|
|
10752
|
+
/* html */
|
|
10753
|
+
`<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>`
|
|
10754
|
+
);
|
|
10755
|
+
function dropdownOptionTemplate(options = {}) {
|
|
10756
|
+
return html`<slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot>${startSlotTemplate(options)}<div class=content part=content><slot ${slotted({ property: "freeformOutputs", filter: elements("output") })}></slot></div><div class=description part=description><slot name=description ${slotted("descriptionSlot")}></slot></div>`;
|
|
10757
|
+
}
|
|
10758
|
+
const template$g = dropdownOptionTemplate({
|
|
10759
|
+
checkedIndicator: checkedIndicator$1
|
|
10723
10760
|
});
|
|
10724
10761
|
|
|
10725
|
-
definition$
|
|
10762
|
+
const definition$g = {
|
|
10763
|
+
name: tagName$p,
|
|
10764
|
+
registry: FluentDesignSystem.registry,
|
|
10765
|
+
styles: styles$g,
|
|
10766
|
+
template: template$g
|
|
10767
|
+
};
|
|
10726
10768
|
|
|
10727
10769
|
var __defProp$l = Object.defineProperty;
|
|
10728
10770
|
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
@@ -10985,26 +11027,7 @@ __decorateClass$l([
|
|
|
10985
11027
|
attr({ attribute: "text", mode: "fromView" })
|
|
10986
11028
|
], DropdownOption.prototype, "textAttribute", 2);
|
|
10987
11029
|
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
const checkedIndicator$1 = html.partial(
|
|
10991
|
-
/* html */
|
|
10992
|
-
`<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>`
|
|
10993
|
-
);
|
|
10994
|
-
function dropdownOptionTemplate(options = {}) {
|
|
10995
|
-
return html`<slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot>${startSlotTemplate(options)}<div class=content part=content><slot ${slotted({ property: "freeformOutputs", filter: elements("output") })}></slot></div><div class=description part=description><slot name=description ${slotted("descriptionSlot")}></slot></div>`;
|
|
10996
|
-
}
|
|
10997
|
-
const template$g = dropdownOptionTemplate({
|
|
10998
|
-
checkedIndicator: checkedIndicator$1
|
|
10999
|
-
});
|
|
11000
|
-
|
|
11001
|
-
const definition$g = DropdownOption.compose({
|
|
11002
|
-
name: tagName$p,
|
|
11003
|
-
template: template$g,
|
|
11004
|
-
styles: styles$g
|
|
11005
|
-
});
|
|
11006
|
-
|
|
11007
|
-
definition$g.define(FluentDesignSystem.registry);
|
|
11030
|
+
DropdownOption.define(definition$g);
|
|
11008
11031
|
|
|
11009
11032
|
const ProgressBarThickness = {
|
|
11010
11033
|
medium: "medium",
|
|
@@ -11021,6 +11044,20 @@ const ProgressBarValidationState = {
|
|
|
11021
11044
|
};
|
|
11022
11045
|
const tagName$f = `${FluentDesignSystem.prefix}-progress-bar`;
|
|
11023
11046
|
|
|
11047
|
+
const styles$f = css`${display("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${colorNeutralBackground6};border-radius:${borderRadiusMedium};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${borderRadiusNone}}.indicator{background-color:${colorCompoundBrandBackground};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${colorNeutralBackground6} 0%,${colorTransparentBackground} 50%,${colorNeutralBackground6} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${colorPaletteRedBackground3}}:host([validation-state='warning']) .indicator{background-color:${colorPaletteDarkOrangeBackground3}}:host([validation-state='success']) .indicator{background-color:${colorPaletteGreenBackground3}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;
|
|
11048
|
+
|
|
11049
|
+
function progressTemplate() {
|
|
11050
|
+
return html`<div class=indicator part=indicator ${ref("indicator")}></div>`;
|
|
11051
|
+
}
|
|
11052
|
+
const template$f = progressTemplate();
|
|
11053
|
+
|
|
11054
|
+
const definition$f = {
|
|
11055
|
+
name: tagName$f,
|
|
11056
|
+
registry: FluentDesignSystem.registry,
|
|
11057
|
+
styles: styles$f,
|
|
11058
|
+
template: template$f
|
|
11059
|
+
};
|
|
11060
|
+
|
|
11024
11061
|
var __defProp$k = Object.defineProperty;
|
|
11025
11062
|
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
11026
11063
|
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
@@ -11154,23 +11191,24 @@ __decorateClass$j([
|
|
|
11154
11191
|
attr
|
|
11155
11192
|
], ProgressBar.prototype, "shape", 2);
|
|
11156
11193
|
|
|
11157
|
-
|
|
11194
|
+
ProgressBar.define(definition$f);
|
|
11158
11195
|
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
}
|
|
11162
|
-
const template$f = progressTemplate();
|
|
11196
|
+
const RadioGroupOrientation = Orientation;
|
|
11197
|
+
const tagName$e = `${FluentDesignSystem.prefix}-radio-group`;
|
|
11163
11198
|
|
|
11164
|
-
const
|
|
11165
|
-
name: tagName$f,
|
|
11166
|
-
template: template$f,
|
|
11167
|
-
styles: styles$f
|
|
11168
|
-
});
|
|
11199
|
+
const styles$e = css`${display("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${spacingVerticalL}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${colorNeutralForeground3}}::slotted(:hover){color:${colorNeutralForeground2}}::slotted(:active){color:${colorNeutralForeground1}}::slotted(${disabledState}){color:${colorNeutralForegroundDisabled}}::slotted(${checkedState}){color:${colorNeutralForeground1}}:host([slot='input']){margin:${spacingVerticalS} ${spacingHorizontalS}}`;
|
|
11169
11200
|
|
|
11170
|
-
|
|
11201
|
+
function radioGroupTemplate() {
|
|
11202
|
+
return html`<template focusgroup="radiogroup wrap" @disabled=${(x, c) => x.disabledRadioHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @click=${(x, c) => x.clickHandler(c.event)} @focusin=${(x, c) => x.focusinHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><slot ${slotted("slottedRadios")}></slot></template>`;
|
|
11203
|
+
}
|
|
11204
|
+
const template$e = radioGroupTemplate();
|
|
11171
11205
|
|
|
11172
|
-
const
|
|
11173
|
-
|
|
11206
|
+
const definition$e = {
|
|
11207
|
+
name: tagName$e,
|
|
11208
|
+
registry: FluentDesignSystem.registry,
|
|
11209
|
+
styles: styles$e,
|
|
11210
|
+
template: template$e
|
|
11211
|
+
};
|
|
11174
11212
|
|
|
11175
11213
|
function isRadio(element, tagName2 = "-radio") {
|
|
11176
11214
|
return isCustomElement(tagName2)(element);
|
|
@@ -11628,20 +11666,25 @@ class RadioGroup extends BaseRadioGroup {
|
|
|
11628
11666
|
}
|
|
11629
11667
|
}
|
|
11630
11668
|
|
|
11631
|
-
|
|
11669
|
+
RadioGroup.define(definition$e);
|
|
11632
11670
|
|
|
11633
|
-
|
|
11634
|
-
return html`<template focusgroup="radiogroup wrap" @disabled=${(x, c) => x.disabledRadioHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @click=${(x, c) => x.clickHandler(c.event)} @focusin=${(x, c) => x.focusinHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><slot ${slotted("slottedRadios")}></slot></template>`;
|
|
11635
|
-
}
|
|
11636
|
-
const template$e = radioGroupTemplate();
|
|
11671
|
+
const styles$d = css`${display("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${borderRadiusCircular};color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(${checkedState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}) .checked-indicator{background-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover) .checked-indicator{background-color:${colorCompoundBrandBackgroundHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:active) .checked-indicator{background-color:${colorCompoundBrandBackgroundPressed}}:host(:focus-visible){outline:none}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host(${checkedState}${disabledState}) .checked-indicator{background-color:${colorNeutralStrokeDisabled}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${disabledState}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${checkedState}) .checked-indicator{background-color:FieldText}:host(${checkedState}:not(${disabledState}):hover) .checked-indicator{background-color:Highlight}:host(${disabledState}){border-color:GrayText;color:GrayText}:host(${disabledState}${checkedState}) .checked-indicator{background-color:GrayText}}`;
|
|
11637
11672
|
|
|
11638
|
-
const
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
})
|
|
11673
|
+
const checkedIndicator = html.partial(
|
|
11674
|
+
/* html */
|
|
11675
|
+
`<span part=checked-indicator class=checked-indicator role=presentation></span>`
|
|
11676
|
+
);
|
|
11677
|
+
function radioTemplate(options = {}) {
|
|
11678
|
+
return html`<template @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot></template>`;
|
|
11679
|
+
}
|
|
11680
|
+
const template$d = radioTemplate({ checkedIndicator });
|
|
11643
11681
|
|
|
11644
|
-
definition$
|
|
11682
|
+
const definition$d = {
|
|
11683
|
+
name: tagName$d,
|
|
11684
|
+
registry: FluentDesignSystem.registry,
|
|
11685
|
+
styles: styles$d,
|
|
11686
|
+
template: template$d
|
|
11687
|
+
};
|
|
11645
11688
|
|
|
11646
11689
|
class Radio extends BaseCheckbox {
|
|
11647
11690
|
constructor() {
|
|
@@ -11697,34 +11740,17 @@ class Radio extends BaseCheckbox {
|
|
|
11697
11740
|
* Toggles the checked state of the control.
|
|
11698
11741
|
*
|
|
11699
11742
|
* @param force - Forces the element to be checked or unchecked
|
|
11700
|
-
* @public
|
|
11701
|
-
* @override
|
|
11702
|
-
* @remarks
|
|
11703
|
-
* The radio checked state is controlled by the `RadioGroup` component, so the `force` parameter defaults to `true`.
|
|
11704
|
-
*/
|
|
11705
|
-
toggleChecked(force = true) {
|
|
11706
|
-
super.toggleChecked(force);
|
|
11707
|
-
}
|
|
11708
|
-
}
|
|
11709
|
-
|
|
11710
|
-
const styles$d = css`${display("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${borderRadiusCircular};color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(${checkedState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}) .checked-indicator{background-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover) .checked-indicator{background-color:${colorCompoundBrandBackgroundHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:active) .checked-indicator{background-color:${colorCompoundBrandBackgroundPressed}}:host(:focus-visible){outline:none}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host(${checkedState}${disabledState}) .checked-indicator{background-color:${colorNeutralStrokeDisabled}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${disabledState}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${checkedState}) .checked-indicator{background-color:FieldText}:host(${checkedState}:not(${disabledState}):hover) .checked-indicator{background-color:Highlight}:host(${disabledState}){border-color:GrayText;color:GrayText}:host(${disabledState}${checkedState}) .checked-indicator{background-color:GrayText}}`;
|
|
11711
|
-
|
|
11712
|
-
const checkedIndicator = html.partial(
|
|
11713
|
-
/* html */
|
|
11714
|
-
`<span part=checked-indicator class=checked-indicator role=presentation></span>`
|
|
11715
|
-
);
|
|
11716
|
-
function radioTemplate(options = {}) {
|
|
11717
|
-
return html`<template @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot></template>`;
|
|
11743
|
+
* @public
|
|
11744
|
+
* @override
|
|
11745
|
+
* @remarks
|
|
11746
|
+
* The radio checked state is controlled by the `RadioGroup` component, so the `force` parameter defaults to `true`.
|
|
11747
|
+
*/
|
|
11748
|
+
toggleChecked(force = true) {
|
|
11749
|
+
super.toggleChecked(force);
|
|
11750
|
+
}
|
|
11718
11751
|
}
|
|
11719
|
-
const template$d = radioTemplate({ checkedIndicator });
|
|
11720
|
-
|
|
11721
|
-
const definition$d = Radio.compose({
|
|
11722
|
-
name: tagName$d,
|
|
11723
|
-
template: template$d,
|
|
11724
|
-
styles: styles$d
|
|
11725
|
-
});
|
|
11726
11752
|
|
|
11727
|
-
definition$d
|
|
11753
|
+
Radio.define(definition$d);
|
|
11728
11754
|
|
|
11729
11755
|
const RatingDisplayColor = {
|
|
11730
11756
|
neutral: "neutral",
|
|
@@ -11860,6 +11886,29 @@ __decorateClass$h([
|
|
|
11860
11886
|
attr({ converter: nullableNumberConverter })
|
|
11861
11887
|
], BaseRatingDisplay.prototype, "value", 2);
|
|
11862
11888
|
|
|
11889
|
+
const defaultIconPath = `<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />`;
|
|
11890
|
+
const defaultIconFilled = `
|
|
11891
|
+
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${defaultIconPath}</svg>
|
|
11892
|
+
`;
|
|
11893
|
+
const defaultIconOutlined = `
|
|
11894
|
+
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
|
|
11895
|
+
fill="none" stroke="black" stroke-width="2"
|
|
11896
|
+
>${defaultIconPath}</svg>
|
|
11897
|
+
`;
|
|
11898
|
+
function ratingDisplayTemplate() {
|
|
11899
|
+
return html`<div ${ref("display")} class=display aria-hidden=true></div><slot name=icon ${ref("iconSlot")} @slotchange=${(x) => x.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${(x) => x.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${(x) => x.formattedCount}</span></slot>`;
|
|
11900
|
+
}
|
|
11901
|
+
const template$c = ratingDisplayTemplate();
|
|
11902
|
+
|
|
11903
|
+
const styles$c = css`${display("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${colorPaletteMarigoldBorderActive};--_icon-color-empty:${colorPaletteMarigoldBackground2};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${svgToDataURI(defaultIconFilled)});--_mask-image-outlined:url(${svgToDataURI(defaultIconOutlined)});--_mask-position-x:left;align-items:center;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${colorNeutralForeground1};--_icon-color-empty:${colorNeutralBackground6}}:host([color='brand']){--_icon-color-value:${colorBrandForeground1};--_icon-color-empty:${colorBrandBackground2}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${spacingHorizontalXXS});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${spacingHorizontalXXS}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${spacingHorizontalXS};font-weight:${fontWeightSemibold}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalXXS}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalSNudge}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${spacingHorizontalXS}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalXXS}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalSNudge}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`;
|
|
11904
|
+
|
|
11905
|
+
const definition$c = {
|
|
11906
|
+
name: tagName$c,
|
|
11907
|
+
registry: FluentDesignSystem.registry,
|
|
11908
|
+
styles: styles$c,
|
|
11909
|
+
template: template$c
|
|
11910
|
+
};
|
|
11911
|
+
|
|
11863
11912
|
var __defProp$g = Object.defineProperty;
|
|
11864
11913
|
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
11865
11914
|
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
@@ -11886,29 +11935,7 @@ __decorateClass$g([
|
|
|
11886
11935
|
attr({ mode: "boolean" })
|
|
11887
11936
|
], RatingDisplay.prototype, "compact", 2);
|
|
11888
11937
|
|
|
11889
|
-
|
|
11890
|
-
const defaultIconFilled = `
|
|
11891
|
-
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${defaultIconPath}</svg>
|
|
11892
|
-
`;
|
|
11893
|
-
const defaultIconOutlined = `
|
|
11894
|
-
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
|
|
11895
|
-
fill="none" stroke="black" stroke-width="2"
|
|
11896
|
-
>${defaultIconPath}</svg>
|
|
11897
|
-
`;
|
|
11898
|
-
function ratingDisplayTemplate() {
|
|
11899
|
-
return html`<div ${ref("display")} class=display aria-hidden=true></div><slot name=icon ${ref("iconSlot")} @slotchange=${(x) => x.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${(x) => x.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${(x) => x.formattedCount}</span></slot>`;
|
|
11900
|
-
}
|
|
11901
|
-
const template$c = ratingDisplayTemplate();
|
|
11902
|
-
|
|
11903
|
-
const styles$c = css`${display("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${colorPaletteMarigoldBorderActive};--_icon-color-empty:${colorPaletteMarigoldBackground2};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${svgToDataURI(defaultIconFilled)});--_mask-image-outlined:url(${svgToDataURI(defaultIconOutlined)});--_mask-position-x:left;align-items:center;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${colorNeutralForeground1};--_icon-color-empty:${colorNeutralBackground6}}:host([color='brand']){--_icon-color-value:${colorBrandForeground1};--_icon-color-empty:${colorBrandBackground2}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${spacingHorizontalXXS});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${spacingHorizontalXXS}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${spacingHorizontalXS};font-weight:${fontWeightSemibold}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalXXS}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalSNudge}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${spacingHorizontalXS}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalXXS}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalSNudge}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`;
|
|
11904
|
-
|
|
11905
|
-
const definition$c = RatingDisplay.compose({
|
|
11906
|
-
name: tagName$c,
|
|
11907
|
-
template: template$c,
|
|
11908
|
-
styles: styles$c
|
|
11909
|
-
});
|
|
11910
|
-
|
|
11911
|
-
definition$c.define(FluentDesignSystem.registry);
|
|
11938
|
+
RatingDisplay.define(definition$c);
|
|
11912
11939
|
|
|
11913
11940
|
const SliderSize = {
|
|
11914
11941
|
small: "small",
|
|
@@ -11920,6 +11947,22 @@ const SliderMode = {
|
|
|
11920
11947
|
};
|
|
11921
11948
|
const tagName$b = `${FluentDesignSystem.prefix}-slider`;
|
|
11922
11949
|
|
|
11950
|
+
const styles$b = css`${display("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${colorCompoundBrandBackground};--track-color:${colorNeutralStrokeAccessible};--slider-direction:90deg;--border-radius:${borderRadiusMedium};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${colorCompoundBrandBackgroundHover}}:host(:active){--rail-color:${colorCompoundBrandBackgroundPressed}}:host(:disabled){--rail-color:${colorNeutralForegroundDisabled};--track-color:${colorNeutralBackgroundDisabled}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${borderRadiusSmall}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${colorNeutralBackground1} calc(var(--step-rate) - 1px),${colorNeutralBackground1} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${borderRadiusCircular};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${colorNeutralBackground1} inset;border:calc(var(--thumb-size) * 0.05) solid ${colorNeutralStroke1};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;
|
|
11951
|
+
|
|
11952
|
+
function sliderTemplate(options = {}) {
|
|
11953
|
+
return html`<template @pointerdown=${(x, c) => x.handlePointerDown(c.event)} @keydown=${(x, c) => x.handleKeydown(c.event)}><div ${ref("track")} part=track-container class=track style=${(x) => x.position}></div><div ${ref("thumb")} part=thumb-container class=thumb-container style=${(x) => x.position} @pointerdown=${(x, c) => x.handleThumbPointerDown(c.event)}><slot name=thumb>${staticallyCompose(options.thumb)}</slot></div></template>`;
|
|
11954
|
+
}
|
|
11955
|
+
const template$b = sliderTemplate({
|
|
11956
|
+
thumb: `<div class="thumb"></div>`
|
|
11957
|
+
});
|
|
11958
|
+
|
|
11959
|
+
const definition$b = {
|
|
11960
|
+
name: tagName$b,
|
|
11961
|
+
registry: FluentDesignSystem.registry,
|
|
11962
|
+
styles: styles$b,
|
|
11963
|
+
template: template$b
|
|
11964
|
+
};
|
|
11965
|
+
|
|
11923
11966
|
function limit(min, max, value) {
|
|
11924
11967
|
return Math.min(Math.max(value, min), max);
|
|
11925
11968
|
}
|
|
@@ -12543,22 +12586,7 @@ __decorateClass$f([
|
|
|
12543
12586
|
attr
|
|
12544
12587
|
], Slider.prototype, "mode", 2);
|
|
12545
12588
|
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
function sliderTemplate(options = {}) {
|
|
12549
|
-
return html`<template @pointerdown=${(x, c) => x.handlePointerDown(c.event)} @keydown=${(x, c) => x.handleKeydown(c.event)}><div ${ref("track")} part=track-container class=track style=${(x) => x.position}></div><div ${ref("thumb")} part=thumb-container class=thumb-container style=${(x) => x.position} @pointerdown=${(x, c) => x.handleThumbPointerDown(c.event)}><slot name=thumb>${staticallyCompose(options.thumb)}</slot></div></template>`;
|
|
12550
|
-
}
|
|
12551
|
-
const template$b = sliderTemplate({
|
|
12552
|
-
thumb: `<div class="thumb"></div>`
|
|
12553
|
-
});
|
|
12554
|
-
|
|
12555
|
-
const definition$b = Slider.compose({
|
|
12556
|
-
name: tagName$b,
|
|
12557
|
-
template: template$b,
|
|
12558
|
-
styles: styles$b
|
|
12559
|
-
});
|
|
12560
|
-
|
|
12561
|
-
definition$b.define(FluentDesignSystem.registry);
|
|
12589
|
+
Slider.define(definition$b);
|
|
12562
12590
|
|
|
12563
12591
|
const SpinnerAppearance = {
|
|
12564
12592
|
primary: "primary",
|
|
@@ -12575,6 +12603,17 @@ const SpinnerSize = {
|
|
|
12575
12603
|
};
|
|
12576
12604
|
const tagName$a = `${FluentDesignSystem.prefix}-spinner`;
|
|
12577
12605
|
|
|
12606
|
+
const styles$a = css`${display("inline-flex")} :host{--duration:1.5s;--indicatorSize:${strokeWidthThicker};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${strokeWidthThick};--size:20px}:host([size='extra-small']){--indicatorSize:${strokeWidthThick};--size:24px}:host([size='small']){--indicatorSize:${strokeWidthThick};--size:28px}:host([size='large']){--indicatorSize:${strokeWidthThicker};--size:36px}:host([size='extra-large']){--indicatorSize:${strokeWidthThicker};--size:40px}:host([size='huge']){--indicatorSize:${strokeWidthThickest};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${curveEasyEase}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${colorBrandStroke2};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${colorBrandStroke1};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${colorNeutralStrokeOnBrand2}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`;
|
|
12607
|
+
|
|
12608
|
+
const template$a = html`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`;
|
|
12609
|
+
|
|
12610
|
+
const definition$a = {
|
|
12611
|
+
name: tagName$a,
|
|
12612
|
+
registry: FluentDesignSystem.registry,
|
|
12613
|
+
styles: styles$a,
|
|
12614
|
+
template: template$a
|
|
12615
|
+
};
|
|
12616
|
+
|
|
12578
12617
|
class BaseSpinner extends FASTElement {
|
|
12579
12618
|
constructor() {
|
|
12580
12619
|
super();
|
|
@@ -12607,17 +12646,7 @@ __decorateClass$e([
|
|
|
12607
12646
|
attr
|
|
12608
12647
|
], Spinner.prototype, "appearance", 2);
|
|
12609
12648
|
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
const template$a = html`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`;
|
|
12613
|
-
|
|
12614
|
-
const definition$a = Spinner.compose({
|
|
12615
|
-
name: tagName$a,
|
|
12616
|
-
template: template$a,
|
|
12617
|
-
styles: styles$a
|
|
12618
|
-
});
|
|
12619
|
-
|
|
12620
|
-
definition$a.define(FluentDesignSystem.registry);
|
|
12649
|
+
Spinner.define(definition$a);
|
|
12621
12650
|
|
|
12622
12651
|
const SwitchLabelPosition = {
|
|
12623
12652
|
above: "above",
|
|
@@ -12626,12 +12655,7 @@ const SwitchLabelPosition = {
|
|
|
12626
12655
|
};
|
|
12627
12656
|
const tagName$9 = `${FluentDesignSystem.prefix}-switch`;
|
|
12628
12657
|
|
|
12629
|
-
|
|
12630
|
-
constructor() {
|
|
12631
|
-
super();
|
|
12632
|
-
this.elementInternals.role = "switch";
|
|
12633
|
-
}
|
|
12634
|
-
}
|
|
12658
|
+
const styles$9 = css`${display("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${spacingHorizontalXXS};width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(:disabled),:host([readonly]){border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host(${checkedState}){background:${colorCompoundBrandBackground};border-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover){background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host(${checkedState}:active){background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host(${checkedState}:disabled){background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:margin-inline-start}:host(${checkedState}) .checked-indicator{background-color:${colorNeutralForegroundInverted};margin-inline-start:calc(100% - 14px)}:host(${checkedState}:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host(${checkedState}:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(${checkedState}:disabled) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};outline-offset:1px;box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${checkedState}),:host(${checkedState}:active),:host(${checkedState}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${checkedState}) .checked-indicator,:host(${checkedState}:hover) .checked-indicator,:host(${checkedState}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${checkedState}:disabled) .checked-indicator{background-color:GrayText}}`;
|
|
12635
12659
|
|
|
12636
12660
|
function switchTemplate(options = {}) {
|
|
12637
12661
|
return html`<template @click=${(x, c) => x.clickHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=switch>${staticallyCompose(options.switch)}</slot></template>`;
|
|
@@ -12640,15 +12664,21 @@ const template$9 = switchTemplate({
|
|
|
12640
12664
|
switch: `<span class="checked-indicator" part="checked-indicator"></span>`
|
|
12641
12665
|
});
|
|
12642
12666
|
|
|
12643
|
-
const
|
|
12644
|
-
|
|
12645
|
-
const definition$9 = Switch.compose({
|
|
12667
|
+
const definition$9 = {
|
|
12646
12668
|
name: tagName$9,
|
|
12647
|
-
|
|
12648
|
-
styles: styles$9
|
|
12649
|
-
|
|
12669
|
+
registry: FluentDesignSystem.registry,
|
|
12670
|
+
styles: styles$9,
|
|
12671
|
+
template: template$9
|
|
12672
|
+
};
|
|
12673
|
+
|
|
12674
|
+
class Switch extends BaseCheckbox {
|
|
12675
|
+
constructor() {
|
|
12676
|
+
super();
|
|
12677
|
+
this.elementInternals.role = "switch";
|
|
12678
|
+
}
|
|
12679
|
+
}
|
|
12650
12680
|
|
|
12651
|
-
definition$9
|
|
12681
|
+
Switch.define(definition$9);
|
|
12652
12682
|
|
|
12653
12683
|
function isTab(element, tagName2 = "-tab") {
|
|
12654
12684
|
if (element?.nodeType !== Node.ELEMENT_NODE) {
|
|
@@ -12658,6 +12688,20 @@ function isTab(element, tagName2 = "-tab") {
|
|
|
12658
12688
|
}
|
|
12659
12689
|
const tagName$8 = `${FluentDesignSystem.prefix}-tab`;
|
|
12660
12690
|
|
|
12691
|
+
const styles$8 = css`${display("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-size:${fontSizeBase300};color:${colorNeutralForeground2};fill:currentcolor;grid-row:1;padding:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${colorNeutralForeground1};font-weight:${fontWeightSemibold}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${lineHeightBase300};font-weight:${fontWeightSemibold}}:host([aria-selected='true'])::after{background-color:${colorCompoundBrandStroke};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${colorNeutralStroke1Hover};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${colorNeutralStroke1Hover}}}:host([aria-selected='true'][disabled])::after{background-color:${colorNeutralForegroundDisabled}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${colorNeutralForegroundDisabled};color:${colorNeutralForegroundDisabled};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${borderRadiusSmall};box-shadow:0 0 0 3px ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;
|
|
12692
|
+
|
|
12693
|
+
function tabTemplate(options = {}) {
|
|
12694
|
+
return html`<template slot=tab role=tab>${startSlotTemplate(options)} <span class=tab-content><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
12695
|
+
}
|
|
12696
|
+
const template$8 = tabTemplate({});
|
|
12697
|
+
|
|
12698
|
+
const definition$8 = {
|
|
12699
|
+
name: tagName$8,
|
|
12700
|
+
registry: FluentDesignSystem.registry,
|
|
12701
|
+
styles: styles$8,
|
|
12702
|
+
template: template$8
|
|
12703
|
+
};
|
|
12704
|
+
|
|
12661
12705
|
var __defProp$d = Object.defineProperty;
|
|
12662
12706
|
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
12663
12707
|
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
@@ -12707,20 +12751,7 @@ __decorateClass$d([
|
|
|
12707
12751
|
], Tab.prototype, "disabled", 2);
|
|
12708
12752
|
applyMixins(Tab, StartEnd);
|
|
12709
12753
|
|
|
12710
|
-
|
|
12711
|
-
return html`<template slot=tab role=tab>${startSlotTemplate(options)} <span class=tab-content><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
12712
|
-
}
|
|
12713
|
-
const template$8 = tabTemplate({});
|
|
12714
|
-
|
|
12715
|
-
const styles$8 = css`${display("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-size:${fontSizeBase300};color:${colorNeutralForeground2};fill:currentcolor;grid-row:1;padding:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${colorNeutralForeground1};font-weight:${fontWeightSemibold}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${lineHeightBase300};font-weight:${fontWeightSemibold}}:host([aria-selected='true'])::after{background-color:${colorCompoundBrandStroke};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${colorNeutralStroke1Hover};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${colorNeutralStroke1Hover}}}:host([aria-selected='true'][disabled])::after{background-color:${colorNeutralForegroundDisabled}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${colorNeutralForegroundDisabled};color:${colorNeutralForegroundDisabled};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${borderRadiusSmall};box-shadow:0 0 0 3px ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;
|
|
12716
|
-
|
|
12717
|
-
const definition$8 = Tab.compose({
|
|
12718
|
-
name: tagName$8,
|
|
12719
|
-
template: template$8,
|
|
12720
|
-
styles: styles$8
|
|
12721
|
-
});
|
|
12722
|
-
|
|
12723
|
-
definition$8.define(FluentDesignSystem.registry);
|
|
12754
|
+
Tab.define(definition$8);
|
|
12724
12755
|
|
|
12725
12756
|
const TablistAppearance = {
|
|
12726
12757
|
subtle: "subtle",
|
|
@@ -12734,6 +12765,17 @@ const TablistSize = {
|
|
|
12734
12765
|
const TablistOrientation = Orientation;
|
|
12735
12766
|
const tagName$7 = `${FluentDesignSystem.prefix}-tablist`;
|
|
12736
12767
|
|
|
12768
|
+
const styles$7 = css`${display("flex")} :host{--tabPaddingInline:${spacingHorizontalMNudge};--tabPaddingBlock:${spacingHorizontalM};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge}}:host([size='large']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge}}:host([orientation='vertical']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalS};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${spacingVerticalXXS};--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalMNudge}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='large']) ::slotted([slot='tab']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${colorCompoundBrandStroke};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax};z-index:3;border-radius:${borderRadiusCircular};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${strokeWidthThicker}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${strokeWidthThicker};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${colorNeutralForegroundDisabled}}}`;
|
|
12769
|
+
|
|
12770
|
+
const template$7 = html`<template role=tablist focusgroup="tablist inline block" @focusin=${(x, c) => x.handleFocusIn(c.event)}><slot name=tab ${slotted("slottedTabs")}></slot></template>`;
|
|
12771
|
+
|
|
12772
|
+
const definition$7 = {
|
|
12773
|
+
name: tagName$7,
|
|
12774
|
+
registry: FluentDesignSystem.registry,
|
|
12775
|
+
styles: styles$7,
|
|
12776
|
+
template: template$7
|
|
12777
|
+
};
|
|
12778
|
+
|
|
12737
12779
|
var __defProp$c = Object.defineProperty;
|
|
12738
12780
|
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
12739
12781
|
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
@@ -12944,17 +12986,7 @@ __decorateClass$b([
|
|
|
12944
12986
|
attr
|
|
12945
12987
|
], Tablist.prototype, "size", 2);
|
|
12946
12988
|
|
|
12947
|
-
|
|
12948
|
-
|
|
12949
|
-
const styles$7 = css`${display("flex")} :host{--tabPaddingInline:${spacingHorizontalMNudge};--tabPaddingBlock:${spacingHorizontalM};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge}}:host([size='large']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge}}:host([orientation='vertical']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalS};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${spacingVerticalXXS};--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalMNudge}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='large']) ::slotted([slot='tab']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${colorCompoundBrandStroke};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax};z-index:3;border-radius:${borderRadiusCircular};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${strokeWidthThicker}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${strokeWidthThicker};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${colorNeutralForegroundDisabled}}}`;
|
|
12950
|
-
|
|
12951
|
-
const definition$7 = Tablist.compose({
|
|
12952
|
-
name: tagName$7,
|
|
12953
|
-
template: template$7,
|
|
12954
|
-
styles: styles$7
|
|
12955
|
-
});
|
|
12956
|
-
|
|
12957
|
-
definition$7.define(FluentDesignSystem.registry);
|
|
12989
|
+
Tablist.define(definition$7);
|
|
12958
12990
|
|
|
12959
12991
|
const TextAreaSize = {
|
|
12960
12992
|
small: "small",
|
|
@@ -12982,6 +13014,23 @@ const TextAreaResize = {
|
|
|
12982
13014
|
};
|
|
12983
13015
|
const tagName$6 = `${FluentDesignSystem.prefix}-textarea`;
|
|
12984
13016
|
|
|
13017
|
+
const styles$6 = css`${display("inline-block")} :host{--font-size:${fontSizeBase300};--line-height:${lineHeightBase300};--padding-inline:${spacingHorizontalMNudge};--padding-block:${spacingVerticalSNudge};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${strokeWidthThin};--control-padding-inline:${spacingHorizontalXXS};--color:${colorNeutralForeground1};--background-color:${colorNeutralBackground1};--border-color:${colorNeutralStroke1};--border-block-end-color:${colorNeutralStrokeAccessible};--placeholder-color:${colorNeutralForeground4};--focus-indicator-color:${colorCompoundBrandStroke};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${fontFamilyBase};font-size:var(--font-size);font-weight:${fontWeightRegular};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${colorNeutralStroke1Hover};--border-block-end-color:${colorNeutralStrokeAccessibleHover}}:host(:active){--border-color:${colorNeutralStroke1Pressed};--border-block-end-color:${colorNeutralStrokeAccessiblePressed}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${fontSizeBase200};--line-height:${lineHeightBase200};--min-block-size:40px;--padding-block:${spacingVerticalXS};--padding-inline:${spacingHorizontalSNudge};--control-padding-inline:${spacingHorizontalXXS}}:host([size='large']){--font-size:${fontSizeBase400};--line-height:${lineHeightBase400};--min-block-size:64px;--padding-block:${spacingVerticalS};--padding-inline:${spacingHorizontalM};--control-padding-inline:${spacingHorizontalSNudge}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${colorNeutralBackground3};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${shadow2}}:host(${userInvalidState}){--border-color:${colorPaletteRedBorder2};--border-block-end-color:${colorPaletteRedBorder2}}:host(:disabled){--color:${colorNeutralForegroundDisabled};--background-color:${colorTransparentBackground};--border-color:${colorNeutralStrokeDisabled};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${colorNeutralForegroundDisabled};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${borderRadiusMedium};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${borderRadiusMedium});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${curveAccelerateMid};transition-duration:${durationUltraFast};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${spacingVerticalXS};padding-inline-end:${spacingHorizontalXS}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;
|
|
13018
|
+
|
|
13019
|
+
function textAreaTemplate() {
|
|
13020
|
+
return html`<template><label ${ref("labelEl")} for=control part=label><slot name=label ${slotted("labelSlottedNodes")}></slot></label><div class=root part=root ${ref("rootEl")}><textarea ${ref("controlEl")} id=control class=control part=control ?required=${(x) => x.required} ?disabled=${(x) => x.disabled} ?readonly=${(x) => x.readOnly} ?spellcheck=${(x) => x.spellcheck} autocomplete=${(x) => x.autocomplete} maxlength=${(x) => x.maxLength} minlength=${(x) => x.minLength} placeholder=${(x) => x.placeholder} @change=${(x) => x.handleControlChange()} @select=${(x) => x.handleControlSelect()} @input=${(x) => x.handleControlInput()}></textarea></div><div hidden><slot ${slotted("defaultSlottedNodes")}></slot></div></template>`;
|
|
13021
|
+
}
|
|
13022
|
+
const template$6 = textAreaTemplate();
|
|
13023
|
+
|
|
13024
|
+
const definition$6 = {
|
|
13025
|
+
name: tagName$6,
|
|
13026
|
+
registry: FluentDesignSystem.registry,
|
|
13027
|
+
shadowOptions: {
|
|
13028
|
+
delegatesFocus: true
|
|
13029
|
+
},
|
|
13030
|
+
styles: styles$6,
|
|
13031
|
+
template: template$6
|
|
13032
|
+
};
|
|
13033
|
+
|
|
12985
13034
|
const whitespaceFilter = (value) => value.nodeType !== Node.TEXT_NODE || !!value.nodeValue?.trim().length;
|
|
12986
13035
|
|
|
12987
13036
|
var __defProp$a = Object.defineProperty;
|
|
@@ -13490,23 +13539,7 @@ __decorateClass$9([
|
|
|
13490
13539
|
attr
|
|
13491
13540
|
], TextArea.prototype, "size", 2);
|
|
13492
13541
|
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
function textAreaTemplate() {
|
|
13496
|
-
return html`<template><label ${ref("labelEl")} for=control part=label><slot name=label ${slotted("labelSlottedNodes")}></slot></label><div class=root part=root ${ref("rootEl")}><textarea ${ref("controlEl")} id=control class=control part=control ?required=${(x) => x.required} ?disabled=${(x) => x.disabled} ?readonly=${(x) => x.readOnly} ?spellcheck=${(x) => x.spellcheck} autocomplete=${(x) => x.autocomplete} maxlength=${(x) => x.maxLength} minlength=${(x) => x.minLength} placeholder=${(x) => x.placeholder} @change=${(x) => x.handleControlChange()} @select=${(x) => x.handleControlSelect()} @input=${(x) => x.handleControlInput()}></textarea></div><div hidden><slot ${slotted("defaultSlottedNodes")}></slot></div></template>`;
|
|
13497
|
-
}
|
|
13498
|
-
const template$6 = textAreaTemplate();
|
|
13499
|
-
|
|
13500
|
-
const definition$6 = TextArea.compose({
|
|
13501
|
-
name: tagName$6,
|
|
13502
|
-
template: template$6,
|
|
13503
|
-
styles: styles$6,
|
|
13504
|
-
shadowOptions: {
|
|
13505
|
-
delegatesFocus: true
|
|
13506
|
-
}
|
|
13507
|
-
});
|
|
13508
|
-
|
|
13509
|
-
definition$6.define(FluentDesignSystem.registry);
|
|
13542
|
+
TextArea.define(definition$6);
|
|
13510
13543
|
|
|
13511
13544
|
const TextInputControlSize = {
|
|
13512
13545
|
small: "small",
|
|
@@ -13542,6 +13575,23 @@ const ImplicitSubmissionBlockingTypes = [
|
|
|
13542
13575
|
];
|
|
13543
13576
|
const tagName$5 = `${FluentDesignSystem.prefix}-text-input`;
|
|
13544
13577
|
|
|
13578
|
+
const styles$5 = css`${display("block")} :host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host([appearance='outline']:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host([control-size='small']) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host([control-size='small']) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host([control-size='large']) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host([control-size='large']) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host([appearance='underline']) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host([appearance='underline']:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='underline']:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host([appearance='filled-lighter']) .root{background:${colorNeutralBackground1}}:host([appearance='filled-darker']) .root{background:${colorNeutralBackground3}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
|
|
13579
|
+
|
|
13580
|
+
function textInputTemplate(options = {}) {
|
|
13581
|
+
return html`<template @keydown=${(x, c) => x.keydownHandler(c.event)}><label part=label for=control class=label ${ref("controlLabel")}><slot ${slotted("defaultSlottedNodes")}></slot></label><div class=root part=root>${startSlotTemplate(options)} <input class=control part=control id=control @change=${(x, c) => x.changeHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} autocomplete=${(x) => x.autocomplete} ?disabled=${(x) => x.disabled} list=${(x) => x.list} maxlength=${(x) => x.maxlength} minlength=${(x) => x.minlength} ?multiple=${(x) => x.multiple} name=${(x) => x.name} pattern=${(x) => x.pattern} placeholder=${(x) => x.placeholder} ?readonly=${(x) => x.readOnly} ?required=${(x) => x.required} size=${(x) => x.size} spellcheck=${(x) => x.spellcheck} type=${(x) => x.type} value=${(x) => x.value} ${ref("control")}> ${endSlotTemplate(options)}</div></template>`;
|
|
13582
|
+
}
|
|
13583
|
+
const template$5 = textInputTemplate();
|
|
13584
|
+
|
|
13585
|
+
const definition$5 = {
|
|
13586
|
+
name: tagName$5,
|
|
13587
|
+
registry: FluentDesignSystem.registry,
|
|
13588
|
+
shadowOptions: {
|
|
13589
|
+
delegatesFocus: true
|
|
13590
|
+
},
|
|
13591
|
+
styles: styles$5,
|
|
13592
|
+
template: template$5
|
|
13593
|
+
};
|
|
13594
|
+
|
|
13545
13595
|
var __defProp$8 = Object.defineProperty;
|
|
13546
13596
|
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
13547
13597
|
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
@@ -13960,23 +14010,7 @@ __decorateClass$7([
|
|
|
13960
14010
|
], TextInput.prototype, "controlSize", 2);
|
|
13961
14011
|
applyMixins(TextInput, StartEnd);
|
|
13962
14012
|
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
function textInputTemplate(options = {}) {
|
|
13966
|
-
return html`<template @keydown=${(x, c) => x.keydownHandler(c.event)}><label part=label for=control class=label ${ref("controlLabel")}><slot ${slotted("defaultSlottedNodes")}></slot></label><div class=root part=root>${startSlotTemplate(options)} <input class=control part=control id=control @change=${(x, c) => x.changeHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} autocomplete=${(x) => x.autocomplete} ?disabled=${(x) => x.disabled} list=${(x) => x.list} maxlength=${(x) => x.maxlength} minlength=${(x) => x.minlength} ?multiple=${(x) => x.multiple} name=${(x) => x.name} pattern=${(x) => x.pattern} placeholder=${(x) => x.placeholder} ?readonly=${(x) => x.readOnly} ?required=${(x) => x.required} size=${(x) => x.size} spellcheck=${(x) => x.spellcheck} type=${(x) => x.type} value=${(x) => x.value} ${ref("control")}> ${endSlotTemplate(options)}</div></template>`;
|
|
13967
|
-
}
|
|
13968
|
-
const template$5 = textInputTemplate();
|
|
13969
|
-
|
|
13970
|
-
const definition$5 = TextInput.compose({
|
|
13971
|
-
name: tagName$5,
|
|
13972
|
-
template: template$5,
|
|
13973
|
-
styles: styles$5,
|
|
13974
|
-
shadowOptions: {
|
|
13975
|
-
delegatesFocus: true
|
|
13976
|
-
}
|
|
13977
|
-
});
|
|
13978
|
-
|
|
13979
|
-
definition$5.define(FluentDesignSystem.registry);
|
|
14013
|
+
TextInput.define(definition$5);
|
|
13980
14014
|
|
|
13981
14015
|
const TextSize = {
|
|
13982
14016
|
_100: "100",
|
|
@@ -14009,6 +14043,17 @@ const TextAlign = {
|
|
|
14009
14043
|
};
|
|
14010
14044
|
const tagName$4 = `${FluentDesignSystem.prefix}-text`;
|
|
14011
14045
|
|
|
14046
|
+
const styles$4 = css`${display("inline")} :host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host([size='200']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='400']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='500']){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([size='600']){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host([size='700']){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host([size='800']){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host([size='900']){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host([size='1000']){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host([font='monospace']){font-family:${fontFamilyMonospace}}:host([font='numeric']){font-family:${fontFamilyNumeric}}:host([weight='medium']){font-weight:${fontWeightMedium}}:host([weight='semibold']){font-weight:${fontWeightSemibold}}:host([weight='bold']){font-weight:${fontWeightBold}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`;
|
|
14047
|
+
|
|
14048
|
+
const template$4 = html`<slot></slot>`;
|
|
14049
|
+
|
|
14050
|
+
const definition$4 = {
|
|
14051
|
+
name: tagName$4,
|
|
14052
|
+
registry: FluentDesignSystem.registry,
|
|
14053
|
+
styles: styles$4,
|
|
14054
|
+
template: template$4
|
|
14055
|
+
};
|
|
14056
|
+
|
|
14012
14057
|
var __defProp$6 = Object.defineProperty;
|
|
14013
14058
|
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
14014
14059
|
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
@@ -14067,23 +14112,24 @@ __decorateClass$6([
|
|
|
14067
14112
|
attr
|
|
14068
14113
|
], Text.prototype, "align", 2);
|
|
14069
14114
|
|
|
14070
|
-
|
|
14071
|
-
|
|
14072
|
-
const template$4 = html`<slot></slot>`;
|
|
14073
|
-
|
|
14074
|
-
const definition$4 = Text.compose({
|
|
14075
|
-
name: tagName$4,
|
|
14076
|
-
template: template$4,
|
|
14077
|
-
styles: styles$4
|
|
14078
|
-
});
|
|
14079
|
-
|
|
14080
|
-
definition$4.define(FluentDesignSystem.registry);
|
|
14115
|
+
Text.define(definition$4);
|
|
14081
14116
|
|
|
14082
14117
|
const ToggleButtonAppearance = ButtonAppearance;
|
|
14083
14118
|
const ToggleButtonShape = ButtonShape;
|
|
14084
14119
|
const ToggleButtonSize = ButtonSize;
|
|
14085
14120
|
const tagName$3 = `${FluentDesignSystem.prefix}-toggle-button`;
|
|
14086
14121
|
|
|
14122
|
+
const styles$3 = css`${styles$D} :host(${pressedState}){border-color:${colorNeutralStroke1};background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground1};border-width:${strokeWidthThin}}:host(${pressedState}:hover){border-color:${colorNeutralStroke1Hover};background-color:${colorNeutralBackground1Hover}}:host(${pressedState}:active){border-color:${colorNeutralStroke1Pressed};background-color:${colorNeutralBackground1Pressed}}:host(${pressedState}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${pressedState}[appearance='primary']){background-color:${colorBrandBackgroundSelected};color:${colorNeutralForegroundOnBrand}}:host(${pressedState}[appearance='primary']:hover){background-color:${colorBrandBackgroundHover}}:host(${pressedState}[appearance='primary']:active){background-color:${colorBrandBackgroundPressed}}:host(${pressedState}[appearance='subtle']){border-color:transparent;background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host(${pressedState}[appearance='subtle']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}:host(${pressedState}[appearance='subtle']:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}:host(${pressedState}[appearance='outline']),:host(${pressedState}[appearance='transparent']){background-color:${colorTransparentBackgroundSelected}}:host(${pressedState}[appearance='outline']:hover),:host(${pressedState}[appearance='transparent']:hover){background-color:${colorTransparentBackgroundHover}}:host(${pressedState}[appearance='outline']:active),:host(${pressedState}[appearance='transparent']:active){background-color:${colorTransparentBackgroundPressed}}:host(${pressedState}[appearance='transparent']){border-color:transparent;color:${colorNeutralForeground2BrandSelected}}:host(${pressedState}[appearance='transparent']:hover){color:${colorNeutralForeground2BrandHover}}:host(${pressedState}[appearance='transparent']:active){color:${colorNeutralForeground2BrandPressed}}@media (forced-colors:active){:host(${pressedState}),:host( ${pressedState}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${pressedState}[appearance='primary']){color:SelectedItemText}}`;
|
|
14123
|
+
|
|
14124
|
+
const template$3 = buttonTemplate$1();
|
|
14125
|
+
|
|
14126
|
+
const definition$3 = {
|
|
14127
|
+
name: tagName$3,
|
|
14128
|
+
registry: FluentDesignSystem.registry,
|
|
14129
|
+
styles: styles$3,
|
|
14130
|
+
template: template$3
|
|
14131
|
+
};
|
|
14132
|
+
|
|
14087
14133
|
var __defProp$5 = Object.defineProperty;
|
|
14088
14134
|
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
14089
14135
|
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
@@ -14144,17 +14190,7 @@ __decorateClass$5([
|
|
|
14144
14190
|
attr({ mode: "boolean" })
|
|
14145
14191
|
], ToggleButton.prototype, "mixed", 2);
|
|
14146
14192
|
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
const template$3 = buttonTemplate$1();
|
|
14150
|
-
|
|
14151
|
-
const definition$3 = ToggleButton.compose({
|
|
14152
|
-
name: tagName$3,
|
|
14153
|
-
template: template$3,
|
|
14154
|
-
styles: styles$3
|
|
14155
|
-
});
|
|
14156
|
-
|
|
14157
|
-
definition$3.define(FluentDesignSystem.registry);
|
|
14193
|
+
ToggleButton.define(definition$3);
|
|
14158
14194
|
|
|
14159
14195
|
const TooltipPositioningOption = {
|
|
14160
14196
|
"above-start": "block-start span-inline-end",
|
|
@@ -14172,6 +14208,17 @@ const TooltipPositioningOption = {
|
|
|
14172
14208
|
};
|
|
14173
14209
|
const tagName$2 = `${FluentDesignSystem.prefix}-tooltip`;
|
|
14174
14210
|
|
|
14211
|
+
const styles$2 = css`${display("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;overflow:visible;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${TooltipPositioningOption["above-start"]}}:host([positioning='above']){--position-area:${TooltipPositioningOption.above}}:host([positioning='above-end']){--position-area:${TooltipPositioningOption["above-end"]}}:host([positioning='below-start']){--position-area:${TooltipPositioningOption["below-start"]}}:host([positioning='below']){--position-area:${TooltipPositioningOption.below}}:host([positioning='below-end']){--position-area:${TooltipPositioningOption["below-end"]}}:host([positioning='before-top']){--position-area:${TooltipPositioningOption["before-top"]}}:host([positioning='before']){--position-area:${TooltipPositioningOption.before}}:host([positioning='before-bottom']){--position-area:${TooltipPositioningOption["before-bottom"]}}:host([positioning='after-top']){--position-area:${TooltipPositioningOption["after-top"]}}:host([positioning='after']){--position-area:${TooltipPositioningOption.after}}:host([positioning='after-bottom']){--position-area:${TooltipPositioningOption["after-bottom"]}}`;
|
|
14212
|
+
|
|
14213
|
+
const template$2 = html`<template popover aria-hidden=true><slot></slot></template>`;
|
|
14214
|
+
|
|
14215
|
+
const definition$2 = {
|
|
14216
|
+
name: tagName$2,
|
|
14217
|
+
registry: FluentDesignSystem.registry,
|
|
14218
|
+
styles: styles$2,
|
|
14219
|
+
template: template$2
|
|
14220
|
+
};
|
|
14221
|
+
|
|
14175
14222
|
var __defProp$4 = Object.defineProperty;
|
|
14176
14223
|
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
14177
14224
|
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
@@ -14384,19 +14431,20 @@ __decorateClass$4([
|
|
|
14384
14431
|
attr
|
|
14385
14432
|
], Tooltip.prototype, "anchor", 2);
|
|
14386
14433
|
|
|
14387
|
-
|
|
14434
|
+
Tooltip.define(definition$2);
|
|
14388
14435
|
|
|
14389
|
-
const
|
|
14436
|
+
const tagName$1 = `${FluentDesignSystem.prefix}-tree`;
|
|
14390
14437
|
|
|
14391
|
-
const
|
|
14392
|
-
name: tagName$2,
|
|
14393
|
-
template: template$2,
|
|
14394
|
-
styles: styles$2
|
|
14395
|
-
});
|
|
14438
|
+
const styles$1 = css`${display("block")} :host{outline:none}`;
|
|
14396
14439
|
|
|
14397
|
-
|
|
14440
|
+
const template$1 = html`<template tabindex=0 focusgroup="menu inline block nowrap nomemory" @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @toggle=${(x, c) => x.itemToggleHandler()}><slot ${ref("defaultSlot")} @slotchange=${(x) => x.handleDefaultSlotChange()}></slot></template>`;
|
|
14398
14441
|
|
|
14399
|
-
const
|
|
14442
|
+
const definition$1 = {
|
|
14443
|
+
name: tagName$1,
|
|
14444
|
+
registry: FluentDesignSystem.registry,
|
|
14445
|
+
styles: styles$1,
|
|
14446
|
+
template: template$1
|
|
14447
|
+
};
|
|
14400
14448
|
|
|
14401
14449
|
const TreeItemAppearance = {
|
|
14402
14450
|
subtle: "subtle",
|
|
@@ -14646,17 +14694,19 @@ __decorateClass$2([
|
|
|
14646
14694
|
attr
|
|
14647
14695
|
], Tree.prototype, "appearance", 2);
|
|
14648
14696
|
|
|
14649
|
-
|
|
14697
|
+
Tree.define(definition$1);
|
|
14650
14698
|
|
|
14651
|
-
const
|
|
14699
|
+
const styles = css`${display("block")} :host{outline:none;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host(:focus-visible) .positioning-region{box-shadow:${spacingVerticalNone} ${spacingVerticalNone} ${spacingVerticalNone} ${spacingVerticalXXS} ${colorStrokeFocus2} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${spacingVerticalXXXL};padding-inline-start:calc(var(--indent) * ${spacingHorizontalXXL});padding-inline-end:${spacingVerticalS};border-radius:${borderRadiusMedium};background-color:${colorSubtleBackground};color:${colorNeutralForeground2};gap:${spacingHorizontalXS}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${colorStrokeFocus2}}}.content{display:flex;align-items:center;gap:${spacingHorizontalXS}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${spacingHorizontalXXL};height:${spacingVerticalXXL};transition:transform ${durationFaster} ${curveEasyEaseMax};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}.positioning-region:active{background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${spacingHorizontalXXS}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([selected]) .content,:host([selected]) .chevron{color:${colorNeutralForeground3Selected}}:host([size='small']) .positioning-region{height:${spacingVerticalXXL};padding-inline-start:calc(var(--indent) * ${spacingHorizontalM})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${colorSubtleBackgroundLightAlphaHover}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${colorSubtleBackgroundLightAlphaPressed}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${colorSubtleBackgroundLightAlphaSelected};color:${colorNeutralForeground2Selected}}:host([appearance='transparent']) .positioning-region{background-color:${colorTransparentBackground}}:host([appearance='transparent']) .positioning-region:hover{background-color:${colorTransparentBackgroundHover}}:host([appearance='transparent']) .positioning-region:active{background-color:${colorTransparentBackgroundPressed}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${colorTransparentBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([expanded]) .chevron{transform:rotate(90deg)}`;
|
|
14652
14700
|
|
|
14653
|
-
const
|
|
14654
|
-
|
|
14655
|
-
template: template$1,
|
|
14656
|
-
styles: styles$1
|
|
14657
|
-
});
|
|
14701
|
+
const chevronIcon = html`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`;
|
|
14702
|
+
const template = html`<template tabindex=0 ?focusgroupstart=${(x) => x.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${chevronIcon}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${ref("itemSlot")} @slotchange=${(x) => x.handleItemSlotChange()}></slot></div></template>`;
|
|
14658
14703
|
|
|
14659
|
-
definition
|
|
14704
|
+
const definition = {
|
|
14705
|
+
name: tagName,
|
|
14706
|
+
registry: FluentDesignSystem.registry,
|
|
14707
|
+
styles,
|
|
14708
|
+
template
|
|
14709
|
+
};
|
|
14660
14710
|
|
|
14661
14711
|
var __defProp$1 = Object.defineProperty;
|
|
14662
14712
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
@@ -14905,18 +14955,7 @@ __decorateClass([
|
|
|
14905
14955
|
attr
|
|
14906
14956
|
], TreeItem.prototype, "appearance", 2);
|
|
14907
14957
|
|
|
14908
|
-
|
|
14909
|
-
|
|
14910
|
-
const chevronIcon = html`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`;
|
|
14911
|
-
const template = html`<template tabindex=0 ?focusgroupstart=${(x) => x.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${chevronIcon}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${ref("itemSlot")} @slotchange=${(x) => x.handleItemSlotChange()}></slot></div></template>`;
|
|
14912
|
-
|
|
14913
|
-
const definition = TreeItem.compose({
|
|
14914
|
-
name: tagName,
|
|
14915
|
-
template: template,
|
|
14916
|
-
styles: styles
|
|
14917
|
-
});
|
|
14918
|
-
|
|
14919
|
-
definition.define(FluentDesignSystem.registry);
|
|
14958
|
+
TreeItem.define(definition);
|
|
14920
14959
|
|
|
14921
14960
|
const SUPPORTS_ADOPTED_STYLE_SHEETS = "adoptedStyleSheets" in document;
|
|
14922
14961
|
const SUPPORTS_CSS_SCOPE = "CSSScopeRule" in window;
|