@fluentui/web-components 3.0.0-beta.54 → 3.0.0-beta.56
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 +21 -2
- package/dist/dts/anchor-button/index.d.ts +1 -1
- package/dist/dts/helpers.tests.d.ts +22 -0
- package/dist/dts/index-rollup.d.ts +1 -0
- package/dist/dts/index.d.ts +3 -2
- package/dist/dts/rating-display/index.d.ts +1 -1
- package/dist/dts/rating-display/rating-display.d.ts +65 -33
- package/dist/dts/slider/slider.d.ts +1 -1
- package/dist/dts/styles/states/index.d.ts +36 -0
- package/dist/dts/textarea/define.d.ts +1 -0
- package/dist/dts/textarea/index.d.ts +5 -0
- package/dist/dts/textarea/textarea.bench.d.ts +3 -0
- package/dist/dts/textarea/textarea.d.ts +390 -0
- package/dist/dts/textarea/textarea.definition.d.ts +9 -0
- package/dist/dts/textarea/textarea.options.d.ts +47 -0
- package/dist/dts/textarea/textarea.styles.d.ts +7 -0
- package/dist/dts/textarea/textarea.template.d.ts +12 -0
- package/dist/esm/anchor-button/index.js +1 -1
- package/dist/esm/anchor-button/index.js.map +1 -1
- package/dist/esm/helpers.tests.js +44 -0
- package/dist/esm/helpers.tests.js.map +1 -1
- package/dist/esm/index-rollup.js +1 -0
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/rating-display/index.js +1 -1
- package/dist/esm/rating-display/index.js.map +1 -1
- package/dist/esm/rating-display/rating-display.js +91 -46
- package/dist/esm/rating-display/rating-display.js.map +1 -1
- package/dist/esm/slider/slider.js +1 -1
- package/dist/esm/styles/states/index.js +40 -0
- package/dist/esm/styles/states/index.js.map +1 -1
- package/dist/esm/textarea/define.js +4 -0
- package/dist/esm/textarea/define.js.map +1 -0
- package/dist/esm/textarea/index.js +6 -0
- package/dist/esm/textarea/index.js.map +1 -0
- package/dist/esm/textarea/textarea.bench.js +10 -0
- package/dist/esm/textarea/textarea.bench.js.map +1 -0
- package/dist/esm/textarea/textarea.definition.js +20 -0
- package/dist/esm/textarea/textarea.definition.js.map +1 -0
- package/dist/esm/textarea/textarea.js +605 -0
- package/dist/esm/textarea/textarea.js.map +1 -0
- package/dist/esm/textarea/textarea.options.js +56 -0
- package/dist/esm/textarea/textarea.options.js.map +1 -0
- package/dist/esm/textarea/textarea.styles.js +268 -0
- package/dist/esm/textarea/textarea.styles.js.map +1 -0
- package/dist/esm/textarea/textarea.template.js +54 -0
- package/dist/esm/textarea/textarea.template.js.map +1 -0
- package/dist/web-components.d.ts +540 -47
- package/dist/web-components.js +1150 -561
- package/dist/web-components.min.js +284 -280
- package/package.json +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 14 Aug 2024 04:07:21 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [3.0.0-beta.56](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.56)
|
|
8
|
+
|
|
9
|
+
Wed, 14 Aug 2024 04:07:21 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.55..@fluentui/web-components_v3.0.0-beta.56)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- feat(web-components): add fluent-textarea component ([PR #32037](https://github.com/microsoft/fluentui/pull/32037) by machi@microsoft.com)
|
|
15
|
+
- export BaseAnchor class ([PR #32295](https://github.com/microsoft/fluentui/pull/32295) by rupertdavid@microsoft.com)
|
|
16
|
+
|
|
17
|
+
## [3.0.0-beta.55](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.55)
|
|
18
|
+
|
|
19
|
+
Thu, 08 Aug 2024 04:07:16 GMT
|
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.54..@fluentui/web-components_v3.0.0-beta.55)
|
|
21
|
+
|
|
22
|
+
### Changes
|
|
23
|
+
|
|
24
|
+
- [chore]: [rating-display] move size, color and generate icons out of base class ([PR #32239](https://github.com/microsoft/fluentui/pull/32239) by jes@microsoft.com)
|
|
25
|
+
|
|
7
26
|
## [3.0.0-beta.54](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.54)
|
|
8
27
|
|
|
9
|
-
Tue, 06 Aug 2024 04:07:
|
|
28
|
+
Tue, 06 Aug 2024 04:07:08 GMT
|
|
10
29
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.53..@fluentui/web-components_v3.0.0-beta.54)
|
|
11
30
|
|
|
12
31
|
### Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { definition as AnchorButtonDefinition } from './anchor-button.definition.js';
|
|
2
|
-
export { AnchorButton } from './anchor-button.js';
|
|
2
|
+
export { BaseAnchor, AnchorButton } from './anchor-button.js';
|
|
3
3
|
export { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize, AnchorTarget } from './anchor-button.options.js';
|
|
4
4
|
export type { AnchorButtonOptions } from './anchor-button.options.js';
|
|
5
5
|
export { template as AnchorButtonTemplate } from './anchor-button.template.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ExpectMatcherState, type Locator } from '@playwright/test';
|
|
1
2
|
/**
|
|
2
3
|
* Returns a formatted URL for a given Storybook fixture.
|
|
3
4
|
*
|
|
@@ -6,3 +7,24 @@
|
|
|
6
7
|
* @returns - the local URL for the Storybook fixture iframe
|
|
7
8
|
*/
|
|
8
9
|
export declare function fixtureURL(id?: string, args?: Record<string, any>): string;
|
|
10
|
+
/**
|
|
11
|
+
* Evaluate whether an element has the given state or not on its `elementInternals` property.
|
|
12
|
+
*
|
|
13
|
+
* @param locator - The Playwright locator for the element.
|
|
14
|
+
* @param state - The name of the state.
|
|
15
|
+
* @param expected - Whether the given state is expected to exist.
|
|
16
|
+
* @param has - Whether the element is expected to have or not have the given state, defaults to `true`.
|
|
17
|
+
*/
|
|
18
|
+
declare function toHaveCustomState(this: ExpectMatcherState, locator: Locator, state: string, options?: {
|
|
19
|
+
timeout?: number;
|
|
20
|
+
}): Promise<{
|
|
21
|
+
name: string;
|
|
22
|
+
message: () => string;
|
|
23
|
+
pass: boolean;
|
|
24
|
+
expected: boolean;
|
|
25
|
+
actual: any;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const expect: import("@playwright/test").Expect<{
|
|
28
|
+
toHaveCustomState: typeof toHaveCustomState;
|
|
29
|
+
}>;
|
|
30
|
+
export {};
|
|
@@ -32,6 +32,7 @@ import './tab-panel/define.js';
|
|
|
32
32
|
import './tab/define.js';
|
|
33
33
|
import './tabs/define.js';
|
|
34
34
|
import './tablist/define.js';
|
|
35
|
+
import './textarea/define.js';
|
|
35
36
|
import './text-input/define.js';
|
|
36
37
|
import './text/define.js';
|
|
37
38
|
import './toggle-button/define.js';
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type { SlottableInput } from './field/index.js';
|
|
|
20
20
|
export { FluentDesignSystem } from './fluent-design-system.js';
|
|
21
21
|
export { Image, ImageDefinition, ImageFit, ImageShape, ImageStyles, ImageTemplate } from './image/index.js';
|
|
22
22
|
export { Label, LabelDefinition, LabelSize, LabelStyles, LabelTemplate, LabelWeight } from './label/index.js';
|
|
23
|
-
export { AnchorButton, AnchorButtonAppearance, AnchorButtonDefinition, AnchorButtonShape, AnchorButtonSize, AnchorButtonTemplate, AnchorTarget, } from './anchor-button/index.js';
|
|
23
|
+
export { BaseAnchor, AnchorButton, AnchorButtonAppearance, AnchorButtonDefinition, AnchorButtonShape, AnchorButtonSize, AnchorButtonTemplate, AnchorTarget, } from './anchor-button/index.js';
|
|
24
24
|
export { MenuButton, MenuButtonAppearance, MenuButtonDefinition, MenuButtonShape, MenuButtonSize, MenuButtonStyles, MenuButtonTemplate, } from './menu-button/index.js';
|
|
25
25
|
export type { MenuButtonOptions } from './menu-button/index.js';
|
|
26
26
|
export { MenuItem, MenuItemDefinition, MenuItemRole, MenuItemStyles, MenuItemTemplate, roleForMenuItem, } from './menu-item/index.js';
|
|
@@ -33,7 +33,7 @@ export { BaseProgressBar, ProgressBar, ProgressBarDefinition, ProgressBarShape,
|
|
|
33
33
|
export { RadioGroup, RadioGroupDefinition, RadioGroupOrientation, RadioGroupStyles, RadioGroupTemplate, } from './radio-group/index.js';
|
|
34
34
|
export { Radio, RadioDefinition, RadioStyles, RadioTemplate } from './radio/index.js';
|
|
35
35
|
export type { RadioControl, RadioOptions } from './radio/index.js';
|
|
36
|
-
export { RatingDisplay, RatingDisplayColor, RatingDisplayDefinition, RatingDisplaySize, RatingDisplayStyles, RatingDisplayTemplate, } from './rating-display/index.js';
|
|
36
|
+
export { BaseRatingDisplay, RatingDisplay, RatingDisplayColor, RatingDisplayDefinition, RatingDisplaySize, RatingDisplayStyles, RatingDisplayTemplate, } from './rating-display/index.js';
|
|
37
37
|
export { Slider, SliderDefinition, SliderMode, SliderOrientation, SliderSize, SliderStyles, SliderTemplate, } from './slider/index.js';
|
|
38
38
|
export type { SliderConfiguration, SliderOptions } from './slider/index.js';
|
|
39
39
|
export { BaseSpinner, Spinner, SpinnerAppearance, SpinnerDefinition, SpinnerSize, SpinnerStyles, SpinnerTemplate, } from './spinner/index.js';
|
|
@@ -46,6 +46,7 @@ export type { TabOptions } from './tab/index.js';
|
|
|
46
46
|
export { Tabs, TabsAppearance, TabsDefinition, TabsOrientation, TabsSize, TabsStyles, TabsTemplate, } from './tabs/index.js';
|
|
47
47
|
export { BaseTablist, Tablist, TablistAppearance, TablistDefinition, TablistOrientation, TablistSize, TablistStyles, TablistTemplate, } from './tablist/index.js';
|
|
48
48
|
export type { TabsOptions } from './tabs/index.js';
|
|
49
|
+
export { BaseTextArea, TextArea, TextAreaAppearance, TextAreaAutocomplete, TextAreaDefinition, TextAreaResize, TextAreaSize, TextAreaStyles, TextAreaTemplate, } from './textarea/index.js';
|
|
49
50
|
export { BaseTextInput, TextInput, TextInputAppearance, TextInputControlSize, TextInputDefinition, TextInputStyles, TextInputTemplate, TextInputType, } from './text-input/index.js';
|
|
50
51
|
export type { TextInputOptions } from './text-input/index.js';
|
|
51
52
|
export { Text, TextAlign, TextDefinition, TextFont, TextSize, TextStyles, TextTemplate, TextWeight, } from './text/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { RatingDisplay } from './rating-display.js';
|
|
1
|
+
export { BaseRatingDisplay, RatingDisplay } from './rating-display.js';
|
|
2
2
|
export { RatingDisplayColor, RatingDisplaySize } from './rating-display.options.js';
|
|
3
3
|
export { template as RatingDisplayTemplate } from './rating-display.template.js';
|
|
4
4
|
export { styles as RatingDisplayStyles } from './rating-display.styles.js';
|
|
@@ -4,7 +4,7 @@ import { RatingDisplayColor, RatingDisplaySize } from './rating-display.options.
|
|
|
4
4
|
* The base class used for constructing a fluent-rating-display custom element
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class BaseRatingDisplay extends FASTElement {
|
|
8
8
|
/**
|
|
9
9
|
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
10
10
|
*
|
|
@@ -12,47 +12,81 @@ export declare class RatingDisplay extends FASTElement {
|
|
|
12
12
|
*/
|
|
13
13
|
elementInternals: ElementInternals;
|
|
14
14
|
/**
|
|
15
|
-
* The
|
|
15
|
+
* The number of ratings.
|
|
16
16
|
*
|
|
17
17
|
* @public
|
|
18
|
-
* @default `marigold`
|
|
19
18
|
* @remarks
|
|
20
|
-
* HTML Attribute: `
|
|
19
|
+
* HTML Attribute: `count`
|
|
21
20
|
*/
|
|
22
|
-
|
|
21
|
+
count?: number;
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
23
|
+
* The maximum possible value of the rating.
|
|
24
|
+
* This attribute determines the number of icons displayed.
|
|
25
|
+
* Must be a whole number greater than 1.
|
|
25
26
|
*
|
|
26
|
-
* @
|
|
27
|
-
* @
|
|
27
|
+
* @public
|
|
28
|
+
* @remarks
|
|
29
|
+
* HTML Attribute: `max`
|
|
28
30
|
*/
|
|
29
|
-
|
|
31
|
+
max?: number;
|
|
30
32
|
/**
|
|
31
|
-
*
|
|
33
|
+
* The value of the rating.
|
|
32
34
|
*
|
|
33
35
|
* @public
|
|
34
36
|
* @remarks
|
|
35
|
-
* HTML Attribute: `
|
|
37
|
+
* HTML Attribute: `value`
|
|
36
38
|
*/
|
|
37
|
-
|
|
39
|
+
value?: number;
|
|
40
|
+
private intlNumberFormatter;
|
|
41
|
+
constructor();
|
|
38
42
|
/**
|
|
39
|
-
*
|
|
43
|
+
* Returns "count" as string, formatted according to the locale.
|
|
40
44
|
*
|
|
41
|
-
* @
|
|
42
|
-
* @remarks
|
|
43
|
-
* HTML Attribute: `count`
|
|
45
|
+
* @internal
|
|
44
46
|
*/
|
|
45
|
-
|
|
47
|
+
get formattedCount(): string;
|
|
46
48
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
49
|
+
* Gets the selected value
|
|
50
|
+
*
|
|
51
|
+
* @protected
|
|
52
|
+
*/
|
|
53
|
+
protected getSelectedValue(): number;
|
|
54
|
+
/**
|
|
55
|
+
* Gets the maximum icons to render
|
|
56
|
+
*
|
|
57
|
+
* @protected
|
|
58
|
+
*/
|
|
59
|
+
protected getMaxIcons(): number;
|
|
60
|
+
/**
|
|
61
|
+
* Generates the icon SVG elements based on the "max" attribute.
|
|
62
|
+
*
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
generateIcons(): string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A Rating Dislpay Custom HTML Element.
|
|
69
|
+
* Based on BaseRatingDisplay and includes style and layout specific attributes
|
|
70
|
+
*
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export declare class RatingDisplay extends BaseRatingDisplay {
|
|
74
|
+
/**
|
|
75
|
+
* The color of the rating display icons.
|
|
50
76
|
*
|
|
51
77
|
* @public
|
|
78
|
+
* @default `marigold`
|
|
52
79
|
* @remarks
|
|
53
|
-
* HTML Attribute: `
|
|
80
|
+
* HTML Attribute: `color`
|
|
54
81
|
*/
|
|
55
|
-
|
|
82
|
+
color?: RatingDisplayColor;
|
|
83
|
+
/**
|
|
84
|
+
* Handles changes to the color attribute.
|
|
85
|
+
*
|
|
86
|
+
* @param prev - The previous state
|
|
87
|
+
* @param next - The next state
|
|
88
|
+
*/
|
|
89
|
+
colorChanged(prev: RatingDisplayColor | undefined, next: RatingDisplayColor | undefined): void;
|
|
56
90
|
/**
|
|
57
91
|
* The size of the component.
|
|
58
92
|
*
|
|
@@ -70,25 +104,23 @@ export declare class RatingDisplay extends FASTElement {
|
|
|
70
104
|
*/
|
|
71
105
|
sizeChanged(prev: RatingDisplaySize | undefined, next: RatingDisplaySize | undefined): void;
|
|
72
106
|
/**
|
|
73
|
-
*
|
|
107
|
+
* Renders a single filled icon with a label next to it.
|
|
74
108
|
*
|
|
75
109
|
* @public
|
|
76
110
|
* @remarks
|
|
77
|
-
* HTML Attribute: `
|
|
111
|
+
* HTML Attribute: `compact`
|
|
78
112
|
*/
|
|
79
|
-
|
|
80
|
-
private intlNumberFormatter;
|
|
81
|
-
constructor();
|
|
113
|
+
compact: boolean;
|
|
82
114
|
/**
|
|
83
|
-
*
|
|
115
|
+
* Overrides the selected value and returns 1 if compact is true.
|
|
84
116
|
*
|
|
85
|
-
* @
|
|
117
|
+
* @override
|
|
86
118
|
*/
|
|
87
|
-
|
|
119
|
+
protected getSelectedValue(): number;
|
|
88
120
|
/**
|
|
89
|
-
*
|
|
121
|
+
* Overrides the maximum icons and returns a max of 1 if compact is true.
|
|
90
122
|
*
|
|
91
|
-
* @
|
|
123
|
+
* @override
|
|
92
124
|
*/
|
|
93
|
-
|
|
125
|
+
protected getMaxIcons(): number;
|
|
94
126
|
}
|
|
@@ -7,7 +7,7 @@ import { SliderConfiguration, SliderMode, SliderSize } from './slider.options.js
|
|
|
7
7
|
* @slot thumb - The slot for a custom thumb element.
|
|
8
8
|
* @csspart thumb-container - The container element of the thumb.
|
|
9
9
|
* @csspart track-container - The container element of the track.
|
|
10
|
-
* @
|
|
10
|
+
* @fires change - Fires a custom 'change' event when the value changes.
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
@@ -218,3 +218,39 @@ export declare const expandedState: import("@microsoft/fast-element").CSSDirecti
|
|
|
218
218
|
* @public
|
|
219
219
|
*/
|
|
220
220
|
export declare const blockState: import("@microsoft/fast-element").CSSDirective;
|
|
221
|
+
/**
|
|
222
|
+
* Selector for the `resize` state. This indicates the element is resizable.
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
export declare const resizeState: import("@microsoft/fast-element").CSSDirective;
|
|
226
|
+
/**
|
|
227
|
+
* Selector for the `resize-horizontal` state.
|
|
228
|
+
* @public
|
|
229
|
+
*/
|
|
230
|
+
export declare const resizeHorizontalState: import("@microsoft/fast-element").CSSDirective;
|
|
231
|
+
/**
|
|
232
|
+
* Selector for the `resize-vertical` state.
|
|
233
|
+
* @public
|
|
234
|
+
*/
|
|
235
|
+
export declare const resizeVerticalState: import("@microsoft/fast-element").CSSDirective;
|
|
236
|
+
/**
|
|
237
|
+
* Selector for the `resize-both` state.
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
export declare const resizeBothState: import("@microsoft/fast-element").CSSDirective;
|
|
241
|
+
/**
|
|
242
|
+
* Selector for the `auto-resize` state.
|
|
243
|
+
* @public
|
|
244
|
+
*/
|
|
245
|
+
export declare const autoResizeState: import("@microsoft/fast-element").CSSDirective;
|
|
246
|
+
/**
|
|
247
|
+
* Selector for the `display-shadow` state.
|
|
248
|
+
* @public
|
|
249
|
+
*/
|
|
250
|
+
export declare const displayShadowState: import("@microsoft/fast-element").CSSDirective;
|
|
251
|
+
export declare const userInvalidState: import("@microsoft/fast-element").CSSDirective;
|
|
252
|
+
/**
|
|
253
|
+
* Selector for the `user-valid` state.
|
|
254
|
+
* @public
|
|
255
|
+
*/
|
|
256
|
+
export declare const userValidState: import("@microsoft/fast-element").CSSDirective;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { definition as TextAreaDefinition } from './textarea.definition.js';
|
|
2
|
+
export { BaseTextArea, TextArea } from './textarea.js';
|
|
3
|
+
export { TextAreaAppearance, TextAreaAppearancesForDisplayShadow, TextAreaAutocomplete, TextAreaResizableResize, TextAreaHorizontallyResizableResize, TextAreaVerticallyResizableResize, TextAreaResize, TextAreaSize, } from './textarea.options.js';
|
|
4
|
+
export { styles as TextAreaStyles } from './textarea.styles.js';
|
|
5
|
+
export { template as TextAreaTemplate } from './textarea.template.js';
|