@momentum-design/components 0.112.3 → 0.112.5

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.
@@ -968,218 +968,6 @@
968
968
  }
969
969
  ]
970
970
  },
971
- {
972
- "kind": "javascript-module",
973
- "path": "components/animation/animation.component.js",
974
- "declarations": [
975
- {
976
- "kind": "class",
977
- "description": "The `mdc-animation` component is a wrapper around the Lottie animation library.\nIt fetches the animation data dynamically based on the provided name and renders it.\nThis is a display only component that does not have any interactive functionality.\nFrom accessibility perspective, (by default) it is a decorative image component.",
978
- "name": "Animation",
979
- "members": [
980
- {
981
- "kind": "field",
982
- "name": "name",
983
- "type": {
984
- "text": "AnimationNames | undefined"
985
- },
986
- "description": "Name of the animation (= filename)",
987
- "attribute": "name",
988
- "reflects": true
989
- },
990
- {
991
- "kind": "field",
992
- "name": "loop",
993
- "type": {
994
- "text": "LoopType | undefined"
995
- },
996
- "description": "How many times to loop the animation\n- \"true\" - infinite\n- \"false\" - no loop\n- number - number of times to loop",
997
- "attribute": "loop",
998
- "reflects": true
999
- },
1000
- {
1001
- "kind": "field",
1002
- "name": "autoplay",
1003
- "type": {
1004
- "text": "boolean | undefined"
1005
- },
1006
- "description": "Weather start the animation automatically",
1007
- "attribute": "autoplay",
1008
- "reflects": true
1009
- },
1010
- {
1011
- "kind": "field",
1012
- "name": "ariaLabel",
1013
- "type": {
1014
- "text": "string | null"
1015
- },
1016
- "default": "null",
1017
- "description": "Aria-label attribute to be set for accessibility",
1018
- "attribute": "aria-label"
1019
- },
1020
- {
1021
- "kind": "field",
1022
- "name": "ariaLabelledBy",
1023
- "type": {
1024
- "text": "string | null"
1025
- },
1026
- "default": "null",
1027
- "description": "Aria-labelledby attribute to be set for accessibility",
1028
- "attribute": "aria-labelledby"
1029
- },
1030
- {
1031
- "kind": "field",
1032
- "name": "lottieInstance",
1033
- "type": {
1034
- "text": "AnimationItem | undefined"
1035
- },
1036
- "privacy": "private",
1037
- "description": "Lottie animation instance"
1038
- },
1039
- {
1040
- "kind": "field",
1041
- "name": "containerRef",
1042
- "type": {
1043
- "text": "Ref<HTMLDivElement>"
1044
- },
1045
- "privacy": "private",
1046
- "description": "Container for the animation"
1047
- },
1048
- {
1049
- "kind": "field",
1050
- "name": "animation",
1051
- "description": "Exposed API of the animation library (lottie)",
1052
- "readonly": true
1053
- },
1054
- {
1055
- "kind": "method",
1056
- "name": "getLoopValue",
1057
- "privacy": "private"
1058
- },
1059
- {
1060
- "kind": "method",
1061
- "name": "onLoadSuccessHandler",
1062
- "privacy": "private",
1063
- "parameters": [
1064
- {
1065
- "name": "animationData",
1066
- "type": {
1067
- "text": "any"
1068
- }
1069
- }
1070
- ],
1071
- "description": "Create new lotty instance for the loaded data"
1072
- },
1073
- {
1074
- "kind": "method",
1075
- "name": "onLoadFailHandler",
1076
- "privacy": "private",
1077
- "parameters": [
1078
- {
1079
- "name": "error",
1080
- "type": {
1081
- "text": "Error"
1082
- }
1083
- }
1084
- ],
1085
- "description": "Error handler for animation loading"
1086
- },
1087
- {
1088
- "kind": "method",
1089
- "name": "getAnimationData",
1090
- "privacy": "private",
1091
- "description": "Import animation data dynamically"
1092
- },
1093
- {
1094
- "kind": "field",
1095
- "name": "onCompleteHandler",
1096
- "description": "Re-dispatch the complete event from the animation library\n\nThis handler called with the animation instance instead of the component instance\nso we need to bind it to the component instance. The arrow function just does that."
1097
- }
1098
- ],
1099
- "events": [
1100
- {
1101
- "name": "load",
1102
- "type": {
1103
- "text": "CustomEvent"
1104
- },
1105
- "description": "(React: onLoad) This event is dispatched when the animation is loaded",
1106
- "reactName": "onLoad"
1107
- },
1108
- {
1109
- "description": "(React: onComplete) This event is dispatched when all animation loops completed",
1110
- "name": "complete",
1111
- "reactName": "onComplete"
1112
- },
1113
- {
1114
- "description": "(React: onError) This event is dispatched when animation loading failed",
1115
- "name": "error",
1116
- "reactName": "onError"
1117
- }
1118
- ],
1119
- "attributes": [
1120
- {
1121
- "name": "name",
1122
- "type": {
1123
- "text": "AnimationNames | undefined"
1124
- },
1125
- "description": "Name of the animation (= filename)",
1126
- "fieldName": "name"
1127
- },
1128
- {
1129
- "name": "loop",
1130
- "type": {
1131
- "text": "LoopType | undefined"
1132
- },
1133
- "description": "How many times to loop the animation\n- \"true\" - infinite\n- \"false\" - no loop\n- number - number of times to loop",
1134
- "fieldName": "loop"
1135
- },
1136
- {
1137
- "name": "autoplay",
1138
- "type": {
1139
- "text": "boolean | undefined"
1140
- },
1141
- "description": "Weather start the animation automatically",
1142
- "fieldName": "autoplay"
1143
- },
1144
- {
1145
- "name": "aria-label",
1146
- "type": {
1147
- "text": "string | null"
1148
- },
1149
- "default": "null",
1150
- "description": "Aria-label attribute to be set for accessibility",
1151
- "fieldName": "ariaLabel"
1152
- },
1153
- {
1154
- "name": "aria-labelledby",
1155
- "type": {
1156
- "text": "string | null"
1157
- },
1158
- "default": "null",
1159
- "description": "Aria-labelledby attribute to be set for accessibility",
1160
- "fieldName": "ariaLabelledBy"
1161
- }
1162
- ],
1163
- "superclass": {
1164
- "name": "Component",
1165
- "module": "/src/models"
1166
- },
1167
- "tagName": "mdc-animation",
1168
- "jsDoc": "/**\n * The `mdc-animation` component is a wrapper around the Lottie animation library.\n * It fetches the animation data dynamically based on the provided name and renders it.\n * This is a display only component that does not have any interactive functionality.\n * From accessibility perspective, (by default) it is a decorative image component.\n *\n * @tagname mdc-animation\n *\n * @event load - (React: onLoad) This event is dispatched when the animation is loaded\n * @event complete - (React: onComplete) This event is dispatched when all animation loops completed\n * @event error - (React: onError) This event is dispatched when animation loading failed\n */",
1169
- "customElement": true
1170
- }
1171
- ],
1172
- "exports": [
1173
- {
1174
- "kind": "js",
1175
- "name": "default",
1176
- "declaration": {
1177
- "name": "Animation",
1178
- "module": "components/animation/animation.component.js"
1179
- }
1180
- }
1181
- ]
1182
- },
1183
971
  {
1184
972
  "kind": "javascript-module",
1185
973
  "path": "components/alertchip/alertchip.component.js",
@@ -1766,6 +1554,218 @@
1766
1554
  }
1767
1555
  ]
1768
1556
  },
1557
+ {
1558
+ "kind": "javascript-module",
1559
+ "path": "components/animation/animation.component.js",
1560
+ "declarations": [
1561
+ {
1562
+ "kind": "class",
1563
+ "description": "The `mdc-animation` component is a wrapper around the Lottie animation library.\nIt fetches the animation data dynamically based on the provided name and renders it.\nThis is a display only component that does not have any interactive functionality.\nFrom accessibility perspective, (by default) it is a decorative image component.",
1564
+ "name": "Animation",
1565
+ "members": [
1566
+ {
1567
+ "kind": "field",
1568
+ "name": "name",
1569
+ "type": {
1570
+ "text": "AnimationNames | undefined"
1571
+ },
1572
+ "description": "Name of the animation (= filename)",
1573
+ "attribute": "name",
1574
+ "reflects": true
1575
+ },
1576
+ {
1577
+ "kind": "field",
1578
+ "name": "loop",
1579
+ "type": {
1580
+ "text": "LoopType | undefined"
1581
+ },
1582
+ "description": "How many times to loop the animation\n- \"true\" - infinite\n- \"false\" - no loop\n- number - number of times to loop",
1583
+ "attribute": "loop",
1584
+ "reflects": true
1585
+ },
1586
+ {
1587
+ "kind": "field",
1588
+ "name": "autoplay",
1589
+ "type": {
1590
+ "text": "boolean | undefined"
1591
+ },
1592
+ "description": "Weather start the animation automatically",
1593
+ "attribute": "autoplay",
1594
+ "reflects": true
1595
+ },
1596
+ {
1597
+ "kind": "field",
1598
+ "name": "ariaLabel",
1599
+ "type": {
1600
+ "text": "string | null"
1601
+ },
1602
+ "default": "null",
1603
+ "description": "Aria-label attribute to be set for accessibility",
1604
+ "attribute": "aria-label"
1605
+ },
1606
+ {
1607
+ "kind": "field",
1608
+ "name": "ariaLabelledBy",
1609
+ "type": {
1610
+ "text": "string | null"
1611
+ },
1612
+ "default": "null",
1613
+ "description": "Aria-labelledby attribute to be set for accessibility",
1614
+ "attribute": "aria-labelledby"
1615
+ },
1616
+ {
1617
+ "kind": "field",
1618
+ "name": "lottieInstance",
1619
+ "type": {
1620
+ "text": "AnimationItem | undefined"
1621
+ },
1622
+ "privacy": "private",
1623
+ "description": "Lottie animation instance"
1624
+ },
1625
+ {
1626
+ "kind": "field",
1627
+ "name": "containerRef",
1628
+ "type": {
1629
+ "text": "Ref<HTMLDivElement>"
1630
+ },
1631
+ "privacy": "private",
1632
+ "description": "Container for the animation"
1633
+ },
1634
+ {
1635
+ "kind": "field",
1636
+ "name": "animation",
1637
+ "description": "Exposed API of the animation library (lottie)",
1638
+ "readonly": true
1639
+ },
1640
+ {
1641
+ "kind": "method",
1642
+ "name": "getLoopValue",
1643
+ "privacy": "private"
1644
+ },
1645
+ {
1646
+ "kind": "method",
1647
+ "name": "onLoadSuccessHandler",
1648
+ "privacy": "private",
1649
+ "parameters": [
1650
+ {
1651
+ "name": "animationData",
1652
+ "type": {
1653
+ "text": "any"
1654
+ }
1655
+ }
1656
+ ],
1657
+ "description": "Create new lotty instance for the loaded data"
1658
+ },
1659
+ {
1660
+ "kind": "method",
1661
+ "name": "onLoadFailHandler",
1662
+ "privacy": "private",
1663
+ "parameters": [
1664
+ {
1665
+ "name": "error",
1666
+ "type": {
1667
+ "text": "Error"
1668
+ }
1669
+ }
1670
+ ],
1671
+ "description": "Error handler for animation loading"
1672
+ },
1673
+ {
1674
+ "kind": "method",
1675
+ "name": "getAnimationData",
1676
+ "privacy": "private",
1677
+ "description": "Import animation data dynamically"
1678
+ },
1679
+ {
1680
+ "kind": "field",
1681
+ "name": "onCompleteHandler",
1682
+ "description": "Re-dispatch the complete event from the animation library\n\nThis handler called with the animation instance instead of the component instance\nso we need to bind it to the component instance. The arrow function just does that."
1683
+ }
1684
+ ],
1685
+ "events": [
1686
+ {
1687
+ "name": "load",
1688
+ "type": {
1689
+ "text": "CustomEvent"
1690
+ },
1691
+ "description": "(React: onLoad) This event is dispatched when the animation is loaded",
1692
+ "reactName": "onLoad"
1693
+ },
1694
+ {
1695
+ "description": "(React: onComplete) This event is dispatched when all animation loops completed",
1696
+ "name": "complete",
1697
+ "reactName": "onComplete"
1698
+ },
1699
+ {
1700
+ "description": "(React: onError) This event is dispatched when animation loading failed",
1701
+ "name": "error",
1702
+ "reactName": "onError"
1703
+ }
1704
+ ],
1705
+ "attributes": [
1706
+ {
1707
+ "name": "name",
1708
+ "type": {
1709
+ "text": "AnimationNames | undefined"
1710
+ },
1711
+ "description": "Name of the animation (= filename)",
1712
+ "fieldName": "name"
1713
+ },
1714
+ {
1715
+ "name": "loop",
1716
+ "type": {
1717
+ "text": "LoopType | undefined"
1718
+ },
1719
+ "description": "How many times to loop the animation\n- \"true\" - infinite\n- \"false\" - no loop\n- number - number of times to loop",
1720
+ "fieldName": "loop"
1721
+ },
1722
+ {
1723
+ "name": "autoplay",
1724
+ "type": {
1725
+ "text": "boolean | undefined"
1726
+ },
1727
+ "description": "Weather start the animation automatically",
1728
+ "fieldName": "autoplay"
1729
+ },
1730
+ {
1731
+ "name": "aria-label",
1732
+ "type": {
1733
+ "text": "string | null"
1734
+ },
1735
+ "default": "null",
1736
+ "description": "Aria-label attribute to be set for accessibility",
1737
+ "fieldName": "ariaLabel"
1738
+ },
1739
+ {
1740
+ "name": "aria-labelledby",
1741
+ "type": {
1742
+ "text": "string | null"
1743
+ },
1744
+ "default": "null",
1745
+ "description": "Aria-labelledby attribute to be set for accessibility",
1746
+ "fieldName": "ariaLabelledBy"
1747
+ }
1748
+ ],
1749
+ "superclass": {
1750
+ "name": "Component",
1751
+ "module": "/src/models"
1752
+ },
1753
+ "tagName": "mdc-animation",
1754
+ "jsDoc": "/**\n * The `mdc-animation` component is a wrapper around the Lottie animation library.\n * It fetches the animation data dynamically based on the provided name and renders it.\n * This is a display only component that does not have any interactive functionality.\n * From accessibility perspective, (by default) it is a decorative image component.\n *\n * @tagname mdc-animation\n *\n * @event load - (React: onLoad) This event is dispatched when the animation is loaded\n * @event complete - (React: onComplete) This event is dispatched when all animation loops completed\n * @event error - (React: onError) This event is dispatched when animation loading failed\n */",
1755
+ "customElement": true
1756
+ }
1757
+ ],
1758
+ "exports": [
1759
+ {
1760
+ "kind": "js",
1761
+ "name": "default",
1762
+ "declaration": {
1763
+ "name": "Animation",
1764
+ "module": "components/animation/animation.component.js"
1765
+ }
1766
+ }
1767
+ ]
1768
+ },
1769
1769
  {
1770
1770
  "kind": "javascript-module",
1771
1771
  "path": "components/appheader/appheader.component.js",
@@ -10789,38 +10789,7 @@
10789
10789
  },
10790
10790
  {
10791
10791
  "kind": "field",
10792
- "name": "triggerElement",
10793
- "type": {
10794
- "text": "HTMLElement | null"
10795
- },
10796
- "privacy": "public",
10797
- "default": "null",
10798
- "inheritedFrom": {
10799
- "name": "Popover",
10800
- "module": "components/popover/popover.component.js"
10801
- }
10802
- },
10803
- {
10804
- "kind": "field",
10805
- "name": "storeConnectedTooltip",
10806
- "privacy": "private",
10807
- "inheritedFrom": {
10808
- "name": "Popover",
10809
- "module": "components/popover/popover.component.js"
10810
- }
10811
- },
10812
- {
10813
- "kind": "method",
10814
- "name": "setupTriggerRelatedElement",
10815
- "privacy": "private",
10816
- "inheritedFrom": {
10817
- "name": "Popover",
10818
- "module": "components/popover/popover.component.js"
10819
- }
10820
- },
10821
- {
10822
- "kind": "field",
10823
- "name": "cleanupTrigger",
10792
+ "name": "parseTrigger",
10824
10793
  "privacy": "private",
10825
10794
  "inheritedFrom": {
10826
10795
  "name": "Popover",
@@ -10831,7 +10800,7 @@
10831
10800
  "kind": "field",
10832
10801
  "name": "setupTriggerListeners",
10833
10802
  "privacy": "private",
10834
- "description": "Sets up the trigger related event listeners, based on the trigger type.\nIncludes fallback for mouseenter trigger to also handle focusin for non-interactive popovers.",
10803
+ "description": "Sets up the trigger related event listeners, based on the trigger type.\nIncludes fallback for mouseenter trigger to also handle focusin for non-interactive popovers.\n\nWe are using capture phase for to make sure we capture trigger events even when they are not propagated during the\nbubble phase (e.g.: buttons in list item)",
10835
10804
  "inheritedFrom": {
10836
10805
  "name": "Popover",
10837
10806
  "module": "components/popover/popover.component.js"
@@ -11032,14 +11001,20 @@
11032
11001
  }
11033
11002
  },
11034
11003
  {
11035
- "kind": "field",
11036
- "name": "findClosestPopover",
11004
+ "kind": "method",
11005
+ "name": "isEventFromTrigger",
11037
11006
  "privacy": "protected",
11038
- "description": "Finds the closest popover to the passed element in the DOM tree.\n\nUseful when need to find the parent popover in a nested popover scenario.",
11007
+ "return": {
11008
+ "type": {
11009
+ "text": "boolean"
11010
+ }
11011
+ },
11039
11012
  "parameters": [
11040
11013
  {
11041
- "description": "The element to start searching from.",
11042
- "name": "element"
11014
+ "name": "event",
11015
+ "type": {
11016
+ "text": "Event"
11017
+ }
11043
11018
  }
11044
11019
  ],
11045
11020
  "inheritedFrom": {
@@ -11055,6 +11030,13 @@
11055
11030
  "name": "Popover",
11056
11031
  "module": "components/popover/popover.component.js"
11057
11032
  }
11033
+ },
11034
+ {
11035
+ "kind": "field",
11036
+ "inheritedFrom": {
11037
+ "name": "Popover",
11038
+ "module": "components/popover/popover.component.js"
11039
+ }
11058
11040
  }
11059
11041
  ],
11060
11042
  "events": [
@@ -13995,6 +13977,257 @@
13995
13977
  }
13996
13978
  ]
13997
13979
  },
13980
+ {
13981
+ "kind": "javascript-module",
13982
+ "path": "components/formfieldwrapper/formfieldwrapper.component.js",
13983
+ "declarations": [
13984
+ {
13985
+ "kind": "class",
13986
+ "description": "formfieldwrapper is a component that contains the label and helper/validation text\n that can be configured in various ways to suit different use cases (most of the input related components).\nIt is used as an internal component and is not intended to be used directly by consumers.",
13987
+ "name": "FormfieldWrapper",
13988
+ "members": [
13989
+ {
13990
+ "kind": "field",
13991
+ "name": "label",
13992
+ "type": {
13993
+ "text": "string | undefined"
13994
+ },
13995
+ "description": "The label of the input field. It is linked to the input field using the `for` attribute.",
13996
+ "attribute": "label",
13997
+ "reflects": true
13998
+ },
13999
+ {
14000
+ "kind": "field",
14001
+ "name": "required",
14002
+ "type": {
14003
+ "text": "boolean"
14004
+ },
14005
+ "default": "false",
14006
+ "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
14007
+ "attribute": "required",
14008
+ "reflects": true
14009
+ },
14010
+ {
14011
+ "kind": "field",
14012
+ "name": "helpTextType",
14013
+ "type": {
14014
+ "text": "ValidationType"
14015
+ },
14016
+ "description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
14017
+ "attribute": "help-text-type",
14018
+ "reflects": true
14019
+ },
14020
+ {
14021
+ "kind": "field",
14022
+ "name": "helpText",
14023
+ "type": {
14024
+ "text": "string | undefined"
14025
+ },
14026
+ "description": "The help text that is displayed below the input field.",
14027
+ "attribute": "help-text",
14028
+ "reflects": true
14029
+ },
14030
+ {
14031
+ "kind": "field",
14032
+ "name": "toggletipText",
14033
+ "type": {
14034
+ "text": "string | undefined"
14035
+ },
14036
+ "description": "The toggletip text that is displayed when the label is hovered.\nIt is used to provide additional information about the label.",
14037
+ "attribute": "toggletip-text",
14038
+ "reflects": true
14039
+ },
14040
+ {
14041
+ "kind": "field",
14042
+ "name": "toggletipPlacement",
14043
+ "type": {
14044
+ "text": "PopoverPlacement"
14045
+ },
14046
+ "description": "The placement of the toggletip that is displayed when the info icon is hovered.",
14047
+ "default": "'top'",
14048
+ "attribute": "toggletip-placement",
14049
+ "reflects": true
14050
+ },
14051
+ {
14052
+ "kind": "field",
14053
+ "name": "infoIconAriaLabel",
14054
+ "type": {
14055
+ "text": "string | undefined"
14056
+ },
14057
+ "description": "Aria label for the info icon that is displayed next to the label when `toggletipText` is set.\nThis is used for accessibility purposes to provide a description of the icon.",
14058
+ "attribute": "info-icon-aria-label",
14059
+ "reflects": true
14060
+ },
14061
+ {
14062
+ "kind": "method",
14063
+ "name": "renderLabelElement",
14064
+ "privacy": "protected",
14065
+ "description": "creates the label element when the label property is set.\nid is used to link the label with the input field.",
14066
+ "return": {
14067
+ "type": {
14068
+ "text": ""
14069
+ }
14070
+ }
14071
+ },
14072
+ {
14073
+ "kind": "method",
14074
+ "name": "renderHelpTextIcon",
14075
+ "privacy": "protected",
14076
+ "description": "creates the helpertext icon based on the helpTextType for validation.\nIf the helpTextType is not set, it defaults to 'default' and it doesn't display any icon.",
14077
+ "return": {
14078
+ "type": {
14079
+ "text": ""
14080
+ }
14081
+ }
14082
+ },
14083
+ {
14084
+ "kind": "method",
14085
+ "name": "renderHelpText",
14086
+ "privacy": "protected",
14087
+ "description": "creates the helper text component when the helpertext value is set.\nIt is also used to display the validation message based on the helpTextType.",
14088
+ "return": {
14089
+ "type": {
14090
+ "text": ""
14091
+ }
14092
+ }
14093
+ },
14094
+ {
14095
+ "kind": "method",
14096
+ "name": "renderLabel",
14097
+ "privacy": "protected",
14098
+ "description": "renders the mdc-label-text container that contains the label and labelInfoToggleTip.",
14099
+ "return": {
14100
+ "type": {
14101
+ "text": ""
14102
+ }
14103
+ }
14104
+ },
14105
+ {
14106
+ "kind": "method",
14107
+ "name": "renderHelperText",
14108
+ "privacy": "protected",
14109
+ "description": "renders the mdc-help-text container that contains the helpertext icon and helpertext.",
14110
+ "return": {
14111
+ "type": {
14112
+ "text": ""
14113
+ }
14114
+ }
14115
+ },
14116
+ {
14117
+ "kind": "field",
14118
+ "name": "disabled",
14119
+ "type": {
14120
+ "text": "boolean | undefined"
14121
+ },
14122
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
14123
+ "default": "undefined",
14124
+ "attribute": "disabled",
14125
+ "reflects": true,
14126
+ "inheritedFrom": {
14127
+ "name": "DisabledMixin",
14128
+ "module": "utils/mixins/DisabledMixin.js"
14129
+ }
14130
+ }
14131
+ ],
14132
+ "attributes": [
14133
+ {
14134
+ "name": "label",
14135
+ "type": {
14136
+ "text": "string | undefined"
14137
+ },
14138
+ "description": "The label of the input field. It is linked to the input field using the `for` attribute.",
14139
+ "fieldName": "label"
14140
+ },
14141
+ {
14142
+ "name": "required",
14143
+ "type": {
14144
+ "text": "boolean"
14145
+ },
14146
+ "default": "false",
14147
+ "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
14148
+ "fieldName": "required"
14149
+ },
14150
+ {
14151
+ "name": "help-text-type",
14152
+ "type": {
14153
+ "text": "ValidationType"
14154
+ },
14155
+ "description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
14156
+ "fieldName": "helpTextType"
14157
+ },
14158
+ {
14159
+ "name": "help-text",
14160
+ "type": {
14161
+ "text": "string | undefined"
14162
+ },
14163
+ "description": "The help text that is displayed below the input field.",
14164
+ "fieldName": "helpText"
14165
+ },
14166
+ {
14167
+ "name": "toggletip-text",
14168
+ "type": {
14169
+ "text": "string | undefined"
14170
+ },
14171
+ "description": "The toggletip text that is displayed when the label is hovered.\nIt is used to provide additional information about the label.",
14172
+ "fieldName": "toggletipText"
14173
+ },
14174
+ {
14175
+ "name": "toggletip-placement",
14176
+ "type": {
14177
+ "text": "PopoverPlacement"
14178
+ },
14179
+ "description": "The placement of the toggletip that is displayed when the info icon is hovered.",
14180
+ "default": "'top'",
14181
+ "fieldName": "toggletipPlacement"
14182
+ },
14183
+ {
14184
+ "name": "info-icon-aria-label",
14185
+ "type": {
14186
+ "text": "string | undefined"
14187
+ },
14188
+ "description": "Aria label for the info icon that is displayed next to the label when `toggletipText` is set.\nThis is used for accessibility purposes to provide a description of the icon.",
14189
+ "fieldName": "infoIconAriaLabel"
14190
+ },
14191
+ {
14192
+ "name": "disabled",
14193
+ "type": {
14194
+ "text": "boolean | undefined"
14195
+ },
14196
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
14197
+ "default": "undefined",
14198
+ "fieldName": "disabled",
14199
+ "inheritedFrom": {
14200
+ "name": "DisabledMixin",
14201
+ "module": "src/utils/mixins/DisabledMixin.ts"
14202
+ }
14203
+ }
14204
+ ],
14205
+ "mixins": [
14206
+ {
14207
+ "name": "DisabledMixin",
14208
+ "module": "/src/utils/mixins/DisabledMixin"
14209
+ }
14210
+ ],
14211
+ "superclass": {
14212
+ "name": "Component",
14213
+ "module": "/src/models"
14214
+ },
14215
+ "tagName": "mdc-formfieldwrapper",
14216
+ "jsDoc": "/**\n * formfieldwrapper is a component that contains the label and helper/validation text\n * that can be configured in various ways to suit different use cases (most of the input related components).\n * It is used as an internal component and is not intended to be used directly by consumers.\n *\n * @tagname mdc-formfieldwrapper\n *\n * @dependency mdc-text\n * @dependency mdc-icon\n * @dependency mdc-button\n * @dependency mdc-toggletip\n *\n *\n */",
14217
+ "customElement": true
14218
+ }
14219
+ ],
14220
+ "exports": [
14221
+ {
14222
+ "kind": "js",
14223
+ "name": "default",
14224
+ "declaration": {
14225
+ "name": "FormfieldWrapper",
14226
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
14227
+ }
14228
+ }
14229
+ ]
14230
+ },
13998
14231
  {
13999
14232
  "kind": "javascript-module",
14000
14233
  "path": "components/icon/icon.component.js",
@@ -14439,257 +14672,6 @@
14439
14672
  }
14440
14673
  ]
14441
14674
  },
14442
- {
14443
- "kind": "javascript-module",
14444
- "path": "components/formfieldwrapper/formfieldwrapper.component.js",
14445
- "declarations": [
14446
- {
14447
- "kind": "class",
14448
- "description": "formfieldwrapper is a component that contains the label and helper/validation text\n that can be configured in various ways to suit different use cases (most of the input related components).\nIt is used as an internal component and is not intended to be used directly by consumers.",
14449
- "name": "FormfieldWrapper",
14450
- "members": [
14451
- {
14452
- "kind": "field",
14453
- "name": "label",
14454
- "type": {
14455
- "text": "string | undefined"
14456
- },
14457
- "description": "The label of the input field. It is linked to the input field using the `for` attribute.",
14458
- "attribute": "label",
14459
- "reflects": true
14460
- },
14461
- {
14462
- "kind": "field",
14463
- "name": "required",
14464
- "type": {
14465
- "text": "boolean"
14466
- },
14467
- "default": "false",
14468
- "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
14469
- "attribute": "required",
14470
- "reflects": true
14471
- },
14472
- {
14473
- "kind": "field",
14474
- "name": "helpTextType",
14475
- "type": {
14476
- "text": "ValidationType"
14477
- },
14478
- "description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
14479
- "attribute": "help-text-type",
14480
- "reflects": true
14481
- },
14482
- {
14483
- "kind": "field",
14484
- "name": "helpText",
14485
- "type": {
14486
- "text": "string | undefined"
14487
- },
14488
- "description": "The help text that is displayed below the input field.",
14489
- "attribute": "help-text",
14490
- "reflects": true
14491
- },
14492
- {
14493
- "kind": "field",
14494
- "name": "toggletipText",
14495
- "type": {
14496
- "text": "string | undefined"
14497
- },
14498
- "description": "The toggletip text that is displayed when the label is hovered.\nIt is used to provide additional information about the label.",
14499
- "attribute": "toggletip-text",
14500
- "reflects": true
14501
- },
14502
- {
14503
- "kind": "field",
14504
- "name": "toggletipPlacement",
14505
- "type": {
14506
- "text": "PopoverPlacement"
14507
- },
14508
- "description": "The placement of the toggletip that is displayed when the info icon is hovered.",
14509
- "default": "'top'",
14510
- "attribute": "toggletip-placement",
14511
- "reflects": true
14512
- },
14513
- {
14514
- "kind": "field",
14515
- "name": "infoIconAriaLabel",
14516
- "type": {
14517
- "text": "string | undefined"
14518
- },
14519
- "description": "Aria label for the info icon that is displayed next to the label when `toggletipText` is set.\nThis is used for accessibility purposes to provide a description of the icon.",
14520
- "attribute": "info-icon-aria-label",
14521
- "reflects": true
14522
- },
14523
- {
14524
- "kind": "method",
14525
- "name": "renderLabelElement",
14526
- "privacy": "protected",
14527
- "description": "creates the label element when the label property is set.\nid is used to link the label with the input field.",
14528
- "return": {
14529
- "type": {
14530
- "text": ""
14531
- }
14532
- }
14533
- },
14534
- {
14535
- "kind": "method",
14536
- "name": "renderHelpTextIcon",
14537
- "privacy": "protected",
14538
- "description": "creates the helpertext icon based on the helpTextType for validation.\nIf the helpTextType is not set, it defaults to 'default' and it doesn't display any icon.",
14539
- "return": {
14540
- "type": {
14541
- "text": ""
14542
- }
14543
- }
14544
- },
14545
- {
14546
- "kind": "method",
14547
- "name": "renderHelpText",
14548
- "privacy": "protected",
14549
- "description": "creates the helper text component when the helpertext value is set.\nIt is also used to display the validation message based on the helpTextType.",
14550
- "return": {
14551
- "type": {
14552
- "text": ""
14553
- }
14554
- }
14555
- },
14556
- {
14557
- "kind": "method",
14558
- "name": "renderLabel",
14559
- "privacy": "protected",
14560
- "description": "renders the mdc-label-text container that contains the label and labelInfoToggleTip.",
14561
- "return": {
14562
- "type": {
14563
- "text": ""
14564
- }
14565
- }
14566
- },
14567
- {
14568
- "kind": "method",
14569
- "name": "renderHelperText",
14570
- "privacy": "protected",
14571
- "description": "renders the mdc-help-text container that contains the helpertext icon and helpertext.",
14572
- "return": {
14573
- "type": {
14574
- "text": ""
14575
- }
14576
- }
14577
- },
14578
- {
14579
- "kind": "field",
14580
- "name": "disabled",
14581
- "type": {
14582
- "text": "boolean | undefined"
14583
- },
14584
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
14585
- "default": "undefined",
14586
- "attribute": "disabled",
14587
- "reflects": true,
14588
- "inheritedFrom": {
14589
- "name": "DisabledMixin",
14590
- "module": "utils/mixins/DisabledMixin.js"
14591
- }
14592
- }
14593
- ],
14594
- "attributes": [
14595
- {
14596
- "name": "label",
14597
- "type": {
14598
- "text": "string | undefined"
14599
- },
14600
- "description": "The label of the input field. It is linked to the input field using the `for` attribute.",
14601
- "fieldName": "label"
14602
- },
14603
- {
14604
- "name": "required",
14605
- "type": {
14606
- "text": "boolean"
14607
- },
14608
- "default": "false",
14609
- "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
14610
- "fieldName": "required"
14611
- },
14612
- {
14613
- "name": "help-text-type",
14614
- "type": {
14615
- "text": "ValidationType"
14616
- },
14617
- "description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
14618
- "fieldName": "helpTextType"
14619
- },
14620
- {
14621
- "name": "help-text",
14622
- "type": {
14623
- "text": "string | undefined"
14624
- },
14625
- "description": "The help text that is displayed below the input field.",
14626
- "fieldName": "helpText"
14627
- },
14628
- {
14629
- "name": "toggletip-text",
14630
- "type": {
14631
- "text": "string | undefined"
14632
- },
14633
- "description": "The toggletip text that is displayed when the label is hovered.\nIt is used to provide additional information about the label.",
14634
- "fieldName": "toggletipText"
14635
- },
14636
- {
14637
- "name": "toggletip-placement",
14638
- "type": {
14639
- "text": "PopoverPlacement"
14640
- },
14641
- "description": "The placement of the toggletip that is displayed when the info icon is hovered.",
14642
- "default": "'top'",
14643
- "fieldName": "toggletipPlacement"
14644
- },
14645
- {
14646
- "name": "info-icon-aria-label",
14647
- "type": {
14648
- "text": "string | undefined"
14649
- },
14650
- "description": "Aria label for the info icon that is displayed next to the label when `toggletipText` is set.\nThis is used for accessibility purposes to provide a description of the icon.",
14651
- "fieldName": "infoIconAriaLabel"
14652
- },
14653
- {
14654
- "name": "disabled",
14655
- "type": {
14656
- "text": "boolean | undefined"
14657
- },
14658
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
14659
- "default": "undefined",
14660
- "fieldName": "disabled",
14661
- "inheritedFrom": {
14662
- "name": "DisabledMixin",
14663
- "module": "src/utils/mixins/DisabledMixin.ts"
14664
- }
14665
- }
14666
- ],
14667
- "mixins": [
14668
- {
14669
- "name": "DisabledMixin",
14670
- "module": "/src/utils/mixins/DisabledMixin"
14671
- }
14672
- ],
14673
- "superclass": {
14674
- "name": "Component",
14675
- "module": "/src/models"
14676
- },
14677
- "tagName": "mdc-formfieldwrapper",
14678
- "jsDoc": "/**\n * formfieldwrapper is a component that contains the label and helper/validation text\n * that can be configured in various ways to suit different use cases (most of the input related components).\n * It is used as an internal component and is not intended to be used directly by consumers.\n *\n * @tagname mdc-formfieldwrapper\n *\n * @dependency mdc-text\n * @dependency mdc-icon\n * @dependency mdc-button\n * @dependency mdc-toggletip\n *\n *\n */",
14679
- "customElement": true
14680
- }
14681
- ],
14682
- "exports": [
14683
- {
14684
- "kind": "js",
14685
- "name": "default",
14686
- "declaration": {
14687
- "name": "FormfieldWrapper",
14688
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
14689
- }
14690
- }
14691
- ]
14692
- },
14693
14675
  {
14694
14676
  "kind": "javascript-module",
14695
14677
  "path": "components/input/input.component.js",
@@ -23097,38 +23079,7 @@
23097
23079
  },
23098
23080
  {
23099
23081
  "kind": "field",
23100
- "name": "triggerElement",
23101
- "type": {
23102
- "text": "HTMLElement | null"
23103
- },
23104
- "privacy": "public",
23105
- "default": "null",
23106
- "inheritedFrom": {
23107
- "name": "Popover",
23108
- "module": "components/popover/popover.component.js"
23109
- }
23110
- },
23111
- {
23112
- "kind": "field",
23113
- "name": "storeConnectedTooltip",
23114
- "privacy": "private",
23115
- "inheritedFrom": {
23116
- "name": "Popover",
23117
- "module": "components/popover/popover.component.js"
23118
- }
23119
- },
23120
- {
23121
- "kind": "method",
23122
- "name": "setupTriggerRelatedElement",
23123
- "privacy": "private",
23124
- "inheritedFrom": {
23125
- "name": "Popover",
23126
- "module": "components/popover/popover.component.js"
23127
- }
23128
- },
23129
- {
23130
- "kind": "field",
23131
- "name": "cleanupTrigger",
23082
+ "name": "parseTrigger",
23132
23083
  "privacy": "private",
23133
23084
  "inheritedFrom": {
23134
23085
  "name": "Popover",
@@ -23139,7 +23090,7 @@
23139
23090
  "kind": "field",
23140
23091
  "name": "setupTriggerListeners",
23141
23092
  "privacy": "private",
23142
- "description": "Sets up the trigger related event listeners, based on the trigger type.\nIncludes fallback for mouseenter trigger to also handle focusin for non-interactive popovers.",
23093
+ "description": "Sets up the trigger related event listeners, based on the trigger type.\nIncludes fallback for mouseenter trigger to also handle focusin for non-interactive popovers.\n\nWe are using capture phase for to make sure we capture trigger events even when they are not propagated during the\nbubble phase (e.g.: buttons in list item)",
23143
23094
  "inheritedFrom": {
23144
23095
  "name": "Popover",
23145
23096
  "module": "components/popover/popover.component.js"
@@ -23288,14 +23239,20 @@
23288
23239
  }
23289
23240
  },
23290
23241
  {
23291
- "kind": "field",
23292
- "name": "findClosestPopover",
23242
+ "kind": "method",
23243
+ "name": "isEventFromTrigger",
23293
23244
  "privacy": "protected",
23294
- "description": "Finds the closest popover to the passed element in the DOM tree.\n\nUseful when need to find the parent popover in a nested popover scenario.",
23245
+ "return": {
23246
+ "type": {
23247
+ "text": "boolean"
23248
+ }
23249
+ },
23295
23250
  "parameters": [
23296
23251
  {
23297
- "description": "The element to start searching from.",
23298
- "name": "element"
23252
+ "name": "event",
23253
+ "type": {
23254
+ "text": "Event"
23255
+ }
23299
23256
  }
23300
23257
  ],
23301
23258
  "inheritedFrom": {
@@ -23311,6 +23268,13 @@
23311
23268
  "name": "Popover",
23312
23269
  "module": "components/popover/popover.component.js"
23313
23270
  }
23271
+ },
23272
+ {
23273
+ "kind": "field",
23274
+ "inheritedFrom": {
23275
+ "name": "Popover",
23276
+ "module": "components/popover/popover.component.js"
23277
+ }
23314
23278
  }
23315
23279
  ],
23316
23280
  "events": [
@@ -27967,33 +27931,14 @@
27967
27931
  },
27968
27932
  {
27969
27933
  "kind": "field",
27970
- "name": "triggerElement",
27971
- "type": {
27972
- "text": "HTMLElement | null"
27973
- },
27974
- "privacy": "public",
27975
- "default": "null"
27976
- },
27977
- {
27978
- "kind": "field",
27979
- "name": "storeConnectedTooltip",
27980
- "privacy": "private"
27981
- },
27982
- {
27983
- "kind": "method",
27984
- "name": "setupTriggerRelatedElement",
27985
- "privacy": "private"
27986
- },
27987
- {
27988
- "kind": "field",
27989
- "name": "cleanupTrigger",
27934
+ "name": "parseTrigger",
27990
27935
  "privacy": "private"
27991
27936
  },
27992
27937
  {
27993
27938
  "kind": "field",
27994
27939
  "name": "setupTriggerListeners",
27995
27940
  "privacy": "private",
27996
- "description": "Sets up the trigger related event listeners, based on the trigger type.\nIncludes fallback for mouseenter trigger to also handle focusin for non-interactive popovers."
27941
+ "description": "Sets up the trigger related event listeners, based on the trigger type.\nIncludes fallback for mouseenter trigger to also handle focusin for non-interactive popovers.\n\nWe are using capture phase for to make sure we capture trigger events even when they are not propagated during the\nbubble phase (e.g.: buttons in list item)"
27997
27942
  },
27998
27943
  {
27999
27944
  "kind": "field",
@@ -28126,14 +28071,20 @@
28126
28071
  "description": "Positions the popover based on the trigger element.\nIt also handles the flip, size and arrow placement.\nIt uses the floating-ui/dom library to calculate the position."
28127
28072
  },
28128
28073
  {
28129
- "kind": "field",
28130
- "name": "findClosestPopover",
28074
+ "kind": "method",
28075
+ "name": "isEventFromTrigger",
28131
28076
  "privacy": "protected",
28132
- "description": "Finds the closest popover to the passed element in the DOM tree.\n\nUseful when need to find the parent popover in a nested popover scenario.",
28077
+ "return": {
28078
+ "type": {
28079
+ "text": "boolean"
28080
+ }
28081
+ },
28133
28082
  "parameters": [
28134
28083
  {
28135
- "description": "The element to start searching from.",
28136
- "name": "element"
28084
+ "name": "event",
28085
+ "type": {
28086
+ "text": "Event"
28087
+ }
28137
28088
  }
28138
28089
  ]
28139
28090
  },
@@ -28142,6 +28093,9 @@
28142
28093
  "name": "utils",
28143
28094
  "default": "new PopoverUtils(this)"
28144
28095
  },
28096
+ {
28097
+ "kind": "field"
28098
+ },
28145
28099
  {
28146
28100
  "kind": "method",
28147
28101
  "name": "activatePreventScroll",
@@ -37036,100 +36990,6 @@
37036
36990
  }
37037
36991
  ]
37038
36992
  },
37039
- {
37040
- "kind": "javascript-module",
37041
- "path": "components/tablist/tablist.component.js",
37042
- "declarations": [
37043
- {
37044
- "kind": "class",
37045
- "description": "Tab list organizes tabs into a container.\n\nChildren of the tab list are `mdc-tab` elements, sent to the default slot.\n\nThe tabs can be navigated using the left/right arrow keys, and selected by clicking,\n or pressing the Enter and Space keys.\n\n**Implicit accessibility rules**\n\n- The element that serves as the container for the set of tabs has role `tablist`.\n- Each element that serves as a tab has role `tab` and is contained within the element with role `tablist`.\n- The active tab element has the state `aria-selected` set to `true`\n and all other tab elements have it set to `false`.\n\n\n**Accessibility notes for consuming (have to be explicitly set when you consume the component)**\n\n- Each element that contains the `content panel` for a `tab` has role `tabpanel`.\n- The `tablist` element needs to have a label provided by `data-aria-label`.\n- Each element with role `tab` has the property `aria-controls`\n that should refer to its associated `tabpanel` element.\n- Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.\n- If a `tab` element has a popup menu, it needs to have the property `aria-haspopup` set to either `menu` or `true`.",
37046
- "name": "TabList",
37047
- "cssProperties": [
37048
- {
37049
- "description": "Gap between tabs",
37050
- "name": "--mdc-tablist-gap"
37051
- },
37052
- {
37053
- "description": "Width of the tablist",
37054
- "name": "--mdc-tablist-width"
37055
- },
37056
- {
37057
- "description": "Margin value for the arrow button",
37058
- "name": "--mdc-tablist-arrow-button-margin"
37059
- }
37060
- ],
37061
- "slots": [
37062
- {
37063
- "description": "slot for mdc-tab elements.",
37064
- "name": "Default"
37065
- }
37066
- ],
37067
- "members": [
37068
- {
37069
- "kind": "field",
37070
- "name": "activeTabId",
37071
- "type": {
37072
- "text": "string | undefined"
37073
- },
37074
- "description": "ID of the active tab, defaults to the first tab if not provided",
37075
- "attribute": "active-tab-id",
37076
- "reflects": true
37077
- },
37078
- {
37079
- "kind": "field",
37080
- "name": "dataAriaLabel",
37081
- "type": {
37082
- "text": "string | undefined"
37083
- },
37084
- "description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
37085
- "attribute": "data-aria-label"
37086
- }
37087
- ],
37088
- "events": [
37089
- {
37090
- "description": "(React: onChange) This event is dispatched when the tab is selected. Event that fires when user changes the active tab. The function sent as the argument will receive the fired event and the new tab id can be fetched from event.detail.tabId. `(event: CustomEvent) => handleTabChange(event.detail.tabId);`",
37091
- "name": "change",
37092
- "reactName": "onChange"
37093
- }
37094
- ],
37095
- "attributes": [
37096
- {
37097
- "name": "active-tab-id",
37098
- "type": {
37099
- "text": "string | undefined"
37100
- },
37101
- "description": "ID of the active tab, defaults to the first tab if not provided",
37102
- "fieldName": "activeTabId"
37103
- },
37104
- {
37105
- "name": "data-aria-label",
37106
- "type": {
37107
- "text": "string | undefined"
37108
- },
37109
- "description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
37110
- "fieldName": "dataAriaLabel"
37111
- }
37112
- ],
37113
- "superclass": {
37114
- "name": "Component",
37115
- "module": "/src/models"
37116
- },
37117
- "tagName": "mdc-tablist",
37118
- "jsDoc": "/**\n * Tab list organizes tabs into a container.\n *\n * Children of the tab list are `mdc-tab` elements, sent to the default slot.\n *\n * The tabs can be navigated using the left/right arrow keys, and selected by clicking,\n * or pressing the Enter and Space keys.\n *\n * **Implicit accessibility rules**\n *\n * - The element that serves as the container for the set of tabs has role `tablist`.\n * - Each element that serves as a tab has role `tab` and is contained within the element with role `tablist`.\n * - The active tab element has the state `aria-selected` set to `true`\n * and all other tab elements have it set to `false`.\n *\n *\n * **Accessibility notes for consuming (have to be explicitly set when you consume the component)**\n *\n * - Each element that contains the `content panel` for a `tab` has role `tabpanel`.\n * - The `tablist` element needs to have a label provided by `data-aria-label`.\n * - Each element with role `tab` has the property `aria-controls`\n * that should refer to its associated `tabpanel` element.\n * - Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.\n * - If a `tab` element has a popup menu, it needs to have the property `aria-haspopup` set to either `menu` or `true`.\n *\n * @tagname mdc-tablist\n *\n * @dependency mdc-tab\n * @dependency mdc-button\n *\n * @event change - (React: onChange) This event is dispatched when the tab is selected.\n * Event that fires when user changes the active tab.\n * The function sent as the argument will receive the fired event\n * and the new tab id can be fetched from event.detail.tabId.\n *\n * `(event: CustomEvent) => handleTabChange(event.detail.tabId);`\n *\n * @slot Default slot for mdc-tab elements.\n *\n * @cssproperty --mdc-tablist-gap - Gap between tabs\n * @cssproperty --mdc-tablist-width - Width of the tablist\n * @cssproperty --mdc-tablist-arrow-button-margin - Margin value for the arrow button\n */",
37119
- "customElement": true
37120
- }
37121
- ],
37122
- "exports": [
37123
- {
37124
- "kind": "js",
37125
- "name": "default",
37126
- "declaration": {
37127
- "name": "TabList",
37128
- "module": "components/tablist/tablist.component.js"
37129
- }
37130
- }
37131
- ]
37132
- },
37133
36993
  {
37134
36994
  "kind": "javascript-module",
37135
36995
  "path": "components/text/text.component.js",
@@ -38126,6 +37986,100 @@
38126
37986
  }
38127
37987
  ]
38128
37988
  },
37989
+ {
37990
+ "kind": "javascript-module",
37991
+ "path": "components/tablist/tablist.component.js",
37992
+ "declarations": [
37993
+ {
37994
+ "kind": "class",
37995
+ "description": "Tab list organizes tabs into a container.\n\nChildren of the tab list are `mdc-tab` elements, sent to the default slot.\n\nThe tabs can be navigated using the left/right arrow keys, and selected by clicking,\n or pressing the Enter and Space keys.\n\n**Implicit accessibility rules**\n\n- The element that serves as the container for the set of tabs has role `tablist`.\n- Each element that serves as a tab has role `tab` and is contained within the element with role `tablist`.\n- The active tab element has the state `aria-selected` set to `true`\n and all other tab elements have it set to `false`.\n\n\n**Accessibility notes for consuming (have to be explicitly set when you consume the component)**\n\n- Each element that contains the `content panel` for a `tab` has role `tabpanel`.\n- The `tablist` element needs to have a label provided by `data-aria-label`.\n- Each element with role `tab` has the property `aria-controls`\n that should refer to its associated `tabpanel` element.\n- Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.\n- If a `tab` element has a popup menu, it needs to have the property `aria-haspopup` set to either `menu` or `true`.",
37996
+ "name": "TabList",
37997
+ "cssProperties": [
37998
+ {
37999
+ "description": "Gap between tabs",
38000
+ "name": "--mdc-tablist-gap"
38001
+ },
38002
+ {
38003
+ "description": "Width of the tablist",
38004
+ "name": "--mdc-tablist-width"
38005
+ },
38006
+ {
38007
+ "description": "Margin value for the arrow button",
38008
+ "name": "--mdc-tablist-arrow-button-margin"
38009
+ }
38010
+ ],
38011
+ "slots": [
38012
+ {
38013
+ "description": "slot for mdc-tab elements.",
38014
+ "name": "Default"
38015
+ }
38016
+ ],
38017
+ "members": [
38018
+ {
38019
+ "kind": "field",
38020
+ "name": "activeTabId",
38021
+ "type": {
38022
+ "text": "string | undefined"
38023
+ },
38024
+ "description": "ID of the active tab, defaults to the first tab if not provided",
38025
+ "attribute": "active-tab-id",
38026
+ "reflects": true
38027
+ },
38028
+ {
38029
+ "kind": "field",
38030
+ "name": "dataAriaLabel",
38031
+ "type": {
38032
+ "text": "string | undefined"
38033
+ },
38034
+ "description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
38035
+ "attribute": "data-aria-label"
38036
+ }
38037
+ ],
38038
+ "events": [
38039
+ {
38040
+ "description": "(React: onChange) This event is dispatched when the tab is selected. Event that fires when user changes the active tab. The function sent as the argument will receive the fired event and the new tab id can be fetched from event.detail.tabId. `(event: CustomEvent) => handleTabChange(event.detail.tabId);`",
38041
+ "name": "change",
38042
+ "reactName": "onChange"
38043
+ }
38044
+ ],
38045
+ "attributes": [
38046
+ {
38047
+ "name": "active-tab-id",
38048
+ "type": {
38049
+ "text": "string | undefined"
38050
+ },
38051
+ "description": "ID of the active tab, defaults to the first tab if not provided",
38052
+ "fieldName": "activeTabId"
38053
+ },
38054
+ {
38055
+ "name": "data-aria-label",
38056
+ "type": {
38057
+ "text": "string | undefined"
38058
+ },
38059
+ "description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
38060
+ "fieldName": "dataAriaLabel"
38061
+ }
38062
+ ],
38063
+ "superclass": {
38064
+ "name": "Component",
38065
+ "module": "/src/models"
38066
+ },
38067
+ "tagName": "mdc-tablist",
38068
+ "jsDoc": "/**\n * Tab list organizes tabs into a container.\n *\n * Children of the tab list are `mdc-tab` elements, sent to the default slot.\n *\n * The tabs can be navigated using the left/right arrow keys, and selected by clicking,\n * or pressing the Enter and Space keys.\n *\n * **Implicit accessibility rules**\n *\n * - The element that serves as the container for the set of tabs has role `tablist`.\n * - Each element that serves as a tab has role `tab` and is contained within the element with role `tablist`.\n * - The active tab element has the state `aria-selected` set to `true`\n * and all other tab elements have it set to `false`.\n *\n *\n * **Accessibility notes for consuming (have to be explicitly set when you consume the component)**\n *\n * - Each element that contains the `content panel` for a `tab` has role `tabpanel`.\n * - The `tablist` element needs to have a label provided by `data-aria-label`.\n * - Each element with role `tab` has the property `aria-controls`\n * that should refer to its associated `tabpanel` element.\n * - Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.\n * - If a `tab` element has a popup menu, it needs to have the property `aria-haspopup` set to either `menu` or `true`.\n *\n * @tagname mdc-tablist\n *\n * @dependency mdc-tab\n * @dependency mdc-button\n *\n * @event change - (React: onChange) This event is dispatched when the tab is selected.\n * Event that fires when user changes the active tab.\n * The function sent as the argument will receive the fired event\n * and the new tab id can be fetched from event.detail.tabId.\n *\n * `(event: CustomEvent) => handleTabChange(event.detail.tabId);`\n *\n * @slot Default slot for mdc-tab elements.\n *\n * @cssproperty --mdc-tablist-gap - Gap between tabs\n * @cssproperty --mdc-tablist-width - Width of the tablist\n * @cssproperty --mdc-tablist-arrow-button-margin - Margin value for the arrow button\n */",
38069
+ "customElement": true
38070
+ }
38071
+ ],
38072
+ "exports": [
38073
+ {
38074
+ "kind": "js",
38075
+ "name": "default",
38076
+ "declaration": {
38077
+ "name": "TabList",
38078
+ "module": "components/tablist/tablist.component.js"
38079
+ }
38080
+ }
38081
+ ]
38082
+ },
38129
38083
  {
38130
38084
  "kind": "javascript-module",
38131
38085
  "path": "components/themeprovider/themeprovider.component.js",
@@ -40549,38 +40503,7 @@
40549
40503
  },
40550
40504
  {
40551
40505
  "kind": "field",
40552
- "name": "triggerElement",
40553
- "type": {
40554
- "text": "HTMLElement | null"
40555
- },
40556
- "privacy": "public",
40557
- "default": "null",
40558
- "inheritedFrom": {
40559
- "name": "Popover",
40560
- "module": "components/popover/popover.component.js"
40561
- }
40562
- },
40563
- {
40564
- "kind": "field",
40565
- "name": "storeConnectedTooltip",
40566
- "privacy": "private",
40567
- "inheritedFrom": {
40568
- "name": "Popover",
40569
- "module": "components/popover/popover.component.js"
40570
- }
40571
- },
40572
- {
40573
- "kind": "method",
40574
- "name": "setupTriggerRelatedElement",
40575
- "privacy": "private",
40576
- "inheritedFrom": {
40577
- "name": "Popover",
40578
- "module": "components/popover/popover.component.js"
40579
- }
40580
- },
40581
- {
40582
- "kind": "field",
40583
- "name": "cleanupTrigger",
40506
+ "name": "parseTrigger",
40584
40507
  "privacy": "private",
40585
40508
  "inheritedFrom": {
40586
40509
  "name": "Popover",
@@ -40591,7 +40514,7 @@
40591
40514
  "kind": "field",
40592
40515
  "name": "setupTriggerListeners",
40593
40516
  "privacy": "private",
40594
- "description": "Sets up the trigger related event listeners, based on the trigger type.\nIncludes fallback for mouseenter trigger to also handle focusin for non-interactive popovers.",
40517
+ "description": "Sets up the trigger related event listeners, based on the trigger type.\nIncludes fallback for mouseenter trigger to also handle focusin for non-interactive popovers.\n\nWe are using capture phase for to make sure we capture trigger events even when they are not propagated during the\nbubble phase (e.g.: buttons in list item)",
40595
40518
  "inheritedFrom": {
40596
40519
  "name": "Popover",
40597
40520
  "module": "components/popover/popover.component.js"
@@ -40792,14 +40715,20 @@
40792
40715
  }
40793
40716
  },
40794
40717
  {
40795
- "kind": "field",
40796
- "name": "findClosestPopover",
40718
+ "kind": "method",
40719
+ "name": "isEventFromTrigger",
40797
40720
  "privacy": "protected",
40798
- "description": "Finds the closest popover to the passed element in the DOM tree.\n\nUseful when need to find the parent popover in a nested popover scenario.",
40721
+ "return": {
40722
+ "type": {
40723
+ "text": "boolean"
40724
+ }
40725
+ },
40799
40726
  "parameters": [
40800
40727
  {
40801
- "description": "The element to start searching from.",
40802
- "name": "element"
40728
+ "name": "event",
40729
+ "type": {
40730
+ "text": "Event"
40731
+ }
40803
40732
  }
40804
40733
  ],
40805
40734
  "inheritedFrom": {
@@ -40815,6 +40744,13 @@
40815
40744
  "name": "Popover",
40816
40745
  "module": "components/popover/popover.component.js"
40817
40746
  }
40747
+ },
40748
+ {
40749
+ "kind": "field",
40750
+ "inheritedFrom": {
40751
+ "name": "Popover",
40752
+ "module": "components/popover/popover.component.js"
40753
+ }
40818
40754
  }
40819
40755
  ],
40820
40756
  "events": [
@@ -42613,38 +42549,7 @@
42613
42549
  },
42614
42550
  {
42615
42551
  "kind": "field",
42616
- "name": "triggerElement",
42617
- "type": {
42618
- "text": "HTMLElement | null"
42619
- },
42620
- "privacy": "public",
42621
- "default": "null",
42622
- "inheritedFrom": {
42623
- "name": "Popover",
42624
- "module": "components/popover/popover.component.js"
42625
- }
42626
- },
42627
- {
42628
- "kind": "field",
42629
- "name": "storeConnectedTooltip",
42630
- "privacy": "private",
42631
- "inheritedFrom": {
42632
- "name": "Popover",
42633
- "module": "components/popover/popover.component.js"
42634
- }
42635
- },
42636
- {
42637
- "kind": "method",
42638
- "name": "setupTriggerRelatedElement",
42639
- "privacy": "private",
42640
- "inheritedFrom": {
42641
- "name": "Popover",
42642
- "module": "components/popover/popover.component.js"
42643
- }
42644
- },
42645
- {
42646
- "kind": "field",
42647
- "name": "cleanupTrigger",
42552
+ "name": "parseTrigger",
42648
42553
  "privacy": "private",
42649
42554
  "inheritedFrom": {
42650
42555
  "name": "Popover",
@@ -42655,7 +42560,7 @@
42655
42560
  "kind": "field",
42656
42561
  "name": "setupTriggerListeners",
42657
42562
  "privacy": "private",
42658
- "description": "Sets up the trigger related event listeners, based on the trigger type.\nIncludes fallback for mouseenter trigger to also handle focusin for non-interactive popovers.",
42563
+ "description": "Sets up the trigger related event listeners, based on the trigger type.\nIncludes fallback for mouseenter trigger to also handle focusin for non-interactive popovers.\n\nWe are using capture phase for to make sure we capture trigger events even when they are not propagated during the\nbubble phase (e.g.: buttons in list item)",
42659
42564
  "inheritedFrom": {
42660
42565
  "name": "Popover",
42661
42566
  "module": "components/popover/popover.component.js"
@@ -42856,14 +42761,20 @@
42856
42761
  }
42857
42762
  },
42858
42763
  {
42859
- "kind": "field",
42860
- "name": "findClosestPopover",
42764
+ "kind": "method",
42765
+ "name": "isEventFromTrigger",
42861
42766
  "privacy": "protected",
42862
- "description": "Finds the closest popover to the passed element in the DOM tree.\n\nUseful when need to find the parent popover in a nested popover scenario.",
42767
+ "return": {
42768
+ "type": {
42769
+ "text": "boolean"
42770
+ }
42771
+ },
42863
42772
  "parameters": [
42864
42773
  {
42865
- "description": "The element to start searching from.",
42866
- "name": "element"
42774
+ "name": "event",
42775
+ "type": {
42776
+ "text": "Event"
42777
+ }
42867
42778
  }
42868
42779
  ],
42869
42780
  "inheritedFrom": {
@@ -42879,6 +42790,13 @@
42879
42790
  "name": "Popover",
42880
42791
  "module": "components/popover/popover.component.js"
42881
42792
  }
42793
+ },
42794
+ {
42795
+ "kind": "field",
42796
+ "inheritedFrom": {
42797
+ "name": "Popover",
42798
+ "module": "components/popover/popover.component.js"
42799
+ }
42882
42800
  }
42883
42801
  ],
42884
42802
  "events": [