@fluentui/web-components 3.0.0-rc.20 → 3.0.0-rc.22
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 +22 -2
- package/custom-elements.json +1594 -260
- package/dist/esm/accordion/accordion.definition-async.d.ts +10 -0
- package/dist/esm/accordion/accordion.definition-async.js +14 -0
- package/dist/esm/accordion/accordion.definition-async.js.map +1 -0
- package/dist/esm/accordion/accordion.js +1 -1
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion/accordion.styles.css +8 -0
- package/dist/esm/accordion/accordion.template.html +5 -0
- package/dist/esm/accordion/define-async.d.ts +1 -0
- package/dist/esm/accordion/define-async.js +5 -0
- package/dist/esm/accordion/define-async.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.definition-async.d.ts +10 -0
- package/dist/esm/accordion-item/accordion-item.definition-async.js +14 -0
- package/dist/esm/accordion-item/accordion-item.definition-async.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.styles.css +170 -0
- package/dist/esm/accordion-item/accordion-item.template.html +47 -0
- package/dist/esm/accordion-item/define-async.d.ts +1 -0
- package/dist/esm/accordion-item/define-async.js +5 -0
- package/dist/esm/accordion-item/define-async.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.definition-async.d.ts +10 -0
- package/dist/esm/anchor-button/anchor-button.definition-async.js +14 -0
- package/dist/esm/anchor-button/anchor-button.definition-async.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.styles.css +225 -0
- package/dist/esm/anchor-button/anchor-button.template.html +13 -0
- package/dist/esm/anchor-button/define-async.d.ts +1 -0
- package/dist/esm/anchor-button/define-async.js +5 -0
- package/dist/esm/anchor-button/define-async.js.map +1 -0
- package/dist/esm/avatar/avatar.definition-async.d.ts +10 -0
- package/dist/esm/avatar/avatar.definition-async.js +14 -0
- package/dist/esm/avatar/avatar.definition-async.js.map +1 -0
- package/dist/esm/avatar/avatar.styles.css +475 -0
- package/dist/esm/avatar/avatar.template.html +17 -0
- package/dist/esm/avatar/define-async.d.ts +1 -0
- package/dist/esm/avatar/define-async.js +5 -0
- package/dist/esm/avatar/define-async.js.map +1 -0
- package/dist/esm/badge/badge.definition-async.d.ts +10 -0
- package/dist/esm/badge/badge.definition-async.js +14 -0
- package/dist/esm/badge/badge.definition-async.js.map +1 -0
- package/dist/esm/badge/badge.styles.css +268 -0
- package/dist/esm/badge/badge.template.html +5 -0
- package/dist/esm/badge/define-async.d.ts +1 -0
- package/dist/esm/badge/define-async.js +5 -0
- package/dist/esm/badge/define-async.js.map +1 -0
- package/dist/esm/button/button.definition-async.d.ts +10 -0
- package/dist/esm/button/button.definition-async.js +14 -0
- package/dist/esm/button/button.definition-async.js.map +1 -0
- package/dist/esm/button/button.styles.css +267 -0
- package/dist/esm/button/button.template.html +12 -0
- package/dist/esm/button/define-async.d.ts +1 -0
- package/dist/esm/button/define-async.js +5 -0
- package/dist/esm/button/define-async.js.map +1 -0
- package/dist/esm/checkbox/checkbox.base.js +9 -7
- package/dist/esm/checkbox/checkbox.base.js.map +1 -1
- package/dist/esm/checkbox/checkbox.definition-async.d.ts +10 -0
- package/dist/esm/checkbox/checkbox.definition-async.js +14 -0
- package/dist/esm/checkbox/checkbox.definition-async.js.map +1 -0
- package/dist/esm/checkbox/checkbox.styles.css +168 -0
- package/dist/esm/checkbox/checkbox.template.html +24 -0
- package/dist/esm/checkbox/define-async.d.ts +1 -0
- package/dist/esm/checkbox/define-async.js +5 -0
- package/dist/esm/checkbox/define-async.js.map +1 -0
- package/dist/esm/compound-button/compound-button.definition-async.d.ts +10 -0
- package/dist/esm/compound-button/compound-button.definition-async.js +14 -0
- package/dist/esm/compound-button/compound-button.definition-async.js.map +1 -0
- package/dist/esm/compound-button/compound-button.styles.css +372 -0
- package/dist/esm/compound-button/compound-button.template.html +13 -0
- package/dist/esm/compound-button/define-async.d.ts +1 -0
- package/dist/esm/compound-button/define-async.js +5 -0
- package/dist/esm/compound-button/define-async.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.definition-async.d.ts +10 -0
- package/dist/esm/counter-badge/counter-badge.definition-async.js +14 -0
- package/dist/esm/counter-badge/counter-badge.definition-async.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.styles.css +177 -0
- package/dist/esm/counter-badge/counter-badge.template.html +5 -0
- package/dist/esm/counter-badge/define-async.d.ts +1 -0
- package/dist/esm/counter-badge/define-async.js +5 -0
- package/dist/esm/counter-badge/define-async.js.map +1 -0
- package/dist/esm/dialog/define-async.d.ts +1 -0
- package/dist/esm/dialog/define-async.js +5 -0
- package/dist/esm/dialog/define-async.js.map +1 -0
- package/dist/esm/dialog/dialog.definition-async.d.ts +10 -0
- package/dist/esm/dialog/dialog.definition-async.js +14 -0
- package/dist/esm/dialog/dialog.definition-async.js.map +1 -0
- package/dist/esm/dialog/dialog.styles.css +86 -0
- package/dist/esm/dialog/dialog.template.html +16 -0
- package/dist/esm/dialog-body/define-async.d.ts +1 -0
- package/dist/esm/dialog-body/define-async.js +5 -0
- package/dist/esm/dialog-body/define-async.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.definition-async.d.ts +10 -0
- package/dist/esm/dialog-body/dialog-body.definition-async.js +14 -0
- package/dist/esm/dialog-body/dialog-body.definition-async.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.styles.css +87 -0
- package/dist/esm/dialog-body/dialog-body.template.html +11 -0
- package/dist/esm/divider/define-async.d.ts +1 -0
- package/dist/esm/divider/define-async.js +5 -0
- package/dist/esm/divider/define-async.js.map +1 -0
- package/dist/esm/divider/divider.definition-async.d.ts +10 -0
- package/dist/esm/divider/divider.definition-async.js +14 -0
- package/dist/esm/divider/divider.definition-async.js.map +1 -0
- package/dist/esm/divider/divider.styles.css +119 -0
- package/dist/esm/divider/divider.template.html +1 -0
- package/dist/esm/drawer/define-async.d.ts +1 -0
- package/dist/esm/drawer/define-async.js +5 -0
- package/dist/esm/drawer/define-async.js.map +1 -0
- package/dist/esm/drawer/drawer.definition-async.d.ts +10 -0
- package/dist/esm/drawer/drawer.definition-async.js +14 -0
- package/dist/esm/drawer/drawer.definition-async.js.map +1 -0
- package/dist/esm/drawer/drawer.styles.css +130 -0
- package/dist/esm/drawer/drawer.template.html +18 -0
- package/dist/esm/drawer-body/define-async.d.ts +1 -0
- package/dist/esm/drawer-body/define-async.js +5 -0
- package/dist/esm/drawer-body/define-async.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.definition-async.d.ts +10 -0
- package/dist/esm/drawer-body/drawer-body.definition-async.js +14 -0
- package/dist/esm/drawer-body/drawer-body.definition-async.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.styles.css +33 -0
- package/dist/esm/drawer-body/drawer-body.template.html +12 -0
- package/dist/esm/dropdown/define-async.d.ts +1 -0
- package/dist/esm/dropdown/define-async.js +5 -0
- package/dist/esm/dropdown/define-async.js.map +1 -0
- package/dist/esm/dropdown/dropdown.base.js +5 -4
- package/dist/esm/dropdown/dropdown.base.js.map +1 -1
- package/dist/esm/dropdown/dropdown.definition-async.d.ts +10 -0
- package/dist/esm/dropdown/dropdown.definition-async.js +14 -0
- package/dist/esm/dropdown/dropdown.definition-async.js.map +1 -0
- package/dist/esm/dropdown/dropdown.styles.css +221 -0
- package/dist/esm/dropdown/dropdown.template.html +21 -0
- package/dist/esm/field/define-async.d.ts +1 -0
- package/dist/esm/field/define-async.js +5 -0
- package/dist/esm/field/define-async.js.map +1 -0
- package/dist/esm/field/field.definition-async.d.ts +10 -0
- package/dist/esm/field/field.definition-async.js +17 -0
- package/dist/esm/field/field.definition-async.js.map +1 -0
- package/dist/esm/field/field.styles.css +121 -0
- package/dist/esm/field/field.template.html +12 -0
- package/dist/esm/image/define-async.d.ts +1 -0
- package/dist/esm/image/define-async.js +5 -0
- package/dist/esm/image/define-async.js.map +1 -0
- package/dist/esm/image/image.definition-async.d.ts +10 -0
- package/dist/esm/image/image.definition-async.js +14 -0
- package/dist/esm/image/image.definition-async.js.map +1 -0
- package/dist/esm/image/image.styles.css +51 -0
- package/dist/esm/image/image.template.html +1 -0
- package/dist/esm/label/define-async.d.ts +1 -0
- package/dist/esm/label/define-async.js +5 -0
- package/dist/esm/label/define-async.js.map +1 -0
- package/dist/esm/label/label.definition-async.d.ts +10 -0
- package/dist/esm/label/label.definition-async.js +14 -0
- package/dist/esm/label/label.definition-async.js.map +1 -0
- package/dist/esm/label/label.styles.css +36 -0
- package/dist/esm/label/label.template.html +4 -0
- package/dist/esm/link/define-async.d.ts +1 -0
- package/dist/esm/link/define-async.js +5 -0
- package/dist/esm/link/define-async.js.map +1 -0
- package/dist/esm/link/link.definition-async.d.ts +10 -0
- package/dist/esm/link/link.definition-async.js +14 -0
- package/dist/esm/link/link.definition-async.js.map +1 -0
- package/dist/esm/link/link.styles.css +68 -0
- package/dist/esm/link/link.template.html +9 -0
- package/dist/esm/listbox/define-async.d.ts +1 -0
- package/dist/esm/listbox/define-async.js +5 -0
- package/dist/esm/listbox/define-async.js.map +1 -0
- package/dist/esm/listbox/listbox.definition-async.d.ts +10 -0
- package/dist/esm/listbox/listbox.definition-async.js +14 -0
- package/dist/esm/listbox/listbox.definition-async.js.map +1 -0
- package/dist/esm/listbox/listbox.styles.css +51 -0
- package/dist/esm/listbox/listbox.template.html +8 -0
- package/dist/esm/menu/define-async.d.ts +1 -0
- package/dist/esm/menu/define-async.js +5 -0
- package/dist/esm/menu/define-async.js.map +1 -0
- package/dist/esm/menu/menu.definition-async.d.ts +10 -0
- package/dist/esm/menu/menu.definition-async.js +14 -0
- package/dist/esm/menu/menu.definition-async.js.map +1 -0
- package/dist/esm/menu/menu.styles.css +53 -0
- package/dist/esm/menu/menu.template.html +7 -0
- package/dist/esm/menu/menu.template.js +1 -7
- package/dist/esm/menu/menu.template.js.map +1 -1
- package/dist/esm/menu-button/define-async.d.ts +1 -0
- package/dist/esm/menu-button/define-async.js +5 -0
- package/dist/esm/menu-button/define-async.js.map +1 -0
- package/dist/esm/menu-button/menu-button.definition-async.d.ts +10 -0
- package/dist/esm/menu-button/menu-button.definition-async.js +14 -0
- package/dist/esm/menu-button/menu-button.definition-async.js.map +1 -0
- package/dist/esm/menu-button/menu-button.definition.js +1 -1
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
- package/dist/esm/menu-button/menu-button.styles.css +267 -0
- package/dist/esm/menu-button/menu-button.styles.d.ts +6 -0
- package/dist/esm/menu-button/menu-button.styles.js +8 -0
- package/dist/esm/menu-button/menu-button.styles.js.map +1 -0
- package/dist/esm/menu-button/menu-button.template.html +16 -0
- package/dist/esm/menu-item/define-async.d.ts +1 -0
- package/dist/esm/menu-item/define-async.js +5 -0
- package/dist/esm/menu-item/define-async.js.map +1 -0
- package/dist/esm/menu-item/menu-item.definition-async.d.ts +10 -0
- package/dist/esm/menu-item/menu-item.definition-async.js +14 -0
- package/dist/esm/menu-item/menu-item.definition-async.js.map +1 -0
- package/dist/esm/menu-item/menu-item.styles.css +152 -0
- package/dist/esm/menu-item/menu-item.template.html +19 -0
- package/dist/esm/menu-list/define-async.d.ts +1 -0
- package/dist/esm/menu-list/define-async.js +5 -0
- package/dist/esm/menu-list/define-async.js.map +1 -0
- package/dist/esm/menu-list/menu-list.base.js +3 -0
- package/dist/esm/menu-list/menu-list.base.js.map +1 -1
- package/dist/esm/menu-list/menu-list.definition-async.d.ts +10 -0
- package/dist/esm/menu-list/menu-list.definition-async.js +14 -0
- package/dist/esm/menu-list/menu-list.definition-async.js.map +1 -0
- package/dist/esm/menu-list/menu-list.styles.css +16 -0
- package/dist/esm/menu-list/menu-list.template.html +5 -0
- package/dist/esm/menu-list/menu-list.template.js +1 -1
- package/dist/esm/menu-list/menu-list.template.js.map +1 -1
- package/dist/esm/message-bar/define-async.d.ts +1 -0
- package/dist/esm/message-bar/define-async.js +5 -0
- package/dist/esm/message-bar/define-async.js.map +1 -0
- package/dist/esm/message-bar/message-bar.definition-async.d.ts +10 -0
- package/dist/esm/message-bar/message-bar.definition-async.js +14 -0
- package/dist/esm/message-bar/message-bar.definition-async.js.map +1 -0
- package/dist/esm/message-bar/message-bar.styles.css +98 -0
- package/dist/esm/message-bar/message-bar.template.html +8 -0
- package/dist/esm/option/define-async.d.ts +1 -0
- package/dist/esm/option/define-async.js +5 -0
- package/dist/esm/option/define-async.js.map +1 -0
- package/dist/esm/option/option.definition-async.d.ts +10 -0
- package/dist/esm/option/option.definition-async.js +14 -0
- package/dist/esm/option/option.definition-async.js.map +1 -0
- package/dist/esm/option/option.styles.css +131 -0
- package/dist/esm/option/option.template.html +21 -0
- package/dist/esm/progress-bar/define-async.d.ts +1 -0
- package/dist/esm/progress-bar/define-async.js +5 -0
- package/dist/esm/progress-bar/define-async.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.definition-async.d.ts +10 -0
- package/dist/esm/progress-bar/progress-bar.definition-async.js +14 -0
- package/dist/esm/progress-bar/progress-bar.definition-async.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.styles.css +99 -0
- package/dist/esm/progress-bar/progress-bar.template.html +3 -0
- package/dist/esm/radio/define-async.d.ts +1 -0
- package/dist/esm/radio/define-async.js +5 -0
- package/dist/esm/radio/define-async.js.map +1 -0
- package/dist/esm/radio/radio.definition-async.d.ts +10 -0
- package/dist/esm/radio/radio.definition-async.js +14 -0
- package/dist/esm/radio/radio.definition-async.js.map +1 -0
- package/dist/esm/radio/radio.styles.css +115 -0
- package/dist/esm/radio/radio.template.html +11 -0
- package/dist/esm/radio-group/define-async.d.ts +1 -0
- package/dist/esm/radio-group/define-async.js +5 -0
- package/dist/esm/radio-group/define-async.js.map +1 -0
- package/dist/esm/radio-group/radio-group.definition-async.d.ts +10 -0
- package/dist/esm/radio-group/radio-group.definition-async.js +14 -0
- package/dist/esm/radio-group/radio-group.definition-async.js.map +1 -0
- package/dist/esm/radio-group/radio-group.styles.css +41 -0
- package/dist/esm/radio-group/radio-group.template.html +12 -0
- package/dist/esm/rating-display/define-async.d.ts +1 -0
- package/dist/esm/rating-display/define-async.js +5 -0
- package/dist/esm/rating-display/define-async.js.map +1 -0
- package/dist/esm/rating-display/rating-display.definition-async.d.ts +10 -0
- package/dist/esm/rating-display/rating-display.definition-async.js +14 -0
- package/dist/esm/rating-display/rating-display.definition-async.js.map +1 -0
- package/dist/esm/rating-display/rating-display.styles.css +140 -0
- package/dist/esm/rating-display/rating-display.template.html +6 -0
- package/dist/esm/slider/define-async.d.ts +1 -0
- package/dist/esm/slider/define-async.js +5 -0
- package/dist/esm/slider/define-async.js.map +1 -0
- package/dist/esm/slider/slider.definition-async.d.ts +10 -0
- package/dist/esm/slider/slider.definition-async.js +14 -0
- package/dist/esm/slider/slider.definition-async.js.map +1 -0
- package/dist/esm/slider/slider.styles.css +189 -0
- package/dist/esm/slider/slider.template.html +17 -0
- package/dist/esm/spinner/define-async.d.ts +1 -0
- package/dist/esm/spinner/define-async.js +5 -0
- package/dist/esm/spinner/define-async.js.map +1 -0
- package/dist/esm/spinner/spinner.definition-async.d.ts +10 -0
- package/dist/esm/spinner/spinner.definition-async.js +14 -0
- package/dist/esm/spinner/spinner.definition-async.js.map +1 -0
- package/dist/esm/spinner/spinner.styles.css +155 -0
- package/dist/esm/spinner/spinner.template.html +13 -0
- package/dist/esm/switch/define-async.d.ts +1 -0
- package/dist/esm/switch/define-async.js +5 -0
- package/dist/esm/switch/define-async.js.map +1 -0
- package/dist/esm/switch/switch.definition-async.d.ts +10 -0
- package/dist/esm/switch/switch.definition-async.js +14 -0
- package/dist/esm/switch/switch.definition-async.js.map +1 -0
- package/dist/esm/switch/switch.styles.css +121 -0
- package/dist/esm/switch/switch.template.html +10 -0
- package/dist/esm/tab/define-async.d.ts +1 -0
- package/dist/esm/tab/define-async.js +5 -0
- package/dist/esm/tab/define-async.js.map +1 -0
- package/dist/esm/tab/tab.definition-async.d.ts +10 -0
- package/dist/esm/tab/tab.definition-async.js +14 -0
- package/dist/esm/tab/tab.definition-async.js.map +1 -0
- package/dist/esm/tab/tab.styles.css +118 -0
- package/dist/esm/tab/tab.template.html +7 -0
- package/dist/esm/tablist/define-async.d.ts +1 -0
- package/dist/esm/tablist/define-async.js +5 -0
- package/dist/esm/tablist/define-async.js.map +1 -0
- package/dist/esm/tablist/tablist.definition-async.d.ts +10 -0
- package/dist/esm/tablist/tablist.definition-async.js +14 -0
- package/dist/esm/tablist/tablist.definition-async.js.map +1 -0
- package/dist/esm/tablist/tablist.styles.css +203 -0
- package/dist/esm/tablist/tablist.template.html +9 -0
- package/dist/esm/text/define-async.d.ts +1 -0
- package/dist/esm/text/define-async.js +5 -0
- package/dist/esm/text/define-async.js.map +1 -0
- package/dist/esm/text/text.definition-async.d.ts +10 -0
- package/dist/esm/text/text.definition-async.js +14 -0
- package/dist/esm/text/text.definition-async.js.map +1 -0
- package/dist/esm/text/text.styles.css +104 -0
- package/dist/esm/text/text.template.html +1 -0
- package/dist/esm/text-input/define-async.d.ts +1 -0
- package/dist/esm/text-input/define-async.js +5 -0
- package/dist/esm/text-input/define-async.js.map +1 -0
- package/dist/esm/text-input/text-input.base.d.ts +0 -6
- package/dist/esm/text-input/text-input.base.js +3 -14
- package/dist/esm/text-input/text-input.base.js.map +1 -1
- package/dist/esm/text-input/text-input.definition-async.d.ts +10 -0
- package/dist/esm/text-input/text-input.definition-async.js +17 -0
- package/dist/esm/text-input/text-input.definition-async.js.map +1 -0
- package/dist/esm/text-input/text-input.styles.css +200 -0
- package/dist/esm/text-input/text-input.template.html +38 -0
- package/dist/esm/text-input/text-input.template.js +1 -2
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/textarea/define-async.d.ts +1 -0
- package/dist/esm/textarea/define-async.js +5 -0
- package/dist/esm/textarea/define-async.js.map +1 -0
- package/dist/esm/textarea/textarea.base.js +12 -10
- package/dist/esm/textarea/textarea.base.js.map +1 -1
- package/dist/esm/textarea/textarea.definition-async.d.ts +10 -0
- package/dist/esm/textarea/textarea.definition-async.js +17 -0
- package/dist/esm/textarea/textarea.definition-async.js.map +1 -0
- package/dist/esm/textarea/textarea.styles.css +258 -0
- package/dist/esm/textarea/textarea.template.html +29 -0
- package/dist/esm/toggle-button/define-async.d.ts +1 -0
- package/dist/esm/toggle-button/define-async.js +5 -0
- package/dist/esm/toggle-button/define-async.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.definition-async.d.ts +10 -0
- package/dist/esm/toggle-button/toggle-button.definition-async.js +14 -0
- package/dist/esm/toggle-button/toggle-button.definition-async.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.js +2 -3
- package/dist/esm/toggle-button/toggle-button.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.styles.css +358 -0
- package/dist/esm/toggle-button/toggle-button.template.html +12 -0
- package/dist/esm/tooltip/define-async.d.ts +1 -0
- package/dist/esm/tooltip/define-async.js +5 -0
- package/dist/esm/tooltip/define-async.js.map +1 -0
- package/dist/esm/tooltip/tooltip.d.ts +9 -9
- package/dist/esm/tooltip/tooltip.definition-async.d.ts +10 -0
- package/dist/esm/tooltip/tooltip.definition-async.js +14 -0
- package/dist/esm/tooltip/tooltip.definition-async.js.map +1 -0
- package/dist/esm/tooltip/tooltip.js +38 -6
- package/dist/esm/tooltip/tooltip.js.map +1 -1
- package/dist/esm/tooltip/tooltip.styles.css +86 -0
- package/dist/esm/tooltip/tooltip.template.html +1 -0
- package/dist/esm/tree/define-async.d.ts +1 -0
- package/dist/esm/tree/define-async.js +5 -0
- package/dist/esm/tree/define-async.js.map +1 -0
- package/dist/esm/tree/tree.definition-async.d.ts +10 -0
- package/dist/esm/tree/tree.definition-async.js +14 -0
- package/dist/esm/tree/tree.definition-async.js.map +1 -0
- package/dist/esm/tree/tree.styles.css +6 -0
- package/dist/esm/tree/tree.template.html +12 -0
- package/dist/esm/tree/tree.template.js +1 -0
- package/dist/esm/tree/tree.template.js.map +1 -1
- package/dist/esm/tree-item/define-async.d.ts +1 -0
- package/dist/esm/tree-item/define-async.js +5 -0
- package/dist/esm/tree-item/define-async.js.map +1 -0
- package/dist/esm/tree-item/tree-item.base.d.ts +1 -0
- package/dist/esm/tree-item/tree-item.base.js +12 -3
- package/dist/esm/tree-item/tree-item.base.js.map +1 -1
- package/dist/esm/tree-item/tree-item.definition-async.d.ts +10 -0
- package/dist/esm/tree-item/tree-item.definition-async.js +14 -0
- package/dist/esm/tree-item/tree-item.definition-async.js.map +1 -0
- package/dist/esm/tree-item/tree-item.styles.css +157 -0
- package/dist/esm/tree-item/tree-item.template.html +26 -0
- package/dist/esm/tree-item/tree-item.template.js +1 -1
- package/dist/esm/tree-item/tree-item.template.js.map +1 -1
- package/dist/web-components-all.js +140 -110
- package/dist/web-components-all.min.js +11 -11
- package/dist/web-components.d.ts +10 -6
- package/dist/web-components.js +139 -109
- package/dist/web-components.min.js +11 -11
- package/package.json +16 -2
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
|
|
2
|
+
:host([hidden]){display:none}:host{display:inline-flex}
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
--_icon-size: 16px;
|
|
6
|
+
--_icon-gradient-degree: 90deg;
|
|
7
|
+
--_icon-color-value: var(--colorPaletteMarigoldBorderActive);
|
|
8
|
+
--_icon-color-empty: var(--colorPaletteMarigoldBackground2);
|
|
9
|
+
--_default-value: 0;
|
|
10
|
+
--_default-max: 5;
|
|
11
|
+
--_mask-image-filled: url(data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2012%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5.28347%201.54605C5.57692%200.951448%206.42479%200.951449%206.71825%201.54605L7.82997%203.79866L10.3159%204.15988C10.9721%204.25523%2011.2341%205.0616%2010.7592%205.52443L8.96043%207.27785L9.38507%209.7537C9.49716%2010.4072%208.81122%2010.9056%208.22431%2010.597L6.00086%209.4281L3.7774%2010.597C3.19049%2010.9056%202.50455%2010.4072%202.61664%209.7537L3.04128%207.27784L1.24246%205.52443C0.767651%205.0616%201.02966%204.25523%201.68584%204.15988L4.17174%203.79865L5.28347%201.54605Z%22%20%2F%3E%3C%2Fsvg%3E);
|
|
12
|
+
--_mask-image-outlined: url(data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2012%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M5.28347%201.54605C5.57692%200.951448%206.42479%200.951449%206.71825%201.54605L7.82997%203.79866L10.3159%204.15988C10.9721%204.25523%2011.2341%205.0616%2010.7592%205.52443L8.96043%207.27785L9.38507%209.7537C9.49716%2010.4072%208.81122%2010.9056%208.22431%2010.597L6.00086%209.4281L3.7774%2010.597C3.19049%2010.9056%202.50455%2010.4072%202.61664%209.7537L3.04128%207.27784L1.24246%205.52443C0.767651%205.0616%201.02966%204.25523%201.68584%204.15988L4.17174%203.79865L5.28347%201.54605Z%22%20%2F%3E%3C%2Fsvg%3E);
|
|
13
|
+
--_mask-position-x: left;
|
|
14
|
+
|
|
15
|
+
align-items: center;
|
|
16
|
+
color: var(--colorNeutralForeground1);
|
|
17
|
+
font-family: var(--fontFamilyBase);
|
|
18
|
+
font-size: var(--fontSizeBase200);
|
|
19
|
+
line-height: var(--lineHeightBase200);
|
|
20
|
+
contain: layout style;
|
|
21
|
+
user-select: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host(:dir(rtl)) {
|
|
25
|
+
--_icon-gradient-degree: -90deg;
|
|
26
|
+
--_mask-position-x: right;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([size='small']) {
|
|
30
|
+
--_icon-size: 12px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([size='large']) {
|
|
34
|
+
--_icon-size: 20px;
|
|
35
|
+
font-size: var(--fontSizeBase300);
|
|
36
|
+
line-height: var(--lineHeightBase300);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
::slotted([slot='icon']) {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([color='neutral']) {
|
|
44
|
+
--_icon-color-value: var(--colorNeutralForeground1);
|
|
45
|
+
--_icon-color-empty: var(--colorNeutralBackground6);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([color='brand']) {
|
|
49
|
+
--_icon-color-value: var(--colorBrandForeground1);
|
|
50
|
+
--_icon-color-empty: var(--colorBrandBackground2);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@supports (width: attr(value type(<number>))) {
|
|
54
|
+
:host {
|
|
55
|
+
--_attr-value: attr(value type(<number>));
|
|
56
|
+
--_attr-max: attr(max type(<number>));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([compact]) .display {
|
|
61
|
+
--_max: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.display {
|
|
65
|
+
--_value: max(0, round(var(--_attr-value, var(--_default-value)) * 2) / 2);
|
|
66
|
+
--_max: max(1, var(--_attr-max, var(--_default-max)));
|
|
67
|
+
--_mask-inline-size: calc(var(--_icon-size) + var(--spacingHorizontalXXS));
|
|
68
|
+
--_icon-gradient-stop-visual-adjustment: 0px;
|
|
69
|
+
--_icon-gradient-stop: calc(
|
|
70
|
+
var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment)
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
background-image: linear-gradient(
|
|
74
|
+
var(--_icon-gradient-degree),
|
|
75
|
+
var(--_icon-color-value) var(--_icon-gradient-stop),
|
|
76
|
+
var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px)
|
|
77
|
+
);
|
|
78
|
+
block-size: var(--_icon-size);
|
|
79
|
+
display: grid;
|
|
80
|
+
inline-size: calc(var(--_max) * var(--_mask-inline-size) - var(--spacingHorizontalXXS) / 2);
|
|
81
|
+
mask-image: var(--_mask-image-filled);
|
|
82
|
+
mask-repeat: repeat no-repeat;
|
|
83
|
+
mask-size: var(--_mask-inline-size) var(--_icon-size);
|
|
84
|
+
mask-position: var(--_mask-position-x) center;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.value-label,
|
|
88
|
+
::slotted([slot='value']) {
|
|
89
|
+
display: block;
|
|
90
|
+
margin-inline-start: var(--spacingHorizontalXS);
|
|
91
|
+
font-weight: var(--fontWeightSemibold);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host([size='small']) .value-label,
|
|
95
|
+
:host([size='small']) ::slotted([slot='value']) {
|
|
96
|
+
margin-inline-start: var(--spacingHorizontalXXS);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:host([size='large']) .value-label,
|
|
100
|
+
:host([size='large']) ::slotted([slot='value']) {
|
|
101
|
+
margin-inline-start: var(--spacingHorizontalSNudge);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host(:not([count])) .count-label {
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.count-label::before,
|
|
109
|
+
::slotted([slot='count'])::before {
|
|
110
|
+
content: '·';
|
|
111
|
+
margin-inline: var(--spacingHorizontalXS);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([size='small']) .count-label::before,
|
|
115
|
+
:host([size='small']) ::slotted([slot='count'])::before {
|
|
116
|
+
margin-inline: var(--spacingHorizontalXXS);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:host([size='large']) .count-label::before,
|
|
120
|
+
:host([size='large']) ::slotted([slot='count'])::before {
|
|
121
|
+
margin-inline: var(--spacingHorizontalSNudge);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media (forced-colors: active) {
|
|
125
|
+
.display {
|
|
126
|
+
--_icon-color-value: CanvasText;
|
|
127
|
+
--_icon-color-empty: Canvas;
|
|
128
|
+
--_icon-gradient-stop-visual-adjustment: 0.5px;
|
|
129
|
+
|
|
130
|
+
forced-color-adjust: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.display::before {
|
|
134
|
+
background-color: var(--_icon-color-value);
|
|
135
|
+
content: '';
|
|
136
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
137
|
+
mask: inherit;
|
|
138
|
+
mask-image: var(--_mask-image-outlined);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<f-template name="fluent-rating-display" shadowrootmode="open">
|
|
2
|
+
<template>{{styles}}<div f-ref="{display}" class="display" aria-hidden="true"></div>
|
|
3
|
+
<slot name="icon" f-ref="{iconSlot}" @slotchange="{handleSlotChange()}"></slot>
|
|
4
|
+
<slot name="value"><span class="value-label" aria-hidden="true">{{value}}</span></slot>
|
|
5
|
+
<slot name="count"><span class="count-label" aria-hidden="true">{{formattedCount}}</span></slot></template>
|
|
6
|
+
</f-template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-async.js","sourceRoot":"","sources":["../../../src/slider/define-async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,qBAAqB,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* The async definition configuration for the fluent-slider element.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used in server-side rendering (SSR) scenarios where the template
|
|
8
|
+
* is provided as a deferred option to be hydrated later.
|
|
9
|
+
*/
|
|
10
|
+
export declare const definition: PartialFASTElementDefinition;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { tagName } from './slider.options.js';
|
|
2
|
+
/**
|
|
3
|
+
* The async definition configuration for the fluent-slider element.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used in server-side rendering (SSR) scenarios where the template
|
|
8
|
+
* is provided as a deferred option to be hydrated later.
|
|
9
|
+
*/
|
|
10
|
+
export const definition = {
|
|
11
|
+
name: tagName,
|
|
12
|
+
templateOptions: 'defer-and-hydrate',
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=slider.definition-async.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.definition-async.js","sourceRoot":"","sources":["../../../src/slider/slider.definition-async.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAiC;IACtD,IAAI,EAAE,OAAO;IACb,eAAe,EAAE,mBAAmB;CACrC,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
|
|
2
|
+
:host([hidden]){display:none}:host{display:inline-grid}
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
--thumb-size: 20px;
|
|
6
|
+
--track-margin-inline: calc(var(--thumb-size) / 2);
|
|
7
|
+
--track-size: 4px;
|
|
8
|
+
--track-overhang: calc(var(--track-size) / -2);
|
|
9
|
+
--rail-color: var(--colorCompoundBrandBackground);
|
|
10
|
+
--track-color: var(--colorNeutralStrokeAccessible);
|
|
11
|
+
--slider-direction: 90deg;
|
|
12
|
+
--border-radius: var(--borderRadiusMedium);
|
|
13
|
+
--step-marker-inset: var(--track-overhang) -1px;
|
|
14
|
+
|
|
15
|
+
position: relative;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
outline: none;
|
|
20
|
+
user-select: none;
|
|
21
|
+
touch-action: none;
|
|
22
|
+
min-width: 120px;
|
|
23
|
+
min-height: 32px;
|
|
24
|
+
grid-template-rows: 1fr var(--thumb-size) 1fr;
|
|
25
|
+
grid-template-columns: var(--track-margin-inline) 1fr var(--track-margin-inline);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host(:hover) {
|
|
29
|
+
--rail-color: var(--colorCompoundBrandBackgroundHover);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host(:active) {
|
|
33
|
+
--rail-color: var(--colorCompoundBrandBackgroundPressed);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host(:disabled) {
|
|
37
|
+
--rail-color: var(--colorNeutralForegroundDisabled);
|
|
38
|
+
--track-color: var(--colorNeutralBackgroundDisabled);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host(:not(:disabled)) {
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host(:dir(rtl)) {
|
|
46
|
+
--slider-direction: -90deg;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host([size='small']) {
|
|
50
|
+
--thumb-size: 16px;
|
|
51
|
+
--track-overhang: -1px;
|
|
52
|
+
--track-size: 2px;
|
|
53
|
+
--border-radius: var(--borderRadiusSmall);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([orientation='vertical']) {
|
|
57
|
+
--slider-direction: 0deg;
|
|
58
|
+
--step-marker-inset: -1px var(--track-overhang);
|
|
59
|
+
min-height: 120px;
|
|
60
|
+
grid-template-rows: var(--track-margin-inline) 1fr var(--track-margin-inline);
|
|
61
|
+
grid-template-columns: 1fr var(--thumb-size) 1fr;
|
|
62
|
+
width: unset;
|
|
63
|
+
min-width: 32px;
|
|
64
|
+
justify-items: center;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host(:not([slot='input']):focus-visible) {
|
|
68
|
+
box-shadow: 0 0 0 2pt var(--colorStrokeFocus2);
|
|
69
|
+
outline: 1px solid var(--colorStrokeFocus1);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host:after,
|
|
73
|
+
.track {
|
|
74
|
+
height: var(--track-size);
|
|
75
|
+
width: 100%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host:after {
|
|
79
|
+
background-image: linear-gradient(
|
|
80
|
+
var(--slider-direction),
|
|
81
|
+
var(--rail-color) 0%,
|
|
82
|
+
var(--rail-color) 50%,
|
|
83
|
+
var(--track-color) 50.1%,
|
|
84
|
+
var(--track-color) 100%
|
|
85
|
+
);
|
|
86
|
+
border-radius: var(--border-radius);
|
|
87
|
+
content: '';
|
|
88
|
+
grid-row: 1 / -1;
|
|
89
|
+
grid-column: 1 / -1;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.track {
|
|
93
|
+
position: relative;
|
|
94
|
+
background-color: var(--track-color);
|
|
95
|
+
grid-row: 2 / 2;
|
|
96
|
+
grid-column: 2 / 2;
|
|
97
|
+
forced-color-adjust: none;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([orientation='vertical'])::after,
|
|
102
|
+
:host([orientation='vertical']) .track {
|
|
103
|
+
height: 100%;
|
|
104
|
+
width: var(--track-size);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.track::before {
|
|
108
|
+
content: '';
|
|
109
|
+
position: absolute;
|
|
110
|
+
height: 100%;
|
|
111
|
+
border-radius: inherit;
|
|
112
|
+
inset-inline-start: 0;
|
|
113
|
+
width: var(--slider-progress);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host(:dir(rtl)) .track::before {
|
|
117
|
+
width: calc(100% - var(--slider-progress));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([orientation='vertical']) .track::before {
|
|
121
|
+
width: 100%;
|
|
122
|
+
bottom: 0;
|
|
123
|
+
height: var(--slider-progress);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host([step]) .track::after {
|
|
127
|
+
content: '';
|
|
128
|
+
position: absolute;
|
|
129
|
+
border-radius: inherit;
|
|
130
|
+
inset: var(--step-marker-inset);
|
|
131
|
+
background-image: repeating-linear-gradient(
|
|
132
|
+
var(--slider-direction),
|
|
133
|
+
#0000 0%,
|
|
134
|
+
#0000 calc(var(--step-rate) - 1px),
|
|
135
|
+
var(--colorNeutralBackground1) calc(var(--step-rate) - 1px),
|
|
136
|
+
var(--colorNeutralBackground1) var(--step-rate)
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.thumb-container {
|
|
141
|
+
position: absolute;
|
|
142
|
+
grid-row: 2 / 2;
|
|
143
|
+
grid-column: 2 / 2;
|
|
144
|
+
transform: translateX(-50%);
|
|
145
|
+
left: var(--slider-thumb);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host([orientation='vertical']) .thumb-container {
|
|
149
|
+
transform: translateY(50%);
|
|
150
|
+
left: unset;
|
|
151
|
+
bottom: var(--slider-thumb);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:host(:not(:active)) :is(.thumb-container, .track::before) {
|
|
155
|
+
transition: all 0.2s ease;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.thumb {
|
|
159
|
+
width: var(--thumb-size);
|
|
160
|
+
height: var(--thumb-size);
|
|
161
|
+
border-radius: var(--borderRadiusCircular);
|
|
162
|
+
box-shadow: 0 0 0 calc(var(--thumb-size) * 0.2) var(--colorNeutralBackground1) inset;
|
|
163
|
+
border: calc(var(--thumb-size) * 0.05) solid var(--colorNeutralStroke1);
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.thumb,
|
|
168
|
+
.track::before {
|
|
169
|
+
background-color: var(--rail-color);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@media (forced-colors: active) {
|
|
173
|
+
.track:hover,
|
|
174
|
+
.track:active,
|
|
175
|
+
.track {
|
|
176
|
+
background: WindowText;
|
|
177
|
+
}
|
|
178
|
+
.thumb:hover,
|
|
179
|
+
.thumb:active,
|
|
180
|
+
.thumb {
|
|
181
|
+
background: ButtonText;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:host(:hover) .track::before,
|
|
185
|
+
:host(:active) .track::before,
|
|
186
|
+
.track::before {
|
|
187
|
+
background: Highlight;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<f-template name="fluent-slider" shadowrootmode="open">
|
|
2
|
+
<template
|
|
3
|
+
@pointerdown="{handlePointerDown($e)}"
|
|
4
|
+
@keydown="{handleKeydown($e)}"
|
|
5
|
+
>{{styles}}
|
|
6
|
+
<div f-ref="{track}" part="track-container" class="track" style="{{position}}"></div>
|
|
7
|
+
<div
|
|
8
|
+
f-ref="{thumb}"
|
|
9
|
+
part="thumb-container"
|
|
10
|
+
class="thumb-container"
|
|
11
|
+
style="{{position}}"
|
|
12
|
+
@pointerdown="{handleThumbPointerDown($e)}"
|
|
13
|
+
>
|
|
14
|
+
<slot name="thumb"><div class="thumb"></div></slot>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
</f-template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-async.js","sourceRoot":"","sources":["../../../src/spinner/define-async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBAAqB,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* The async definition configuration for the fluent-spinner element.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used in server-side rendering (SSR) scenarios where the template
|
|
8
|
+
* is provided as a deferred option to be hydrated later.
|
|
9
|
+
*/
|
|
10
|
+
export declare const definition: PartialFASTElementDefinition;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { tagName } from './spinner.options.js';
|
|
2
|
+
/**
|
|
3
|
+
* The async definition configuration for the fluent-spinner element.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used in server-side rendering (SSR) scenarios where the template
|
|
8
|
+
* is provided as a deferred option to be hydrated later.
|
|
9
|
+
*/
|
|
10
|
+
export const definition = {
|
|
11
|
+
name: tagName,
|
|
12
|
+
templateOptions: 'defer-and-hydrate',
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=spinner.definition-async.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.definition-async.js","sourceRoot":"","sources":["../../../src/spinner/spinner.definition-async.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAiC;IACtD,IAAI,EAAE,OAAO;IACb,eAAe,EAAE,mBAAmB;CACrC,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
|
|
2
|
+
:host([hidden]){display:none}:host{display:inline-flex}
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
--duration: 1.5s;
|
|
6
|
+
--indicatorSize: var(--strokeWidthThicker);
|
|
7
|
+
--size: 32px;
|
|
8
|
+
height: var(--size);
|
|
9
|
+
width: var(--size);
|
|
10
|
+
contain: strict;
|
|
11
|
+
content-visibility: auto;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([size='tiny']) {
|
|
15
|
+
--indicatorSize: var(--strokeWidthThick);
|
|
16
|
+
--size: 20px;
|
|
17
|
+
}
|
|
18
|
+
:host([size='extra-small']) {
|
|
19
|
+
--indicatorSize: var(--strokeWidthThick);
|
|
20
|
+
--size: 24px;
|
|
21
|
+
}
|
|
22
|
+
:host([size='small']) {
|
|
23
|
+
--indicatorSize: var(--strokeWidthThick);
|
|
24
|
+
--size: 28px;
|
|
25
|
+
}
|
|
26
|
+
:host([size='large']) {
|
|
27
|
+
--indicatorSize: var(--strokeWidthThicker);
|
|
28
|
+
--size: 36px;
|
|
29
|
+
}
|
|
30
|
+
:host([size='extra-large']) {
|
|
31
|
+
--indicatorSize: var(--strokeWidthThicker);
|
|
32
|
+
--size: 40px;
|
|
33
|
+
}
|
|
34
|
+
:host([size='huge']) {
|
|
35
|
+
--indicatorSize: var(--strokeWidthThickest);
|
|
36
|
+
--size: 44px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.progress,
|
|
40
|
+
.background,
|
|
41
|
+
.spinner,
|
|
42
|
+
.start,
|
|
43
|
+
.end,
|
|
44
|
+
.indicator {
|
|
45
|
+
position: absolute;
|
|
46
|
+
inset: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.progress,
|
|
50
|
+
.spinner,
|
|
51
|
+
.indicator {
|
|
52
|
+
animation: none var(--duration) infinite var(--curveEasyEase);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.progress {
|
|
56
|
+
animation-timing-function: linear;
|
|
57
|
+
animation-name: spin-linear;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.background {
|
|
61
|
+
border: var(--indicatorSize) solid var(--colorBrandStroke2);
|
|
62
|
+
border-radius: 50%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:host([appearance='inverted']) .background {
|
|
66
|
+
border-color: rgba(255, 255, 255, 0.2);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.spinner {
|
|
70
|
+
animation-name: spin-swing;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.start {
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
right: 50%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.end {
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
left: 50%;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.indicator {
|
|
84
|
+
color: var(--colorBrandStroke1);
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
border: var(--indicatorSize) solid transparent;
|
|
88
|
+
border-block-start-color: currentcolor;
|
|
89
|
+
border-right-color: currentcolor;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([appearance='inverted']) .indicator {
|
|
93
|
+
color: var(--colorNeutralStrokeOnBrand2);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.start .indicator {
|
|
97
|
+
rotate: 135deg; /* Starts 9 o'clock */
|
|
98
|
+
inset: 0 -100% 0 0;
|
|
99
|
+
animation-name: spin-start;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.end .indicator {
|
|
103
|
+
rotate: 135deg; /* Ends at 3 o'clock */
|
|
104
|
+
inset: 0 0 0 -100%;
|
|
105
|
+
animation-name: spin-end;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes spin-linear {
|
|
109
|
+
100% {
|
|
110
|
+
transform: rotate(360deg);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@keyframes spin-swing {
|
|
115
|
+
0% {
|
|
116
|
+
transform: rotate(-135deg);
|
|
117
|
+
}
|
|
118
|
+
50% {
|
|
119
|
+
transform: rotate(0deg);
|
|
120
|
+
}
|
|
121
|
+
100% {
|
|
122
|
+
transform: rotate(225deg);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@keyframes spin-start {
|
|
127
|
+
0%,
|
|
128
|
+
100% {
|
|
129
|
+
transform: rotate(0deg);
|
|
130
|
+
}
|
|
131
|
+
50% {
|
|
132
|
+
transform: rotate(-80deg);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@keyframes spin-end {
|
|
137
|
+
0%,
|
|
138
|
+
100% {
|
|
139
|
+
transform: rotate(0deg);
|
|
140
|
+
}
|
|
141
|
+
50% {
|
|
142
|
+
transform: rotate(70deg);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@media (forced-colors: active) {
|
|
147
|
+
.background {
|
|
148
|
+
display: none;
|
|
149
|
+
}
|
|
150
|
+
.indicator {
|
|
151
|
+
border-color: Canvas;
|
|
152
|
+
border-block-start-color: Highlight;
|
|
153
|
+
border-right-color: Highlight;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<f-template name="fluent-spinner" shadowrootmode="open"><template>{{styles}}<slot name="indicator">
|
|
2
|
+
<div class="background"></div>
|
|
3
|
+
<div class="progress">
|
|
4
|
+
<div class="spinner">
|
|
5
|
+
<div class="start">
|
|
6
|
+
<div class="indicator"></div>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="end">
|
|
9
|
+
<div class="indicator"></div>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</slot></template></f-template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-async.js","sourceRoot":"","sources":["../../../src/switch/define-async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,qBAAqB,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* The async definition configuration for the fluent-switch element.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used in server-side rendering (SSR) scenarios where the template
|
|
8
|
+
* is provided as a deferred option to be hydrated later.
|
|
9
|
+
*/
|
|
10
|
+
export declare const definition: PartialFASTElementDefinition;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { tagName } from './switch.options.js';
|
|
2
|
+
/**
|
|
3
|
+
* The async definition configuration for the fluent-switch element.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used in server-side rendering (SSR) scenarios where the template
|
|
8
|
+
* is provided as a deferred option to be hydrated later.
|
|
9
|
+
*/
|
|
10
|
+
export const definition = {
|
|
11
|
+
name: tagName,
|
|
12
|
+
templateOptions: 'defer-and-hydrate',
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=switch.definition-async.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.definition-async.js","sourceRoot":"","sources":["../../../src/switch/switch.definition-async.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAiC;IACtD,IAAI,EAAE,OAAO;IACb,eAAe,EAAE,mBAAmB;CACrC,CAAC"}
|