@fluentui/web-components 3.0.0-beta.47 → 3.0.0-beta.49
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 +23 -2
- package/dist/dts/avatar/avatar.d.ts +25 -17
- package/dist/dts/avatar/index.d.ts +1 -1
- package/dist/dts/index.d.ts +5 -5
- package/dist/dts/progress-bar/index.d.ts +1 -1
- package/dist/dts/progress-bar/progress-bar.d.ts +35 -27
- package/dist/dts/spinner/index.d.ts +1 -1
- package/dist/dts/spinner/spinner.d.ts +10 -2
- package/dist/dts/text-input/index.d.ts +1 -1
- package/dist/dts/text-input/text-input.d.ts +37 -29
- package/dist/dts/theme/index.d.ts +1 -1
- package/dist/dts/theme/set-theme.d.ts +6 -1
- package/dist/esm/avatar/avatar.js +21 -13
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/index.js +1 -1
- package/dist/esm/avatar/index.js.map +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/progress-bar/index.js +1 -1
- package/dist/esm/progress-bar/index.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.js +47 -39
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/spinner/index.js +1 -1
- package/dist/esm/spinner/index.js.map +1 -1
- package/dist/esm/spinner/spinner.js +19 -11
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/text-input/index.js +1 -1
- package/dist/esm/text-input/index.js.map +1 -1
- package/dist/esm/text-input/text-input.js +63 -55
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/theme/index.js.map +1 -1
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/web-components.d.ts +1179 -1137
- package/dist/web-components.js +106 -100
- package/dist/web-components.min.js +183 -183
- package/package.json +1 -1
package/dist/web-components.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import type { HostController } from '@microsoft/fast-element';
|
|
|
11
11
|
import { HTMLDirective } from '@microsoft/fast-element';
|
|
12
12
|
import { Orientation } from '@microsoft/fast-web-utilities';
|
|
13
13
|
import type { SyntheticViewTemplate } from '@microsoft/fast-element';
|
|
14
|
-
import type { Theme } from '@fluentui/tokens';
|
|
15
14
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
16
15
|
|
|
17
16
|
/**
|
|
@@ -446,47 +445,12 @@ export declare const AnchorTarget: {
|
|
|
446
445
|
export declare type AnchorTarget = ValuesOf<typeof AnchorTarget>;
|
|
447
446
|
|
|
448
447
|
/**
|
|
449
|
-
*
|
|
448
|
+
* An Avatar Custom HTML Element.
|
|
449
|
+
* Based on BaseAvatar and includes style and layout specific attributes
|
|
450
|
+
*
|
|
450
451
|
* @public
|
|
451
452
|
*/
|
|
452
|
-
export declare class Avatar extends
|
|
453
|
-
/**
|
|
454
|
-
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
455
|
-
*
|
|
456
|
-
* @internal
|
|
457
|
-
*/
|
|
458
|
-
elementInternals: ElementInternals;
|
|
459
|
-
/**
|
|
460
|
-
* The name of the person or entity represented by this Avatar. This should always be provided if it is available.
|
|
461
|
-
*
|
|
462
|
-
* @public
|
|
463
|
-
* @remarks
|
|
464
|
-
* HTML Attribute: name
|
|
465
|
-
*/
|
|
466
|
-
name?: string | undefined;
|
|
467
|
-
/**
|
|
468
|
-
* Provide custom initials rather than one generated via the name
|
|
469
|
-
*
|
|
470
|
-
* @public
|
|
471
|
-
* @remarks
|
|
472
|
-
* HTML Attribute: name
|
|
473
|
-
*/
|
|
474
|
-
initials?: string | undefined;
|
|
475
|
-
/**
|
|
476
|
-
* Size of the avatar in pixels.
|
|
477
|
-
*
|
|
478
|
-
* Size is restricted to a limited set of supported values recommended for most uses (see `AvatarSizeValue`) and
|
|
479
|
-
* based on design guidelines for the Avatar control.
|
|
480
|
-
*
|
|
481
|
-
* If a non-supported size is neeeded, set `size` to the next-smaller supported size, and set `width` and `height`
|
|
482
|
-
* to override the rendered size.
|
|
483
|
-
*
|
|
484
|
-
* @public
|
|
485
|
-
* @remarks
|
|
486
|
-
* HTML Attribute: size
|
|
487
|
-
*
|
|
488
|
-
*/
|
|
489
|
-
size?: AvatarSize | undefined;
|
|
453
|
+
export declare class Avatar extends BaseAvatar {
|
|
490
454
|
/**
|
|
491
455
|
* The avatar can have a circular or square shape.
|
|
492
456
|
*
|
|
@@ -495,17 +459,6 @@ export declare class Avatar extends FASTElement {
|
|
|
495
459
|
* HTML Attribute: shape
|
|
496
460
|
*/
|
|
497
461
|
shape?: AvatarShape | undefined;
|
|
498
|
-
/**
|
|
499
|
-
* Optional activity indicator
|
|
500
|
-
* * active: the avatar will be decorated according to activeAppearance
|
|
501
|
-
* * inactive: the avatar will be reduced in size and partially transparent
|
|
502
|
-
* * undefined: normal display
|
|
503
|
-
*
|
|
504
|
-
* @public
|
|
505
|
-
* @remarks
|
|
506
|
-
* HTML Attribute: active
|
|
507
|
-
*/
|
|
508
|
-
active?: AvatarActive | undefined;
|
|
509
462
|
/**
|
|
510
463
|
* The appearance when `active="active"`
|
|
511
464
|
*
|
|
@@ -514,51 +467,6 @@ export declare class Avatar extends FASTElement {
|
|
|
514
467
|
* HTML Attribute: appearance
|
|
515
468
|
*/
|
|
516
469
|
appearance?: AvatarAppearance | undefined;
|
|
517
|
-
/**
|
|
518
|
-
* The color when displaying either an icon or initials.
|
|
519
|
-
* * neutral (default): gray
|
|
520
|
-
* * brand: color from the brand palette
|
|
521
|
-
* * colorful: picks a color from a set of pre-defined colors, based on a hash of the name (or colorId if provided)
|
|
522
|
-
* * [AvatarNamedColor]: a specific color from the theme
|
|
523
|
-
*
|
|
524
|
-
* @public
|
|
525
|
-
* @remarks
|
|
526
|
-
* HTML Attribute: color
|
|
527
|
-
*/
|
|
528
|
-
color?: AvatarColor | undefined;
|
|
529
|
-
/**
|
|
530
|
-
* Specify a string to be used instead of the name, to determine which color to use when color="colorful".
|
|
531
|
-
* Use this when a name is not available, but there is another unique identifier that can be used instead.
|
|
532
|
-
*/
|
|
533
|
-
colorId?: AvatarNamedColor | undefined;
|
|
534
|
-
/**
|
|
535
|
-
* Holds the current color state
|
|
536
|
-
*/
|
|
537
|
-
private currentColor;
|
|
538
|
-
constructor();
|
|
539
|
-
connectedCallback(): void;
|
|
540
|
-
disconnectedCallback(): void;
|
|
541
|
-
/**
|
|
542
|
-
* Handles changes to observable properties
|
|
543
|
-
* @internal
|
|
544
|
-
* @param source - the source of the change
|
|
545
|
-
* @param propertyName - the property name being changed
|
|
546
|
-
*/
|
|
547
|
-
handleChange(source: any, propertyName: string): void;
|
|
548
|
-
/**
|
|
549
|
-
* Sets the data-color attribute used for the visual presentation
|
|
550
|
-
* @internal
|
|
551
|
-
*/
|
|
552
|
-
generateColor(): void;
|
|
553
|
-
/**
|
|
554
|
-
* Generates and sets the initials for the template
|
|
555
|
-
* @internal
|
|
556
|
-
*/
|
|
557
|
-
generateInitials(): string | void;
|
|
558
|
-
/**
|
|
559
|
-
* An array of the available Avatar named colors
|
|
560
|
-
*/
|
|
561
|
-
static colors: ("anchor" | "dark-red" | "cranberry" | "red" | "pumpkin" | "peach" | "marigold" | "gold" | "brass" | "brown" | "forest" | "seafoam" | "dark-green" | "light-teal" | "teal" | "steel" | "blue" | "royal-blue" | "cornflower" | "navy" | "lavender" | "purple" | "grape" | "lilac" | "pink" | "magenta" | "plum" | "beige" | "mink" | "platinum")[];
|
|
562
470
|
}
|
|
563
471
|
|
|
564
472
|
/**
|
|
@@ -1039,6 +947,106 @@ declare class BaseAnchor extends FASTElement {
|
|
|
1039
947
|
private createProxyElement;
|
|
1040
948
|
}
|
|
1041
949
|
|
|
950
|
+
/**
|
|
951
|
+
* The base class used for constructing a fluent-avatar custom element
|
|
952
|
+
* @public
|
|
953
|
+
*/
|
|
954
|
+
export declare class BaseAvatar extends FASTElement {
|
|
955
|
+
/**
|
|
956
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
957
|
+
*
|
|
958
|
+
* @internal
|
|
959
|
+
*/
|
|
960
|
+
elementInternals: ElementInternals;
|
|
961
|
+
/**
|
|
962
|
+
* The name of the person or entity represented by this Avatar. This should always be provided if it is available.
|
|
963
|
+
*
|
|
964
|
+
* @public
|
|
965
|
+
* @remarks
|
|
966
|
+
* HTML Attribute: name
|
|
967
|
+
*/
|
|
968
|
+
name?: string | undefined;
|
|
969
|
+
/**
|
|
970
|
+
* Provide custom initials rather than one generated via the name
|
|
971
|
+
*
|
|
972
|
+
* @public
|
|
973
|
+
* @remarks
|
|
974
|
+
* HTML Attribute: name
|
|
975
|
+
*/
|
|
976
|
+
initials?: string | undefined;
|
|
977
|
+
/**
|
|
978
|
+
* Size of the avatar in pixels.
|
|
979
|
+
*
|
|
980
|
+
* Size is restricted to a limited set of supported values recommended for most uses (see `AvatarSizeValue`) and
|
|
981
|
+
* based on design guidelines for the Avatar control.
|
|
982
|
+
*
|
|
983
|
+
* If a non-supported size is neeeded, set `size` to the next-smaller supported size, and set `width` and `height`
|
|
984
|
+
* to override the rendered size.
|
|
985
|
+
*
|
|
986
|
+
* @public
|
|
987
|
+
* @remarks
|
|
988
|
+
* HTML Attribute: size
|
|
989
|
+
*
|
|
990
|
+
*/
|
|
991
|
+
size?: AvatarSize | undefined;
|
|
992
|
+
/**
|
|
993
|
+
* Optional activity indicator
|
|
994
|
+
* * active: the avatar will be decorated according to activeAppearance
|
|
995
|
+
* * inactive: the avatar will be reduced in size and partially transparent
|
|
996
|
+
* * undefined: normal display
|
|
997
|
+
*
|
|
998
|
+
* @public
|
|
999
|
+
* @remarks
|
|
1000
|
+
* HTML Attribute: active
|
|
1001
|
+
*/
|
|
1002
|
+
active?: AvatarActive | undefined;
|
|
1003
|
+
/**
|
|
1004
|
+
* The color when displaying either an icon or initials.
|
|
1005
|
+
* * neutral (default): gray
|
|
1006
|
+
* * brand: color from the brand palette
|
|
1007
|
+
* * colorful: picks a color from a set of pre-defined colors, based on a hash of the name (or colorId if provided)
|
|
1008
|
+
* * [AvatarNamedColor]: a specific color from the theme
|
|
1009
|
+
*
|
|
1010
|
+
* @public
|
|
1011
|
+
* @remarks
|
|
1012
|
+
* HTML Attribute: color
|
|
1013
|
+
*/
|
|
1014
|
+
color?: AvatarColor | undefined;
|
|
1015
|
+
/**
|
|
1016
|
+
* Specify a string to be used instead of the name, to determine which color to use when color="colorful".
|
|
1017
|
+
* Use this when a name is not available, but there is another unique identifier that can be used instead.
|
|
1018
|
+
*/
|
|
1019
|
+
colorId?: AvatarNamedColor | undefined;
|
|
1020
|
+
/**
|
|
1021
|
+
* Holds the current color state
|
|
1022
|
+
*/
|
|
1023
|
+
private currentColor;
|
|
1024
|
+
constructor();
|
|
1025
|
+
connectedCallback(): void;
|
|
1026
|
+
disconnectedCallback(): void;
|
|
1027
|
+
/**
|
|
1028
|
+
* Handles changes to observable properties
|
|
1029
|
+
* @internal
|
|
1030
|
+
* @param source - the source of the change
|
|
1031
|
+
* @param propertyName - the property name being changed
|
|
1032
|
+
*/
|
|
1033
|
+
handleChange(source: any, propertyName: string): void;
|
|
1034
|
+
/**
|
|
1035
|
+
* Sets the data-color attribute used for the visual presentation
|
|
1036
|
+
* @internal
|
|
1037
|
+
*/
|
|
1038
|
+
generateColor(): void;
|
|
1039
|
+
/**
|
|
1040
|
+
* Generates and sets the initials for the template
|
|
1041
|
+
* @internal
|
|
1042
|
+
*/
|
|
1043
|
+
generateInitials(): string | void;
|
|
1044
|
+
/**
|
|
1045
|
+
* An array of the available Avatar named colors
|
|
1046
|
+
*/
|
|
1047
|
+
static colors: ("anchor" | "dark-red" | "cranberry" | "red" | "pumpkin" | "peach" | "marigold" | "gold" | "brass" | "brown" | "forest" | "seafoam" | "dark-green" | "light-teal" | "teal" | "steel" | "blue" | "royal-blue" | "cornflower" | "navy" | "lavender" | "purple" | "grape" | "lilac" | "pink" | "magenta" | "plum" | "beige" | "mink" | "platinum")[];
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1042
1050
|
/**
|
|
1043
1051
|
* A Button Custom HTML Element.
|
|
1044
1052
|
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | `<button>`} element.
|
|
@@ -1617,55 +1625,141 @@ export declare class BaseDivider extends FASTElement {
|
|
|
1617
1625
|
}
|
|
1618
1626
|
|
|
1619
1627
|
/**
|
|
1620
|
-
* A
|
|
1628
|
+
* A Progress HTML Element.
|
|
1629
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
1621
1630
|
*
|
|
1622
1631
|
* @public
|
|
1623
1632
|
*/
|
|
1624
|
-
declare class
|
|
1625
|
-
/**
|
|
1626
|
-
* The orientation
|
|
1627
|
-
* @public
|
|
1628
|
-
* @remarks
|
|
1629
|
-
* HTML Attribute: orientation
|
|
1630
|
-
*/
|
|
1631
|
-
orientation: TabsOrientation;
|
|
1633
|
+
export declare class BaseProgressBar extends FASTElement {
|
|
1632
1634
|
/**
|
|
1635
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
1636
|
+
*
|
|
1633
1637
|
* @internal
|
|
1634
1638
|
*/
|
|
1635
|
-
|
|
1639
|
+
elementInternals: ElementInternals;
|
|
1636
1640
|
/**
|
|
1637
|
-
* The
|
|
1638
|
-
*
|
|
1641
|
+
* The validation state of the progress bar
|
|
1639
1642
|
* @public
|
|
1640
|
-
*
|
|
1641
|
-
* HTML Attribute: activeid
|
|
1643
|
+
* HTML Attribute: `validation-state`
|
|
1642
1644
|
*/
|
|
1643
|
-
|
|
1645
|
+
validationState: ProgressBarValidationState | null;
|
|
1644
1646
|
/**
|
|
1647
|
+
* Handles changes to validation-state attribute custom states
|
|
1648
|
+
* @param prev - the previous state
|
|
1649
|
+
* @param next - the next state
|
|
1650
|
+
*/
|
|
1651
|
+
validationStateChanged(prev: ProgressBarValidationState | undefined, next: ProgressBarValidationState | undefined): void;
|
|
1652
|
+
/**
|
|
1653
|
+
* The value of the progress
|
|
1645
1654
|
* @internal
|
|
1655
|
+
* HTML Attribute: `value`
|
|
1646
1656
|
*/
|
|
1647
|
-
|
|
1657
|
+
value?: number;
|
|
1648
1658
|
/**
|
|
1659
|
+
* Updates the percent complete when the `value` property changes.
|
|
1660
|
+
*
|
|
1649
1661
|
* @internal
|
|
1650
1662
|
*/
|
|
1651
|
-
|
|
1663
|
+
protected valueChanged(prev: number | undefined, next: number | undefined): void;
|
|
1652
1664
|
/**
|
|
1665
|
+
* The minimum value
|
|
1653
1666
|
* @internal
|
|
1667
|
+
* HTML Attribute: `min`
|
|
1654
1668
|
*/
|
|
1655
|
-
|
|
1669
|
+
min?: number;
|
|
1670
|
+
/**
|
|
1671
|
+
* Updates the percent complete when the `min` property changes.
|
|
1672
|
+
*
|
|
1673
|
+
* @param prev - The previous min value
|
|
1674
|
+
* @param next - The current min value
|
|
1675
|
+
*/
|
|
1676
|
+
protected minChanged(prev: number | undefined, next: number | undefined): void;
|
|
1656
1677
|
/**
|
|
1678
|
+
* The maximum value
|
|
1657
1679
|
* @internal
|
|
1680
|
+
* HTML Attribute: `max`
|
|
1658
1681
|
*/
|
|
1659
|
-
|
|
1682
|
+
max?: number;
|
|
1660
1683
|
/**
|
|
1684
|
+
* Updates the percent complete when the `max` property changes.
|
|
1685
|
+
*
|
|
1686
|
+
* @param prev - The previous max value
|
|
1687
|
+
* @param next - The current max value
|
|
1661
1688
|
* @internal
|
|
1662
1689
|
*/
|
|
1663
|
-
|
|
1690
|
+
protected maxChanged(prev: number | undefined, next: number | undefined): void;
|
|
1664
1691
|
/**
|
|
1665
|
-
*
|
|
1666
|
-
* @
|
|
1692
|
+
* Indicates progress in %
|
|
1693
|
+
* @internal
|
|
1667
1694
|
*/
|
|
1668
|
-
|
|
1695
|
+
get percentComplete(): number;
|
|
1696
|
+
constructor();
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* The base class used for constructing a fluent-spinner custom element
|
|
1701
|
+
* @public
|
|
1702
|
+
*/
|
|
1703
|
+
export declare class BaseSpinner extends FASTElement {
|
|
1704
|
+
/**
|
|
1705
|
+
* The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
1706
|
+
*
|
|
1707
|
+
* @internal
|
|
1708
|
+
*/
|
|
1709
|
+
elementInternals: ElementInternals;
|
|
1710
|
+
constructor();
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* A Tabs component that wraps a collection of tab and tab panel elements.
|
|
1715
|
+
*
|
|
1716
|
+
* @public
|
|
1717
|
+
*/
|
|
1718
|
+
declare class BaseTabs extends FASTElement {
|
|
1719
|
+
/**
|
|
1720
|
+
* The orientation
|
|
1721
|
+
* @public
|
|
1722
|
+
* @remarks
|
|
1723
|
+
* HTML Attribute: orientation
|
|
1724
|
+
*/
|
|
1725
|
+
orientation: TabsOrientation;
|
|
1726
|
+
/**
|
|
1727
|
+
* @internal
|
|
1728
|
+
*/
|
|
1729
|
+
orientationChanged(): void;
|
|
1730
|
+
/**
|
|
1731
|
+
* The id of the active tab
|
|
1732
|
+
*
|
|
1733
|
+
* @public
|
|
1734
|
+
* @remarks
|
|
1735
|
+
* HTML Attribute: activeid
|
|
1736
|
+
*/
|
|
1737
|
+
activeid: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* @internal
|
|
1740
|
+
*/
|
|
1741
|
+
activeidChanged(oldValue: string, newValue: string): void;
|
|
1742
|
+
/**
|
|
1743
|
+
* @internal
|
|
1744
|
+
*/
|
|
1745
|
+
tabs: HTMLElement[];
|
|
1746
|
+
/**
|
|
1747
|
+
* @internal
|
|
1748
|
+
*/
|
|
1749
|
+
tabsChanged(): void;
|
|
1750
|
+
/**
|
|
1751
|
+
* @internal
|
|
1752
|
+
*/
|
|
1753
|
+
tabpanels: HTMLElement[];
|
|
1754
|
+
/**
|
|
1755
|
+
* @internal
|
|
1756
|
+
*/
|
|
1757
|
+
tabpanelsChanged(): void;
|
|
1758
|
+
/**
|
|
1759
|
+
* A reference to the active tab
|
|
1760
|
+
* @public
|
|
1761
|
+
*/
|
|
1762
|
+
activetab: HTMLElement;
|
|
1669
1763
|
private prevActiveTabIndex;
|
|
1670
1764
|
private activeTabIndex;
|
|
1671
1765
|
private tabIds;
|
|
@@ -1706,159 +1800,541 @@ declare class BaseTabs extends FASTElement {
|
|
|
1706
1800
|
}
|
|
1707
1801
|
|
|
1708
1802
|
/**
|
|
1709
|
-
*
|
|
1710
|
-
* @
|
|
1711
|
-
*/
|
|
1712
|
-
export declare const borderRadiusCircular = "var(--borderRadiusCircular)";
|
|
1713
|
-
|
|
1714
|
-
/**
|
|
1715
|
-
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusLarge | `borderRadiusLarge`} design token.
|
|
1716
|
-
* @public
|
|
1717
|
-
*/
|
|
1718
|
-
export declare const borderRadiusLarge = "var(--borderRadiusLarge)";
|
|
1719
|
-
|
|
1720
|
-
/**
|
|
1721
|
-
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusMedium | `borderRadiusMedium`} design token.
|
|
1722
|
-
* @public
|
|
1723
|
-
*/
|
|
1724
|
-
export declare const borderRadiusMedium = "var(--borderRadiusMedium)";
|
|
1725
|
-
|
|
1726
|
-
/**
|
|
1727
|
-
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusNone | `borderRadiusNone`} design token.
|
|
1728
|
-
* @public
|
|
1729
|
-
*/
|
|
1730
|
-
export declare const borderRadiusNone = "var(--borderRadiusNone)";
|
|
1731
|
-
|
|
1732
|
-
/**
|
|
1733
|
-
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusSmall | `borderRadiusSmall`} design token.
|
|
1734
|
-
* @public
|
|
1735
|
-
*/
|
|
1736
|
-
export declare const borderRadiusSmall = "var(--borderRadiusSmall)";
|
|
1737
|
-
|
|
1738
|
-
/**
|
|
1739
|
-
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusXLarge | `borderRadiusXLarge`} design token.
|
|
1740
|
-
* @public
|
|
1741
|
-
*/
|
|
1742
|
-
export declare const borderRadiusXLarge = "var(--borderRadiusXLarge)";
|
|
1743
|
-
|
|
1744
|
-
/**
|
|
1745
|
-
* A Button Custom HTML Element.
|
|
1746
|
-
* Based on BaseButton and includes style and layout specific attributes
|
|
1803
|
+
* A Text Input Custom HTML Element.
|
|
1804
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input | `<input>`} element.
|
|
1747
1805
|
*
|
|
1806
|
+
* @slot start - Content which can be provided before the input
|
|
1807
|
+
* @slot end - Content which can be provided after the input
|
|
1808
|
+
* @slot - The default slot for button content
|
|
1809
|
+
* @csspart label - The internal `<label>` element
|
|
1810
|
+
* @csspart root - the root container for the internal control
|
|
1811
|
+
* @csspart control - The internal `<input>` control
|
|
1748
1812
|
* @public
|
|
1749
1813
|
*/
|
|
1750
|
-
export declare class
|
|
1814
|
+
export declare class BaseTextInput extends FASTElement {
|
|
1751
1815
|
/**
|
|
1752
|
-
* Indicates the
|
|
1816
|
+
* Indicates the element's autocomplete state.
|
|
1817
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/autocomplete | `autocomplete`} attribute
|
|
1753
1818
|
*
|
|
1754
1819
|
* @public
|
|
1755
1820
|
* @remarks
|
|
1756
|
-
* HTML Attribute: `
|
|
1821
|
+
* HTML Attribute: `autocomplete`
|
|
1757
1822
|
*/
|
|
1758
|
-
|
|
1823
|
+
autocomplete?: string;
|
|
1759
1824
|
/**
|
|
1760
|
-
*
|
|
1761
|
-
* @
|
|
1762
|
-
*
|
|
1825
|
+
* Indicates that the element should get focus after the page finishes loading.
|
|
1826
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#autofocus | `autofocus`} attribute
|
|
1827
|
+
*
|
|
1828
|
+
* @public
|
|
1829
|
+
* @remarks
|
|
1830
|
+
* HTML Attribute: `autofocus`
|
|
1763
1831
|
*/
|
|
1764
|
-
|
|
1832
|
+
autofocus: boolean;
|
|
1765
1833
|
/**
|
|
1766
|
-
* The
|
|
1834
|
+
* The default slotted content. This is the content that appears in the text field label.
|
|
1835
|
+
*
|
|
1836
|
+
* @internal
|
|
1837
|
+
*/
|
|
1838
|
+
defaultSlottedNodes: Node[];
|
|
1839
|
+
/**
|
|
1840
|
+
* Updates the control label visibility based on the presence of default slotted content.
|
|
1841
|
+
*
|
|
1842
|
+
* @internal
|
|
1843
|
+
*/
|
|
1844
|
+
defaultSlottedNodesChanged(prev: Node[] | undefined, next: Node[] | undefined): void;
|
|
1845
|
+
/**
|
|
1846
|
+
* Sets the directionality of the element to be submitted with form data.
|
|
1847
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/dirname | `dirname`} attribute
|
|
1767
1848
|
*
|
|
1768
1849
|
* @public
|
|
1769
1850
|
* @remarks
|
|
1770
|
-
* HTML Attribute: `
|
|
1851
|
+
* HTML Attribute: `dirname`
|
|
1771
1852
|
*/
|
|
1772
|
-
|
|
1853
|
+
dirname?: string;
|
|
1773
1854
|
/**
|
|
1774
|
-
*
|
|
1775
|
-
* @
|
|
1776
|
-
*
|
|
1855
|
+
* Sets the element's disabled state.
|
|
1856
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/disabled | `disabled`} attribute
|
|
1857
|
+
*
|
|
1858
|
+
* @public
|
|
1859
|
+
* @remarks
|
|
1860
|
+
* HTML Attribute: `disabled`
|
|
1777
1861
|
*/
|
|
1778
|
-
|
|
1862
|
+
disabled?: boolean;
|
|
1779
1863
|
/**
|
|
1780
|
-
* The
|
|
1864
|
+
* The id of a form to associate the element to.
|
|
1865
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#form | `form`} attribute
|
|
1781
1866
|
*
|
|
1782
1867
|
* @public
|
|
1783
1868
|
* @remarks
|
|
1784
|
-
* HTML Attribute: `
|
|
1869
|
+
* HTML Attribute: `form`
|
|
1785
1870
|
*/
|
|
1786
|
-
|
|
1871
|
+
formAttribute?: string;
|
|
1787
1872
|
/**
|
|
1788
|
-
*
|
|
1789
|
-
*
|
|
1790
|
-
* @
|
|
1873
|
+
* The initial value of the input.
|
|
1874
|
+
*
|
|
1875
|
+
* @public
|
|
1876
|
+
* @remarks
|
|
1877
|
+
* HTML Attribute: `value`
|
|
1791
1878
|
*/
|
|
1792
|
-
|
|
1879
|
+
initialValue: string;
|
|
1793
1880
|
/**
|
|
1794
|
-
*
|
|
1881
|
+
* Sets the value of the element to the initial value.
|
|
1882
|
+
*
|
|
1883
|
+
* @internal
|
|
1884
|
+
*/
|
|
1885
|
+
initialValueChanged(): void;
|
|
1886
|
+
/**
|
|
1887
|
+
* Allows associating a `<datalist>` to the element by ID.
|
|
1888
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#list | `list`} attribute
|
|
1795
1889
|
*
|
|
1796
1890
|
* @public
|
|
1797
1891
|
* @remarks
|
|
1798
|
-
* HTML Attribute: `
|
|
1892
|
+
* HTML Attribute: `list`
|
|
1799
1893
|
*/
|
|
1800
|
-
|
|
1894
|
+
list: string;
|
|
1801
1895
|
/**
|
|
1802
|
-
*
|
|
1803
|
-
*
|
|
1804
|
-
* @
|
|
1896
|
+
* The maximum number of characters a user can enter.
|
|
1897
|
+
*
|
|
1898
|
+
* @public
|
|
1899
|
+
* @remarks
|
|
1900
|
+
* HTML Attribute: `maxlength`
|
|
1805
1901
|
*/
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1902
|
+
maxlength: number;
|
|
1903
|
+
/**
|
|
1904
|
+
* The minimum number of characters a user can enter.
|
|
1905
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/minlength | `minlength`} attribute
|
|
1906
|
+
*
|
|
1907
|
+
* @public
|
|
1908
|
+
* @remarks
|
|
1909
|
+
* HTML Attribute: `minlength`
|
|
1910
|
+
*/
|
|
1911
|
+
minlength: number;
|
|
1912
|
+
/**
|
|
1913
|
+
* Indicates that a comma-separated list of email addresses can be entered. This attribute is only valid when `type="email"`.
|
|
1914
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/multiple | `multiple`} attribute
|
|
1915
|
+
*
|
|
1916
|
+
* @public
|
|
1917
|
+
* @remarks
|
|
1918
|
+
* HTML Attribute: `multiple`
|
|
1919
|
+
*/
|
|
1920
|
+
multiple: boolean;
|
|
1921
|
+
/**
|
|
1922
|
+
* The name of the element. This element's value will be surfaced during form submission under the provided name.
|
|
1923
|
+
*
|
|
1924
|
+
* @public
|
|
1925
|
+
* @remarks
|
|
1926
|
+
* HTML Attribute: `name`
|
|
1927
|
+
*/
|
|
1928
|
+
name: string;
|
|
1929
|
+
/**
|
|
1930
|
+
* A regular expression that the value must match to pass validation.
|
|
1931
|
+
*
|
|
1932
|
+
* @public
|
|
1933
|
+
* @remarks
|
|
1934
|
+
* HTML Attribute: `pattern`
|
|
1935
|
+
*/
|
|
1936
|
+
pattern: string;
|
|
1937
|
+
/**
|
|
1938
|
+
* Sets the placeholder value of the element, generally used to provide a hint to the user.
|
|
1939
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/placeholder | `placeholder`} attribute
|
|
1940
|
+
*
|
|
1941
|
+
* @public
|
|
1942
|
+
* @remarks
|
|
1943
|
+
* HTML Attribute: `placeholder`
|
|
1944
|
+
* This attribute is not a valid substitute for a label.
|
|
1945
|
+
*/
|
|
1946
|
+
placeholder: string;
|
|
1947
|
+
/**
|
|
1948
|
+
* When true, the control will be immutable by user interaction.
|
|
1949
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/readonly | `readonly`} attribute
|
|
1950
|
+
*
|
|
1951
|
+
* @public
|
|
1952
|
+
* @remarks
|
|
1953
|
+
* HTML Attribute: `readonly`
|
|
1954
|
+
*/
|
|
1955
|
+
readOnly?: boolean;
|
|
1956
|
+
/**
|
|
1957
|
+
* Syncs the `ElementInternals.ariaReadOnly` property when the `readonly` property changes.
|
|
1958
|
+
*
|
|
1959
|
+
* @internal
|
|
1960
|
+
*/
|
|
1961
|
+
readOnlyChanged(): void;
|
|
1962
|
+
/**
|
|
1963
|
+
* The element's required attribute.
|
|
1964
|
+
*
|
|
1965
|
+
* @public
|
|
1966
|
+
* @remarks
|
|
1967
|
+
* HTML Attribute: `required`
|
|
1968
|
+
*/
|
|
1969
|
+
required: boolean;
|
|
1970
|
+
/**
|
|
1971
|
+
* Syncs the element's internal `aria-required` state with the `required` attribute.
|
|
1972
|
+
*
|
|
1973
|
+
* @param previous - the previous required state
|
|
1974
|
+
* @param next - the current required state
|
|
1975
|
+
*
|
|
1976
|
+
* @internal
|
|
1977
|
+
*/
|
|
1978
|
+
requiredChanged(previous: boolean, next: boolean): void;
|
|
1979
|
+
/**
|
|
1980
|
+
* Sets the width of the element to a specified number of characters.
|
|
1981
|
+
*
|
|
1982
|
+
* @public
|
|
1983
|
+
* @remarks
|
|
1984
|
+
* HTML Attribute: `size`
|
|
1985
|
+
*/
|
|
1986
|
+
size: number;
|
|
1987
|
+
/**
|
|
1988
|
+
* Controls whether or not to enable spell checking for the input field, or if the default spell checking configuration should be used.
|
|
1989
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck | `spellcheck`} attribute
|
|
1990
|
+
*
|
|
1991
|
+
* @public
|
|
1992
|
+
* @remarks
|
|
1993
|
+
* HTML Attribute: `spellcheck`
|
|
1994
|
+
*/
|
|
1995
|
+
spellcheck: boolean;
|
|
1996
|
+
/**
|
|
1997
|
+
* Allows setting a type or mode of text.
|
|
1998
|
+
*
|
|
1999
|
+
* @public
|
|
2000
|
+
* @remarks
|
|
2001
|
+
* HTML Attribute: `type`
|
|
2002
|
+
*/
|
|
2003
|
+
type: TextInputType;
|
|
2004
|
+
/**
|
|
2005
|
+
* The current value of the input.
|
|
2006
|
+
*
|
|
2007
|
+
* @internal
|
|
2008
|
+
*/
|
|
2009
|
+
private _value;
|
|
2010
|
+
/**
|
|
2011
|
+
* A reference to the internal input element.
|
|
2012
|
+
*
|
|
2013
|
+
* @internal
|
|
2014
|
+
*/
|
|
2015
|
+
control: HTMLInputElement;
|
|
2016
|
+
/**
|
|
2017
|
+
* A reference to the internal label element.
|
|
2018
|
+
*
|
|
2019
|
+
* @internal
|
|
2020
|
+
*/
|
|
2021
|
+
controlLabel: HTMLLabelElement;
|
|
2022
|
+
/**
|
|
2023
|
+
* Indicates that the value has been changed by the user.
|
|
2024
|
+
*
|
|
2025
|
+
* @internal
|
|
2026
|
+
*/
|
|
2027
|
+
private dirtyValue;
|
|
2028
|
+
/**
|
|
2029
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
2030
|
+
*
|
|
2031
|
+
* @internal
|
|
2032
|
+
*/
|
|
2033
|
+
elementInternals: ElementInternals;
|
|
2034
|
+
/**
|
|
2035
|
+
* The form-associated flag.
|
|
2036
|
+
* @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
|
|
2037
|
+
*
|
|
2038
|
+
* @public
|
|
2039
|
+
*/
|
|
2040
|
+
static readonly formAssociated = true;
|
|
2041
|
+
/**
|
|
2042
|
+
* The element's validity state.
|
|
2043
|
+
*
|
|
2044
|
+
* @public
|
|
2045
|
+
* @remarks
|
|
2046
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validity | `ElementInternals.validity`} property.
|
|
2047
|
+
*/
|
|
2048
|
+
get validity(): ValidityState;
|
|
2049
|
+
/**
|
|
2050
|
+
* The validation message.
|
|
2051
|
+
*
|
|
2052
|
+
* @public
|
|
2053
|
+
* @remarks
|
|
2054
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage | `ElementInternals.validationMessage`} property.
|
|
2055
|
+
*/
|
|
2056
|
+
get validationMessage(): string;
|
|
2057
|
+
/**
|
|
2058
|
+
* The current value of the input.
|
|
2059
|
+
* @public
|
|
2060
|
+
*/
|
|
2061
|
+
get value(): string;
|
|
2062
|
+
set value(value: string);
|
|
2063
|
+
/**
|
|
2064
|
+
* Determines if the control can be submitted for constraint validation.
|
|
2065
|
+
*
|
|
2066
|
+
* @public
|
|
2067
|
+
* @remarks
|
|
2068
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate | `ElementInternals.willValidate`} property.
|
|
2069
|
+
*/
|
|
2070
|
+
get willValidate(): boolean;
|
|
2071
|
+
/**
|
|
2072
|
+
* The associated form element.
|
|
2073
|
+
*
|
|
2074
|
+
* @public
|
|
2075
|
+
* @remarks
|
|
2076
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/form | `ElementInternals.form`} property.
|
|
2077
|
+
*/
|
|
2078
|
+
get form(): HTMLFormElement | null;
|
|
2079
|
+
/**
|
|
2080
|
+
* Handles the internal control's `keypress` event.
|
|
2081
|
+
*
|
|
2082
|
+
* @internal
|
|
2083
|
+
*/
|
|
2084
|
+
beforeinputHandler(e: InputEvent): boolean | void;
|
|
2085
|
+
/**
|
|
2086
|
+
* Change event handler for inner control.
|
|
2087
|
+
*
|
|
2088
|
+
* @internal
|
|
2089
|
+
* @privateRemarks
|
|
2090
|
+
* "Change" events are not `composable` so they will not permeate the shadow DOM boundary. This function effectively
|
|
2091
|
+
* proxies the change event, emitting a `change` event whenever the internal control emits a `change` event.
|
|
2092
|
+
*/
|
|
2093
|
+
changeHandler(e: InputEvent): boolean | void;
|
|
2094
|
+
/**
|
|
2095
|
+
* Checks the validity of the element and returns the result.
|
|
2096
|
+
*
|
|
2097
|
+
* @public
|
|
2098
|
+
* @remarks
|
|
2099
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity | `HTMLInputElement.checkValidity()`} method.
|
|
2100
|
+
*/
|
|
2101
|
+
checkValidity(): boolean;
|
|
2102
|
+
/**
|
|
2103
|
+
* Clicks the inner control when the component is clicked.
|
|
2104
|
+
*
|
|
2105
|
+
* @param e - the event object
|
|
2106
|
+
*/
|
|
2107
|
+
clickHandler(e: MouseEvent): boolean | void;
|
|
2108
|
+
connectedCallback(): void;
|
|
2109
|
+
/**
|
|
2110
|
+
* Focuses the inner control when the component is focused.
|
|
2111
|
+
*
|
|
2112
|
+
* @param e - the event object
|
|
2113
|
+
* @public
|
|
2114
|
+
*/
|
|
2115
|
+
focusinHandler(e: FocusEvent): boolean | void;
|
|
2116
|
+
/**
|
|
2117
|
+
* Resets the value to its initial value when the form is reset.
|
|
2118
|
+
*
|
|
2119
|
+
* @internal
|
|
2120
|
+
*/
|
|
2121
|
+
formResetCallback(): void;
|
|
2122
|
+
/**
|
|
2123
|
+
* Handles implicit form submission when the user presses the "Enter" key.
|
|
2124
|
+
*
|
|
2125
|
+
* @internal
|
|
2126
|
+
*/
|
|
2127
|
+
private implicitSubmit;
|
|
2128
|
+
/**
|
|
2129
|
+
* Handles the internal control's `input` event.
|
|
2130
|
+
*
|
|
2131
|
+
* @internal
|
|
2132
|
+
*/
|
|
2133
|
+
inputHandler(e: InputEvent): boolean | void;
|
|
2134
|
+
/**
|
|
2135
|
+
* Handles the internal control's `keydown` event.
|
|
2136
|
+
*
|
|
2137
|
+
* @param e - the event object
|
|
2138
|
+
* @internal
|
|
2139
|
+
*/
|
|
2140
|
+
keydownHandler(e: KeyboardEvent): boolean | void;
|
|
2141
|
+
/**
|
|
2142
|
+
* Selects all the text in the text field.
|
|
2143
|
+
*
|
|
2144
|
+
* @public
|
|
2145
|
+
* @privateRemarks
|
|
2146
|
+
* The `select` event does not permeate the shadow DOM boundary. This function effectively proxies the event,
|
|
2147
|
+
* emitting a `select` event whenever the internal control emits a `select` event
|
|
2148
|
+
*
|
|
2149
|
+
*/
|
|
2150
|
+
select(): void;
|
|
2151
|
+
/**
|
|
2152
|
+
* Sets the custom validity message.
|
|
2153
|
+
* @param message - The message to set
|
|
2154
|
+
*
|
|
2155
|
+
* @public
|
|
2156
|
+
*/
|
|
2157
|
+
setCustomValidity(message: string): void;
|
|
2158
|
+
/**
|
|
2159
|
+
* Reports the validity of the element.
|
|
2160
|
+
*
|
|
2161
|
+
* @public
|
|
2162
|
+
* @remarks
|
|
2163
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity | `HTMLInputElement.reportValidity()`} method.
|
|
2164
|
+
*/
|
|
2165
|
+
reportValidity(): boolean;
|
|
2166
|
+
/**
|
|
2167
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue | `ElementInternals.setFormValue()`} method.
|
|
2168
|
+
*
|
|
2169
|
+
* @internal
|
|
2170
|
+
*/
|
|
2171
|
+
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
|
|
2172
|
+
/**
|
|
2173
|
+
* Sets the validity of the control.
|
|
2174
|
+
*
|
|
2175
|
+
* @param flags - Validity flags. If not provided, the control's `validity` will be used.
|
|
2176
|
+
* @param message - Optional message to supply. If not provided, the control's `validationMessage` will be used. If the control does not have a `validationMessage`, the message will be empty.
|
|
2177
|
+
* @param anchor - Optional anchor to use for the validation message. If not provided, the control will be used.
|
|
2178
|
+
*
|
|
2179
|
+
* @internal
|
|
2180
|
+
*/
|
|
2181
|
+
setValidity(flags?: Partial<ValidityState>, message?: string, anchor?: HTMLElement): void;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
/**
|
|
2185
|
+
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusCircular | `borderRadiusCircular`} design token.
|
|
2186
|
+
* @public
|
|
2187
|
+
*/
|
|
2188
|
+
export declare const borderRadiusCircular = "var(--borderRadiusCircular)";
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusLarge | `borderRadiusLarge`} design token.
|
|
2192
|
+
* @public
|
|
2193
|
+
*/
|
|
2194
|
+
export declare const borderRadiusLarge = "var(--borderRadiusLarge)";
|
|
2195
|
+
|
|
2196
|
+
/**
|
|
2197
|
+
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusMedium | `borderRadiusMedium`} design token.
|
|
2198
|
+
* @public
|
|
2199
|
+
*/
|
|
2200
|
+
export declare const borderRadiusMedium = "var(--borderRadiusMedium)";
|
|
2201
|
+
|
|
2202
|
+
/**
|
|
2203
|
+
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusNone | `borderRadiusNone`} design token.
|
|
2204
|
+
* @public
|
|
2205
|
+
*/
|
|
2206
|
+
export declare const borderRadiusNone = "var(--borderRadiusNone)";
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusSmall | `borderRadiusSmall`} design token.
|
|
2210
|
+
* @public
|
|
2211
|
+
*/
|
|
2212
|
+
export declare const borderRadiusSmall = "var(--borderRadiusSmall)";
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* CSS custom property value for the {@link @fluentui/tokens#borderRadiusXLarge | `borderRadiusXLarge`} design token.
|
|
2216
|
+
* @public
|
|
2217
|
+
*/
|
|
2218
|
+
export declare const borderRadiusXLarge = "var(--borderRadiusXLarge)";
|
|
2219
|
+
|
|
2220
|
+
/**
|
|
2221
|
+
* A Button Custom HTML Element.
|
|
2222
|
+
* Based on BaseButton and includes style and layout specific attributes
|
|
2223
|
+
*
|
|
2224
|
+
* @public
|
|
2225
|
+
*/
|
|
2226
|
+
export declare class Button extends BaseButton {
|
|
2227
|
+
/**
|
|
2228
|
+
* Indicates the styled appearance of the button.
|
|
2229
|
+
*
|
|
2230
|
+
* @public
|
|
2231
|
+
* @remarks
|
|
2232
|
+
* HTML Attribute: `appearance`
|
|
2233
|
+
*/
|
|
2234
|
+
appearance?: ButtonAppearance;
|
|
2235
|
+
/**
|
|
2236
|
+
* Handles changes to appearance attribute custom states
|
|
2237
|
+
* @param prev - the previous state
|
|
2238
|
+
* @param next - the next state
|
|
2239
|
+
*/
|
|
2240
|
+
appearanceChanged(prev: ButtonAppearance | undefined, next: ButtonAppearance | undefined): void;
|
|
2241
|
+
/**
|
|
2242
|
+
* The shape of the button.
|
|
2243
|
+
*
|
|
2244
|
+
* @public
|
|
2245
|
+
* @remarks
|
|
2246
|
+
* HTML Attribute: `shape`
|
|
2247
|
+
*/
|
|
2248
|
+
shape?: ButtonShape;
|
|
2249
|
+
/**
|
|
2250
|
+
* Handles changes to shape attribute custom states
|
|
2251
|
+
* @param prev - the previous state
|
|
2252
|
+
* @param next - the next state
|
|
2253
|
+
*/
|
|
2254
|
+
shapeChanged(prev: ButtonShape | undefined, next: ButtonShape | undefined): void;
|
|
2255
|
+
/**
|
|
2256
|
+
* The size of the button.
|
|
2257
|
+
*
|
|
2258
|
+
* @public
|
|
2259
|
+
* @remarks
|
|
2260
|
+
* HTML Attribute: `size`
|
|
2261
|
+
*/
|
|
2262
|
+
size?: ButtonSize;
|
|
2263
|
+
/**
|
|
2264
|
+
* Handles changes to size attribute custom states
|
|
2265
|
+
* @param prev - the previous state
|
|
2266
|
+
* @param next - the next state
|
|
2267
|
+
*/
|
|
2268
|
+
sizeChanged(prev: ButtonSize | undefined, next: ButtonSize | undefined): void;
|
|
2269
|
+
/**
|
|
2270
|
+
* Indicates that the button should only display as an icon with no text content.
|
|
2271
|
+
*
|
|
2272
|
+
* @public
|
|
2273
|
+
* @remarks
|
|
2274
|
+
* HTML Attribute: `icon-only`
|
|
2275
|
+
*/
|
|
2276
|
+
iconOnly: boolean;
|
|
2277
|
+
/**
|
|
2278
|
+
* Handles changes to icon only custom states
|
|
2279
|
+
* @param prev - the previous state
|
|
2280
|
+
* @param next - the next state
|
|
2281
|
+
*/
|
|
2282
|
+
iconOnlyChanged(prev: boolean, next: boolean): void;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
/**
|
|
2286
|
+
* @internal
|
|
2287
|
+
* @privateRemarks
|
|
2288
|
+
* Mark internal because exporting class and interface of the same name confuses API documenter.
|
|
2289
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
2290
|
+
*/
|
|
2291
|
+
export declare interface Button extends StartEnd {
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
/**
|
|
2295
|
+
* ButtonAppearance constants
|
|
2296
|
+
* @public
|
|
2297
|
+
*/
|
|
2298
|
+
export declare const ButtonAppearance: {
|
|
2299
|
+
readonly primary: "primary";
|
|
2300
|
+
readonly outline: "outline";
|
|
2301
|
+
readonly subtle: "subtle";
|
|
2302
|
+
readonly transparent: "transparent";
|
|
2303
|
+
};
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* A Button can be secondary, primary, outline, subtle, transparent
|
|
2307
|
+
* @public
|
|
2308
|
+
*/
|
|
2309
|
+
export declare type ButtonAppearance = ValuesOf<typeof ButtonAppearance>;
|
|
2310
|
+
|
|
2311
|
+
/**
|
|
2312
|
+
* The definition for the Fluent Button component.
|
|
2313
|
+
*
|
|
2314
|
+
* @public
|
|
2315
|
+
* @remarks
|
|
2316
|
+
* HTML Element: `<fluent-button>`
|
|
2317
|
+
*/
|
|
2318
|
+
export declare const ButtonDefinition: FASTElementDefinition<typeof Button>;
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* Button `formtarget` attribute values.
|
|
2322
|
+
* @public
|
|
2323
|
+
*/
|
|
2324
|
+
export declare const ButtonFormTarget: {
|
|
2325
|
+
readonly blank: "_blank";
|
|
2326
|
+
readonly self: "_self";
|
|
2327
|
+
readonly parent: "_parent";
|
|
2328
|
+
readonly top: "_top";
|
|
2329
|
+
};
|
|
2330
|
+
|
|
2331
|
+
/**
|
|
2332
|
+
* Types for the `formtarget` attribute values.
|
|
2333
|
+
* @public
|
|
2334
|
+
*/
|
|
2335
|
+
export declare type ButtonFormTarget = ValuesOf<typeof ButtonFormTarget>;
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
1862
2338
|
* Button configuration options.
|
|
1863
2339
|
* @public
|
|
1864
2340
|
*/
|
|
@@ -6367,100 +6843,37 @@ export declare const MenuStyles: ElementStyles;
|
|
|
6367
6843
|
export declare const MenuTemplate: ElementViewTemplate<Menu>;
|
|
6368
6844
|
|
|
6369
6845
|
/**
|
|
6370
|
-
*
|
|
6371
|
-
*
|
|
6846
|
+
* A Progress HTML Element.
|
|
6847
|
+
* Based on BaseProgressBar and includes style and layout specific attributes
|
|
6372
6848
|
*
|
|
6373
6849
|
* @public
|
|
6374
6850
|
*/
|
|
6375
|
-
export declare class ProgressBar extends
|
|
6851
|
+
export declare class ProgressBar extends BaseProgressBar {
|
|
6376
6852
|
/**
|
|
6377
|
-
* The
|
|
6378
|
-
*
|
|
6379
|
-
* @internal
|
|
6380
|
-
*/
|
|
6381
|
-
elementInternals: ElementInternals;
|
|
6382
|
-
/**
|
|
6383
|
-
* The thickness of the progress bar
|
|
6384
|
-
*
|
|
6385
|
-
* @public
|
|
6386
|
-
* HTML Attribute: `thickness`
|
|
6387
|
-
*/
|
|
6388
|
-
thickness?: ProgressBarThickness;
|
|
6389
|
-
/**
|
|
6390
|
-
* Handles changes to thickness attribute custom states
|
|
6391
|
-
* @param prev - the previous state
|
|
6392
|
-
* @param next - the next state
|
|
6393
|
-
*/
|
|
6394
|
-
thicknessChanged(prev: ProgressBarThickness | undefined, next: ProgressBarThickness | undefined): void;
|
|
6395
|
-
/**
|
|
6396
|
-
* The shape of the progress bar
|
|
6397
|
-
* @public
|
|
6398
|
-
* HTML Attribute: `shape`
|
|
6399
|
-
*/
|
|
6400
|
-
shape?: ProgressBarShape;
|
|
6401
|
-
/**
|
|
6402
|
-
* Handles changes to shape attribute custom states
|
|
6403
|
-
* @param prev - the previous state
|
|
6404
|
-
* @param next - the next state
|
|
6405
|
-
*/
|
|
6406
|
-
shapeChanged(prev: ProgressBarShape | undefined, next: ProgressBarShape | undefined): void;
|
|
6407
|
-
/**
|
|
6408
|
-
* The validation state of the progress bar
|
|
6409
|
-
* @public
|
|
6410
|
-
* HTML Attribute: `validation-state`
|
|
6411
|
-
*/
|
|
6412
|
-
validationState: ProgressBarValidationState | null;
|
|
6413
|
-
/**
|
|
6414
|
-
* Handles changes to validation-state attribute custom states
|
|
6415
|
-
* @param prev - the previous state
|
|
6416
|
-
* @param next - the next state
|
|
6417
|
-
*/
|
|
6418
|
-
validationStateChanged(prev: ProgressBarValidationState | undefined, next: ProgressBarValidationState | undefined): void;
|
|
6419
|
-
/**
|
|
6420
|
-
* The value of the progress
|
|
6421
|
-
* @internal
|
|
6422
|
-
* HTML Attribute: `value`
|
|
6423
|
-
*/
|
|
6424
|
-
value?: number;
|
|
6425
|
-
/**
|
|
6426
|
-
* Updates the percent complete when the `value` property changes.
|
|
6427
|
-
*
|
|
6428
|
-
* @internal
|
|
6429
|
-
*/
|
|
6430
|
-
protected valueChanged(prev: number | undefined, next: number | undefined): void;
|
|
6431
|
-
/**
|
|
6432
|
-
* The minimum value
|
|
6433
|
-
* @internal
|
|
6434
|
-
* HTML Attribute: `min`
|
|
6435
|
-
*/
|
|
6436
|
-
min?: number;
|
|
6437
|
-
/**
|
|
6438
|
-
* Updates the percent complete when the `min` property changes.
|
|
6853
|
+
* The thickness of the progress bar
|
|
6439
6854
|
*
|
|
6440
|
-
* @
|
|
6441
|
-
*
|
|
6855
|
+
* @public
|
|
6856
|
+
* HTML Attribute: `thickness`
|
|
6442
6857
|
*/
|
|
6443
|
-
|
|
6858
|
+
thickness?: ProgressBarThickness;
|
|
6444
6859
|
/**
|
|
6445
|
-
*
|
|
6446
|
-
* @
|
|
6447
|
-
*
|
|
6860
|
+
* Handles changes to thickness attribute custom states
|
|
6861
|
+
* @param prev - the previous state
|
|
6862
|
+
* @param next - the next state
|
|
6448
6863
|
*/
|
|
6449
|
-
|
|
6864
|
+
thicknessChanged(prev: ProgressBarThickness | undefined, next: ProgressBarThickness | undefined): void;
|
|
6450
6865
|
/**
|
|
6451
|
-
*
|
|
6452
|
-
*
|
|
6453
|
-
*
|
|
6454
|
-
* @param next - The current max value
|
|
6455
|
-
* @internal
|
|
6866
|
+
* The shape of the progress bar
|
|
6867
|
+
* @public
|
|
6868
|
+
* HTML Attribute: `shape`
|
|
6456
6869
|
*/
|
|
6457
|
-
|
|
6870
|
+
shape?: ProgressBarShape;
|
|
6458
6871
|
/**
|
|
6459
|
-
*
|
|
6460
|
-
* @
|
|
6872
|
+
* Handles changes to shape attribute custom states
|
|
6873
|
+
* @param prev - the previous state
|
|
6874
|
+
* @param next - the next state
|
|
6461
6875
|
*/
|
|
6462
|
-
|
|
6463
|
-
constructor();
|
|
6876
|
+
shapeChanged(prev: ProgressBarShape | undefined, next: ProgressBarShape | undefined): void;
|
|
6464
6877
|
}
|
|
6465
6878
|
|
|
6466
6879
|
/**
|
|
@@ -7677,858 +8090,431 @@ export declare const spacingHorizontalXXS = "var(--spacingHorizontalXXS)";
|
|
|
7677
8090
|
export declare const spacingHorizontalXXXL = "var(--spacingHorizontalXXXL)";
|
|
7678
8091
|
|
|
7679
8092
|
/**
|
|
7680
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalL | `spacingVerticalL`} design token.
|
|
7681
|
-
* @public
|
|
7682
|
-
*/
|
|
7683
|
-
export declare const spacingVerticalL = "var(--spacingVerticalL)";
|
|
7684
|
-
|
|
7685
|
-
/**
|
|
7686
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalM | `spacingVerticalM`} design token.
|
|
7687
|
-
* @public
|
|
7688
|
-
*/
|
|
7689
|
-
export declare const spacingVerticalM = "var(--spacingVerticalM)";
|
|
7690
|
-
|
|
7691
|
-
/**
|
|
7692
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalMNudge | `spacingVerticalMNudge`} design token.
|
|
7693
|
-
* @public
|
|
7694
|
-
*/
|
|
7695
|
-
export declare const spacingVerticalMNudge = "var(--spacingVerticalMNudge)";
|
|
7696
|
-
|
|
7697
|
-
/**
|
|
7698
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalNone | `spacingVerticalNone`} design token.
|
|
7699
|
-
* @public
|
|
7700
|
-
*/
|
|
7701
|
-
export declare const spacingVerticalNone = "var(--spacingVerticalNone)";
|
|
7702
|
-
|
|
7703
|
-
/**
|
|
7704
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalS | `spacingVerticalS`} design token.
|
|
7705
|
-
* @public
|
|
7706
|
-
*/
|
|
7707
|
-
export declare const spacingVerticalS = "var(--spacingVerticalS)";
|
|
7708
|
-
|
|
7709
|
-
/**
|
|
7710
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalSNudge | `spacingVerticalSNudge`} design token.
|
|
7711
|
-
* @public
|
|
7712
|
-
*/
|
|
7713
|
-
export declare const spacingVerticalSNudge = "var(--spacingVerticalSNudge)";
|
|
7714
|
-
|
|
7715
|
-
/**
|
|
7716
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalXL | `spacingVerticalXL`} design token.
|
|
7717
|
-
* @public
|
|
7718
|
-
*/
|
|
7719
|
-
export declare const spacingVerticalXL = "var(--spacingVerticalXL)";
|
|
7720
|
-
|
|
7721
|
-
/**
|
|
7722
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalXS | `spacingVerticalXS`} design token.
|
|
7723
|
-
* @public
|
|
7724
|
-
*/
|
|
7725
|
-
export declare const spacingVerticalXS = "var(--spacingVerticalXS)";
|
|
7726
|
-
|
|
7727
|
-
/**
|
|
7728
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalXXL | `spacingVerticalXXL`} design token.
|
|
7729
|
-
* @public
|
|
7730
|
-
*/
|
|
7731
|
-
export declare const spacingVerticalXXL = "var(--spacingVerticalXXL)";
|
|
7732
|
-
|
|
7733
|
-
/**
|
|
7734
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalXXS | `spacingVerticalXXS`} design token.
|
|
7735
|
-
* @public
|
|
7736
|
-
*/
|
|
7737
|
-
export declare const spacingVerticalXXS = "var(--spacingVerticalXXS)";
|
|
7738
|
-
|
|
7739
|
-
/**
|
|
7740
|
-
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalXXXL | `spacingVerticalXXXL`} design token.
|
|
7741
|
-
* @public
|
|
7742
|
-
*/
|
|
7743
|
-
export declare const spacingVerticalXXXL = "var(--spacingVerticalXXXL)";
|
|
7744
|
-
|
|
7745
|
-
/**
|
|
7746
|
-
* The base class used for constructing a fluent-spinner custom element
|
|
7747
|
-
* @public
|
|
7748
|
-
*/
|
|
7749
|
-
export declare class Spinner extends FASTElement {
|
|
7750
|
-
/**
|
|
7751
|
-
* The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
7752
|
-
*
|
|
7753
|
-
* @internal
|
|
7754
|
-
*/
|
|
7755
|
-
elementInternals: ElementInternals;
|
|
7756
|
-
/**
|
|
7757
|
-
* The size of the spinner
|
|
7758
|
-
*
|
|
7759
|
-
* @public
|
|
7760
|
-
* @remarks
|
|
7761
|
-
* HTML Attribute: size
|
|
7762
|
-
*/
|
|
7763
|
-
size?: SpinnerSize;
|
|
7764
|
-
/**
|
|
7765
|
-
* Handles changes to size attribute custom states
|
|
7766
|
-
* @param prev - the previous state
|
|
7767
|
-
* @param next - the next state
|
|
7768
|
-
*/
|
|
7769
|
-
sizeChanged(prev: SpinnerSize | undefined, next: SpinnerSize | undefined): void;
|
|
7770
|
-
/**
|
|
7771
|
-
* The appearance of the spinner
|
|
7772
|
-
* @public
|
|
7773
|
-
* @remarks
|
|
7774
|
-
* HTML Attribute: appearance
|
|
7775
|
-
*/
|
|
7776
|
-
appearance?: SpinnerAppearance;
|
|
7777
|
-
/**
|
|
7778
|
-
* Handles changes to appearance attribute custom states
|
|
7779
|
-
* @param prev - the previous state
|
|
7780
|
-
* @param next - the next state
|
|
7781
|
-
*/
|
|
7782
|
-
appearanceChanged(prev: SpinnerAppearance | undefined, next: SpinnerAppearance | undefined): void;
|
|
7783
|
-
constructor();
|
|
7784
|
-
}
|
|
7785
|
-
|
|
7786
|
-
/**
|
|
7787
|
-
* SpinnerAppearance constants
|
|
7788
|
-
* @public
|
|
7789
|
-
*/
|
|
7790
|
-
export declare const SpinnerAppearance: {
|
|
7791
|
-
readonly primary: "primary";
|
|
7792
|
-
readonly inverted: "inverted";
|
|
7793
|
-
};
|
|
7794
|
-
|
|
7795
|
-
/**
|
|
7796
|
-
* A Spinner's appearance can be either primary or inverted
|
|
7797
|
-
* @public
|
|
7798
|
-
*/
|
|
7799
|
-
export declare type SpinnerAppearance = ValuesOf<typeof SpinnerAppearance>;
|
|
7800
|
-
|
|
7801
|
-
/**
|
|
7802
|
-
* @public
|
|
7803
|
-
* @remarks
|
|
7804
|
-
* HTML Element: \<fluent-spinner\>
|
|
7805
|
-
*/
|
|
7806
|
-
export declare const SpinnerDefinition: FASTElementDefinition<typeof Spinner>;
|
|
7807
|
-
|
|
7808
|
-
/**
|
|
7809
|
-
* SpinnerSize constants
|
|
7810
|
-
* @public
|
|
7811
|
-
*/
|
|
7812
|
-
export declare const SpinnerSize: {
|
|
7813
|
-
readonly tiny: "tiny";
|
|
7814
|
-
readonly extraSmall: "extra-small";
|
|
7815
|
-
readonly small: "small";
|
|
7816
|
-
readonly medium: "medium";
|
|
7817
|
-
readonly large: "large";
|
|
7818
|
-
readonly extraLarge: "extra-large";
|
|
7819
|
-
readonly huge: "huge";
|
|
7820
|
-
};
|
|
7821
|
-
|
|
7822
|
-
/**
|
|
7823
|
-
* A Spinner's size can be either small, tiny, extra-small, medium, large, extra-large, or huge
|
|
7824
|
-
* @public
|
|
7825
|
-
*/
|
|
7826
|
-
export declare type SpinnerSize = ValuesOf<typeof SpinnerSize>;
|
|
7827
|
-
|
|
7828
|
-
export declare const SpinnerStyles: ElementStyles;
|
|
7829
|
-
|
|
7830
|
-
export declare const SpinnerTemplate: ViewTemplate<Spinner, any>;
|
|
7831
|
-
|
|
7832
|
-
/**
|
|
7833
|
-
* A mixin class implementing start and end slots.
|
|
7834
|
-
* These are generally used to decorate text elements with icons or other visual indicators.
|
|
7835
|
-
* @public
|
|
7836
|
-
*/
|
|
7837
|
-
declare class StartEnd {
|
|
7838
|
-
start: HTMLSlotElement;
|
|
7839
|
-
end: HTMLSlotElement;
|
|
7840
|
-
}
|
|
7841
|
-
|
|
7842
|
-
/**
|
|
7843
|
-
* Start/End configuration options
|
|
7844
|
-
* @public
|
|
7845
|
-
*/
|
|
7846
|
-
declare type StartEndOptions<TSource = any, TParent = any> = StartOptions<TSource, TParent> & EndOptions<TSource, TParent>;
|
|
7847
|
-
|
|
7848
|
-
/**
|
|
7849
|
-
* Start configuration options
|
|
7850
|
-
* @public
|
|
7851
|
-
*/
|
|
7852
|
-
declare type StartOptions<TSource = any, TParent = any> = {
|
|
7853
|
-
start?: StaticallyComposableHTML<TSource, TParent>;
|
|
7854
|
-
};
|
|
7855
|
-
|
|
7856
|
-
/**
|
|
7857
|
-
* A value that can be statically composed into a
|
|
7858
|
-
* foundation template.
|
|
7859
|
-
* @remarks
|
|
7860
|
-
* When providing a string, take care to ensure that it is
|
|
7861
|
-
* safe and will not enable an XSS attack.
|
|
7862
|
-
* @public
|
|
7863
|
-
*/
|
|
7864
|
-
declare type StaticallyComposableHTML<TSource = any, TParent = any> = string | HTMLDirective | SyntheticViewTemplate<TSource, TParent> | undefined;
|
|
7865
|
-
|
|
7866
|
-
/**
|
|
7867
|
-
* CSS custom property value for the {@link @fluentui/tokens#strokeWidthThick | `strokeWidthThick`} design token.
|
|
7868
|
-
* @public
|
|
7869
|
-
*/
|
|
7870
|
-
export declare const strokeWidthThick = "var(--strokeWidthThick)";
|
|
7871
|
-
|
|
7872
|
-
/**
|
|
7873
|
-
* CSS custom property value for the {@link @fluentui/tokens#strokeWidthThicker | `strokeWidthThicker`} design token.
|
|
7874
|
-
* @public
|
|
7875
|
-
*/
|
|
7876
|
-
export declare const strokeWidthThicker = "var(--strokeWidthThicker)";
|
|
7877
|
-
|
|
7878
|
-
/**
|
|
7879
|
-
* CSS custom property value for the {@link @fluentui/tokens#strokeWidthThickest | `strokeWidthThickest`} design token.
|
|
7880
|
-
* @public
|
|
7881
|
-
*/
|
|
7882
|
-
export declare const strokeWidthThickest = "var(--strokeWidthThickest)";
|
|
7883
|
-
|
|
7884
|
-
/**
|
|
7885
|
-
* CSS custom property value for the {@link @fluentui/tokens#strokeWidthThin | `strokeWidthThin`} design token.
|
|
7886
|
-
* @public
|
|
7887
|
-
*/
|
|
7888
|
-
export declare const strokeWidthThin = "var(--strokeWidthThin)";
|
|
7889
|
-
|
|
7890
|
-
/**
|
|
7891
|
-
* The styles for the Button component.
|
|
7892
|
-
*
|
|
7893
|
-
* @public
|
|
7894
|
-
*/
|
|
7895
|
-
declare const styles: ElementStyles;
|
|
7896
|
-
export { styles as ButtonStyles }
|
|
7897
|
-
export { styles as MenuButtonStyles }
|
|
7898
|
-
|
|
7899
|
-
export declare class Switch extends BaseCheckbox {
|
|
7900
|
-
constructor();
|
|
7901
|
-
}
|
|
7902
|
-
|
|
7903
|
-
/**
|
|
7904
|
-
* The Fluent Switch Element.
|
|
7905
|
-
*
|
|
8093
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalL | `spacingVerticalL`} design token.
|
|
7906
8094
|
* @public
|
|
7907
|
-
* @remarks
|
|
7908
|
-
* HTML Element: \<fluent-switch\>
|
|
7909
8095
|
*/
|
|
7910
|
-
export declare const
|
|
8096
|
+
export declare const spacingVerticalL = "var(--spacingVerticalL)";
|
|
7911
8097
|
|
|
7912
8098
|
/**
|
|
7913
|
-
*
|
|
8099
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalM | `spacingVerticalM`} design token.
|
|
7914
8100
|
* @public
|
|
7915
8101
|
*/
|
|
7916
|
-
export declare const
|
|
7917
|
-
readonly above: "above";
|
|
7918
|
-
readonly after: "after";
|
|
7919
|
-
readonly before: "before";
|
|
7920
|
-
};
|
|
8102
|
+
export declare const spacingVerticalM = "var(--spacingVerticalM)";
|
|
7921
8103
|
|
|
7922
8104
|
/**
|
|
7923
|
-
*
|
|
8105
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalMNudge | `spacingVerticalMNudge`} design token.
|
|
7924
8106
|
* @public
|
|
7925
8107
|
*/
|
|
7926
|
-
export declare
|
|
7927
|
-
|
|
7928
|
-
export declare type SwitchOptions = {
|
|
7929
|
-
switch?: StaticallyComposableHTML<Switch>;
|
|
7930
|
-
};
|
|
7931
|
-
|
|
7932
|
-
export declare const SwitchStyles: ElementStyles;
|
|
7933
|
-
|
|
7934
|
-
export declare const SwitchTemplate: ElementViewTemplate<Switch>;
|
|
8108
|
+
export declare const spacingVerticalMNudge = "var(--spacingVerticalMNudge)";
|
|
7935
8109
|
|
|
7936
8110
|
/**
|
|
7937
|
-
*
|
|
8111
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalNone | `spacingVerticalNone`} design token.
|
|
8112
|
+
* @public
|
|
7938
8113
|
*/
|
|
7939
|
-
export declare
|
|
7940
|
-
/**
|
|
7941
|
-
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled | disabled HTML attribute} for more information.
|
|
7942
|
-
* @public
|
|
7943
|
-
* @remarks
|
|
7944
|
-
* HTML Attribute: disabled
|
|
7945
|
-
*/
|
|
7946
|
-
disabled: boolean;
|
|
7947
|
-
private styles;
|
|
7948
|
-
connectedCallback(): void;
|
|
7949
|
-
}
|
|
7950
|
-
|
|
7951
|
-
export declare interface Tab extends StartEnd {
|
|
7952
|
-
}
|
|
7953
|
-
|
|
7954
|
-
export declare const TabDefinition: FASTElementDefinition<typeof Tab>;
|
|
8114
|
+
export declare const spacingVerticalNone = "var(--spacingVerticalNone)";
|
|
7955
8115
|
|
|
7956
8116
|
/**
|
|
7957
|
-
*
|
|
8117
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalS | `spacingVerticalS`} design token.
|
|
7958
8118
|
* @public
|
|
7959
8119
|
*/
|
|
7960
|
-
export declare
|
|
7961
|
-
|
|
7962
|
-
export declare class TabPanel extends FASTElement {
|
|
7963
|
-
}
|
|
7964
|
-
|
|
7965
|
-
export declare const TabPanelDefinition: FASTElementDefinition<typeof TabPanel>;
|
|
7966
|
-
|
|
7967
|
-
export declare const TabPanelStyles: ElementStyles;
|
|
7968
|
-
|
|
7969
|
-
export declare const TabPanelTemplate: ElementViewTemplate<TabPanel, any>;
|
|
7970
|
-
|
|
7971
|
-
export declare class Tabs extends BaseTabs {
|
|
7972
|
-
/**
|
|
7973
|
-
* activeTabData
|
|
7974
|
-
* The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
|
|
7975
|
-
*/
|
|
7976
|
-
private activeTabData;
|
|
7977
|
-
/**
|
|
7978
|
-
* previousActiveTabData
|
|
7979
|
-
* The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
|
|
7980
|
-
*/
|
|
7981
|
-
private previousActiveTabData;
|
|
7982
|
-
/**
|
|
7983
|
-
* activeTabOffset
|
|
7984
|
-
* Used to position the active indicator for animations of the active indicator on active tab changes.
|
|
7985
|
-
*/
|
|
7986
|
-
private activeTabOffset;
|
|
7987
|
-
/**
|
|
7988
|
-
* activeTabScale
|
|
7989
|
-
* Used to scale the tab active indicator up or down as animations of the active indicator occur.
|
|
7990
|
-
*/
|
|
7991
|
-
private activeTabScale;
|
|
7992
|
-
/**
|
|
7993
|
-
* styles
|
|
7994
|
-
* used in the class for storing the css variables required for animations
|
|
7995
|
-
*/
|
|
7996
|
-
private styles;
|
|
7997
|
-
/**
|
|
7998
|
-
* appearance
|
|
7999
|
-
* There are two modes of appearance: transparent and subtle.
|
|
8000
|
-
*/
|
|
8001
|
-
appearance?: TabsAppearance;
|
|
8002
|
-
/**
|
|
8003
|
-
* disabled
|
|
8004
|
-
* Used for disabling all click and keyboard events for the tabs, child tab elements and tab panel elements. UI styling of content and tabs will appear as "grayed out."
|
|
8005
|
-
*/
|
|
8006
|
-
disabled?: boolean;
|
|
8007
|
-
/**
|
|
8008
|
-
* size
|
|
8009
|
-
* defaults to medium.
|
|
8010
|
-
* Used to set the size of all the tab controls, which effects text size and margins. Three sizes: small, medium and large.
|
|
8011
|
-
*/
|
|
8012
|
-
size?: TabsSize;
|
|
8013
|
-
/**
|
|
8014
|
-
* calculateAnimationProperties
|
|
8015
|
-
*
|
|
8016
|
-
* Recalculates the active tab offset and scale.
|
|
8017
|
-
* These values will be applied to css variables that control the tab active indicator position animations
|
|
8018
|
-
*/
|
|
8019
|
-
private calculateAnimationProperties;
|
|
8020
|
-
/**
|
|
8021
|
-
* getSelectedTabPosition - gets the x or y coordinates of the tab
|
|
8022
|
-
*/
|
|
8023
|
-
private getTabPosition;
|
|
8024
|
-
/**
|
|
8025
|
-
* getSelectedTabScale - gets the scale of the tab
|
|
8026
|
-
*/
|
|
8027
|
-
private getTabScale;
|
|
8028
|
-
/**
|
|
8029
|
-
* Calculates and applies updated values to CSS variables.
|
|
8030
|
-
*
|
|
8031
|
-
* @param tab - the tab element to apply the updated values to
|
|
8032
|
-
* @internal
|
|
8033
|
-
*/
|
|
8034
|
-
private applyUpdatedCSSValues;
|
|
8035
|
-
/**
|
|
8036
|
-
* Runs through all the operations required for setting the tab active indicator to its starting location, ending
|
|
8037
|
-
* location, and applying the animated css class to the tab.
|
|
8038
|
-
*
|
|
8039
|
-
* @param tab - the tab element to apply the updated values to
|
|
8040
|
-
* @internal
|
|
8041
|
-
*/
|
|
8042
|
-
private animationLoop;
|
|
8043
|
-
/**
|
|
8044
|
-
* Sets the data from the active tab onto the class. used for making all the animation calculations for the active
|
|
8045
|
-
* tab indicator.
|
|
8046
|
-
*
|
|
8047
|
-
* @internal
|
|
8048
|
-
*/
|
|
8049
|
-
private setTabData;
|
|
8050
|
-
private setTabOffsetCSSVar;
|
|
8051
|
-
private setTabScaleCSSVar;
|
|
8052
|
-
activeidChanged(oldValue: string, newValue: string): void;
|
|
8053
|
-
tabsChanged(): void;
|
|
8054
|
-
}
|
|
8055
|
-
|
|
8056
|
-
export declare interface Tabs extends StartEnd {
|
|
8057
|
-
}
|
|
8058
|
-
|
|
8059
|
-
export declare const TabsAppearance: {
|
|
8060
|
-
readonly subtle: "subtle";
|
|
8061
|
-
readonly transparent: "transparent";
|
|
8062
|
-
};
|
|
8063
|
-
|
|
8064
|
-
export declare type TabsAppearance = ValuesOf<typeof TabsAppearance>;
|
|
8065
|
-
|
|
8066
|
-
export declare const TabsDefinition: FASTElementDefinition<typeof Tabs>;
|
|
8120
|
+
export declare const spacingVerticalS = "var(--spacingVerticalS)";
|
|
8067
8121
|
|
|
8068
8122
|
/**
|
|
8069
|
-
*
|
|
8123
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalSNudge | `spacingVerticalSNudge`} design token.
|
|
8070
8124
|
* @public
|
|
8071
8125
|
*/
|
|
8072
|
-
export declare
|
|
8126
|
+
export declare const spacingVerticalSNudge = "var(--spacingVerticalSNudge)";
|
|
8073
8127
|
|
|
8074
8128
|
/**
|
|
8075
|
-
*
|
|
8129
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalXL | `spacingVerticalXL`} design token.
|
|
8076
8130
|
* @public
|
|
8077
8131
|
*/
|
|
8078
|
-
export declare const
|
|
8079
|
-
readonly horizontal: "horizontal";
|
|
8080
|
-
readonly vertical: "vertical";
|
|
8081
|
-
};
|
|
8132
|
+
export declare const spacingVerticalXL = "var(--spacingVerticalXL)";
|
|
8082
8133
|
|
|
8083
8134
|
/**
|
|
8084
|
-
*
|
|
8135
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalXS | `spacingVerticalXS`} design token.
|
|
8085
8136
|
* @public
|
|
8086
8137
|
*/
|
|
8087
|
-
export declare
|
|
8088
|
-
|
|
8089
|
-
export declare const TabsSize: {
|
|
8090
|
-
readonly small: "small";
|
|
8091
|
-
readonly medium: "medium";
|
|
8092
|
-
readonly large: "large";
|
|
8093
|
-
};
|
|
8094
|
-
|
|
8095
|
-
export declare type TabsSize = ValuesOf<typeof TabsSize>;
|
|
8096
|
-
|
|
8097
|
-
export declare const TabsStyles: ElementStyles;
|
|
8098
|
-
|
|
8099
|
-
export declare const TabsTemplate: ElementViewTemplate<Tabs, any>;
|
|
8100
|
-
|
|
8101
|
-
export declare const TabStyles: ElementStyles;
|
|
8138
|
+
export declare const spacingVerticalXS = "var(--spacingVerticalXS)";
|
|
8102
8139
|
|
|
8103
|
-
|
|
8140
|
+
/**
|
|
8141
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalXXL | `spacingVerticalXXL`} design token.
|
|
8142
|
+
* @public
|
|
8143
|
+
*/
|
|
8144
|
+
export declare const spacingVerticalXXL = "var(--spacingVerticalXXL)";
|
|
8104
8145
|
|
|
8105
8146
|
/**
|
|
8106
|
-
*
|
|
8147
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalXXS | `spacingVerticalXXS`} design token.
|
|
8107
8148
|
* @public
|
|
8108
8149
|
*/
|
|
8109
|
-
declare
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
*/
|
|
8125
|
-
nowrap: boolean;
|
|
8126
|
-
/**
|
|
8127
|
-
* The text truncates
|
|
8128
|
-
*
|
|
8129
|
-
* @public
|
|
8130
|
-
* @remarks
|
|
8131
|
-
* HTML Attribute: truncate
|
|
8132
|
-
*/
|
|
8133
|
-
truncate: boolean;
|
|
8134
|
-
/**
|
|
8135
|
-
* The text style is italic
|
|
8136
|
-
*
|
|
8137
|
-
* @public
|
|
8138
|
-
* @remarks
|
|
8139
|
-
* HTML Attribute: italic
|
|
8140
|
-
*/
|
|
8141
|
-
italic: boolean;
|
|
8142
|
-
/**
|
|
8143
|
-
* The text style is underline
|
|
8144
|
-
*
|
|
8145
|
-
* @public
|
|
8146
|
-
* @remarks
|
|
8147
|
-
* HTML Attribute: underline
|
|
8148
|
-
*/
|
|
8149
|
-
underline: boolean;
|
|
8150
|
-
/**
|
|
8151
|
-
* The text style is strikethrough
|
|
8152
|
-
*
|
|
8153
|
-
* @public
|
|
8154
|
-
* @remarks
|
|
8155
|
-
* HTML Attribute: strikethrough
|
|
8156
|
-
*/
|
|
8157
|
-
strikethrough: boolean;
|
|
8158
|
-
/**
|
|
8159
|
-
* An text can take up the width of its container.
|
|
8160
|
-
*
|
|
8161
|
-
* @public
|
|
8162
|
-
* @remarks
|
|
8163
|
-
* HTML Attribute: block
|
|
8164
|
-
*/
|
|
8165
|
-
block: boolean;
|
|
8150
|
+
export declare const spacingVerticalXXS = "var(--spacingVerticalXXS)";
|
|
8151
|
+
|
|
8152
|
+
/**
|
|
8153
|
+
* CSS custom property value for the {@link @fluentui/tokens#spacingVerticalXXXL | `spacingVerticalXXXL`} design token.
|
|
8154
|
+
* @public
|
|
8155
|
+
*/
|
|
8156
|
+
export declare const spacingVerticalXXXL = "var(--spacingVerticalXXXL)";
|
|
8157
|
+
|
|
8158
|
+
/**
|
|
8159
|
+
* A Spinner Custom HTML Element.
|
|
8160
|
+
* Based on BaseSpinner and includes style and layout specific attributes
|
|
8161
|
+
*
|
|
8162
|
+
* @public
|
|
8163
|
+
*/
|
|
8164
|
+
export declare class Spinner extends BaseSpinner {
|
|
8166
8165
|
/**
|
|
8167
|
-
*
|
|
8166
|
+
* The size of the spinner
|
|
8168
8167
|
*
|
|
8169
8168
|
* @public
|
|
8170
8169
|
* @remarks
|
|
8171
8170
|
* HTML Attribute: size
|
|
8172
|
-
*
|
|
8173
8171
|
*/
|
|
8174
|
-
size?:
|
|
8172
|
+
size?: SpinnerSize;
|
|
8175
8173
|
/**
|
|
8176
8174
|
* Handles changes to size attribute custom states
|
|
8177
8175
|
* @param prev - the previous state
|
|
8178
8176
|
* @param next - the next state
|
|
8179
8177
|
*/
|
|
8180
|
-
sizeChanged(prev:
|
|
8181
|
-
/**
|
|
8182
|
-
* THe Text font
|
|
8183
|
-
*
|
|
8184
|
-
* @public
|
|
8185
|
-
* @remarks
|
|
8186
|
-
* HTML Attribute: font
|
|
8187
|
-
*/
|
|
8188
|
-
font?: TextFont;
|
|
8189
|
-
/**
|
|
8190
|
-
* Handles changes to font attribute custom states
|
|
8191
|
-
* @param prev - the previous state
|
|
8192
|
-
* @param next - the next state
|
|
8193
|
-
*/
|
|
8194
|
-
fontChanged(prev: TextFont | undefined, next: TextFont | undefined): void;
|
|
8195
|
-
/**
|
|
8196
|
-
* The Text weight
|
|
8197
|
-
*
|
|
8198
|
-
* @public
|
|
8199
|
-
* @remarks
|
|
8200
|
-
* HTML Attribute: weight
|
|
8201
|
-
*/
|
|
8202
|
-
weight?: TextWeight;
|
|
8203
|
-
/**
|
|
8204
|
-
* Handles changes to weight attribute custom states
|
|
8205
|
-
* @param prev - the previous state
|
|
8206
|
-
* @param next - the next state
|
|
8207
|
-
*/
|
|
8208
|
-
weightChanged(prev: TextWeight | undefined, next: TextWeight | undefined): void;
|
|
8178
|
+
sizeChanged(prev: SpinnerSize | undefined, next: SpinnerSize | undefined): void;
|
|
8209
8179
|
/**
|
|
8210
|
-
*
|
|
8211
|
-
*
|
|
8180
|
+
* The appearance of the spinner
|
|
8212
8181
|
* @public
|
|
8213
8182
|
* @remarks
|
|
8214
|
-
* HTML Attribute:
|
|
8183
|
+
* HTML Attribute: appearance
|
|
8215
8184
|
*/
|
|
8216
|
-
|
|
8185
|
+
appearance?: SpinnerAppearance;
|
|
8217
8186
|
/**
|
|
8218
|
-
* Handles changes to
|
|
8187
|
+
* Handles changes to appearance attribute custom states
|
|
8219
8188
|
* @param prev - the previous state
|
|
8220
8189
|
* @param next - the next state
|
|
8221
8190
|
*/
|
|
8222
|
-
|
|
8223
|
-
connectedCallback(): void;
|
|
8224
|
-
disconnectedCallback(): void;
|
|
8225
|
-
/**
|
|
8226
|
-
* Handles changes to observable properties
|
|
8227
|
-
* @internal
|
|
8228
|
-
* @param source - the source of the change
|
|
8229
|
-
* @param propertyName - the property name being changed
|
|
8230
|
-
*/
|
|
8231
|
-
handleChange(source: any, propertyName: string): void;
|
|
8191
|
+
appearanceChanged(prev: SpinnerAppearance | undefined, next: SpinnerAppearance | undefined): void;
|
|
8232
8192
|
}
|
|
8233
|
-
export { Text_2 as Text }
|
|
8234
8193
|
|
|
8235
8194
|
/**
|
|
8236
|
-
*
|
|
8195
|
+
* SpinnerAppearance constants
|
|
8237
8196
|
* @public
|
|
8238
8197
|
*/
|
|
8239
|
-
export declare const
|
|
8240
|
-
readonly
|
|
8241
|
-
readonly
|
|
8242
|
-
readonly center: "center";
|
|
8243
|
-
readonly justify: "justify";
|
|
8198
|
+
export declare const SpinnerAppearance: {
|
|
8199
|
+
readonly primary: "primary";
|
|
8200
|
+
readonly inverted: "inverted";
|
|
8244
8201
|
};
|
|
8245
8202
|
|
|
8246
8203
|
/**
|
|
8247
|
-
*
|
|
8204
|
+
* A Spinner's appearance can be either primary or inverted
|
|
8248
8205
|
* @public
|
|
8249
8206
|
*/
|
|
8250
|
-
export declare type
|
|
8207
|
+
export declare type SpinnerAppearance = ValuesOf<typeof SpinnerAppearance>;
|
|
8251
8208
|
|
|
8252
8209
|
/**
|
|
8253
|
-
* The Fluent Text Element.
|
|
8254
|
-
*
|
|
8255
|
-
*
|
|
8256
8210
|
* @public
|
|
8257
8211
|
* @remarks
|
|
8258
|
-
* HTML Element: \<fluent-
|
|
8212
|
+
* HTML Element: \<fluent-spinner\>
|
|
8259
8213
|
*/
|
|
8260
|
-
export declare const
|
|
8214
|
+
export declare const SpinnerDefinition: FASTElementDefinition<typeof Spinner>;
|
|
8261
8215
|
|
|
8262
8216
|
/**
|
|
8263
|
-
*
|
|
8217
|
+
* SpinnerSize constants
|
|
8264
8218
|
* @public
|
|
8265
8219
|
*/
|
|
8266
|
-
export declare const
|
|
8267
|
-
readonly
|
|
8268
|
-
readonly
|
|
8269
|
-
readonly
|
|
8220
|
+
export declare const SpinnerSize: {
|
|
8221
|
+
readonly tiny: "tiny";
|
|
8222
|
+
readonly extraSmall: "extra-small";
|
|
8223
|
+
readonly small: "small";
|
|
8224
|
+
readonly medium: "medium";
|
|
8225
|
+
readonly large: "large";
|
|
8226
|
+
readonly extraLarge: "extra-large";
|
|
8227
|
+
readonly huge: "huge";
|
|
8270
8228
|
};
|
|
8271
8229
|
|
|
8272
8230
|
/**
|
|
8273
|
-
*
|
|
8231
|
+
* A Spinner's size can be either small, tiny, extra-small, medium, large, extra-large, or huge
|
|
8274
8232
|
* @public
|
|
8275
8233
|
*/
|
|
8276
|
-
export declare type
|
|
8234
|
+
export declare type SpinnerSize = ValuesOf<typeof SpinnerSize>;
|
|
8235
|
+
|
|
8236
|
+
export declare const SpinnerStyles: ElementStyles;
|
|
8237
|
+
|
|
8238
|
+
export declare const SpinnerTemplate: ViewTemplate<Spinner, any>;
|
|
8277
8239
|
|
|
8278
8240
|
/**
|
|
8279
|
-
* A
|
|
8280
|
-
*
|
|
8281
|
-
*
|
|
8282
|
-
* @slot start - Content which can be provided before the input
|
|
8283
|
-
* @slot end - Content which can be provided after the input
|
|
8284
|
-
* @slot - The default slot for button content
|
|
8285
|
-
* @csspart label - The internal `<label>` element
|
|
8286
|
-
* @csspart root - the root container for the internal control
|
|
8287
|
-
* @csspart control - The internal `<input>` control
|
|
8241
|
+
* A mixin class implementing start and end slots.
|
|
8242
|
+
* These are generally used to decorate text elements with icons or other visual indicators.
|
|
8288
8243
|
* @public
|
|
8289
8244
|
*/
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
*
|
|
8394
|
-
* @public
|
|
8395
|
-
* @remarks
|
|
8396
|
-
* HTML Attribute: `list`
|
|
8397
|
-
*/
|
|
8398
|
-
list: string;
|
|
8399
|
-
/**
|
|
8400
|
-
* The maximum number of characters a user can enter.
|
|
8401
|
-
*
|
|
8402
|
-
* @public
|
|
8403
|
-
* @remarks
|
|
8404
|
-
* HTML Attribute: `maxlength`
|
|
8405
|
-
*/
|
|
8406
|
-
maxlength: number;
|
|
8407
|
-
/**
|
|
8408
|
-
* The minimum number of characters a user can enter.
|
|
8409
|
-
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/minlength | `minlength`} attribute
|
|
8410
|
-
*
|
|
8411
|
-
* @public
|
|
8412
|
-
* @remarks
|
|
8413
|
-
* HTML Attribute: `minlength`
|
|
8414
|
-
*/
|
|
8415
|
-
minlength: number;
|
|
8245
|
+
declare class StartEnd {
|
|
8246
|
+
start: HTMLSlotElement;
|
|
8247
|
+
end: HTMLSlotElement;
|
|
8248
|
+
}
|
|
8249
|
+
|
|
8250
|
+
/**
|
|
8251
|
+
* Start/End configuration options
|
|
8252
|
+
* @public
|
|
8253
|
+
*/
|
|
8254
|
+
declare type StartEndOptions<TSource = any, TParent = any> = StartOptions<TSource, TParent> & EndOptions<TSource, TParent>;
|
|
8255
|
+
|
|
8256
|
+
/**
|
|
8257
|
+
* Start configuration options
|
|
8258
|
+
* @public
|
|
8259
|
+
*/
|
|
8260
|
+
declare type StartOptions<TSource = any, TParent = any> = {
|
|
8261
|
+
start?: StaticallyComposableHTML<TSource, TParent>;
|
|
8262
|
+
};
|
|
8263
|
+
|
|
8264
|
+
/**
|
|
8265
|
+
* A value that can be statically composed into a
|
|
8266
|
+
* foundation template.
|
|
8267
|
+
* @remarks
|
|
8268
|
+
* When providing a string, take care to ensure that it is
|
|
8269
|
+
* safe and will not enable an XSS attack.
|
|
8270
|
+
* @public
|
|
8271
|
+
*/
|
|
8272
|
+
declare type StaticallyComposableHTML<TSource = any, TParent = any> = string | HTMLDirective | SyntheticViewTemplate<TSource, TParent> | undefined;
|
|
8273
|
+
|
|
8274
|
+
/**
|
|
8275
|
+
* CSS custom property value for the {@link @fluentui/tokens#strokeWidthThick | `strokeWidthThick`} design token.
|
|
8276
|
+
* @public
|
|
8277
|
+
*/
|
|
8278
|
+
export declare const strokeWidthThick = "var(--strokeWidthThick)";
|
|
8279
|
+
|
|
8280
|
+
/**
|
|
8281
|
+
* CSS custom property value for the {@link @fluentui/tokens#strokeWidthThicker | `strokeWidthThicker`} design token.
|
|
8282
|
+
* @public
|
|
8283
|
+
*/
|
|
8284
|
+
export declare const strokeWidthThicker = "var(--strokeWidthThicker)";
|
|
8285
|
+
|
|
8286
|
+
/**
|
|
8287
|
+
* CSS custom property value for the {@link @fluentui/tokens#strokeWidthThickest | `strokeWidthThickest`} design token.
|
|
8288
|
+
* @public
|
|
8289
|
+
*/
|
|
8290
|
+
export declare const strokeWidthThickest = "var(--strokeWidthThickest)";
|
|
8291
|
+
|
|
8292
|
+
/**
|
|
8293
|
+
* CSS custom property value for the {@link @fluentui/tokens#strokeWidthThin | `strokeWidthThin`} design token.
|
|
8294
|
+
* @public
|
|
8295
|
+
*/
|
|
8296
|
+
export declare const strokeWidthThin = "var(--strokeWidthThin)";
|
|
8297
|
+
|
|
8298
|
+
/**
|
|
8299
|
+
* The styles for the Button component.
|
|
8300
|
+
*
|
|
8301
|
+
* @public
|
|
8302
|
+
*/
|
|
8303
|
+
declare const styles: ElementStyles;
|
|
8304
|
+
export { styles as ButtonStyles }
|
|
8305
|
+
export { styles as MenuButtonStyles }
|
|
8306
|
+
|
|
8307
|
+
export declare class Switch extends BaseCheckbox {
|
|
8308
|
+
constructor();
|
|
8309
|
+
}
|
|
8310
|
+
|
|
8311
|
+
/**
|
|
8312
|
+
* The Fluent Switch Element.
|
|
8313
|
+
*
|
|
8314
|
+
* @public
|
|
8315
|
+
* @remarks
|
|
8316
|
+
* HTML Element: \<fluent-switch\>
|
|
8317
|
+
*/
|
|
8318
|
+
export declare const SwitchDefinition: FASTElementDefinition<typeof Switch>;
|
|
8319
|
+
|
|
8320
|
+
/**
|
|
8321
|
+
* SwitchLabelPosition Constants
|
|
8322
|
+
* @public
|
|
8323
|
+
*/
|
|
8324
|
+
export declare const SwitchLabelPosition: {
|
|
8325
|
+
readonly above: "above";
|
|
8326
|
+
readonly after: "after";
|
|
8327
|
+
readonly before: "before";
|
|
8328
|
+
};
|
|
8329
|
+
|
|
8330
|
+
/**
|
|
8331
|
+
* Applies label position
|
|
8332
|
+
* @public
|
|
8333
|
+
*/
|
|
8334
|
+
export declare type SwitchLabelPosition = ValuesOf<typeof SwitchLabelPosition>;
|
|
8335
|
+
|
|
8336
|
+
export declare type SwitchOptions = {
|
|
8337
|
+
switch?: StaticallyComposableHTML<Switch>;
|
|
8338
|
+
};
|
|
8339
|
+
|
|
8340
|
+
export declare const SwitchStyles: ElementStyles;
|
|
8341
|
+
|
|
8342
|
+
export declare const SwitchTemplate: ElementViewTemplate<Switch>;
|
|
8343
|
+
|
|
8344
|
+
/**
|
|
8345
|
+
* Tab extends the FASTTab and is a child of the TabList
|
|
8346
|
+
*/
|
|
8347
|
+
export declare class Tab extends FASTElement {
|
|
8416
8348
|
/**
|
|
8417
|
-
*
|
|
8418
|
-
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/multiple | `multiple`} attribute
|
|
8419
|
-
*
|
|
8349
|
+
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled | disabled HTML attribute} for more information.
|
|
8420
8350
|
* @public
|
|
8421
8351
|
* @remarks
|
|
8422
|
-
* HTML Attribute:
|
|
8352
|
+
* HTML Attribute: disabled
|
|
8423
8353
|
*/
|
|
8424
|
-
|
|
8354
|
+
disabled: boolean;
|
|
8355
|
+
private styles;
|
|
8356
|
+
connectedCallback(): void;
|
|
8357
|
+
}
|
|
8358
|
+
|
|
8359
|
+
export declare interface Tab extends StartEnd {
|
|
8360
|
+
}
|
|
8361
|
+
|
|
8362
|
+
export declare const TabDefinition: FASTElementDefinition<typeof Tab>;
|
|
8363
|
+
|
|
8364
|
+
/**
|
|
8365
|
+
* Tab configuration options
|
|
8366
|
+
* @public
|
|
8367
|
+
*/
|
|
8368
|
+
export declare type TabOptions = StartEndOptions<Tab>;
|
|
8369
|
+
|
|
8370
|
+
export declare class TabPanel extends FASTElement {
|
|
8371
|
+
}
|
|
8372
|
+
|
|
8373
|
+
export declare const TabPanelDefinition: FASTElementDefinition<typeof TabPanel>;
|
|
8374
|
+
|
|
8375
|
+
export declare const TabPanelStyles: ElementStyles;
|
|
8376
|
+
|
|
8377
|
+
export declare const TabPanelTemplate: ElementViewTemplate<TabPanel, any>;
|
|
8378
|
+
|
|
8379
|
+
export declare class Tabs extends BaseTabs {
|
|
8425
8380
|
/**
|
|
8426
|
-
*
|
|
8427
|
-
*
|
|
8428
|
-
* @public
|
|
8429
|
-
* @remarks
|
|
8430
|
-
* HTML Attribute: `name`
|
|
8381
|
+
* activeTabData
|
|
8382
|
+
* The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
|
|
8431
8383
|
*/
|
|
8432
|
-
|
|
8384
|
+
private activeTabData;
|
|
8433
8385
|
/**
|
|
8434
|
-
*
|
|
8435
|
-
*
|
|
8436
|
-
* @public
|
|
8437
|
-
* @remarks
|
|
8438
|
-
* HTML Attribute: `pattern`
|
|
8386
|
+
* previousActiveTabData
|
|
8387
|
+
* The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
|
|
8439
8388
|
*/
|
|
8440
|
-
|
|
8389
|
+
private previousActiveTabData;
|
|
8441
8390
|
/**
|
|
8442
|
-
*
|
|
8443
|
-
*
|
|
8444
|
-
*
|
|
8445
|
-
* @public
|
|
8446
|
-
* @remarks
|
|
8447
|
-
* HTML Attribute: `placeholder`
|
|
8448
|
-
* This attribute is not a valid substitute for a label.
|
|
8391
|
+
* activeTabOffset
|
|
8392
|
+
* Used to position the active indicator for animations of the active indicator on active tab changes.
|
|
8449
8393
|
*/
|
|
8450
|
-
|
|
8394
|
+
private activeTabOffset;
|
|
8451
8395
|
/**
|
|
8452
|
-
*
|
|
8453
|
-
*
|
|
8454
|
-
*
|
|
8455
|
-
* @public
|
|
8456
|
-
* @remarks
|
|
8457
|
-
* HTML Attribute: `readonly`
|
|
8396
|
+
* activeTabScale
|
|
8397
|
+
* Used to scale the tab active indicator up or down as animations of the active indicator occur.
|
|
8458
8398
|
*/
|
|
8459
|
-
|
|
8399
|
+
private activeTabScale;
|
|
8460
8400
|
/**
|
|
8461
|
-
*
|
|
8462
|
-
*
|
|
8463
|
-
* @internal
|
|
8401
|
+
* styles
|
|
8402
|
+
* used in the class for storing the css variables required for animations
|
|
8464
8403
|
*/
|
|
8465
|
-
|
|
8404
|
+
private styles;
|
|
8466
8405
|
/**
|
|
8467
|
-
*
|
|
8468
|
-
*
|
|
8469
|
-
* @public
|
|
8470
|
-
* @remarks
|
|
8471
|
-
* HTML Attribute: `required`
|
|
8406
|
+
* appearance
|
|
8407
|
+
* There are two modes of appearance: transparent and subtle.
|
|
8472
8408
|
*/
|
|
8473
|
-
|
|
8409
|
+
appearance?: TabsAppearance;
|
|
8474
8410
|
/**
|
|
8475
|
-
*
|
|
8476
|
-
*
|
|
8477
|
-
* @param previous - the previous required state
|
|
8478
|
-
* @param next - the current required state
|
|
8479
|
-
*
|
|
8480
|
-
* @internal
|
|
8411
|
+
* disabled
|
|
8412
|
+
* Used for disabling all click and keyboard events for the tabs, child tab elements and tab panel elements. UI styling of content and tabs will appear as "grayed out."
|
|
8481
8413
|
*/
|
|
8482
|
-
|
|
8414
|
+
disabled?: boolean;
|
|
8483
8415
|
/**
|
|
8484
|
-
*
|
|
8485
|
-
*
|
|
8486
|
-
*
|
|
8487
|
-
* @remarks
|
|
8488
|
-
* HTML Attribute: `size`
|
|
8416
|
+
* size
|
|
8417
|
+
* defaults to medium.
|
|
8418
|
+
* Used to set the size of all the tab controls, which effects text size and margins. Three sizes: small, medium and large.
|
|
8489
8419
|
*/
|
|
8490
|
-
size
|
|
8420
|
+
size?: TabsSize;
|
|
8491
8421
|
/**
|
|
8492
|
-
*
|
|
8493
|
-
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck | `spellcheck`} attribute
|
|
8422
|
+
* calculateAnimationProperties
|
|
8494
8423
|
*
|
|
8495
|
-
*
|
|
8496
|
-
*
|
|
8497
|
-
* HTML Attribute: `spellcheck`
|
|
8424
|
+
* Recalculates the active tab offset and scale.
|
|
8425
|
+
* These values will be applied to css variables that control the tab active indicator position animations
|
|
8498
8426
|
*/
|
|
8499
|
-
|
|
8427
|
+
private calculateAnimationProperties;
|
|
8500
8428
|
/**
|
|
8501
|
-
*
|
|
8502
|
-
*
|
|
8503
|
-
* @public
|
|
8504
|
-
* @remarks
|
|
8505
|
-
* HTML Attribute: `type`
|
|
8429
|
+
* getSelectedTabPosition - gets the x or y coordinates of the tab
|
|
8506
8430
|
*/
|
|
8507
|
-
|
|
8431
|
+
private getTabPosition;
|
|
8508
8432
|
/**
|
|
8509
|
-
*
|
|
8510
|
-
*
|
|
8511
|
-
* @internal
|
|
8433
|
+
* getSelectedTabScale - gets the scale of the tab
|
|
8512
8434
|
*/
|
|
8513
|
-
private
|
|
8435
|
+
private getTabScale;
|
|
8514
8436
|
/**
|
|
8515
|
-
*
|
|
8437
|
+
* Calculates and applies updated values to CSS variables.
|
|
8516
8438
|
*
|
|
8439
|
+
* @param tab - the tab element to apply the updated values to
|
|
8517
8440
|
* @internal
|
|
8518
8441
|
*/
|
|
8519
|
-
|
|
8442
|
+
private applyUpdatedCSSValues;
|
|
8520
8443
|
/**
|
|
8521
|
-
*
|
|
8444
|
+
* Runs through all the operations required for setting the tab active indicator to its starting location, ending
|
|
8445
|
+
* location, and applying the animated css class to the tab.
|
|
8522
8446
|
*
|
|
8447
|
+
* @param tab - the tab element to apply the updated values to
|
|
8523
8448
|
* @internal
|
|
8524
8449
|
*/
|
|
8525
|
-
|
|
8450
|
+
private animationLoop;
|
|
8526
8451
|
/**
|
|
8527
|
-
*
|
|
8452
|
+
* Sets the data from the active tab onto the class. used for making all the animation calculations for the active
|
|
8453
|
+
* tab indicator.
|
|
8528
8454
|
*
|
|
8529
8455
|
* @internal
|
|
8530
8456
|
*/
|
|
8531
|
-
private
|
|
8457
|
+
private setTabData;
|
|
8458
|
+
private setTabOffsetCSSVar;
|
|
8459
|
+
private setTabScaleCSSVar;
|
|
8460
|
+
activeidChanged(oldValue: string, newValue: string): void;
|
|
8461
|
+
tabsChanged(): void;
|
|
8462
|
+
}
|
|
8463
|
+
|
|
8464
|
+
export declare interface Tabs extends StartEnd {
|
|
8465
|
+
}
|
|
8466
|
+
|
|
8467
|
+
export declare const TabsAppearance: {
|
|
8468
|
+
readonly subtle: "subtle";
|
|
8469
|
+
readonly transparent: "transparent";
|
|
8470
|
+
};
|
|
8471
|
+
|
|
8472
|
+
export declare type TabsAppearance = ValuesOf<typeof TabsAppearance>;
|
|
8473
|
+
|
|
8474
|
+
export declare const TabsDefinition: FASTElementDefinition<typeof Tabs>;
|
|
8475
|
+
|
|
8476
|
+
/**
|
|
8477
|
+
* Tabs option configuration options
|
|
8478
|
+
* @public
|
|
8479
|
+
*/
|
|
8480
|
+
export declare type TabsOptions = StartEndOptions<Tabs>;
|
|
8481
|
+
|
|
8482
|
+
/**
|
|
8483
|
+
* The orientation of the component
|
|
8484
|
+
* @public
|
|
8485
|
+
*/
|
|
8486
|
+
export declare const TabsOrientation: {
|
|
8487
|
+
readonly horizontal: "horizontal";
|
|
8488
|
+
readonly vertical: "vertical";
|
|
8489
|
+
};
|
|
8490
|
+
|
|
8491
|
+
/**
|
|
8492
|
+
* The types for the Tabs component
|
|
8493
|
+
* @public
|
|
8494
|
+
*/
|
|
8495
|
+
export declare type TabsOrientation = ValuesOf<typeof TabsOrientation>;
|
|
8496
|
+
|
|
8497
|
+
export declare const TabsSize: {
|
|
8498
|
+
readonly small: "small";
|
|
8499
|
+
readonly medium: "medium";
|
|
8500
|
+
readonly large: "large";
|
|
8501
|
+
};
|
|
8502
|
+
|
|
8503
|
+
export declare type TabsSize = ValuesOf<typeof TabsSize>;
|
|
8504
|
+
|
|
8505
|
+
export declare const TabsStyles: ElementStyles;
|
|
8506
|
+
|
|
8507
|
+
export declare const TabsTemplate: ElementViewTemplate<Tabs, any>;
|
|
8508
|
+
|
|
8509
|
+
export declare const TabStyles: ElementStyles;
|
|
8510
|
+
|
|
8511
|
+
export declare const TabTemplate: ElementViewTemplate<Tab, any>;
|
|
8512
|
+
|
|
8513
|
+
/**
|
|
8514
|
+
* The base class used for constructing a fluent-text custom element
|
|
8515
|
+
* @public
|
|
8516
|
+
*/
|
|
8517
|
+
declare class Text_2 extends FASTElement {
|
|
8532
8518
|
/**
|
|
8533
8519
|
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
8534
8520
|
*
|
|
@@ -8536,153 +8522,202 @@ export declare class TextInput extends FASTElement {
|
|
|
8536
8522
|
*/
|
|
8537
8523
|
elementInternals: ElementInternals;
|
|
8538
8524
|
/**
|
|
8539
|
-
* The
|
|
8540
|
-
*
|
|
8525
|
+
* The text will not wrap
|
|
8526
|
+
* NOTE: In Fluent UI React v9 this is "wrap"
|
|
8527
|
+
* Boolean attributes which default to true in HTML can't be switched off in the DOM
|
|
8541
8528
|
*
|
|
8542
8529
|
* @public
|
|
8530
|
+
* @remarks
|
|
8531
|
+
* HTML Attribute: nowrap
|
|
8543
8532
|
*/
|
|
8544
|
-
|
|
8533
|
+
nowrap: boolean;
|
|
8545
8534
|
/**
|
|
8546
|
-
* The
|
|
8535
|
+
* The text truncates
|
|
8547
8536
|
*
|
|
8548
8537
|
* @public
|
|
8549
8538
|
* @remarks
|
|
8550
|
-
*
|
|
8539
|
+
* HTML Attribute: truncate
|
|
8551
8540
|
*/
|
|
8552
|
-
|
|
8541
|
+
truncate: boolean;
|
|
8553
8542
|
/**
|
|
8554
|
-
* The
|
|
8543
|
+
* The text style is italic
|
|
8555
8544
|
*
|
|
8556
8545
|
* @public
|
|
8557
8546
|
* @remarks
|
|
8558
|
-
*
|
|
8547
|
+
* HTML Attribute: italic
|
|
8559
8548
|
*/
|
|
8560
|
-
|
|
8549
|
+
italic: boolean;
|
|
8561
8550
|
/**
|
|
8562
|
-
* The
|
|
8551
|
+
* The text style is underline
|
|
8552
|
+
*
|
|
8563
8553
|
* @public
|
|
8554
|
+
* @remarks
|
|
8555
|
+
* HTML Attribute: underline
|
|
8564
8556
|
*/
|
|
8565
|
-
|
|
8566
|
-
set value(value: string);
|
|
8557
|
+
underline: boolean;
|
|
8567
8558
|
/**
|
|
8568
|
-
*
|
|
8559
|
+
* The text style is strikethrough
|
|
8569
8560
|
*
|
|
8570
8561
|
* @public
|
|
8571
8562
|
* @remarks
|
|
8572
|
-
*
|
|
8563
|
+
* HTML Attribute: strikethrough
|
|
8573
8564
|
*/
|
|
8574
|
-
|
|
8565
|
+
strikethrough: boolean;
|
|
8575
8566
|
/**
|
|
8576
|
-
*
|
|
8567
|
+
* An text can take up the width of its container.
|
|
8577
8568
|
*
|
|
8578
8569
|
* @public
|
|
8579
8570
|
* @remarks
|
|
8580
|
-
*
|
|
8571
|
+
* HTML Attribute: block
|
|
8581
8572
|
*/
|
|
8582
|
-
|
|
8573
|
+
block: boolean;
|
|
8583
8574
|
/**
|
|
8584
|
-
*
|
|
8575
|
+
* THe Text size
|
|
8576
|
+
*
|
|
8577
|
+
* @public
|
|
8578
|
+
* @remarks
|
|
8579
|
+
* HTML Attribute: size
|
|
8585
8580
|
*
|
|
8586
|
-
* @internal
|
|
8587
8581
|
*/
|
|
8588
|
-
|
|
8582
|
+
size?: TextSize;
|
|
8589
8583
|
/**
|
|
8590
|
-
*
|
|
8591
|
-
*
|
|
8592
|
-
* @
|
|
8593
|
-
* @privateRemarks
|
|
8594
|
-
* "Change" events are not `composable` so they will not permeate the shadow DOM boundary. This function effectively
|
|
8595
|
-
* proxies the change event, emitting a `change` event whenever the internal control emits a `change` event.
|
|
8584
|
+
* Handles changes to size attribute custom states
|
|
8585
|
+
* @param prev - the previous state
|
|
8586
|
+
* @param next - the next state
|
|
8596
8587
|
*/
|
|
8597
|
-
|
|
8588
|
+
sizeChanged(prev: TextSize | undefined, next: TextSize | undefined): void;
|
|
8598
8589
|
/**
|
|
8599
|
-
*
|
|
8590
|
+
* THe Text font
|
|
8600
8591
|
*
|
|
8601
8592
|
* @public
|
|
8602
8593
|
* @remarks
|
|
8603
|
-
*
|
|
8594
|
+
* HTML Attribute: font
|
|
8604
8595
|
*/
|
|
8605
|
-
|
|
8596
|
+
font?: TextFont;
|
|
8606
8597
|
/**
|
|
8607
|
-
*
|
|
8608
|
-
*
|
|
8609
|
-
* @param
|
|
8598
|
+
* Handles changes to font attribute custom states
|
|
8599
|
+
* @param prev - the previous state
|
|
8600
|
+
* @param next - the next state
|
|
8610
8601
|
*/
|
|
8611
|
-
|
|
8612
|
-
connectedCallback(): void;
|
|
8602
|
+
fontChanged(prev: TextFont | undefined, next: TextFont | undefined): void;
|
|
8613
8603
|
/**
|
|
8614
|
-
*
|
|
8604
|
+
* The Text weight
|
|
8615
8605
|
*
|
|
8616
|
-
* @param e - the event object
|
|
8617
8606
|
* @public
|
|
8607
|
+
* @remarks
|
|
8608
|
+
* HTML Attribute: weight
|
|
8618
8609
|
*/
|
|
8619
|
-
|
|
8610
|
+
weight?: TextWeight;
|
|
8620
8611
|
/**
|
|
8621
|
-
*
|
|
8622
|
-
*
|
|
8623
|
-
* @
|
|
8612
|
+
* Handles changes to weight attribute custom states
|
|
8613
|
+
* @param prev - the previous state
|
|
8614
|
+
* @param next - the next state
|
|
8624
8615
|
*/
|
|
8625
|
-
|
|
8616
|
+
weightChanged(prev: TextWeight | undefined, next: TextWeight | undefined): void;
|
|
8626
8617
|
/**
|
|
8627
|
-
*
|
|
8618
|
+
* THe Text align
|
|
8628
8619
|
*
|
|
8629
|
-
* @
|
|
8620
|
+
* @public
|
|
8621
|
+
* @remarks
|
|
8622
|
+
* HTML Attribute: align
|
|
8630
8623
|
*/
|
|
8631
|
-
|
|
8624
|
+
align?: TextAlign;
|
|
8632
8625
|
/**
|
|
8633
|
-
* Handles
|
|
8634
|
-
*
|
|
8635
|
-
* @
|
|
8626
|
+
* Handles changes to align attribute custom states
|
|
8627
|
+
* @param prev - the previous state
|
|
8628
|
+
* @param next - the next state
|
|
8636
8629
|
*/
|
|
8637
|
-
|
|
8630
|
+
alignChanged(prev: TextAlign | undefined, next: TextAlign | undefined): void;
|
|
8631
|
+
connectedCallback(): void;
|
|
8632
|
+
disconnectedCallback(): void;
|
|
8638
8633
|
/**
|
|
8639
|
-
* Handles
|
|
8640
|
-
*
|
|
8641
|
-
* @param e - the event object
|
|
8634
|
+
* Handles changes to observable properties
|
|
8642
8635
|
* @internal
|
|
8636
|
+
* @param source - the source of the change
|
|
8637
|
+
* @param propertyName - the property name being changed
|
|
8643
8638
|
*/
|
|
8644
|
-
|
|
8639
|
+
handleChange(source: any, propertyName: string): void;
|
|
8640
|
+
}
|
|
8641
|
+
export { Text_2 as Text }
|
|
8642
|
+
|
|
8643
|
+
/**
|
|
8644
|
+
* TextAlign Constants
|
|
8645
|
+
* @public
|
|
8646
|
+
*/
|
|
8647
|
+
export declare const TextAlign: {
|
|
8648
|
+
readonly start: "start";
|
|
8649
|
+
readonly end: "end";
|
|
8650
|
+
readonly center: "center";
|
|
8651
|
+
readonly justify: "justify";
|
|
8652
|
+
};
|
|
8653
|
+
|
|
8654
|
+
/**
|
|
8655
|
+
* Aligns the content
|
|
8656
|
+
* @public
|
|
8657
|
+
*/
|
|
8658
|
+
export declare type TextAlign = ValuesOf<typeof TextAlign>;
|
|
8659
|
+
|
|
8660
|
+
/**
|
|
8661
|
+
* The Fluent Text Element.
|
|
8662
|
+
*
|
|
8663
|
+
*
|
|
8664
|
+
* @public
|
|
8665
|
+
* @remarks
|
|
8666
|
+
* HTML Element: \<fluent-text\>
|
|
8667
|
+
*/
|
|
8668
|
+
export declare const TextDefinition: FASTElementDefinition<typeof Text_2>;
|
|
8669
|
+
|
|
8670
|
+
/**
|
|
8671
|
+
* TextFont Constants
|
|
8672
|
+
* @public
|
|
8673
|
+
*/
|
|
8674
|
+
export declare const TextFont: {
|
|
8675
|
+
readonly base: "base";
|
|
8676
|
+
readonly numeric: "numeric";
|
|
8677
|
+
readonly monospace: "monospace";
|
|
8678
|
+
};
|
|
8679
|
+
|
|
8680
|
+
/**
|
|
8681
|
+
* Applies font family to the content
|
|
8682
|
+
* @public
|
|
8683
|
+
*/
|
|
8684
|
+
export declare type TextFont = ValuesOf<typeof TextFont>;
|
|
8685
|
+
|
|
8686
|
+
/**
|
|
8687
|
+
* A Text Input Custom HTML Element.
|
|
8688
|
+
* Based on BaseTextInput and includes style and layout specific attributes
|
|
8689
|
+
*
|
|
8690
|
+
* @public
|
|
8691
|
+
*/
|
|
8692
|
+
export declare class TextInput extends BaseTextInput {
|
|
8645
8693
|
/**
|
|
8646
|
-
*
|
|
8694
|
+
* Indicates the styled appearance of the element.
|
|
8647
8695
|
*
|
|
8648
8696
|
* @public
|
|
8649
|
-
* @
|
|
8650
|
-
*
|
|
8651
|
-
* emitting a `select` event whenever the internal control emits a `select` event
|
|
8652
|
-
*
|
|
8697
|
+
* @remarks
|
|
8698
|
+
* HTML Attribute: `appearance`
|
|
8653
8699
|
*/
|
|
8654
|
-
|
|
8700
|
+
appearance?: TextInputAppearance;
|
|
8655
8701
|
/**
|
|
8656
|
-
*
|
|
8657
|
-
* @param
|
|
8658
|
-
*
|
|
8659
|
-
* @public
|
|
8702
|
+
* Handles changes to appearance attribute custom states
|
|
8703
|
+
* @param prev - the previous state
|
|
8704
|
+
* @param next - the next state
|
|
8660
8705
|
*/
|
|
8661
|
-
|
|
8706
|
+
appearanceChanged(prev: TextInputAppearance | undefined, next: TextInputAppearance | undefined): void;
|
|
8662
8707
|
/**
|
|
8663
|
-
*
|
|
8708
|
+
* Sets the size of the control.
|
|
8664
8709
|
*
|
|
8665
8710
|
* @public
|
|
8666
8711
|
* @remarks
|
|
8667
|
-
*
|
|
8668
|
-
*/
|
|
8669
|
-
reportValidity(): boolean;
|
|
8670
|
-
/**
|
|
8671
|
-
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue | `ElementInternals.setFormValue()`} method.
|
|
8672
|
-
*
|
|
8673
|
-
* @internal
|
|
8712
|
+
* HTML Attribute: `control-size`
|
|
8674
8713
|
*/
|
|
8675
|
-
|
|
8714
|
+
controlSize?: TextInputControlSize;
|
|
8676
8715
|
/**
|
|
8677
|
-
*
|
|
8678
|
-
*
|
|
8679
|
-
* @param
|
|
8680
|
-
* @param message - Optional message to supply. If not provided, the control's `validationMessage` will be used. If the control does not have a `validationMessage`, the message will be empty.
|
|
8681
|
-
* @param anchor - Optional anchor to use for the validation message. If not provided, the control will be used.
|
|
8682
|
-
*
|
|
8683
|
-
* @internal
|
|
8716
|
+
* Handles changes to `control-size` attribute custom states
|
|
8717
|
+
* @param prev - the previous state
|
|
8718
|
+
* @param next - the next state
|
|
8684
8719
|
*/
|
|
8685
|
-
|
|
8720
|
+
controlSizeChanged(prev: TextInputControlSize | undefined, next: TextInputControlSize | undefined): void;
|
|
8686
8721
|
}
|
|
8687
8722
|
|
|
8688
8723
|
/**
|
|
@@ -8816,6 +8851,13 @@ export declare const TextWeight: {
|
|
|
8816
8851
|
*/
|
|
8817
8852
|
export declare type TextWeight = ValuesOf<typeof TextWeight>;
|
|
8818
8853
|
|
|
8854
|
+
/**
|
|
8855
|
+
* Not using the `Theme` type from `@fluentui/tokens` package to allow custom
|
|
8856
|
+
* tokens to be added.
|
|
8857
|
+
* @internal
|
|
8858
|
+
*/
|
|
8859
|
+
export declare type Theme = Record<string, string | number>;
|
|
8860
|
+
|
|
8819
8861
|
/**
|
|
8820
8862
|
* The base class used for constructing a `<fluent-toggle-button>` custom element.
|
|
8821
8863
|
*
|