@govtechsg/sgds-web-component 3.23.0-rc.0 → 3.23.0-rc.1
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/base/card.js +1 -1
- package/components/Breadcrumb/index.umd.min.js +34 -33
- package/components/Breadcrumb/index.umd.min.js.map +1 -1
- package/components/Card/index.umd.min.js +1 -1
- package/components/Card/index.umd.min.js.map +1 -1
- package/components/Dropdown/index.umd.min.js +9 -3
- package/components/Dropdown/index.umd.min.js.map +1 -1
- package/components/Dropdown/sgds-dropdown-item.d.ts +2 -0
- package/components/Dropdown/sgds-dropdown-item.js +7 -0
- package/components/Dropdown/sgds-dropdown-item.js.map +1 -1
- package/components/IconCard/index.umd.min.js +1 -1
- package/components/IconCard/index.umd.min.js.map +1 -1
- package/components/ImageCard/index.umd.min.js +1 -1
- package/components/ImageCard/index.umd.min.js.map +1 -1
- package/components/Mainnav/index.umd.min.js +3 -2
- package/components/Mainnav/index.umd.min.js.map +1 -1
- package/components/OverflowMenu/index.umd.min.js +9 -3
- package/components/OverflowMenu/index.umd.min.js.map +1 -1
- package/components/ThumbnailCard/index.umd.min.js +1 -1
- package/components/ThumbnailCard/index.umd.min.js.map +1 -1
- package/components/index.umd.min.js +4 -3
- package/components/index.umd.min.js.map +1 -1
- package/css/fouc.css +2 -2
- package/custom-elements.json +1074 -1055
- package/index.umd.min.js +4 -3
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/base/card.cjs.js +1 -1
- package/react/base/card.js +1 -1
- package/react/components/Dropdown/sgds-dropdown-item.cjs.js +7 -0
- package/react/components/Dropdown/sgds-dropdown-item.cjs.js.map +1 -1
- package/react/components/Dropdown/sgds-dropdown-item.js +7 -0
- package/react/components/Dropdown/sgds-dropdown-item.js.map +1 -1
- package/react/index.cjs.js +10 -10
- package/react/index.d.ts +2 -2
- package/react/index.js +2 -2
- package/types/react.d.ts +46 -44
package/custom-elements.json
CHANGED
|
@@ -939,106 +939,65 @@
|
|
|
939
939
|
},
|
|
940
940
|
{
|
|
941
941
|
"kind": "javascript-module",
|
|
942
|
-
"path": "src/components/
|
|
942
|
+
"path": "src/components/Badge/sgds-badge.ts",
|
|
943
943
|
"declarations": [
|
|
944
944
|
{
|
|
945
945
|
"kind": "class",
|
|
946
946
|
"description": "",
|
|
947
|
-
"name": "
|
|
947
|
+
"name": "SgdsBadge",
|
|
948
948
|
"slots": [
|
|
949
949
|
{
|
|
950
|
-
"description": "
|
|
950
|
+
"description": "slot for badge",
|
|
951
951
|
"name": "default"
|
|
952
952
|
},
|
|
953
953
|
{
|
|
954
|
-
"description": "The slot for icon to the left of the
|
|
955
|
-
"name": "
|
|
956
|
-
},
|
|
957
|
-
{
|
|
958
|
-
"description": "The slot for icon to the right of the button text",
|
|
959
|
-
"name": "rightIcon"
|
|
954
|
+
"description": "The slot for icon to the left of the badge text",
|
|
955
|
+
"name": "icon"
|
|
960
956
|
}
|
|
961
957
|
],
|
|
962
958
|
"members": [
|
|
963
959
|
{
|
|
964
960
|
"kind": "field",
|
|
965
|
-
"name": "
|
|
966
|
-
"type": {
|
|
967
|
-
"text": "string"
|
|
968
|
-
},
|
|
969
|
-
"description": "The name of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
970
|
-
"attribute": "name",
|
|
971
|
-
"reflects": true
|
|
972
|
-
},
|
|
973
|
-
{
|
|
974
|
-
"kind": "field",
|
|
975
|
-
"name": "value",
|
|
976
|
-
"type": {
|
|
977
|
-
"text": "string"
|
|
978
|
-
},
|
|
979
|
-
"description": "The value of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
980
|
-
"attribute": "value",
|
|
981
|
-
"reflects": true
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
"kind": "field",
|
|
985
|
-
"name": "type",
|
|
986
|
-
"type": {
|
|
987
|
-
"text": "\"button\" | \"submit\" | \"reset\""
|
|
988
|
-
},
|
|
989
|
-
"default": "\"button\"",
|
|
990
|
-
"description": "The behavior of the button with default as `type='button', `reset` resets all the controls to their initial values and `submit` submits the form data to the server",
|
|
991
|
-
"attribute": "type",
|
|
992
|
-
"reflects": true
|
|
993
|
-
},
|
|
994
|
-
{
|
|
995
|
-
"kind": "field",
|
|
996
|
-
"name": "form",
|
|
997
|
-
"type": {
|
|
998
|
-
"text": "string"
|
|
999
|
-
},
|
|
1000
|
-
"description": "The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\nvalue of this attribute must be an id of a form in the same document or shadow root as the button.",
|
|
1001
|
-
"attribute": "form",
|
|
1002
|
-
"reflects": true
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
"kind": "field",
|
|
1006
|
-
"name": "formAction",
|
|
961
|
+
"name": "show",
|
|
1007
962
|
"type": {
|
|
1008
|
-
"text": "
|
|
963
|
+
"text": "boolean"
|
|
1009
964
|
},
|
|
1010
|
-
"
|
|
1011
|
-
"
|
|
965
|
+
"default": "false",
|
|
966
|
+
"description": "Controls the appearance of the dismissible badge. This prop only applies when dismissible is true",
|
|
967
|
+
"attribute": "show",
|
|
1012
968
|
"reflects": true
|
|
1013
969
|
},
|
|
1014
970
|
{
|
|
1015
971
|
"kind": "field",
|
|
1016
|
-
"name": "
|
|
972
|
+
"name": "variant",
|
|
1017
973
|
"type": {
|
|
1018
|
-
"text": "\"
|
|
974
|
+
"text": "\"primary\" | \"accent\" | \"success\" | \"danger\" | \"warning\" | \"cyan\" | \"purple\" | \"neutral\" | \"white\" | \"info\""
|
|
1019
975
|
},
|
|
1020
|
-
"
|
|
1021
|
-
"
|
|
976
|
+
"default": "\"primary\"",
|
|
977
|
+
"description": "One or more badge variant combinations.\nVariants include: `primary`, `accent`, `success`, `danger`, `warning`, `cyan`, `purple`, `neutral`, `white`, `info`.\n\n(@deprecated) The `info` variant is deprecated. Use `primary` instead.",
|
|
978
|
+
"attribute": "variant",
|
|
1022
979
|
"reflects": true
|
|
1023
980
|
},
|
|
1024
981
|
{
|
|
1025
982
|
"kind": "field",
|
|
1026
|
-
"name": "
|
|
983
|
+
"name": "outlined",
|
|
1027
984
|
"type": {
|
|
1028
985
|
"text": "boolean"
|
|
1029
986
|
},
|
|
1030
|
-
"
|
|
1031
|
-
"
|
|
987
|
+
"default": "false",
|
|
988
|
+
"description": "Manually set the outlined state to false",
|
|
989
|
+
"attribute": "outlined",
|
|
1032
990
|
"reflects": true
|
|
1033
991
|
},
|
|
1034
992
|
{
|
|
1035
993
|
"kind": "field",
|
|
1036
|
-
"name": "
|
|
994
|
+
"name": "dismissible",
|
|
1037
995
|
"type": {
|
|
1038
|
-
"text": "
|
|
996
|
+
"text": "boolean"
|
|
1039
997
|
},
|
|
1040
|
-
"
|
|
1041
|
-
"
|
|
998
|
+
"default": "false",
|
|
999
|
+
"description": "Manually set the dismissible state of the button to `false`",
|
|
1000
|
+
"attribute": "dismissible",
|
|
1042
1001
|
"reflects": true
|
|
1043
1002
|
},
|
|
1044
1003
|
{
|
|
@@ -1048,336 +1007,418 @@
|
|
|
1048
1007
|
"text": "boolean"
|
|
1049
1008
|
},
|
|
1050
1009
|
"default": "false",
|
|
1051
|
-
"description": "
|
|
1010
|
+
"description": "Manually enable full width",
|
|
1052
1011
|
"attribute": "fullWidth",
|
|
1053
1012
|
"reflects": true
|
|
1054
1013
|
},
|
|
1055
1014
|
{
|
|
1056
1015
|
"kind": "field",
|
|
1057
|
-
"name": "
|
|
1016
|
+
"name": "truncated",
|
|
1058
1017
|
"type": {
|
|
1059
1018
|
"text": "boolean"
|
|
1060
1019
|
},
|
|
1061
|
-
"
|
|
1062
|
-
"
|
|
1063
|
-
"attribute": "hasLeftIconSlot"
|
|
1020
|
+
"privacy": "private",
|
|
1021
|
+
"default": "false"
|
|
1064
1022
|
},
|
|
1065
1023
|
{
|
|
1066
1024
|
"kind": "field",
|
|
1067
|
-
"name": "
|
|
1025
|
+
"name": "text",
|
|
1068
1026
|
"type": {
|
|
1069
|
-
"text": "
|
|
1027
|
+
"text": "string"
|
|
1070
1028
|
},
|
|
1071
|
-
"
|
|
1072
|
-
"
|
|
1073
|
-
"attribute": "hasRightIconSlot"
|
|
1029
|
+
"privacy": "private",
|
|
1030
|
+
"default": "\"\""
|
|
1074
1031
|
},
|
|
1075
1032
|
{
|
|
1076
|
-
"kind": "
|
|
1077
|
-
"name": "
|
|
1078
|
-
"privacy": "
|
|
1079
|
-
"
|
|
1033
|
+
"kind": "method",
|
|
1034
|
+
"name": "close",
|
|
1035
|
+
"privacy": "public",
|
|
1036
|
+
"description": "Closes the badge",
|
|
1080
1037
|
"type": {}
|
|
1081
1038
|
},
|
|
1082
1039
|
{
|
|
1083
1040
|
"kind": "method",
|
|
1084
|
-
"name": "
|
|
1085
|
-
"privacy": "
|
|
1041
|
+
"name": "_handleLabelSlotChange",
|
|
1042
|
+
"privacy": "private",
|
|
1086
1043
|
"parameters": [
|
|
1087
1044
|
{
|
|
1088
|
-
"name": "
|
|
1045
|
+
"name": "e",
|
|
1089
1046
|
"type": {
|
|
1090
|
-
"text": "
|
|
1047
|
+
"text": "Event"
|
|
1091
1048
|
}
|
|
1092
1049
|
}
|
|
1093
1050
|
],
|
|
1094
|
-
"type": {}
|
|
1095
|
-
"inheritedFrom": {
|
|
1096
|
-
"name": "ButtonElement",
|
|
1097
|
-
"module": "src/base/button-element.ts"
|
|
1098
|
-
}
|
|
1051
|
+
"type": {}
|
|
1099
1052
|
},
|
|
1100
1053
|
{
|
|
1101
|
-
"kind": "
|
|
1102
|
-
"name": "
|
|
1054
|
+
"kind": "method",
|
|
1055
|
+
"name": "_renderBadge",
|
|
1103
1056
|
"privacy": "private",
|
|
1104
1057
|
"type": {}
|
|
1105
1058
|
},
|
|
1106
1059
|
{
|
|
1107
|
-
"kind": "
|
|
1108
|
-
"name": "
|
|
1109
|
-
"
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1060
|
+
"kind": "method",
|
|
1061
|
+
"name": "emit",
|
|
1062
|
+
"parameters": [
|
|
1063
|
+
{
|
|
1064
|
+
"name": "name",
|
|
1065
|
+
"type": {
|
|
1066
|
+
"text": "string"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"name": "options",
|
|
1071
|
+
"optional": true,
|
|
1072
|
+
"type": {
|
|
1073
|
+
"text": "CustomEventInit<T>"
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
],
|
|
1077
|
+
"description": "Emits a custom event with more convenient defaults.",
|
|
1078
|
+
"type": {},
|
|
1116
1079
|
"inheritedFrom": {
|
|
1117
|
-
"name": "
|
|
1118
|
-
"module": "src/base/
|
|
1080
|
+
"name": "SgdsElement",
|
|
1081
|
+
"module": "src/base/sgds-element.ts"
|
|
1119
1082
|
}
|
|
1120
1083
|
},
|
|
1121
1084
|
{
|
|
1122
|
-
"kind": "
|
|
1123
|
-
"name": "
|
|
1124
|
-
"
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1085
|
+
"kind": "method",
|
|
1086
|
+
"name": "define",
|
|
1087
|
+
"static": true,
|
|
1088
|
+
"parameters": [
|
|
1089
|
+
{
|
|
1090
|
+
"name": "name",
|
|
1091
|
+
"type": {
|
|
1092
|
+
"text": "string"
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"name": "elementConstructor",
|
|
1097
|
+
"default": "this"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"name": "options",
|
|
1101
|
+
"default": "{}",
|
|
1102
|
+
"type": {
|
|
1103
|
+
"text": "ElementDefinitionOptions"
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
],
|
|
1107
|
+
"type": {},
|
|
1131
1108
|
"inheritedFrom": {
|
|
1132
|
-
"name": "
|
|
1133
|
-
"module": "src/base/
|
|
1109
|
+
"name": "SgdsElement",
|
|
1110
|
+
"module": "src/base/sgds-element.ts"
|
|
1134
1111
|
}
|
|
1112
|
+
}
|
|
1113
|
+
],
|
|
1114
|
+
"events": [
|
|
1115
|
+
{
|
|
1116
|
+
"description": "Emitted when the badge appears.",
|
|
1117
|
+
"name": "sgds-show",
|
|
1118
|
+
"reactName": "onSgdsShow"
|
|
1135
1119
|
},
|
|
1136
1120
|
{
|
|
1137
|
-
"
|
|
1138
|
-
"name": "
|
|
1139
|
-
"
|
|
1140
|
-
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
1141
|
-
},
|
|
1142
|
-
"default": "\"md\"",
|
|
1143
|
-
"description": "Specifies a small, medium or large button, the size is medium by default.",
|
|
1144
|
-
"attribute": "size",
|
|
1145
|
-
"reflects": true,
|
|
1146
|
-
"inheritedFrom": {
|
|
1147
|
-
"name": "ButtonElement",
|
|
1148
|
-
"module": "src/base/button-element.ts"
|
|
1149
|
-
}
|
|
1121
|
+
"description": "Emitted when the badge is starting to close but has not closed.",
|
|
1122
|
+
"name": "sgds-hide",
|
|
1123
|
+
"reactName": "onSgdsHide"
|
|
1150
1124
|
},
|
|
1151
1125
|
{
|
|
1152
|
-
"
|
|
1153
|
-
"name": "
|
|
1126
|
+
"description": "Emitted after the badge has appeared",
|
|
1127
|
+
"name": "sgds-after-show",
|
|
1128
|
+
"reactName": "onSgdsAfterShow"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"description": "Emitted after the badge has closed",
|
|
1132
|
+
"name": "sgds-after-hide",
|
|
1133
|
+
"reactName": "onSgdsAfterHide"
|
|
1134
|
+
}
|
|
1135
|
+
],
|
|
1136
|
+
"attributes": [
|
|
1137
|
+
{
|
|
1138
|
+
"name": "show",
|
|
1154
1139
|
"type": {
|
|
1155
1140
|
"text": "boolean"
|
|
1156
1141
|
},
|
|
1157
1142
|
"default": "false",
|
|
1158
|
-
"description": "
|
|
1159
|
-
"
|
|
1160
|
-
"reflects": true,
|
|
1161
|
-
"inheritedFrom": {
|
|
1162
|
-
"name": "ButtonElement",
|
|
1163
|
-
"module": "src/base/button-element.ts"
|
|
1164
|
-
}
|
|
1143
|
+
"description": "Controls the appearance of the dismissible badge. This prop only applies when dismissible is true",
|
|
1144
|
+
"fieldName": "show"
|
|
1165
1145
|
},
|
|
1166
1146
|
{
|
|
1167
|
-
"
|
|
1168
|
-
"name": "disabled",
|
|
1147
|
+
"name": "variant",
|
|
1169
1148
|
"type": {
|
|
1170
|
-
"text": "
|
|
1149
|
+
"text": "BadgeVariant"
|
|
1171
1150
|
},
|
|
1172
|
-
"default": "
|
|
1173
|
-
"description": "The
|
|
1174
|
-
"
|
|
1175
|
-
"reflects": true,
|
|
1176
|
-
"inheritedFrom": {
|
|
1177
|
-
"name": "ButtonElement",
|
|
1178
|
-
"module": "src/base/button-element.ts"
|
|
1179
|
-
}
|
|
1151
|
+
"default": "\"primary\"",
|
|
1152
|
+
"description": "One or more badge variant combinations.\nVariants include: `primary`, `accent`, `success`, `danger`, `warning`, `cyan`, `purple`, `neutral`, `white`, `info`.\n\n(@deprecated) The `info` variant is deprecated. Use `primary` instead.",
|
|
1153
|
+
"fieldName": "variant"
|
|
1180
1154
|
},
|
|
1181
1155
|
{
|
|
1182
|
-
"
|
|
1183
|
-
"name": "href",
|
|
1156
|
+
"name": "outlined",
|
|
1184
1157
|
"type": {
|
|
1185
|
-
"text": "
|
|
1158
|
+
"text": "boolean"
|
|
1186
1159
|
},
|
|
1187
|
-
"
|
|
1188
|
-
"
|
|
1189
|
-
"
|
|
1190
|
-
"inheritedFrom": {
|
|
1191
|
-
"name": "ButtonElement",
|
|
1192
|
-
"module": "src/base/button-element.ts"
|
|
1193
|
-
}
|
|
1160
|
+
"default": "false",
|
|
1161
|
+
"description": "Manually set the outlined state to false",
|
|
1162
|
+
"fieldName": "outlined"
|
|
1194
1163
|
},
|
|
1195
1164
|
{
|
|
1196
|
-
"
|
|
1197
|
-
"name": "target",
|
|
1165
|
+
"name": "dismissible",
|
|
1198
1166
|
"type": {
|
|
1199
|
-
"text": "
|
|
1167
|
+
"text": "boolean"
|
|
1200
1168
|
},
|
|
1201
|
-
"default": "
|
|
1202
|
-
"description": "
|
|
1203
|
-
"
|
|
1204
|
-
"reflects": true,
|
|
1205
|
-
"inheritedFrom": {
|
|
1206
|
-
"name": "ButtonElement",
|
|
1207
|
-
"module": "src/base/button-element.ts"
|
|
1208
|
-
}
|
|
1169
|
+
"default": "false",
|
|
1170
|
+
"description": "Manually set the dismissible state of the button to `false`",
|
|
1171
|
+
"fieldName": "dismissible"
|
|
1209
1172
|
},
|
|
1210
1173
|
{
|
|
1211
|
-
"
|
|
1212
|
-
"name": "download",
|
|
1174
|
+
"name": "fullWidth",
|
|
1213
1175
|
"type": {
|
|
1214
|
-
"text": "
|
|
1176
|
+
"text": "boolean"
|
|
1215
1177
|
},
|
|
1216
|
-
"
|
|
1217
|
-
"
|
|
1218
|
-
"
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1178
|
+
"default": "false",
|
|
1179
|
+
"description": "Manually enable full width",
|
|
1180
|
+
"fieldName": "fullWidth"
|
|
1181
|
+
}
|
|
1182
|
+
],
|
|
1183
|
+
"superclass": {
|
|
1184
|
+
"name": "SgdsElement",
|
|
1185
|
+
"module": "/src/base/sgds-element"
|
|
1186
|
+
},
|
|
1187
|
+
"summary": "Badges can be used to highlight important bits of information such as labels, notifications & status.\nWhen the text exceeds the width, it will be truncated with a tooltip that will be displayed on hover.",
|
|
1188
|
+
"tagName": "sgds-badge",
|
|
1189
|
+
"customElement": true,
|
|
1190
|
+
"modulePath": "src/components/Badge/sgds-badge.ts",
|
|
1191
|
+
"cssProperties": [],
|
|
1192
|
+
"cssParts": [],
|
|
1193
|
+
"cssStates": []
|
|
1194
|
+
}
|
|
1195
|
+
],
|
|
1196
|
+
"exports": [
|
|
1197
|
+
{
|
|
1198
|
+
"kind": "js",
|
|
1199
|
+
"name": "SgdsBadge",
|
|
1200
|
+
"declaration": {
|
|
1201
|
+
"name": "SgdsBadge",
|
|
1202
|
+
"module": "src/components/Badge/sgds-badge.ts"
|
|
1203
|
+
}
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"kind": "js",
|
|
1207
|
+
"name": "default",
|
|
1208
|
+
"declaration": {
|
|
1209
|
+
"name": "SgdsBadge",
|
|
1210
|
+
"module": "src/components/Badge/sgds-badge.ts"
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
]
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"kind": "javascript-module",
|
|
1217
|
+
"path": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
1218
|
+
"declarations": [
|
|
1219
|
+
{
|
|
1220
|
+
"kind": "class",
|
|
1221
|
+
"description": "",
|
|
1222
|
+
"name": "SgdsBreadcrumbItem",
|
|
1223
|
+
"slots": [
|
|
1224
|
+
{
|
|
1225
|
+
"description": "The link of the item. Pass in anchor tags into this slot",
|
|
1226
|
+
"name": "default"
|
|
1227
|
+
}
|
|
1228
|
+
],
|
|
1229
|
+
"members": [
|
|
1224
1230
|
{
|
|
1225
1231
|
"kind": "field",
|
|
1226
|
-
"name": "
|
|
1232
|
+
"name": "dependencies",
|
|
1227
1233
|
"type": {
|
|
1228
|
-
"text": "string"
|
|
1234
|
+
"text": "Record<string, typeof SgdsElement>"
|
|
1229
1235
|
},
|
|
1230
|
-
"
|
|
1231
|
-
"
|
|
1232
|
-
"inheritedFrom": {
|
|
1233
|
-
"name": "ButtonElement",
|
|
1234
|
-
"module": "src/base/button-element.ts"
|
|
1235
|
-
}
|
|
1236
|
+
"static": true,
|
|
1237
|
+
"default": "{\n \"sgds-link\": SgdsLink,\n \"sgds-icon\": SgdsIcon\n }"
|
|
1236
1238
|
},
|
|
1237
1239
|
{
|
|
1238
1240
|
"kind": "field",
|
|
1239
|
-
"name": "
|
|
1241
|
+
"name": "active",
|
|
1240
1242
|
"type": {
|
|
1241
1243
|
"text": "boolean"
|
|
1242
1244
|
},
|
|
1243
|
-
"
|
|
1244
|
-
"
|
|
1245
|
-
"
|
|
1246
|
-
|
|
1247
|
-
"module": "src/base/button-element.ts"
|
|
1248
|
-
}
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
"kind": "method",
|
|
1252
|
-
"name": "focus",
|
|
1253
|
-
"privacy": "public",
|
|
1254
|
-
"parameters": [
|
|
1255
|
-
{
|
|
1256
|
-
"name": "options",
|
|
1257
|
-
"optional": true,
|
|
1258
|
-
"type": {
|
|
1259
|
-
"text": "FocusOptions"
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
],
|
|
1263
|
-
"description": "Sets focus on the button.",
|
|
1264
|
-
"type": {},
|
|
1265
|
-
"inheritedFrom": {
|
|
1266
|
-
"name": "ButtonElement",
|
|
1267
|
-
"module": "src/base/button-element.ts"
|
|
1268
|
-
}
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
"kind": "method",
|
|
1272
|
-
"name": "click",
|
|
1273
|
-
"privacy": "public",
|
|
1274
|
-
"description": "Simulates a click on the button.",
|
|
1275
|
-
"type": {},
|
|
1276
|
-
"inheritedFrom": {
|
|
1277
|
-
"name": "ButtonElement",
|
|
1278
|
-
"module": "src/base/button-element.ts"
|
|
1279
|
-
}
|
|
1280
|
-
},
|
|
1281
|
-
{
|
|
1282
|
-
"kind": "method",
|
|
1283
|
-
"name": "blur",
|
|
1284
|
-
"privacy": "public",
|
|
1285
|
-
"description": "Removes focus from the button.",
|
|
1286
|
-
"type": {},
|
|
1287
|
-
"inheritedFrom": {
|
|
1288
|
-
"name": "ButtonElement",
|
|
1289
|
-
"module": "src/base/button-element.ts"
|
|
1290
|
-
}
|
|
1291
|
-
},
|
|
1292
|
-
{
|
|
1293
|
-
"kind": "method",
|
|
1294
|
-
"name": "_handleBlur",
|
|
1295
|
-
"privacy": "protected",
|
|
1296
|
-
"type": {},
|
|
1297
|
-
"inheritedFrom": {
|
|
1298
|
-
"name": "ButtonElement",
|
|
1299
|
-
"module": "src/base/button-element.ts"
|
|
1300
|
-
}
|
|
1245
|
+
"default": "false",
|
|
1246
|
+
"description": "Indicates the link matches the current location of the page. Programmatically handled by SgdsBreadcrumb to set this prop to true for the last breadcrumb item",
|
|
1247
|
+
"attribute": "active",
|
|
1248
|
+
"reflects": true
|
|
1301
1249
|
},
|
|
1302
1250
|
{
|
|
1303
|
-
"kind": "
|
|
1304
|
-
"name": "
|
|
1305
|
-
"privacy": "
|
|
1306
|
-
"type": {}
|
|
1307
|
-
"inheritedFrom": {
|
|
1308
|
-
"name": "ButtonElement",
|
|
1309
|
-
"module": "src/base/button-element.ts"
|
|
1310
|
-
}
|
|
1251
|
+
"kind": "field",
|
|
1252
|
+
"name": "_preventNavigation",
|
|
1253
|
+
"privacy": "private",
|
|
1254
|
+
"type": {}
|
|
1311
1255
|
},
|
|
1312
1256
|
{
|
|
1313
1257
|
"kind": "method",
|
|
1314
|
-
"name": "
|
|
1315
|
-
"privacy": "protected",
|
|
1258
|
+
"name": "emit",
|
|
1316
1259
|
"parameters": [
|
|
1317
1260
|
{
|
|
1318
|
-
"name": "
|
|
1261
|
+
"name": "name",
|
|
1319
1262
|
"type": {
|
|
1320
|
-
"text": "
|
|
1263
|
+
"text": "string"
|
|
1321
1264
|
}
|
|
1322
|
-
}
|
|
1323
|
-
],
|
|
1324
|
-
"type": {},
|
|
1325
|
-
"inheritedFrom": {
|
|
1326
|
-
"name": "ButtonElement",
|
|
1327
|
-
"module": "src/base/button-element.ts"
|
|
1328
|
-
}
|
|
1329
|
-
},
|
|
1330
|
-
{
|
|
1331
|
-
"kind": "method",
|
|
1332
|
-
"name": "_assignSpinnerSize",
|
|
1333
|
-
"privacy": "protected",
|
|
1334
|
-
"parameters": [
|
|
1265
|
+
},
|
|
1335
1266
|
{
|
|
1336
|
-
"name": "
|
|
1267
|
+
"name": "options",
|
|
1268
|
+
"optional": true,
|
|
1337
1269
|
"type": {
|
|
1338
|
-
"text": "
|
|
1270
|
+
"text": "CustomEventInit<T>"
|
|
1339
1271
|
}
|
|
1340
1272
|
}
|
|
1341
1273
|
],
|
|
1274
|
+
"description": "Emits a custom event with more convenient defaults.",
|
|
1342
1275
|
"type": {},
|
|
1343
1276
|
"inheritedFrom": {
|
|
1344
|
-
"name": "
|
|
1345
|
-
"module": "src/base/
|
|
1277
|
+
"name": "SgdsElement",
|
|
1278
|
+
"module": "src/base/sgds-element.ts"
|
|
1346
1279
|
}
|
|
1347
1280
|
},
|
|
1348
1281
|
{
|
|
1349
1282
|
"kind": "method",
|
|
1350
|
-
"name": "
|
|
1351
|
-
"
|
|
1352
|
-
"return": {
|
|
1353
|
-
"type": {
|
|
1354
|
-
"text": "SpinnerTone"
|
|
1355
|
-
}
|
|
1356
|
-
},
|
|
1283
|
+
"name": "define",
|
|
1284
|
+
"static": true,
|
|
1357
1285
|
"parameters": [
|
|
1358
1286
|
{
|
|
1359
|
-
"name": "
|
|
1287
|
+
"name": "name",
|
|
1360
1288
|
"type": {
|
|
1361
|
-
"text": "
|
|
1289
|
+
"text": "string"
|
|
1362
1290
|
}
|
|
1363
1291
|
},
|
|
1364
1292
|
{
|
|
1365
|
-
"name": "
|
|
1293
|
+
"name": "elementConstructor",
|
|
1294
|
+
"default": "this"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"name": "options",
|
|
1298
|
+
"default": "{}",
|
|
1366
1299
|
"type": {
|
|
1367
|
-
"text": "
|
|
1300
|
+
"text": "ElementDefinitionOptions"
|
|
1368
1301
|
}
|
|
1369
1302
|
}
|
|
1370
1303
|
],
|
|
1371
1304
|
"type": {},
|
|
1372
1305
|
"inheritedFrom": {
|
|
1373
|
-
"name": "
|
|
1374
|
-
"module": "src/base/
|
|
1306
|
+
"name": "SgdsElement",
|
|
1307
|
+
"module": "src/base/sgds-element.ts"
|
|
1375
1308
|
}
|
|
1376
|
-
}
|
|
1309
|
+
}
|
|
1310
|
+
],
|
|
1311
|
+
"attributes": [
|
|
1377
1312
|
{
|
|
1378
|
-
"
|
|
1379
|
-
"
|
|
1380
|
-
|
|
1313
|
+
"name": "active",
|
|
1314
|
+
"type": {
|
|
1315
|
+
"text": "boolean"
|
|
1316
|
+
},
|
|
1317
|
+
"default": "false",
|
|
1318
|
+
"description": "Indicates the link matches the current location of the page. Programmatically handled by SgdsBreadcrumb to set this prop to true for the last breadcrumb item",
|
|
1319
|
+
"fieldName": "active"
|
|
1320
|
+
}
|
|
1321
|
+
],
|
|
1322
|
+
"superclass": {
|
|
1323
|
+
"name": "SgdsElement",
|
|
1324
|
+
"module": "/src/base/sgds-element"
|
|
1325
|
+
},
|
|
1326
|
+
"summary": "Breadcrumb Item are navigational links used in Breadcrumb component",
|
|
1327
|
+
"tagName": "sgds-breadcrumb-item",
|
|
1328
|
+
"customElement": true,
|
|
1329
|
+
"modulePath": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
1330
|
+
"cssProperties": [],
|
|
1331
|
+
"cssParts": [],
|
|
1332
|
+
"cssStates": [],
|
|
1333
|
+
"events": []
|
|
1334
|
+
}
|
|
1335
|
+
],
|
|
1336
|
+
"exports": [
|
|
1337
|
+
{
|
|
1338
|
+
"kind": "js",
|
|
1339
|
+
"name": "SgdsBreadcrumbItem",
|
|
1340
|
+
"declaration": {
|
|
1341
|
+
"name": "SgdsBreadcrumbItem",
|
|
1342
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
1343
|
+
}
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"kind": "js",
|
|
1347
|
+
"name": "default",
|
|
1348
|
+
"declaration": {
|
|
1349
|
+
"name": "SgdsBreadcrumbItem",
|
|
1350
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
]
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"kind": "javascript-module",
|
|
1357
|
+
"path": "src/components/Breadcrumb/sgds-breadcrumb.ts",
|
|
1358
|
+
"declarations": [
|
|
1359
|
+
{
|
|
1360
|
+
"kind": "class",
|
|
1361
|
+
"description": "",
|
|
1362
|
+
"name": "SgdsBreadcrumb",
|
|
1363
|
+
"slots": [
|
|
1364
|
+
{
|
|
1365
|
+
"description": "The slot to pass in custom elements of `SgdsBreadcrumbItems`.",
|
|
1366
|
+
"name": "default"
|
|
1367
|
+
}
|
|
1368
|
+
],
|
|
1369
|
+
"members": [
|
|
1370
|
+
{
|
|
1371
|
+
"kind": "field",
|
|
1372
|
+
"name": "dependencies",
|
|
1373
|
+
"type": {
|
|
1374
|
+
"text": "object"
|
|
1375
|
+
},
|
|
1376
|
+
"static": true,
|
|
1377
|
+
"default": "{\n \"sgds-overflow-menu\": SgdsOverflowMenu\n }"
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"kind": "field",
|
|
1381
|
+
"name": "ariaLabel",
|
|
1382
|
+
"type": {
|
|
1383
|
+
"text": "string"
|
|
1384
|
+
},
|
|
1385
|
+
"default": "\"breadcrumb\"",
|
|
1386
|
+
"description": "The aria-label of nav element within breadcrumb component.",
|
|
1387
|
+
"attribute": "ariaLabel"
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"kind": "method",
|
|
1391
|
+
"name": "_replaceExcessItemsWithDropdown",
|
|
1392
|
+
"privacy": "private",
|
|
1393
|
+
"parameters": [
|
|
1394
|
+
{
|
|
1395
|
+
"name": "items",
|
|
1396
|
+
"type": {
|
|
1397
|
+
"text": "SgdsBreadcrumbItem[]"
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
],
|
|
1401
|
+
"description": "creates `<sgds-breadcrumb-item>\n <sgds-overflow-menu>\n <sgds-dropdown-item></sgds-dropdown-item>\n ...\n </sgds-overflow-menu>\n <sgds-breadcrumb-item>`",
|
|
1402
|
+
"type": {}
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"kind": "method",
|
|
1406
|
+
"name": "_handleSlotChange",
|
|
1407
|
+
"privacy": "private",
|
|
1408
|
+
"parameters": [
|
|
1409
|
+
{
|
|
1410
|
+
"name": "e",
|
|
1411
|
+
"type": {
|
|
1412
|
+
"text": "Event"
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
],
|
|
1416
|
+
"type": {}
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"kind": "method",
|
|
1420
|
+
"name": "emit",
|
|
1421
|
+
"parameters": [
|
|
1381
1422
|
{
|
|
1382
1423
|
"name": "name",
|
|
1383
1424
|
"type": {
|
|
@@ -1429,397 +1470,495 @@
|
|
|
1429
1470
|
}
|
|
1430
1471
|
}
|
|
1431
1472
|
],
|
|
1432
|
-
"
|
|
1473
|
+
"attributes": [
|
|
1433
1474
|
{
|
|
1434
|
-
"
|
|
1435
|
-
"
|
|
1436
|
-
|
|
1475
|
+
"name": "ariaLabel",
|
|
1476
|
+
"type": {
|
|
1477
|
+
"text": "string"
|
|
1478
|
+
},
|
|
1479
|
+
"default": "\"breadcrumb\"",
|
|
1480
|
+
"description": "The aria-label of nav element within breadcrumb component.",
|
|
1481
|
+
"fieldName": "ariaLabel"
|
|
1482
|
+
}
|
|
1483
|
+
],
|
|
1484
|
+
"superclass": {
|
|
1485
|
+
"name": "SgdsElement",
|
|
1486
|
+
"module": "/src/base/sgds-element"
|
|
1487
|
+
},
|
|
1488
|
+
"summary": "Breadcrumbs help users to navigate and understand where they are on the current website or service.",
|
|
1489
|
+
"tagName": "sgds-breadcrumb",
|
|
1490
|
+
"customElement": true,
|
|
1491
|
+
"modulePath": "src/components/Breadcrumb/sgds-breadcrumb.ts",
|
|
1492
|
+
"cssProperties": [],
|
|
1493
|
+
"cssParts": [],
|
|
1494
|
+
"cssStates": [],
|
|
1495
|
+
"events": []
|
|
1496
|
+
}
|
|
1497
|
+
],
|
|
1498
|
+
"exports": [
|
|
1499
|
+
{
|
|
1500
|
+
"kind": "js",
|
|
1501
|
+
"name": "SgdsBreadcrumb",
|
|
1502
|
+
"declaration": {
|
|
1503
|
+
"name": "SgdsBreadcrumb",
|
|
1504
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb.ts"
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"kind": "js",
|
|
1509
|
+
"name": "default",
|
|
1510
|
+
"declaration": {
|
|
1511
|
+
"name": "SgdsBreadcrumb",
|
|
1512
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb.ts"
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
]
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"kind": "javascript-module",
|
|
1519
|
+
"path": "src/components/Button/sgds-button.ts",
|
|
1520
|
+
"declarations": [
|
|
1521
|
+
{
|
|
1522
|
+
"kind": "class",
|
|
1523
|
+
"description": "",
|
|
1524
|
+
"name": "SgdsButton",
|
|
1525
|
+
"slots": [
|
|
1526
|
+
{
|
|
1527
|
+
"description": "The button's label.",
|
|
1528
|
+
"name": "default"
|
|
1437
1529
|
},
|
|
1438
1530
|
{
|
|
1439
|
-
"description": "
|
|
1440
|
-
"name": "
|
|
1441
|
-
|
|
1531
|
+
"description": "The slot for icon to the left of the button text",
|
|
1532
|
+
"name": "leftIcon"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"description": "The slot for icon to the right of the button text",
|
|
1536
|
+
"name": "rightIcon"
|
|
1442
1537
|
}
|
|
1443
1538
|
],
|
|
1444
|
-
"
|
|
1539
|
+
"members": [
|
|
1445
1540
|
{
|
|
1541
|
+
"kind": "field",
|
|
1446
1542
|
"name": "name",
|
|
1447
1543
|
"type": {
|
|
1448
1544
|
"text": "string"
|
|
1449
1545
|
},
|
|
1450
1546
|
"description": "The name of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
1451
|
-
"
|
|
1547
|
+
"attribute": "name",
|
|
1548
|
+
"reflects": true
|
|
1452
1549
|
},
|
|
1453
1550
|
{
|
|
1551
|
+
"kind": "field",
|
|
1454
1552
|
"name": "value",
|
|
1455
1553
|
"type": {
|
|
1456
1554
|
"text": "string"
|
|
1457
1555
|
},
|
|
1458
1556
|
"description": "The value of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
1459
|
-
"
|
|
1557
|
+
"attribute": "value",
|
|
1558
|
+
"reflects": true
|
|
1460
1559
|
},
|
|
1461
1560
|
{
|
|
1561
|
+
"kind": "field",
|
|
1462
1562
|
"name": "type",
|
|
1463
1563
|
"type": {
|
|
1464
1564
|
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1465
1565
|
},
|
|
1466
1566
|
"default": "\"button\"",
|
|
1467
1567
|
"description": "The behavior of the button with default as `type='button', `reset` resets all the controls to their initial values and `submit` submits the form data to the server",
|
|
1468
|
-
"
|
|
1568
|
+
"attribute": "type",
|
|
1569
|
+
"reflects": true
|
|
1469
1570
|
},
|
|
1470
1571
|
{
|
|
1572
|
+
"kind": "field",
|
|
1471
1573
|
"name": "form",
|
|
1472
1574
|
"type": {
|
|
1473
1575
|
"text": "string"
|
|
1474
1576
|
},
|
|
1475
1577
|
"description": "The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\nvalue of this attribute must be an id of a form in the same document or shadow root as the button.",
|
|
1476
|
-
"
|
|
1578
|
+
"attribute": "form",
|
|
1579
|
+
"reflects": true
|
|
1477
1580
|
},
|
|
1478
1581
|
{
|
|
1479
|
-
"
|
|
1582
|
+
"kind": "field",
|
|
1583
|
+
"name": "formAction",
|
|
1480
1584
|
"type": {
|
|
1481
1585
|
"text": "string"
|
|
1482
1586
|
},
|
|
1483
1587
|
"description": "Used to override the form owner's `action` attribute.",
|
|
1484
|
-
"
|
|
1588
|
+
"attribute": "formaction",
|
|
1589
|
+
"reflects": true
|
|
1485
1590
|
},
|
|
1486
1591
|
{
|
|
1487
|
-
"
|
|
1592
|
+
"kind": "field",
|
|
1593
|
+
"name": "formMethod",
|
|
1488
1594
|
"type": {
|
|
1489
1595
|
"text": "\"post\" | \"get\""
|
|
1490
1596
|
},
|
|
1491
1597
|
"description": "Used to override the form owner's `method` attribute.",
|
|
1492
|
-
"
|
|
1598
|
+
"attribute": "formmethod",
|
|
1599
|
+
"reflects": true
|
|
1493
1600
|
},
|
|
1494
1601
|
{
|
|
1495
|
-
"
|
|
1602
|
+
"kind": "field",
|
|
1603
|
+
"name": "formNoValidate",
|
|
1496
1604
|
"type": {
|
|
1497
1605
|
"text": "boolean"
|
|
1498
1606
|
},
|
|
1499
1607
|
"description": "Used to override the form owner's `novalidate` attribute.",
|
|
1500
|
-
"
|
|
1608
|
+
"attribute": "formnovalidate",
|
|
1609
|
+
"reflects": true
|
|
1501
1610
|
},
|
|
1502
1611
|
{
|
|
1503
|
-
"
|
|
1612
|
+
"kind": "field",
|
|
1613
|
+
"name": "formTarget",
|
|
1504
1614
|
"type": {
|
|
1505
1615
|
"text": "| \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | string"
|
|
1506
1616
|
},
|
|
1507
1617
|
"description": "Used to override the form owner's `target` attribute.",
|
|
1508
|
-
"
|
|
1618
|
+
"attribute": "formtarget",
|
|
1619
|
+
"reflects": true
|
|
1509
1620
|
},
|
|
1510
1621
|
{
|
|
1622
|
+
"kind": "field",
|
|
1511
1623
|
"name": "fullWidth",
|
|
1512
1624
|
"type": {
|
|
1513
1625
|
"text": "boolean"
|
|
1514
1626
|
},
|
|
1515
1627
|
"default": "false",
|
|
1516
1628
|
"description": "When set, the button will be in full width.",
|
|
1517
|
-
"
|
|
1629
|
+
"attribute": "fullWidth",
|
|
1630
|
+
"reflects": true
|
|
1518
1631
|
},
|
|
1519
1632
|
{
|
|
1633
|
+
"kind": "field",
|
|
1520
1634
|
"name": "hasLeftIconSlot",
|
|
1521
1635
|
"type": {
|
|
1522
1636
|
"text": "boolean"
|
|
1523
1637
|
},
|
|
1524
1638
|
"default": "false",
|
|
1525
1639
|
"description": "Used only for SSR to indicate the presence of the `leftIcon` slot.",
|
|
1526
|
-
"
|
|
1640
|
+
"attribute": "hasLeftIconSlot"
|
|
1527
1641
|
},
|
|
1528
1642
|
{
|
|
1643
|
+
"kind": "field",
|
|
1529
1644
|
"name": "hasRightIconSlot",
|
|
1530
1645
|
"type": {
|
|
1531
1646
|
"text": "boolean"
|
|
1532
1647
|
},
|
|
1533
1648
|
"default": "false",
|
|
1534
1649
|
"description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
|
|
1535
|
-
"
|
|
1650
|
+
"attribute": "hasRightIconSlot"
|
|
1536
1651
|
},
|
|
1537
1652
|
{
|
|
1538
|
-
"
|
|
1539
|
-
"
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
"
|
|
1543
|
-
|
|
1544
|
-
|
|
1653
|
+
"kind": "field",
|
|
1654
|
+
"name": "hasSlotController",
|
|
1655
|
+
"privacy": "private",
|
|
1656
|
+
"default": "new HasSlotController(this, \"leftIcon\", \"rightIcon\")",
|
|
1657
|
+
"type": {}
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"kind": "method",
|
|
1661
|
+
"name": "_handleClick",
|
|
1662
|
+
"privacy": "protected",
|
|
1663
|
+
"parameters": [
|
|
1664
|
+
{
|
|
1665
|
+
"name": "event",
|
|
1666
|
+
"type": {
|
|
1667
|
+
"text": "MouseEvent"
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
],
|
|
1671
|
+
"type": {},
|
|
1545
1672
|
"inheritedFrom": {
|
|
1546
1673
|
"name": "ButtonElement",
|
|
1547
1674
|
"module": "src/base/button-element.ts"
|
|
1548
1675
|
}
|
|
1549
1676
|
},
|
|
1550
1677
|
{
|
|
1551
|
-
"
|
|
1678
|
+
"kind": "field",
|
|
1679
|
+
"name": "_clickHandler",
|
|
1680
|
+
"privacy": "private",
|
|
1681
|
+
"type": {}
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
"kind": "field",
|
|
1685
|
+
"name": "variant",
|
|
1552
1686
|
"type": {
|
|
1553
|
-
"text": "
|
|
1687
|
+
"text": "\"primary\" | \"outline\" | \"ghost\" | \"danger\""
|
|
1688
|
+
},
|
|
1689
|
+
"default": "\"primary\"",
|
|
1690
|
+
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. The `danger` value is deprecated since v3.5.6 — use `variant=\"primary\"` with `tone=\"danger\"` instead.",
|
|
1691
|
+
"attribute": "variant",
|
|
1692
|
+
"reflects": true,
|
|
1693
|
+
"inheritedFrom": {
|
|
1694
|
+
"name": "ButtonElement",
|
|
1695
|
+
"module": "src/base/button-element.ts"
|
|
1696
|
+
}
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"kind": "field",
|
|
1700
|
+
"name": "tone",
|
|
1701
|
+
"type": {
|
|
1702
|
+
"text": "\"brand\" | \"danger\" | \"fixed-light\" | \"neutral\""
|
|
1554
1703
|
},
|
|
1555
1704
|
"default": "\"brand\"",
|
|
1556
1705
|
"description": "Sets the visual colour of the button: `brand`, `danger`, `fixed-light`, `neutral`",
|
|
1557
|
-
"
|
|
1706
|
+
"attribute": "tone",
|
|
1707
|
+
"reflects": true,
|
|
1558
1708
|
"inheritedFrom": {
|
|
1559
1709
|
"name": "ButtonElement",
|
|
1560
1710
|
"module": "src/base/button-element.ts"
|
|
1561
1711
|
}
|
|
1562
1712
|
},
|
|
1563
1713
|
{
|
|
1714
|
+
"kind": "field",
|
|
1564
1715
|
"name": "size",
|
|
1565
1716
|
"type": {
|
|
1566
1717
|
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
1567
1718
|
},
|
|
1568
1719
|
"default": "\"md\"",
|
|
1569
1720
|
"description": "Specifies a small, medium or large button, the size is medium by default.",
|
|
1570
|
-
"
|
|
1721
|
+
"attribute": "size",
|
|
1722
|
+
"reflects": true,
|
|
1571
1723
|
"inheritedFrom": {
|
|
1572
1724
|
"name": "ButtonElement",
|
|
1573
1725
|
"module": "src/base/button-element.ts"
|
|
1574
1726
|
}
|
|
1575
1727
|
},
|
|
1576
1728
|
{
|
|
1729
|
+
"kind": "field",
|
|
1577
1730
|
"name": "active",
|
|
1578
1731
|
"type": {
|
|
1579
1732
|
"text": "boolean"
|
|
1580
1733
|
},
|
|
1581
1734
|
"default": "false",
|
|
1582
1735
|
"description": "Manually set the visual state of the button to `:active`",
|
|
1583
|
-
"
|
|
1736
|
+
"attribute": "active",
|
|
1737
|
+
"reflects": true,
|
|
1584
1738
|
"inheritedFrom": {
|
|
1585
1739
|
"name": "ButtonElement",
|
|
1586
1740
|
"module": "src/base/button-element.ts"
|
|
1587
1741
|
}
|
|
1588
1742
|
},
|
|
1589
1743
|
{
|
|
1744
|
+
"kind": "field",
|
|
1590
1745
|
"name": "disabled",
|
|
1591
1746
|
"type": {
|
|
1592
1747
|
"text": "boolean"
|
|
1593
1748
|
},
|
|
1594
1749
|
"default": "false",
|
|
1595
1750
|
"description": "The disabled state of the button",
|
|
1596
|
-
"
|
|
1751
|
+
"attribute": "disabled",
|
|
1752
|
+
"reflects": true,
|
|
1597
1753
|
"inheritedFrom": {
|
|
1598
1754
|
"name": "ButtonElement",
|
|
1599
1755
|
"module": "src/base/button-element.ts"
|
|
1600
1756
|
}
|
|
1601
1757
|
},
|
|
1602
1758
|
{
|
|
1759
|
+
"kind": "field",
|
|
1603
1760
|
"name": "href",
|
|
1604
1761
|
"type": {
|
|
1605
1762
|
"text": "string"
|
|
1606
1763
|
},
|
|
1607
1764
|
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
1608
|
-
"
|
|
1765
|
+
"attribute": "href",
|
|
1766
|
+
"reflects": true,
|
|
1609
1767
|
"inheritedFrom": {
|
|
1610
1768
|
"name": "ButtonElement",
|
|
1611
1769
|
"module": "src/base/button-element.ts"
|
|
1612
1770
|
}
|
|
1613
1771
|
},
|
|
1614
1772
|
{
|
|
1773
|
+
"kind": "field",
|
|
1615
1774
|
"name": "target",
|
|
1616
1775
|
"type": {
|
|
1617
1776
|
"text": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\""
|
|
1618
1777
|
},
|
|
1619
1778
|
"default": "\"_self\"",
|
|
1620
1779
|
"description": "Where to display the linked URL, as the name for a browsing context. Forwards to the HTMLAnchor target attribute",
|
|
1621
|
-
"
|
|
1780
|
+
"attribute": "target",
|
|
1781
|
+
"reflects": true,
|
|
1622
1782
|
"inheritedFrom": {
|
|
1623
1783
|
"name": "ButtonElement",
|
|
1624
1784
|
"module": "src/base/button-element.ts"
|
|
1625
1785
|
}
|
|
1626
1786
|
},
|
|
1627
1787
|
{
|
|
1788
|
+
"kind": "field",
|
|
1628
1789
|
"name": "download",
|
|
1629
1790
|
"type": {
|
|
1630
1791
|
"text": "string"
|
|
1631
1792
|
},
|
|
1632
1793
|
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
1633
|
-
"
|
|
1794
|
+
"attribute": "download",
|
|
1795
|
+
"reflects": true,
|
|
1634
1796
|
"inheritedFrom": {
|
|
1635
1797
|
"name": "ButtonElement",
|
|
1636
1798
|
"module": "src/base/button-element.ts"
|
|
1637
1799
|
}
|
|
1638
1800
|
},
|
|
1639
1801
|
{
|
|
1802
|
+
"kind": "field",
|
|
1640
1803
|
"name": "ariaLabel",
|
|
1641
1804
|
"type": {
|
|
1642
1805
|
"text": "string"
|
|
1643
1806
|
},
|
|
1644
1807
|
"description": "The aria-label attribute to passed to button element when necessary",
|
|
1645
|
-
"
|
|
1808
|
+
"attribute": "ariaLabel",
|
|
1646
1809
|
"inheritedFrom": {
|
|
1647
1810
|
"name": "ButtonElement",
|
|
1648
1811
|
"module": "src/base/button-element.ts"
|
|
1649
1812
|
}
|
|
1650
1813
|
},
|
|
1651
1814
|
{
|
|
1815
|
+
"kind": "field",
|
|
1652
1816
|
"name": "loading",
|
|
1653
1817
|
"type": {
|
|
1654
1818
|
"text": "boolean"
|
|
1655
1819
|
},
|
|
1656
1820
|
"description": "When true, shows a loading spinner",
|
|
1657
|
-
"
|
|
1821
|
+
"attribute": "loading",
|
|
1658
1822
|
"inheritedFrom": {
|
|
1659
1823
|
"name": "ButtonElement",
|
|
1660
1824
|
"module": "src/base/button-element.ts"
|
|
1661
1825
|
}
|
|
1662
|
-
}
|
|
1663
|
-
],
|
|
1664
|
-
"superclass": {
|
|
1665
|
-
"name": "ButtonElement",
|
|
1666
|
-
"module": "/src/base/button-element"
|
|
1667
|
-
},
|
|
1668
|
-
"summary": "Custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.",
|
|
1669
|
-
"tagName": "sgds-button",
|
|
1670
|
-
"customElement": true,
|
|
1671
|
-
"modulePath": "src/components/Button/sgds-button.ts",
|
|
1672
|
-
"cssProperties": [],
|
|
1673
|
-
"cssParts": [],
|
|
1674
|
-
"cssStates": []
|
|
1675
|
-
}
|
|
1676
|
-
],
|
|
1677
|
-
"exports": [
|
|
1678
|
-
{
|
|
1679
|
-
"kind": "js",
|
|
1680
|
-
"name": "SgdsButton",
|
|
1681
|
-
"declaration": {
|
|
1682
|
-
"name": "SgdsButton",
|
|
1683
|
-
"module": "src/components/Button/sgds-button.ts"
|
|
1684
|
-
}
|
|
1685
|
-
},
|
|
1686
|
-
{
|
|
1687
|
-
"kind": "js",
|
|
1688
|
-
"name": "default",
|
|
1689
|
-
"declaration": {
|
|
1690
|
-
"name": "SgdsButton",
|
|
1691
|
-
"module": "src/components/Button/sgds-button.ts"
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
|
-
]
|
|
1695
|
-
},
|
|
1696
|
-
{
|
|
1697
|
-
"kind": "javascript-module",
|
|
1698
|
-
"path": "src/components/Badge/sgds-badge.ts",
|
|
1699
|
-
"declarations": [
|
|
1700
|
-
{
|
|
1701
|
-
"kind": "class",
|
|
1702
|
-
"description": "",
|
|
1703
|
-
"name": "SgdsBadge",
|
|
1704
|
-
"slots": [
|
|
1705
|
-
{
|
|
1706
|
-
"description": "slot for badge",
|
|
1707
|
-
"name": "default"
|
|
1708
|
-
},
|
|
1709
|
-
{
|
|
1710
|
-
"description": "The slot for icon to the left of the badge text",
|
|
1711
|
-
"name": "icon"
|
|
1712
|
-
}
|
|
1713
|
-
],
|
|
1714
|
-
"members": [
|
|
1715
|
-
{
|
|
1716
|
-
"kind": "field",
|
|
1717
|
-
"name": "show",
|
|
1718
|
-
"type": {
|
|
1719
|
-
"text": "boolean"
|
|
1720
|
-
},
|
|
1721
|
-
"default": "false",
|
|
1722
|
-
"description": "Controls the appearance of the dismissible badge. This prop only applies when dismissible is true",
|
|
1723
|
-
"attribute": "show",
|
|
1724
|
-
"reflects": true
|
|
1725
|
-
},
|
|
1726
|
-
{
|
|
1727
|
-
"kind": "field",
|
|
1728
|
-
"name": "variant",
|
|
1729
|
-
"type": {
|
|
1730
|
-
"text": "\"primary\" | \"accent\" | \"success\" | \"danger\" | \"warning\" | \"cyan\" | \"purple\" | \"neutral\" | \"white\" | \"info\""
|
|
1731
|
-
},
|
|
1732
|
-
"default": "\"primary\"",
|
|
1733
|
-
"description": "One or more badge variant combinations.\nVariants include: `primary`, `accent`, `success`, `danger`, `warning`, `cyan`, `purple`, `neutral`, `white`, `info`.\n\n(@deprecated) The `info` variant is deprecated. Use `primary` instead.",
|
|
1734
|
-
"attribute": "variant",
|
|
1735
|
-
"reflects": true
|
|
1736
|
-
},
|
|
1737
|
-
{
|
|
1738
|
-
"kind": "field",
|
|
1739
|
-
"name": "outlined",
|
|
1740
|
-
"type": {
|
|
1741
|
-
"text": "boolean"
|
|
1742
|
-
},
|
|
1743
|
-
"default": "false",
|
|
1744
|
-
"description": "Manually set the outlined state to false",
|
|
1745
|
-
"attribute": "outlined",
|
|
1746
|
-
"reflects": true
|
|
1747
1826
|
},
|
|
1748
1827
|
{
|
|
1749
|
-
"kind": "
|
|
1750
|
-
"name": "
|
|
1751
|
-
"
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1828
|
+
"kind": "method",
|
|
1829
|
+
"name": "focus",
|
|
1830
|
+
"privacy": "public",
|
|
1831
|
+
"parameters": [
|
|
1832
|
+
{
|
|
1833
|
+
"name": "options",
|
|
1834
|
+
"optional": true,
|
|
1835
|
+
"type": {
|
|
1836
|
+
"text": "FocusOptions"
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
],
|
|
1840
|
+
"description": "Sets focus on the button.",
|
|
1841
|
+
"type": {},
|
|
1842
|
+
"inheritedFrom": {
|
|
1843
|
+
"name": "ButtonElement",
|
|
1844
|
+
"module": "src/base/button-element.ts"
|
|
1845
|
+
}
|
|
1758
1846
|
},
|
|
1759
1847
|
{
|
|
1760
|
-
"kind": "
|
|
1761
|
-
"name": "
|
|
1762
|
-
"
|
|
1763
|
-
|
|
1764
|
-
},
|
|
1765
|
-
"
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1848
|
+
"kind": "method",
|
|
1849
|
+
"name": "click",
|
|
1850
|
+
"privacy": "public",
|
|
1851
|
+
"description": "Simulates a click on the button.",
|
|
1852
|
+
"type": {},
|
|
1853
|
+
"inheritedFrom": {
|
|
1854
|
+
"name": "ButtonElement",
|
|
1855
|
+
"module": "src/base/button-element.ts"
|
|
1856
|
+
}
|
|
1769
1857
|
},
|
|
1770
1858
|
{
|
|
1771
|
-
"kind": "
|
|
1772
|
-
"name": "
|
|
1773
|
-
"
|
|
1774
|
-
|
|
1775
|
-
},
|
|
1776
|
-
"
|
|
1777
|
-
|
|
1859
|
+
"kind": "method",
|
|
1860
|
+
"name": "blur",
|
|
1861
|
+
"privacy": "public",
|
|
1862
|
+
"description": "Removes focus from the button.",
|
|
1863
|
+
"type": {},
|
|
1864
|
+
"inheritedFrom": {
|
|
1865
|
+
"name": "ButtonElement",
|
|
1866
|
+
"module": "src/base/button-element.ts"
|
|
1867
|
+
}
|
|
1778
1868
|
},
|
|
1779
1869
|
{
|
|
1780
|
-
"kind": "
|
|
1781
|
-
"name": "
|
|
1782
|
-
"
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1870
|
+
"kind": "method",
|
|
1871
|
+
"name": "_handleBlur",
|
|
1872
|
+
"privacy": "protected",
|
|
1873
|
+
"type": {},
|
|
1874
|
+
"inheritedFrom": {
|
|
1875
|
+
"name": "ButtonElement",
|
|
1876
|
+
"module": "src/base/button-element.ts"
|
|
1877
|
+
}
|
|
1787
1878
|
},
|
|
1788
1879
|
{
|
|
1789
1880
|
"kind": "method",
|
|
1790
|
-
"name": "
|
|
1791
|
-
"privacy": "
|
|
1792
|
-
"
|
|
1793
|
-
"
|
|
1881
|
+
"name": "_handleFocus",
|
|
1882
|
+
"privacy": "protected",
|
|
1883
|
+
"type": {},
|
|
1884
|
+
"inheritedFrom": {
|
|
1885
|
+
"name": "ButtonElement",
|
|
1886
|
+
"module": "src/base/button-element.ts"
|
|
1887
|
+
}
|
|
1794
1888
|
},
|
|
1795
1889
|
{
|
|
1796
1890
|
"kind": "method",
|
|
1797
|
-
"name": "
|
|
1798
|
-
"privacy": "
|
|
1891
|
+
"name": "_handleKeydown",
|
|
1892
|
+
"privacy": "protected",
|
|
1799
1893
|
"parameters": [
|
|
1800
1894
|
{
|
|
1801
|
-
"name": "
|
|
1895
|
+
"name": "event",
|
|
1802
1896
|
"type": {
|
|
1803
|
-
"text": "
|
|
1897
|
+
"text": "KeyboardEvent"
|
|
1804
1898
|
}
|
|
1805
1899
|
}
|
|
1806
1900
|
],
|
|
1807
|
-
"type": {}
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
"privacy": "private",
|
|
1813
|
-
"type": {}
|
|
1901
|
+
"type": {},
|
|
1902
|
+
"inheritedFrom": {
|
|
1903
|
+
"name": "ButtonElement",
|
|
1904
|
+
"module": "src/base/button-element.ts"
|
|
1905
|
+
}
|
|
1814
1906
|
},
|
|
1815
1907
|
{
|
|
1816
1908
|
"kind": "method",
|
|
1817
|
-
"name": "
|
|
1909
|
+
"name": "_assignSpinnerSize",
|
|
1910
|
+
"privacy": "protected",
|
|
1818
1911
|
"parameters": [
|
|
1819
1912
|
{
|
|
1820
|
-
"name": "
|
|
1913
|
+
"name": "buttonSize",
|
|
1821
1914
|
"type": {
|
|
1822
|
-
"text": "
|
|
1915
|
+
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
],
|
|
1919
|
+
"type": {},
|
|
1920
|
+
"inheritedFrom": {
|
|
1921
|
+
"name": "ButtonElement",
|
|
1922
|
+
"module": "src/base/button-element.ts"
|
|
1923
|
+
}
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
"kind": "method",
|
|
1927
|
+
"name": "_assignSpinnerTone",
|
|
1928
|
+
"privacy": "protected",
|
|
1929
|
+
"return": {
|
|
1930
|
+
"type": {
|
|
1931
|
+
"text": "SpinnerTone"
|
|
1932
|
+
}
|
|
1933
|
+
},
|
|
1934
|
+
"parameters": [
|
|
1935
|
+
{
|
|
1936
|
+
"name": "buttonTone",
|
|
1937
|
+
"type": {
|
|
1938
|
+
"text": "ButtonTone"
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
"name": "buttonVariant",
|
|
1943
|
+
"type": {
|
|
1944
|
+
"text": "ButtonVariant"
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
],
|
|
1948
|
+
"type": {},
|
|
1949
|
+
"inheritedFrom": {
|
|
1950
|
+
"name": "ButtonElement",
|
|
1951
|
+
"module": "src/base/button-element.ts"
|
|
1952
|
+
}
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"kind": "method",
|
|
1956
|
+
"name": "emit",
|
|
1957
|
+
"parameters": [
|
|
1958
|
+
{
|
|
1959
|
+
"name": "name",
|
|
1960
|
+
"type": {
|
|
1961
|
+
"text": "string"
|
|
1823
1962
|
}
|
|
1824
1963
|
},
|
|
1825
1964
|
{
|
|
@@ -1869,784 +2008,540 @@
|
|
|
1869
2008
|
],
|
|
1870
2009
|
"events": [
|
|
1871
2010
|
{
|
|
1872
|
-
"description": "Emitted when the
|
|
1873
|
-
"name": "sgds-
|
|
1874
|
-
"reactName": "
|
|
1875
|
-
},
|
|
1876
|
-
{
|
|
1877
|
-
"description": "Emitted when the badge is starting to close but has not closed.",
|
|
1878
|
-
"name": "sgds-hide",
|
|
1879
|
-
"reactName": "onSgdsHide"
|
|
1880
|
-
},
|
|
1881
|
-
{
|
|
1882
|
-
"description": "Emitted after the badge has appeared",
|
|
1883
|
-
"name": "sgds-after-show",
|
|
1884
|
-
"reactName": "onSgdsAfterShow"
|
|
2011
|
+
"description": "Emitted when the button is blurred.",
|
|
2012
|
+
"name": "sgds-blur",
|
|
2013
|
+
"reactName": "onSgdsBlur"
|
|
1885
2014
|
},
|
|
1886
2015
|
{
|
|
1887
|
-
"description": "Emitted
|
|
1888
|
-
"name": "sgds-
|
|
1889
|
-
"reactName": "
|
|
2016
|
+
"description": "Emitted when the button is focused.",
|
|
2017
|
+
"name": "sgds-focus",
|
|
2018
|
+
"reactName": "onSgdsFocus"
|
|
1890
2019
|
}
|
|
1891
2020
|
],
|
|
1892
2021
|
"attributes": [
|
|
1893
2022
|
{
|
|
1894
|
-
"name": "
|
|
2023
|
+
"name": "name",
|
|
1895
2024
|
"type": {
|
|
1896
|
-
"text": "
|
|
2025
|
+
"text": "string"
|
|
1897
2026
|
},
|
|
1898
|
-
"
|
|
1899
|
-
"
|
|
1900
|
-
"fieldName": "show"
|
|
2027
|
+
"description": "The name of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
2028
|
+
"fieldName": "name"
|
|
1901
2029
|
},
|
|
1902
2030
|
{
|
|
1903
|
-
"name": "
|
|
2031
|
+
"name": "value",
|
|
1904
2032
|
"type": {
|
|
1905
|
-
"text": "
|
|
2033
|
+
"text": "string"
|
|
1906
2034
|
},
|
|
1907
|
-
"
|
|
1908
|
-
"
|
|
1909
|
-
"fieldName": "variant"
|
|
2035
|
+
"description": "The value of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
2036
|
+
"fieldName": "value"
|
|
1910
2037
|
},
|
|
1911
2038
|
{
|
|
1912
|
-
"name": "
|
|
2039
|
+
"name": "type",
|
|
1913
2040
|
"type": {
|
|
1914
|
-
"text": "
|
|
2041
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1915
2042
|
},
|
|
1916
|
-
"default": "
|
|
1917
|
-
"description": "
|
|
1918
|
-
"fieldName": "
|
|
2043
|
+
"default": "\"button\"",
|
|
2044
|
+
"description": "The behavior of the button with default as `type='button', `reset` resets all the controls to their initial values and `submit` submits the form data to the server",
|
|
2045
|
+
"fieldName": "type"
|
|
1919
2046
|
},
|
|
1920
2047
|
{
|
|
1921
|
-
"name": "
|
|
2048
|
+
"name": "form",
|
|
1922
2049
|
"type": {
|
|
1923
|
-
"text": "
|
|
2050
|
+
"text": "string"
|
|
1924
2051
|
},
|
|
1925
|
-
"
|
|
1926
|
-
"
|
|
1927
|
-
"fieldName": "dismissible"
|
|
2052
|
+
"description": "The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\nvalue of this attribute must be an id of a form in the same document or shadow root as the button.",
|
|
2053
|
+
"fieldName": "form"
|
|
1928
2054
|
},
|
|
1929
2055
|
{
|
|
1930
|
-
"name": "
|
|
2056
|
+
"name": "formaction",
|
|
1931
2057
|
"type": {
|
|
1932
|
-
"text": "
|
|
2058
|
+
"text": "string"
|
|
1933
2059
|
},
|
|
1934
|
-
"
|
|
1935
|
-
"
|
|
1936
|
-
"fieldName": "fullWidth"
|
|
1937
|
-
}
|
|
1938
|
-
],
|
|
1939
|
-
"superclass": {
|
|
1940
|
-
"name": "SgdsElement",
|
|
1941
|
-
"module": "/src/base/sgds-element"
|
|
1942
|
-
},
|
|
1943
|
-
"summary": "Badges can be used to highlight important bits of information such as labels, notifications & status.\nWhen the text exceeds the width, it will be truncated with a tooltip that will be displayed on hover.",
|
|
1944
|
-
"tagName": "sgds-badge",
|
|
1945
|
-
"customElement": true,
|
|
1946
|
-
"modulePath": "src/components/Badge/sgds-badge.ts",
|
|
1947
|
-
"cssProperties": [],
|
|
1948
|
-
"cssParts": [],
|
|
1949
|
-
"cssStates": []
|
|
1950
|
-
}
|
|
1951
|
-
],
|
|
1952
|
-
"exports": [
|
|
1953
|
-
{
|
|
1954
|
-
"kind": "js",
|
|
1955
|
-
"name": "SgdsBadge",
|
|
1956
|
-
"declaration": {
|
|
1957
|
-
"name": "SgdsBadge",
|
|
1958
|
-
"module": "src/components/Badge/sgds-badge.ts"
|
|
1959
|
-
}
|
|
1960
|
-
},
|
|
1961
|
-
{
|
|
1962
|
-
"kind": "js",
|
|
1963
|
-
"name": "default",
|
|
1964
|
-
"declaration": {
|
|
1965
|
-
"name": "SgdsBadge",
|
|
1966
|
-
"module": "src/components/Badge/sgds-badge.ts"
|
|
1967
|
-
}
|
|
1968
|
-
}
|
|
1969
|
-
]
|
|
1970
|
-
},
|
|
1971
|
-
{
|
|
1972
|
-
"kind": "javascript-module",
|
|
1973
|
-
"path": "src/components/Card/sgds-card.ts",
|
|
1974
|
-
"declarations": [
|
|
1975
|
-
{
|
|
1976
|
-
"kind": "class",
|
|
1977
|
-
"description": "",
|
|
1978
|
-
"name": "SgdsCard",
|
|
1979
|
-
"slots": [
|
|
1980
|
-
{
|
|
1981
|
-
"description": "The content area of the card, placed directly under the title. Accepts any HTML or custom elements.",
|
|
1982
|
-
"name": "default"
|
|
1983
|
-
},
|
|
1984
|
-
{
|
|
1985
|
-
"description": "Accepts an element for an overflow or contextual menu, positioned at the top-right corner of the card. Typically used for action menus or dropdowns.",
|
|
1986
|
-
"name": "menu"
|
|
1987
|
-
},
|
|
1988
|
-
{
|
|
1989
|
-
"description": "Accepts an element to be displayed above the card content. When used, it overrides image and icon slot content.",
|
|
1990
|
-
"name": "upper"
|
|
1991
|
-
},
|
|
1992
|
-
{
|
|
1993
|
-
"description": "Accepts an image or svg element of the card. Only a single element is allowed to be passed in.",
|
|
1994
|
-
"name": "image"
|
|
1995
|
-
},
|
|
1996
|
-
{
|
|
1997
|
-
"description": "Accepts an icon element to visually represent the card. Only a single element is allowed to be passed in.",
|
|
1998
|
-
"name": "icon"
|
|
1999
|
-
},
|
|
2000
|
-
{
|
|
2001
|
-
"description": "The subtitle of the card",
|
|
2002
|
-
"name": "subtitle"
|
|
2003
|
-
},
|
|
2004
|
-
{
|
|
2005
|
-
"description": "The title of the card",
|
|
2006
|
-
"name": "title"
|
|
2007
|
-
},
|
|
2008
|
-
{
|
|
2009
|
-
"description": "The paragrapher text of the card",
|
|
2010
|
-
"name": "description"
|
|
2011
|
-
},
|
|
2012
|
-
{
|
|
2013
|
-
"description": "Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.",
|
|
2014
|
-
"name": "lower"
|
|
2015
|
-
},
|
|
2016
|
-
{
|
|
2017
|
-
"description": "Footer area of the card. Accepts links, actions, or any custom content.",
|
|
2018
|
-
"name": "footer"
|
|
2060
|
+
"description": "Used to override the form owner's `action` attribute.",
|
|
2061
|
+
"fieldName": "formAction"
|
|
2019
2062
|
},
|
|
2020
2063
|
{
|
|
2021
|
-
"
|
|
2022
|
-
"name": "link"
|
|
2023
|
-
}
|
|
2024
|
-
],
|
|
2025
|
-
"members": [
|
|
2026
|
-
{
|
|
2027
|
-
"kind": "field",
|
|
2028
|
-
"name": "footerNode",
|
|
2064
|
+
"name": "formmethod",
|
|
2029
2065
|
"type": {
|
|
2030
|
-
"text": "
|
|
2066
|
+
"text": "\"post\" | \"get\""
|
|
2031
2067
|
},
|
|
2032
|
-
"
|
|
2068
|
+
"description": "Used to override the form owner's `method` attribute.",
|
|
2069
|
+
"fieldName": "formMethod"
|
|
2033
2070
|
},
|
|
2034
2071
|
{
|
|
2035
|
-
"
|
|
2036
|
-
"name": "linkNode",
|
|
2072
|
+
"name": "formnovalidate",
|
|
2037
2073
|
"type": {
|
|
2038
|
-
"text": "
|
|
2074
|
+
"text": "boolean"
|
|
2039
2075
|
},
|
|
2040
|
-
"
|
|
2076
|
+
"description": "Used to override the form owner's `novalidate` attribute.",
|
|
2077
|
+
"fieldName": "formNoValidate"
|
|
2041
2078
|
},
|
|
2042
2079
|
{
|
|
2043
|
-
"
|
|
2044
|
-
"name": "imagePosition",
|
|
2080
|
+
"name": "formtarget",
|
|
2045
2081
|
"type": {
|
|
2046
|
-
"text": "
|
|
2082
|
+
"text": "| \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | string"
|
|
2047
2083
|
},
|
|
2048
|
-
"
|
|
2049
|
-
"
|
|
2050
|
-
"attribute": "imagePosition",
|
|
2051
|
-
"reflects": true
|
|
2084
|
+
"description": "Used to override the form owner's `target` attribute.",
|
|
2085
|
+
"fieldName": "formTarget"
|
|
2052
2086
|
},
|
|
2053
2087
|
{
|
|
2054
|
-
"
|
|
2055
|
-
"name": "imageAdjustment",
|
|
2088
|
+
"name": "fullWidth",
|
|
2056
2089
|
"type": {
|
|
2057
|
-
"text": "
|
|
2090
|
+
"text": "boolean"
|
|
2058
2091
|
},
|
|
2059
|
-
"default": "
|
|
2060
|
-
"description": "
|
|
2061
|
-
"
|
|
2062
|
-
"reflects": true
|
|
2092
|
+
"default": "false",
|
|
2093
|
+
"description": "When set, the button will be in full width.",
|
|
2094
|
+
"fieldName": "fullWidth"
|
|
2063
2095
|
},
|
|
2064
2096
|
{
|
|
2065
|
-
"
|
|
2066
|
-
"name": "hasImageSlot",
|
|
2097
|
+
"name": "hasLeftIconSlot",
|
|
2067
2098
|
"type": {
|
|
2068
2099
|
"text": "boolean"
|
|
2069
2100
|
},
|
|
2070
2101
|
"default": "false",
|
|
2071
|
-
"description": "Used only for SSR to indicate the presence of the `
|
|
2072
|
-
"
|
|
2102
|
+
"description": "Used only for SSR to indicate the presence of the `leftIcon` slot.",
|
|
2103
|
+
"fieldName": "hasLeftIconSlot"
|
|
2073
2104
|
},
|
|
2074
2105
|
{
|
|
2075
|
-
"
|
|
2076
|
-
"name": "hasIconSlot",
|
|
2106
|
+
"name": "hasRightIconSlot",
|
|
2077
2107
|
"type": {
|
|
2078
2108
|
"text": "boolean"
|
|
2079
2109
|
},
|
|
2080
2110
|
"default": "false",
|
|
2081
|
-
"description": "Used only for SSR to indicate the presence of the `
|
|
2082
|
-
"
|
|
2111
|
+
"description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
|
|
2112
|
+
"fieldName": "hasRightIconSlot"
|
|
2083
2113
|
},
|
|
2084
2114
|
{
|
|
2085
|
-
"
|
|
2086
|
-
"name": "hasUpperSlot",
|
|
2115
|
+
"name": "variant",
|
|
2087
2116
|
"type": {
|
|
2088
|
-
"text": "
|
|
2117
|
+
"text": "ButtonVariant"
|
|
2089
2118
|
},
|
|
2090
|
-
"default": "
|
|
2091
|
-
"description": "
|
|
2092
|
-
"
|
|
2119
|
+
"default": "\"primary\"",
|
|
2120
|
+
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. The `danger` value is deprecated since v3.5.6 — use `variant=\"primary\"` with `tone=\"danger\"` instead.",
|
|
2121
|
+
"fieldName": "variant",
|
|
2122
|
+
"inheritedFrom": {
|
|
2123
|
+
"name": "ButtonElement",
|
|
2124
|
+
"module": "src/base/button-element.ts"
|
|
2125
|
+
}
|
|
2093
2126
|
},
|
|
2094
2127
|
{
|
|
2095
|
-
"
|
|
2096
|
-
"name": "linkSlotItems",
|
|
2128
|
+
"name": "tone",
|
|
2097
2129
|
"type": {
|
|
2098
|
-
"text": "
|
|
2130
|
+
"text": "ButtonTone"
|
|
2099
2131
|
},
|
|
2100
|
-
"
|
|
2132
|
+
"default": "\"brand\"",
|
|
2133
|
+
"description": "Sets the visual colour of the button: `brand`, `danger`, `fixed-light`, `neutral`",
|
|
2134
|
+
"fieldName": "tone",
|
|
2135
|
+
"inheritedFrom": {
|
|
2136
|
+
"name": "ButtonElement",
|
|
2137
|
+
"module": "src/base/button-element.ts"
|
|
2138
|
+
}
|
|
2101
2139
|
},
|
|
2102
2140
|
{
|
|
2103
|
-
"
|
|
2104
|
-
"name": "footerSlotItems",
|
|
2141
|
+
"name": "size",
|
|
2105
2142
|
"type": {
|
|
2106
|
-
"text": "
|
|
2143
|
+
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
2107
2144
|
},
|
|
2108
|
-
"
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
"
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
"type": {}
|
|
2116
|
-
},
|
|
2117
|
-
{
|
|
2118
|
-
"kind": "method",
|
|
2119
|
-
"name": "handleImgSlotChange",
|
|
2120
|
-
"parameters": [
|
|
2121
|
-
{
|
|
2122
|
-
"name": "e",
|
|
2123
|
-
"type": {
|
|
2124
|
-
"text": "Event"
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
],
|
|
2128
|
-
"type": {}
|
|
2145
|
+
"default": "\"md\"",
|
|
2146
|
+
"description": "Specifies a small, medium or large button, the size is medium by default.",
|
|
2147
|
+
"fieldName": "size",
|
|
2148
|
+
"inheritedFrom": {
|
|
2149
|
+
"name": "ButtonElement",
|
|
2150
|
+
"module": "src/base/button-element.ts"
|
|
2151
|
+
}
|
|
2129
2152
|
},
|
|
2130
2153
|
{
|
|
2131
|
-
"
|
|
2132
|
-
"name": "stretchedLink",
|
|
2154
|
+
"name": "active",
|
|
2133
2155
|
"type": {
|
|
2134
2156
|
"text": "boolean"
|
|
2135
2157
|
},
|
|
2136
2158
|
"default": "false",
|
|
2137
|
-
"description": "
|
|
2138
|
-
"
|
|
2139
|
-
"reflects": true,
|
|
2159
|
+
"description": "Manually set the visual state of the button to `:active`",
|
|
2160
|
+
"fieldName": "active",
|
|
2140
2161
|
"inheritedFrom": {
|
|
2141
|
-
"name": "
|
|
2142
|
-
"module": "src/base/
|
|
2162
|
+
"name": "ButtonElement",
|
|
2163
|
+
"module": "src/base/button-element.ts"
|
|
2143
2164
|
}
|
|
2144
2165
|
},
|
|
2145
2166
|
{
|
|
2146
|
-
"kind": "field",
|
|
2147
2167
|
"name": "disabled",
|
|
2148
2168
|
"type": {
|
|
2149
2169
|
"text": "boolean"
|
|
2150
2170
|
},
|
|
2151
2171
|
"default": "false",
|
|
2152
|
-
"description": "
|
|
2153
|
-
"
|
|
2154
|
-
"reflects": true,
|
|
2172
|
+
"description": "The disabled state of the button",
|
|
2173
|
+
"fieldName": "disabled",
|
|
2155
2174
|
"inheritedFrom": {
|
|
2156
|
-
"name": "
|
|
2157
|
-
"module": "src/base/
|
|
2175
|
+
"name": "ButtonElement",
|
|
2176
|
+
"module": "src/base/button-element.ts"
|
|
2158
2177
|
}
|
|
2159
2178
|
},
|
|
2160
2179
|
{
|
|
2161
|
-
"
|
|
2162
|
-
"name": "hideBorder",
|
|
2180
|
+
"name": "href",
|
|
2163
2181
|
"type": {
|
|
2164
|
-
"text": "
|
|
2182
|
+
"text": "string"
|
|
2165
2183
|
},
|
|
2166
|
-
"
|
|
2167
|
-
"
|
|
2168
|
-
"attribute": "hideBorder",
|
|
2169
|
-
"reflects": true,
|
|
2184
|
+
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
2185
|
+
"fieldName": "href",
|
|
2170
2186
|
"inheritedFrom": {
|
|
2171
|
-
"name": "
|
|
2172
|
-
"module": "src/base/
|
|
2187
|
+
"name": "ButtonElement",
|
|
2188
|
+
"module": "src/base/button-element.ts"
|
|
2173
2189
|
}
|
|
2174
2190
|
},
|
|
2175
2191
|
{
|
|
2176
|
-
"
|
|
2177
|
-
"name": "tinted",
|
|
2192
|
+
"name": "target",
|
|
2178
2193
|
"type": {
|
|
2179
|
-
"text": "
|
|
2194
|
+
"text": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\""
|
|
2180
2195
|
},
|
|
2181
|
-
"default": "
|
|
2182
|
-
"description": "
|
|
2183
|
-
"
|
|
2184
|
-
"reflects": true,
|
|
2196
|
+
"default": "\"_self\"",
|
|
2197
|
+
"description": "Where to display the linked URL, as the name for a browsing context. Forwards to the HTMLAnchor target attribute",
|
|
2198
|
+
"fieldName": "target",
|
|
2185
2199
|
"inheritedFrom": {
|
|
2186
|
-
"name": "
|
|
2187
|
-
"module": "src/base/
|
|
2200
|
+
"name": "ButtonElement",
|
|
2201
|
+
"module": "src/base/button-element.ts"
|
|
2188
2202
|
}
|
|
2189
2203
|
},
|
|
2190
2204
|
{
|
|
2191
|
-
"
|
|
2192
|
-
"name": "orientation",
|
|
2205
|
+
"name": "download",
|
|
2193
2206
|
"type": {
|
|
2194
|
-
"text": "
|
|
2207
|
+
"text": "string"
|
|
2195
2208
|
},
|
|
2196
|
-
"
|
|
2197
|
-
"
|
|
2198
|
-
"attribute": "orientation",
|
|
2199
|
-
"reflects": true,
|
|
2209
|
+
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
2210
|
+
"fieldName": "download",
|
|
2200
2211
|
"inheritedFrom": {
|
|
2201
|
-
"name": "
|
|
2202
|
-
"module": "src/base/
|
|
2212
|
+
"name": "ButtonElement",
|
|
2213
|
+
"module": "src/base/button-element.ts"
|
|
2203
2214
|
}
|
|
2204
2215
|
},
|
|
2205
2216
|
{
|
|
2206
|
-
"
|
|
2207
|
-
"
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
"text": "Event"
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
],
|
|
2216
|
-
"type": {},
|
|
2217
|
+
"name": "ariaLabel",
|
|
2218
|
+
"type": {
|
|
2219
|
+
"text": "string"
|
|
2220
|
+
},
|
|
2221
|
+
"description": "The aria-label attribute to passed to button element when necessary",
|
|
2222
|
+
"fieldName": "ariaLabel",
|
|
2217
2223
|
"inheritedFrom": {
|
|
2218
|
-
"name": "
|
|
2219
|
-
"module": "src/base/
|
|
2224
|
+
"name": "ButtonElement",
|
|
2225
|
+
"module": "src/base/button-element.ts"
|
|
2220
2226
|
}
|
|
2221
2227
|
},
|
|
2222
2228
|
{
|
|
2223
|
-
"
|
|
2224
|
-
"
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
"type": {
|
|
2230
|
-
"text": "HTMLAnchorElement | null"
|
|
2231
|
-
}
|
|
2232
|
-
}
|
|
2233
|
-
],
|
|
2234
|
-
"type": {},
|
|
2229
|
+
"name": "loading",
|
|
2230
|
+
"type": {
|
|
2231
|
+
"text": "boolean"
|
|
2232
|
+
},
|
|
2233
|
+
"description": "When true, shows a loading spinner",
|
|
2234
|
+
"fieldName": "loading",
|
|
2235
2235
|
"inheritedFrom": {
|
|
2236
|
-
"name": "
|
|
2237
|
-
"module": "src/base/
|
|
2236
|
+
"name": "ButtonElement",
|
|
2237
|
+
"module": "src/base/button-element.ts"
|
|
2238
2238
|
}
|
|
2239
|
+
}
|
|
2240
|
+
],
|
|
2241
|
+
"superclass": {
|
|
2242
|
+
"name": "ButtonElement",
|
|
2243
|
+
"module": "/src/base/button-element"
|
|
2244
|
+
},
|
|
2245
|
+
"summary": "Custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.",
|
|
2246
|
+
"tagName": "sgds-button",
|
|
2247
|
+
"customElement": true,
|
|
2248
|
+
"modulePath": "src/components/Button/sgds-button.ts",
|
|
2249
|
+
"cssProperties": [],
|
|
2250
|
+
"cssParts": [],
|
|
2251
|
+
"cssStates": []
|
|
2252
|
+
}
|
|
2253
|
+
],
|
|
2254
|
+
"exports": [
|
|
2255
|
+
{
|
|
2256
|
+
"kind": "js",
|
|
2257
|
+
"name": "SgdsButton",
|
|
2258
|
+
"declaration": {
|
|
2259
|
+
"name": "SgdsButton",
|
|
2260
|
+
"module": "src/components/Button/sgds-button.ts"
|
|
2261
|
+
}
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
"kind": "js",
|
|
2265
|
+
"name": "default",
|
|
2266
|
+
"declaration": {
|
|
2267
|
+
"name": "SgdsButton",
|
|
2268
|
+
"module": "src/components/Button/sgds-button.ts"
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
]
|
|
2272
|
+
},
|
|
2273
|
+
{
|
|
2274
|
+
"kind": "javascript-module",
|
|
2275
|
+
"path": "src/components/Card/sgds-card.ts",
|
|
2276
|
+
"declarations": [
|
|
2277
|
+
{
|
|
2278
|
+
"kind": "class",
|
|
2279
|
+
"description": "",
|
|
2280
|
+
"name": "SgdsCard",
|
|
2281
|
+
"slots": [
|
|
2282
|
+
{
|
|
2283
|
+
"description": "The content area of the card, placed directly under the title. Accepts any HTML or custom elements.",
|
|
2284
|
+
"name": "default"
|
|
2239
2285
|
},
|
|
2240
2286
|
{
|
|
2241
|
-
"
|
|
2242
|
-
"name": "
|
|
2243
|
-
"parameters": [
|
|
2244
|
-
{
|
|
2245
|
-
"name": "e",
|
|
2246
|
-
"type": {
|
|
2247
|
-
"text": "Event"
|
|
2248
|
-
}
|
|
2249
|
-
}
|
|
2250
|
-
],
|
|
2251
|
-
"type": {},
|
|
2252
|
-
"inheritedFrom": {
|
|
2253
|
-
"name": "CardElement",
|
|
2254
|
-
"module": "src/base/card-element.ts"
|
|
2255
|
-
}
|
|
2287
|
+
"description": "Accepts an element for an overflow or contextual menu, positioned at the top-right corner of the card. Typically used for action menus or dropdowns.",
|
|
2288
|
+
"name": "menu"
|
|
2256
2289
|
},
|
|
2257
2290
|
{
|
|
2258
|
-
"
|
|
2259
|
-
"name": "
|
|
2260
|
-
"parameters": [
|
|
2261
|
-
{
|
|
2262
|
-
"name": "name",
|
|
2263
|
-
"type": {
|
|
2264
|
-
"text": "string"
|
|
2265
|
-
}
|
|
2266
|
-
},
|
|
2267
|
-
{
|
|
2268
|
-
"name": "options",
|
|
2269
|
-
"optional": true,
|
|
2270
|
-
"type": {
|
|
2271
|
-
"text": "CustomEventInit<T>"
|
|
2272
|
-
}
|
|
2273
|
-
}
|
|
2274
|
-
],
|
|
2275
|
-
"description": "Emits a custom event with more convenient defaults.",
|
|
2276
|
-
"type": {},
|
|
2277
|
-
"inheritedFrom": {
|
|
2278
|
-
"name": "SgdsElement",
|
|
2279
|
-
"module": "src/base/sgds-element.ts"
|
|
2280
|
-
}
|
|
2291
|
+
"description": "Accepts an element to be displayed above the card content. When used, it overrides image and icon slot content.",
|
|
2292
|
+
"name": "upper"
|
|
2281
2293
|
},
|
|
2282
2294
|
{
|
|
2283
|
-
"
|
|
2284
|
-
"name": "
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2295
|
+
"description": "Accepts an image or svg element of the card. Only a single element is allowed to be passed in.",
|
|
2296
|
+
"name": "image"
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
"description": "Accepts an icon element to visually represent the card. Only a single element is allowed to be passed in.",
|
|
2300
|
+
"name": "icon"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
"description": "The subtitle of the card",
|
|
2304
|
+
"name": "subtitle"
|
|
2305
|
+
},
|
|
2306
|
+
{
|
|
2307
|
+
"description": "The title of the card",
|
|
2308
|
+
"name": "title"
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
"description": "The paragrapher text of the card",
|
|
2312
|
+
"name": "description"
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
"description": "Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.",
|
|
2316
|
+
"name": "lower"
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
"description": "Footer area of the card. Accepts links, actions, or any custom content.",
|
|
2320
|
+
"name": "footer"
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"description": "(@deprecated) Deprecated since 3.3.2 in favour of `footer` slot. Legacy slot for anchor elements. Use `footer` instead.",
|
|
2324
|
+
"name": "link"
|
|
2310
2325
|
}
|
|
2311
2326
|
],
|
|
2312
|
-
"
|
|
2327
|
+
"members": [
|
|
2328
|
+
{
|
|
2329
|
+
"kind": "field",
|
|
2330
|
+
"name": "footerNode",
|
|
2331
|
+
"type": {
|
|
2332
|
+
"text": "HTMLElement[]"
|
|
2333
|
+
},
|
|
2334
|
+
"privacy": "private"
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"kind": "field",
|
|
2338
|
+
"name": "linkNode",
|
|
2339
|
+
"type": {
|
|
2340
|
+
"text": "HTMLAnchorElement[] | SgdsLink[]"
|
|
2341
|
+
},
|
|
2342
|
+
"privacy": "private"
|
|
2343
|
+
},
|
|
2313
2344
|
{
|
|
2345
|
+
"kind": "field",
|
|
2314
2346
|
"name": "imagePosition",
|
|
2315
2347
|
"type": {
|
|
2316
2348
|
"text": "CardImagePosition"
|
|
2317
2349
|
},
|
|
2318
2350
|
"default": "\"before\"",
|
|
2319
2351
|
"description": "Sets the image position of the card. Available options: `before`, `after`",
|
|
2320
|
-
"
|
|
2352
|
+
"attribute": "imagePosition",
|
|
2353
|
+
"reflects": true
|
|
2321
2354
|
},
|
|
2322
2355
|
{
|
|
2356
|
+
"kind": "field",
|
|
2323
2357
|
"name": "imageAdjustment",
|
|
2324
2358
|
"type": {
|
|
2325
2359
|
"text": "CardImageAdjustment"
|
|
2326
2360
|
},
|
|
2327
2361
|
"default": "\"default\"",
|
|
2328
2362
|
"description": "Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio`",
|
|
2329
|
-
"
|
|
2363
|
+
"attribute": "imageAdjustment",
|
|
2364
|
+
"reflects": true
|
|
2330
2365
|
},
|
|
2331
2366
|
{
|
|
2367
|
+
"kind": "field",
|
|
2332
2368
|
"name": "hasImageSlot",
|
|
2333
2369
|
"type": {
|
|
2334
2370
|
"text": "boolean"
|
|
2335
2371
|
},
|
|
2336
2372
|
"default": "false",
|
|
2337
2373
|
"description": "Used only for SSR to indicate the presence of the `image` slot.",
|
|
2338
|
-
"
|
|
2374
|
+
"attribute": "hasImageSlot"
|
|
2339
2375
|
},
|
|
2340
2376
|
{
|
|
2377
|
+
"kind": "field",
|
|
2341
2378
|
"name": "hasIconSlot",
|
|
2342
2379
|
"type": {
|
|
2343
2380
|
"text": "boolean"
|
|
2344
2381
|
},
|
|
2345
2382
|
"default": "false",
|
|
2346
2383
|
"description": "Used only for SSR to indicate the presence of the `icon` slot.",
|
|
2347
|
-
"
|
|
2384
|
+
"attribute": "hasIconSlot"
|
|
2348
2385
|
},
|
|
2349
2386
|
{
|
|
2387
|
+
"kind": "field",
|
|
2350
2388
|
"name": "hasUpperSlot",
|
|
2351
2389
|
"type": {
|
|
2352
2390
|
"text": "boolean"
|
|
2353
2391
|
},
|
|
2354
2392
|
"default": "false",
|
|
2355
2393
|
"description": "Used only for SSR to indicate the presence of the `upper` slot.",
|
|
2356
|
-
"
|
|
2357
|
-
},
|
|
2358
|
-
{
|
|
2359
|
-
"name": "stretchedLink",
|
|
2360
|
-
"type": {
|
|
2361
|
-
"text": "boolean"
|
|
2362
|
-
},
|
|
2363
|
-
"default": "false",
|
|
2364
|
-
"description": "Extends the link passed in either `footer` or `link`(deprecated) slot.",
|
|
2365
|
-
"fieldName": "stretchedLink",
|
|
2366
|
-
"inheritedFrom": {
|
|
2367
|
-
"name": "CardElement",
|
|
2368
|
-
"module": "src/base/card-element.ts"
|
|
2369
|
-
}
|
|
2370
|
-
},
|
|
2371
|
-
{
|
|
2372
|
-
"name": "disabled",
|
|
2373
|
-
"type": {
|
|
2374
|
-
"text": "boolean"
|
|
2375
|
-
},
|
|
2376
|
-
"default": "false",
|
|
2377
|
-
"description": "Disables the card",
|
|
2378
|
-
"fieldName": "disabled",
|
|
2379
|
-
"inheritedFrom": {
|
|
2380
|
-
"name": "CardElement",
|
|
2381
|
-
"module": "src/base/card-element.ts"
|
|
2382
|
-
}
|
|
2383
|
-
},
|
|
2384
|
-
{
|
|
2385
|
-
"name": "hideBorder",
|
|
2386
|
-
"type": {
|
|
2387
|
-
"text": "boolean"
|
|
2388
|
-
},
|
|
2389
|
-
"default": "false",
|
|
2390
|
-
"description": "When true, hides the default border of the card.",
|
|
2391
|
-
"fieldName": "hideBorder",
|
|
2392
|
-
"inheritedFrom": {
|
|
2393
|
-
"name": "CardElement",
|
|
2394
|
-
"module": "src/base/card-element.ts"
|
|
2395
|
-
}
|
|
2396
|
-
},
|
|
2397
|
-
{
|
|
2398
|
-
"name": "tinted",
|
|
2399
|
-
"type": {
|
|
2400
|
-
"text": "boolean"
|
|
2401
|
-
},
|
|
2402
|
-
"default": "false",
|
|
2403
|
-
"description": "When true, applies a tinted background color to the card.",
|
|
2404
|
-
"fieldName": "tinted",
|
|
2405
|
-
"inheritedFrom": {
|
|
2406
|
-
"name": "CardElement",
|
|
2407
|
-
"module": "src/base/card-element.ts"
|
|
2408
|
-
}
|
|
2394
|
+
"attribute": "hasUpperSlot"
|
|
2409
2395
|
},
|
|
2410
|
-
{
|
|
2411
|
-
"name": "orientation",
|
|
2412
|
-
"type": {
|
|
2413
|
-
"text": "CardOrientation"
|
|
2414
|
-
},
|
|
2415
|
-
"default": "\"vertical\"",
|
|
2416
|
-
"description": "Sets the orientation of the card. Available options: `vertical`, `horizontal`",
|
|
2417
|
-
"fieldName": "orientation",
|
|
2418
|
-
"inheritedFrom": {
|
|
2419
|
-
"name": "CardElement",
|
|
2420
|
-
"module": "src/base/card-element.ts"
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
],
|
|
2424
|
-
"superclass": {
|
|
2425
|
-
"name": "CardElement",
|
|
2426
|
-
"module": "/src/base/card-element"
|
|
2427
|
-
},
|
|
2428
|
-
"summary": "Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.",
|
|
2429
|
-
"tagName": "sgds-card",
|
|
2430
|
-
"customElement": true,
|
|
2431
|
-
"modulePath": "src/components/Card/sgds-card.ts",
|
|
2432
|
-
"cssProperties": [],
|
|
2433
|
-
"cssParts": [],
|
|
2434
|
-
"cssStates": [],
|
|
2435
|
-
"events": []
|
|
2436
|
-
}
|
|
2437
|
-
],
|
|
2438
|
-
"exports": [
|
|
2439
|
-
{
|
|
2440
|
-
"kind": "js",
|
|
2441
|
-
"name": "SgdsCard",
|
|
2442
|
-
"declaration": {
|
|
2443
|
-
"name": "SgdsCard",
|
|
2444
|
-
"module": "src/components/Card/sgds-card.ts"
|
|
2445
|
-
}
|
|
2446
|
-
},
|
|
2447
|
-
{
|
|
2448
|
-
"kind": "js",
|
|
2449
|
-
"name": "default",
|
|
2450
|
-
"declaration": {
|
|
2451
|
-
"name": "SgdsCard",
|
|
2452
|
-
"module": "src/components/Card/sgds-card.ts"
|
|
2453
|
-
}
|
|
2454
|
-
}
|
|
2455
|
-
]
|
|
2456
|
-
},
|
|
2457
|
-
{
|
|
2458
|
-
"kind": "javascript-module",
|
|
2459
|
-
"path": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
2460
|
-
"declarations": [
|
|
2461
|
-
{
|
|
2462
|
-
"kind": "class",
|
|
2463
|
-
"description": "",
|
|
2464
|
-
"name": "SgdsBreadcrumbItem",
|
|
2465
|
-
"slots": [
|
|
2466
|
-
{
|
|
2467
|
-
"description": "The link of the item. Pass in anchor tags into this slot",
|
|
2468
|
-
"name": "default"
|
|
2469
|
-
}
|
|
2470
|
-
],
|
|
2471
|
-
"members": [
|
|
2472
2396
|
{
|
|
2473
2397
|
"kind": "field",
|
|
2474
|
-
"name": "
|
|
2398
|
+
"name": "linkSlotItems",
|
|
2475
2399
|
"type": {
|
|
2476
|
-
"text": "
|
|
2400
|
+
"text": "HTMLAnchorElement | null"
|
|
2477
2401
|
},
|
|
2478
|
-
"
|
|
2479
|
-
"default": "{\n \"sgds-link\": SgdsLink,\n \"sgds-icon\": SgdsIcon\n }"
|
|
2402
|
+
"privacy": "private"
|
|
2480
2403
|
},
|
|
2481
2404
|
{
|
|
2482
2405
|
"kind": "field",
|
|
2483
|
-
"name": "
|
|
2406
|
+
"name": "footerSlotItems",
|
|
2484
2407
|
"type": {
|
|
2485
|
-
"text": "
|
|
2408
|
+
"text": "HTMLAnchorElement | null"
|
|
2486
2409
|
},
|
|
2487
|
-
"
|
|
2488
|
-
"description": "Indicates the link matches the current location of the page. Programmatically handled by SgdsBreadcrumb to set this prop to true for the last breadcrumb item",
|
|
2489
|
-
"attribute": "active",
|
|
2490
|
-
"reflects": true
|
|
2410
|
+
"privacy": "private"
|
|
2491
2411
|
},
|
|
2492
2412
|
{
|
|
2493
2413
|
"kind": "field",
|
|
2494
|
-
"name": "
|
|
2414
|
+
"name": "hasSlotController",
|
|
2495
2415
|
"privacy": "private",
|
|
2416
|
+
"default": "new HasSlotController(this, \"image\", \"icon\", \"upper\")",
|
|
2496
2417
|
"type": {}
|
|
2497
2418
|
},
|
|
2498
2419
|
{
|
|
2499
2420
|
"kind": "method",
|
|
2500
|
-
"name": "
|
|
2421
|
+
"name": "handleImgSlotChange",
|
|
2501
2422
|
"parameters": [
|
|
2502
2423
|
{
|
|
2503
|
-
"name": "
|
|
2504
|
-
"type": {
|
|
2505
|
-
"text": "string"
|
|
2506
|
-
}
|
|
2507
|
-
},
|
|
2508
|
-
{
|
|
2509
|
-
"name": "options",
|
|
2510
|
-
"optional": true,
|
|
2424
|
+
"name": "e",
|
|
2511
2425
|
"type": {
|
|
2512
|
-
"text": "
|
|
2426
|
+
"text": "Event"
|
|
2513
2427
|
}
|
|
2514
2428
|
}
|
|
2515
2429
|
],
|
|
2516
|
-
"
|
|
2517
|
-
"type": {},
|
|
2518
|
-
"inheritedFrom": {
|
|
2519
|
-
"name": "SgdsElement",
|
|
2520
|
-
"module": "src/base/sgds-element.ts"
|
|
2521
|
-
}
|
|
2430
|
+
"type": {}
|
|
2522
2431
|
},
|
|
2523
2432
|
{
|
|
2524
|
-
"kind": "
|
|
2525
|
-
"name": "
|
|
2526
|
-
"static": true,
|
|
2527
|
-
"parameters": [
|
|
2528
|
-
{
|
|
2529
|
-
"name": "name",
|
|
2530
|
-
"type": {
|
|
2531
|
-
"text": "string"
|
|
2532
|
-
}
|
|
2533
|
-
},
|
|
2534
|
-
{
|
|
2535
|
-
"name": "elementConstructor",
|
|
2536
|
-
"default": "this"
|
|
2537
|
-
},
|
|
2538
|
-
{
|
|
2539
|
-
"name": "options",
|
|
2540
|
-
"default": "{}",
|
|
2541
|
-
"type": {
|
|
2542
|
-
"text": "ElementDefinitionOptions"
|
|
2543
|
-
}
|
|
2544
|
-
}
|
|
2545
|
-
],
|
|
2546
|
-
"type": {},
|
|
2547
|
-
"inheritedFrom": {
|
|
2548
|
-
"name": "SgdsElement",
|
|
2549
|
-
"module": "src/base/sgds-element.ts"
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
],
|
|
2553
|
-
"attributes": [
|
|
2554
|
-
{
|
|
2555
|
-
"name": "active",
|
|
2433
|
+
"kind": "field",
|
|
2434
|
+
"name": "stretchedLink",
|
|
2556
2435
|
"type": {
|
|
2557
2436
|
"text": "boolean"
|
|
2558
2437
|
},
|
|
2559
2438
|
"default": "false",
|
|
2560
|
-
"description": "
|
|
2561
|
-
"
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
"summary": "Breadcrumb Item are navigational links used in Breadcrumb component",
|
|
2569
|
-
"tagName": "sgds-breadcrumb-item",
|
|
2570
|
-
"customElement": true,
|
|
2571
|
-
"modulePath": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
2572
|
-
"cssProperties": [],
|
|
2573
|
-
"cssParts": [],
|
|
2574
|
-
"cssStates": [],
|
|
2575
|
-
"events": []
|
|
2576
|
-
}
|
|
2577
|
-
],
|
|
2578
|
-
"exports": [
|
|
2579
|
-
{
|
|
2580
|
-
"kind": "js",
|
|
2581
|
-
"name": "SgdsBreadcrumbItem",
|
|
2582
|
-
"declaration": {
|
|
2583
|
-
"name": "SgdsBreadcrumbItem",
|
|
2584
|
-
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
2585
|
-
}
|
|
2586
|
-
},
|
|
2587
|
-
{
|
|
2588
|
-
"kind": "js",
|
|
2589
|
-
"name": "default",
|
|
2590
|
-
"declaration": {
|
|
2591
|
-
"name": "SgdsBreadcrumbItem",
|
|
2592
|
-
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
2593
|
-
}
|
|
2594
|
-
}
|
|
2595
|
-
]
|
|
2596
|
-
},
|
|
2597
|
-
{
|
|
2598
|
-
"kind": "javascript-module",
|
|
2599
|
-
"path": "src/components/Breadcrumb/sgds-breadcrumb.ts",
|
|
2600
|
-
"declarations": [
|
|
2601
|
-
{
|
|
2602
|
-
"kind": "class",
|
|
2603
|
-
"description": "",
|
|
2604
|
-
"name": "SgdsBreadcrumb",
|
|
2605
|
-
"slots": [
|
|
2439
|
+
"description": "Extends the link passed in either `footer` or `link`(deprecated) slot.",
|
|
2440
|
+
"attribute": "stretchedLink",
|
|
2441
|
+
"reflects": true,
|
|
2442
|
+
"inheritedFrom": {
|
|
2443
|
+
"name": "CardElement",
|
|
2444
|
+
"module": "src/base/card-element.ts"
|
|
2445
|
+
}
|
|
2446
|
+
},
|
|
2606
2447
|
{
|
|
2607
|
-
"
|
|
2608
|
-
"name": "
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2448
|
+
"kind": "field",
|
|
2449
|
+
"name": "disabled",
|
|
2450
|
+
"type": {
|
|
2451
|
+
"text": "boolean"
|
|
2452
|
+
},
|
|
2453
|
+
"default": "false",
|
|
2454
|
+
"description": "Disables the card",
|
|
2455
|
+
"attribute": "disabled",
|
|
2456
|
+
"reflects": true,
|
|
2457
|
+
"inheritedFrom": {
|
|
2458
|
+
"name": "CardElement",
|
|
2459
|
+
"module": "src/base/card-element.ts"
|
|
2460
|
+
}
|
|
2461
|
+
},
|
|
2612
2462
|
{
|
|
2613
2463
|
"kind": "field",
|
|
2614
|
-
"name": "
|
|
2464
|
+
"name": "hideBorder",
|
|
2615
2465
|
"type": {
|
|
2616
|
-
"text": "
|
|
2466
|
+
"text": "boolean"
|
|
2617
2467
|
},
|
|
2618
|
-
"
|
|
2619
|
-
"
|
|
2468
|
+
"default": "false",
|
|
2469
|
+
"description": "When true, hides the default border of the card.",
|
|
2470
|
+
"attribute": "hideBorder",
|
|
2471
|
+
"reflects": true,
|
|
2472
|
+
"inheritedFrom": {
|
|
2473
|
+
"name": "CardElement",
|
|
2474
|
+
"module": "src/base/card-element.ts"
|
|
2475
|
+
}
|
|
2620
2476
|
},
|
|
2621
2477
|
{
|
|
2622
2478
|
"kind": "field",
|
|
2623
|
-
"name": "
|
|
2479
|
+
"name": "tinted",
|
|
2624
2480
|
"type": {
|
|
2625
|
-
"text": "
|
|
2481
|
+
"text": "boolean"
|
|
2626
2482
|
},
|
|
2627
|
-
"default": "
|
|
2628
|
-
"description": "
|
|
2629
|
-
"attribute": "
|
|
2483
|
+
"default": "false",
|
|
2484
|
+
"description": "When true, applies a tinted background color to the card.",
|
|
2485
|
+
"attribute": "tinted",
|
|
2486
|
+
"reflects": true,
|
|
2487
|
+
"inheritedFrom": {
|
|
2488
|
+
"name": "CardElement",
|
|
2489
|
+
"module": "src/base/card-element.ts"
|
|
2490
|
+
}
|
|
2491
|
+
},
|
|
2492
|
+
{
|
|
2493
|
+
"kind": "field",
|
|
2494
|
+
"name": "orientation",
|
|
2495
|
+
"type": {
|
|
2496
|
+
"text": "CardOrientation"
|
|
2497
|
+
},
|
|
2498
|
+
"default": "\"vertical\"",
|
|
2499
|
+
"description": "Sets the orientation of the card. Available options: `vertical`, `horizontal`",
|
|
2500
|
+
"attribute": "orientation",
|
|
2501
|
+
"reflects": true,
|
|
2502
|
+
"inheritedFrom": {
|
|
2503
|
+
"name": "CardElement",
|
|
2504
|
+
"module": "src/base/card-element.ts"
|
|
2505
|
+
}
|
|
2630
2506
|
},
|
|
2631
2507
|
{
|
|
2632
2508
|
"kind": "method",
|
|
2633
|
-
"name": "
|
|
2634
|
-
"privacy": "private",
|
|
2509
|
+
"name": "handleTitleSlotChange",
|
|
2635
2510
|
"parameters": [
|
|
2636
2511
|
{
|
|
2637
|
-
"name": "
|
|
2512
|
+
"name": "e",
|
|
2638
2513
|
"type": {
|
|
2639
|
-
"text": "
|
|
2514
|
+
"text": "Event"
|
|
2640
2515
|
}
|
|
2641
2516
|
}
|
|
2642
2517
|
],
|
|
2643
|
-
"
|
|
2644
|
-
"
|
|
2518
|
+
"type": {},
|
|
2519
|
+
"inheritedFrom": {
|
|
2520
|
+
"name": "CardElement",
|
|
2521
|
+
"module": "src/base/card-element.ts"
|
|
2522
|
+
}
|
|
2645
2523
|
},
|
|
2646
2524
|
{
|
|
2647
2525
|
"kind": "method",
|
|
2648
|
-
"name": "
|
|
2649
|
-
"privacy": "
|
|
2526
|
+
"name": "_forwardAnchorAttributes",
|
|
2527
|
+
"privacy": "protected",
|
|
2528
|
+
"parameters": [
|
|
2529
|
+
{
|
|
2530
|
+
"name": "anchor",
|
|
2531
|
+
"type": {
|
|
2532
|
+
"text": "HTMLAnchorElement | null"
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
],
|
|
2536
|
+
"type": {},
|
|
2537
|
+
"inheritedFrom": {
|
|
2538
|
+
"name": "CardElement",
|
|
2539
|
+
"module": "src/base/card-element.ts"
|
|
2540
|
+
}
|
|
2541
|
+
},
|
|
2542
|
+
{
|
|
2543
|
+
"kind": "method",
|
|
2544
|
+
"name": "warnLinkSlotMisused",
|
|
2650
2545
|
"parameters": [
|
|
2651
2546
|
{
|
|
2652
2547
|
"name": "e",
|
|
@@ -2655,7 +2550,11 @@
|
|
|
2655
2550
|
}
|
|
2656
2551
|
}
|
|
2657
2552
|
],
|
|
2658
|
-
"type": {}
|
|
2553
|
+
"type": {},
|
|
2554
|
+
"inheritedFrom": {
|
|
2555
|
+
"name": "CardElement",
|
|
2556
|
+
"module": "src/base/card-element.ts"
|
|
2557
|
+
}
|
|
2659
2558
|
},
|
|
2660
2559
|
{
|
|
2661
2560
|
"kind": "method",
|
|
@@ -2714,23 +2613,124 @@
|
|
|
2714
2613
|
],
|
|
2715
2614
|
"attributes": [
|
|
2716
2615
|
{
|
|
2717
|
-
"name": "
|
|
2616
|
+
"name": "imagePosition",
|
|
2718
2617
|
"type": {
|
|
2719
|
-
"text": "
|
|
2618
|
+
"text": "CardImagePosition"
|
|
2720
2619
|
},
|
|
2721
|
-
"default": "\"
|
|
2722
|
-
"description": "
|
|
2723
|
-
"fieldName": "
|
|
2620
|
+
"default": "\"before\"",
|
|
2621
|
+
"description": "Sets the image position of the card. Available options: `before`, `after`",
|
|
2622
|
+
"fieldName": "imagePosition"
|
|
2623
|
+
},
|
|
2624
|
+
{
|
|
2625
|
+
"name": "imageAdjustment",
|
|
2626
|
+
"type": {
|
|
2627
|
+
"text": "CardImageAdjustment"
|
|
2628
|
+
},
|
|
2629
|
+
"default": "\"default\"",
|
|
2630
|
+
"description": "Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio`",
|
|
2631
|
+
"fieldName": "imageAdjustment"
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
"name": "hasImageSlot",
|
|
2635
|
+
"type": {
|
|
2636
|
+
"text": "boolean"
|
|
2637
|
+
},
|
|
2638
|
+
"default": "false",
|
|
2639
|
+
"description": "Used only for SSR to indicate the presence of the `image` slot.",
|
|
2640
|
+
"fieldName": "hasImageSlot"
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
"name": "hasIconSlot",
|
|
2644
|
+
"type": {
|
|
2645
|
+
"text": "boolean"
|
|
2646
|
+
},
|
|
2647
|
+
"default": "false",
|
|
2648
|
+
"description": "Used only for SSR to indicate the presence of the `icon` slot.",
|
|
2649
|
+
"fieldName": "hasIconSlot"
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
"name": "hasUpperSlot",
|
|
2653
|
+
"type": {
|
|
2654
|
+
"text": "boolean"
|
|
2655
|
+
},
|
|
2656
|
+
"default": "false",
|
|
2657
|
+
"description": "Used only for SSR to indicate the presence of the `upper` slot.",
|
|
2658
|
+
"fieldName": "hasUpperSlot"
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
"name": "stretchedLink",
|
|
2662
|
+
"type": {
|
|
2663
|
+
"text": "boolean"
|
|
2664
|
+
},
|
|
2665
|
+
"default": "false",
|
|
2666
|
+
"description": "Extends the link passed in either `footer` or `link`(deprecated) slot.",
|
|
2667
|
+
"fieldName": "stretchedLink",
|
|
2668
|
+
"inheritedFrom": {
|
|
2669
|
+
"name": "CardElement",
|
|
2670
|
+
"module": "src/base/card-element.ts"
|
|
2671
|
+
}
|
|
2672
|
+
},
|
|
2673
|
+
{
|
|
2674
|
+
"name": "disabled",
|
|
2675
|
+
"type": {
|
|
2676
|
+
"text": "boolean"
|
|
2677
|
+
},
|
|
2678
|
+
"default": "false",
|
|
2679
|
+
"description": "Disables the card",
|
|
2680
|
+
"fieldName": "disabled",
|
|
2681
|
+
"inheritedFrom": {
|
|
2682
|
+
"name": "CardElement",
|
|
2683
|
+
"module": "src/base/card-element.ts"
|
|
2684
|
+
}
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
"name": "hideBorder",
|
|
2688
|
+
"type": {
|
|
2689
|
+
"text": "boolean"
|
|
2690
|
+
},
|
|
2691
|
+
"default": "false",
|
|
2692
|
+
"description": "When true, hides the default border of the card.",
|
|
2693
|
+
"fieldName": "hideBorder",
|
|
2694
|
+
"inheritedFrom": {
|
|
2695
|
+
"name": "CardElement",
|
|
2696
|
+
"module": "src/base/card-element.ts"
|
|
2697
|
+
}
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
"name": "tinted",
|
|
2701
|
+
"type": {
|
|
2702
|
+
"text": "boolean"
|
|
2703
|
+
},
|
|
2704
|
+
"default": "false",
|
|
2705
|
+
"description": "When true, applies a tinted background color to the card.",
|
|
2706
|
+
"fieldName": "tinted",
|
|
2707
|
+
"inheritedFrom": {
|
|
2708
|
+
"name": "CardElement",
|
|
2709
|
+
"module": "src/base/card-element.ts"
|
|
2710
|
+
}
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"name": "orientation",
|
|
2714
|
+
"type": {
|
|
2715
|
+
"text": "CardOrientation"
|
|
2716
|
+
},
|
|
2717
|
+
"default": "\"vertical\"",
|
|
2718
|
+
"description": "Sets the orientation of the card. Available options: `vertical`, `horizontal`",
|
|
2719
|
+
"fieldName": "orientation",
|
|
2720
|
+
"inheritedFrom": {
|
|
2721
|
+
"name": "CardElement",
|
|
2722
|
+
"module": "src/base/card-element.ts"
|
|
2723
|
+
}
|
|
2724
2724
|
}
|
|
2725
2725
|
],
|
|
2726
2726
|
"superclass": {
|
|
2727
|
-
"name": "
|
|
2728
|
-
"module": "/src/base/
|
|
2727
|
+
"name": "CardElement",
|
|
2728
|
+
"module": "/src/base/card-element"
|
|
2729
2729
|
},
|
|
2730
|
-
"summary": "
|
|
2731
|
-
"tagName": "sgds-
|
|
2730
|
+
"summary": "Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.",
|
|
2731
|
+
"tagName": "sgds-card",
|
|
2732
2732
|
"customElement": true,
|
|
2733
|
-
"modulePath": "src/components/
|
|
2733
|
+
"modulePath": "src/components/Card/sgds-card.ts",
|
|
2734
2734
|
"cssProperties": [],
|
|
2735
2735
|
"cssParts": [],
|
|
2736
2736
|
"cssStates": [],
|
|
@@ -2740,18 +2740,18 @@
|
|
|
2740
2740
|
"exports": [
|
|
2741
2741
|
{
|
|
2742
2742
|
"kind": "js",
|
|
2743
|
-
"name": "
|
|
2743
|
+
"name": "SgdsCard",
|
|
2744
2744
|
"declaration": {
|
|
2745
|
-
"name": "
|
|
2746
|
-
"module": "src/components/
|
|
2745
|
+
"name": "SgdsCard",
|
|
2746
|
+
"module": "src/components/Card/sgds-card.ts"
|
|
2747
2747
|
}
|
|
2748
2748
|
},
|
|
2749
2749
|
{
|
|
2750
2750
|
"kind": "js",
|
|
2751
2751
|
"name": "default",
|
|
2752
2752
|
"declaration": {
|
|
2753
|
-
"name": "
|
|
2754
|
-
"module": "src/components/
|
|
2753
|
+
"name": "SgdsCard",
|
|
2754
|
+
"module": "src/components/Card/sgds-card.ts"
|
|
2755
2755
|
}
|
|
2756
2756
|
}
|
|
2757
2757
|
]
|
|
@@ -7801,6 +7801,16 @@
|
|
|
7801
7801
|
"attribute": "disabled",
|
|
7802
7802
|
"reflects": true
|
|
7803
7803
|
},
|
|
7804
|
+
{
|
|
7805
|
+
"kind": "field",
|
|
7806
|
+
"name": "ariaLabel",
|
|
7807
|
+
"type": {
|
|
7808
|
+
"text": "string"
|
|
7809
|
+
},
|
|
7810
|
+
"default": "\"\"",
|
|
7811
|
+
"description": "Forwards aria-label to the inner clickable element for accessibility",
|
|
7812
|
+
"attribute": "ariaLabel"
|
|
7813
|
+
},
|
|
7804
7814
|
{
|
|
7805
7815
|
"kind": "method",
|
|
7806
7816
|
"name": "emit",
|
|
@@ -7874,6 +7884,15 @@
|
|
|
7874
7884
|
"default": "false",
|
|
7875
7885
|
"description": "Disables the SgdsMainnavItem",
|
|
7876
7886
|
"fieldName": "disabled"
|
|
7887
|
+
},
|
|
7888
|
+
{
|
|
7889
|
+
"name": "ariaLabel",
|
|
7890
|
+
"type": {
|
|
7891
|
+
"text": "string"
|
|
7892
|
+
},
|
|
7893
|
+
"default": "\"\"",
|
|
7894
|
+
"description": "Forwards aria-label to the inner clickable element for accessibility",
|
|
7895
|
+
"fieldName": "ariaLabel"
|
|
7877
7896
|
}
|
|
7878
7897
|
],
|
|
7879
7898
|
"superclass": {
|
|
@@ -27651,7 +27670,7 @@
|
|
|
27651
27670
|
"package": {
|
|
27652
27671
|
"name": "@govtechsg/sgds-web-component",
|
|
27653
27672
|
"description": "",
|
|
27654
|
-
"version": "3.23.0-rc.
|
|
27673
|
+
"version": "3.23.0-rc.1",
|
|
27655
27674
|
"author": "GovTechSG",
|
|
27656
27675
|
"license": "MIT"
|
|
27657
27676
|
}
|