@momentum-design/components 0.26.0 → 0.27.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/dist/browser/index.js +2 -1
- package/dist/browser/index.js.map +2 -2
- package/dist/components/tab/tab.component.d.ts +5 -0
- package/dist/components/tab/tab.component.js +7 -1
- package/dist/custom-elements.json +829 -829
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/tab/index.d.ts +5 -0
- package/dist/react/tab/index.js +5 -0
- package/package.json +1 -1
@@ -1192,48 +1192,33 @@
|
|
1192
1192
|
},
|
1193
1193
|
{
|
1194
1194
|
"kind": "javascript-module",
|
1195
|
-
"path": "components/
|
1195
|
+
"path": "components/buttonsimple/buttonsimple.component.js",
|
1196
1196
|
"declarations": [
|
1197
1197
|
{
|
1198
1198
|
"kind": "class",
|
1199
|
-
"description": "`mdc-
|
1200
|
-
"name": "
|
1201
|
-
"slots": [
|
1202
|
-
{
|
1203
|
-
"description": "Text label of the button.",
|
1204
|
-
"name": ""
|
1205
|
-
}
|
1206
|
-
],
|
1199
|
+
"description": "`mdc-buttonsimple` is a component that can be configured in various ways to suit different use cases.\nIt is used as an internal component and is not intended to be used directly by consumers.\nConsumers should use the `mdc-button` component instead.",
|
1200
|
+
"name": "Buttonsimple",
|
1207
1201
|
"members": [
|
1208
1202
|
{
|
1209
1203
|
"kind": "field",
|
1210
|
-
"name": "
|
1211
|
-
"type": {
|
1212
|
-
"text": "string | undefined"
|
1213
|
-
},
|
1214
|
-
"description": "The name of the icon to display as a prefix.\nThe icon is displayed on the left side of the button.",
|
1215
|
-
"attribute": "prefix-icon",
|
1216
|
-
"reflects": true
|
1217
|
-
},
|
1218
|
-
{
|
1219
|
-
"kind": "field",
|
1220
|
-
"name": "postfixIcon",
|
1204
|
+
"name": "active",
|
1221
1205
|
"type": {
|
1222
|
-
"text": "
|
1206
|
+
"text": "boolean"
|
1223
1207
|
},
|
1224
|
-
"
|
1225
|
-
"
|
1208
|
+
"default": "false",
|
1209
|
+
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
|
1210
|
+
"attribute": "active",
|
1226
1211
|
"reflects": true
|
1227
1212
|
},
|
1228
1213
|
{
|
1229
1214
|
"kind": "field",
|
1230
|
-
"name": "
|
1215
|
+
"name": "softDisabled",
|
1231
1216
|
"type": {
|
1232
|
-
"text": "
|
1217
|
+
"text": "boolean"
|
1233
1218
|
},
|
1234
|
-
"
|
1235
|
-
"
|
1236
|
-
"attribute": "
|
1219
|
+
"default": "false",
|
1220
|
+
"description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
|
1221
|
+
"attribute": "soft-disabled"
|
1237
1222
|
},
|
1238
1223
|
{
|
1239
1224
|
"kind": "field",
|
@@ -1241,111 +1226,135 @@
|
|
1241
1226
|
"type": {
|
1242
1227
|
"text": "ButtonSize"
|
1243
1228
|
},
|
1244
|
-
"description": "
|
1229
|
+
"description": "Simplebutton size is a super set of all the sizes supported by children components.",
|
1245
1230
|
"default": "32",
|
1246
1231
|
"attribute": "size",
|
1247
|
-
"reflects": true
|
1248
|
-
"inheritedFrom": {
|
1249
|
-
"name": "Buttonsimple",
|
1250
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
1251
|
-
}
|
1252
|
-
},
|
1253
|
-
{
|
1254
|
-
"kind": "field",
|
1255
|
-
"name": "color",
|
1256
|
-
"type": {
|
1257
|
-
"text": "ButtonColor"
|
1258
|
-
},
|
1259
|
-
"description": "There are 5 colors for button: positive, negative, accent, promotional, default.",
|
1260
|
-
"default": "default",
|
1261
|
-
"attribute": "color"
|
1232
|
+
"reflects": true
|
1262
1233
|
},
|
1263
1234
|
{
|
1264
1235
|
"kind": "field",
|
1265
1236
|
"name": "role",
|
1266
1237
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
1267
|
-
"default": "
|
1238
|
+
"default": "button",
|
1268
1239
|
"attribute": "role",
|
1269
|
-
"reflects": true
|
1240
|
+
"reflects": true
|
1241
|
+
},
|
1242
|
+
{
|
1243
|
+
"kind": "field",
|
1244
|
+
"name": "type",
|
1270
1245
|
"type": {
|
1271
|
-
"text": "
|
1246
|
+
"text": "ButtonType"
|
1272
1247
|
},
|
1273
|
-
"
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1248
|
+
"description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
|
1249
|
+
"default": "button",
|
1250
|
+
"attribute": "type",
|
1251
|
+
"reflects": true
|
1277
1252
|
},
|
1278
1253
|
{
|
1279
1254
|
"kind": "method",
|
1280
|
-
"name": "
|
1281
|
-
"privacy": "
|
1255
|
+
"name": "executeAction",
|
1256
|
+
"privacy": "protected"
|
1257
|
+
},
|
1258
|
+
{
|
1259
|
+
"kind": "method",
|
1260
|
+
"name": "setActive",
|
1261
|
+
"privacy": "protected",
|
1282
1262
|
"parameters": [
|
1263
|
+
{
|
1264
|
+
"name": "element",
|
1265
|
+
"type": {
|
1266
|
+
"text": "HTMLElement"
|
1267
|
+
},
|
1268
|
+
"description": "The button element"
|
1269
|
+
},
|
1283
1270
|
{
|
1284
1271
|
"name": "active",
|
1285
1272
|
"type": {
|
1286
1273
|
"text": "boolean"
|
1287
1274
|
},
|
1288
|
-
"description": "The active state
|
1275
|
+
"description": "The active state of the element"
|
1289
1276
|
}
|
1290
1277
|
],
|
1291
|
-
"description": "
|
1278
|
+
"description": "Sets the aria-pressed attribute based on the active state of the button."
|
1292
1279
|
},
|
1293
1280
|
{
|
1294
1281
|
"kind": "method",
|
1295
|
-
"name": "
|
1282
|
+
"name": "setSoftDisabled",
|
1296
1283
|
"privacy": "private",
|
1297
1284
|
"parameters": [
|
1298
1285
|
{
|
1299
|
-
"name": "
|
1286
|
+
"name": "element",
|
1300
1287
|
"type": {
|
1301
|
-
"text": "
|
1288
|
+
"text": "HTMLElement"
|
1302
1289
|
},
|
1303
|
-
"description": "The
|
1290
|
+
"description": "The button element."
|
1291
|
+
},
|
1292
|
+
{
|
1293
|
+
"name": "softDisabled",
|
1294
|
+
"type": {
|
1295
|
+
"text": "boolean"
|
1296
|
+
},
|
1297
|
+
"description": "The soft-disabled state."
|
1304
1298
|
}
|
1305
1299
|
],
|
1306
|
-
"description": "Sets the
|
1300
|
+
"description": "Sets the soft-disabled attribute for the button.\nWhen soft-disabled, the button looks to be disabled but remains focusable and clickable.\nAlso sets/removes aria-disabled attribute."
|
1307
1301
|
},
|
1308
1302
|
{
|
1309
1303
|
"kind": "method",
|
1310
|
-
"name": "
|
1304
|
+
"name": "setDisabled",
|
1311
1305
|
"privacy": "private",
|
1312
1306
|
"parameters": [
|
1313
1307
|
{
|
1314
|
-
"name": "
|
1308
|
+
"name": "element",
|
1315
1309
|
"type": {
|
1316
|
-
"text": "
|
1310
|
+
"text": "HTMLElement"
|
1317
1311
|
},
|
1318
|
-
"description": "The
|
1312
|
+
"description": "The button element."
|
1313
|
+
},
|
1314
|
+
{
|
1315
|
+
"name": "disabled",
|
1316
|
+
"type": {
|
1317
|
+
"text": "boolean"
|
1318
|
+
},
|
1319
|
+
"description": "The disabled state."
|
1319
1320
|
}
|
1320
1321
|
],
|
1321
|
-
"description": "Sets the
|
1322
|
+
"description": "Sets the disabled attribute for the button.\nWhen disabled, the button is not focusable or clickable, and tabindex is set to -1.\nThe previous tabindex is stored and restored when enabled.\nAlso sets/removes aria-disabled attribute."
|
1322
1323
|
},
|
1323
1324
|
{
|
1324
1325
|
"kind": "method",
|
1325
|
-
"name": "
|
1326
|
+
"name": "triggerClickEvent",
|
1327
|
+
"privacy": "private"
|
1328
|
+
},
|
1329
|
+
{
|
1330
|
+
"kind": "method",
|
1331
|
+
"name": "handleKeyDown",
|
1326
1332
|
"privacy": "private",
|
1327
1333
|
"parameters": [
|
1328
1334
|
{
|
1329
|
-
"name": "
|
1335
|
+
"name": "event",
|
1330
1336
|
"type": {
|
1331
|
-
"text": "
|
1337
|
+
"text": "KeyboardEvent"
|
1332
1338
|
},
|
1333
|
-
"description": "The
|
1339
|
+
"description": "The keyboard event."
|
1334
1340
|
}
|
1335
1341
|
],
|
1336
|
-
"description": "
|
1342
|
+
"description": "Handles the keydown event on the button.\nIf the key is 'Enter' or 'Space', the button is pressed.\nIf the key is 'Enter', the button is pressed. The native HTML button works in the same way."
|
1337
1343
|
},
|
1338
1344
|
{
|
1339
1345
|
"kind": "method",
|
1340
|
-
"name": "
|
1346
|
+
"name": "handleKeyUp",
|
1341
1347
|
"privacy": "private",
|
1342
|
-
"description": "Infers the type of button based on the presence of slot and/or prefix and postfix icons.",
|
1343
1348
|
"parameters": [
|
1344
1349
|
{
|
1345
|
-
"
|
1346
|
-
"
|
1350
|
+
"name": "event",
|
1351
|
+
"type": {
|
1352
|
+
"text": "KeyboardEvent"
|
1353
|
+
},
|
1354
|
+
"description": "The keyboard event."
|
1347
1355
|
}
|
1348
|
-
]
|
1356
|
+
],
|
1357
|
+
"description": "Handles the keyup event on the button.\nIf the key is 'Enter' or 'Space', the button is clicked.\nIf the key is 'Space', the button is pressed. The native HTML button works in the same way."
|
1349
1358
|
},
|
1350
1359
|
{
|
1351
1360
|
"kind": "field",
|
@@ -1376,170 +1385,238 @@
|
|
1376
1385
|
"name": "DisabledMixin",
|
1377
1386
|
"module": "utils/mixins/DisabledMixin.js"
|
1378
1387
|
}
|
1379
|
-
}
|
1388
|
+
}
|
1389
|
+
],
|
1390
|
+
"attributes": [
|
1380
1391
|
{
|
1381
|
-
"kind": "field",
|
1382
1392
|
"name": "active",
|
1383
1393
|
"type": {
|
1384
1394
|
"text": "boolean"
|
1385
1395
|
},
|
1386
1396
|
"default": "false",
|
1387
1397
|
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
|
1388
|
-
"
|
1389
|
-
"reflects": true,
|
1390
|
-
"inheritedFrom": {
|
1391
|
-
"name": "Buttonsimple",
|
1392
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
1393
|
-
}
|
1398
|
+
"fieldName": "active"
|
1394
1399
|
},
|
1395
1400
|
{
|
1396
|
-
"
|
1397
|
-
"name": "softDisabled",
|
1401
|
+
"name": "soft-disabled",
|
1398
1402
|
"type": {
|
1399
1403
|
"text": "boolean"
|
1400
1404
|
},
|
1401
1405
|
"default": "false",
|
1402
1406
|
"description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
|
1403
|
-
"
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1407
|
+
"fieldName": "softDisabled"
|
1408
|
+
},
|
1409
|
+
{
|
1410
|
+
"name": "size",
|
1411
|
+
"type": {
|
1412
|
+
"text": "ButtonSize"
|
1413
|
+
},
|
1414
|
+
"description": "Simplebutton size is a super set of all the sizes supported by children components.",
|
1415
|
+
"default": "32",
|
1416
|
+
"fieldName": "size"
|
1417
|
+
},
|
1418
|
+
{
|
1419
|
+
"name": "role",
|
1420
|
+
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
1421
|
+
"default": "button",
|
1422
|
+
"fieldName": "role"
|
1408
1423
|
},
|
1409
1424
|
{
|
1410
|
-
"kind": "field",
|
1411
1425
|
"name": "type",
|
1412
1426
|
"type": {
|
1413
1427
|
"text": "ButtonType"
|
1414
1428
|
},
|
1415
1429
|
"description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
|
1416
1430
|
"default": "button",
|
1417
|
-
"
|
1418
|
-
"reflects": true,
|
1419
|
-
"inheritedFrom": {
|
1420
|
-
"name": "Buttonsimple",
|
1421
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
1422
|
-
}
|
1431
|
+
"fieldName": "type"
|
1423
1432
|
},
|
1424
1433
|
{
|
1425
|
-
"
|
1426
|
-
"
|
1427
|
-
|
1434
|
+
"name": "tabIndex",
|
1435
|
+
"type": {
|
1436
|
+
"text": "number"
|
1437
|
+
},
|
1438
|
+
"default": "0",
|
1439
|
+
"description": "This property specifies the tab order of the element.",
|
1440
|
+
"fieldName": "tabIndex",
|
1428
1441
|
"inheritedFrom": {
|
1429
|
-
"name": "
|
1430
|
-
"module": "
|
1442
|
+
"name": "TabIndexMixin",
|
1443
|
+
"module": "src/utils/mixins/TabIndexMixin.ts"
|
1431
1444
|
}
|
1432
1445
|
},
|
1433
1446
|
{
|
1434
|
-
"
|
1435
|
-
"
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
"text": "HTMLElement"
|
1442
|
-
},
|
1443
|
-
"description": "The button element"
|
1444
|
-
},
|
1445
|
-
{
|
1446
|
-
"name": "active",
|
1447
|
-
"type": {
|
1448
|
-
"text": "boolean"
|
1449
|
-
},
|
1450
|
-
"description": "The active state of the element"
|
1451
|
-
}
|
1452
|
-
],
|
1453
|
-
"description": "Sets the aria-pressed attribute based on the active state of the button.",
|
1447
|
+
"name": "disabled",
|
1448
|
+
"type": {
|
1449
|
+
"text": "boolean"
|
1450
|
+
},
|
1451
|
+
"default": "false",
|
1452
|
+
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
1453
|
+
"fieldName": "disabled",
|
1454
1454
|
"inheritedFrom": {
|
1455
|
-
"name": "
|
1456
|
-
"module": "
|
1455
|
+
"name": "DisabledMixin",
|
1456
|
+
"module": "src/utils/mixins/DisabledMixin.ts"
|
1457
1457
|
}
|
1458
|
+
}
|
1459
|
+
],
|
1460
|
+
"mixins": [
|
1461
|
+
{
|
1462
|
+
"name": "TabIndexMixin",
|
1463
|
+
"module": "/src/utils/mixins/TabIndexMixin"
|
1458
1464
|
},
|
1459
1465
|
{
|
1460
|
-
"
|
1461
|
-
"
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1466
|
+
"name": "DisabledMixin",
|
1467
|
+
"module": "/src/utils/mixins/DisabledMixin"
|
1468
|
+
}
|
1469
|
+
],
|
1470
|
+
"superclass": {
|
1471
|
+
"name": "Component",
|
1472
|
+
"module": "/src/models"
|
1473
|
+
},
|
1474
|
+
"tagName": "mdc-buttonsimple",
|
1475
|
+
"jsDoc": "/**\n * `mdc-buttonsimple` is a component that can be configured in various ways to suit different use cases.\n * It is used as an internal component and is not intended to be used directly by consumers.\n * Consumers should use the `mdc-button` component instead.\n *\n * @tagname mdc-buttonsimple\n */",
|
1476
|
+
"customElement": true
|
1477
|
+
}
|
1478
|
+
],
|
1479
|
+
"exports": [
|
1480
|
+
{
|
1481
|
+
"kind": "js",
|
1482
|
+
"name": "default",
|
1483
|
+
"declaration": {
|
1484
|
+
"name": "Buttonsimple",
|
1485
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
1486
|
+
}
|
1487
|
+
}
|
1488
|
+
]
|
1489
|
+
},
|
1490
|
+
{
|
1491
|
+
"kind": "javascript-module",
|
1492
|
+
"path": "components/checkbox/checkbox.component.js",
|
1493
|
+
"declarations": [
|
1494
|
+
{
|
1495
|
+
"kind": "class",
|
1496
|
+
"description": "Checkboxes allow users to select multiple options from a list or turn an item/feature on or off.\nThese are often used in forms, settings, and selections in lists.\n\nA checkbox component contains an optional label and an optional helper text.\n\nTo create a group of checkboxes, use the FormFieldGroup component.",
|
1497
|
+
"name": "Checkbox",
|
1498
|
+
"cssProperties": [
|
1499
|
+
{
|
1500
|
+
"description": "Allows customization of the background color on hover.",
|
1501
|
+
"name": "--mdc-checkbox-background-color-hover"
|
1502
|
+
},
|
1503
|
+
{
|
1504
|
+
"description": "Border color in high contrast.",
|
1505
|
+
"name": "--mdc-checkbox-border-color"
|
1506
|
+
},
|
1507
|
+
{
|
1508
|
+
"description": "Background color for a selected checkbox.",
|
1509
|
+
"name": "--mdc-checkbox-checked-background-color"
|
1510
|
+
},
|
1511
|
+
{
|
1512
|
+
"description": "Background color for a selected checkbox when hovered.",
|
1513
|
+
"name": "--mdc-checkbox-checked-background-color-hover"
|
1514
|
+
},
|
1515
|
+
{
|
1516
|
+
"description": "Background color for a selected checkbox when pressed.",
|
1517
|
+
"name": "--mdc-checkbox-checked-pressed-icon-color"
|
1518
|
+
},
|
1519
|
+
{
|
1520
|
+
"description": "Background color for a disabled checkbox.",
|
1521
|
+
"name": "--mdc-checkbox-disabled-background-color"
|
1522
|
+
},
|
1523
|
+
{
|
1524
|
+
"description": "Border color for a disabled checkbox.",
|
1525
|
+
"name": "--mdc-checkbox-disabled-border-color"
|
1526
|
+
},
|
1527
|
+
{
|
1528
|
+
"description": "Background color for a disabled, selected checkbox.",
|
1529
|
+
"name": "--mdc-checkbox-disabled-checked-icon-color"
|
1530
|
+
},
|
1531
|
+
{
|
1532
|
+
"description": "Icon color for a disabled checkbox.",
|
1533
|
+
"name": "--mdc-checkbox-disabled-icon-color"
|
1534
|
+
},
|
1535
|
+
{
|
1536
|
+
"description": "Background color for an unselected checkbox.",
|
1537
|
+
"name": "--mdc-checkbox-icon-background-color"
|
1538
|
+
},
|
1539
|
+
{
|
1540
|
+
"description": "Default background color for an unselected checkbox.",
|
1541
|
+
"name": "--mdc-checkbox-icon-border-color"
|
1542
|
+
},
|
1543
|
+
{
|
1544
|
+
"description": "Icon color for an unselected checkbox.",
|
1545
|
+
"name": "--mdc-checkbox-icon-color"
|
1546
|
+
},
|
1547
|
+
{
|
1548
|
+
"description": "Background color for a selected checkbox when pressed.",
|
1549
|
+
"name": "--mdc-checkbox-pressed-icon-color"
|
1550
|
+
}
|
1551
|
+
],
|
1552
|
+
"members": [
|
1553
|
+
{
|
1554
|
+
"kind": "field",
|
1555
|
+
"name": "checked",
|
1556
|
+
"type": {
|
1557
|
+
"text": "boolean"
|
1558
|
+
},
|
1559
|
+
"default": "false",
|
1560
|
+
"description": "Determines whether the checkbox is selected or unselected.",
|
1561
|
+
"attribute": "checked",
|
1562
|
+
"reflects": true
|
1563
|
+
},
|
1564
|
+
{
|
1565
|
+
"kind": "field",
|
1566
|
+
"name": "indeterminate",
|
1567
|
+
"type": {
|
1568
|
+
"text": "boolean"
|
1569
|
+
},
|
1570
|
+
"default": "false",
|
1571
|
+
"description": "This property is used to determine the parent checkbox in a nested checkbox group.\nIf any one of the children is unselected, then the parent checkbox will be indeterminate.\nIf all children are either selected or unselected, then the parent checkbox will not be indeterminate.",
|
1572
|
+
"attribute": "indeterminate",
|
1573
|
+
"reflects": true
|
1484
1574
|
},
|
1485
1575
|
{
|
1486
1576
|
"kind": "method",
|
1487
|
-
"name": "
|
1577
|
+
"name": "setFormValue",
|
1488
1578
|
"privacy": "private",
|
1489
|
-
"
|
1490
|
-
{
|
1491
|
-
"name": "element",
|
1492
|
-
"type": {
|
1493
|
-
"text": "HTMLElement"
|
1494
|
-
},
|
1495
|
-
"description": "The button element."
|
1496
|
-
},
|
1497
|
-
{
|
1498
|
-
"name": "disabled",
|
1499
|
-
"type": {
|
1500
|
-
"text": "boolean"
|
1501
|
-
},
|
1502
|
-
"description": "The disabled state."
|
1503
|
-
}
|
1504
|
-
],
|
1505
|
-
"description": "Sets the disabled attribute for the button.\nWhen disabled, the button is not focusable or clickable, and tabindex is set to -1.\nThe previous tabindex is stored and restored when enabled.\nAlso sets/removes aria-disabled attribute.",
|
1506
|
-
"inheritedFrom": {
|
1507
|
-
"name": "Buttonsimple",
|
1508
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
1509
|
-
}
|
1579
|
+
"description": "Updates the form value to reflect the current state of the checkbox.\nIf checked, the value is set to either the user-provided value or 'on' if no value is provided.\nIf unchecked, the value is set to null."
|
1510
1580
|
},
|
1511
1581
|
{
|
1512
1582
|
"kind": "method",
|
1513
|
-
"name": "
|
1583
|
+
"name": "toggleState",
|
1514
1584
|
"privacy": "private",
|
1515
|
-
"
|
1516
|
-
"
|
1517
|
-
|
1518
|
-
|
1585
|
+
"return": {
|
1586
|
+
"type": {
|
1587
|
+
"text": "void"
|
1588
|
+
}
|
1589
|
+
},
|
1590
|
+
"description": "Toggles the state of the checkbox element.\nIf the element is not disabled, then\nthe checked property is toggled and the indeterminate property is set to false."
|
1519
1591
|
},
|
1520
1592
|
{
|
1521
1593
|
"kind": "method",
|
1522
|
-
"name": "
|
1523
|
-
"privacy": "
|
1594
|
+
"name": "handleChange",
|
1595
|
+
"privacy": "public",
|
1596
|
+
"return": {
|
1597
|
+
"type": {
|
1598
|
+
"text": "void"
|
1599
|
+
}
|
1600
|
+
},
|
1524
1601
|
"parameters": [
|
1525
1602
|
{
|
1526
1603
|
"name": "event",
|
1527
1604
|
"type": {
|
1528
|
-
"text": "
|
1529
|
-
}
|
1530
|
-
"description": "The keyboard event."
|
1605
|
+
"text": "Event"
|
1606
|
+
}
|
1531
1607
|
}
|
1532
1608
|
],
|
1533
|
-
"description": "
|
1534
|
-
"inheritedFrom": {
|
1535
|
-
"name": "Buttonsimple",
|
1536
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
1537
|
-
}
|
1609
|
+
"description": "Toggles the state of the checkbox element.\nand dispatch the new change event."
|
1538
1610
|
},
|
1539
1611
|
{
|
1540
1612
|
"kind": "method",
|
1541
|
-
"name": "
|
1613
|
+
"name": "handleKeyDown",
|
1542
1614
|
"privacy": "private",
|
1615
|
+
"return": {
|
1616
|
+
"type": {
|
1617
|
+
"text": "void"
|
1618
|
+
}
|
1619
|
+
},
|
1543
1620
|
"parameters": [
|
1544
1621
|
{
|
1545
1622
|
"name": "event",
|
@@ -1549,444 +1626,393 @@
|
|
1549
1626
|
"description": "The keyboard event."
|
1550
1627
|
}
|
1551
1628
|
],
|
1552
|
-
"description": "Handles the
|
1553
|
-
"inheritedFrom": {
|
1554
|
-
"name": "Buttonsimple",
|
1555
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
1556
|
-
}
|
1557
|
-
}
|
1558
|
-
],
|
1559
|
-
"attributes": [
|
1560
|
-
{
|
1561
|
-
"name": "prefix-icon",
|
1562
|
-
"type": {
|
1563
|
-
"text": "string | undefined"
|
1564
|
-
},
|
1565
|
-
"description": "The name of the icon to display as a prefix.\nThe icon is displayed on the left side of the button.",
|
1566
|
-
"fieldName": "prefixIcon"
|
1629
|
+
"description": "Handles the keydown event on the checkbox.\nWhen the user presses Enter, the form is submitted."
|
1567
1630
|
},
|
1568
1631
|
{
|
1569
|
-
"
|
1570
|
-
"
|
1571
|
-
"text": "string | undefined"
|
1572
|
-
},
|
1573
|
-
"description": "The name of the icon to display as a postfix.\nThe icon is displayed on the right side of the button.",
|
1574
|
-
"fieldName": "postfixIcon"
|
1632
|
+
"kind": "field",
|
1633
|
+
"name": "internals"
|
1575
1634
|
},
|
1576
1635
|
{
|
1577
|
-
"
|
1636
|
+
"kind": "field",
|
1637
|
+
"name": "helpTextType",
|
1578
1638
|
"type": {
|
1579
|
-
"text": "
|
1639
|
+
"text": "ValidationType"
|
1580
1640
|
},
|
1581
|
-
"description": "
|
1582
|
-
"
|
1583
|
-
"
|
1641
|
+
"description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
|
1642
|
+
"attribute": "help-text-type",
|
1643
|
+
"reflects": true,
|
1644
|
+
"default": "undefined as unknown",
|
1645
|
+
"inheritedFrom": {
|
1646
|
+
"name": "FormfieldWrapper",
|
1647
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1648
|
+
}
|
1584
1649
|
},
|
1585
1650
|
{
|
1586
|
-
"
|
1651
|
+
"kind": "field",
|
1652
|
+
"name": "name",
|
1587
1653
|
"type": {
|
1588
|
-
"text": "
|
1654
|
+
"text": "string"
|
1589
1655
|
},
|
1590
|
-
"
|
1591
|
-
"
|
1592
|
-
"
|
1656
|
+
"default": "''",
|
1657
|
+
"description": "Indicates the name of the component group (ex: checkbox, radio group).\nThey are used to group elements in a form together.",
|
1658
|
+
"attribute": "name",
|
1659
|
+
"reflects": true,
|
1593
1660
|
"inheritedFrom": {
|
1594
|
-
"name": "
|
1595
|
-
"module": "
|
1661
|
+
"name": "NameMixin",
|
1662
|
+
"module": "utils/mixins/NameMixin.js"
|
1596
1663
|
}
|
1597
1664
|
},
|
1598
1665
|
{
|
1599
|
-
"
|
1666
|
+
"kind": "field",
|
1667
|
+
"name": "value",
|
1600
1668
|
"type": {
|
1601
|
-
"text": "
|
1602
|
-
},
|
1603
|
-
"description": "There are 5 colors for button: positive, negative, accent, promotional, default.",
|
1604
|
-
"default": "default",
|
1605
|
-
"fieldName": "color"
|
1606
|
-
},
|
1607
|
-
{
|
1608
|
-
"name": "role",
|
1609
|
-
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
1610
|
-
"default": "'button'",
|
1611
|
-
"fieldName": "role",
|
1612
|
-
"type": {
|
1613
|
-
"text": "string"
|
1669
|
+
"text": "string"
|
1614
1670
|
},
|
1671
|
+
"default": "''",
|
1672
|
+
"description": "Indicates the value of the component group (ex: input, checkbox, radio, select etc...)",
|
1673
|
+
"attribute": "value",
|
1674
|
+
"reflects": true,
|
1615
1675
|
"inheritedFrom": {
|
1616
|
-
"name": "
|
1617
|
-
"module": "
|
1676
|
+
"name": "ValueMixin",
|
1677
|
+
"module": "utils/mixins/ValueMixin.js"
|
1618
1678
|
}
|
1619
1679
|
},
|
1620
1680
|
{
|
1621
|
-
"
|
1681
|
+
"kind": "field",
|
1682
|
+
"name": "dataAriaLabel",
|
1622
1683
|
"type": {
|
1623
|
-
"text": "
|
1684
|
+
"text": "string | null"
|
1624
1685
|
},
|
1625
|
-
"default": "
|
1626
|
-
"description": "
|
1627
|
-
"
|
1686
|
+
"default": "null",
|
1687
|
+
"description": "Defines a string value that labels the current element.\nThe Aria-Label attribute to be set for accessibility.",
|
1688
|
+
"attribute": "data-aria-label",
|
1689
|
+
"reflects": true,
|
1628
1690
|
"inheritedFrom": {
|
1629
|
-
"name": "
|
1630
|
-
"module": "
|
1691
|
+
"name": "DataAriaLabelMixin",
|
1692
|
+
"module": "utils/mixins/DataAriaLabelMixin.js"
|
1631
1693
|
}
|
1632
1694
|
},
|
1633
1695
|
{
|
1696
|
+
"kind": "field",
|
1634
1697
|
"name": "disabled",
|
1635
1698
|
"type": {
|
1636
1699
|
"text": "boolean"
|
1637
1700
|
},
|
1638
1701
|
"default": "false",
|
1639
1702
|
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
1640
|
-
"
|
1703
|
+
"attribute": "disabled",
|
1704
|
+
"reflects": true,
|
1641
1705
|
"inheritedFrom": {
|
1642
1706
|
"name": "DisabledMixin",
|
1643
|
-
"module": "
|
1707
|
+
"module": "utils/mixins/DisabledMixin.js"
|
1644
1708
|
}
|
1645
1709
|
},
|
1646
1710
|
{
|
1647
|
-
"
|
1711
|
+
"kind": "field",
|
1712
|
+
"name": "label",
|
1648
1713
|
"type": {
|
1649
|
-
"text": "
|
1714
|
+
"text": "string | undefined"
|
1650
1715
|
},
|
1651
|
-
"
|
1652
|
-
"
|
1653
|
-
"
|
1716
|
+
"description": "The label of the input field. It is linked to the input field using the `for` attribute.",
|
1717
|
+
"attribute": "label",
|
1718
|
+
"reflects": true,
|
1654
1719
|
"inheritedFrom": {
|
1655
|
-
"name": "
|
1656
|
-
"module": "
|
1720
|
+
"name": "FormfieldWrapper",
|
1721
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1657
1722
|
}
|
1658
1723
|
},
|
1659
1724
|
{
|
1660
|
-
"
|
1725
|
+
"kind": "field",
|
1726
|
+
"name": "requiredLabel",
|
1661
1727
|
"type": {
|
1662
|
-
"text": "
|
1728
|
+
"text": "string | undefined"
|
1663
1729
|
},
|
1664
|
-
"
|
1665
|
-
"
|
1666
|
-
"
|
1730
|
+
"description": "The required label of the input field.\nWhen an appropriate string value is set,\nthe input field is marked as required and the label is appended with this text.",
|
1731
|
+
"attribute": "required-label",
|
1732
|
+
"reflects": true,
|
1667
1733
|
"inheritedFrom": {
|
1668
|
-
"name": "
|
1669
|
-
"module": "
|
1734
|
+
"name": "FormfieldWrapper",
|
1735
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1670
1736
|
}
|
1671
1737
|
},
|
1672
1738
|
{
|
1673
|
-
"
|
1674
|
-
"
|
1675
|
-
|
1676
|
-
|
1677
|
-
"
|
1678
|
-
"default": "button",
|
1679
|
-
"fieldName": "type",
|
1739
|
+
"kind": "field",
|
1740
|
+
"name": "id",
|
1741
|
+
"default": "`mdc-input-${uuidv4()}`",
|
1742
|
+
"description": "The unique id of the input field. It is used to link the input field with the label.",
|
1743
|
+
"attribute": "id",
|
1680
1744
|
"inheritedFrom": {
|
1681
|
-
"name": "
|
1682
|
-
"module": "
|
1745
|
+
"name": "FormfieldWrapper",
|
1746
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1683
1747
|
}
|
1684
|
-
}
|
1685
|
-
],
|
1686
|
-
"superclass": {
|
1687
|
-
"name": "Buttonsimple",
|
1688
|
-
"module": "/src/components/buttonsimple/buttonsimple.component"
|
1689
|
-
},
|
1690
|
-
"tagName": "mdc-button",
|
1691
|
-
"jsDoc": "/**\n * `mdc-button` is a component that can be configured in various ways to suit different use cases.\n *\n * Button Variants:\n * - **Primary**: Solid background color.\n * - **Secondary**: Transparent background with a solid border.\n * - **Tertiary**: No background or border, appears as plain text but retains all button functionalities.\n *\n * Button Colors:\n * - **Positive**: Green color.\n * - **Negative**: Red color.\n * - **Accent**: Blue color.\n * - **Promotional**: Purple color.\n * - **Default**: White color.\n *\n * Button Sizes (in REM units):\n * - **Pill button**: 40, 32, 28, 24.\n * - **Icon button**: 64, 52, 40, 32, 28, 24.\n * - **Tertiary icon button**: 20.\n *\n * Button Types:\n * - **Pill button**: A button that contains text value. Commonly used for call to action, tags, or filters.\n * - **Pill button with icons**: A button containing an icon either on the left or right side of the button.\n * - **Icon button**: A button represented by just an icon without any text.\n * The type of button is inferred based on the presence of slot and/or prefix and postfix icons.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-button\n *\n * @slot - Text label of the button.\n */",
|
1692
|
-
"customElement": true
|
1693
|
-
}
|
1694
|
-
],
|
1695
|
-
"exports": [
|
1696
|
-
{
|
1697
|
-
"kind": "js",
|
1698
|
-
"name": "default",
|
1699
|
-
"declaration": {
|
1700
|
-
"name": "Button",
|
1701
|
-
"module": "components/button/button.component.js"
|
1702
|
-
}
|
1703
|
-
}
|
1704
|
-
]
|
1705
|
-
},
|
1706
|
-
{
|
1707
|
-
"kind": "javascript-module",
|
1708
|
-
"path": "components/buttonsimple/buttonsimple.component.js",
|
1709
|
-
"declarations": [
|
1710
|
-
{
|
1711
|
-
"kind": "class",
|
1712
|
-
"description": "`mdc-buttonsimple` is a component that can be configured in various ways to suit different use cases.\nIt is used as an internal component and is not intended to be used directly by consumers.\nConsumers should use the `mdc-button` component instead.",
|
1713
|
-
"name": "Buttonsimple",
|
1714
|
-
"members": [
|
1715
|
-
{
|
1716
|
-
"kind": "field",
|
1717
|
-
"name": "active",
|
1718
|
-
"type": {
|
1719
|
-
"text": "boolean"
|
1720
|
-
},
|
1721
|
-
"default": "false",
|
1722
|
-
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
|
1723
|
-
"attribute": "active",
|
1724
|
-
"reflects": true
|
1725
1748
|
},
|
1726
1749
|
{
|
1727
1750
|
"kind": "field",
|
1728
|
-
"name": "
|
1751
|
+
"name": "helpText",
|
1729
1752
|
"type": {
|
1730
|
-
"text": "
|
1753
|
+
"text": "string | undefined"
|
1731
1754
|
},
|
1732
|
-
"
|
1733
|
-
"
|
1734
|
-
"
|
1755
|
+
"description": "The help text that is displayed below the input field.",
|
1756
|
+
"attribute": "help-text",
|
1757
|
+
"reflects": true,
|
1758
|
+
"inheritedFrom": {
|
1759
|
+
"name": "FormfieldWrapper",
|
1760
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1761
|
+
}
|
1735
1762
|
},
|
1736
1763
|
{
|
1737
|
-
"kind": "
|
1738
|
-
"name": "
|
1739
|
-
"
|
1740
|
-
|
1764
|
+
"kind": "method",
|
1765
|
+
"name": "renderLabelElement",
|
1766
|
+
"privacy": "protected",
|
1767
|
+
"description": "creates the label element when the label property is set.\nid is used to link the label with the input field.",
|
1768
|
+
"return": {
|
1769
|
+
"type": {
|
1770
|
+
"text": ""
|
1771
|
+
}
|
1741
1772
|
},
|
1742
|
-
"
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
},
|
1747
|
-
{
|
1748
|
-
"kind": "field",
|
1749
|
-
"name": "role",
|
1750
|
-
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
1751
|
-
"default": "button",
|
1752
|
-
"attribute": "role",
|
1753
|
-
"reflects": true
|
1773
|
+
"inheritedFrom": {
|
1774
|
+
"name": "FormfieldWrapper",
|
1775
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1776
|
+
}
|
1754
1777
|
},
|
1755
1778
|
{
|
1756
|
-
"kind": "
|
1757
|
-
"name": "
|
1758
|
-
"
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
"attribute": "type",
|
1764
|
-
"reflects": true
|
1779
|
+
"kind": "method",
|
1780
|
+
"name": "renderRequiredLabel",
|
1781
|
+
"privacy": "protected",
|
1782
|
+
"inheritedFrom": {
|
1783
|
+
"name": "FormfieldWrapper",
|
1784
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1785
|
+
}
|
1765
1786
|
},
|
1766
1787
|
{
|
1767
1788
|
"kind": "method",
|
1768
|
-
"name": "
|
1769
|
-
"privacy": "protected"
|
1789
|
+
"name": "renderHelpTextIcon",
|
1790
|
+
"privacy": "protected",
|
1791
|
+
"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.",
|
1792
|
+
"return": {
|
1793
|
+
"type": {
|
1794
|
+
"text": ""
|
1795
|
+
}
|
1796
|
+
},
|
1797
|
+
"inheritedFrom": {
|
1798
|
+
"name": "FormfieldWrapper",
|
1799
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1800
|
+
}
|
1770
1801
|
},
|
1771
1802
|
{
|
1772
1803
|
"kind": "method",
|
1773
|
-
"name": "
|
1804
|
+
"name": "renderHelpText",
|
1774
1805
|
"privacy": "protected",
|
1775
|
-
"
|
1776
|
-
|
1777
|
-
|
1778
|
-
"
|
1779
|
-
"text": "HTMLElement"
|
1780
|
-
},
|
1781
|
-
"description": "The button element"
|
1782
|
-
},
|
1783
|
-
{
|
1784
|
-
"name": "active",
|
1785
|
-
"type": {
|
1786
|
-
"text": "boolean"
|
1787
|
-
},
|
1788
|
-
"description": "The active state of the element"
|
1806
|
+
"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.",
|
1807
|
+
"return": {
|
1808
|
+
"type": {
|
1809
|
+
"text": ""
|
1789
1810
|
}
|
1790
|
-
|
1791
|
-
"
|
1811
|
+
},
|
1812
|
+
"inheritedFrom": {
|
1813
|
+
"name": "FormfieldWrapper",
|
1814
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1815
|
+
}
|
1792
1816
|
},
|
1793
1817
|
{
|
1794
1818
|
"kind": "method",
|
1795
|
-
"name": "
|
1796
|
-
"privacy": "
|
1797
|
-
"
|
1798
|
-
|
1799
|
-
|
1800
|
-
"
|
1801
|
-
"text": "HTMLElement"
|
1802
|
-
},
|
1803
|
-
"description": "The button element."
|
1804
|
-
},
|
1805
|
-
{
|
1806
|
-
"name": "softDisabled",
|
1807
|
-
"type": {
|
1808
|
-
"text": "boolean"
|
1809
|
-
},
|
1810
|
-
"description": "The soft-disabled state."
|
1819
|
+
"name": "renderLabel",
|
1820
|
+
"privacy": "protected",
|
1821
|
+
"description": "renders the mdc-label-text container that contains the label and labelInfoToggleTip.",
|
1822
|
+
"return": {
|
1823
|
+
"type": {
|
1824
|
+
"text": ""
|
1811
1825
|
}
|
1812
|
-
|
1813
|
-
"
|
1826
|
+
},
|
1827
|
+
"inheritedFrom": {
|
1828
|
+
"name": "FormfieldWrapper",
|
1829
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1830
|
+
}
|
1814
1831
|
},
|
1815
1832
|
{
|
1816
1833
|
"kind": "method",
|
1817
|
-
"name": "
|
1818
|
-
"privacy": "
|
1819
|
-
"
|
1820
|
-
|
1821
|
-
|
1822
|
-
"
|
1823
|
-
"text": "HTMLElement"
|
1824
|
-
},
|
1825
|
-
"description": "The button element."
|
1826
|
-
},
|
1827
|
-
{
|
1828
|
-
"name": "disabled",
|
1829
|
-
"type": {
|
1830
|
-
"text": "boolean"
|
1831
|
-
},
|
1832
|
-
"description": "The disabled state."
|
1834
|
+
"name": "renderHelperText",
|
1835
|
+
"privacy": "protected",
|
1836
|
+
"description": "renders the mdc-help-text container that contains the helpertext icon and helpertext.",
|
1837
|
+
"return": {
|
1838
|
+
"type": {
|
1839
|
+
"text": ""
|
1833
1840
|
}
|
1834
|
-
|
1835
|
-
"
|
1841
|
+
},
|
1842
|
+
"inheritedFrom": {
|
1843
|
+
"name": "FormfieldWrapper",
|
1844
|
+
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
1845
|
+
}
|
1846
|
+
}
|
1847
|
+
],
|
1848
|
+
"events": [
|
1849
|
+
{
|
1850
|
+
"type": {
|
1851
|
+
"text": "EventConstructor"
|
1852
|
+
}
|
1853
|
+
}
|
1854
|
+
],
|
1855
|
+
"attributes": [
|
1856
|
+
{
|
1857
|
+
"name": "checked",
|
1858
|
+
"type": {
|
1859
|
+
"text": "boolean"
|
1860
|
+
},
|
1861
|
+
"default": "false",
|
1862
|
+
"description": "Determines whether the checkbox is selected or unselected.",
|
1863
|
+
"fieldName": "checked"
|
1836
1864
|
},
|
1837
1865
|
{
|
1838
|
-
"
|
1839
|
-
"
|
1840
|
-
|
1866
|
+
"name": "indeterminate",
|
1867
|
+
"type": {
|
1868
|
+
"text": "boolean"
|
1869
|
+
},
|
1870
|
+
"default": "false",
|
1871
|
+
"description": "This property is used to determine the parent checkbox in a nested checkbox group.\nIf any one of the children is unselected, then the parent checkbox will be indeterminate.\nIf all children are either selected or unselected, then the parent checkbox will not be indeterminate.",
|
1872
|
+
"fieldName": "indeterminate"
|
1841
1873
|
},
|
1842
1874
|
{
|
1843
|
-
"
|
1844
|
-
"
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
],
|
1855
|
-
"description": "Handles the keydown event on the button.\nIf the key is 'Enter' or 'Space', the button is pressed.\nIf the key is 'Enter', the button is pressed. The native HTML button works in the same way."
|
1875
|
+
"name": "name",
|
1876
|
+
"type": {
|
1877
|
+
"text": "string"
|
1878
|
+
},
|
1879
|
+
"default": "''",
|
1880
|
+
"description": "Indicates the name of the component group (ex: checkbox, radio group).\nThey are used to group elements in a form together.",
|
1881
|
+
"fieldName": "name",
|
1882
|
+
"inheritedFrom": {
|
1883
|
+
"name": "NameMixin",
|
1884
|
+
"module": "src/utils/mixins/NameMixin.ts"
|
1885
|
+
}
|
1856
1886
|
},
|
1857
1887
|
{
|
1858
|
-
"
|
1859
|
-
"
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
],
|
1870
|
-
"description": "Handles the keyup event on the button.\nIf the key is 'Enter' or 'Space', the button is clicked.\nIf the key is 'Space', the button is pressed. The native HTML button works in the same way."
|
1888
|
+
"name": "value",
|
1889
|
+
"type": {
|
1890
|
+
"text": "string"
|
1891
|
+
},
|
1892
|
+
"default": "''",
|
1893
|
+
"description": "Indicates the value of the component group (ex: input, checkbox, radio, select etc...)",
|
1894
|
+
"fieldName": "value",
|
1895
|
+
"inheritedFrom": {
|
1896
|
+
"name": "ValueMixin",
|
1897
|
+
"module": "src/utils/mixins/ValueMixin.ts"
|
1898
|
+
}
|
1871
1899
|
},
|
1872
1900
|
{
|
1873
|
-
"
|
1874
|
-
"name": "tabIndex",
|
1901
|
+
"name": "data-aria-label",
|
1875
1902
|
"type": {
|
1876
|
-
"text": "
|
1903
|
+
"text": "string | null"
|
1877
1904
|
},
|
1878
|
-
"default": "
|
1879
|
-
"description": "
|
1880
|
-
"
|
1881
|
-
"reflects": true,
|
1905
|
+
"default": "null",
|
1906
|
+
"description": "Defines a string value that labels the current element.\nThe Aria-Label attribute to be set for accessibility.",
|
1907
|
+
"fieldName": "dataAriaLabel",
|
1882
1908
|
"inheritedFrom": {
|
1883
|
-
"name": "
|
1884
|
-
"module": "utils/mixins/
|
1909
|
+
"name": "DataAriaLabelMixin",
|
1910
|
+
"module": "src/utils/mixins/DataAriaLabelMixin.ts"
|
1885
1911
|
}
|
1886
1912
|
},
|
1887
1913
|
{
|
1888
|
-
"kind": "field",
|
1889
1914
|
"name": "disabled",
|
1890
1915
|
"type": {
|
1891
1916
|
"text": "boolean"
|
1892
1917
|
},
|
1893
1918
|
"default": "false",
|
1894
1919
|
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
1895
|
-
"
|
1896
|
-
"reflects": true,
|
1920
|
+
"fieldName": "disabled",
|
1897
1921
|
"inheritedFrom": {
|
1898
1922
|
"name": "DisabledMixin",
|
1899
|
-
"module": "utils/mixins/DisabledMixin.
|
1923
|
+
"module": "src/utils/mixins/DisabledMixin.ts"
|
1900
1924
|
}
|
1901
|
-
}
|
1902
|
-
],
|
1903
|
-
"attributes": [
|
1904
|
-
{
|
1905
|
-
"name": "active",
|
1906
|
-
"type": {
|
1907
|
-
"text": "boolean"
|
1908
|
-
},
|
1909
|
-
"default": "false",
|
1910
|
-
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
|
1911
|
-
"fieldName": "active"
|
1912
1925
|
},
|
1913
1926
|
{
|
1914
|
-
"name": "
|
1927
|
+
"name": "label",
|
1915
1928
|
"type": {
|
1916
|
-
"text": "
|
1929
|
+
"text": "string | undefined"
|
1917
1930
|
},
|
1918
|
-
"
|
1919
|
-
"
|
1920
|
-
"
|
1931
|
+
"description": "The label of the input field. It is linked to the input field using the `for` attribute.",
|
1932
|
+
"fieldName": "label",
|
1933
|
+
"inheritedFrom": {
|
1934
|
+
"name": "FormfieldWrapper",
|
1935
|
+
"module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
|
1936
|
+
}
|
1921
1937
|
},
|
1922
1938
|
{
|
1923
|
-
"name": "
|
1939
|
+
"name": "required-label",
|
1924
1940
|
"type": {
|
1925
|
-
"text": "
|
1941
|
+
"text": "string | undefined"
|
1926
1942
|
},
|
1927
|
-
"description": "
|
1928
|
-
"
|
1929
|
-
"
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
1934
|
-
"default": "button",
|
1935
|
-
"fieldName": "role"
|
1943
|
+
"description": "The required label of the input field.\nWhen an appropriate string value is set,\nthe input field is marked as required and the label is appended with this text.",
|
1944
|
+
"fieldName": "requiredLabel",
|
1945
|
+
"inheritedFrom": {
|
1946
|
+
"name": "FormfieldWrapper",
|
1947
|
+
"module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
|
1948
|
+
}
|
1936
1949
|
},
|
1937
1950
|
{
|
1938
|
-
"name": "
|
1939
|
-
"
|
1940
|
-
|
1941
|
-
|
1942
|
-
"
|
1943
|
-
|
1944
|
-
|
1951
|
+
"name": "id",
|
1952
|
+
"default": "`mdc-input-${uuidv4()}`",
|
1953
|
+
"description": "The unique id of the input field. It is used to link the input field with the label.",
|
1954
|
+
"fieldName": "id",
|
1955
|
+
"inheritedFrom": {
|
1956
|
+
"name": "FormfieldWrapper",
|
1957
|
+
"module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
|
1958
|
+
}
|
1945
1959
|
},
|
1946
1960
|
{
|
1947
|
-
"name": "
|
1961
|
+
"name": "help-text-type",
|
1948
1962
|
"type": {
|
1949
|
-
"text": "
|
1963
|
+
"text": "ValidationType"
|
1950
1964
|
},
|
1951
|
-
"
|
1952
|
-
"
|
1953
|
-
"fieldName": "tabIndex",
|
1965
|
+
"description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
|
1966
|
+
"fieldName": "helpTextType",
|
1954
1967
|
"inheritedFrom": {
|
1955
|
-
"name": "
|
1956
|
-
"module": "src/
|
1968
|
+
"name": "FormfieldWrapper",
|
1969
|
+
"module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
|
1957
1970
|
}
|
1958
1971
|
},
|
1959
1972
|
{
|
1960
|
-
"name": "
|
1973
|
+
"name": "help-text",
|
1961
1974
|
"type": {
|
1962
|
-
"text": "
|
1975
|
+
"text": "string | undefined"
|
1963
1976
|
},
|
1964
|
-
"
|
1965
|
-
"
|
1966
|
-
"fieldName": "disabled",
|
1977
|
+
"description": "The help text that is displayed below the input field.",
|
1978
|
+
"fieldName": "helpText",
|
1967
1979
|
"inheritedFrom": {
|
1968
|
-
"name": "
|
1969
|
-
"module": "src/
|
1980
|
+
"name": "FormfieldWrapper",
|
1981
|
+
"module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
|
1970
1982
|
}
|
1971
1983
|
}
|
1972
1984
|
],
|
1973
1985
|
"mixins": [
|
1974
1986
|
{
|
1975
|
-
"name": "
|
1976
|
-
"module": "/src/utils/mixins/
|
1987
|
+
"name": "NameMixin",
|
1988
|
+
"module": "/src/utils/mixins/NameMixin"
|
1977
1989
|
},
|
1978
1990
|
{
|
1979
|
-
"name": "
|
1980
|
-
"module": "/src/utils/mixins/
|
1991
|
+
"name": "ValueMixin",
|
1992
|
+
"module": "/src/utils/mixins/ValueMixin"
|
1993
|
+
},
|
1994
|
+
{
|
1995
|
+
"name": "DataAriaLabelMixin",
|
1996
|
+
"module": "/src/utils/mixins/DataAriaLabelMixin"
|
1981
1997
|
}
|
1982
1998
|
],
|
1983
1999
|
"superclass": {
|
1984
|
-
"name": "
|
1985
|
-
"module": "/src/
|
2000
|
+
"name": "FormfieldWrapper",
|
2001
|
+
"module": "/src/components/formfieldwrapper/formfieldwrapper.component"
|
1986
2002
|
},
|
1987
|
-
"tagName": "mdc-
|
1988
|
-
"jsDoc": "/**\n *
|
1989
|
-
"customElement": true
|
2003
|
+
"tagName": "mdc-checkbox",
|
2004
|
+
"jsDoc": "/**\n * Checkboxes allow users to select multiple options from a list or turn an item/feature on or off.\n * These are often used in forms, settings, and selections in lists.\n *\n * A checkbox component contains an optional label and an optional helper text.\n *\n * To create a group of checkboxes, use the FormFieldGroup component.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-checkbox\n *\n * @cssproperty --mdc-checkbox-background-color-hover - Allows customization of the background color on hover.\n * @cssproperty --mdc-checkbox-border-color - Border color in high contrast.\n * @cssproperty --mdc-checkbox-checked-background-color - Background color for a selected checkbox.\n * @cssproperty --mdc-checkbox-checked-background-color-hover - Background color for a selected checkbox when hovered.\n * @cssproperty --mdc-checkbox-checked-pressed-icon-color - Background color for a selected checkbox when pressed.\n * @cssproperty --mdc-checkbox-disabled-background-color - Background color for a disabled checkbox.\n * @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.\n * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.\n * @cssproperty --mdc-checkbox-disabled-icon-color - Icon color for a disabled checkbox.\n * @cssproperty --mdc-checkbox-icon-background-color - Background color for an unselected checkbox.\n * @cssproperty --mdc-checkbox-icon-border-color - Default background color for an unselected checkbox.\n * @cssproperty --mdc-checkbox-icon-color - Icon color for an unselected checkbox.\n * @cssproperty --mdc-checkbox-pressed-icon-color - Background color for a selected checkbox when pressed.\n */",
|
2005
|
+
"customElement": true,
|
2006
|
+
"slots": [
|
2007
|
+
{
|
2008
|
+
"description": "slot to add the label info icon",
|
2009
|
+
"name": "label-info",
|
2010
|
+
"inheritedFrom": {
|
2011
|
+
"name": "FormfieldWrapper",
|
2012
|
+
"module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
|
2013
|
+
}
|
2014
|
+
}
|
2015
|
+
]
|
1990
2016
|
}
|
1991
2017
|
],
|
1992
2018
|
"exports": [
|
@@ -1994,215 +2020,182 @@
|
|
1994
2020
|
"kind": "js",
|
1995
2021
|
"name": "default",
|
1996
2022
|
"declaration": {
|
1997
|
-
"name": "
|
1998
|
-
"module": "components/
|
2023
|
+
"name": "Checkbox",
|
2024
|
+
"module": "components/checkbox/checkbox.component.js"
|
1999
2025
|
}
|
2000
2026
|
}
|
2001
2027
|
]
|
2002
2028
|
},
|
2003
2029
|
{
|
2004
2030
|
"kind": "javascript-module",
|
2005
|
-
"path": "components/
|
2031
|
+
"path": "components/button/button.component.js",
|
2006
2032
|
"declarations": [
|
2007
2033
|
{
|
2008
2034
|
"kind": "class",
|
2009
|
-
"description": "
|
2010
|
-
"name": "
|
2011
|
-
"
|
2012
|
-
{
|
2013
|
-
"description": "Allows customization of the background color on hover.",
|
2014
|
-
"name": "--mdc-checkbox-background-color-hover"
|
2015
|
-
},
|
2016
|
-
{
|
2017
|
-
"description": "Border color in high contrast.",
|
2018
|
-
"name": "--mdc-checkbox-border-color"
|
2019
|
-
},
|
2020
|
-
{
|
2021
|
-
"description": "Background color for a selected checkbox.",
|
2022
|
-
"name": "--mdc-checkbox-checked-background-color"
|
2023
|
-
},
|
2024
|
-
{
|
2025
|
-
"description": "Background color for a selected checkbox when hovered.",
|
2026
|
-
"name": "--mdc-checkbox-checked-background-color-hover"
|
2027
|
-
},
|
2028
|
-
{
|
2029
|
-
"description": "Background color for a selected checkbox when pressed.",
|
2030
|
-
"name": "--mdc-checkbox-checked-pressed-icon-color"
|
2031
|
-
},
|
2032
|
-
{
|
2033
|
-
"description": "Background color for a disabled checkbox.",
|
2034
|
-
"name": "--mdc-checkbox-disabled-background-color"
|
2035
|
-
},
|
2036
|
-
{
|
2037
|
-
"description": "Border color for a disabled checkbox.",
|
2038
|
-
"name": "--mdc-checkbox-disabled-border-color"
|
2039
|
-
},
|
2035
|
+
"description": "`mdc-button` is a component that can be configured in various ways to suit different use cases.\n\nButton Variants:\n- **Primary**: Solid background color.\n- **Secondary**: Transparent background with a solid border.\n- **Tertiary**: No background or border, appears as plain text but retains all button functionalities.\n\nButton Colors:\n- **Positive**: Green color.\n- **Negative**: Red color.\n- **Accent**: Blue color.\n- **Promotional**: Purple color.\n- **Default**: White color.\n\nButton Sizes (in REM units):\n- **Pill button**: 40, 32, 28, 24.\n- **Icon button**: 64, 52, 40, 32, 28, 24.\n- **Tertiary icon button**: 20.\n\nButton Types:\n- **Pill button**: A button that contains text value. Commonly used for call to action, tags, or filters.\n- **Pill button with icons**: A button containing an icon either on the left or right side of the button.\n- **Icon button**: A button represented by just an icon without any text.\nThe type of button is inferred based on the presence of slot and/or prefix and postfix icons.",
|
2036
|
+
"name": "Button",
|
2037
|
+
"slots": [
|
2040
2038
|
{
|
2041
|
-
"description": "
|
2042
|
-
"name": "
|
2043
|
-
}
|
2039
|
+
"description": "Text label of the button.",
|
2040
|
+
"name": ""
|
2041
|
+
}
|
2042
|
+
],
|
2043
|
+
"members": [
|
2044
2044
|
{
|
2045
|
-
"
|
2046
|
-
"name": "
|
2045
|
+
"kind": "field",
|
2046
|
+
"name": "prefixIcon",
|
2047
|
+
"type": {
|
2048
|
+
"text": "string | undefined"
|
2049
|
+
},
|
2050
|
+
"description": "The name of the icon to display as a prefix.\nThe icon is displayed on the left side of the button.",
|
2051
|
+
"attribute": "prefix-icon",
|
2052
|
+
"reflects": true
|
2047
2053
|
},
|
2048
2054
|
{
|
2049
|
-
"
|
2050
|
-
"name": "
|
2055
|
+
"kind": "field",
|
2056
|
+
"name": "postfixIcon",
|
2057
|
+
"type": {
|
2058
|
+
"text": "string | undefined"
|
2059
|
+
},
|
2060
|
+
"description": "The name of the icon to display as a postfix.\nThe icon is displayed on the right side of the button.",
|
2061
|
+
"attribute": "postfix-icon",
|
2062
|
+
"reflects": true
|
2051
2063
|
},
|
2052
2064
|
{
|
2053
|
-
"
|
2054
|
-
"name": "
|
2065
|
+
"kind": "field",
|
2066
|
+
"name": "variant",
|
2067
|
+
"type": {
|
2068
|
+
"text": "ButtonVariant"
|
2069
|
+
},
|
2070
|
+
"description": "There are 3 variants of button: primary, secondary, tertiary. They are styled differently.\n- **Primary**: Solid background color.\n- **Secondary**: Transparent background with a solid border.\n- **Tertiary**: No background or border, appears as plain text but retains all button functionalities.",
|
2071
|
+
"default": "primary",
|
2072
|
+
"attribute": "variant"
|
2055
2073
|
},
|
2056
2074
|
{
|
2057
|
-
"
|
2058
|
-
"name": "
|
2075
|
+
"kind": "field",
|
2076
|
+
"name": "size",
|
2077
|
+
"type": {
|
2078
|
+
"text": "ButtonSize"
|
2079
|
+
},
|
2080
|
+
"description": "Button sizing is based on the button type.\n- **Pill button**: 40, 32, 28, 24.\n- **Icon button**: 64, 52, 40, 32, 28, 24.\n- Tertiary icon button can also be 20.",
|
2081
|
+
"default": "32",
|
2082
|
+
"attribute": "size",
|
2083
|
+
"reflects": true,
|
2084
|
+
"inheritedFrom": {
|
2085
|
+
"name": "Buttonsimple",
|
2086
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2087
|
+
}
|
2059
2088
|
},
|
2060
|
-
{
|
2061
|
-
"description": "Background color for a selected checkbox when pressed.",
|
2062
|
-
"name": "--mdc-checkbox-pressed-icon-color"
|
2063
|
-
}
|
2064
|
-
],
|
2065
|
-
"members": [
|
2066
2089
|
{
|
2067
2090
|
"kind": "field",
|
2068
|
-
"name": "
|
2091
|
+
"name": "color",
|
2069
2092
|
"type": {
|
2070
|
-
"text": "
|
2093
|
+
"text": "ButtonColor"
|
2071
2094
|
},
|
2072
|
-
"
|
2073
|
-
"
|
2074
|
-
"attribute": "
|
2075
|
-
"reflects": true
|
2095
|
+
"description": "There are 5 colors for button: positive, negative, accent, promotional, default.",
|
2096
|
+
"default": "default",
|
2097
|
+
"attribute": "color"
|
2076
2098
|
},
|
2077
2099
|
{
|
2078
2100
|
"kind": "field",
|
2079
|
-
"name": "
|
2101
|
+
"name": "role",
|
2102
|
+
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
2103
|
+
"default": "'button'",
|
2104
|
+
"attribute": "role",
|
2105
|
+
"reflects": true,
|
2080
2106
|
"type": {
|
2081
|
-
"text": "
|
2107
|
+
"text": "string"
|
2082
2108
|
},
|
2083
|
-
"
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2109
|
+
"inheritedFrom": {
|
2110
|
+
"name": "Buttonsimple",
|
2111
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2112
|
+
}
|
2087
2113
|
},
|
2088
2114
|
{
|
2089
2115
|
"kind": "method",
|
2090
|
-
"name": "
|
2116
|
+
"name": "modifyIconName",
|
2091
2117
|
"privacy": "private",
|
2092
|
-
"
|
2118
|
+
"parameters": [
|
2119
|
+
{
|
2120
|
+
"name": "active",
|
2121
|
+
"type": {
|
2122
|
+
"text": "boolean"
|
2123
|
+
},
|
2124
|
+
"description": "The active state."
|
2125
|
+
}
|
2126
|
+
],
|
2127
|
+
"description": "Modifies the icon name based on the active state.\nIf the button is active, the icon name is suffixed with '-filled'.\nIf the button is inactive, the icon name is restored to its original value.\nIf '-filled' icon is not available, the icon name remains unchanged."
|
2093
2128
|
},
|
2094
2129
|
{
|
2095
2130
|
"kind": "method",
|
2096
|
-
"name": "
|
2131
|
+
"name": "setVariant",
|
2097
2132
|
"privacy": "private",
|
2098
|
-
"
|
2099
|
-
|
2100
|
-
"
|
2133
|
+
"parameters": [
|
2134
|
+
{
|
2135
|
+
"name": "variant",
|
2136
|
+
"type": {
|
2137
|
+
"text": "ButtonVariant"
|
2138
|
+
},
|
2139
|
+
"description": "The variant to set."
|
2101
2140
|
}
|
2102
|
-
|
2103
|
-
"description": "
|
2141
|
+
],
|
2142
|
+
"description": "Sets the variant attribute for the button component.\nIf the provided variant is not included in the BUTTON_VARIANTS,\nit defaults to the value specified in DEFAULTS.VARIANT."
|
2104
2143
|
},
|
2105
2144
|
{
|
2106
2145
|
"kind": "method",
|
2107
|
-
"name": "
|
2108
|
-
"privacy": "
|
2109
|
-
"return": {
|
2110
|
-
"type": {
|
2111
|
-
"text": "void"
|
2112
|
-
}
|
2113
|
-
},
|
2146
|
+
"name": "setSize",
|
2147
|
+
"privacy": "private",
|
2114
2148
|
"parameters": [
|
2115
2149
|
{
|
2116
|
-
"name": "
|
2150
|
+
"name": "size",
|
2117
2151
|
"type": {
|
2118
|
-
"text": "
|
2119
|
-
}
|
2152
|
+
"text": "PillButtonSize | IconButtonSize"
|
2153
|
+
},
|
2154
|
+
"description": "The size to set."
|
2120
2155
|
}
|
2121
2156
|
],
|
2122
|
-
"description": "
|
2157
|
+
"description": "Sets the size attribute for the button component.\nValidates the size based on the button type (icon, pill, or tertiary).\nDefaults to DEFAULTS.SIZE if invalid."
|
2123
2158
|
},
|
2124
2159
|
{
|
2125
2160
|
"kind": "method",
|
2126
|
-
"name": "
|
2161
|
+
"name": "setColor",
|
2127
2162
|
"privacy": "private",
|
2128
|
-
"return": {
|
2129
|
-
"type": {
|
2130
|
-
"text": "void"
|
2131
|
-
}
|
2132
|
-
},
|
2133
2163
|
"parameters": [
|
2134
2164
|
{
|
2135
|
-
"name": "
|
2165
|
+
"name": "color",
|
2136
2166
|
"type": {
|
2137
|
-
"text": "
|
2167
|
+
"text": "ButtonColor"
|
2138
2168
|
},
|
2139
|
-
"description": "The
|
2169
|
+
"description": "The color to set."
|
2140
2170
|
}
|
2141
2171
|
],
|
2142
|
-
"description": "
|
2143
|
-
},
|
2144
|
-
{
|
2145
|
-
"kind": "field",
|
2146
|
-
"name": "internals"
|
2147
|
-
},
|
2148
|
-
{
|
2149
|
-
"kind": "field",
|
2150
|
-
"name": "helpTextType",
|
2151
|
-
"type": {
|
2152
|
-
"text": "ValidationType"
|
2153
|
-
},
|
2154
|
-
"description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
|
2155
|
-
"attribute": "help-text-type",
|
2156
|
-
"reflects": true,
|
2157
|
-
"default": "undefined as unknown",
|
2158
|
-
"inheritedFrom": {
|
2159
|
-
"name": "FormfieldWrapper",
|
2160
|
-
"module": "components/formfieldwrapper/formfieldwrapper.component.js"
|
2161
|
-
}
|
2162
|
-
},
|
2163
|
-
{
|
2164
|
-
"kind": "field",
|
2165
|
-
"name": "name",
|
2166
|
-
"type": {
|
2167
|
-
"text": "string"
|
2168
|
-
},
|
2169
|
-
"default": "''",
|
2170
|
-
"description": "Indicates the name of the component group (ex: checkbox, radio group).\nThey are used to group elements in a form together.",
|
2171
|
-
"attribute": "name",
|
2172
|
-
"reflects": true,
|
2173
|
-
"inheritedFrom": {
|
2174
|
-
"name": "NameMixin",
|
2175
|
-
"module": "utils/mixins/NameMixin.js"
|
2176
|
-
}
|
2172
|
+
"description": "Sets the color attribute for the button.\nDefaults to DEFAULTS.COLOR if invalid or for tertiary buttons."
|
2177
2173
|
},
|
2178
2174
|
{
|
2179
|
-
"kind": "
|
2180
|
-
"name": "
|
2181
|
-
"
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2186
|
-
|
2187
|
-
|
2188
|
-
|
2189
|
-
"name": "ValueMixin",
|
2190
|
-
"module": "utils/mixins/ValueMixin.js"
|
2191
|
-
}
|
2175
|
+
"kind": "method",
|
2176
|
+
"name": "inferButtonType",
|
2177
|
+
"privacy": "private",
|
2178
|
+
"description": "Infers the type of button based on the presence of slot and/or prefix and postfix icons.",
|
2179
|
+
"parameters": [
|
2180
|
+
{
|
2181
|
+
"description": "default slot of button",
|
2182
|
+
"name": "slot"
|
2183
|
+
}
|
2184
|
+
]
|
2192
2185
|
},
|
2193
2186
|
{
|
2194
2187
|
"kind": "field",
|
2195
|
-
"name": "
|
2188
|
+
"name": "tabIndex",
|
2196
2189
|
"type": {
|
2197
|
-
"text": "
|
2190
|
+
"text": "number"
|
2198
2191
|
},
|
2199
|
-
"default": "
|
2200
|
-
"description": "
|
2201
|
-
"attribute": "
|
2192
|
+
"default": "0",
|
2193
|
+
"description": "This property specifies the tab order of the element.",
|
2194
|
+
"attribute": "tabIndex",
|
2202
2195
|
"reflects": true,
|
2203
2196
|
"inheritedFrom": {
|
2204
|
-
"name": "
|
2205
|
-
"module": "
|
2197
|
+
"name": "Buttonsimple",
|
2198
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2206
2199
|
}
|
2207
2200
|
},
|
2208
2201
|
{
|
@@ -2216,211 +2209,261 @@
|
|
2216
2209
|
"attribute": "disabled",
|
2217
2210
|
"reflects": true,
|
2218
2211
|
"inheritedFrom": {
|
2219
|
-
"name": "
|
2220
|
-
"module": "
|
2212
|
+
"name": "Buttonsimple",
|
2213
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2221
2214
|
}
|
2222
2215
|
},
|
2223
2216
|
{
|
2224
2217
|
"kind": "field",
|
2225
|
-
"name": "
|
2218
|
+
"name": "active",
|
2226
2219
|
"type": {
|
2227
|
-
"text": "
|
2220
|
+
"text": "boolean"
|
2228
2221
|
},
|
2229
|
-
"
|
2230
|
-
"
|
2222
|
+
"default": "false",
|
2223
|
+
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
|
2224
|
+
"attribute": "active",
|
2231
2225
|
"reflects": true,
|
2232
2226
|
"inheritedFrom": {
|
2233
|
-
"name": "
|
2234
|
-
"module": "components/
|
2227
|
+
"name": "Buttonsimple",
|
2228
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2235
2229
|
}
|
2236
2230
|
},
|
2237
2231
|
{
|
2238
2232
|
"kind": "field",
|
2239
|
-
"name": "
|
2233
|
+
"name": "softDisabled",
|
2240
2234
|
"type": {
|
2241
|
-
"text": "
|
2235
|
+
"text": "boolean"
|
2242
2236
|
},
|
2243
|
-
"
|
2244
|
-
"
|
2245
|
-
"
|
2237
|
+
"default": "false",
|
2238
|
+
"description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
|
2239
|
+
"attribute": "soft-disabled",
|
2246
2240
|
"inheritedFrom": {
|
2247
|
-
"name": "
|
2248
|
-
"module": "components/
|
2241
|
+
"name": "Buttonsimple",
|
2242
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2249
2243
|
}
|
2250
2244
|
},
|
2251
2245
|
{
|
2252
2246
|
"kind": "field",
|
2253
|
-
"name": "
|
2254
|
-
"
|
2255
|
-
|
2256
|
-
|
2247
|
+
"name": "type",
|
2248
|
+
"type": {
|
2249
|
+
"text": "ButtonType"
|
2250
|
+
},
|
2251
|
+
"description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
|
2252
|
+
"default": "button",
|
2253
|
+
"attribute": "type",
|
2254
|
+
"reflects": true,
|
2257
2255
|
"inheritedFrom": {
|
2258
|
-
"name": "
|
2259
|
-
"module": "components/
|
2256
|
+
"name": "Buttonsimple",
|
2257
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2260
2258
|
}
|
2261
2259
|
},
|
2262
2260
|
{
|
2263
|
-
"kind": "
|
2264
|
-
"name": "
|
2265
|
-
"
|
2266
|
-
"text": "string | undefined"
|
2267
|
-
},
|
2268
|
-
"description": "The help text that is displayed below the input field.",
|
2269
|
-
"attribute": "help-text",
|
2270
|
-
"reflects": true,
|
2261
|
+
"kind": "method",
|
2262
|
+
"name": "executeAction",
|
2263
|
+
"privacy": "protected",
|
2271
2264
|
"inheritedFrom": {
|
2272
|
-
"name": "
|
2273
|
-
"module": "components/
|
2265
|
+
"name": "Buttonsimple",
|
2266
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2274
2267
|
}
|
2275
2268
|
},
|
2276
2269
|
{
|
2277
2270
|
"kind": "method",
|
2278
|
-
"name": "
|
2271
|
+
"name": "setActive",
|
2279
2272
|
"privacy": "protected",
|
2280
|
-
"
|
2281
|
-
|
2282
|
-
|
2283
|
-
"
|
2273
|
+
"parameters": [
|
2274
|
+
{
|
2275
|
+
"name": "element",
|
2276
|
+
"type": {
|
2277
|
+
"text": "HTMLElement"
|
2278
|
+
},
|
2279
|
+
"description": "The button element"
|
2280
|
+
},
|
2281
|
+
{
|
2282
|
+
"name": "active",
|
2283
|
+
"type": {
|
2284
|
+
"text": "boolean"
|
2285
|
+
},
|
2286
|
+
"description": "The active state of the element"
|
2284
2287
|
}
|
2285
|
-
|
2288
|
+
],
|
2289
|
+
"description": "Sets the aria-pressed attribute based on the active state of the button.",
|
2286
2290
|
"inheritedFrom": {
|
2287
|
-
"name": "
|
2288
|
-
"module": "components/
|
2291
|
+
"name": "Buttonsimple",
|
2292
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2289
2293
|
}
|
2290
2294
|
},
|
2291
2295
|
{
|
2292
2296
|
"kind": "method",
|
2293
|
-
"name": "
|
2294
|
-
"privacy": "
|
2297
|
+
"name": "setSoftDisabled",
|
2298
|
+
"privacy": "private",
|
2299
|
+
"parameters": [
|
2300
|
+
{
|
2301
|
+
"name": "element",
|
2302
|
+
"type": {
|
2303
|
+
"text": "HTMLElement"
|
2304
|
+
},
|
2305
|
+
"description": "The button element."
|
2306
|
+
},
|
2307
|
+
{
|
2308
|
+
"name": "softDisabled",
|
2309
|
+
"type": {
|
2310
|
+
"text": "boolean"
|
2311
|
+
},
|
2312
|
+
"description": "The soft-disabled state."
|
2313
|
+
}
|
2314
|
+
],
|
2315
|
+
"description": "Sets the soft-disabled attribute for the button.\nWhen soft-disabled, the button looks to be disabled but remains focusable and clickable.\nAlso sets/removes aria-disabled attribute.",
|
2295
2316
|
"inheritedFrom": {
|
2296
|
-
"name": "
|
2297
|
-
"module": "components/
|
2317
|
+
"name": "Buttonsimple",
|
2318
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2298
2319
|
}
|
2299
2320
|
},
|
2300
2321
|
{
|
2301
2322
|
"kind": "method",
|
2302
|
-
"name": "
|
2303
|
-
"privacy": "
|
2304
|
-
"
|
2305
|
-
|
2306
|
-
|
2307
|
-
"
|
2323
|
+
"name": "setDisabled",
|
2324
|
+
"privacy": "private",
|
2325
|
+
"parameters": [
|
2326
|
+
{
|
2327
|
+
"name": "element",
|
2328
|
+
"type": {
|
2329
|
+
"text": "HTMLElement"
|
2330
|
+
},
|
2331
|
+
"description": "The button element."
|
2332
|
+
},
|
2333
|
+
{
|
2334
|
+
"name": "disabled",
|
2335
|
+
"type": {
|
2336
|
+
"text": "boolean"
|
2337
|
+
},
|
2338
|
+
"description": "The disabled state."
|
2308
2339
|
}
|
2309
|
-
|
2340
|
+
],
|
2341
|
+
"description": "Sets the disabled attribute for the button.\nWhen disabled, the button is not focusable or clickable, and tabindex is set to -1.\nThe previous tabindex is stored and restored when enabled.\nAlso sets/removes aria-disabled attribute.",
|
2310
2342
|
"inheritedFrom": {
|
2311
|
-
"name": "
|
2312
|
-
"module": "components/
|
2343
|
+
"name": "Buttonsimple",
|
2344
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2313
2345
|
}
|
2314
2346
|
},
|
2315
2347
|
{
|
2316
2348
|
"kind": "method",
|
2317
|
-
"name": "
|
2318
|
-
"privacy": "
|
2319
|
-
"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.",
|
2320
|
-
"return": {
|
2321
|
-
"type": {
|
2322
|
-
"text": ""
|
2323
|
-
}
|
2324
|
-
},
|
2349
|
+
"name": "triggerClickEvent",
|
2350
|
+
"privacy": "private",
|
2325
2351
|
"inheritedFrom": {
|
2326
|
-
"name": "
|
2327
|
-
"module": "components/
|
2352
|
+
"name": "Buttonsimple",
|
2353
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2328
2354
|
}
|
2329
2355
|
},
|
2330
2356
|
{
|
2331
2357
|
"kind": "method",
|
2332
|
-
"name": "
|
2333
|
-
"privacy": "
|
2334
|
-
"
|
2335
|
-
|
2336
|
-
|
2337
|
-
"
|
2358
|
+
"name": "handleKeyDown",
|
2359
|
+
"privacy": "private",
|
2360
|
+
"parameters": [
|
2361
|
+
{
|
2362
|
+
"name": "event",
|
2363
|
+
"type": {
|
2364
|
+
"text": "KeyboardEvent"
|
2365
|
+
},
|
2366
|
+
"description": "The keyboard event."
|
2338
2367
|
}
|
2339
|
-
|
2368
|
+
],
|
2369
|
+
"description": "Handles the keydown event on the button.\nIf the key is 'Enter' or 'Space', the button is pressed.\nIf the key is 'Enter', the button is pressed. The native HTML button works in the same way.",
|
2340
2370
|
"inheritedFrom": {
|
2341
|
-
"name": "
|
2342
|
-
"module": "components/
|
2371
|
+
"name": "Buttonsimple",
|
2372
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2343
2373
|
}
|
2344
2374
|
},
|
2345
2375
|
{
|
2346
2376
|
"kind": "method",
|
2347
|
-
"name": "
|
2348
|
-
"privacy": "
|
2349
|
-
"
|
2350
|
-
|
2351
|
-
|
2352
|
-
"
|
2377
|
+
"name": "handleKeyUp",
|
2378
|
+
"privacy": "private",
|
2379
|
+
"parameters": [
|
2380
|
+
{
|
2381
|
+
"name": "event",
|
2382
|
+
"type": {
|
2383
|
+
"text": "KeyboardEvent"
|
2384
|
+
},
|
2385
|
+
"description": "The keyboard event."
|
2353
2386
|
}
|
2354
|
-
|
2387
|
+
],
|
2388
|
+
"description": "Handles the keyup event on the button.\nIf the key is 'Enter' or 'Space', the button is clicked.\nIf the key is 'Space', the button is pressed. The native HTML button works in the same way.",
|
2355
2389
|
"inheritedFrom": {
|
2356
|
-
"name": "
|
2357
|
-
"module": "components/
|
2390
|
+
"name": "Buttonsimple",
|
2391
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2358
2392
|
}
|
2359
2393
|
}
|
2360
2394
|
],
|
2361
|
-
"
|
2395
|
+
"attributes": [
|
2362
2396
|
{
|
2397
|
+
"name": "prefix-icon",
|
2363
2398
|
"type": {
|
2364
|
-
"text": "
|
2365
|
-
}
|
2366
|
-
|
2367
|
-
|
2368
|
-
|
2399
|
+
"text": "string | undefined"
|
2400
|
+
},
|
2401
|
+
"description": "The name of the icon to display as a prefix.\nThe icon is displayed on the left side of the button.",
|
2402
|
+
"fieldName": "prefixIcon"
|
2403
|
+
},
|
2369
2404
|
{
|
2370
|
-
"name": "
|
2405
|
+
"name": "postfix-icon",
|
2371
2406
|
"type": {
|
2372
|
-
"text": "
|
2407
|
+
"text": "string | undefined"
|
2373
2408
|
},
|
2374
|
-
"
|
2375
|
-
"
|
2376
|
-
"fieldName": "checked"
|
2409
|
+
"description": "The name of the icon to display as a postfix.\nThe icon is displayed on the right side of the button.",
|
2410
|
+
"fieldName": "postfixIcon"
|
2377
2411
|
},
|
2378
2412
|
{
|
2379
|
-
"name": "
|
2413
|
+
"name": "variant",
|
2380
2414
|
"type": {
|
2381
|
-
"text": "
|
2415
|
+
"text": "ButtonVariant"
|
2382
2416
|
},
|
2383
|
-
"
|
2384
|
-
"
|
2385
|
-
"fieldName": "
|
2417
|
+
"description": "There are 3 variants of button: primary, secondary, tertiary. They are styled differently.\n- **Primary**: Solid background color.\n- **Secondary**: Transparent background with a solid border.\n- **Tertiary**: No background or border, appears as plain text but retains all button functionalities.",
|
2418
|
+
"default": "primary",
|
2419
|
+
"fieldName": "variant"
|
2386
2420
|
},
|
2387
2421
|
{
|
2388
|
-
"name": "
|
2422
|
+
"name": "size",
|
2389
2423
|
"type": {
|
2390
|
-
"text": "
|
2424
|
+
"text": "ButtonSize"
|
2391
2425
|
},
|
2392
|
-
"
|
2393
|
-
"
|
2394
|
-
"fieldName": "
|
2426
|
+
"description": "Button sizing is based on the button type.\n- **Pill button**: 40, 32, 28, 24.\n- **Icon button**: 64, 52, 40, 32, 28, 24.\n- Tertiary icon button can also be 20.",
|
2427
|
+
"default": "32",
|
2428
|
+
"fieldName": "size",
|
2395
2429
|
"inheritedFrom": {
|
2396
|
-
"name": "
|
2397
|
-
"module": "src/
|
2430
|
+
"name": "Buttonsimple",
|
2431
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2398
2432
|
}
|
2399
2433
|
},
|
2400
2434
|
{
|
2401
|
-
"name": "
|
2435
|
+
"name": "color",
|
2436
|
+
"type": {
|
2437
|
+
"text": "ButtonColor"
|
2438
|
+
},
|
2439
|
+
"description": "There are 5 colors for button: positive, negative, accent, promotional, default.",
|
2440
|
+
"default": "default",
|
2441
|
+
"fieldName": "color"
|
2442
|
+
},
|
2443
|
+
{
|
2444
|
+
"name": "role",
|
2445
|
+
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
2446
|
+
"default": "'button'",
|
2447
|
+
"fieldName": "role",
|
2402
2448
|
"type": {
|
2403
2449
|
"text": "string"
|
2404
2450
|
},
|
2405
|
-
"default": "''",
|
2406
|
-
"description": "Indicates the value of the component group (ex: input, checkbox, radio, select etc...)",
|
2407
|
-
"fieldName": "value",
|
2408
2451
|
"inheritedFrom": {
|
2409
|
-
"name": "
|
2410
|
-
"module": "src/
|
2452
|
+
"name": "Buttonsimple",
|
2453
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2411
2454
|
}
|
2412
2455
|
},
|
2413
2456
|
{
|
2414
|
-
"name": "
|
2457
|
+
"name": "tabIndex",
|
2415
2458
|
"type": {
|
2416
|
-
"text": "
|
2459
|
+
"text": "number"
|
2417
2460
|
},
|
2418
|
-
"default": "
|
2419
|
-
"description": "
|
2420
|
-
"fieldName": "
|
2461
|
+
"default": "0",
|
2462
|
+
"description": "This property specifies the tab order of the element.",
|
2463
|
+
"fieldName": "tabIndex",
|
2421
2464
|
"inheritedFrom": {
|
2422
|
-
"name": "
|
2423
|
-
"module": "src/
|
2465
|
+
"name": "Buttonsimple",
|
2466
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2424
2467
|
}
|
2425
2468
|
},
|
2426
2469
|
{
|
@@ -2432,100 +2475,57 @@
|
|
2432
2475
|
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
2433
2476
|
"fieldName": "disabled",
|
2434
2477
|
"inheritedFrom": {
|
2435
|
-
"name": "
|
2436
|
-
"module": "src/
|
2437
|
-
}
|
2438
|
-
},
|
2439
|
-
{
|
2440
|
-
"name": "label",
|
2441
|
-
"type": {
|
2442
|
-
"text": "string | undefined"
|
2443
|
-
},
|
2444
|
-
"description": "The label of the input field. It is linked to the input field using the `for` attribute.",
|
2445
|
-
"fieldName": "label",
|
2446
|
-
"inheritedFrom": {
|
2447
|
-
"name": "FormfieldWrapper",
|
2448
|
-
"module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
|
2478
|
+
"name": "Buttonsimple",
|
2479
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2449
2480
|
}
|
2450
2481
|
},
|
2451
2482
|
{
|
2452
|
-
"name": "
|
2483
|
+
"name": "active",
|
2453
2484
|
"type": {
|
2454
|
-
"text": "
|
2485
|
+
"text": "boolean"
|
2455
2486
|
},
|
2456
|
-
"
|
2457
|
-
"
|
2458
|
-
"
|
2459
|
-
"name": "FormfieldWrapper",
|
2460
|
-
"module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
|
2461
|
-
}
|
2462
|
-
},
|
2463
|
-
{
|
2464
|
-
"name": "id",
|
2465
|
-
"default": "`mdc-input-${uuidv4()}`",
|
2466
|
-
"description": "The unique id of the input field. It is used to link the input field with the label.",
|
2467
|
-
"fieldName": "id",
|
2487
|
+
"default": "false",
|
2488
|
+
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
|
2489
|
+
"fieldName": "active",
|
2468
2490
|
"inheritedFrom": {
|
2469
|
-
"name": "
|
2470
|
-
"module": "src/components/
|
2491
|
+
"name": "Buttonsimple",
|
2492
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2471
2493
|
}
|
2472
2494
|
},
|
2473
2495
|
{
|
2474
|
-
"name": "
|
2496
|
+
"name": "soft-disabled",
|
2475
2497
|
"type": {
|
2476
|
-
"text": "
|
2498
|
+
"text": "boolean"
|
2477
2499
|
},
|
2478
|
-
"
|
2479
|
-
"
|
2500
|
+
"default": "false",
|
2501
|
+
"description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
|
2502
|
+
"fieldName": "softDisabled",
|
2480
2503
|
"inheritedFrom": {
|
2481
|
-
"name": "
|
2482
|
-
"module": "src/components/
|
2504
|
+
"name": "Buttonsimple",
|
2505
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2483
2506
|
}
|
2484
2507
|
},
|
2485
2508
|
{
|
2486
|
-
"name": "
|
2509
|
+
"name": "type",
|
2487
2510
|
"type": {
|
2488
|
-
"text": "
|
2511
|
+
"text": "ButtonType"
|
2489
2512
|
},
|
2490
|
-
"description": "
|
2491
|
-
"
|
2513
|
+
"description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
|
2514
|
+
"default": "button",
|
2515
|
+
"fieldName": "type",
|
2492
2516
|
"inheritedFrom": {
|
2493
|
-
"name": "
|
2494
|
-
"module": "src/components/
|
2517
|
+
"name": "Buttonsimple",
|
2518
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2495
2519
|
}
|
2496
2520
|
}
|
2497
2521
|
],
|
2498
|
-
"mixins": [
|
2499
|
-
{
|
2500
|
-
"name": "NameMixin",
|
2501
|
-
"module": "/src/utils/mixins/NameMixin"
|
2502
|
-
},
|
2503
|
-
{
|
2504
|
-
"name": "ValueMixin",
|
2505
|
-
"module": "/src/utils/mixins/ValueMixin"
|
2506
|
-
},
|
2507
|
-
{
|
2508
|
-
"name": "DataAriaLabelMixin",
|
2509
|
-
"module": "/src/utils/mixins/DataAriaLabelMixin"
|
2510
|
-
}
|
2511
|
-
],
|
2512
2522
|
"superclass": {
|
2513
|
-
"name": "
|
2514
|
-
"module": "/src/components/
|
2523
|
+
"name": "Buttonsimple",
|
2524
|
+
"module": "/src/components/buttonsimple/buttonsimple.component"
|
2515
2525
|
},
|
2516
|
-
"tagName": "mdc-
|
2517
|
-
"jsDoc": "/**\n *
|
2518
|
-
"customElement": true
|
2519
|
-
"slots": [
|
2520
|
-
{
|
2521
|
-
"description": "slot to add the label info icon",
|
2522
|
-
"name": "label-info",
|
2523
|
-
"inheritedFrom": {
|
2524
|
-
"name": "FormfieldWrapper",
|
2525
|
-
"module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
|
2526
|
-
}
|
2527
|
-
}
|
2528
|
-
]
|
2526
|
+
"tagName": "mdc-button",
|
2527
|
+
"jsDoc": "/**\n * `mdc-button` is a component that can be configured in various ways to suit different use cases.\n *\n * Button Variants:\n * - **Primary**: Solid background color.\n * - **Secondary**: Transparent background with a solid border.\n * - **Tertiary**: No background or border, appears as plain text but retains all button functionalities.\n *\n * Button Colors:\n * - **Positive**: Green color.\n * - **Negative**: Red color.\n * - **Accent**: Blue color.\n * - **Promotional**: Purple color.\n * - **Default**: White color.\n *\n * Button Sizes (in REM units):\n * - **Pill button**: 40, 32, 28, 24.\n * - **Icon button**: 64, 52, 40, 32, 28, 24.\n * - **Tertiary icon button**: 20.\n *\n * Button Types:\n * - **Pill button**: A button that contains text value. Commonly used for call to action, tags, or filters.\n * - **Pill button with icons**: A button containing an icon either on the left or right side of the button.\n * - **Icon button**: A button represented by just an icon without any text.\n * The type of button is inferred based on the presence of slot and/or prefix and postfix icons.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-button\n *\n * @slot - Text label of the button.\n */",
|
2528
|
+
"customElement": true
|
2529
2529
|
}
|
2530
2530
|
],
|
2531
2531
|
"exports": [
|
@@ -2533,8 +2533,8 @@
|
|
2533
2533
|
"kind": "js",
|
2534
2534
|
"name": "default",
|
2535
2535
|
"declaration": {
|
2536
|
-
"name": "
|
2537
|
-
"module": "components/
|
2536
|
+
"name": "Button",
|
2537
|
+
"module": "components/button/button.component.js"
|
2538
2538
|
}
|
2539
2539
|
}
|
2540
2540
|
]
|
@@ -5887,7 +5887,7 @@
|
|
5887
5887
|
"declarations": [
|
5888
5888
|
{
|
5889
5889
|
"kind": "class",
|
5890
|
-
"description": "`mdc-tab` is Tab component to be used within the Tabgroup.\n\nPassing in the attribute `text` to the tab component is changing the text displayed in the tab.\n\nThe `slot=\"badge\"` can be used to add a badge to the tab.\n\nFor `icon`, the `mdc-icon` component is used to render the icon.",
|
5890
|
+
"description": "`mdc-tab` is Tab component to be used within the Tabgroup.\n\nPassing in the attribute `text` to the tab component is changing the text displayed in the tab.\n\nThe `slot=\"badge\"` can be used to add a badge to the tab.\n\nThe `slot=\"chip\"` can be used to add a chip to the tab.\n\nFor `icon`, the `mdc-icon` component is used to render the icon.\n\nNote: Icons can be used in conjunction with badges or chips.\nBadges and chips should not be used at the same time.",
|
5891
5891
|
"name": "Tab",
|
5892
5892
|
"cssProperties": [
|
5893
5893
|
{
|
@@ -6535,7 +6535,7 @@
|
|
6535
6535
|
"module": "/src/components/buttonsimple/buttonsimple.component"
|
6536
6536
|
},
|
6537
6537
|
"tagName": "mdc-tab",
|
6538
|
-
"jsDoc": "/**\n * `mdc-tab` is Tab component to be used within the Tabgroup.\n *\n * Passing in the attribute `text` to the tab component is changing the text displayed in the tab.\n *\n * The `slot=\"badge\"` can be used to add a badge to the tab.\n *\n * For `icon`, the `mdc-icon` component is used to render the icon.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @tagname mdc-tab\n *\n * @cssproperty --mdc-tab-content-gap - Gap between the badge(if provided), icon and text.\n * @cssproperty --mdc-tab-height - Height of the tab.\n * @cssproperty --mdc-tab-glass-active-background-color-disabled - Background color for active glass tab\n * in disabled state.\n * @cssproperty --mdc-tab-glass-active-background-color-hover - Background color for active glass tab in hover state.\n * @cssproperty --mdc-tab-glass-active-background-color-normal - Background color for active glass tab in rest state.\n * @cssproperty --mdc-tab-glass-active-background-color-pressed - Background color for active glass tab\n * in pressed state.\n * @cssproperty --mdc-tab-glass-active-color - Text and icon color for active glass tab.\n * @cssproperty --mdc-tab-glass-active-color-disabled - Text and icon color for active glass tab in disabled state.\n * @cssproperty --mdc-tab-glass-border-radius - Border radius for glass tab.\n * @cssproperty --mdc-tab-glass-inactive-background-color-disabled - Background color for inactive glass tab\n * in disabled state.\n * @cssproperty --mdc-tab-glass-inactive-background-color-hover - Background color for inactive glass tab\n * in hover state.\n * @cssproperty --mdc-tab-glass-inactive-background-color-normal - Background color for inactive glass tab\n * in rest state.\n * @cssproperty --mdc-tab-glass-inactive-background-color-pressed - Background color for inactive glass tab\n * in pressed state.\n * @cssproperty --mdc-tab-glass-inactive-color - Text and icon color for inactive glass tab.\n * @cssproperty --mdc-tab-glass-inactive-color-disabled - Text and icon color for inactive glass tab in disabled state.\n * @cssproperty --mdc-tab-line-active-background-color-pressed - Background color for active line tab in pressed state.\n * @cssproperty --mdc-tab-line-active-background-color-disabled - Background color for active line tab\n * in disabled state.\n * @cssproperty --mdc-tab-line-active-background-color-hover - Background color for active line tab in hover state.\n * @cssproperty --mdc-tab-line-active-background-color-normal - Background color for active line tab in rest state.\n * @cssproperty --mdc-tab-line-active-color - Text and icon color for active line tab.\n * @cssproperty --mdc-tab-line-active-color-disabled - Text and icon color for active line tab in disabled state.\n * @cssproperty --mdc-tab-line-active-indicator-color - color for indicator in active line tab.\n * @cssproperty --mdc-tab-line-active-indicator-color-disabled - Color for indicator in active line tab\n * in disabled state.\n * @cssproperty --mdc-tab-line-active-indicator-height - Height for indicator in active line tab.\n * @cssproperty --mdc-tab-line-active-indicator-width - Width for indicator in active line tab.\n * @cssproperty --mdc-tab-line-border-bottom-left-radius - Bottom left border radius for line tab.\n * @cssproperty --mdc-tab-line-border-bottom-right-radius - Bottom right border radius for line tab.\n * @cssproperty --mdc-tab-line-border-top-left-radius - Top left border radius for line tab.\n * @cssproperty --mdc-tab-line-border-top-right-radius - Top right border radius for line tab.\n * @cssproperty --mdc-tab-line-inactive-background-color-pressed - Background color for inactive line tab\n * in pressed state.\n * @cssproperty --mdc-tab-line-inactive-background-color-disabled - Background color for inactive line tab\n * in disabled state\n * @cssproperty --mdc-tab-line-inactive-background-color-hover - Background color for inactive line tab in hover state.\n * @cssproperty --mdc-tab-line-inactive-background-color-normal - Background color for inactive line tab\n * in rest state.\n * @cssproperty --mdc-tab-line-inactive-color - Text and icon color for inactive line tab.\n * @cssproperty --mdc-tab-line-inactive-color-disabled - Text and icon color for inactive line tab in disabled state.\n * @cssproperty --mdc-tab-padding-left - Padding left for the tab.\n * @cssproperty --mdc-tab-padding-right - Padding right for the tab.\n * @cssproperty --mdc-tab-pill-active-background-color-pressed - Background color for active pill tab in pressed state.\n * @cssproperty --mdc-tab-pill-active-background-color-disabled - Background color for active pill tab\n * in disabled state.\n * @cssproperty --mdc-tab-pill-active-background-color-hover - Background color for active pill tab in hover state.\n * @cssproperty --mdc-tab-pill-active-background-color-normal - Background color for active pill tab in rest state.\n * @cssproperty --mdc-tab-pill-active-color - Text and icon color for active pill tab.\n * @cssproperty --mdc-tab-pill-active-color-disabled - Text and icon color for active pill tab in disabled state.\n * @cssproperty --mdc-tab-pill-border-radius - Border radius for pill tab.\n * @cssproperty --mdc-tab-pill-inactive-background-color-pressed - Background color for inactive pill tab\n * in pressed state.\n * @cssproperty --mdc-tab-pill-inactive-background-color-disabled - Background color for inactive pill tab\n * in disabled state.\n * @cssproperty --mdc-tab-pill-inactive-background-color-hover - Background color for inactive pill tab in hover state.\n * @cssproperty --mdc-tab-pill-inactive-background-color-normal - Background color for inactive pill tab in rest state.\n * @cssproperty --mdc-tab-pill-inactive-color - Text and icon color for inactive pill tab.\n * @cssproperty --mdc-tab-pill-inactive-color-disabled - Text and icon color for inactive pill tab in disabled state.\n */",
|
6538
|
+
"jsDoc": "/**\n * `mdc-tab` is Tab component to be used within the Tabgroup.\n *\n * Passing in the attribute `text` to the tab component is changing the text displayed in the tab.\n *\n * The `slot=\"badge\"` can be used to add a badge to the tab.\n *\n * The `slot=\"chip\"` can be used to add a chip to the tab.\n *\n * For `icon`, the `mdc-icon` component is used to render the icon.\n *\n * Note: Icons can be used in conjunction with badges or chips.\n * Badges and chips should not be used at the same time.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @tagname mdc-tab\n *\n * @cssproperty --mdc-tab-content-gap - Gap between the badge(if provided), icon and text.\n * @cssproperty --mdc-tab-height - Height of the tab.\n * @cssproperty --mdc-tab-glass-active-background-color-disabled - Background color for active glass tab\n * in disabled state.\n * @cssproperty --mdc-tab-glass-active-background-color-hover - Background color for active glass tab in hover state.\n * @cssproperty --mdc-tab-glass-active-background-color-normal - Background color for active glass tab in rest state.\n * @cssproperty --mdc-tab-glass-active-background-color-pressed - Background color for active glass tab\n * in pressed state.\n * @cssproperty --mdc-tab-glass-active-color - Text and icon color for active glass tab.\n * @cssproperty --mdc-tab-glass-active-color-disabled - Text and icon color for active glass tab in disabled state.\n * @cssproperty --mdc-tab-glass-border-radius - Border radius for glass tab.\n * @cssproperty --mdc-tab-glass-inactive-background-color-disabled - Background color for inactive glass tab\n * in disabled state.\n * @cssproperty --mdc-tab-glass-inactive-background-color-hover - Background color for inactive glass tab\n * in hover state.\n * @cssproperty --mdc-tab-glass-inactive-background-color-normal - Background color for inactive glass tab\n * in rest state.\n * @cssproperty --mdc-tab-glass-inactive-background-color-pressed - Background color for inactive glass tab\n * in pressed state.\n * @cssproperty --mdc-tab-glass-inactive-color - Text and icon color for inactive glass tab.\n * @cssproperty --mdc-tab-glass-inactive-color-disabled - Text and icon color for inactive glass tab in disabled state.\n * @cssproperty --mdc-tab-line-active-background-color-pressed - Background color for active line tab in pressed state.\n * @cssproperty --mdc-tab-line-active-background-color-disabled - Background color for active line tab\n * in disabled state.\n * @cssproperty --mdc-tab-line-active-background-color-hover - Background color for active line tab in hover state.\n * @cssproperty --mdc-tab-line-active-background-color-normal - Background color for active line tab in rest state.\n * @cssproperty --mdc-tab-line-active-color - Text and icon color for active line tab.\n * @cssproperty --mdc-tab-line-active-color-disabled - Text and icon color for active line tab in disabled state.\n * @cssproperty --mdc-tab-line-active-indicator-color - color for indicator in active line tab.\n * @cssproperty --mdc-tab-line-active-indicator-color-disabled - Color for indicator in active line tab\n * in disabled state.\n * @cssproperty --mdc-tab-line-active-indicator-height - Height for indicator in active line tab.\n * @cssproperty --mdc-tab-line-active-indicator-width - Width for indicator in active line tab.\n * @cssproperty --mdc-tab-line-border-bottom-left-radius - Bottom left border radius for line tab.\n * @cssproperty --mdc-tab-line-border-bottom-right-radius - Bottom right border radius for line tab.\n * @cssproperty --mdc-tab-line-border-top-left-radius - Top left border radius for line tab.\n * @cssproperty --mdc-tab-line-border-top-right-radius - Top right border radius for line tab.\n * @cssproperty --mdc-tab-line-inactive-background-color-pressed - Background color for inactive line tab\n * in pressed state.\n * @cssproperty --mdc-tab-line-inactive-background-color-disabled - Background color for inactive line tab\n * in disabled state\n * @cssproperty --mdc-tab-line-inactive-background-color-hover - Background color for inactive line tab in hover state.\n * @cssproperty --mdc-tab-line-inactive-background-color-normal - Background color for inactive line tab\n * in rest state.\n * @cssproperty --mdc-tab-line-inactive-color - Text and icon color for inactive line tab.\n * @cssproperty --mdc-tab-line-inactive-color-disabled - Text and icon color for inactive line tab in disabled state.\n * @cssproperty --mdc-tab-padding-left - Padding left for the tab.\n * @cssproperty --mdc-tab-padding-right - Padding right for the tab.\n * @cssproperty --mdc-tab-pill-active-background-color-pressed - Background color for active pill tab in pressed state.\n * @cssproperty --mdc-tab-pill-active-background-color-disabled - Background color for active pill tab\n * in disabled state.\n * @cssproperty --mdc-tab-pill-active-background-color-hover - Background color for active pill tab in hover state.\n * @cssproperty --mdc-tab-pill-active-background-color-normal - Background color for active pill tab in rest state.\n * @cssproperty --mdc-tab-pill-active-color - Text and icon color for active pill tab.\n * @cssproperty --mdc-tab-pill-active-color-disabled - Text and icon color for active pill tab in disabled state.\n * @cssproperty --mdc-tab-pill-border-radius - Border radius for pill tab.\n * @cssproperty --mdc-tab-pill-inactive-background-color-pressed - Background color for inactive pill tab\n * in pressed state.\n * @cssproperty --mdc-tab-pill-inactive-background-color-disabled - Background color for inactive pill tab\n * in disabled state.\n * @cssproperty --mdc-tab-pill-inactive-background-color-hover - Background color for inactive pill tab in hover state.\n * @cssproperty --mdc-tab-pill-inactive-background-color-normal - Background color for inactive pill tab in rest state.\n * @cssproperty --mdc-tab-pill-inactive-color - Text and icon color for inactive pill tab.\n * @cssproperty --mdc-tab-pill-inactive-color-disabled - Text and icon color for inactive pill tab in disabled state.\n */",
|
6539
6539
|
"customElement": true
|
6540
6540
|
}
|
6541
6541
|
],
|