@fluentui/web-components 3.0.0-beta.71 → 3.0.0-beta.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -2
- package/dist/dts/accordion/accordion.template.d.ts +1 -1
- package/dist/dts/accordion-item/accordion-item.d.ts +2 -2
- package/dist/dts/accordion-item/accordion-item.template.d.ts +1 -1
- package/dist/dts/anchor-button/anchor-button.d.ts +2 -2
- package/dist/dts/anchor-button/anchor-button.options.d.ts +1 -1
- package/dist/dts/anchor-button/anchor-button.template.d.ts +1 -1
- package/dist/dts/avatar/avatar.d.ts +1 -1
- package/dist/dts/avatar/avatar.template.d.ts +1 -1
- package/dist/dts/badge/badge.options.d.ts +1 -1
- package/dist/dts/badge/badge.template.d.ts +1 -1
- package/dist/dts/button/button.d.ts +1 -2
- package/dist/dts/button/button.options.d.ts +1 -1
- package/dist/dts/button/button.template.d.ts +2 -2
- package/dist/dts/compound-button/compound-button.options.d.ts +1 -1
- package/dist/dts/compound-button/compound-button.template.d.ts +1 -1
- package/dist/dts/counter-badge/counter-badge.options.d.ts +1 -1
- package/dist/dts/counter-badge/counter-badge.template.d.ts +2 -2
- package/dist/dts/dialog/dialog.template.d.ts +1 -1
- package/dist/dts/dialog-body/dialog-body.template.d.ts +1 -1
- package/dist/dts/divider/divider.d.ts +1 -1
- package/dist/dts/divider/divider.template.d.ts +1 -1
- package/dist/dts/drawer/drawer.template.d.ts +1 -1
- package/dist/dts/drawer-body/drawer-body.template.d.ts +1 -1
- package/dist/dts/field/field.d.ts +1 -1
- package/dist/dts/field/field.template.d.ts +1 -1
- package/dist/dts/image/image.template.d.ts +1 -1
- package/dist/dts/label/label.template.d.ts +2 -2
- package/dist/dts/link/link.d.ts +1 -1
- package/dist/dts/link/link.template.d.ts +1 -1
- package/dist/dts/menu/menu.d.ts +1 -1
- package/dist/dts/menu/menu.template.d.ts +1 -1
- package/dist/dts/menu-button/menu-button.template.d.ts +1 -1
- package/dist/dts/menu-item/menu-item.d.ts +1 -1
- package/dist/dts/menu-list/menu-list.template.d.ts +1 -1
- package/dist/dts/message-bar/message-bar.template.d.ts +1 -1
- package/dist/dts/patterns/start-end.d.ts +1 -1
- package/dist/dts/radio/radio.template.d.ts +1 -1
- package/dist/dts/radio-group/radio-group.template.d.ts +1 -1
- package/dist/dts/rating-display/rating-display.template.d.ts +1 -1
- package/dist/dts/slider/slider.d.ts +3 -3
- package/dist/dts/spinner/spinner.d.ts +1 -1
- package/dist/dts/spinner/spinner.template.d.ts +1 -1
- package/dist/dts/switch/switch.template.d.ts +2 -2
- package/dist/dts/tab/tab.d.ts +2 -1
- package/dist/dts/tab/tab.template.d.ts +1 -1
- package/dist/dts/tab-panel/tab-panel.template.d.ts +2 -2
- package/dist/dts/tablist/tablist.template.d.ts +1 -1
- package/dist/dts/tabs/tabs.d.ts +1 -1
- package/dist/dts/tabs/tabs.options.d.ts +2 -2
- package/dist/dts/tabs/tabs.template.d.ts +3 -3
- package/dist/dts/text/text.d.ts +1 -1
- package/dist/dts/text/text.template.d.ts +1 -1
- package/dist/dts/text-input/text-input.d.ts +1 -2
- package/dist/dts/textarea/textarea.template.d.ts +1 -1
- package/dist/dts/toggle-button/toggle-button.template.d.ts +1 -1
- package/dist/dts/utils/element-internals.d.ts +23 -1
- package/dist/dts/utils/template-helpers.d.ts +1 -2
- package/dist/esm/accordion/accordion.template.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.js +4 -13
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.template.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js +5 -20
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
- package/dist/esm/avatar/avatar.js +2 -3
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/avatar.template.js.map +1 -1
- package/dist/esm/badge/badge.js +6 -27
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/badge/badge.template.js.map +1 -1
- package/dist/esm/button/button.js +5 -20
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/button/button.template.js.map +1 -1
- package/dist/esm/checkbox/checkbox.js +4 -13
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/compound-button/compound-button.template.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.js +6 -26
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.template.js.map +1 -1
- package/dist/esm/dialog/dialog.template.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.template.js.map +1 -1
- package/dist/esm/divider/divider.js +6 -21
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/divider.template.js.map +1 -1
- package/dist/esm/drawer/drawer.template.js.map +1 -1
- package/dist/esm/drawer-body/drawer-body.template.js.map +1 -1
- package/dist/esm/field/field.js.map +1 -1
- package/dist/esm/field/field.template.js.map +1 -1
- package/dist/esm/image/image.js +4 -13
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/image/image.template.js.map +1 -1
- package/dist/esm/label/label.js +4 -13
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/label/label.template.js.map +1 -1
- package/dist/esm/link/link.js +3 -7
- package/dist/esm/link/link.js.map +1 -1
- package/dist/esm/link/link.template.js.map +1 -1
- package/dist/esm/menu/menu.template.js.map +1 -1
- package/dist/esm/menu-button/menu-button.template.js.map +1 -1
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-list/menu-list.template.js.map +1 -1
- package/dist/esm/message-bar/message-bar.js +5 -19
- package/dist/esm/message-bar/message-bar.js.map +1 -1
- package/dist/esm/message-bar/message-bar.template.js.map +1 -1
- package/dist/esm/patterns/start-end.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.js +5 -19
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.options.js.map +1 -1
- package/dist/esm/radio/radio.template.js.map +1 -1
- package/dist/esm/radio-group/radio-group.template.js.map +1 -1
- package/dist/esm/rating-display/rating-display.js +4 -9
- package/dist/esm/rating-display/rating-display.js.map +1 -1
- package/dist/esm/rating-display/rating-display.template.js.map +1 -1
- package/dist/esm/slider/slider.js +4 -14
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/spinner/spinner.js +4 -13
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/switch/switch.template.js.map +1 -1
- package/dist/esm/tab/tab.js +1 -1
- package/dist/esm/tab/tab.js.map +1 -1
- package/dist/esm/tab/tab.template.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.template.js.map +1 -1
- package/dist/esm/tablist/tablist.js +6 -22
- package/dist/esm/tablist/tablist.js.map +1 -1
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/tabs/tabs.template.js.map +1 -1
- package/dist/esm/text/text.js +6 -25
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text/text.template.js.map +1 -1
- package/dist/esm/text-input/text-input.js +4 -14
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/textarea/textarea.js +9 -21
- package/dist/esm/textarea/textarea.js.map +1 -1
- package/dist/esm/textarea/textarea.template.js.map +1 -1
- package/dist/esm/utils/element-internals.js +45 -0
- package/dist/esm/utils/element-internals.js.map +1 -1
- package/dist/esm/utils/template-helpers.js +1 -1
- package/dist/esm/utils/template-helpers.js.map +1 -1
- package/dist/web-components.d.ts +6 -6
- package/dist/web-components.js +301 -296
- package/dist/web-components.min.js +316 -316
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 30 Oct 2024 04:06:40 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [3.0.0-beta.72](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.72)
|
|
8
|
+
|
|
9
|
+
Wed, 30 Oct 2024 04:06:40 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.71..@fluentui/web-components_v3.0.0-beta.72)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- add swapStates function for attribute-driven internal states ([PR #33156](https://github.com/microsoft/fluentui/pull/33156) by 863023+radium-v@users.noreply.github.com)
|
|
15
|
+
|
|
7
16
|
## [3.0.0-beta.71](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.71)
|
|
8
17
|
|
|
9
|
-
Tue, 29 Oct 2024 04:06:
|
|
18
|
+
Tue, 29 Oct 2024 04:06:49 GMT
|
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.70..@fluentui/web-components_v3.0.0-beta.71)
|
|
11
20
|
|
|
12
21
|
### Changes
|
|
@@ -101,7 +101,7 @@ export declare class AccordionItem extends BaseAccordionItem {
|
|
|
101
101
|
* @param prev - previous value
|
|
102
102
|
* @param next - next value
|
|
103
103
|
*/
|
|
104
|
-
sizeChanged(prev: AccordionItemSize, next: AccordionItemSize): void;
|
|
104
|
+
sizeChanged(prev: AccordionItemSize | undefined, next: AccordionItemSize | undefined): void;
|
|
105
105
|
/**
|
|
106
106
|
* Sets expand and collapsed icon position.
|
|
107
107
|
*
|
|
@@ -115,7 +115,7 @@ export declare class AccordionItem extends BaseAccordionItem {
|
|
|
115
115
|
* @param prev - previous value
|
|
116
116
|
* @param next - next value
|
|
117
117
|
*/
|
|
118
|
-
markerPositionChanged(prev: AccordionItemMarkerPosition, next: AccordionItemMarkerPosition): void;
|
|
118
|
+
markerPositionChanged(prev: AccordionItemMarkerPosition | undefined, next: AccordionItemMarkerPosition | undefined): void;
|
|
119
119
|
/**
|
|
120
120
|
* Sets the width of the focus state.
|
|
121
121
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { AccordionItem, AccordionItemOptions } from './accordion-item.js';
|
|
3
3
|
export declare function accordionItemTemplate<T extends AccordionItem>(options?: AccordionItemOptions): ElementViewTemplate<T>;
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import { StartEnd } from '../patterns/index.js';
|
|
3
2
|
import type { StartEndOptions } from '../patterns/index.js';
|
|
4
|
-
import {
|
|
3
|
+
import { StartEnd } from '../patterns/index.js';
|
|
4
|
+
import { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize, type AnchorTarget } from './anchor-button.options.js';
|
|
5
5
|
/**
|
|
6
6
|
* Anchor configuration options
|
|
7
7
|
* @public
|
|
@@ -43,7 +43,7 @@ export declare const AnchorButtonSize: {
|
|
|
43
43
|
* @public
|
|
44
44
|
*/
|
|
45
45
|
export type AnchorButtonSize = ValuesOf<typeof AnchorButtonSize>;
|
|
46
|
-
export { AnchorOptions as AnchorButtonOptions };
|
|
46
|
+
export type { AnchorOptions as AnchorButtonOptions };
|
|
47
47
|
/**
|
|
48
48
|
* Anchor target values.
|
|
49
49
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementViewTemplate, ViewTemplate } from '@microsoft/fast-element';
|
|
1
|
+
import { type ElementViewTemplate, type ViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { AnchorButton, AnchorOptions } from './anchor-button.js';
|
|
3
3
|
/**
|
|
4
4
|
* The template for the Button component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import { AvatarActive, AvatarAppearance, AvatarColor, AvatarNamedColor, AvatarShape, AvatarSize } from './avatar.options.js';
|
|
2
|
+
import { type AvatarActive, type AvatarAppearance, AvatarColor, AvatarNamedColor, type AvatarShape, type AvatarSize } from './avatar.options.js';
|
|
3
3
|
/**
|
|
4
4
|
* The base class used for constructing a fluent-avatar custom element
|
|
5
5
|
* @public
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
2
|
import { StartEnd } from '../patterns/index.js';
|
|
3
|
-
import
|
|
4
|
-
import { ButtonType } from './button.options.js';
|
|
3
|
+
import { ButtonAppearance, ButtonFormTarget, ButtonShape, ButtonSize, ButtonType } from './button.options.js';
|
|
5
4
|
/**
|
|
6
5
|
* A Button Custom HTML Element.
|
|
7
6
|
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | `<button>`} element.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { Button } from './button.js';
|
|
3
|
-
import { ButtonOptions } from './button.options.js';
|
|
3
|
+
import type { ButtonOptions } from './button.options.js';
|
|
4
4
|
/**
|
|
5
5
|
* Generates a template for the Button component.
|
|
6
6
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { CompoundButton } from './compound-button.js';
|
|
3
3
|
import type { CompoundButtonOptions } from './compound-button.options.js';
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { CounterBadge } from './counter-badge.js';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { CounterBadge } from './counter-badge.js';
|
|
3
3
|
/**
|
|
4
4
|
* The template for the Counter Badge component.
|
|
5
5
|
* @public
|
|
@@ -45,7 +45,7 @@ export declare class BaseDivider extends FASTElement {
|
|
|
45
45
|
* @param next - the current orientation value
|
|
46
46
|
* @internal
|
|
47
47
|
*/
|
|
48
|
-
orientationChanged(previous:
|
|
48
|
+
orientationChanged(previous: DividerRole | undefined, next: DividerRole | undefined): void;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* A Divider Custom HTML Element.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { Divider } from './divider.js';
|
|
3
3
|
export declare function dividerTemplate<T extends Divider>(): ElementViewTemplate<T>;
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { Label } from './label.js';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { Label } from './label.js';
|
|
3
3
|
/**
|
|
4
4
|
* The template for the Fluent label web-component.
|
|
5
5
|
* @public
|
package/dist/dts/link/link.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseAnchor } from '../anchor-button/anchor-button.js';
|
|
2
|
-
import {
|
|
2
|
+
import { LinkAppearance } from './link.options.js';
|
|
3
3
|
/**
|
|
4
4
|
* An Anchor Custom HTML Element.
|
|
5
5
|
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
|
package/dist/dts/menu/menu.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { Menu } from './menu.js';
|
|
3
3
|
export declare function menuTemplate<T extends Menu>(): ElementViewTemplate<T>;
|
|
4
4
|
export declare const template: ElementViewTemplate<Menu>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementsFilter, FASTElement } from '@microsoft/fast-element';
|
|
1
|
+
import { type ElementsFilter, FASTElement } from '@microsoft/fast-element';
|
|
2
2
|
import type { StartEndOptions } from '../patterns/start-end.js';
|
|
3
3
|
import { StartEnd } from '../patterns/start-end.js';
|
|
4
4
|
import type { StaticallyComposableHTML } from '../utils/template-helpers.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { MenuList } from './menu-list.js';
|
|
3
3
|
export declare function menuTemplate<T extends MenuList>(): ElementViewTemplate<T>;
|
|
4
4
|
export declare const template: ElementViewTemplate<MenuList>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { RadioGroup } from './radio-group.js';
|
|
3
3
|
export declare function radioGroupTemplate<T extends RadioGroup>(): ElementViewTemplate<T>;
|
|
4
4
|
export declare const template: ElementViewTemplate<RadioGroup>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
2
|
import { Direction, Orientation } from '@microsoft/fast-web-utilities';
|
|
3
|
-
import { SliderConfiguration, SliderMode, SliderSize } from './slider.options.js';
|
|
3
|
+
import { type SliderConfiguration, SliderMode, SliderSize } from './slider.options.js';
|
|
4
4
|
/**
|
|
5
5
|
* The base class used for constructing a fluent-slider custom element
|
|
6
6
|
*
|
|
@@ -38,7 +38,7 @@ export declare class Slider extends FASTElement implements SliderConfiguration {
|
|
|
38
38
|
* HTML Attribute: size
|
|
39
39
|
*/
|
|
40
40
|
size?: SliderSize;
|
|
41
|
-
protected sizeChanged(prev:
|
|
41
|
+
protected sizeChanged(prev: SliderSize | undefined, next: SliderSize | undefined): void;
|
|
42
42
|
handleChange(_: any, propertyName: string): void;
|
|
43
43
|
private stepStyles?;
|
|
44
44
|
/**
|
|
@@ -277,7 +277,7 @@ export declare class Slider extends FASTElement implements SliderConfiguration {
|
|
|
277
277
|
* apply different behavior when it’s vertical.
|
|
278
278
|
*/
|
|
279
279
|
orientation?: Orientation;
|
|
280
|
-
protected orientationChanged(prev:
|
|
280
|
+
protected orientationChanged(prev: Orientation | undefined, next: Orientation | undefined): void;
|
|
281
281
|
/**
|
|
282
282
|
* The selection mode.
|
|
283
283
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import
|
|
2
|
+
import { SpinnerAppearance, SpinnerSize } from './spinner.options.js';
|
|
3
3
|
/**
|
|
4
4
|
* The base class used for constructing a fluent-spinner custom element
|
|
5
5
|
* @public
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Spinner } from './spinner.js';
|
|
1
|
+
import type { Spinner } from './spinner.js';
|
|
2
2
|
export declare const template: import("@microsoft/fast-element").ViewTemplate<Spinner, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { Switch, SwitchOptions } from './switch.js';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { Switch, SwitchOptions } from './switch.js';
|
|
3
3
|
export declare function switchTemplate<T extends Switch>(options?: SwitchOptions): ElementViewTemplate<T>;
|
|
4
4
|
export declare const template: ElementViewTemplate<Switch>;
|
package/dist/dts/tab/tab.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import {
|
|
2
|
+
import type { StartEndOptions } from '../patterns/start-end.js';
|
|
3
|
+
import { StartEnd } from '../patterns/start-end.js';
|
|
3
4
|
/**
|
|
4
5
|
* Tab configuration options
|
|
5
6
|
* @public
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { Tab, TabOptions } from './tab.js';
|
|
3
3
|
export declare function tabTemplate<T extends Tab>(options?: TabOptions): ElementViewTemplate<T>;
|
|
4
4
|
export declare const template: ElementViewTemplate<Tab, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { TabPanel } from './tab-panel.js';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { TabPanel } from './tab-panel.js';
|
|
3
3
|
export declare function tabPanelTemplate<T extends TabPanel>(): ElementViewTemplate<T>;
|
|
4
4
|
export declare const template: ElementViewTemplate<TabPanel, any>;
|
package/dist/dts/tabs/tabs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
2
|
import { StartEnd } from '../patterns/index.js';
|
|
3
|
-
import { TabsAppearance, TabsOrientation, TabsSize } from './tabs.options.js';
|
|
3
|
+
import { TabsAppearance, TabsOrientation, type TabsSize } from './tabs.options.js';
|
|
4
4
|
/**
|
|
5
5
|
* A Tabs component that wraps a collection of tab and tab panel elements.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StartEndOptions } from '../patterns/
|
|
1
|
+
import type { StartEndOptions } from '../patterns/start-end.js';
|
|
2
2
|
import type { ValuesOf } from '../utils/index.js';
|
|
3
|
-
import { Tabs } from './tabs.js';
|
|
3
|
+
import type { Tabs } from './tabs.js';
|
|
4
4
|
export declare const TabsAppearance: {
|
|
5
5
|
readonly subtle: "subtle";
|
|
6
6
|
readonly transparent: "transparent";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { Tabs } from './tabs.js';
|
|
3
|
-
import { TabsOptions } from './tabs.options.js';
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { Tabs } from './tabs.js';
|
|
3
|
+
import type { TabsOptions } from './tabs.options.js';
|
|
4
4
|
export declare function tabsTemplate<T extends Tabs>(options?: TabsOptions): ElementViewTemplate<T>;
|
|
5
5
|
export declare const template: ElementViewTemplate<Tabs, any>;
|
package/dist/dts/text/text.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import
|
|
2
|
+
import { TextAlign, TextFont, TextSize, TextWeight } from './text.options.js';
|
|
3
3
|
/**
|
|
4
4
|
* The base class used for constructing a fluent-text custom element
|
|
5
5
|
* @public
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
2
|
import { StartEnd } from '../patterns/start-end.js';
|
|
3
|
-
import
|
|
4
|
-
import { TextInputAppearance, TextInputType } from './text-input.options.js';
|
|
3
|
+
import { TextInputAppearance, TextInputControlSize, TextInputType } from './text-input.options.js';
|
|
5
4
|
/**
|
|
6
5
|
* A Text Input Custom HTML Element.
|
|
7
6
|
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input | `<input>`} element.
|
|
@@ -32,4 +32,26 @@ export declare function stateSelector<S extends string>(state: S): StateSelector
|
|
|
32
32
|
* @param force - force the state to be toggled on or off
|
|
33
33
|
* @internal
|
|
34
34
|
*/
|
|
35
|
-
export declare function toggleState(elementInternals: ElementInternals, state: string, force?: boolean): void;
|
|
35
|
+
export declare function toggleState(elementInternals: ElementInternals, state: string | undefined, force?: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given attribute value is a valid state. Attribute values are often kebab-cased, so this function converts
|
|
38
|
+
* the kebab-cased `state` to camelCase and checks if it exists in as a key in the `States` object.
|
|
39
|
+
*
|
|
40
|
+
* @param States - the object containing valid states for the attribute
|
|
41
|
+
* @param state - the state to check
|
|
42
|
+
* @returns true if the state is in the States object
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
export declare function hasMatchingState(States: Record<string, string> | undefined, state: string | undefined): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Swap an old state for a new state.
|
|
48
|
+
*
|
|
49
|
+
* @param elementInternals - the `ElementInternals` instance for the component
|
|
50
|
+
* @param prev - the previous state to remove
|
|
51
|
+
* @param next - the new state to add
|
|
52
|
+
* @param States - the object containing valid states for the attribute
|
|
53
|
+
* @param prefix - an optional prefix to add to the state
|
|
54
|
+
*
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
export declare function swapStates(elementInternals: ElementInternals, prev?: string | undefined, next?: string | undefined, States?: Record<string, string>, prefix?: string): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CaptureType, HTMLDirective } from '@microsoft/fast-element';
|
|
2
|
-
import type { SyntheticViewTemplate } from '@microsoft/fast-element';
|
|
1
|
+
import { type CaptureType, type HTMLDirective, type SyntheticViewTemplate } from '@microsoft/fast-element';
|
|
3
2
|
/**
|
|
4
3
|
* A value that can be statically composed into a
|
|
5
4
|
* foundation template.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.template.js","sourceRoot":"","sources":["../../../src/accordion/accordion.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"accordion.template.js","sourceRoot":"","sources":["../../../src/accordion/accordion.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA4B,IAAI,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAG5F;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO,IAAI,CAAG;;cAEF,OAAO,CAAC,EAAE,QAAQ,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,CAAC;;GAE7E,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAmC,iBAAiB,EAAE,CAAC"}
|
|
@@ -3,7 +3,8 @@ import { attr, FASTElement, nullableNumberConverter } from '@microsoft/fast-elem
|
|
|
3
3
|
import { uniqueId } from '@microsoft/fast-web-utilities';
|
|
4
4
|
import { StartEnd } from '../patterns/index.js';
|
|
5
5
|
import { applyMixins } from '../utils/apply-mixins.js';
|
|
6
|
-
import { toggleState } from '../utils/element-internals.js';
|
|
6
|
+
import { swapStates, toggleState } from '../utils/element-internals.js';
|
|
7
|
+
import { AccordionItemMarkerPosition, AccordionItemSize } from './accordion-item.options.js';
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
9
10
|
* @slot start - Content positioned before heading in the collapsed state
|
|
@@ -117,12 +118,7 @@ export class AccordionItem extends BaseAccordionItem {
|
|
|
117
118
|
* @param next - next value
|
|
118
119
|
*/
|
|
119
120
|
sizeChanged(prev, next) {
|
|
120
|
-
|
|
121
|
-
toggleState(this.elementInternals, prev, false);
|
|
122
|
-
}
|
|
123
|
-
if (next) {
|
|
124
|
-
toggleState(this.elementInternals, next, true);
|
|
125
|
-
}
|
|
121
|
+
swapStates(this.elementInternals, prev, next, AccordionItemSize);
|
|
126
122
|
}
|
|
127
123
|
/**
|
|
128
124
|
* Handles changes to marker-position attribute
|
|
@@ -130,12 +126,7 @@ export class AccordionItem extends BaseAccordionItem {
|
|
|
130
126
|
* @param next - next value
|
|
131
127
|
*/
|
|
132
128
|
markerPositionChanged(prev, next) {
|
|
133
|
-
|
|
134
|
-
toggleState(this.elementInternals, `align-${prev}`, false);
|
|
135
|
-
}
|
|
136
|
-
if (next) {
|
|
137
|
-
toggleState(this.elementInternals, `align-${next}`, true);
|
|
138
|
-
}
|
|
129
|
+
swapStates(this.elementInternals, prev, next, AccordionItemMarkerPosition, 'align-');
|
|
139
130
|
}
|
|
140
131
|
/**
|
|
141
132
|
* Handles changes to block attribute
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAW7F;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAAlD;;QACE;;;;WAIG;QACI,qBAAgB,GAAqB,IAAI,CAAC,eAAe,EAAE,CAAC;QAEnE;;;;;;;WAOG;QAMI,iBAAY,GAA0B,CAAC,CAAC;QAE/C;;;;;;WAMG;QAEI,aAAQ,GAAY,KAAK,CAAC;QAWjC;;;;;;WAMG;QAEI,aAAQ,GAAY,KAAK,CAAC;QAWjC;;;;;;WAMG;QAEI,OAAE,GAAW,QAAQ,CAAC,YAAY,CAAC,CAAC;IAM7C,CAAC;IA1CC;;;;OAIG;IACI,eAAe,CAAC,IAAa,EAAE,IAAa;QACjD,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;IAYD;;;;OAIG;IACI,eAAe,CAAC,IAAa,EAAE,IAAa;QACjD,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CAgBF;AAtDQ;IALN,IAAI,CAAC;QACJ,SAAS,EAAE,eAAe;QAC1B,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,uBAAuB;KACnC,CAAC;uDAC6C;AAUxC;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;mDACO;AAmB1B;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;mDACO;AAmB1B;IADN,IAAI;6CACsC;AAQ7C;;;;;GAKG;AACH,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IAApD;;QA0CE;;;;;;WAMG;QAEI,UAAK,GAAY,KAAK,CAAC;IAUhC,CAAC;IAjDC;;;;OAIG;IACI,WAAW,CAAC,IAAmC,EAAE,IAAmC;QACzF,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC;IACnE,CAAC;IAYD;;;;OAIG;IACI,qBAAqB,CAC1B,IAA6C,EAC7C,IAA6C;QAE7C,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,2BAA2B,EAAE,QAAQ,CAAC,CAAC;IACvF,CAAC;IAYD;;;;OAIG;IACI,YAAY,CAAC,IAAa,EAAE,IAAa;QAC9C,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;CACF;AAnDQ;IADN,IAAI;2CAC2B;AAmBzB;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;qDACa;AAsB7C;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;4CACI;AAoBhC,WAAW,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.template.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"accordion-item.template.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,IAAI,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAGtD,MAAM,oBAAoB,GAAG,IAAI,CAAC,OAAO,CAAC;;;;;;;;;;;;;OAanC,CAAC,CAAC;AAET,MAAM,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC;;;;;;;;;;;;;OAalC,CAAC,CAAC;AAET,MAAM,UAAU,qBAAqB,CACnC,UAAgC,EAAE;IAElC,OAAO,IAAI,CAAG;qEACqD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;;;;UAI9E,GAAG,CAAC,cAAc,CAAC;qBACR,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;yBAC/B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;cACpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;;;;QAIf,iBAAiB,CAAC,OAAO,CAAC;sCACI,iBAAiB,CAAC,OAAO,CAAC,YAAY,CAAC;uCACtC,iBAAiB,CAAC,OAAO,CAAC,aAAa,CAAC;;8CAEjC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,0CAA0C,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;;;GAGvG,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAuC,qBAAqB,CAAC;IAChF,aAAa,EAAE,oBAAoB;IACnC,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC"}
|