@fluentui/web-components 3.0.0-beta.85 → 3.0.0-beta.87
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/dropdown/dropdown.base.d.ts +23 -0
- package/dist/dts/dropdown/dropdown.d.ts +0 -32
- package/dist/dts/tree/index.d.ts +1 -0
- package/dist/dts/tree/tree.base.d.ts +68 -0
- package/dist/dts/tree/tree.d.ts +7 -67
- package/dist/dts/tree-item/index.d.ts +1 -0
- package/dist/dts/tree-item/tree-item.base.d.ts +99 -0
- package/dist/dts/tree-item/tree-item.d.ts +5 -88
- package/dist/dts/tree-item/tree-item.options.d.ts +2 -2
- package/dist/esm/dropdown/dropdown.base.js +50 -0
- package/dist/esm/dropdown/dropdown.base.js.map +1 -1
- package/dist/esm/dropdown/dropdown.js +12 -72
- package/dist/esm/dropdown/dropdown.js.map +1 -1
- package/dist/esm/tree/index.js +1 -0
- package/dist/esm/tree/index.js.map +1 -1
- package/dist/esm/tree/tree.base.js +232 -0
- package/dist/esm/tree/tree.base.js.map +1 -0
- package/dist/esm/tree/tree.js +10 -229
- package/dist/esm/tree/tree.js.map +1 -1
- package/dist/esm/tree/tree.template.js +3 -2
- package/dist/esm/tree/tree.template.js.map +1 -1
- package/dist/esm/tree-item/index.js +1 -0
- package/dist/esm/tree-item/index.js.map +1 -1
- package/dist/esm/tree-item/tree-item.base.js +165 -0
- package/dist/esm/tree-item/tree-item.base.js.map +1 -0
- package/dist/esm/tree-item/tree-item.js +13 -149
- package/dist/esm/tree-item/tree-item.js.map +1 -1
- package/dist/esm/tree-item/tree-item.styles.js +8 -21
- package/dist/esm/tree-item/tree-item.styles.js.map +1 -1
- package/dist/esm/tree-item/tree-item.template.js +5 -7
- package/dist/esm/tree-item/tree-item.template.js.map +1 -1
- package/dist/web-components.d.ts +127 -120
- package/dist/web-components.js +981 -940
- package/dist/web-components.min.js +229 -229
- package/package.json +1 -1
package/dist/web-components.d.ts
CHANGED
|
@@ -1648,6 +1648,13 @@ export declare class BaseDivider extends FASTElement {
|
|
|
1648
1648
|
* @public
|
|
1649
1649
|
*/
|
|
1650
1650
|
export declare class BaseDropdown extends FASTElement {
|
|
1651
|
+
/**
|
|
1652
|
+
* Static property for the anchor positioning fallback observer. The observer is used to flip the listbox when it is
|
|
1653
|
+
* out of view.
|
|
1654
|
+
* @remarks This is only used when the browser does not support CSS anchor positioning.
|
|
1655
|
+
* @internal
|
|
1656
|
+
*/
|
|
1657
|
+
private static AnchorPositionFallbackObserver;
|
|
1651
1658
|
/**
|
|
1652
1659
|
* The ID of the current active descendant.
|
|
1653
1660
|
*
|
|
@@ -2045,6 +2052,22 @@ export declare class BaseDropdown extends FASTElement {
|
|
|
2045
2052
|
* @internal
|
|
2046
2053
|
*/
|
|
2047
2054
|
protected updateFreeformOption(value?: string): void;
|
|
2055
|
+
connectedCallback(): void;
|
|
2056
|
+
disconnectedCallback(): void;
|
|
2057
|
+
/**
|
|
2058
|
+
* Handles the connected event for the listbox.
|
|
2059
|
+
*
|
|
2060
|
+
* @param e - the event object
|
|
2061
|
+
* @internal
|
|
2062
|
+
*/
|
|
2063
|
+
private listboxConnectedHandler;
|
|
2064
|
+
/**
|
|
2065
|
+
* When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
|
|
2066
|
+
* viewport bounds. One static observer is used for all dropdowns.
|
|
2067
|
+
*
|
|
2068
|
+
* @internal
|
|
2069
|
+
*/
|
|
2070
|
+
private anchorPositionFallback;
|
|
2048
2071
|
}
|
|
2049
2072
|
|
|
2050
2073
|
/**
|
|
@@ -3261,6 +3284,105 @@ export declare class BaseTextInput extends FASTElement {
|
|
|
3261
3284
|
setValidity(flags?: Partial<ValidityState>, message?: string, anchor?: HTMLElement): void;
|
|
3262
3285
|
}
|
|
3263
3286
|
|
|
3287
|
+
declare class BaseTreeItem extends FASTElement {
|
|
3288
|
+
/**
|
|
3289
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
3290
|
+
*
|
|
3291
|
+
* @internal
|
|
3292
|
+
*/
|
|
3293
|
+
elementInternals: ElementInternals;
|
|
3294
|
+
constructor();
|
|
3295
|
+
/**
|
|
3296
|
+
* When true, the control will be appear expanded by user interaction.
|
|
3297
|
+
* @public
|
|
3298
|
+
* HTML Attribute: `expanded`
|
|
3299
|
+
*/
|
|
3300
|
+
expanded: boolean;
|
|
3301
|
+
/**
|
|
3302
|
+
* Handles changes to the expanded attribute
|
|
3303
|
+
* @param prev - the previous state
|
|
3304
|
+
* @param next - the next state
|
|
3305
|
+
*
|
|
3306
|
+
* @public
|
|
3307
|
+
*/
|
|
3308
|
+
expandedChanged(prev: boolean, next: boolean): void;
|
|
3309
|
+
/**
|
|
3310
|
+
* When true, the control will appear selected by user interaction.
|
|
3311
|
+
* @public
|
|
3312
|
+
* @remarks
|
|
3313
|
+
* HTML Attribute: selected
|
|
3314
|
+
*/
|
|
3315
|
+
selected: boolean;
|
|
3316
|
+
/**
|
|
3317
|
+
* Handles changes to the selected attribute
|
|
3318
|
+
* @param prev - the previous state
|
|
3319
|
+
* @param next - the next state
|
|
3320
|
+
*
|
|
3321
|
+
* @internal
|
|
3322
|
+
*/
|
|
3323
|
+
protected selectedChanged(prev: boolean, next: boolean): void;
|
|
3324
|
+
/**
|
|
3325
|
+
* When true, the control has no child tree items
|
|
3326
|
+
* @public
|
|
3327
|
+
* HTML Attribute: empty
|
|
3328
|
+
*/
|
|
3329
|
+
empty: boolean;
|
|
3330
|
+
private styles;
|
|
3331
|
+
/**
|
|
3332
|
+
* The indent of the tree item element.
|
|
3333
|
+
* This is not needed once css attr() is supported (--indent: attr(data-indent type(<number>)));
|
|
3334
|
+
* @public
|
|
3335
|
+
*/
|
|
3336
|
+
dataIndent: number | undefined;
|
|
3337
|
+
private dataIndentChanged;
|
|
3338
|
+
childTreeItems: BaseTreeItem[] | undefined;
|
|
3339
|
+
/**
|
|
3340
|
+
* Handles changes to the child tree items
|
|
3341
|
+
*
|
|
3342
|
+
* @public
|
|
3343
|
+
*/
|
|
3344
|
+
childTreeItemsChanged(): void;
|
|
3345
|
+
/**
|
|
3346
|
+
* Updates the childrens indent
|
|
3347
|
+
*
|
|
3348
|
+
* @public
|
|
3349
|
+
*/
|
|
3350
|
+
updateChildTreeItems(): void;
|
|
3351
|
+
/**
|
|
3352
|
+
* Sets the indent for each item
|
|
3353
|
+
*/
|
|
3354
|
+
private setIndent;
|
|
3355
|
+
/**
|
|
3356
|
+
* Handle focus events
|
|
3357
|
+
*
|
|
3358
|
+
* @public
|
|
3359
|
+
*/
|
|
3360
|
+
focusHandler(e: FocusEvent): void;
|
|
3361
|
+
/**
|
|
3362
|
+
* Handle blur events
|
|
3363
|
+
*
|
|
3364
|
+
* @public
|
|
3365
|
+
*/
|
|
3366
|
+
blurHandler(e: FocusEvent): void;
|
|
3367
|
+
/**
|
|
3368
|
+
* Toggle the expansion state of the tree item
|
|
3369
|
+
*
|
|
3370
|
+
* @public
|
|
3371
|
+
*/
|
|
3372
|
+
toggleExpansion(): void;
|
|
3373
|
+
/**
|
|
3374
|
+
* Toggle the single selection state of the tree item
|
|
3375
|
+
*
|
|
3376
|
+
* @public
|
|
3377
|
+
*/
|
|
3378
|
+
toggleSelection(): void;
|
|
3379
|
+
/**
|
|
3380
|
+
* Whether the tree is nested
|
|
3381
|
+
* @internal
|
|
3382
|
+
*/
|
|
3383
|
+
get isNestedItem(): boolean;
|
|
3384
|
+
}
|
|
3385
|
+
|
|
3264
3386
|
/**
|
|
3265
3387
|
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusCircular | `borderRadiusCircular`} design token.
|
|
3266
3388
|
* @public
|
|
@@ -6511,13 +6633,6 @@ export declare type DrawerType = ValuesOf<typeof DrawerType>;
|
|
|
6511
6633
|
* @public
|
|
6512
6634
|
*/
|
|
6513
6635
|
export declare class Dropdown extends BaseDropdown {
|
|
6514
|
-
/**
|
|
6515
|
-
* Static property for the anchor positioning fallback observer. The observer is used to flip the listbox when it is
|
|
6516
|
-
* out of view.
|
|
6517
|
-
* @remarks This is only used when the browser does not support CSS anchor positioning.
|
|
6518
|
-
* @internal
|
|
6519
|
-
*/
|
|
6520
|
-
private static AnchorPositionFallbackObserver;
|
|
6521
6636
|
/**
|
|
6522
6637
|
* The appearance of the dropdown.
|
|
6523
6638
|
*
|
|
@@ -6549,31 +6664,6 @@ export declare class Dropdown extends BaseDropdown {
|
|
|
6549
6664
|
* @internal
|
|
6550
6665
|
*/
|
|
6551
6666
|
sizeChanged(prev: DropdownSize | undefined, next: DropdownSize | undefined): void;
|
|
6552
|
-
connectedCallback(): void;
|
|
6553
|
-
constructor();
|
|
6554
|
-
disconnectedCallback(): void;
|
|
6555
|
-
/**
|
|
6556
|
-
* Handles the connected event for the listbox.
|
|
6557
|
-
*
|
|
6558
|
-
* @param e - the event object
|
|
6559
|
-
* @internal
|
|
6560
|
-
*/
|
|
6561
|
-
private listboxConnectedHandler;
|
|
6562
|
-
/**
|
|
6563
|
-
* Adds or removes the window event listener based on the open state.
|
|
6564
|
-
*
|
|
6565
|
-
* @param prev - the previous open state
|
|
6566
|
-
* @param next - the current open state
|
|
6567
|
-
* @internal
|
|
6568
|
-
*/
|
|
6569
|
-
openChanged(prev: boolean | undefined, next: boolean | undefined): void;
|
|
6570
|
-
/**
|
|
6571
|
-
* When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
|
|
6572
|
-
* viewport bounds. One static observer is used for all dropdowns.
|
|
6573
|
-
*
|
|
6574
|
-
* @internal
|
|
6575
|
-
*/
|
|
6576
|
-
private anchorPositionFallback;
|
|
6577
6667
|
}
|
|
6578
6668
|
|
|
6579
6669
|
/**
|
|
@@ -7379,7 +7469,7 @@ export declare function isListbox(element?: Node | null, tagName?: string): elem
|
|
|
7379
7469
|
* @returns true if the element is a dropdown.
|
|
7380
7470
|
* @public
|
|
7381
7471
|
*/
|
|
7382
|
-
export declare function isTreeItem(element?: Node | null, tagName?: string): element is
|
|
7472
|
+
export declare function isTreeItem(element?: Node | null, tagName?: string): element is BaseTreeItem;
|
|
7383
7473
|
|
|
7384
7474
|
/**
|
|
7385
7475
|
* The base class used for constructing a fluent-label custom element
|
|
@@ -11159,49 +11249,7 @@ export declare const TooltipStyles: ElementStyles;
|
|
|
11159
11249
|
*/
|
|
11160
11250
|
export declare const TooltipTemplate: ViewTemplate<Tooltip, any>;
|
|
11161
11251
|
|
|
11162
|
-
export declare class TreeItem extends
|
|
11163
|
-
/**
|
|
11164
|
-
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
11165
|
-
*
|
|
11166
|
-
* @internal
|
|
11167
|
-
*/
|
|
11168
|
-
elementInternals: ElementInternals;
|
|
11169
|
-
constructor();
|
|
11170
|
-
/**
|
|
11171
|
-
* When true, the control will be appear expanded by user interaction.
|
|
11172
|
-
* @public
|
|
11173
|
-
* HTML Attribute: `expanded`
|
|
11174
|
-
*/
|
|
11175
|
-
expanded: boolean;
|
|
11176
|
-
/**
|
|
11177
|
-
* Handles changes to the expanded attribute
|
|
11178
|
-
* @param prev - the previous state
|
|
11179
|
-
* @param next - the next state
|
|
11180
|
-
*
|
|
11181
|
-
* @public
|
|
11182
|
-
*/
|
|
11183
|
-
expandedChanged(prev: boolean, next: boolean): void;
|
|
11184
|
-
/**
|
|
11185
|
-
* When true, the control will appear selected by user interaction.
|
|
11186
|
-
* @public
|
|
11187
|
-
* @remarks
|
|
11188
|
-
* HTML Attribute: selected
|
|
11189
|
-
*/
|
|
11190
|
-
selected: boolean;
|
|
11191
|
-
/**
|
|
11192
|
-
* Handles changes to the selected attribute
|
|
11193
|
-
* @param prev - the previous state
|
|
11194
|
-
* @param next - the next state
|
|
11195
|
-
*
|
|
11196
|
-
* @internal
|
|
11197
|
-
*/
|
|
11198
|
-
protected selectedChanged(prev: boolean, next: boolean): void;
|
|
11199
|
-
/**
|
|
11200
|
-
* When true, the control has no child tree items
|
|
11201
|
-
* @public
|
|
11202
|
-
* HTML Attribute: empty
|
|
11203
|
-
*/
|
|
11204
|
-
empty: boolean;
|
|
11252
|
+
export declare class TreeItem extends BaseTreeItem {
|
|
11205
11253
|
/**
|
|
11206
11254
|
* The size of the tree item element
|
|
11207
11255
|
* @public
|
|
@@ -11224,59 +11272,18 @@ export declare class TreeItem extends FASTElement {
|
|
|
11224
11272
|
* @internal
|
|
11225
11273
|
*/
|
|
11226
11274
|
private appearanceChanged;
|
|
11227
|
-
private styles;
|
|
11228
|
-
/**
|
|
11229
|
-
* The indent of the tree item element.
|
|
11230
|
-
* This is not needed once css attr() is supported (--indent: attr(data-indent type(<number>)));
|
|
11231
|
-
* @public
|
|
11232
|
-
*/
|
|
11233
|
-
dataIndent: number | undefined;
|
|
11234
|
-
private dataIndentChanged;
|
|
11235
|
-
childTreeItems: TreeItem[] | undefined;
|
|
11236
11275
|
/**
|
|
11237
|
-
*
|
|
11238
|
-
*
|
|
11276
|
+
* child tree items supered change event
|
|
11239
11277
|
* @internal
|
|
11240
11278
|
*/
|
|
11241
|
-
|
|
11279
|
+
childTreeItemsChanged(): void;
|
|
11242
11280
|
/**
|
|
11243
11281
|
* 1. Update the child items' size based on the tree's size
|
|
11244
11282
|
* 2. Update the child items' appearance based on the tree's appearance
|
|
11245
|
-
*/
|
|
11246
|
-
private updateChildTreeItems;
|
|
11247
|
-
/**
|
|
11248
|
-
* Sets the indent for each item
|
|
11249
|
-
*/
|
|
11250
|
-
private setIndent;
|
|
11251
|
-
/**
|
|
11252
|
-
* Handle focus events
|
|
11253
|
-
*
|
|
11254
|
-
* @public
|
|
11255
|
-
*/
|
|
11256
|
-
focusHandler(e: FocusEvent): void;
|
|
11257
|
-
/**
|
|
11258
|
-
* Handle blur events
|
|
11259
|
-
*
|
|
11260
|
-
* @public
|
|
11261
|
-
*/
|
|
11262
|
-
blurHandler(e: FocusEvent): void;
|
|
11263
|
-
/**
|
|
11264
|
-
* Toggle the expansion state of the tree item
|
|
11265
|
-
*
|
|
11266
|
-
* @public
|
|
11267
|
-
*/
|
|
11268
|
-
toggleExpansion(): void;
|
|
11269
|
-
/**
|
|
11270
|
-
* Toggle the single selection state of the tree item
|
|
11271
11283
|
*
|
|
11272
11284
|
* @public
|
|
11273
11285
|
*/
|
|
11274
|
-
|
|
11275
|
-
/**
|
|
11276
|
-
* Whether the tree is nested
|
|
11277
|
-
* @internal
|
|
11278
|
-
*/
|
|
11279
|
-
get isNestedItem(): boolean;
|
|
11286
|
+
updateSizeAndAppearance(): void;
|
|
11280
11287
|
}
|
|
11281
11288
|
|
|
11282
11289
|
export declare const TreeItemAppearance: {
|