@fabric-msft/fabric-web 7.2.0 → 7.3.1
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/dts/components/carousel/carousel.d.ts +6 -42
- package/dts/components/carousel/carousel.d.ts.map +1 -1
- package/dts/components/carousel/carousel.styles.d.ts.map +1 -1
- package/dts/components/carousel/carousel.template.d.ts.map +1 -1
- package/dts/components/carousel/define.d.ts.map +1 -1
- package/dts/components/carousel-nav/carousel-nav.d.ts +10 -0
- package/dts/components/carousel-nav/carousel-nav.d.ts.map +1 -1
- package/dts/components/carousel-nav/carousel-nav.template.d.ts.map +1 -1
- package/dts/components/carousel-viewport/carousel-viewport.d.ts +34 -0
- package/dts/components/carousel-viewport/carousel-viewport.d.ts.map +1 -0
- package/dts/components/carousel-viewport/carousel-viewport.definition.d.ts +9 -0
- package/dts/components/carousel-viewport/carousel-viewport.definition.d.ts.map +1 -0
- package/dts/components/carousel-viewport/carousel-viewport.styles.d.ts +7 -0
- package/dts/components/carousel-viewport/carousel-viewport.styles.d.ts.map +1 -0
- package/dts/components/carousel-viewport/carousel-viewport.template.d.ts +9 -0
- package/dts/components/carousel-viewport/carousel-viewport.template.d.ts.map +1 -0
- package/dts/components/carousel-viewport/define.d.ts +2 -0
- package/dts/components/carousel-viewport/define.d.ts.map +1 -0
- package/dts/components/carousel-viewport/index.d.ts +5 -0
- package/dts/components/carousel-viewport/index.d.ts.map +1 -0
- package/dts/components/dynamic-tab/define.d.ts +2 -0
- package/dts/components/dynamic-tab/define.d.ts.map +1 -0
- package/dts/components/dynamic-tab/dynamic-tab.d.ts +142 -0
- package/dts/components/dynamic-tab/dynamic-tab.d.ts.map +1 -0
- package/dts/components/dynamic-tab/dynamic-tab.definition.d.ts +10 -0
- package/dts/components/dynamic-tab/dynamic-tab.definition.d.ts.map +1 -0
- package/dts/components/dynamic-tab/dynamic-tab.options.d.ts +10 -0
- package/dts/components/dynamic-tab/dynamic-tab.options.d.ts.map +1 -0
- package/dts/components/dynamic-tab/dynamic-tab.styles.d.ts +6 -0
- package/dts/components/dynamic-tab/dynamic-tab.styles.d.ts.map +1 -0
- package/dts/components/dynamic-tab/dynamic-tab.template.d.ts +13 -0
- package/dts/components/dynamic-tab/dynamic-tab.template.d.ts.map +1 -0
- package/dts/components/dynamic-tab/index.d.ts +6 -0
- package/dts/components/dynamic-tab/index.d.ts.map +1 -0
- package/dts/components/dynamic-tab-list/define.d.ts +2 -0
- package/dts/components/dynamic-tab-list/define.d.ts.map +1 -0
- package/dts/components/dynamic-tab-list/dynamic-tab-list.d.ts +360 -0
- package/dts/components/dynamic-tab-list/dynamic-tab-list.d.ts.map +1 -0
- package/dts/components/dynamic-tab-list/dynamic-tab-list.definition.d.ts +7 -0
- package/dts/components/dynamic-tab-list/dynamic-tab-list.definition.d.ts.map +1 -0
- package/dts/components/dynamic-tab-list/dynamic-tab-list.options.d.ts +24 -0
- package/dts/components/dynamic-tab-list/dynamic-tab-list.options.d.ts.map +1 -0
- package/dts/components/dynamic-tab-list/dynamic-tab-list.styles.d.ts +6 -0
- package/dts/components/dynamic-tab-list/dynamic-tab-list.styles.d.ts.map +1 -0
- package/dts/components/dynamic-tab-list/dynamic-tab-list.template.d.ts +13 -0
- package/dts/components/dynamic-tab-list/dynamic-tab-list.template.d.ts.map +1 -0
- package/dts/components/dynamic-tab-list/index.d.ts +7 -0
- package/dts/components/dynamic-tab-list/index.d.ts.map +1 -0
- package/dts/components/empty-state/define.d.ts +2 -0
- package/dts/components/empty-state/define.d.ts.map +1 -0
- package/dts/components/empty-state/empty-state.d.ts +32 -0
- package/dts/components/empty-state/empty-state.d.ts.map +1 -0
- package/dts/components/empty-state/empty-state.definition.d.ts +10 -0
- package/dts/components/empty-state/empty-state.definition.d.ts.map +1 -0
- package/dts/components/empty-state/empty-state.styles.d.ts +6 -0
- package/dts/components/empty-state/empty-state.styles.d.ts.map +1 -0
- package/dts/components/empty-state/empty-state.template.d.ts +9 -0
- package/dts/components/empty-state/empty-state.template.d.ts.map +1 -0
- package/dts/components/empty-state/index.d.ts +5 -0
- package/dts/components/empty-state/index.d.ts.map +1 -0
- package/dts/components/menu-button/menu-button.d.ts +2 -2
- package/dts/components/menu-button/menu-button.definition.d.ts.map +1 -1
- package/dts/components/menu-button/menu-button.styles.d.ts +11 -0
- package/dts/components/menu-button/menu-button.styles.d.ts.map +1 -0
- package/dts/components/menu-item/menu-item.styles.d.ts.map +1 -1
- package/dts/components/menu-list/menu-list.styles.d.ts.map +1 -1
- package/dts/components/modal/define.d.ts +4 -0
- package/dts/components/modal/define.d.ts.map +1 -0
- package/dts/components/modal/index.d.ts +9 -0
- package/dts/components/modal/index.d.ts.map +1 -0
- package/dts/components/modal/modal.d.ts +209 -0
- package/dts/components/modal/modal.d.ts.map +1 -0
- package/dts/components/modal/modal.definition.d.ts +9 -0
- package/dts/components/modal/modal.definition.d.ts.map +1 -0
- package/dts/components/modal/modal.events.d.ts +26 -0
- package/dts/components/modal/modal.events.d.ts.map +1 -0
- package/dts/components/modal/modal.options.d.ts +15 -0
- package/dts/components/modal/modal.options.d.ts.map +1 -0
- package/dts/components/modal/modal.styles.d.ts +10 -0
- package/dts/components/modal/modal.styles.d.ts.map +1 -0
- package/dts/components/modal/modal.template.d.ts +12 -0
- package/dts/components/modal/modal.template.d.ts.map +1 -0
- package/dts/components/modal-fre-item/define.d.ts +2 -0
- package/dts/components/modal-fre-item/define.d.ts.map +1 -0
- package/dts/components/modal-fre-item/index.d.ts +3 -0
- package/dts/components/modal-fre-item/index.d.ts.map +1 -0
- package/dts/components/modal-fre-item/modal-fre-item.d.ts +65 -0
- package/dts/components/modal-fre-item/modal-fre-item.d.ts.map +1 -0
- package/dts/components/modal-fre-item/modal-fre-item.definition.d.ts +10 -0
- package/dts/components/modal-fre-item/modal-fre-item.definition.d.ts.map +1 -0
- package/dts/components/modal-fre-item/modal-fre-item.styles.d.ts +7 -0
- package/dts/components/modal-fre-item/modal-fre-item.styles.d.ts.map +1 -0
- package/dts/components/modal-fre-item/modal-fre-item.template.d.ts +11 -0
- package/dts/components/modal-fre-item/modal-fre-item.template.d.ts.map +1 -0
- package/dts/components/styles/patterns/patterns.d.ts +8 -0
- package/dts/components/styles/patterns/patterns.d.ts.map +1 -0
- package/dts/index.d.ts +7 -0
- package/dts/index.d.ts.map +1 -1
- package/dts/util/a11y-playwright-utils.d.ts +7 -0
- package/dts/util/a11y-playwright-utils.d.ts.map +1 -0
- package/dts/util/carousel-controller.d.ts +120 -0
- package/dts/util/carousel-controller.d.ts.map +1 -0
- package/dts/util/icons.d.ts +15 -0
- package/dts/util/icons.d.ts.map +1 -1
- package/dts/util/index.d.ts +1 -0
- package/dts/util/index.d.ts.map +1 -1
- package/esm/components/accordion-menu-panel/accordion-menu-panel.styles.js +1 -1
- package/esm/components/carousel/carousel.js +30 -98
- package/esm/components/carousel/carousel.js.map +1 -1
- package/esm/components/carousel/carousel.styles.js +2 -2
- package/esm/components/carousel/carousel.styles.js.map +1 -1
- package/esm/components/carousel/carousel.template.js +3 -3
- package/esm/components/carousel/carousel.template.js.map +1 -1
- package/esm/components/carousel/define.js +5 -3
- package/esm/components/carousel/define.js.map +1 -1
- package/esm/components/carousel-item/carousel-item.template.js +1 -1
- package/esm/components/carousel-item/carousel-item.template.js.map +1 -1
- package/esm/components/carousel-nav/carousel-nav.js +12 -0
- package/esm/components/carousel-nav/carousel-nav.js.map +1 -1
- package/esm/components/carousel-nav/carousel-nav.styles.js +1 -0
- package/esm/components/carousel-nav/carousel-nav.template.js +4 -3
- package/esm/components/carousel-nav/carousel-nav.template.js.map +1 -1
- package/esm/components/carousel-nav-item/carousel-nav-item.styles.js +1 -0
- package/esm/components/carousel-viewport/carousel-viewport.definition.js +21 -0
- package/esm/components/carousel-viewport/carousel-viewport.definition.js.map +1 -0
- package/esm/components/carousel-viewport/carousel-viewport.js +37 -0
- package/esm/components/carousel-viewport/carousel-viewport.js.map +1 -0
- package/esm/components/carousel-viewport/carousel-viewport.styles.js +11 -0
- package/esm/components/carousel-viewport/carousel-viewport.styles.js.map +1 -0
- package/esm/components/carousel-viewport/carousel-viewport.template.js +15 -0
- package/esm/components/carousel-viewport/carousel-viewport.template.js.map +1 -0
- package/esm/components/carousel-viewport/define.js +4 -0
- package/esm/components/carousel-viewport/define.js.map +1 -0
- package/esm/components/carousel-viewport/index.js +5 -0
- package/esm/components/carousel-viewport/index.js.map +1 -0
- package/esm/components/dynamic-tab/define.js +4 -0
- package/esm/components/dynamic-tab/define.js.map +1 -0
- package/esm/components/dynamic-tab/dynamic-tab.definition.js +27 -0
- package/esm/components/dynamic-tab/dynamic-tab.definition.js.map +1 -0
- package/esm/components/dynamic-tab/dynamic-tab.js +232 -0
- package/esm/components/dynamic-tab/dynamic-tab.js.map +1 -0
- package/esm/components/dynamic-tab/dynamic-tab.options.js +11 -0
- package/esm/components/dynamic-tab/dynamic-tab.options.js.map +1 -0
- package/esm/components/dynamic-tab/dynamic-tab.styles.js +13 -0
- package/esm/components/dynamic-tab/dynamic-tab.styles.js.map +1 -0
- package/esm/components/dynamic-tab/dynamic-tab.template.js +18 -0
- package/esm/components/dynamic-tab/dynamic-tab.template.js.map +1 -0
- package/esm/components/dynamic-tab/index.js +6 -0
- package/esm/components/dynamic-tab/index.js.map +1 -0
- package/esm/components/dynamic-tab-list/define.js +12 -0
- package/esm/components/dynamic-tab-list/define.js.map +1 -0
- package/esm/components/dynamic-tab-list/dynamic-tab-list.definition.js +19 -0
- package/esm/components/dynamic-tab-list/dynamic-tab-list.definition.js.map +1 -0
- package/esm/components/dynamic-tab-list/dynamic-tab-list.js +788 -0
- package/esm/components/dynamic-tab-list/dynamic-tab-list.js.map +1 -0
- package/esm/components/dynamic-tab-list/dynamic-tab-list.options.js +19 -0
- package/esm/components/dynamic-tab-list/dynamic-tab-list.options.js.map +1 -0
- package/esm/components/dynamic-tab-list/dynamic-tab-list.styles.js +11 -0
- package/esm/components/dynamic-tab-list/dynamic-tab-list.styles.js.map +1 -0
- package/esm/components/dynamic-tab-list/dynamic-tab-list.template.js +41 -0
- package/esm/components/dynamic-tab-list/dynamic-tab-list.template.js.map +1 -0
- package/esm/components/dynamic-tab-list/index.js +6 -0
- package/esm/components/dynamic-tab-list/index.js.map +1 -0
- package/esm/components/empty-state/define.js +4 -0
- package/esm/components/empty-state/define.js.map +1 -0
- package/esm/components/empty-state/empty-state.definition.js +22 -0
- package/esm/components/empty-state/empty-state.definition.js.map +1 -0
- package/esm/components/empty-state/empty-state.js +33 -0
- package/esm/components/empty-state/empty-state.js.map +1 -0
- package/esm/components/empty-state/empty-state.styles.js +11 -0
- package/esm/components/empty-state/empty-state.styles.js.map +1 -0
- package/esm/components/empty-state/empty-state.template.js +12 -0
- package/esm/components/empty-state/empty-state.template.js.map +1 -0
- package/esm/components/empty-state/index.js +5 -0
- package/esm/components/empty-state/index.js.map +1 -0
- package/esm/components/filter-pill/filter-pill.styles.js +1 -0
- package/esm/components/menu-button/menu-button.definition.js +5 -2
- package/esm/components/menu-button/menu-button.definition.js.map +1 -1
- package/esm/components/menu-button/menu-button.js +2 -2
- package/esm/components/menu-button/menu-button.styles.js +18 -0
- package/esm/components/menu-button/menu-button.styles.js.map +1 -0
- package/esm/components/menu-item/menu-item.styles.js +1 -1
- package/esm/components/menu-item/menu-item.styles.js.map +1 -1
- package/esm/components/menu-list/menu-list.styles.js +2 -2
- package/esm/components/menu-list/menu-list.styles.js.map +1 -1
- package/esm/components/modal/define.js +9 -0
- package/esm/components/modal/define.js.map +1 -0
- package/esm/components/modal/index.js +7 -0
- package/esm/components/modal/index.js.map +1 -0
- package/esm/components/modal/modal.definition.js +29 -0
- package/esm/components/modal/modal.definition.js.map +1 -0
- package/esm/components/modal/modal.events.js +11 -0
- package/esm/components/modal/modal.events.js.map +1 -0
- package/esm/components/modal/modal.js +369 -0
- package/esm/components/modal/modal.js.map +1 -0
- package/esm/components/modal/modal.options.js +10 -0
- package/esm/components/modal/modal.options.js.map +1 -0
- package/esm/components/modal/modal.styles.js +14 -0
- package/esm/components/modal/modal.styles.js.map +1 -0
- package/esm/components/modal/modal.template.js +23 -0
- package/esm/components/modal/modal.template.js.map +1 -0
- package/esm/components/modal-fre-item/define.js +4 -0
- package/esm/components/modal-fre-item/define.js.map +1 -0
- package/esm/components/modal-fre-item/index.js +3 -0
- package/esm/components/modal-fre-item/index.js.map +1 -0
- package/esm/components/modal-fre-item/modal-fre-item.definition.js +27 -0
- package/esm/components/modal-fre-item/modal-fre-item.definition.js.map +1 -0
- package/esm/components/modal-fre-item/modal-fre-item.js +72 -0
- package/esm/components/modal-fre-item/modal-fre-item.js.map +1 -0
- package/esm/components/modal-fre-item/modal-fre-item.styles.js +11 -0
- package/esm/components/modal-fre-item/modal-fre-item.styles.js.map +1 -0
- package/esm/components/modal-fre-item/modal-fre-item.template.js +16 -0
- package/esm/components/modal-fre-item/modal-fre-item.template.js.map +1 -0
- package/esm/components/simple-table/simple-table.styles.js +1 -0
- package/esm/components/styles/patterns/patterns.js +11 -0
- package/esm/components/styles/patterns/patterns.js.map +1 -0
- package/esm/index.js +25 -0
- package/esm/index.js.map +1 -1
- package/esm/util/a11y-playwright-utils.js +11 -0
- package/esm/util/a11y-playwright-utils.js.map +1 -0
- package/esm/util/carousel-controller.js +153 -0
- package/esm/util/carousel-controller.js.map +1 -0
- package/esm/util/icons.js +16 -1
- package/esm/util/icons.js.map +1 -1
- package/esm/util/index.js +1 -0
- package/esm/util/index.js.map +1 -1
- package/index.d.ts +1507 -423
- package/index.d.ts.map +1 -1
- package/index.js +6379 -4442
- package/index.js.map +1 -1
- package/index.min.js +102 -92
- package/index.min.js.map +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _microsoft_fast_element from '@microsoft/fast-element';
|
|
2
|
-
import { FASTElement, ElementViewTemplate, ElementStyles, HTMLDirective, SyntheticViewTemplate, CaptureType, ElementsFilter } from '@microsoft/fast-element';
|
|
2
|
+
import { FASTElement, ElementViewTemplate, ElementStyles, Subscriber, HTMLDirective, SyntheticViewTemplate, CaptureType, ElementsFilter } from '@microsoft/fast-element';
|
|
3
3
|
import * as _fluentui_web_components from '@fluentui/web-components';
|
|
4
|
-
import { BaseButton, Button as Button$1, AccordionItem as AccordionItem$1, Accordion as Accordion$1, Link as Link$1, Avatar as Avatar$1, Badge as Badge$1, Checkbox as Checkbox$1, CounterBadge as CounterBadge$1,
|
|
4
|
+
import { BaseButton, Dialog as Dialog$1, Button as Button$1, AccordionItem as AccordionItem$1, Accordion as Accordion$1, Link as Link$1, Avatar as Avatar$1, Badge as Badge$1, Checkbox as Checkbox$1, CounterBadge as CounterBadge$1, DialogBody as DialogBody$1, Divider as Divider$1, Drawer as Drawer$1, DrawerBody as DrawerBody$1, Dropdown as Dropdown$1, DropdownOption as DropdownOption$1, Listbox as Listbox$1, Field as Field$1, SlottableInput as SlottableInput$1, Image as Image$1, Label as Label$1, AnchorButton as AnchorButton$1, MessageBar as MessageBar$1, MenuButton as MenuButton$1, ProgressBar as ProgressBar$1, RadioGroup as RadioGroup$1, Radio as Radio$1, RatingDisplay as RatingDisplay$1, StartEndOptions, StartEnd, Slider as Slider$1, Spinner as Spinner$1, Switch as Switch$1, Tab as Tab$1, Tablist as Tablist$1, TextArea as TextArea$1, TextAreaAppearance, Text as Text$1, Tree as Tree$1, TreeItem as TreeItem$1, ToggleButton as ToggleButton$1, Tooltip as Tooltip$1 } from '@fluentui/web-components';
|
|
5
5
|
export { AnchorButtonTemplate, AvatarStyles, AvatarTemplate, BadgeStyles, BadgeTemplate, BaseAccordionItem, BaseAnchor, BaseAvatar, BaseButton, BaseCheckbox, BaseDivider, BaseField, BaseProgressBar, BaseRatingDisplay, BaseSpinner, BaseTablist, BaseTextArea, BaseTextInput, CheckboxOptions, CheckboxStyles, CheckboxTemplate, DialogBodyStyles, DialogBodyTemplate, DialogTemplate, ListboxStyles, ListboxTemplate, MenuButtonOptions, MessageBarIntent, MessageBarLayout, MessageBarShape, MessageBarStyles, MessageBarTemplate, SliderConfiguration, SliderOptions, SwitchStyles, SwitchTemplate, TabOptions, TextAreaStyles, TextAreaTemplate, TreeStyles, TreeTemplate, isDropdownOption, isListbox } from '@fluentui/web-components';
|
|
6
6
|
import { OverflowItemEntry, OverflowGroupState } from '@fluentui/priority-overflow';
|
|
7
7
|
export { OverflowGroupState, OverflowItemEntry } from '@fluentui/priority-overflow';
|
|
@@ -139,9 +139,9 @@ declare class AccordionMenu extends FASTElement {
|
|
|
139
139
|
private removeItemListeners;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
declare const template$
|
|
142
|
+
declare const template$m: ElementViewTemplate<AccordionMenu>;
|
|
143
143
|
|
|
144
|
-
declare const styles$
|
|
144
|
+
declare const styles$s: _microsoft_fast_element.ElementStyles;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
@@ -149,7 +149,7 @@ declare const styles$o: _microsoft_fast_element.ElementStyles;
|
|
|
149
149
|
* @remarks
|
|
150
150
|
* HTML Element: <fabric-accordion-menu>
|
|
151
151
|
*/
|
|
152
|
-
declare const definition$
|
|
152
|
+
declare const definition$1f: _microsoft_fast_element.FASTElementDefinition<typeof AccordionMenu>;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* An Accordion Menu Panel header font size can be small, medium, large, and extra-large
|
|
@@ -457,11 +457,11 @@ declare class AccordionMenuPanel extends FASTElement {
|
|
|
457
457
|
* The template for the accordion menu panel component.
|
|
458
458
|
* @public
|
|
459
459
|
*/
|
|
460
|
-
declare const template$
|
|
460
|
+
declare const template$l: ElementViewTemplate<AccordionMenuPanel>;
|
|
461
461
|
|
|
462
|
-
declare const styles$
|
|
462
|
+
declare const styles$r: _microsoft_fast_element.ElementStyles;
|
|
463
463
|
|
|
464
|
-
declare const definition$
|
|
464
|
+
declare const definition$1e: _microsoft_fast_element.FASTElementDefinition<typeof AccordionMenuPanel>;
|
|
465
465
|
|
|
466
466
|
/**
|
|
467
467
|
* The appearance variations for the card component
|
|
@@ -804,14 +804,14 @@ declare class Card extends FASTElement {
|
|
|
804
804
|
* @remarks
|
|
805
805
|
* HTML Element: <fabric-card>
|
|
806
806
|
*/
|
|
807
|
-
declare const definition$
|
|
807
|
+
declare const definition$1d: _microsoft_fast_element.FASTElementDefinition<typeof Card>;
|
|
808
808
|
|
|
809
809
|
/** Card styles
|
|
810
810
|
* @public
|
|
811
811
|
*/
|
|
812
|
-
declare const styles$
|
|
812
|
+
declare const styles$q: _microsoft_fast_element.ElementStyles;
|
|
813
813
|
|
|
814
|
-
declare const template$
|
|
814
|
+
declare const template$k: ElementViewTemplate<Card>;
|
|
815
815
|
|
|
816
816
|
/**
|
|
817
817
|
* CardFooter
|
|
@@ -847,7 +847,7 @@ declare class CardFooter extends FASTElement {
|
|
|
847
847
|
* @remarks
|
|
848
848
|
* HTML Element: <fabric-card-footer>
|
|
849
849
|
*/
|
|
850
|
-
declare const definition$
|
|
850
|
+
declare const definition$1c: _microsoft_fast_element.FASTElementDefinition<typeof CardFooter>;
|
|
851
851
|
|
|
852
852
|
/**
|
|
853
853
|
* CardHeader
|
|
@@ -890,7 +890,7 @@ declare class CardHeader extends FASTElement {
|
|
|
890
890
|
* @remarks
|
|
891
891
|
* HTML Element: <fabric-card-header>
|
|
892
892
|
*/
|
|
893
|
-
declare const definition$
|
|
893
|
+
declare const definition$1b: _microsoft_fast_element.FASTElementDefinition<typeof CardHeader>;
|
|
894
894
|
|
|
895
895
|
/**
|
|
896
896
|
* CardPreview
|
|
@@ -920,7 +920,7 @@ declare class CardPreview extends FASTElement {
|
|
|
920
920
|
* @remarks
|
|
921
921
|
* HTML Element: <fabric-card-preview>
|
|
922
922
|
*/
|
|
923
|
-
declare const definition$
|
|
923
|
+
declare const definition$1a: _microsoft_fast_element.FASTElementDefinition<typeof CardPreview>;
|
|
924
924
|
|
|
925
925
|
/**
|
|
926
926
|
* Button placement options for carousel navigation
|
|
@@ -1001,149 +1001,122 @@ declare class CarouselItem extends FASTElement {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
1003
|
/**
|
|
1004
|
-
*
|
|
1005
|
-
*
|
|
1006
|
-
*
|
|
1007
|
-
* ```html
|
|
1008
|
-
* <fabric-carousel-nav-item active></fabric-carousel-nav-item>
|
|
1009
|
-
* ```
|
|
1010
|
-
*
|
|
1011
|
-
* @attr {boolean} active - Whether this nav item represents the current step.
|
|
1012
|
-
*
|
|
1013
|
-
* @prop {boolean} active - Whether this nav item represents the current step.
|
|
1014
|
-
* @prop {string} tabId - Unique ID for this tab (set by parent).
|
|
1015
|
-
* @prop {string} panelId - ID of the controlled panel (for aria-controls).
|
|
1016
|
-
* @prop {string} tabLabel - Accessible label for the tab (e.g., "Slide 1").
|
|
1017
|
-
*
|
|
1018
|
-
* @slot default - Custom content (default renders a dot).
|
|
1019
|
-
*
|
|
1020
|
-
* @extends FASTElement
|
|
1021
|
-
* @tagname fabric-carousel-nav-item
|
|
1004
|
+
* Interface for items managed by a {@link CarouselController}.
|
|
1005
|
+
* Any element implementing this shape can be driven by the controller
|
|
1006
|
+
* (e.g. `CarouselItem`, `ModalFreItem`).
|
|
1022
1007
|
* @public
|
|
1023
1008
|
*/
|
|
1024
|
-
|
|
1025
|
-
/**
|
|
1026
|
-
* Whether this nav item represents the current step.
|
|
1027
|
-
* @public
|
|
1028
|
-
*/
|
|
1009
|
+
interface CarouselManagedItem {
|
|
1029
1010
|
active: boolean;
|
|
1030
|
-
/**
|
|
1031
|
-
* Unique ID for this tab.
|
|
1032
|
-
* Set by the parent navigation component.
|
|
1033
|
-
* @internal
|
|
1034
|
-
*/
|
|
1035
|
-
tabId?: string;
|
|
1036
|
-
/**
|
|
1037
|
-
* ID of the controlled tabpanel (for aria-controls).
|
|
1038
|
-
* Set by the parent navigation component.
|
|
1039
|
-
* @internal
|
|
1040
|
-
*/
|
|
1041
1011
|
panelId?: string;
|
|
1012
|
+
tabId?: string;
|
|
1013
|
+
label?: string;
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* Options for creating a CarouselController.
|
|
1017
|
+
* @public
|
|
1018
|
+
*/
|
|
1019
|
+
interface CarouselControllerOptions {
|
|
1042
1020
|
/**
|
|
1043
|
-
*
|
|
1044
|
-
*
|
|
1045
|
-
* @internal
|
|
1021
|
+
* Optional prefix for generated IDs.
|
|
1022
|
+
* Defaults to an auto-incrementing "carousel-N" value.
|
|
1046
1023
|
*/
|
|
1047
|
-
|
|
1024
|
+
idPrefix?: string;
|
|
1048
1025
|
}
|
|
1049
|
-
|
|
1050
1026
|
/**
|
|
1051
|
-
*
|
|
1052
|
-
*
|
|
1053
|
-
* @example
|
|
1054
|
-
* ```html
|
|
1055
|
-
* <fabric-carousel-nav button-placement="grouped">
|
|
1056
|
-
* <fabric-carousel-nav-item active></fabric-carousel-nav-item>
|
|
1057
|
-
* <fabric-carousel-nav-item></fabric-carousel-nav-item>
|
|
1058
|
-
* <fabric-carousel-nav-item></fabric-carousel-nav-item>
|
|
1059
|
-
* </fabric-carousel-nav>
|
|
1060
|
-
* ```
|
|
1061
|
-
*
|
|
1062
|
-
* @attr {string} button-placement - Positioning of prev/next buttons.
|
|
1063
|
-
* @attr {number} current-index - Currently selected nav item index.
|
|
1064
|
-
*
|
|
1065
|
-
* @prop {CarouselNavButtonPlacement} buttonPlacement - Button positioning.
|
|
1066
|
-
* @prop {number} currentIndex - Currently selected nav item index.
|
|
1067
|
-
*
|
|
1068
|
-
* @slot default - Slot for fabric-carousel-nav-item elements.
|
|
1027
|
+
* Framework-agnostic controller that manages carousel state and navigation.
|
|
1069
1028
|
*
|
|
1070
|
-
*
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1029
|
+
* Both `fabric-carousel` and `fabric-modal` (FRE mode) instantiate this
|
|
1030
|
+
* controller. It owns:
|
|
1031
|
+
* - `currentIndex` / `totalItems` state
|
|
1032
|
+
* - `next()`, `prev()`, `scrollToIndex()` navigation
|
|
1033
|
+
* - Active-state synchronization on `CarouselItem` elements
|
|
1034
|
+
* - ARIA tab/panel ID generation
|
|
1073
1035
|
*
|
|
1074
|
-
* @extends FASTElement
|
|
1075
|
-
* @tagname fabric-carousel-nav
|
|
1076
1036
|
* @public
|
|
1077
1037
|
*/
|
|
1078
|
-
declare class
|
|
1038
|
+
declare class CarouselController<T extends CarouselManagedItem = CarouselItem> {
|
|
1079
1039
|
/**
|
|
1080
|
-
*
|
|
1081
|
-
* @
|
|
1040
|
+
* Counter for generating unique carousel IDs.
|
|
1041
|
+
* @internal
|
|
1082
1042
|
*/
|
|
1083
|
-
|
|
1043
|
+
private static idCounter;
|
|
1084
1044
|
/**
|
|
1085
|
-
*
|
|
1086
|
-
* @
|
|
1045
|
+
* Unique ID prefix for this controller instance.
|
|
1046
|
+
* @internal
|
|
1087
1047
|
*/
|
|
1088
|
-
|
|
1048
|
+
readonly idPrefix: string;
|
|
1089
1049
|
/**
|
|
1090
|
-
*
|
|
1091
|
-
* @
|
|
1050
|
+
* Index of the currently active item.
|
|
1051
|
+
* Setting this value calls {@link updateActiveStates} and invokes
|
|
1052
|
+
* the {@link onChange} callback when the value actually changes.
|
|
1053
|
+
* @public
|
|
1092
1054
|
*/
|
|
1093
|
-
|
|
1055
|
+
private _currentIndex;
|
|
1056
|
+
get currentIndex(): number;
|
|
1057
|
+
set currentIndex(value: number);
|
|
1094
1058
|
/**
|
|
1095
|
-
*
|
|
1096
|
-
*
|
|
1059
|
+
* The collection of carousel items managed by this controller.
|
|
1060
|
+
* Uses FAST Observable API so template bindings (e.g. `repeat`)
|
|
1061
|
+
* react when the array reference is replaced.
|
|
1062
|
+
* @public
|
|
1097
1063
|
*/
|
|
1098
|
-
private
|
|
1064
|
+
private _items;
|
|
1065
|
+
get items(): T[];
|
|
1066
|
+
set items(value: T[]);
|
|
1099
1067
|
/**
|
|
1100
|
-
*
|
|
1101
|
-
*
|
|
1068
|
+
* Total number of items.
|
|
1069
|
+
* Derives from the tracked `items` property so observers are notified
|
|
1070
|
+
* when the item array is replaced.
|
|
1071
|
+
* @public
|
|
1072
|
+
* @readonly
|
|
1102
1073
|
*/
|
|
1103
|
-
|
|
1074
|
+
get totalItems(): number;
|
|
1075
|
+
constructor(options?: CarouselControllerOptions);
|
|
1104
1076
|
/**
|
|
1105
|
-
*
|
|
1106
|
-
* @
|
|
1077
|
+
* Advances to the next item if not at the end.
|
|
1078
|
+
* @public
|
|
1107
1079
|
*/
|
|
1108
|
-
|
|
1080
|
+
next(): void;
|
|
1109
1081
|
/**
|
|
1110
|
-
*
|
|
1111
|
-
* @
|
|
1082
|
+
* Moves to the previous item if not at the beginning.
|
|
1083
|
+
* @public
|
|
1112
1084
|
*/
|
|
1113
|
-
|
|
1085
|
+
prev(): void;
|
|
1114
1086
|
/**
|
|
1115
|
-
*
|
|
1116
|
-
* @
|
|
1087
|
+
* Scrolls to the item at the specified index.
|
|
1088
|
+
* @param index - The target index.
|
|
1089
|
+
* @public
|
|
1117
1090
|
*/
|
|
1118
|
-
|
|
1091
|
+
scrollToIndex(index: number): void;
|
|
1119
1092
|
/**
|
|
1120
|
-
*
|
|
1121
|
-
*
|
|
1122
|
-
*
|
|
1123
|
-
* @internal
|
|
1093
|
+
* Synchronizes active state, panelId, and tabId on all items.
|
|
1094
|
+
* Clamps `currentIndex` to valid range.
|
|
1095
|
+
* @public
|
|
1124
1096
|
*/
|
|
1125
|
-
|
|
1097
|
+
updateActiveStates(): void;
|
|
1126
1098
|
/**
|
|
1127
|
-
*
|
|
1099
|
+
* Applies active state, panelId, and tabId to all items
|
|
1100
|
+
* based on the current index. Does not clamp.
|
|
1128
1101
|
* @internal
|
|
1129
1102
|
*/
|
|
1130
|
-
private
|
|
1103
|
+
private syncActiveStates;
|
|
1131
1104
|
/**
|
|
1132
|
-
*
|
|
1133
|
-
* @
|
|
1105
|
+
* Gets the tab ID for a given index.
|
|
1106
|
+
* @public
|
|
1134
1107
|
*/
|
|
1135
|
-
|
|
1108
|
+
getTabId(index: number): string;
|
|
1136
1109
|
/**
|
|
1137
|
-
*
|
|
1138
|
-
* @
|
|
1110
|
+
* Gets the panel ID for a given index.
|
|
1111
|
+
* @public
|
|
1139
1112
|
*/
|
|
1140
|
-
|
|
1113
|
+
getPanelId(index: number): string;
|
|
1141
1114
|
/**
|
|
1142
|
-
*
|
|
1143
|
-
*
|
|
1115
|
+
* Gets the tab label for a given index.
|
|
1116
|
+
* Uses the item's label if set, otherwise a localized "Slide N" label.
|
|
1117
|
+
* @public
|
|
1144
1118
|
*/
|
|
1145
|
-
|
|
1146
|
-
disconnectedCallback(): void;
|
|
1119
|
+
getTabLabel(index: number): string;
|
|
1147
1120
|
}
|
|
1148
1121
|
|
|
1149
1122
|
/**
|
|
@@ -1181,16 +1154,10 @@ declare class CarouselNav extends FASTElement {
|
|
|
1181
1154
|
*/
|
|
1182
1155
|
declare class Carousel extends FASTElement {
|
|
1183
1156
|
/**
|
|
1184
|
-
*
|
|
1185
|
-
* @internal
|
|
1186
|
-
*/
|
|
1187
|
-
private static idCounter;
|
|
1188
|
-
/**
|
|
1189
|
-
* Unique ID for this carousel instance.
|
|
1190
|
-
* Used to generate unique IDs for tabs and panels.
|
|
1157
|
+
* Internal carousel controller that manages state and navigation.
|
|
1191
1158
|
* @internal
|
|
1192
1159
|
*/
|
|
1193
|
-
readonly
|
|
1160
|
+
readonly controller: CarouselController<CarouselItem>;
|
|
1194
1161
|
/**
|
|
1195
1162
|
* Nav position relative to content.
|
|
1196
1163
|
* @public
|
|
@@ -1205,38 +1172,19 @@ declare class Carousel extends FASTElement {
|
|
|
1205
1172
|
* Index of the currently visible item.
|
|
1206
1173
|
* @public
|
|
1207
1174
|
*/
|
|
1208
|
-
currentIndex: number;
|
|
1175
|
+
get currentIndex(): number;
|
|
1176
|
+
set currentIndex(value: number);
|
|
1209
1177
|
/**
|
|
1210
1178
|
* Slotted carousel items.
|
|
1211
1179
|
* @internal
|
|
1212
1180
|
*/
|
|
1213
1181
|
slottedItems: CarouselItem[];
|
|
1214
|
-
/**
|
|
1215
|
-
* Reference to the generated nav element.
|
|
1216
|
-
* @internal
|
|
1217
|
-
*/
|
|
1218
|
-
generatedNav?: CarouselNav;
|
|
1219
|
-
/**
|
|
1220
|
-
* Abort controller for removing nav event listeners.
|
|
1221
|
-
* @internal
|
|
1222
|
-
*/
|
|
1223
|
-
private eventListenerAbortController?;
|
|
1224
1182
|
/**
|
|
1225
1183
|
* Total number of carousel items.
|
|
1226
1184
|
* @public
|
|
1227
1185
|
* @readonly
|
|
1228
1186
|
*/
|
|
1229
1187
|
get totalItems(): number;
|
|
1230
|
-
/**
|
|
1231
|
-
* Callback when generatedNav changes.
|
|
1232
|
-
* @internal
|
|
1233
|
-
*/
|
|
1234
|
-
generatedNavChanged(_oldValue: CarouselNav | undefined, newValue: CarouselNav | undefined): void;
|
|
1235
|
-
/**
|
|
1236
|
-
* Callback when currentIndex changes.
|
|
1237
|
-
* @internal
|
|
1238
|
-
*/
|
|
1239
|
-
currentIndexChanged(oldValue: number, newValue: number): void;
|
|
1240
1188
|
/**
|
|
1241
1189
|
* Callback when slotted items change.
|
|
1242
1190
|
* @internal
|
|
@@ -1257,11 +1205,6 @@ declare class Carousel extends FASTElement {
|
|
|
1257
1205
|
* @public
|
|
1258
1206
|
*/
|
|
1259
1207
|
scrollToIndex(index: number): void;
|
|
1260
|
-
/**
|
|
1261
|
-
* Updates active states on carousel items.
|
|
1262
|
-
* @internal
|
|
1263
|
-
*/
|
|
1264
|
-
private updateActiveStates;
|
|
1265
1208
|
/**
|
|
1266
1209
|
* Gets the tab ID for a given index.
|
|
1267
1210
|
* @internal
|
|
@@ -1278,18 +1221,12 @@ declare class Carousel extends FASTElement {
|
|
|
1278
1221
|
* @internal
|
|
1279
1222
|
*/
|
|
1280
1223
|
getTabLabel(index: number): string;
|
|
1281
|
-
|
|
1282
|
-
* Sets up event listeners on nav element.
|
|
1283
|
-
* @internal
|
|
1284
|
-
*/
|
|
1285
|
-
private setupNavListeners;
|
|
1224
|
+
connectedCallback(): void;
|
|
1286
1225
|
/**
|
|
1287
1226
|
* Emits change event.
|
|
1288
1227
|
* @internal
|
|
1289
1228
|
*/
|
|
1290
1229
|
private emitChange;
|
|
1291
|
-
connectedCallback(): void;
|
|
1292
|
-
disconnectedCallback(): void;
|
|
1293
1230
|
}
|
|
1294
1231
|
|
|
1295
1232
|
/**
|
|
@@ -1311,15 +1248,15 @@ type CarouselEventName = ValuesOf<typeof CarouselEventNames>;
|
|
|
1311
1248
|
* @remarks
|
|
1312
1249
|
* HTML Element: <fabric-carousel>
|
|
1313
1250
|
*/
|
|
1314
|
-
declare const definition$
|
|
1251
|
+
declare const definition$19: _microsoft_fast_element.FASTElementDefinition<typeof Carousel>;
|
|
1315
1252
|
|
|
1316
1253
|
/**
|
|
1317
1254
|
* Styles for the {@link @fabric-msft/fabric-web#(Carousel:class)} component.
|
|
1318
1255
|
* @public
|
|
1319
1256
|
*/
|
|
1320
|
-
declare const styles$
|
|
1257
|
+
declare const styles$p: ElementStyles;
|
|
1321
1258
|
|
|
1322
|
-
declare const template$
|
|
1259
|
+
declare const template$j: ElementViewTemplate<Carousel>;
|
|
1323
1260
|
|
|
1324
1261
|
/**
|
|
1325
1262
|
* Registers the carousel element and all of its internal dependencies
|
|
@@ -1343,117 +1280,320 @@ declare function defineCarousel(registry?: CustomElementRegistry): void;
|
|
|
1343
1280
|
* @remarks
|
|
1344
1281
|
* HTML Element: <fabric-carousel-item>
|
|
1345
1282
|
*/
|
|
1346
|
-
declare const definition$
|
|
1283
|
+
declare const definition$18: _microsoft_fast_element.FASTElementDefinition<typeof CarouselItem>;
|
|
1347
1284
|
|
|
1348
1285
|
/**
|
|
1349
1286
|
* Styles for the {@link @fabric-msft/fabric-web#(CarouselItem:class)} component.
|
|
1350
1287
|
* @public
|
|
1351
1288
|
*/
|
|
1352
|
-
declare const styles$
|
|
1353
|
-
|
|
1354
|
-
declare const template$e: ElementViewTemplate<CarouselItem>;
|
|
1355
|
-
|
|
1356
|
-
/**
|
|
1357
|
-
* Event names for the CarouselNav component
|
|
1358
|
-
* @public
|
|
1359
|
-
*/
|
|
1360
|
-
declare const CarouselNavEventNames: {
|
|
1361
|
-
readonly select: "select";
|
|
1362
|
-
readonly previous: "previous";
|
|
1363
|
-
readonly next: "next";
|
|
1364
|
-
};
|
|
1365
|
-
/**
|
|
1366
|
-
* CarouselNav event type
|
|
1367
|
-
* @public
|
|
1368
|
-
*/
|
|
1369
|
-
type CarouselNavEventName = ValuesOf<typeof CarouselNavEventNames>;
|
|
1370
|
-
|
|
1371
|
-
/**
|
|
1372
|
-
* The CarouselNav element definition.
|
|
1373
|
-
* @public
|
|
1374
|
-
* @remarks
|
|
1375
|
-
* HTML Element: <fabric-carousel-nav>
|
|
1376
|
-
*/
|
|
1377
|
-
declare const definition$12: _microsoft_fast_element.FASTElementDefinition<typeof CarouselNav>;
|
|
1378
|
-
|
|
1379
|
-
/**
|
|
1380
|
-
* Styles for the {@link @fabric-msft/fabric-web#(CarouselNav:class)} component.
|
|
1381
|
-
* @public
|
|
1382
|
-
*/
|
|
1383
|
-
declare const styles$j: ElementStyles;
|
|
1384
|
-
|
|
1385
|
-
declare const template$d: ElementViewTemplate<CarouselNav>;
|
|
1386
|
-
|
|
1387
|
-
/**
|
|
1388
|
-
* The CarouselNavItem element definition.
|
|
1389
|
-
* @public
|
|
1390
|
-
* @remarks
|
|
1391
|
-
* HTML Element: <fabric-carousel-nav-item>
|
|
1392
|
-
*/
|
|
1393
|
-
declare const definition$11: _microsoft_fast_element.FASTElementDefinition<typeof CarouselNavItem>;
|
|
1394
|
-
|
|
1395
|
-
/**
|
|
1396
|
-
* Styles for the {@link @fabric-msft/fabric-web#(CarouselNavItem:class)} component.
|
|
1397
|
-
* @public
|
|
1398
|
-
*/
|
|
1399
|
-
declare const styles$i: ElementStyles;
|
|
1289
|
+
declare const styles$o: ElementStyles;
|
|
1400
1290
|
|
|
1401
|
-
declare const template$
|
|
1291
|
+
declare const template$i: ElementViewTemplate<CarouselItem>;
|
|
1402
1292
|
|
|
1403
1293
|
/**
|
|
1404
|
-
* @summary A
|
|
1294
|
+
* @summary A single tab indicator within the carousel navigation.
|
|
1405
1295
|
*
|
|
1406
1296
|
* @example
|
|
1407
1297
|
* ```html
|
|
1408
|
-
* <fabric-
|
|
1409
|
-
* <div slot="header">Carousel Header</div>
|
|
1410
|
-
* <fabric-button slot="prev-button">Prev</fabric-button>
|
|
1411
|
-
* <fabric-button slot="next-button">Next</fabric-button>
|
|
1412
|
-
* <div>Item 1</div>
|
|
1413
|
-
* <div>Item 2</div>
|
|
1414
|
-
* <!-- More carousel items here -->
|
|
1415
|
-
* </fabric-card-carousel>
|
|
1298
|
+
* <fabric-carousel-nav-item active></fabric-carousel-nav-item>
|
|
1416
1299
|
* ```
|
|
1417
1300
|
*
|
|
1418
|
-
* @attr
|
|
1419
|
-
*
|
|
1420
|
-
* @prop {boolean} disableAnimation - Boolean attribute to disable animation.
|
|
1421
|
-
* @prop {HTMLElement[]} slottedCarouselItems - An array of carousel items that are slotted into the carousel.
|
|
1422
|
-
* @prop {HTMLElement} header - The header element.
|
|
1423
|
-
* @prop {number} currentIndex - The current index of the carousel, indicating which item is currently visible.
|
|
1424
|
-
* @prop {HTMLElement[]} nextButton - The next button element.
|
|
1425
|
-
* @prop {HTMLElement[]} prevButton - The previous button element.
|
|
1426
|
-
* @prop {number} visibleItemsCount - Gets the number of items currently visible in the carousel. (readonly)
|
|
1301
|
+
* @attr {boolean} active - Whether this nav item represents the current step.
|
|
1427
1302
|
*
|
|
1428
|
-
* @
|
|
1429
|
-
* @
|
|
1430
|
-
* @
|
|
1431
|
-
* @
|
|
1303
|
+
* @prop {boolean} active - Whether this nav item represents the current step.
|
|
1304
|
+
* @prop {string} tabId - Unique ID for this tab (set by parent).
|
|
1305
|
+
* @prop {string} panelId - ID of the controlled panel (for aria-controls).
|
|
1306
|
+
* @prop {string} tabLabel - Accessible label for the tab (e.g., "Slide 1").
|
|
1432
1307
|
*
|
|
1433
|
-
* @
|
|
1434
|
-
* @method prev - Moves the carousel to the previous set of items.
|
|
1435
|
-
* @method scrollToIndex - Scrolls the carousel to a specific index.
|
|
1436
|
-
* @method isAtEnd - Checks if the carousel is at the end of the items.
|
|
1437
|
-
* @method getNextVisibleItemsCount - Gets the count of the next set of visible items in the carousel.
|
|
1438
|
-
* @method updateVisibleItems - Updates the visible items in the carousel.
|
|
1308
|
+
* @slot default - Custom content (default renders a dot).
|
|
1439
1309
|
*
|
|
1440
1310
|
* @extends FASTElement
|
|
1441
|
-
* @tagname fabric-
|
|
1311
|
+
* @tagname fabric-carousel-nav-item
|
|
1442
1312
|
* @public
|
|
1443
1313
|
*/
|
|
1444
|
-
declare class
|
|
1445
|
-
#private;
|
|
1314
|
+
declare class CarouselNavItem extends FASTElement {
|
|
1446
1315
|
/**
|
|
1447
|
-
*
|
|
1448
|
-
*
|
|
1316
|
+
* Whether this nav item represents the current step.
|
|
1449
1317
|
* @public
|
|
1450
|
-
* @type {boolean}
|
|
1451
|
-
* @attr
|
|
1452
1318
|
*/
|
|
1453
|
-
|
|
1319
|
+
active: boolean;
|
|
1454
1320
|
/**
|
|
1455
|
-
*
|
|
1456
|
-
*
|
|
1321
|
+
* Unique ID for this tab.
|
|
1322
|
+
* Set by the parent navigation component.
|
|
1323
|
+
* @internal
|
|
1324
|
+
*/
|
|
1325
|
+
tabId?: string;
|
|
1326
|
+
/**
|
|
1327
|
+
* ID of the controlled tabpanel (for aria-controls).
|
|
1328
|
+
* Set by the parent navigation component.
|
|
1329
|
+
* @internal
|
|
1330
|
+
*/
|
|
1331
|
+
panelId?: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* Accessible label for the tab.
|
|
1334
|
+
* Set by the parent navigation component.
|
|
1335
|
+
* @internal
|
|
1336
|
+
*/
|
|
1337
|
+
tabLabel?: string;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* @summary Navigation container with step indicators and prev/next buttons.
|
|
1342
|
+
*
|
|
1343
|
+
* @example
|
|
1344
|
+
* ```html
|
|
1345
|
+
* <fabric-carousel-nav button-placement="grouped">
|
|
1346
|
+
* <fabric-carousel-nav-item active></fabric-carousel-nav-item>
|
|
1347
|
+
* <fabric-carousel-nav-item></fabric-carousel-nav-item>
|
|
1348
|
+
* <fabric-carousel-nav-item></fabric-carousel-nav-item>
|
|
1349
|
+
* </fabric-carousel-nav>
|
|
1350
|
+
* ```
|
|
1351
|
+
*
|
|
1352
|
+
* @attr {string} button-placement - Positioning of prev/next buttons.
|
|
1353
|
+
* @attr {number} current-index - Currently selected nav item index.
|
|
1354
|
+
*
|
|
1355
|
+
* @prop {CarouselNavButtonPlacement} buttonPlacement - Button positioning.
|
|
1356
|
+
* @prop {number} currentIndex - Currently selected nav item index.
|
|
1357
|
+
* @prop {CarouselController} controller - The carousel controller to drive navigation.
|
|
1358
|
+
*
|
|
1359
|
+
* @slot default - Slot for fabric-carousel-nav-item elements.
|
|
1360
|
+
* @slot prev-button - Custom previous button. Defaults to a chevron left button.
|
|
1361
|
+
* @slot next-button - Custom next button. Defaults to a chevron right button.
|
|
1362
|
+
*
|
|
1363
|
+
* @fires select - Fired when a nav item is selected with detail { index }.
|
|
1364
|
+
* @fires previous - Fired when prev button is clicked.
|
|
1365
|
+
* @fires next - Fired when next button is clicked.
|
|
1366
|
+
*
|
|
1367
|
+
* @extends FASTElement
|
|
1368
|
+
* @tagname fabric-carousel-nav
|
|
1369
|
+
* @public
|
|
1370
|
+
*/
|
|
1371
|
+
declare class CarouselNav extends FASTElement {
|
|
1372
|
+
/**
|
|
1373
|
+
* Positioning of prev/next buttons.
|
|
1374
|
+
* @public
|
|
1375
|
+
*/
|
|
1376
|
+
buttonPlacement: CarouselNavButtonPlacement;
|
|
1377
|
+
/**
|
|
1378
|
+
* Currently selected nav item index.
|
|
1379
|
+
* @public
|
|
1380
|
+
*/
|
|
1381
|
+
currentIndex: number;
|
|
1382
|
+
/**
|
|
1383
|
+
* The carousel controller to drive navigation.
|
|
1384
|
+
* When set, prev/next/select actions call methods on the controller directly.
|
|
1385
|
+
* @public
|
|
1386
|
+
*/
|
|
1387
|
+
controller?: CarouselController;
|
|
1388
|
+
/**
|
|
1389
|
+
* Callback to parse current-index attribute.
|
|
1390
|
+
* @internal
|
|
1391
|
+
*/
|
|
1392
|
+
currentIndexChanged(_oldValue: string | number, newValue: string | number): void;
|
|
1393
|
+
/**
|
|
1394
|
+
* Roving focus controller for indicator keyboard navigation.
|
|
1395
|
+
* @internal
|
|
1396
|
+
*/
|
|
1397
|
+
private rovingFocus;
|
|
1398
|
+
/**
|
|
1399
|
+
* Manages event listeners for nav items.
|
|
1400
|
+
* @internal
|
|
1401
|
+
*/
|
|
1402
|
+
private navItemEvents;
|
|
1403
|
+
/**
|
|
1404
|
+
* Slotted nav items.
|
|
1405
|
+
* @internal
|
|
1406
|
+
*/
|
|
1407
|
+
slottedNavItems: CarouselNavItem[];
|
|
1408
|
+
/**
|
|
1409
|
+
* Callback when nav items change.
|
|
1410
|
+
* @internal
|
|
1411
|
+
*/
|
|
1412
|
+
slottedNavItemsChanged(oldValue: CarouselNavItem[], newValue: CarouselNavItem[]): void;
|
|
1413
|
+
/**
|
|
1414
|
+
* Updates active states on nav items.
|
|
1415
|
+
* @internal
|
|
1416
|
+
*/
|
|
1417
|
+
private updateActiveStates;
|
|
1418
|
+
/**
|
|
1419
|
+
* Handles keyboard events on indicators.
|
|
1420
|
+
* Arrow keys are delegated to roving focus controller.
|
|
1421
|
+
* Enter/Space selects the focused indicator.
|
|
1422
|
+
* @internal
|
|
1423
|
+
*/
|
|
1424
|
+
private handleIndicatorKeydown;
|
|
1425
|
+
/**
|
|
1426
|
+
* Handles nav item click.
|
|
1427
|
+
* @internal
|
|
1428
|
+
*/
|
|
1429
|
+
private handleItemClick;
|
|
1430
|
+
/**
|
|
1431
|
+
* Handles prev button click.
|
|
1432
|
+
* @internal
|
|
1433
|
+
*/
|
|
1434
|
+
handlePrevClick(): void;
|
|
1435
|
+
/**
|
|
1436
|
+
* Handles next button click.
|
|
1437
|
+
* @internal
|
|
1438
|
+
*/
|
|
1439
|
+
handleNextClick(): void;
|
|
1440
|
+
/**
|
|
1441
|
+
* Emits select event.
|
|
1442
|
+
* @internal
|
|
1443
|
+
*/
|
|
1444
|
+
private emitSelect;
|
|
1445
|
+
disconnectedCallback(): void;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Event names for the CarouselNav component
|
|
1450
|
+
* @public
|
|
1451
|
+
*/
|
|
1452
|
+
declare const CarouselNavEventNames: {
|
|
1453
|
+
readonly select: "select";
|
|
1454
|
+
readonly previous: "previous";
|
|
1455
|
+
readonly next: "next";
|
|
1456
|
+
};
|
|
1457
|
+
/**
|
|
1458
|
+
* CarouselNav event type
|
|
1459
|
+
* @public
|
|
1460
|
+
*/
|
|
1461
|
+
type CarouselNavEventName = ValuesOf<typeof CarouselNavEventNames>;
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* The CarouselNav element definition.
|
|
1465
|
+
* @public
|
|
1466
|
+
* @remarks
|
|
1467
|
+
* HTML Element: <fabric-carousel-nav>
|
|
1468
|
+
*/
|
|
1469
|
+
declare const definition$17: _microsoft_fast_element.FASTElementDefinition<typeof CarouselNav>;
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Styles for the {@link @fabric-msft/fabric-web#(CarouselNav:class)} component.
|
|
1473
|
+
* @public
|
|
1474
|
+
*/
|
|
1475
|
+
declare const styles$n: ElementStyles;
|
|
1476
|
+
|
|
1477
|
+
declare const template$h: ElementViewTemplate<CarouselNav>;
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
* The CarouselNavItem element definition.
|
|
1481
|
+
* @public
|
|
1482
|
+
* @remarks
|
|
1483
|
+
* HTML Element: <fabric-carousel-nav-item>
|
|
1484
|
+
*/
|
|
1485
|
+
declare const definition$16: _microsoft_fast_element.FASTElementDefinition<typeof CarouselNavItem>;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Styles for the {@link @fabric-msft/fabric-web#(CarouselNavItem:class)} component.
|
|
1489
|
+
* @public
|
|
1490
|
+
*/
|
|
1491
|
+
declare const styles$m: ElementStyles;
|
|
1492
|
+
|
|
1493
|
+
declare const template$g: ElementViewTemplate<CarouselNavItem>;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* @summary Renders the scrolling viewport for carousel items.
|
|
1497
|
+
*
|
|
1498
|
+
* This component is the visual container that shows one carousel item at a time
|
|
1499
|
+
* and applies a CSS transform to slide between items. It is driven by a
|
|
1500
|
+
* {@link CarouselController} which manages the active index and item state.
|
|
1501
|
+
*
|
|
1502
|
+
* The host component (e.g. fabric-carousel or fabric-modal) is responsible for
|
|
1503
|
+
* managing the controller's items. The viewport is purely a rendering component.
|
|
1504
|
+
*
|
|
1505
|
+
* @example
|
|
1506
|
+
* ```html
|
|
1507
|
+
* <fabric-carousel-viewport>
|
|
1508
|
+
* <fabric-carousel-item>Slide 1</fabric-carousel-item>
|
|
1509
|
+
* <fabric-carousel-item>Slide 2</fabric-carousel-item>
|
|
1510
|
+
* </fabric-carousel-viewport>
|
|
1511
|
+
* ```
|
|
1512
|
+
*
|
|
1513
|
+
* @slot default - Slot for fabric-carousel-item elements.
|
|
1514
|
+
*
|
|
1515
|
+
* @extends FASTElement
|
|
1516
|
+
* @tagname fabric-carousel-viewport
|
|
1517
|
+
* @public
|
|
1518
|
+
*/
|
|
1519
|
+
declare class CarouselViewport extends FASTElement {
|
|
1520
|
+
/**
|
|
1521
|
+
* The carousel controller driving this viewport.
|
|
1522
|
+
* @public
|
|
1523
|
+
*/
|
|
1524
|
+
controller?: CarouselController;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* The CarouselViewport element definition.
|
|
1529
|
+
* @public
|
|
1530
|
+
* @remarks
|
|
1531
|
+
* HTML Element: <fabric-carousel-viewport>
|
|
1532
|
+
*/
|
|
1533
|
+
declare const definition$15: _microsoft_fast_element.FASTElementDefinition<typeof CarouselViewport>;
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* Styles for the {@link @fabric-msft/fabric-web#(CarouselViewport:class)} component.
|
|
1537
|
+
* @public
|
|
1538
|
+
*/
|
|
1539
|
+
declare const styles$l: ElementStyles;
|
|
1540
|
+
|
|
1541
|
+
declare const template$f: ElementViewTemplate<CarouselViewport>;
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* @summary A Carousel component for displaying a set of items in a horizontal, scrollable manner.
|
|
1545
|
+
*
|
|
1546
|
+
* @example
|
|
1547
|
+
* ```html
|
|
1548
|
+
* <fabric-card-carousel>
|
|
1549
|
+
* <div slot="header">Carousel Header</div>
|
|
1550
|
+
* <fabric-button slot="prev-button">Prev</fabric-button>
|
|
1551
|
+
* <fabric-button slot="next-button">Next</fabric-button>
|
|
1552
|
+
* <div>Item 1</div>
|
|
1553
|
+
* <div>Item 2</div>
|
|
1554
|
+
* <!-- More carousel items here -->
|
|
1555
|
+
* </fabric-card-carousel>
|
|
1556
|
+
* ```
|
|
1557
|
+
*
|
|
1558
|
+
* @attr disable-animation - Disables animation when set to true.
|
|
1559
|
+
*
|
|
1560
|
+
* @prop {boolean} disableAnimation - Boolean attribute to disable animation.
|
|
1561
|
+
* @prop {HTMLElement[]} slottedCarouselItems - An array of carousel items that are slotted into the carousel.
|
|
1562
|
+
* @prop {HTMLElement} header - The header element.
|
|
1563
|
+
* @prop {number} currentIndex - The current index of the carousel, indicating which item is currently visible.
|
|
1564
|
+
* @prop {HTMLElement[]} nextButton - The next button element.
|
|
1565
|
+
* @prop {HTMLElement[]} prevButton - The previous button element.
|
|
1566
|
+
* @prop {number} visibleItemsCount - Gets the number of items currently visible in the carousel. (readonly)
|
|
1567
|
+
*
|
|
1568
|
+
* @slot header - Slot for the carousel header content.
|
|
1569
|
+
* @slot prev-button - Slot for the carousel's previous navigation button.
|
|
1570
|
+
* @slot next-button - Slot for the carousel's next navigation button.
|
|
1571
|
+
* @slot - Default slot for carousel items.
|
|
1572
|
+
*
|
|
1573
|
+
* @method next - Moves the carousel to the next set of items.
|
|
1574
|
+
* @method prev - Moves the carousel to the previous set of items.
|
|
1575
|
+
* @method scrollToIndex - Scrolls the carousel to a specific index.
|
|
1576
|
+
* @method isAtEnd - Checks if the carousel is at the end of the items.
|
|
1577
|
+
* @method getNextVisibleItemsCount - Gets the count of the next set of visible items in the carousel.
|
|
1578
|
+
* @method updateVisibleItems - Updates the visible items in the carousel.
|
|
1579
|
+
*
|
|
1580
|
+
* @extends FASTElement
|
|
1581
|
+
* @tagname fabric-card-carousel
|
|
1582
|
+
* @public
|
|
1583
|
+
*/
|
|
1584
|
+
declare class CardCarousel extends FASTElement {
|
|
1585
|
+
#private;
|
|
1586
|
+
/**
|
|
1587
|
+
* Boolean attribute to disable animation.
|
|
1588
|
+
*
|
|
1589
|
+
* @public
|
|
1590
|
+
* @type {boolean}
|
|
1591
|
+
* @attr
|
|
1592
|
+
*/
|
|
1593
|
+
disableAnimation?: boolean;
|
|
1594
|
+
/**
|
|
1595
|
+
* An array of carousel items that are slotted into the carousel.
|
|
1596
|
+
*
|
|
1457
1597
|
* @public
|
|
1458
1598
|
* @type {HTMLElement[]}
|
|
1459
1599
|
* @observable
|
|
@@ -1669,11 +1809,11 @@ declare class CardCarousel extends FASTElement {
|
|
|
1669
1809
|
* @remarks
|
|
1670
1810
|
* HTML Element: <fabric-card-carousel>
|
|
1671
1811
|
*/
|
|
1672
|
-
declare const definition$
|
|
1812
|
+
declare const definition$14: _microsoft_fast_element.FASTElementDefinition<typeof CardCarousel>;
|
|
1673
1813
|
|
|
1674
|
-
declare const styles$
|
|
1814
|
+
declare const styles$k: _microsoft_fast_element.ElementStyles;
|
|
1675
1815
|
|
|
1676
|
-
declare const template$
|
|
1816
|
+
declare const template$e: ElementViewTemplate<CardCarousel>;
|
|
1677
1817
|
|
|
1678
1818
|
/** Appearance values for {@link Button}. */
|
|
1679
1819
|
declare const ButtonAppearances: {
|
|
@@ -2018,12 +2158,429 @@ declare class FilterPill extends Button {
|
|
|
2018
2158
|
}
|
|
2019
2159
|
|
|
2020
2160
|
/**
|
|
2021
|
-
*
|
|
2161
|
+
*
|
|
2162
|
+
* @public
|
|
2163
|
+
* @remarks
|
|
2164
|
+
* HTML Element: <fabric-filter-pill>
|
|
2165
|
+
*/
|
|
2166
|
+
declare const definition$13: _microsoft_fast_element.FASTElementDefinition<typeof FilterPill>;
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* Modal mode options.
|
|
2170
|
+
* @public
|
|
2171
|
+
*/
|
|
2172
|
+
declare const ModalModes: {
|
|
2173
|
+
readonly default: "default";
|
|
2174
|
+
readonly fre: "fre";
|
|
2175
|
+
};
|
|
2176
|
+
/**
|
|
2177
|
+
* Modal mode type.
|
|
2178
|
+
* @public
|
|
2179
|
+
*/
|
|
2180
|
+
type ModalMode = ValuesOf<typeof ModalModes>;
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* Dialog
|
|
2184
|
+
* @summary A Dialog Custom HTML Element that provides modal, non-modal, and alert dialog types with accessible attributes.
|
|
2185
|
+
*
|
|
2186
|
+
* @example
|
|
2187
|
+
* ```html
|
|
2188
|
+
* <fabric-dialog type="modal" aria-labelledby="dialog-label" aria-describedby="dialog-desc">
|
|
2189
|
+
* <span slot="title">Title</span>
|
|
2190
|
+
* <div>Content of the dialog body</div>
|
|
2191
|
+
* <span slot="action">Action buttons</span>
|
|
2192
|
+
* </fabric-dialog>
|
|
2193
|
+
* ```
|
|
2194
|
+
*
|
|
2195
|
+
* @attr {string} aria-describedby - Identifies the element (or elements) that describes the object.
|
|
2196
|
+
* @attr {string} aria-labelledby - Identifies the element (or elements) that labels the current element.
|
|
2197
|
+
* @attr {DialogType} type - The type of dialog ('modal', 'non-modal', 'alert').
|
|
2198
|
+
*
|
|
2199
|
+
* @prop {HTMLElement} dialog - The internal dialog element reference.
|
|
2200
|
+
* @prop {string} ariaDescribedby - Reflects the 'aria-describedby' attribute to associate the dialog with descriptive text.
|
|
2201
|
+
* @prop {string} ariaLabelledby - Reflects the 'aria-labelledby' attribute to associate the dialog with its label.
|
|
2202
|
+
* @prop {DialogType} type - The type of dialog, which can be 'modal', 'non-modal', or 'alert'.
|
|
2203
|
+
*
|
|
2204
|
+
* @slot - The default slot for dialog content.
|
|
2205
|
+
*
|
|
2206
|
+
* @csspart dialog - The dialog container.
|
|
2207
|
+
*
|
|
2208
|
+
* @method show() - Opens the dialog.
|
|
2209
|
+
* @method hide() - Closes the dialog.
|
|
2210
|
+
* @method clickHandler() - Handles click events on the dialog.
|
|
2211
|
+
*
|
|
2212
|
+
* @fires {CustomEvent} beforetoggle - Event emitted before the dialog's open state changes.
|
|
2213
|
+
* @fires {CustomEvent} toggle - Event emitted after the dialog's open state changes.
|
|
2214
|
+
*
|
|
2215
|
+
* @extends FluentDialog
|
|
2216
|
+
* @tagname fabric-dialog
|
|
2217
|
+
* @public
|
|
2218
|
+
*/
|
|
2219
|
+
declare class Dialog extends Dialog$1 {
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
/**
|
|
2223
|
+
* @summary A content item for the modal FRE (First Run Experience) wizard.
|
|
2224
|
+
*
|
|
2225
|
+
* Each fre-item is a self-contained step that renders its own hero content,
|
|
2226
|
+
* title, description, and dismiss button. The parent `fabric-modal` assigns
|
|
2227
|
+
* fre-items to a {@link CarouselController} which manages active state and
|
|
2228
|
+
* ARIA linkage. Only the active item is visible.
|
|
2229
|
+
*
|
|
2230
|
+
* @example
|
|
2231
|
+
* ```html
|
|
2232
|
+
* <fabric-modal-fre-item>
|
|
2233
|
+
* <span slot="title">Welcome</span>
|
|
2234
|
+
* <span slot="description">Get started with Fabric.</span>
|
|
2235
|
+
* <img src="hero.png" alt="Welcome illustration" />
|
|
2236
|
+
* </fabric-modal-fre-item>
|
|
2237
|
+
* ```
|
|
2238
|
+
*
|
|
2239
|
+
* @attr {boolean} active - Whether this item is the currently visible step.
|
|
2240
|
+
* @attr {string} label - Accessible label for this step.
|
|
2241
|
+
*
|
|
2242
|
+
* @prop {string} panelId - Unique ID for this panel (set by CarouselController).
|
|
2243
|
+
* @prop {string} tabId - ID of the associated tab (for aria-labelledby, set by CarouselController).
|
|
2244
|
+
*
|
|
2245
|
+
* @slot default - Hero content (image, illustration, or any visual).
|
|
2246
|
+
* @slot title - Title content for this step.
|
|
2247
|
+
* @slot description - Description content for this step.
|
|
2248
|
+
*
|
|
2249
|
+
* @fires dismiss - Fired when the dismiss button is clicked. Bubbles and is composed.
|
|
2250
|
+
*
|
|
2251
|
+
* @extends FASTElement
|
|
2252
|
+
* @tagname fabric-modal-fre-item
|
|
2253
|
+
* @public
|
|
2254
|
+
*/
|
|
2255
|
+
declare class ModalFreItem extends FASTElement implements CarouselManagedItem {
|
|
2256
|
+
/**
|
|
2257
|
+
* Whether this item is the currently visible step.
|
|
2258
|
+
* Managed by the CarouselController.
|
|
2259
|
+
* @public
|
|
2260
|
+
*/
|
|
2261
|
+
active: boolean;
|
|
2262
|
+
/**
|
|
2263
|
+
* Accessible label for this step.
|
|
2264
|
+
* @public
|
|
2265
|
+
*/
|
|
2266
|
+
label?: string;
|
|
2267
|
+
/**
|
|
2268
|
+
* Unique ID for this tabpanel (set by CarouselController).
|
|
2269
|
+
* @internal
|
|
2270
|
+
*/
|
|
2271
|
+
panelId?: string;
|
|
2272
|
+
/**
|
|
2273
|
+
* ID of the associated tab element (for aria-labelledby, set by CarouselController).
|
|
2274
|
+
* @internal
|
|
2275
|
+
*/
|
|
2276
|
+
tabId?: string;
|
|
2277
|
+
/**
|
|
2278
|
+
* Handles the dismiss button click.
|
|
2279
|
+
* Dispatches a bubbling, composed dismiss event.
|
|
2280
|
+
* @internal
|
|
2281
|
+
*/
|
|
2282
|
+
handleDismiss(): void;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
/**
|
|
2286
|
+
* @summary A modal dialog with optional FRE (First Run Experience) multi-step wizard mode.
|
|
2287
|
+
* Uses fabric-dialog internally for native backdrop, focus trapping, and Escape key handling.
|
|
2288
|
+
*
|
|
2289
|
+
* @example Default mode
|
|
2290
|
+
* ```html
|
|
2291
|
+
* <fabric-modal open modal-title="Confirm action">
|
|
2292
|
+
* <h2>Are you sure?</h2>
|
|
2293
|
+
* <p>This action cannot be undone.</p>
|
|
2294
|
+
* </fabric-modal>
|
|
2295
|
+
* ```
|
|
2296
|
+
*
|
|
2297
|
+
* @example FRE mode
|
|
2298
|
+
* ```html
|
|
2299
|
+
* <fabric-modal mode="fre" open modal-title="Welcome">
|
|
2300
|
+
* <fabric-modal-fre-item>
|
|
2301
|
+
* <span slot="title">Step 1</span>
|
|
2302
|
+
* <span slot="description">First step details.</span>
|
|
2303
|
+
* <img src="hero1.png" alt="Step 1" />
|
|
2304
|
+
* </fabric-modal-fre-item>
|
|
2305
|
+
* <fabric-modal-fre-item>
|
|
2306
|
+
* <span slot="title">Step 2</span>
|
|
2307
|
+
* <span slot="description">Second step details.</span>
|
|
2308
|
+
* <img src="hero2.png" alt="Step 2" />
|
|
2309
|
+
* </fabric-modal-fre-item>
|
|
2310
|
+
* </fabric-modal>
|
|
2311
|
+
* ```
|
|
2312
|
+
*
|
|
2313
|
+
* @attr {string} mode - Modal mode: "default" or "fre".
|
|
2314
|
+
* @attr {boolean} open - Whether the modal is visible.
|
|
2315
|
+
* @attr {string} modal-title - Accessible label for the modal.
|
|
2316
|
+
* @attr {number} current-step - Active step index (FRE mode).
|
|
2317
|
+
* @attr {string} primary-label - Label for the primary button in default mode (defaults to "OK").
|
|
2318
|
+
* @attr {string} next-label - Label for the "Next" button in FRE mode (defaults to "Next").
|
|
2319
|
+
* @attr {string} done-label - Label for the "Done" button in FRE mode (defaults to "Done").
|
|
2320
|
+
* @attr {string} try-later-label - Label for the secondary button on FRE first step (defaults to "Try Later").
|
|
2321
|
+
* @attr {string} back-label - Label for the secondary "Back" button in FRE mode (defaults to "Back").
|
|
2322
|
+
* @attr {string} dismiss-label - Label for the secondary "Dismiss" button on FRE last step (defaults to "Dismiss").
|
|
2323
|
+
*
|
|
2324
|
+
* @prop {ModalMode} mode - Modal mode.
|
|
2325
|
+
* @prop {boolean} open - Whether the modal is visible.
|
|
2326
|
+
* @prop {string} modalTitle - Accessible label.
|
|
2327
|
+
* @prop {number} currentStep - Active step index (FRE mode).
|
|
2328
|
+
* @prop {number} totalSteps - Total step count (FRE mode, readonly).
|
|
2329
|
+
*
|
|
2330
|
+
* @slot default - Modal content. In FRE mode, accepts fabric-modal-fre-item elements.
|
|
2331
|
+
*
|
|
2332
|
+
* @fires open-change - Fired when open state changes.
|
|
2333
|
+
* @fires dismiss - Fired when the modal is dismissed. Detail includes `{ complete: boolean }` indicating if dismissal was due to FRE wizard completion.
|
|
2334
|
+
* @fires step-change - Fired when the active step changes (FRE mode).
|
|
2335
|
+
*
|
|
2336
|
+
* @extends FASTElement
|
|
2337
|
+
* @tagname fabric-modal
|
|
2338
|
+
* @public
|
|
2339
|
+
*/
|
|
2340
|
+
declare class Modal extends FASTElement implements Subscriber {
|
|
2341
|
+
/**
|
|
2342
|
+
* Carousel controller for FRE mode.
|
|
2343
|
+
* @internal
|
|
2344
|
+
*/
|
|
2345
|
+
readonly carouselController: CarouselController<CarouselItem>;
|
|
2346
|
+
/**
|
|
2347
|
+
* Modal mode: "default" for simple modal, "fre" for multi-step wizard.
|
|
2348
|
+
* @public
|
|
2349
|
+
*/
|
|
2350
|
+
mode: ModalMode;
|
|
2351
|
+
/**
|
|
2352
|
+
* Whether the modal is visible.
|
|
2353
|
+
* @public
|
|
2354
|
+
*/
|
|
2355
|
+
open: boolean;
|
|
2356
|
+
/**
|
|
2357
|
+
* Accessible label for the modal.
|
|
2358
|
+
* @public
|
|
2359
|
+
*/
|
|
2360
|
+
modalTitle: string;
|
|
2361
|
+
/**
|
|
2362
|
+
* Active step index. Only meaningful in FRE mode.
|
|
2363
|
+
* @public
|
|
2364
|
+
*/
|
|
2365
|
+
currentStep: number;
|
|
2366
|
+
/**
|
|
2367
|
+
* Label for the primary button in default mode.
|
|
2368
|
+
* @public
|
|
2369
|
+
*/
|
|
2370
|
+
primaryLabel: string;
|
|
2371
|
+
/**
|
|
2372
|
+
* Label for the "Next" button in FRE mode.
|
|
2373
|
+
* @public
|
|
2374
|
+
*/
|
|
2375
|
+
nextLabel: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* Label for the "Done" button in FRE mode.
|
|
2378
|
+
* @public
|
|
2379
|
+
*/
|
|
2380
|
+
doneLabel: string;
|
|
2381
|
+
/**
|
|
2382
|
+
* Label for the secondary button on FRE first step.
|
|
2383
|
+
* @public
|
|
2384
|
+
*/
|
|
2385
|
+
tryLaterLabel: string;
|
|
2386
|
+
/**
|
|
2387
|
+
* Label for the secondary "Back" button in FRE mode.
|
|
2388
|
+
* @public
|
|
2389
|
+
*/
|
|
2390
|
+
backLabel: string;
|
|
2391
|
+
/**
|
|
2392
|
+
* Label for the secondary "Dismiss" button on FRE last step.
|
|
2393
|
+
* @public
|
|
2394
|
+
*/
|
|
2395
|
+
dismissLabel: string;
|
|
2396
|
+
/**
|
|
2397
|
+
* Reference to the inner fabric-dialog element (set via template ref).
|
|
2398
|
+
* @internal
|
|
2399
|
+
*/
|
|
2400
|
+
dialog: Dialog;
|
|
2401
|
+
/**
|
|
2402
|
+
* Slotted items (used in FRE mode to track fre-items, or carousel-items in default).
|
|
2403
|
+
* @internal
|
|
2404
|
+
*/
|
|
2405
|
+
slottedContent: HTMLElement[];
|
|
2406
|
+
/**
|
|
2407
|
+
* FRE items parsed from slotted content.
|
|
2408
|
+
* @internal
|
|
2409
|
+
*/
|
|
2410
|
+
freItems: ModalFreItem[];
|
|
2411
|
+
/**
|
|
2412
|
+
* Total step count (FRE mode).
|
|
2413
|
+
* @public
|
|
2414
|
+
* @readonly
|
|
2415
|
+
*/
|
|
2416
|
+
get totalSteps(): number;
|
|
2417
|
+
/**
|
|
2418
|
+
* Callback when open changes.
|
|
2419
|
+
* Delegates to the inner fabric-dialog's show/hide.
|
|
2420
|
+
* @internal
|
|
2421
|
+
*/
|
|
2422
|
+
openChanged(_oldValue: boolean, newValue: boolean): void;
|
|
2423
|
+
/**
|
|
2424
|
+
* Callback when current-step attribute changes.
|
|
2425
|
+
* Syncs the controller to the attribute value.
|
|
2426
|
+
* @internal
|
|
2427
|
+
*/
|
|
2428
|
+
currentStepChanged(_oldValue: string | number, newValue: string | number): void;
|
|
2429
|
+
/**
|
|
2430
|
+
* Callback when slotted content changes.
|
|
2431
|
+
* In FRE mode, extracts fre-items and assigns them directly to the carousel controller.
|
|
2432
|
+
* @internal
|
|
2433
|
+
*/
|
|
2434
|
+
slottedContentChanged(): void;
|
|
2435
|
+
/**
|
|
2436
|
+
* Handles the toggle event from the inner fabric-dialog.
|
|
2437
|
+
* Syncs open state when the dialog is closed externally (Escape key, backdrop click).
|
|
2438
|
+
* @internal
|
|
2439
|
+
*/
|
|
2440
|
+
handleDialogToggle(event: CustomEvent): void;
|
|
2441
|
+
/**
|
|
2442
|
+
* Handles the primary button action.
|
|
2443
|
+
* In default mode: dismisses. In FRE mode: advances step or completes.
|
|
2444
|
+
* @internal
|
|
2445
|
+
*/
|
|
2446
|
+
handlePrimaryAction(): void;
|
|
2447
|
+
/**
|
|
2448
|
+
* Handles the secondary button action.
|
|
2449
|
+
* In FRE mode: "Try Later" / "Back" / "Dismiss" depending on step.
|
|
2450
|
+
* @internal
|
|
2451
|
+
*/
|
|
2452
|
+
handleSecondaryAction(): void;
|
|
2453
|
+
/**
|
|
2454
|
+
* Handles dismiss (close button, Escape, backdrop click, or FRE completion).
|
|
2455
|
+
* @param complete - Whether the dismiss was triggered by completing the FRE wizard.
|
|
2456
|
+
* @internal
|
|
2457
|
+
*/
|
|
2458
|
+
handleDismiss(complete?: boolean): void;
|
|
2459
|
+
/**
|
|
2460
|
+
* Gets the label for the secondary button based on current FRE step.
|
|
2461
|
+
* @internal
|
|
2462
|
+
*/
|
|
2463
|
+
get secondaryButtonLabel(): string;
|
|
2464
|
+
/**
|
|
2465
|
+
* Gets the label for the primary button.
|
|
2466
|
+
* @internal
|
|
2467
|
+
*/
|
|
2468
|
+
get primaryButtonLabel(): string;
|
|
2469
|
+
/**
|
|
2470
|
+
* Subscriber implementation for CarouselController changes.
|
|
2471
|
+
* Syncs currentStep attribute and emits step-change event.
|
|
2472
|
+
* @internal
|
|
2473
|
+
*/
|
|
2474
|
+
handleChange(source: CarouselController, propertyName: string): void;
|
|
2475
|
+
connectedCallback(): void;
|
|
2476
|
+
disconnectedCallback(): void;
|
|
2477
|
+
/**
|
|
2478
|
+
* Emits open-change event.
|
|
2479
|
+
* @internal
|
|
2480
|
+
*/
|
|
2481
|
+
private emitOpenChange;
|
|
2482
|
+
/**
|
|
2483
|
+
* Emits step-change event.
|
|
2484
|
+
* @internal
|
|
2485
|
+
*/
|
|
2486
|
+
private emitStepChange;
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* Defines a custom element registration entry that can be composed with other
|
|
2491
|
+
* element definitions.
|
|
2492
|
+
*
|
|
2493
|
+
* @public
|
|
2494
|
+
*/
|
|
2495
|
+
interface FabricElementDefinition {
|
|
2496
|
+
/**
|
|
2497
|
+
* The custom element tag name associated with the definition.
|
|
2498
|
+
*/
|
|
2499
|
+
readonly name: string;
|
|
2500
|
+
/**
|
|
2501
|
+
* Registers the element definition with a custom element registry.
|
|
2502
|
+
*
|
|
2503
|
+
* @param registry - The registry to define the element in. Defaults to the
|
|
2504
|
+
* global custom element registry.
|
|
2505
|
+
*/
|
|
2506
|
+
define(registry?: CustomElementRegistry): void;
|
|
2507
|
+
}
|
|
2508
|
+
/**
|
|
2509
|
+
* The subset of FAST element definitions required by Fabric definition helpers.
|
|
2510
|
+
*
|
|
2511
|
+
* @internal
|
|
2512
|
+
*/
|
|
2513
|
+
interface FASTElementDefinitionLike {
|
|
2514
|
+
readonly name: string;
|
|
2515
|
+
define(registry?: CustomElementRegistry): void;
|
|
2516
|
+
}
|
|
2517
|
+
/**
|
|
2518
|
+
* Validates a FAST element definition and returns it as a Fabric element
|
|
2519
|
+
* definition.
|
|
2520
|
+
*
|
|
2521
|
+
* @param fastDefinition - The FAST definition to validate.
|
|
2522
|
+
* @returns The FAST definition as a Fabric element definition.
|
|
2523
|
+
*
|
|
2524
|
+
* @public
|
|
2525
|
+
*/
|
|
2526
|
+
declare function fromFAST(fastDefinition: FASTElementDefinitionLike): FabricElementDefinition;
|
|
2527
|
+
/**
|
|
2528
|
+
* Creates a Fabric element definition for a primary element and any
|
|
2529
|
+
* sub-element dependencies it requires.
|
|
2530
|
+
*
|
|
2531
|
+
* @param primaryDefinition - The primary element definition to expose.
|
|
2532
|
+
* @param dependencies - The dependency definitions to register before the
|
|
2533
|
+
* primary definition.
|
|
2534
|
+
* @returns A Fabric element definition that defines each dependency and the
|
|
2535
|
+
* primary definition with the same custom element registry.
|
|
2536
|
+
*
|
|
2537
|
+
* @public
|
|
2538
|
+
*/
|
|
2539
|
+
declare function composeDefinitions(primaryDefinition: FabricElementDefinition, ...dependencies: FabricElementDefinition[]): FabricElementDefinition;
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* Composed element definition for `<fabric-modal>`, and all direct dependencies.
|
|
2543
|
+
*
|
|
2544
|
+
* @public
|
|
2545
|
+
* @remarks
|
|
2546
|
+
* HTML Element: `<fabric-modal>`
|
|
2547
|
+
*/
|
|
2548
|
+
declare const definition$12: FabricElementDefinition;
|
|
2549
|
+
|
|
2550
|
+
/**
|
|
2551
|
+
* Composed element definition for `<fabric-modal-fre-item>`, registering the
|
|
2552
|
+
* `fabric-button` dependency before the element itself.
|
|
2553
|
+
*
|
|
2554
|
+
* @public
|
|
2555
|
+
* @remarks
|
|
2556
|
+
* HTML Element: `<fabric-modal-fre-item>`
|
|
2557
|
+
*/
|
|
2558
|
+
declare const modalFreItemDefinition: FabricElementDefinition;
|
|
2559
|
+
|
|
2560
|
+
/**
|
|
2561
|
+
* Event names for the Modal component.
|
|
2562
|
+
* @public
|
|
2563
|
+
*/
|
|
2564
|
+
declare const ModalEventNames: {
|
|
2565
|
+
readonly openChange: "open-change";
|
|
2566
|
+
readonly dismiss: "dismiss";
|
|
2567
|
+
readonly stepChange: "step-change";
|
|
2568
|
+
};
|
|
2569
|
+
/**
|
|
2570
|
+
* Modal event type.
|
|
2571
|
+
* @public
|
|
2572
|
+
*/
|
|
2573
|
+
type ModalEventName = ValuesOf<typeof ModalEventNames>;
|
|
2574
|
+
/**
|
|
2575
|
+
* Detail payload for the dismiss event.
|
|
2022
2576
|
* @public
|
|
2023
|
-
* @remarks
|
|
2024
|
-
* HTML Element: <fabric-filter-pill>
|
|
2025
2577
|
*/
|
|
2026
|
-
|
|
2578
|
+
interface ModalDismissEventDetail {
|
|
2579
|
+
/**
|
|
2580
|
+
* Whether the dismiss was triggered by completing the FRE wizard.
|
|
2581
|
+
*/
|
|
2582
|
+
complete: boolean;
|
|
2583
|
+
}
|
|
2027
2584
|
|
|
2028
2585
|
/**
|
|
2029
2586
|
* Appearances for {@link CompoundButton}
|
|
@@ -2203,7 +2760,7 @@ declare class CompoundButton extends BaseButton {
|
|
|
2203
2760
|
*
|
|
2204
2761
|
* @public
|
|
2205
2762
|
*/
|
|
2206
|
-
declare const definition$
|
|
2763
|
+
declare const definition$11: _microsoft_fast_element.FASTElementDefinition<typeof CompoundButton>;
|
|
2207
2764
|
|
|
2208
2765
|
/**
|
|
2209
2766
|
* LoadingButton
|
|
@@ -2251,58 +2808,6 @@ declare class LoadingButton extends Button$1 {
|
|
|
2251
2808
|
connectedCallback(): void;
|
|
2252
2809
|
}
|
|
2253
2810
|
|
|
2254
|
-
/**
|
|
2255
|
-
* Defines a custom element registration entry that can be composed with other
|
|
2256
|
-
* element definitions.
|
|
2257
|
-
*
|
|
2258
|
-
* @public
|
|
2259
|
-
*/
|
|
2260
|
-
interface FabricElementDefinition {
|
|
2261
|
-
/**
|
|
2262
|
-
* The custom element tag name associated with the definition.
|
|
2263
|
-
*/
|
|
2264
|
-
readonly name: string;
|
|
2265
|
-
/**
|
|
2266
|
-
* Registers the element definition with a custom element registry.
|
|
2267
|
-
*
|
|
2268
|
-
* @param registry - The registry to define the element in. Defaults to the
|
|
2269
|
-
* global custom element registry.
|
|
2270
|
-
*/
|
|
2271
|
-
define(registry?: CustomElementRegistry): void;
|
|
2272
|
-
}
|
|
2273
|
-
/**
|
|
2274
|
-
* The subset of FAST element definitions required by Fabric definition helpers.
|
|
2275
|
-
*
|
|
2276
|
-
* @internal
|
|
2277
|
-
*/
|
|
2278
|
-
interface FASTElementDefinitionLike {
|
|
2279
|
-
readonly name: string;
|
|
2280
|
-
define(registry?: CustomElementRegistry): void;
|
|
2281
|
-
}
|
|
2282
|
-
/**
|
|
2283
|
-
* Validates a FAST element definition and returns it as a Fabric element
|
|
2284
|
-
* definition.
|
|
2285
|
-
*
|
|
2286
|
-
* @param fastDefinition - The FAST definition to validate.
|
|
2287
|
-
* @returns The FAST definition as a Fabric element definition.
|
|
2288
|
-
*
|
|
2289
|
-
* @public
|
|
2290
|
-
*/
|
|
2291
|
-
declare function fromFAST(fastDefinition: FASTElementDefinitionLike): FabricElementDefinition;
|
|
2292
|
-
/**
|
|
2293
|
-
* Creates a Fabric element definition for a primary element and any
|
|
2294
|
-
* sub-element dependencies it requires.
|
|
2295
|
-
*
|
|
2296
|
-
* @param primaryDefinition - The primary element definition to expose.
|
|
2297
|
-
* @param dependencies - The dependency definitions to register before the
|
|
2298
|
-
* primary definition.
|
|
2299
|
-
* @returns A Fabric element definition that defines each dependency and the
|
|
2300
|
-
* primary definition with the same custom element registry.
|
|
2301
|
-
*
|
|
2302
|
-
* @public
|
|
2303
|
-
*/
|
|
2304
|
-
declare function composeDefinitions(primaryDefinition: FabricElementDefinition, ...dependencies: FabricElementDefinition[]): FabricElementDefinition;
|
|
2305
|
-
|
|
2306
2811
|
/**
|
|
2307
2812
|
* Composed element definition for `<fabric-loading-button>`, registering the
|
|
2308
2813
|
* `fabric-spinner` dependency before the element itself.
|
|
@@ -2311,7 +2816,7 @@ declare function composeDefinitions(primaryDefinition: FabricElementDefinition,
|
|
|
2311
2816
|
* @remarks
|
|
2312
2817
|
* HTML Element: `<fabric-loading-button>`
|
|
2313
2818
|
*/
|
|
2314
|
-
declare const definition$
|
|
2819
|
+
declare const definition$10: FabricElementDefinition;
|
|
2315
2820
|
|
|
2316
2821
|
/**
|
|
2317
2822
|
* MultiView
|
|
@@ -2359,7 +2864,7 @@ declare class MultiView extends FASTElement {
|
|
|
2359
2864
|
* @remarks
|
|
2360
2865
|
* HTML Element: <fabric-multi-view>
|
|
2361
2866
|
*/
|
|
2362
|
-
declare const definition
|
|
2867
|
+
declare const definition$$: _microsoft_fast_element.FASTElementDefinition<typeof MultiView>;
|
|
2363
2868
|
|
|
2364
2869
|
/**
|
|
2365
2870
|
* MultiView event names
|
|
@@ -2408,7 +2913,7 @@ declare class MultiViewController extends FASTElement {
|
|
|
2408
2913
|
* @remarks
|
|
2409
2914
|
* HTML Element: <fluent-multi-view-controller>
|
|
2410
2915
|
*/
|
|
2411
|
-
declare const definition$
|
|
2916
|
+
declare const definition$_: _microsoft_fast_element.FASTElementDefinition<typeof MultiViewController>;
|
|
2412
2917
|
|
|
2413
2918
|
/**
|
|
2414
2919
|
* MultiViewGroup
|
|
@@ -2724,7 +3229,7 @@ declare class MultiViewGroup extends FASTElement {
|
|
|
2724
3229
|
* @remarks
|
|
2725
3230
|
* HTML Element: <fluent-multi-view-group>
|
|
2726
3231
|
*/
|
|
2727
|
-
declare const definition$
|
|
3232
|
+
declare const definition$Z: _microsoft_fast_element.FASTElementDefinition<typeof MultiViewGroup>;
|
|
2728
3233
|
|
|
2729
3234
|
/**
|
|
2730
3235
|
* MultiViewGroupPosition constants
|
|
@@ -2972,7 +3477,7 @@ declare class Overflow extends FASTElement {
|
|
|
2972
3477
|
* Styles for the {@link Overflow} component.
|
|
2973
3478
|
* @public
|
|
2974
3479
|
*/
|
|
2975
|
-
declare const styles$
|
|
3480
|
+
declare const styles$j: _microsoft_fast_element.ElementStyles;
|
|
2976
3481
|
|
|
2977
3482
|
/**
|
|
2978
3483
|
* The Overflow component definition.
|
|
@@ -2980,7 +3485,7 @@ declare const styles$g: _microsoft_fast_element.ElementStyles;
|
|
|
2980
3485
|
* @remarks
|
|
2981
3486
|
* HTML Element: <fabric-overflow>
|
|
2982
3487
|
*/
|
|
2983
|
-
declare const definition$
|
|
3488
|
+
declare const definition$Y: _microsoft_fast_element.FASTElementDefinition<typeof Overflow>;
|
|
2984
3489
|
|
|
2985
3490
|
/** Event names for Overflow. */
|
|
2986
3491
|
declare const OverflowEventNames: {
|
|
@@ -2999,7 +3504,7 @@ interface OverflowChangeEventDetail {
|
|
|
2999
3504
|
* Styles for the {@link OverflowItem} component.
|
|
3000
3505
|
* @public
|
|
3001
3506
|
*/
|
|
3002
|
-
declare const styles$
|
|
3507
|
+
declare const styles$i: _microsoft_fast_element.ElementStyles;
|
|
3003
3508
|
|
|
3004
3509
|
/**
|
|
3005
3510
|
* The OverflowItem component definition.
|
|
@@ -3007,13 +3512,13 @@ declare const styles$f: _microsoft_fast_element.ElementStyles;
|
|
|
3007
3512
|
* @remarks
|
|
3008
3513
|
* HTML Element: <fabric-overflow-item>
|
|
3009
3514
|
*/
|
|
3010
|
-
declare const definition$
|
|
3515
|
+
declare const definition$X: _microsoft_fast_element.FASTElementDefinition<typeof OverflowItem>;
|
|
3011
3516
|
|
|
3012
3517
|
/**
|
|
3013
3518
|
* Styles for the {@link OverflowDivider} component.
|
|
3014
3519
|
* @public
|
|
3015
3520
|
*/
|
|
3016
|
-
declare const styles$
|
|
3521
|
+
declare const styles$h: _microsoft_fast_element.ElementStyles;
|
|
3017
3522
|
|
|
3018
3523
|
/**
|
|
3019
3524
|
* The OverflowDivider component definition.
|
|
@@ -3021,7 +3526,7 @@ declare const styles$e: _microsoft_fast_element.ElementStyles;
|
|
|
3021
3526
|
* @remarks
|
|
3022
3527
|
* HTML Element: <fabric-overflow-divider>
|
|
3023
3528
|
*/
|
|
3024
|
-
declare const definition$
|
|
3529
|
+
declare const definition$W: _microsoft_fast_element.FASTElementDefinition<typeof OverflowDivider>;
|
|
3025
3530
|
|
|
3026
3531
|
/**
|
|
3027
3532
|
* Core types for Angular CDK-inspired positioning engine.
|
|
@@ -3525,11 +4030,11 @@ declare class Popover extends FASTElement {
|
|
|
3525
4030
|
connectedCallback(): void;
|
|
3526
4031
|
}
|
|
3527
4032
|
|
|
3528
|
-
declare const definition$
|
|
4033
|
+
declare const definition$V: _microsoft_fast_element.FASTElementDefinition<typeof Popover>;
|
|
3529
4034
|
|
|
3530
|
-
declare const template$
|
|
4035
|
+
declare const template$d: ElementViewTemplate<Popover>;
|
|
3531
4036
|
|
|
3532
|
-
declare const styles$
|
|
4037
|
+
declare const styles$g: _microsoft_fast_element.ElementStyles;
|
|
3533
4038
|
|
|
3534
4039
|
/**
|
|
3535
4040
|
* Supported visual variants for `fabric-pagination`.
|
|
@@ -3786,7 +4291,7 @@ declare class Pagination extends FASTElement {
|
|
|
3786
4291
|
/**
|
|
3787
4292
|
* FAST element definition for `fabric-pagination`.
|
|
3788
4293
|
*/
|
|
3789
|
-
declare const definition$
|
|
4294
|
+
declare const definition$U: _microsoft_fast_element.FASTElementDefinition<typeof Pagination>;
|
|
3790
4295
|
|
|
3791
4296
|
/**
|
|
3792
4297
|
* Registers the pagination element and all of its internal dependencies
|
|
@@ -4014,7 +4519,7 @@ declare class SvgIcon extends FASTElement {
|
|
|
4014
4519
|
* @remarks
|
|
4015
4520
|
* HTML Element: <fabric-svg-icon>
|
|
4016
4521
|
*/
|
|
4017
|
-
declare const definition$
|
|
4522
|
+
declare const definition$T: _microsoft_fast_element.FASTElementDefinition<typeof SvgIcon>;
|
|
4018
4523
|
|
|
4019
4524
|
type TableCellRenderFunction = (data: unknown) => string | HTMLElement | Promise<string | HTMLElement>;
|
|
4020
4525
|
type TableColumnData = {
|
|
@@ -4301,11 +4806,11 @@ declare class Table extends FASTElement {
|
|
|
4301
4806
|
* @remarks
|
|
4302
4807
|
* HTML Element: `<fabric-table>`
|
|
4303
4808
|
*/
|
|
4304
|
-
declare const definition$
|
|
4809
|
+
declare const definition$S: FabricElementDefinition;
|
|
4305
4810
|
|
|
4306
|
-
declare const template$
|
|
4811
|
+
declare const template$c: ElementViewTemplate<Table>;
|
|
4307
4812
|
|
|
4308
|
-
declare const styles$
|
|
4813
|
+
declare const styles$f: _microsoft_fast_element.ElementStyles;
|
|
4309
4814
|
|
|
4310
4815
|
/**
|
|
4311
4816
|
* Simple Table
|
|
@@ -4359,7 +4864,7 @@ declare class SimpleTable extends FASTElement {
|
|
|
4359
4864
|
* @remarks
|
|
4360
4865
|
* HTML Element: <fabric-simple-table>
|
|
4361
4866
|
*/
|
|
4362
|
-
declare const definition$
|
|
4867
|
+
declare const definition$R: _microsoft_fast_element.FASTElementDefinition<typeof SimpleTable>;
|
|
4363
4868
|
|
|
4364
4869
|
/**
|
|
4365
4870
|
* TableCell
|
|
@@ -4426,11 +4931,11 @@ type TableCellSize = ValuesOf<typeof TableCellSizes>;
|
|
|
4426
4931
|
* @remarks
|
|
4427
4932
|
* HTML Element: <fabric-table-cell>
|
|
4428
4933
|
*/
|
|
4429
|
-
declare const definition$
|
|
4934
|
+
declare const definition$Q: _microsoft_fast_element.FASTElementDefinition<typeof TableCell>;
|
|
4430
4935
|
|
|
4431
|
-
declare const styles$
|
|
4936
|
+
declare const styles$e: _microsoft_fast_element.ElementStyles;
|
|
4432
4937
|
|
|
4433
|
-
declare const template$
|
|
4938
|
+
declare const template$b: ElementViewTemplate<TableCell>;
|
|
4434
4939
|
|
|
4435
4940
|
/** Size values for {@link Tag}. */
|
|
4436
4941
|
declare const TagSizes: {
|
|
@@ -4700,7 +5205,7 @@ declare class Tag extends FASTElement {
|
|
|
4700
5205
|
* @remarks
|
|
4701
5206
|
* HTML Element: `<fabric-tag>`
|
|
4702
5207
|
*/
|
|
4703
|
-
declare const definition$
|
|
5208
|
+
declare const definition$P: FabricElementDefinition;
|
|
4704
5209
|
|
|
4705
5210
|
/**
|
|
4706
5211
|
* The size variations for the teaching bubble component
|
|
@@ -5002,7 +5507,7 @@ declare class TeachingBubble extends FASTElement {
|
|
|
5002
5507
|
* @remarks
|
|
5003
5508
|
* HTML Element: <fabric-teaching-bubble>
|
|
5004
5509
|
*/
|
|
5005
|
-
declare const definition$
|
|
5510
|
+
declare const definition$O: _microsoft_fast_element.FASTElementDefinition<typeof TeachingBubble>;
|
|
5006
5511
|
|
|
5007
5512
|
/**
|
|
5008
5513
|
* The state variations for the WizardStep component
|
|
@@ -5689,7 +6194,7 @@ declare class Wizard extends FASTElement {
|
|
|
5689
6194
|
* @remarks
|
|
5690
6195
|
* HTML Element: <fabric-wizard>
|
|
5691
6196
|
*/
|
|
5692
|
-
declare const definition$
|
|
6197
|
+
declare const definition$N: _microsoft_fast_element.FASTElementDefinition<typeof Wizard>;
|
|
5693
6198
|
|
|
5694
6199
|
declare const WizardEvents: {
|
|
5695
6200
|
readonly wizardChange: "wizard-change";
|
|
@@ -5831,7 +6336,7 @@ declare class WizardPanel extends FASTElement {
|
|
|
5831
6336
|
* @remarks
|
|
5832
6337
|
* HTML Element: <fabric-wizard-panel>
|
|
5833
6338
|
*/
|
|
5834
|
-
declare const definition$
|
|
6339
|
+
declare const definition$M: _microsoft_fast_element.FASTElementDefinition<typeof WizardPanel>;
|
|
5835
6340
|
|
|
5836
6341
|
/**
|
|
5837
6342
|
*
|
|
@@ -5839,7 +6344,7 @@ declare const definition$J: _microsoft_fast_element.FASTElementDefinition<typeof
|
|
|
5839
6344
|
* @remarks
|
|
5840
6345
|
* HTML Element: <fabric-wizard-step>
|
|
5841
6346
|
*/
|
|
5842
|
-
declare const definition$
|
|
6347
|
+
declare const definition$L: _microsoft_fast_element.FASTElementDefinition<typeof WizardStep>;
|
|
5843
6348
|
|
|
5844
6349
|
/**
|
|
5845
6350
|
* AccordionItem
|
|
@@ -5910,7 +6415,7 @@ type AccordionItemMarkerPosition = ValuesOf<typeof AccordionItemMarkerPositions>
|
|
|
5910
6415
|
* @remarks
|
|
5911
6416
|
* HTML Element: <fabric-accordion-item>
|
|
5912
6417
|
*/
|
|
5913
|
-
declare const definition$
|
|
6418
|
+
declare const definition$K: _microsoft_fast_element.FASTElementDefinition<typeof AccordionItem>;
|
|
5914
6419
|
|
|
5915
6420
|
/**
|
|
5916
6421
|
* Accordion
|
|
@@ -5952,7 +6457,7 @@ declare class Accordion extends Accordion$1 {
|
|
|
5952
6457
|
* @remarks
|
|
5953
6458
|
* HTML Element: <fabric-accordion>
|
|
5954
6459
|
*/
|
|
5955
|
-
declare const definition$
|
|
6460
|
+
declare const definition$J: _microsoft_fast_element.FASTElementDefinition<typeof Accordion>;
|
|
5956
6461
|
|
|
5957
6462
|
/** Expand mode values for {@link Accordion}. */
|
|
5958
6463
|
declare const AccordionExpandModes: {
|
|
@@ -6066,7 +6571,7 @@ declare const AnchorTarget: {
|
|
|
6066
6571
|
*
|
|
6067
6572
|
* @public
|
|
6068
6573
|
*/
|
|
6069
|
-
declare const definition$
|
|
6574
|
+
declare const definition$I: _microsoft_fast_element.FASTElementDefinition<typeof Link>;
|
|
6070
6575
|
|
|
6071
6576
|
/**
|
|
6072
6577
|
* Avatar
|
|
@@ -6322,7 +6827,7 @@ declare const AvatarSize: {
|
|
|
6322
6827
|
*
|
|
6323
6828
|
* @public
|
|
6324
6829
|
*/
|
|
6325
|
-
declare const definition$
|
|
6830
|
+
declare const definition$H: _microsoft_fast_element.FASTElementDefinition<typeof Avatar>;
|
|
6326
6831
|
|
|
6327
6832
|
/**
|
|
6328
6833
|
* Badge
|
|
@@ -6435,9 +6940,9 @@ declare const BadgeSize: {
|
|
|
6435
6940
|
*
|
|
6436
6941
|
* @public
|
|
6437
6942
|
*/
|
|
6438
|
-
declare const definition$
|
|
6943
|
+
declare const definition$G: _microsoft_fast_element.FASTElementDefinition<typeof Badge>;
|
|
6439
6944
|
|
|
6440
|
-
declare const styles$
|
|
6945
|
+
declare const styles$d: _microsoft_fast_element.ElementStyles;
|
|
6441
6946
|
|
|
6442
6947
|
/**
|
|
6443
6948
|
*
|
|
@@ -6445,7 +6950,7 @@ declare const styles$a: _microsoft_fast_element.ElementStyles;
|
|
|
6445
6950
|
* @remarks
|
|
6446
6951
|
* HTML Element: <fabric-button>
|
|
6447
6952
|
*/
|
|
6448
|
-
declare const definition$
|
|
6953
|
+
declare const definition$F: _microsoft_fast_element.FASTElementDefinition<typeof Button>;
|
|
6449
6954
|
|
|
6450
6955
|
/**
|
|
6451
6956
|
* Checkbox
|
|
@@ -6512,7 +7017,7 @@ type CheckboxSize = ValuesOf<typeof CheckboxSizes>;
|
|
|
6512
7017
|
*
|
|
6513
7018
|
* @public
|
|
6514
7019
|
*/
|
|
6515
|
-
declare const definition$
|
|
7020
|
+
declare const definition$E: _microsoft_fast_element.FASTElementDefinition<typeof Checkbox>;
|
|
6516
7021
|
|
|
6517
7022
|
/**
|
|
6518
7023
|
* CounterBadge
|
|
@@ -6612,56 +7117,16 @@ type CounterBadgeSize = ValuesOf<typeof CounterBadgeSizes>;
|
|
|
6612
7117
|
*
|
|
6613
7118
|
* @public
|
|
6614
7119
|
*/
|
|
6615
|
-
declare const definition$
|
|
6616
|
-
|
|
6617
|
-
/**
|
|
6618
|
-
* Dialog
|
|
6619
|
-
* @summary A Dialog Custom HTML Element that provides modal, non-modal, and alert dialog types with accessible attributes.
|
|
6620
|
-
*
|
|
6621
|
-
* @example
|
|
6622
|
-
* ```html
|
|
6623
|
-
* <fabric-dialog type="modal" aria-labelledby="dialog-label" aria-describedby="dialog-desc">
|
|
6624
|
-
* <span slot="title">Title</span>
|
|
6625
|
-
* <div>Content of the dialog body</div>
|
|
6626
|
-
* <span slot="action">Action buttons</span>
|
|
6627
|
-
* </fabric-dialog>
|
|
6628
|
-
* ```
|
|
6629
|
-
*
|
|
6630
|
-
* @attr {string} aria-describedby - Identifies the element (or elements) that describes the object.
|
|
6631
|
-
* @attr {string} aria-labelledby - Identifies the element (or elements) that labels the current element.
|
|
6632
|
-
* @attr {DialogType} type - The type of dialog ('modal', 'non-modal', 'alert').
|
|
6633
|
-
*
|
|
6634
|
-
* @prop {HTMLElement} dialog - The internal dialog element reference.
|
|
6635
|
-
* @prop {string} ariaDescribedby - Reflects the 'aria-describedby' attribute to associate the dialog with descriptive text.
|
|
6636
|
-
* @prop {string} ariaLabelledby - Reflects the 'aria-labelledby' attribute to associate the dialog with its label.
|
|
6637
|
-
* @prop {DialogType} type - The type of dialog, which can be 'modal', 'non-modal', or 'alert'.
|
|
6638
|
-
*
|
|
6639
|
-
* @slot - The default slot for dialog content.
|
|
6640
|
-
*
|
|
6641
|
-
* @csspart dialog - The dialog container.
|
|
6642
|
-
*
|
|
6643
|
-
* @method show() - Opens the dialog.
|
|
6644
|
-
* @method hide() - Closes the dialog.
|
|
6645
|
-
* @method clickHandler() - Handles click events on the dialog.
|
|
6646
|
-
*
|
|
6647
|
-
* @fires {CustomEvent} beforetoggle - Event emitted before the dialog's open state changes.
|
|
6648
|
-
* @fires {CustomEvent} toggle - Event emitted after the dialog's open state changes.
|
|
6649
|
-
*
|
|
6650
|
-
* @extends FluentDialog
|
|
6651
|
-
* @tagname fabric-dialog
|
|
6652
|
-
* @public
|
|
6653
|
-
*/
|
|
6654
|
-
declare class Dialog extends Dialog$1 {
|
|
6655
|
-
}
|
|
7120
|
+
declare const definition$D: _microsoft_fast_element.FASTElementDefinition<typeof CounterBadge>;
|
|
6656
7121
|
|
|
6657
|
-
declare const styles$
|
|
7122
|
+
declare const styles$c: _microsoft_fast_element.ElementStyles;
|
|
6658
7123
|
|
|
6659
7124
|
/**
|
|
6660
7125
|
* The Fabric Dialog component.
|
|
6661
7126
|
*
|
|
6662
7127
|
* @public
|
|
6663
7128
|
*/
|
|
6664
|
-
declare const definition$
|
|
7129
|
+
declare const definition$C: _microsoft_fast_element.FASTElementDefinition<typeof Dialog>;
|
|
6665
7130
|
|
|
6666
7131
|
/**
|
|
6667
7132
|
* Dialog modal type
|
|
@@ -6714,7 +7179,7 @@ declare class DialogBody extends DialogBody$1 {
|
|
|
6714
7179
|
*
|
|
6715
7180
|
* @public
|
|
6716
7181
|
*/
|
|
6717
|
-
declare const definition$
|
|
7182
|
+
declare const definition$B: _microsoft_fast_element.FASTElementDefinition<typeof DialogBody>;
|
|
6718
7183
|
|
|
6719
7184
|
/**
|
|
6720
7185
|
* Divider
|
|
@@ -6747,74 +7212,693 @@ declare class Divider extends Divider$1 {
|
|
|
6747
7212
|
}
|
|
6748
7213
|
|
|
6749
7214
|
/**
|
|
6750
|
-
* Align-content values supported by {@link Divider}.
|
|
7215
|
+
* Align-content values supported by {@link Divider}.
|
|
7216
|
+
* @public
|
|
7217
|
+
*/
|
|
7218
|
+
declare const DividerAlignContents: {
|
|
7219
|
+
readonly center: "center";
|
|
7220
|
+
readonly start: "start";
|
|
7221
|
+
readonly end: "end";
|
|
7222
|
+
};
|
|
7223
|
+
/**
|
|
7224
|
+
* Type describing alignment options for {@link Divider}.
|
|
7225
|
+
* @public
|
|
7226
|
+
*/
|
|
7227
|
+
type DividerAlignContent = ValuesOf<typeof DividerAlignContents>;
|
|
7228
|
+
/**
|
|
7229
|
+
* Appearance values supported by {@link Divider}.
|
|
7230
|
+
* @public
|
|
7231
|
+
*/
|
|
7232
|
+
declare const DividerAppearances: {
|
|
7233
|
+
readonly strong: "strong";
|
|
7234
|
+
readonly brand: "brand";
|
|
7235
|
+
readonly subtle: "subtle";
|
|
7236
|
+
};
|
|
7237
|
+
/**
|
|
7238
|
+
* Type describing appearance options for {@link Divider}.
|
|
7239
|
+
* @public
|
|
7240
|
+
*/
|
|
7241
|
+
type DividerAppearance = ValuesOf<typeof DividerAppearances>;
|
|
7242
|
+
/**
|
|
7243
|
+
* Orientation values supported by {@link Divider}.
|
|
7244
|
+
* @public
|
|
7245
|
+
*/
|
|
7246
|
+
declare const DividerOrientations: {
|
|
7247
|
+
readonly horizontal: "horizontal";
|
|
7248
|
+
readonly vertical: "vertical";
|
|
7249
|
+
};
|
|
7250
|
+
/**
|
|
7251
|
+
* Type describing orientation options for {@link Divider}.
|
|
7252
|
+
* @public
|
|
7253
|
+
*/
|
|
7254
|
+
type DividerOrientation = ValuesOf<typeof DividerOrientations>;
|
|
7255
|
+
/**
|
|
7256
|
+
* Role values supported by {@link Divider}.
|
|
7257
|
+
* @public
|
|
7258
|
+
*/
|
|
7259
|
+
declare const DividerRoles: {
|
|
7260
|
+
readonly separator: "separator";
|
|
7261
|
+
readonly presentation: "presentation";
|
|
7262
|
+
};
|
|
7263
|
+
/**
|
|
7264
|
+
* Type describing ARIA roles available to {@link Divider}.
|
|
7265
|
+
* @public
|
|
7266
|
+
*/
|
|
7267
|
+
type DividerRole = ValuesOf<typeof DividerRoles>;
|
|
7268
|
+
|
|
7269
|
+
declare const styles$b: _microsoft_fast_element.ElementStyles;
|
|
7270
|
+
|
|
7271
|
+
/**
|
|
7272
|
+
* Template for the {@link Divider} component.
|
|
7273
|
+
* @public
|
|
7274
|
+
*/
|
|
7275
|
+
declare const template$a: _microsoft_fast_element.ElementViewTemplate<_fluentui_web_components.Divider, any>;
|
|
7276
|
+
|
|
7277
|
+
/**
|
|
7278
|
+
* The Fabric Divider component.
|
|
7279
|
+
*
|
|
7280
|
+
* @public
|
|
7281
|
+
*/
|
|
7282
|
+
declare const definition$A: _microsoft_fast_element.FASTElementDefinition<typeof Divider>;
|
|
7283
|
+
|
|
7284
|
+
/**
|
|
7285
|
+
* Dynamic Tab
|
|
7286
|
+
* @summary A dismissible tab component for use in dynamic tab lists, similar to browser tabs.
|
|
7287
|
+
*
|
|
7288
|
+
* @example
|
|
7289
|
+
* ```html
|
|
7290
|
+
* <fabric-dynamic-tab id="tab-1" selected>
|
|
7291
|
+
* <fabric-svg-icon slot="icon" name="document-20-regular"></fabric-svg-icon>
|
|
7292
|
+
* Document.docx
|
|
7293
|
+
* </fabric-dynamic-tab>
|
|
7294
|
+
* ```
|
|
7295
|
+
*
|
|
7296
|
+
* @attr {boolean} selected - Whether the tab is currently selected.
|
|
7297
|
+
* @attr {boolean} disabled - Whether the tab is disabled.
|
|
7298
|
+
* @attr {boolean} no-dismiss - When present, prevents the tab from being dismissed/closed.
|
|
7299
|
+
* @attr {boolean} no-rename - When present, prevents the tab from being renamed.
|
|
7300
|
+
* @attr {boolean} modified - Whether the tab has unsaved changes (shows indicator instead of dismiss).
|
|
7301
|
+
*
|
|
7302
|
+
* @slot icon - Optional icon displayed before the label (defaults to document icon).
|
|
7303
|
+
* @slot dismiss-icon - Optional custom icon for the dismiss button.
|
|
7304
|
+
* @slot - The tab label text.
|
|
7305
|
+
*
|
|
7306
|
+
* @fires dismiss - Fires when the dismiss button is clicked.
|
|
7307
|
+
* @fires select - Fires when the tab is clicked to select.
|
|
7308
|
+
* @fires rename-request - Fires when rename is requested via F2 key.
|
|
7309
|
+
*
|
|
7310
|
+
* @extends FASTElement
|
|
7311
|
+
* @tagname fabric-dynamic-tab
|
|
7312
|
+
* @public
|
|
7313
|
+
*/
|
|
7314
|
+
declare class DynamicTab extends FASTElement {
|
|
7315
|
+
/**
|
|
7316
|
+
* Static counter for generating unique internal IDs.
|
|
7317
|
+
* @internal
|
|
7318
|
+
*/
|
|
7319
|
+
private static idCounter;
|
|
7320
|
+
/**
|
|
7321
|
+
* Internal unique ID used when no id attribute is provided.
|
|
7322
|
+
* Ensures aria-describedby references don't collide across instances.
|
|
7323
|
+
* @internal
|
|
7324
|
+
*/
|
|
7325
|
+
private readonly internalId;
|
|
7326
|
+
/**
|
|
7327
|
+
* Returns the effective ID for ARIA references.
|
|
7328
|
+
* Uses the consumer-provided id attribute if set, otherwise falls back to internal ID.
|
|
7329
|
+
* @internal
|
|
7330
|
+
*/
|
|
7331
|
+
get effectiveId(): string;
|
|
7332
|
+
/**
|
|
7333
|
+
* Whether the tab is currently selected.
|
|
7334
|
+
* @public
|
|
7335
|
+
* @remarks
|
|
7336
|
+
* HTML Attribute: `selected`
|
|
7337
|
+
*/
|
|
7338
|
+
selected: boolean;
|
|
7339
|
+
/**
|
|
7340
|
+
* Whether the tab is disabled.
|
|
7341
|
+
* @public
|
|
7342
|
+
* @remarks
|
|
7343
|
+
* HTML Attribute: `disabled`
|
|
7344
|
+
*/
|
|
7345
|
+
disabled: boolean;
|
|
7346
|
+
/**
|
|
7347
|
+
* When present, prevents the tab from being dismissed/closed.
|
|
7348
|
+
* @public
|
|
7349
|
+
* @remarks
|
|
7350
|
+
* HTML Attribute: `no-dismiss`
|
|
7351
|
+
*/
|
|
7352
|
+
noDismiss: boolean;
|
|
7353
|
+
/**
|
|
7354
|
+
* When present, prevents the tab from being renamed.
|
|
7355
|
+
* @public
|
|
7356
|
+
* @remarks
|
|
7357
|
+
* HTML Attribute: `no-rename`
|
|
7358
|
+
*/
|
|
7359
|
+
noRename: boolean;
|
|
7360
|
+
/**
|
|
7361
|
+
* Whether the tab has unsaved changes.
|
|
7362
|
+
* When true, shows a modified indicator instead of the dismiss button.
|
|
7363
|
+
* @public
|
|
7364
|
+
* @remarks
|
|
7365
|
+
* HTML Attribute: `modified`
|
|
7366
|
+
*/
|
|
7367
|
+
modified: boolean;
|
|
7368
|
+
/**
|
|
7369
|
+
* Accessible label for the close/dismiss button.
|
|
7370
|
+
* Override for i18n/localization.
|
|
7371
|
+
* @public
|
|
7372
|
+
* @remarks
|
|
7373
|
+
* HTML Attribute: `close-tab-label`
|
|
7374
|
+
*/
|
|
7375
|
+
closeTabLabel: string;
|
|
7376
|
+
/**
|
|
7377
|
+
* Accessible label for the modified indicator.
|
|
7378
|
+
* Override for i18n/localization.
|
|
7379
|
+
* @public
|
|
7380
|
+
* @remarks
|
|
7381
|
+
* HTML Attribute: `modified-label`
|
|
7382
|
+
*/
|
|
7383
|
+
modifiedLabel: string;
|
|
7384
|
+
/**
|
|
7385
|
+
* Accessible hint text for dismissible tabs.
|
|
7386
|
+
* Override for i18n/localization.
|
|
7387
|
+
* @public
|
|
7388
|
+
* @remarks
|
|
7389
|
+
* HTML Attribute: `close-hint-label`
|
|
7390
|
+
*/
|
|
7391
|
+
closeHintLabel: string;
|
|
7392
|
+
/**
|
|
7393
|
+
* Handles click events on the tab.
|
|
7394
|
+
* @internal
|
|
7395
|
+
*/
|
|
7396
|
+
handleClick(_event: MouseEvent): void;
|
|
7397
|
+
/**
|
|
7398
|
+
* Handles keyboard events.
|
|
7399
|
+
* @internal
|
|
7400
|
+
*/
|
|
7401
|
+
handleKeydown(event: KeyboardEvent): boolean;
|
|
7402
|
+
/**
|
|
7403
|
+
* Handles dismiss button click.
|
|
7404
|
+
* @internal
|
|
7405
|
+
*/
|
|
7406
|
+
handleDismissClick(event: MouseEvent): void;
|
|
7407
|
+
/**
|
|
7408
|
+
* Emits the dismiss event.
|
|
7409
|
+
* Can be called programmatically to trigger tab dismissal.
|
|
7410
|
+
* @public
|
|
7411
|
+
*/
|
|
7412
|
+
emitDismiss(): void;
|
|
7413
|
+
/**
|
|
7414
|
+
* Emits the select event.
|
|
7415
|
+
* @internal
|
|
7416
|
+
*/
|
|
7417
|
+
private emitSelect;
|
|
7418
|
+
/**
|
|
7419
|
+
* Emits the rename-request event.
|
|
7420
|
+
* @internal
|
|
7421
|
+
*/
|
|
7422
|
+
private emitRenameRequest;
|
|
7423
|
+
}
|
|
7424
|
+
|
|
7425
|
+
/**
|
|
7426
|
+
* Event names for {@link DynamicTab}.
|
|
6751
7427
|
* @public
|
|
6752
7428
|
*/
|
|
6753
|
-
declare const
|
|
6754
|
-
readonly
|
|
6755
|
-
readonly
|
|
6756
|
-
readonly
|
|
7429
|
+
declare const DynamicTabEventNames: {
|
|
7430
|
+
readonly dismiss: "dismiss";
|
|
7431
|
+
readonly select: "select";
|
|
7432
|
+
readonly "rename-request": "rename-request";
|
|
6757
7433
|
};
|
|
7434
|
+
|
|
6758
7435
|
/**
|
|
6759
|
-
*
|
|
7436
|
+
* The template for the DynamicTab component.
|
|
6760
7437
|
* @public
|
|
6761
7438
|
*/
|
|
6762
|
-
|
|
7439
|
+
declare const template$9: ElementViewTemplate<DynamicTab>;
|
|
7440
|
+
|
|
6763
7441
|
/**
|
|
6764
|
-
*
|
|
7442
|
+
* Styles for the DynamicTab component.
|
|
6765
7443
|
* @public
|
|
6766
7444
|
*/
|
|
6767
|
-
declare const
|
|
6768
|
-
|
|
6769
|
-
readonly brand: "brand";
|
|
6770
|
-
readonly subtle: "subtle";
|
|
6771
|
-
};
|
|
7445
|
+
declare const styles$a: _microsoft_fast_element.ElementStyles;
|
|
7446
|
+
|
|
6772
7447
|
/**
|
|
6773
|
-
*
|
|
7448
|
+
* Composed element definition for `<fabric-dynamic-tab>`, registering the
|
|
7449
|
+
* `fabric-button` dependency before the element itself.
|
|
7450
|
+
*
|
|
6774
7451
|
* @public
|
|
7452
|
+
* @remarks
|
|
7453
|
+
* HTML Element: `<fabric-dynamic-tab>`
|
|
6775
7454
|
*/
|
|
6776
|
-
|
|
7455
|
+
declare const definition$z: FabricElementDefinition;
|
|
7456
|
+
|
|
6777
7457
|
/**
|
|
6778
|
-
*
|
|
7458
|
+
* Dynamic Tab List orientations.
|
|
6779
7459
|
* @public
|
|
6780
7460
|
*/
|
|
6781
|
-
declare const
|
|
7461
|
+
declare const DynamicTabListOrientations: {
|
|
6782
7462
|
readonly horizontal: "horizontal";
|
|
6783
7463
|
readonly vertical: "vertical";
|
|
6784
7464
|
};
|
|
6785
7465
|
/**
|
|
6786
|
-
* Type describing orientation options for {@link
|
|
7466
|
+
* Type describing orientation options for {@link DynamicTabList}.
|
|
6787
7467
|
* @public
|
|
6788
7468
|
*/
|
|
6789
|
-
type
|
|
7469
|
+
type DynamicTabListOrientation = ValuesOf<typeof DynamicTabListOrientations>;
|
|
6790
7470
|
/**
|
|
6791
|
-
*
|
|
7471
|
+
* Event names for {@link DynamicTabList}.
|
|
6792
7472
|
* @public
|
|
6793
7473
|
*/
|
|
6794
|
-
declare const
|
|
6795
|
-
readonly
|
|
6796
|
-
readonly
|
|
7474
|
+
declare const DynamicTabListEventNames: {
|
|
7475
|
+
readonly "tab-dismiss": "tab-dismiss";
|
|
7476
|
+
readonly "tab-select": "tab-select";
|
|
7477
|
+
readonly "context-menu": "context-menu";
|
|
6797
7478
|
};
|
|
7479
|
+
|
|
6798
7480
|
/**
|
|
6799
|
-
*
|
|
7481
|
+
* Dynamic Tab List
|
|
7482
|
+
* @summary A structural container for dynamic tabs with public methods for tab management.
|
|
7483
|
+
*
|
|
7484
|
+
* @remarks
|
|
7485
|
+
* This component provides structure, emits events, and offers public helper methods
|
|
7486
|
+
* for common tab operations (close, closeOthers, closeToRight, etc.).
|
|
7487
|
+
* Context menus should be implemented by the consumer using the native Popover API,
|
|
7488
|
+
* listening to the `context-menu` event for positioning coordinates.
|
|
7489
|
+
*
|
|
7490
|
+
* @example
|
|
7491
|
+
* ```html
|
|
7492
|
+
* <fabric-dynamic-tab-list activeid="tab-1" show-managed-tabs>
|
|
7493
|
+
* <fabric-dynamic-tab id="tab-1" selected>Document.docx</fabric-dynamic-tab>
|
|
7494
|
+
* <fabric-dynamic-tab id="tab-2">Photo.png</fabric-dynamic-tab>
|
|
7495
|
+
* <button slot="actions">+</button>
|
|
7496
|
+
* <button slot="manage-tabs">☰</button>
|
|
7497
|
+
* </fabric-dynamic-tab-list>
|
|
7498
|
+
* ```
|
|
7499
|
+
*
|
|
7500
|
+
* @attr {string} activeid - The id of the currently active/selected tab.
|
|
7501
|
+
* @attr {DynamicTabListOrientation} orientation - The layout orientation.
|
|
7502
|
+
* @attr {boolean} show-managed-tabs - When true, renders built-in manage tabs menu.
|
|
7503
|
+
* @attr {string} close-unmodified-label - Label for "Close unmodified tabs" menu item (i18n).
|
|
7504
|
+
* @attr {string} close-all-label - Label for "Close all tabs" menu item (i18n).
|
|
7505
|
+
*
|
|
7506
|
+
* @slot - Container for fabric-dynamic-tab elements.
|
|
7507
|
+
* @slot actions - Optional action buttons between tabs and manage-tabs button.
|
|
7508
|
+
* @slot manage-tabs - Trigger button for manage tabs menu (used when show-managed-tabs is true).
|
|
7509
|
+
*
|
|
7510
|
+
* @csspart tabs-container - The scrollable container for tab elements.
|
|
7511
|
+
* @csspart actions-container - The container for action buttons and manage-tabs.
|
|
7512
|
+
*
|
|
7513
|
+
* @fires tab-dismiss - Fires when a tab's dismiss button is clicked or closeTab() is called.
|
|
7514
|
+
* @fires tab-select - Fires when a tab is selected.
|
|
7515
|
+
* @fires context-menu - Fires when a tab is right-clicked. Detail includes { id, clientX, clientY }.
|
|
7516
|
+
*
|
|
7517
|
+
* @extends FASTElement
|
|
7518
|
+
* @tagname fabric-dynamic-tab-list
|
|
6800
7519
|
* @public
|
|
6801
7520
|
*/
|
|
6802
|
-
|
|
7521
|
+
declare class DynamicTabList extends FASTElement {
|
|
7522
|
+
/**
|
|
7523
|
+
* The id of the currently active tab.
|
|
7524
|
+
* @public
|
|
7525
|
+
* @remarks
|
|
7526
|
+
* HTML Attribute: `activeid`
|
|
7527
|
+
*/
|
|
7528
|
+
activeid?: string;
|
|
7529
|
+
/**
|
|
7530
|
+
* The layout orientation of the tab list.
|
|
7531
|
+
* @public
|
|
7532
|
+
* @remarks
|
|
7533
|
+
* HTML Attribute: `orientation`
|
|
7534
|
+
*/
|
|
7535
|
+
orientation: DynamicTabListOrientation;
|
|
7536
|
+
/**
|
|
7537
|
+
* When true, renders a built-in manage tabs menu with "Close unmodified tabs",
|
|
7538
|
+
* "Close all tabs" actions, and a list of all open tabs.
|
|
7539
|
+
* @public
|
|
7540
|
+
* @remarks
|
|
7541
|
+
* HTML Attribute: `show-managed-tabs`
|
|
7542
|
+
*/
|
|
7543
|
+
showManagedTabs: boolean;
|
|
7544
|
+
/**
|
|
7545
|
+
* Label for the "Close unmodified tabs" menu item.
|
|
7546
|
+
* Override for i18n/localization.
|
|
7547
|
+
* @public
|
|
7548
|
+
* @remarks
|
|
7549
|
+
* HTML Attribute: `close-unmodified-label`
|
|
7550
|
+
*/
|
|
7551
|
+
closeUnmodifiedLabel: string;
|
|
7552
|
+
/**
|
|
7553
|
+
* Label for the "Close all tabs" menu item.
|
|
7554
|
+
* Override for i18n/localization.
|
|
7555
|
+
* @public
|
|
7556
|
+
* @remarks
|
|
7557
|
+
* HTML Attribute: `close-all-label`
|
|
7558
|
+
*/
|
|
7559
|
+
closeAllLabel: string;
|
|
7560
|
+
/**
|
|
7561
|
+
* Label for the manage tabs button (accessibility).
|
|
7562
|
+
* Override for i18n/localization.
|
|
7563
|
+
* @public
|
|
7564
|
+
* @remarks
|
|
7565
|
+
* HTML Attribute: `manage-tabs-label`
|
|
7566
|
+
*/
|
|
7567
|
+
manageTabsLabel: string;
|
|
7568
|
+
/**
|
|
7569
|
+
* The slotted tab elements.
|
|
7570
|
+
* Exposed as public so consumers can access the tab list for their menu rendering.
|
|
7571
|
+
* @public
|
|
7572
|
+
*/
|
|
7573
|
+
tabs: DynamicTab[];
|
|
7574
|
+
/**
|
|
7575
|
+
* The ID of the tab that triggered the context menu.
|
|
7576
|
+
* Exposed as public so consumers can access it for conditional menu rendering.
|
|
7577
|
+
* @public
|
|
7578
|
+
*/
|
|
7579
|
+
contextMenuTargetId: string | null;
|
|
7580
|
+
/**
|
|
7581
|
+
* Whether the context menu is currently open.
|
|
7582
|
+
* @public
|
|
7583
|
+
*/
|
|
7584
|
+
contextMenuOpen: boolean;
|
|
7585
|
+
/**
|
|
7586
|
+
* The X coordinate where the context menu was triggered.
|
|
7587
|
+
* @public
|
|
7588
|
+
*/
|
|
7589
|
+
contextMenuX: number;
|
|
7590
|
+
/**
|
|
7591
|
+
* The Y coordinate where the context menu was triggered.
|
|
7592
|
+
* @public
|
|
7593
|
+
*/
|
|
7594
|
+
contextMenuY: number;
|
|
7595
|
+
/**
|
|
7596
|
+
* Slotted manage-tabs trigger element(s).
|
|
7597
|
+
* @internal
|
|
7598
|
+
*/
|
|
7599
|
+
slottedManageTabsTrigger: HTMLElement[];
|
|
7600
|
+
/**
|
|
7601
|
+
* Whether the manage-tabs trigger should be interactive.
|
|
7602
|
+
* True when the built-in menu is enabled or a custom trigger is slotted.
|
|
7603
|
+
* @internal
|
|
7604
|
+
*/
|
|
7605
|
+
get hasTrigger(): boolean;
|
|
7606
|
+
/**
|
|
7607
|
+
* Whether the manage tabs menu is currently open.
|
|
7608
|
+
* Used for aria-expanded on the trigger.
|
|
7609
|
+
* @internal
|
|
7610
|
+
*/
|
|
7611
|
+
manageTabsMenuOpen: boolean;
|
|
7612
|
+
/**
|
|
7613
|
+
* Reference to the manage-tabs-menu popover element.
|
|
7614
|
+
* @internal
|
|
7615
|
+
*/
|
|
7616
|
+
private manageTabsMenuEl;
|
|
7617
|
+
/**
|
|
7618
|
+
* Roving focus controller for keyboard navigation.
|
|
7619
|
+
* @internal
|
|
7620
|
+
*/
|
|
7621
|
+
private focusController;
|
|
7622
|
+
/**
|
|
7623
|
+
* Flag to track if activeid change is from user gesture.
|
|
7624
|
+
* Used to prevent emitting tab-select on programmatic changes.
|
|
7625
|
+
* @internal
|
|
7626
|
+
*/
|
|
7627
|
+
private isUserSelection;
|
|
7628
|
+
/**
|
|
7629
|
+
* Lifecycle callback - initialize focus controller.
|
|
7630
|
+
* @internal
|
|
7631
|
+
*/
|
|
7632
|
+
connectedCallback(): void;
|
|
7633
|
+
/**
|
|
7634
|
+
* Lifecycle callback - cleanup.
|
|
7635
|
+
* @internal
|
|
7636
|
+
*/
|
|
7637
|
+
disconnectedCallback(): void;
|
|
7638
|
+
/**
|
|
7639
|
+
* Bound handler for manage tabs menu light dismiss.
|
|
7640
|
+
* @internal
|
|
7641
|
+
*/
|
|
7642
|
+
private handleManageTabsLightDismiss;
|
|
7643
|
+
/**
|
|
7644
|
+
* Bound handler for manage tabs menu Escape key.
|
|
7645
|
+
* @internal
|
|
7646
|
+
*/
|
|
7647
|
+
private handleManageTabsEscape;
|
|
7648
|
+
/**
|
|
7649
|
+
* Set up light dismiss listeners for manage tabs menu.
|
|
7650
|
+
* @internal
|
|
7651
|
+
*/
|
|
7652
|
+
private setupManageTabsMenuListeners;
|
|
7653
|
+
/**
|
|
7654
|
+
* Remove light dismiss listeners for manage tabs menu.
|
|
7655
|
+
* Optionally returns focus to the trigger button.
|
|
7656
|
+
* @internal
|
|
7657
|
+
*/
|
|
7658
|
+
private removeManageTabsMenuListeners;
|
|
7659
|
+
/**
|
|
7660
|
+
* Initialize the roving focus controller.
|
|
7661
|
+
* @internal
|
|
7662
|
+
*/
|
|
7663
|
+
private initializeFocusController;
|
|
7664
|
+
/**
|
|
7665
|
+
* Called when tabs change.
|
|
7666
|
+
* Filters to only DynamicTab elements (excludes text nodes and other elements).
|
|
7667
|
+
* Reconciles activeid if the active tab was removed externally.
|
|
7668
|
+
* @internal
|
|
7669
|
+
*/
|
|
7670
|
+
tabsChanged(): void;
|
|
7671
|
+
/**
|
|
7672
|
+
* Called when activeid changes.
|
|
7673
|
+
* @internal
|
|
7674
|
+
*/
|
|
7675
|
+
activeidChanged(oldValue: string | undefined, newValue: string | undefined): void;
|
|
7676
|
+
/**
|
|
7677
|
+
* Called when orientation changes - reinitialize focus controller.
|
|
7678
|
+
* @internal
|
|
7679
|
+
*/
|
|
7680
|
+
orientationChanged(): void;
|
|
7681
|
+
/**
|
|
7682
|
+
* Updates the selected state on all child tabs.
|
|
7683
|
+
* @internal
|
|
7684
|
+
*/
|
|
7685
|
+
private updateTabStates;
|
|
7686
|
+
/**
|
|
7687
|
+
* Handles tab dismiss events from child tabs.
|
|
7688
|
+
* Manages focus transfer and re-emits the event with index for consumer handling.
|
|
7689
|
+
* @internal
|
|
7690
|
+
*/
|
|
7691
|
+
handleTabDismiss(event: CustomEvent<{
|
|
7692
|
+
id: string;
|
|
7693
|
+
}>): void;
|
|
7694
|
+
/**
|
|
7695
|
+
* Handles tab select events from child tabs.
|
|
7696
|
+
* @internal
|
|
7697
|
+
*/
|
|
7698
|
+
handleTabSelect(event: CustomEvent<{
|
|
7699
|
+
id: string;
|
|
7700
|
+
}>): void;
|
|
7701
|
+
/**
|
|
7702
|
+
* Handles right-click on tabs.
|
|
7703
|
+
* Emits context-menu event with tab ID and cursor coordinates.
|
|
7704
|
+
* Consumer implements their own context menu using native Popover API.
|
|
7705
|
+
* @internal
|
|
7706
|
+
*/
|
|
7707
|
+
handleTabContextMenu(event: MouseEvent): boolean;
|
|
7708
|
+
/**
|
|
7709
|
+
* Handles keyboard navigation using roving focus controller.
|
|
7710
|
+
* @internal
|
|
7711
|
+
*/
|
|
7712
|
+
handleKeydown(event: KeyboardEvent): boolean;
|
|
7713
|
+
/**
|
|
7714
|
+
* Handles focusin events to sync the focus controller.
|
|
7715
|
+
* @internal
|
|
7716
|
+
*/
|
|
7717
|
+
handleFocusin(event: FocusEvent): void;
|
|
7718
|
+
/**
|
|
7719
|
+
* Emits the tab-select event.
|
|
7720
|
+
* @internal
|
|
7721
|
+
*/
|
|
7722
|
+
private emitTabSelect;
|
|
7723
|
+
/**
|
|
7724
|
+
* Gets the tab that triggered the context menu.
|
|
7725
|
+
* Useful for consumers to render menu items based on tab state.
|
|
7726
|
+
* @public
|
|
7727
|
+
*/
|
|
7728
|
+
getContextMenuTab(): DynamicTab | null;
|
|
7729
|
+
/**
|
|
7730
|
+
* Clears the context menu target ID and state.
|
|
7731
|
+
* Call this when closing your context menu to reset state.
|
|
7732
|
+
* @public
|
|
7733
|
+
*/
|
|
7734
|
+
clearContextMenuTarget(): void;
|
|
7735
|
+
/**
|
|
7736
|
+
* Closes the context menu and resets all context menu state.
|
|
7737
|
+
* @public
|
|
7738
|
+
*/
|
|
7739
|
+
closeContextMenu(): void;
|
|
7740
|
+
/**
|
|
7741
|
+
* Toggles the manage tabs menu popover.
|
|
7742
|
+
* @public
|
|
7743
|
+
*/
|
|
7744
|
+
toggleManageTabsMenu(): void;
|
|
7745
|
+
/**
|
|
7746
|
+
* Closes the manage tabs menu.
|
|
7747
|
+
* @public
|
|
7748
|
+
*/
|
|
7749
|
+
closeManageTabsMenu(): void;
|
|
7750
|
+
/**
|
|
7751
|
+
* Requests closing a tab by ID.
|
|
7752
|
+
* Emits `tab-dismiss` event for the consumer to handle DOM removal.
|
|
7753
|
+
* If the tab had focus, moves focus to an adjacent tab.
|
|
7754
|
+
* @param id - The ID of the tab to close
|
|
7755
|
+
* @public
|
|
7756
|
+
*/
|
|
7757
|
+
closeTab(id: string): void;
|
|
7758
|
+
/**
|
|
7759
|
+
* Requests closing all tabs except the specified one.
|
|
7760
|
+
* Emits `tab-dismiss` events for each tab to close.
|
|
7761
|
+
* @param id - The ID of the tab to keep open
|
|
7762
|
+
* @public
|
|
7763
|
+
*/
|
|
7764
|
+
closeOtherTabs(id: string): void;
|
|
7765
|
+
/**
|
|
7766
|
+
* Requests closing all tabs to the right of the specified tab.
|
|
7767
|
+
* Emits `tab-dismiss` events for each tab to close.
|
|
7768
|
+
* @param id - The ID of the anchor tab
|
|
7769
|
+
* @public
|
|
7770
|
+
*/
|
|
7771
|
+
closeTabsToRight(id: string): void;
|
|
7772
|
+
/**
|
|
7773
|
+
* Requests closing all tabs to the left of the specified tab.
|
|
7774
|
+
* Emits `tab-dismiss` events for each tab to close.
|
|
7775
|
+
* @param id - The ID of the anchor tab
|
|
7776
|
+
* @public
|
|
7777
|
+
*/
|
|
7778
|
+
closeTabsToLeft(id: string): void;
|
|
7779
|
+
/**
|
|
7780
|
+
* Requests closing all tabs.
|
|
7781
|
+
* Emits `tab-dismiss` events for each tab.
|
|
7782
|
+
* @public
|
|
7783
|
+
*/
|
|
7784
|
+
closeAllTabs(): void;
|
|
7785
|
+
/**
|
|
7786
|
+
* Selects the next available tab after a tab is closed.
|
|
7787
|
+
* Prefers the tab at the same index, then previous tabs.
|
|
7788
|
+
* @param closedIndex - The index of the tab that was closed
|
|
7789
|
+
* @internal
|
|
7790
|
+
*/
|
|
7791
|
+
private selectNextAvailableTab;
|
|
7792
|
+
/**
|
|
7793
|
+
* Requests closing all tabs that are not marked as modified.
|
|
7794
|
+
* Emits `tab-dismiss` events for each unmodified tab.
|
|
7795
|
+
* Tabs with `modified === true` are preserved.
|
|
7796
|
+
* @public
|
|
7797
|
+
*/
|
|
7798
|
+
closeUnmodifiedTabs(): void;
|
|
7799
|
+
/**
|
|
7800
|
+
* Selects a tab from the manage tabs menu, focuses it, and closes the menu.
|
|
7801
|
+
* @param tab - The tab to select
|
|
7802
|
+
* @internal
|
|
7803
|
+
*/
|
|
7804
|
+
selectTabFromManageMenu(tab: DynamicTab): void;
|
|
7805
|
+
/**
|
|
7806
|
+
* Closes the manage tabs menu popover and cleans up listeners.
|
|
7807
|
+
* Used internally by built-in menu actions.
|
|
7808
|
+
* @param restoreFocus - When true, returns focus to the trigger button.
|
|
7809
|
+
* @internal
|
|
7810
|
+
*/
|
|
7811
|
+
closeManageTabsMenuInternal(restoreFocus?: boolean): void;
|
|
7812
|
+
/**
|
|
7813
|
+
* Gets the display label for a tab in the manage tabs menu.
|
|
7814
|
+
* Reads only the default slot's assigned content for a clean label,
|
|
7815
|
+
* excluding named-slot content (icons, dismiss-icon) and shadow DOM text (hint spans).
|
|
7816
|
+
* Falls back through: default slot text → aria-label → id
|
|
7817
|
+
* @param tab - The tab to get the label for
|
|
7818
|
+
* @returns The display label string
|
|
7819
|
+
* @internal
|
|
7820
|
+
*/
|
|
7821
|
+
getTabDisplayLabel(tab: DynamicTab): string;
|
|
7822
|
+
/**
|
|
7823
|
+
* Gets the filtered array of DynamicTab elements from the tabs slot.
|
|
7824
|
+
* Filters out text nodes and non-tab elements.
|
|
7825
|
+
* @returns Array of DynamicTab elements
|
|
7826
|
+
* @public
|
|
7827
|
+
*/
|
|
7828
|
+
getTabElements(): DynamicTab[];
|
|
7829
|
+
/**
|
|
7830
|
+
* Handles "Close all tabs" action from the built-in menu.
|
|
7831
|
+
* Closes all tabs and then closes the menu.
|
|
7832
|
+
* @internal
|
|
7833
|
+
*/
|
|
7834
|
+
handleCloseAllFromMenu(): void;
|
|
7835
|
+
}
|
|
6803
7836
|
|
|
6804
|
-
|
|
7837
|
+
/**
|
|
7838
|
+
* The template for the DynamicTabList component.
|
|
7839
|
+
* @public
|
|
7840
|
+
*/
|
|
7841
|
+
declare const template$8: ElementViewTemplate<DynamicTabList>;
|
|
6805
7842
|
|
|
6806
7843
|
/**
|
|
6807
|
-
*
|
|
7844
|
+
* Styles for the DynamicTabList component.
|
|
6808
7845
|
* @public
|
|
6809
7846
|
*/
|
|
6810
|
-
declare const
|
|
7847
|
+
declare const styles$9: _microsoft_fast_element.ElementStyles;
|
|
6811
7848
|
|
|
6812
7849
|
/**
|
|
6813
|
-
* The Fabric
|
|
7850
|
+
* The Fabric DynamicTabList component definition.
|
|
7851
|
+
* @public
|
|
7852
|
+
*/
|
|
7853
|
+
declare const definition$y: _microsoft_fast_element.FASTElementDefinition<typeof DynamicTabList>;
|
|
7854
|
+
|
|
7855
|
+
/**
|
|
7856
|
+
* EmptyState
|
|
7857
|
+
* @summary A component for displaying empty states with optional illustration, title, body, link, and action.
|
|
7858
|
+
*
|
|
7859
|
+
* @example
|
|
7860
|
+
* ```html
|
|
7861
|
+
* <fabric-empty-state>
|
|
7862
|
+
* <img slot="illustration" src="illustration.svg" alt="" aria-hidden="true" />
|
|
7863
|
+
* <span slot="title">No items yet</span>
|
|
7864
|
+
* <span slot="body">Create an item to get started</span>
|
|
7865
|
+
* <fabric-link slot="link" href="#">Learn more</fabric-link>
|
|
7866
|
+
* <fabric-button slot="action">Create item</fabric-button>
|
|
7867
|
+
* </fabric-empty-state>
|
|
7868
|
+
* ```
|
|
7869
|
+
*
|
|
7870
|
+
* @slot illustration - Slot for an optional illustration or image.
|
|
7871
|
+
* @slot title - Slot for the main title text.
|
|
7872
|
+
* @slot body - Slot for optional body/description text.
|
|
7873
|
+
* @slot link - Slot for an optional help or learn-more link.
|
|
7874
|
+
* @slot action - Slot for an optional call-to-action button.
|
|
7875
|
+
*
|
|
7876
|
+
* @csspart illustration - The illustration container.
|
|
7877
|
+
* @csspart content - The text and action content container.
|
|
6814
7878
|
*
|
|
7879
|
+
* @extends FASTElement
|
|
7880
|
+
* @tagname fabric-empty-state
|
|
7881
|
+
* @public
|
|
7882
|
+
*/
|
|
7883
|
+
declare class EmptyState extends FASTElement {
|
|
7884
|
+
}
|
|
7885
|
+
|
|
7886
|
+
/**
|
|
7887
|
+
* The Fabric EmptyState component.
|
|
7888
|
+
*
|
|
7889
|
+
* @public
|
|
7890
|
+
* @remarks
|
|
7891
|
+
* HTML Element: <fabric-empty-state>
|
|
7892
|
+
*/
|
|
7893
|
+
declare const definition$x: _microsoft_fast_element.FASTElementDefinition<typeof EmptyState>;
|
|
7894
|
+
|
|
7895
|
+
/**
|
|
7896
|
+
* Styles for the {@link EmptyState} component.
|
|
6815
7897
|
* @public
|
|
6816
7898
|
*/
|
|
6817
|
-
declare const
|
|
7899
|
+
declare const styles$8: _microsoft_fast_element.ElementStyles;
|
|
7900
|
+
|
|
7901
|
+
declare const template$7: ElementViewTemplate<EmptyState>;
|
|
6818
7902
|
|
|
6819
7903
|
/**
|
|
6820
7904
|
* Drawer
|
|
@@ -7694,7 +8778,7 @@ declare const definition$n: _microsoft_fast_element.FASTElementDefinition<typeof
|
|
|
7694
8778
|
* @attr {MenuButtonAppearances | undefined} appearance - Indicates the styled appearance of the button.
|
|
7695
8779
|
* @attr {MenuButtonShape | undefined} shape - The shape of the button.
|
|
7696
8780
|
* @attr {MenuButtonSize | undefined} size - The size of the button.
|
|
7697
|
-
* @attr {boolean | undefined} icon-only - Indicates that the button should only display as an icon with no text content.
|
|
8781
|
+
* @attr {boolean | undefined} icon-only - Indicates that the button should only display as an icon with no text content. When set, the built-in chevron icon is removed.
|
|
7698
8782
|
* @attr {boolean | undefined} autofocus - Indicates the button should be focused when the page is loaded.
|
|
7699
8783
|
* @attr {boolean | undefined} disabled-focusable - Indicates that the button is focusable while disabled.
|
|
7700
8784
|
* @attr {number | undefined} tabindex - Sets that the button tabindex attribute.
|
|
@@ -7711,7 +8795,7 @@ declare const definition$n: _microsoft_fast_element.FASTElementDefinition<typeof
|
|
|
7711
8795
|
* @prop {MenuButtonAppearances | undefined} appearance - Indicates the styled appearance of the button.
|
|
7712
8796
|
* @prop {MenuButtonShape | undefined} shape - The shape of the button.
|
|
7713
8797
|
* @prop {MenuButtonSize | undefined} size - The size of the button.
|
|
7714
|
-
* @prop {boolean | undefined} iconOnly - Indicates that the button should only display as an icon with no text content.
|
|
8798
|
+
* @prop {boolean | undefined} iconOnly - Indicates that the button should only display as an icon with no text content. When set, the built-in chevron icon is removed.
|
|
7715
8799
|
* @prop {boolean | undefined} autofocus - Indicates the button should be focused when the page is loaded.
|
|
7716
8800
|
* @prop {boolean | undefined} disabledFocusable - Indicates that the button is focusable while disabled.
|
|
7717
8801
|
* @prop {number | undefined} tabindex - Sets that the button tabindex attribute.
|
|
@@ -11649,6 +12733,6 @@ declare function staticallyCompose<TSource = unknown, TParent = unknown>(item: S
|
|
|
11649
12733
|
*/
|
|
11650
12734
|
declare const whitespaceFilter: ElementsFilter;
|
|
11651
12735
|
|
|
11652
|
-
export { Accordion, definition$
|
|
11653
|
-
export type { AccordionExpandMode, AccordionItemMarkerPosition, AccordionItemSize, AccordionMenuExpandMode, AccordionMenuPanelMarkerPosition, AccordionMenuPanelSize, ButtonAppearance, ButtonFormTarget, ButtonShape, ButtonSize, ButtonType, CarouselEventName, CarouselNavButtonPlacement, CarouselNavEventName, CarouselNavPosition, CheckboxShape, CheckboxSize, CollisionEdge, CompoundButtonAppearance, CompoundButtonFormTarget, CompoundButtonShape, CompoundButtonSize, CompoundButtonType, CounterBadgeAppearance, CounterBadgeColor, CounterBadgeShape, CounterBadgeSize, DialogType, DirectionDetectorOptions, DirectionObserver, DirectionOrNull, DirectionStrategy, DividerAlignContent, DividerAppearance, DividerOrientation, DividerRole, DrawerPosition, DrawerSize, DrawerType, DropdownAppearance, DropdownSize, DropdownType, FabricElementDefinition, FilterPillAppearance, FilterPillFormTarget, FilterPillShape, FilterPillSize, FilterPillType, HTMLPopoverElement, ImageFit, ImageShape, LabelPosition, LabelSize, LabelWeight, MenuButtonAppearance, MenuButtonShape, MenuButtonSize, MenuGroupRole, MenuItemAppearance, MenuItemColumnCount, MenuItemRole, MenuPosition, MenuRepositionMode, MultiViewGroupPosition, OverflowAxisValue, OverflowChangeEventDetail, OverflowDirection, PaginationPageChangeDetail, PaginationVariant, PopoverEventData, PopoverMode, PopoverRepositionMode, PopoverSize, PositioningShorthandKeys, PositioningShorthandValues, ProgressBarShape, ProgressBarThickness, ProgressBarValidationState, RadioGroupOrientation, RatingDisplayColor, RatingDisplaySize, RovingFocusController, RovingFocusOptions, SearchBoxAppearance, SearchBoxControlSize, SearchBoxType, SliderMode, SliderOrientation, SliderSize, SlottableInput, SortDirection, SpinButtonAppearance, SpinButtonBound, SpinButtonControlSize, SpinButtonSpinState, SpinnerAppearance, SpinnerSize, StaticallyComposableHTML, TableCellRenderFunction, TableCellSize, TableColumnData, TableRowData, TablistAppearance, TablistOrientation, TablistSize, TagAppearance, TagShape, TagSize, TagTextSize, TeachingBubblePlacement, TeachingBubbleSize, TextAlign, TextareaAppearance as TextAreaAppearance, TextareaAppearancesForDisplayShadow as TextAreaAppearancesForDisplayShadow, TextareaAutocomplete as TextAreaAutocomplete, TextareaResize as TextAreaResize, TextareaSize as TextAreaSize, TextFont, TextInputAppearance, TextInputControlSize, TextInputOptions, TextInputType, TextSize, TextWeight, ToggleButtonAppearance, ToggleButtonFormTarget, ToggleButtonShape, ToggleButtonSize, ToggleButtonType, TooltipPositioningOption, ValidationFlag, ValuesOf, WizardEvent, WizardPanelState, WizardStepEvent, WizardStepState };
|
|
12736
|
+
export { Accordion, definition$J as AccordionDefinition, AccordionExpandModes, AccordionItem, definition$K as AccordionItemDefinition, AccordionItemMarkerPositions, AccordionItemSizes, AccordionMenu, definition$1f as AccordionMenuDefinition, AccordionMenuExpandModes, AccordionMenuPanel, definition$1e as AccordionMenuPanelDefinition, AccordionMenuPanelMarkerPositions, AccordionMenuPanelSizes, styles$r as AccordionMenuPanelStyles, template$l as AccordionMenuPanelTemplate, styles$s as AccordionMenuStyles, template$m as AccordionMenuTemplate, AnchorButton, AnchorButtonAppearance, AnchorButtonAppearances, definition$o as AnchorButtonDefinition, AnchorButtonShape, AnchorButtonShapes, AnchorButtonSize, AnchorButtonSizes, AnchorTarget, AnchorTargets, Avatar, AvatarActive, AvatarActives, AvatarAppearance, AvatarAppearances, AvatarColor, AvatarColors, definition$H as AvatarDefinition, AvatarNamedColor, AvatarNamedColors, AvatarShape, AvatarShapes, AvatarSize, AvatarSizes, Badge, BadgeAppearance, BadgeAppearances, BadgeColor, BadgeColors, definition$G as BadgeDefinition, BadgeShape, BadgeShapes, BadgeSize, BadgeSizes, Button, ButtonAppearances, definition$F as ButtonDefinition, ButtonFormTargets, ButtonShapes, ButtonSizes, styles$d as ButtonStyles, ButtonTypes, Card, CardAppearance, CardAppearances, CardCarousel, definition$14 as CardCarouselDefinition, styles$k as CardCarouselStyles, template$e as CardCarouselTemplate, definition$1d as CardDefinition, CardEventNames, CardFocusMode, CardFocusModes, CardFooter, definition$1c as CardFooterDefinition, CardHeader, definition$1b as CardHeaderDefinition, CardOrientation, CardOrientations, CardPreview, definition$1a as CardPreviewDefinition, styles$q as CardStyles, template$k as CardTemplate, Carousel, definition$19 as CarouselDefinition, CarouselEventNames, CarouselItem, definition$18 as CarouselItemDefinition, styles$o as CarouselItemStyles, template$i as CarouselItemTemplate, CarouselNav, CarouselNavButtonPlacements, definition$17 as CarouselNavDefinition, CarouselNavEventNames, CarouselNavItem, definition$16 as CarouselNavItemDefinition, styles$m as CarouselNavItemStyles, template$g as CarouselNavItemTemplate, CarouselNavPositions, styles$n as CarouselNavStyles, template$h as CarouselNavTemplate, styles$p as CarouselStyles, template$j as CarouselTemplate, CarouselViewport, definition$15 as CarouselViewportDefinition, styles$l as CarouselViewportStyles, template$f as CarouselViewportTemplate, Checkbox, definition$E as CheckboxDefinition, CheckboxShapes, CheckboxSizes, CollisionEdges, CompoundButton, CompoundButtonAppearances, definition$11 as CompoundButtonDefinition, CompoundButtonFormTargets, CompoundButtonShapes, CompoundButtonSizes, CompoundButtonTypes, CounterBadge, CounterBadgeAppearances, CounterBadgeColors, definition$D as CounterBadgeDefinition, CounterBadgeShapes, CounterBadgeSizes, Dialog, DialogBody, definition$B as DialogBodyDefinition, definition$C as DialogDefinition, styles$c as DialogStyles, DialogTypes, DirectionDetector, Divider, DividerAlignContents, DividerAppearances, definition$A as DividerDefinition, DividerOrientations, DividerRoles, styles$b as DividerStyles, template$a as DividerTemplate, Drawer, DrawerBody, definition$v as DrawerBodyDefinition, definition$w as DrawerDefinition, DrawerPositions, DrawerSizes, DrawerTypes, Dropdown, DropdownAppearances, definition$u as DropdownDefinition, DropdownOption, definition$t as DropdownOptionDefinition, DropdownSizes, DropdownTypes, DynamicTab, definition$z as DynamicTabDefinition, DynamicTabEventNames, DynamicTabList, definition$y as DynamicTabListDefinition, DynamicTabListEventNames, DynamicTabListOrientations, styles$9 as DynamicTabListStyles, template$8 as DynamicTabListTemplate, styles$a as DynamicTabStyles, template$9 as DynamicTabTemplate, EmptyState, definition$x as EmptyStateDefinition, styles$8 as EmptyStateStyles, template$7 as EmptyStateTemplate, DesignSystem as FabricDesignSystem, Field, definition$r as FieldDefinition, FieldLabelPosition, FieldLabelPositions, styles$7 as FieldStyles, FilterPill, FilterPillAppearances, definition$13 as FilterPillDefinition, FilterPillEventNames, FilterPillFormTargets, FilterPillShapes, FilterPillSizes, FilterPillTypes, Image, definition$q as ImageDefinition, ImageFits, ImageShapes, ImplicitSubmissionBlockingTypes$1 as ImplicitSubmissionBlockingTypes, Label, definition$p as LabelDefinition, LabelPositions, LabelSizes, LabelWeights, Link, LinkAppearance, LinkAppearances, definition$I as LinkDefinition, LinkTarget, LinkTargets, Listbox, definition$s as ListboxDefinition, LoadingButton, definition$10 as LoadingButtonDefinition, Menu, MenuButton, MenuButtonAppearances, definition$m as MenuButtonDefinition, MenuButtonShapes, MenuButtonSizes, definition$j as MenuDefinition, MenuGroupRoles, MenuItem, MenuItemAppearances, definition$l as MenuItemDefinition, MenuItemRoles, styles$6 as MenuItemStyles, template$6 as MenuItemTemplate, MenuList, definition$k as MenuListDefinition, styles$5 as MenuListStyles, template$5 as MenuListTemplate, MenuPositions, MenuRepositionModes, styles$4 as MenuStyles, template$4 as MenuTemplate, MessageBar, definition$n as MessageBarDefinition, MockElementInternals, Modal, definition$12 as ModalDefinition, ModalEventNames, ModalFreItem, modalFreItemDefinition as ModalFreItemDefinition, ModalModes, MultiView, MultiViewController, definition$_ as MultiViewControllerDefinition, definition$$ as MultiViewDefinition, MultiViewEventNames, MultiViewGroup, definition$Z as MultiViewGroupDefinition, MultiViewGroupPositions, OptionGroup, definition$i as OptionGroupDefinition, Overflow, OverflowAxisValues, definition$Y as OverflowDefinition, OverflowDirections, OverflowDivider, definition$W as OverflowDividerDefinition, styles$h as OverflowDividerStyles, OverflowEventNames, OverflowItem, definition$X as OverflowItemDefinition, styles$i as OverflowItemStyles, styles$j as OverflowStyles, Pagination, definition$U as PaginationDefinition, PaginationEventNames, PaginationVariants, Popover, definition$V as PopoverDefinition, PopoverEventNames, PopoverPositions, PopoverRepositionModes, styles$g as PopoverStyles, template$d as PopoverTemplate, PositioningShorthand, ProgressBar, definition$h as ProgressBarDefinition, ProgressBarShapes, ProgressBarThicknesses, ProgressBarValidationStates, Radio, definition$f as RadioDefinition, RadioGroup, definition$g as RadioGroupDefinition, RadioGroupOrientations, RatingDisplay, RatingDisplayColors, definition$e as RatingDisplayDefinition, RatingDisplaySizes, SearchBox, SearchBoxAppearances, SearchBoxControlSizes, definition$d as SearchBoxDefinition, SearchBoxEventNames, ImplicitSubmissionBlockingTypes as SearchBoxImplicitSubmissionBlockingTypes, SearchBoxTypes, SimpleTable, definition$R as SimpleTableDefinition, Slider, definition$c as SliderDefinition, SliderEventNames, SliderModes, SliderOrientations, SliderSizes, SlottableInputs, SortDirections, SpinButton, SpinButtonAppearances, SpinButtonBounds, SpinButtonControlSizes, definition$b as SpinButtonDefinition, SpinButtonEventNames, SpinButtonSpinStates, styles$2 as SpinButtonStyles, template$2 as SpinButtonTemplate, Spinner, SpinnerAppearances, definition$a as SpinnerDefinition, SpinnerSizes, SvgIcon, definition$T as SvgIconDefinition, Switch, definition$9 as SwitchDefinition, Tab, definition$8 as TabDefinition, Table, TableCell, definition$Q as TableCellDefinition, TableCellSizes, styles$e as TableCellStyles, template$b as TableCellTemplate, definition$S as TableDefinition, styles$f as TableStyles, template$c as TableTemplate, Tablist, TablistAppearances, definition$7 as TablistDefinition, TablistEventNames, TablistOrientations, TablistSizes, Tag, TagAppearances, definition$P as TagDefinition, TagEventNames, TagShapes, TagSizes, TagTextSizes, TeachingBubble, definition$O as TeachingBubbleDefinition, TeachingBubbleEventNames, TeachingBubblePlacements, TeachingBubbleSizes, Text, TextAligns, TextArea, TextareaAppearances as TextAreaAppearances, TextareaAppearancesForDisplayShadows as TextAreaAppearancesForDisplayShadows, TextareaAutocompletes as TextAreaAutocompletes, definition$6 as TextAreaDefinition, TextareaResizes as TextAreaResizes, TextareaSizes as TextAreaSizes, definition$4 as TextDefinition, TextFonts, TextInput, TextInputAppearances, TextInputControlSizes, definition$5 as TextInputDefinition, styles$1 as TextInputStyles, template$1 as TextInputTemplate, TextInputTypes, TextSizes, TextWeights, ToggleButton, ToggleButtonAppearances, definition$1 as ToggleButtonDefinition, ToggleButtonFormTargets, ToggleButtonShapes, ToggleButtonSizes, ToggleButtonTypes, Tooltip, definition as TooltipDefinition, TooltipPositioningOptions, Tree, definition$3 as TreeDefinition, TreeItem, definition$2 as TreeItemDefinition, styles as TreeItemStyles, template as TreeItemTemplate, ValidationFlags, Wizard, definition$N as WizardDefinition, WizardEvents, WizardPanel, definition$M as WizardPanelDefinition, WizardPanelEventNames, WizardPanelStates, WizardStep, definition$L as WizardStepDefinition, WizardStepEvents, WizardStepStates, applyMixins, attachMockElementInternals, clamp, composeDefinitions, createRovingFocusController, createUniqueId, debounce, debug, defineCarousel, definePagination, disabledState, expandedState, fromFAST, getDirection, getOptionsFromElement, globalDirectionDetector, inputElementMethods, isActionModifierKey, isDisabledElement, isFocusableElement, isHiddenElement, isOptionGroup, isRtl, styles$3 as optionGroupStyles, template$3 as optionGroupTemplate, precisionRound, roleForMenuGroup, roleForMenuItem, setAttributes, setChildrenFocusability, setGlobalDirectionDetector, staticallyCompose, toggleState, whitespaceFilter };
|
|
12737
|
+
export type { AccordionExpandMode, AccordionItemMarkerPosition, AccordionItemSize, AccordionMenuExpandMode, AccordionMenuPanelMarkerPosition, AccordionMenuPanelSize, ButtonAppearance, ButtonFormTarget, ButtonShape, ButtonSize, ButtonType, CarouselEventName, CarouselNavButtonPlacement, CarouselNavEventName, CarouselNavPosition, CheckboxShape, CheckboxSize, CollisionEdge, CompoundButtonAppearance, CompoundButtonFormTarget, CompoundButtonShape, CompoundButtonSize, CompoundButtonType, CounterBadgeAppearance, CounterBadgeColor, CounterBadgeShape, CounterBadgeSize, DialogType, DirectionDetectorOptions, DirectionObserver, DirectionOrNull, DirectionStrategy, DividerAlignContent, DividerAppearance, DividerOrientation, DividerRole, DrawerPosition, DrawerSize, DrawerType, DropdownAppearance, DropdownSize, DropdownType, DynamicTabListOrientation, FabricElementDefinition, FilterPillAppearance, FilterPillFormTarget, FilterPillShape, FilterPillSize, FilterPillType, HTMLPopoverElement, ImageFit, ImageShape, LabelPosition, LabelSize, LabelWeight, MenuButtonAppearance, MenuButtonShape, MenuButtonSize, MenuGroupRole, MenuItemAppearance, MenuItemColumnCount, MenuItemRole, MenuPosition, MenuRepositionMode, ModalDismissEventDetail, ModalEventName, ModalMode, MultiViewGroupPosition, OverflowAxisValue, OverflowChangeEventDetail, OverflowDirection, PaginationPageChangeDetail, PaginationVariant, PopoverEventData, PopoverMode, PopoverRepositionMode, PopoverSize, PositioningShorthandKeys, PositioningShorthandValues, ProgressBarShape, ProgressBarThickness, ProgressBarValidationState, RadioGroupOrientation, RatingDisplayColor, RatingDisplaySize, RovingFocusController, RovingFocusOptions, SearchBoxAppearance, SearchBoxControlSize, SearchBoxType, SliderMode, SliderOrientation, SliderSize, SlottableInput, SortDirection, SpinButtonAppearance, SpinButtonBound, SpinButtonControlSize, SpinButtonSpinState, SpinnerAppearance, SpinnerSize, StaticallyComposableHTML, TableCellRenderFunction, TableCellSize, TableColumnData, TableRowData, TablistAppearance, TablistOrientation, TablistSize, TagAppearance, TagShape, TagSize, TagTextSize, TeachingBubblePlacement, TeachingBubbleSize, TextAlign, TextareaAppearance as TextAreaAppearance, TextareaAppearancesForDisplayShadow as TextAreaAppearancesForDisplayShadow, TextareaAutocomplete as TextAreaAutocomplete, TextareaResize as TextAreaResize, TextareaSize as TextAreaSize, TextFont, TextInputAppearance, TextInputControlSize, TextInputOptions, TextInputType, TextSize, TextWeight, ToggleButtonAppearance, ToggleButtonFormTarget, ToggleButtonShape, ToggleButtonSize, ToggleButtonType, TooltipPositioningOption, ValidationFlag, ValuesOf, WizardEvent, WizardPanelState, WizardStepEvent, WizardStepState };
|
|
11654
12738
|
//# sourceMappingURL=index.d.ts.map
|