@momentum-design/components 0.106.7 → 0.107.0

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.
Files changed (43) hide show
  1. package/dist/browser/index.js +358 -349
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/alertchip/alertchip.component.d.ts +5 -0
  4. package/dist/components/alertchip/alertchip.component.js +5 -0
  5. package/dist/components/alertchip/alertchip.types.d.ts +9 -2
  6. package/dist/components/chip/chip.component.d.ts +7 -0
  7. package/dist/components/chip/chip.component.js +9 -2
  8. package/dist/components/chip/chip.constants.d.ts +1 -12
  9. package/dist/components/chip/chip.constants.js +1 -12
  10. package/dist/components/chip/chip.styles.js +1 -59
  11. package/dist/components/chip/chip.types.d.ts +9 -2
  12. package/dist/components/filterchip/filterchip.component.d.ts +13 -0
  13. package/dist/components/filterchip/filterchip.component.js +13 -0
  14. package/dist/components/filterchip/filterchip.types.d.ts +9 -0
  15. package/dist/components/filterchip/filterchip.types.js +1 -0
  16. package/dist/components/inputchip/inputchip.component.d.ts +4 -0
  17. package/dist/components/inputchip/inputchip.component.js +5 -1
  18. package/dist/components/staticchip/index.d.ts +9 -0
  19. package/dist/components/staticchip/index.js +6 -0
  20. package/dist/components/staticchip/staticchip.component.d.ts +54 -0
  21. package/dist/components/staticchip/staticchip.component.js +89 -0
  22. package/dist/components/staticchip/staticchip.constants.d.ts +19 -0
  23. package/dist/components/staticchip/staticchip.constants.js +21 -0
  24. package/dist/components/staticchip/staticchip.styles.d.ts +2 -0
  25. package/dist/components/staticchip/staticchip.styles.js +66 -0
  26. package/dist/components/staticchip/staticchip.types.d.ts +4 -0
  27. package/dist/components/staticchip/staticchip.types.js +1 -0
  28. package/dist/custom-elements.json +497 -340
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +2 -1
  31. package/dist/react/alertchip/index.d.ts +5 -0
  32. package/dist/react/alertchip/index.js +5 -0
  33. package/dist/react/chip/index.d.ts +7 -0
  34. package/dist/react/chip/index.js +7 -0
  35. package/dist/react/filterchip/index.d.ts +13 -0
  36. package/dist/react/filterchip/index.js +13 -0
  37. package/dist/react/index.d.ts +2 -1
  38. package/dist/react/index.js +2 -1
  39. package/dist/react/inputchip/index.d.ts +4 -0
  40. package/dist/react/inputchip/index.js +4 -0
  41. package/dist/react/staticchip/index.d.ts +20 -0
  42. package/dist/react/staticchip/index.js +29 -0
  43. package/package.json +1 -1
@@ -1335,6 +1335,44 @@
1335
1335
  }
1336
1336
  }
1337
1337
  ],
1338
+ "events": [
1339
+ {
1340
+ "description": "(React: onClick) This event is dispatched when the chip is clicked.",
1341
+ "name": "click",
1342
+ "reactName": "onClick",
1343
+ "inheritedFrom": {
1344
+ "name": "Buttonsimple",
1345
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
1346
+ }
1347
+ },
1348
+ {
1349
+ "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the chip.",
1350
+ "name": "keydown",
1351
+ "reactName": "onKeyDown",
1352
+ "inheritedFrom": {
1353
+ "name": "Buttonsimple",
1354
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
1355
+ }
1356
+ },
1357
+ {
1358
+ "description": "(React: onKeyUp) This event is dispatched when a key is released on the chip.",
1359
+ "name": "keyup",
1360
+ "reactName": "onKeyUp",
1361
+ "inheritedFrom": {
1362
+ "name": "Buttonsimple",
1363
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
1364
+ }
1365
+ },
1366
+ {
1367
+ "description": "(React: onFocus) This event is dispatched when the chip receives focus.",
1368
+ "name": "focus",
1369
+ "reactName": "onFocus",
1370
+ "inheritedFrom": {
1371
+ "name": "Buttonsimple",
1372
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
1373
+ }
1374
+ }
1375
+ ],
1338
1376
  "attributes": [
1339
1377
  {
1340
1378
  "name": "variant",
@@ -1501,46 +1539,8 @@
1501
1539
  "module": "/src/components/buttonsimple/buttonsimple.component"
1502
1540
  },
1503
1541
  "tagName": "mdc-alertchip",
1504
- "jsDoc": "/**\n * mdc-alertchip component is an interactive chip that consumers can use to represent an alert.\n *\n * - It supports a leading icon along with label.\n * - It supports 5 variants of alerts - neutral, warning, error, success, and informational\n *\n * This component is built by extending Buttonsimple.\n *\n * @tagname mdc-alertchip\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @cssproperty --mdc-chip-color - The color of the label text\n * @cssproperty --mdc-chip-icon-color - The color of the icon\n * @cssproperty --mdc-chip-border-color - The border color of the alertchip\n * @cssproperty --mdc-chip-background-color - The background color of the alertchip\n *\n * @csspart icon - The alert icon\n * @csspart label - The text label of the alertchip\n */",
1505
- "customElement": true,
1506
- "events": [
1507
- {
1508
- "description": "(React: onClick) This event is dispatched when the button is clicked.",
1509
- "name": "click",
1510
- "reactName": "onClick",
1511
- "inheritedFrom": {
1512
- "name": "Buttonsimple",
1513
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
1514
- }
1515
- },
1516
- {
1517
- "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the button.",
1518
- "name": "keydown",
1519
- "reactName": "onKeyDown",
1520
- "inheritedFrom": {
1521
- "name": "Buttonsimple",
1522
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
1523
- }
1524
- },
1525
- {
1526
- "description": "(React: onKeyUp) This event is dispatched when a key is released on the button.",
1527
- "name": "keyup",
1528
- "reactName": "onKeyUp",
1529
- "inheritedFrom": {
1530
- "name": "Buttonsimple",
1531
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
1532
- }
1533
- },
1534
- {
1535
- "description": "(React: onFocus) This event is dispatched when the button receives focus.",
1536
- "name": "focus",
1537
- "reactName": "onFocus",
1538
- "inheritedFrom": {
1539
- "name": "Buttonsimple",
1540
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
1541
- }
1542
- }
1543
- ]
1542
+ "jsDoc": "/**\n * mdc-alertchip component is an interactive chip that consumers can use to represent an alert.\n *\n * - It supports a leading icon along with label.\n * - It supports 5 variants of alerts - neutral, warning, error, success, and informational\n *\n * This component is built by extending Buttonsimple.\n *\n * @tagname mdc-alertchip\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @cssproperty --mdc-chip-color - The color of the label text\n * @cssproperty --mdc-chip-icon-color - The color of the icon\n * @cssproperty --mdc-chip-border-color - The border color of the alertchip\n * @cssproperty --mdc-chip-background-color - The background color of the alertchip\n *\n * @csspart icon - The alert icon\n * @csspart label - The text label of the alertchip\n *\n * @event click - (React: onClick) This event is dispatched when the chip is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.\n * @event focus - (React: onFocus) This event is dispatched when the chip receives focus.\n */",
1543
+ "customElement": true
1544
1544
  }
1545
1545
  ],
1546
1546
  "exports": [
@@ -8802,6 +8802,12 @@
8802
8802
  "name": "--mdc-chip-background-color"
8803
8803
  }
8804
8804
  ],
8805
+ "cssParts": [
8806
+ {
8807
+ "description": "The label part of the chip.",
8808
+ "name": "label"
8809
+ }
8810
+ ],
8805
8811
  "members": [
8806
8812
  {
8807
8813
  "kind": "field",
@@ -9158,6 +9164,44 @@
9158
9164
  }
9159
9165
  }
9160
9166
  ],
9167
+ "events": [
9168
+ {
9169
+ "description": "(React: onClick) This event is dispatched when the chip is clicked.",
9170
+ "name": "click",
9171
+ "reactName": "onClick",
9172
+ "inheritedFrom": {
9173
+ "name": "Buttonsimple",
9174
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
9175
+ }
9176
+ },
9177
+ {
9178
+ "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the chip.",
9179
+ "name": "keydown",
9180
+ "reactName": "onKeyDown",
9181
+ "inheritedFrom": {
9182
+ "name": "Buttonsimple",
9183
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
9184
+ }
9185
+ },
9186
+ {
9187
+ "description": "(React: onKeyUp) This event is dispatched when a key is released on the chip.",
9188
+ "name": "keyup",
9189
+ "reactName": "onKeyUp",
9190
+ "inheritedFrom": {
9191
+ "name": "Buttonsimple",
9192
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
9193
+ }
9194
+ },
9195
+ {
9196
+ "description": "(React: onFocus) This event is dispatched when the chip receives focus.",
9197
+ "name": "focus",
9198
+ "reactName": "onFocus",
9199
+ "inheritedFrom": {
9200
+ "name": "Buttonsimple",
9201
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
9202
+ }
9203
+ }
9204
+ ],
9161
9205
  "attributes": [
9162
9206
  {
9163
9207
  "name": "color",
@@ -9342,46 +9386,8 @@
9342
9386
  "module": "/src/components/buttonsimple/buttonsimple.component"
9343
9387
  },
9344
9388
  "tagName": "mdc-chip",
9345
- "jsDoc": "/**\n * mdc-chip is an interactive element that can be used to represent a chip. It supports a leading icon along with label.\n * Consumers can wrap this component around a tooltip to provide additional context.\n *\n * It is recommended to keep the label text for the chip component concise and compact.\n * For best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>,\n * including empty spaces to split words.\n *\n * This component is built by extending Buttonsimple.\n *\n * @tagname mdc-chip\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @cssproperty --mdc-chip-color - The color of the chip.\n * @cssproperty --mdc-chip-border-color - The border color of the chip.\n * @cssproperty --mdc-chip-background-color - The background color of the chip.\n *\n */",
9346
- "customElement": true,
9347
- "events": [
9348
- {
9349
- "description": "(React: onClick) This event is dispatched when the button is clicked.",
9350
- "name": "click",
9351
- "reactName": "onClick",
9352
- "inheritedFrom": {
9353
- "name": "Buttonsimple",
9354
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9355
- }
9356
- },
9357
- {
9358
- "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the button.",
9359
- "name": "keydown",
9360
- "reactName": "onKeyDown",
9361
- "inheritedFrom": {
9362
- "name": "Buttonsimple",
9363
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9364
- }
9365
- },
9366
- {
9367
- "description": "(React: onKeyUp) This event is dispatched when a key is released on the button.",
9368
- "name": "keyup",
9369
- "reactName": "onKeyUp",
9370
- "inheritedFrom": {
9371
- "name": "Buttonsimple",
9372
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9373
- }
9374
- },
9375
- {
9376
- "description": "(React: onFocus) This event is dispatched when the button receives focus.",
9377
- "name": "focus",
9378
- "reactName": "onFocus",
9379
- "inheritedFrom": {
9380
- "name": "Buttonsimple",
9381
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
9382
- }
9383
- }
9384
- ]
9389
+ "jsDoc": "/**\n * mdc-chip is an interactive element that can be used to represent a chip. It supports a leading icon along with label.\n * Consumers can wrap this component around a tooltip to provide additional context.\n *\n * It is recommended to keep the label text for the chip component concise and compact.\n * For best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>,\n * including empty spaces to split words.\n *\n * This component is built by extending Buttonsimple.\n *\n * @tagname mdc-chip\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @cssproperty --mdc-chip-color - The color of the chip.\n * @cssproperty --mdc-chip-border-color - The border color of the chip.\n * @cssproperty --mdc-chip-background-color - The background color of the chip.\n *\n * @csspart label - The label part of the chip.\n *\n * @event click - (React: onClick) This event is dispatched when the chip is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.\n * @event focus - (React: onFocus) This event is dispatched when the chip receives focus.\n *\n */",
9390
+ "customElement": true
9385
9391
  }
9386
9392
  ],
9387
9393
  "exports": [
@@ -12741,6 +12747,42 @@
12741
12747
  "kind": "class",
12742
12748
  "description": "mdc-filterchip component is an interactive chip that consumers can use to select or deselect.\nThey can be found with lists or tables as quick filters.\n\nThis component is built on top of the mdc-chip component.",
12743
12749
  "name": "FilterChip",
12750
+ "cssProperties": [
12751
+ {
12752
+ "description": "The color of the chip.",
12753
+ "name": "--mdc-chip-color",
12754
+ "inheritedFrom": {
12755
+ "name": "Chip",
12756
+ "module": "src/components/chip/chip.component.ts"
12757
+ }
12758
+ },
12759
+ {
12760
+ "description": "The border color of the chip.",
12761
+ "name": "--mdc-chip-border-color",
12762
+ "inheritedFrom": {
12763
+ "name": "Chip",
12764
+ "module": "src/components/chip/chip.component.ts"
12765
+ }
12766
+ },
12767
+ {
12768
+ "description": "The background color of the chip.",
12769
+ "name": "--mdc-chip-background-color",
12770
+ "inheritedFrom": {
12771
+ "name": "Chip",
12772
+ "module": "src/components/chip/chip.component.ts"
12773
+ }
12774
+ }
12775
+ ],
12776
+ "cssParts": [
12777
+ {
12778
+ "description": "The label part of the chip.",
12779
+ "name": "label",
12780
+ "inheritedFrom": {
12781
+ "name": "Chip",
12782
+ "module": "src/components/chip/chip.component.ts"
12783
+ }
12784
+ }
12785
+ ],
12744
12786
  "members": [
12745
12787
  {
12746
12788
  "kind": "field",
@@ -13140,6 +13182,44 @@
13140
13182
  }
13141
13183
  }
13142
13184
  ],
13185
+ "events": [
13186
+ {
13187
+ "description": "(React: onClick) This event is dispatched when the chip is clicked.",
13188
+ "name": "click",
13189
+ "reactName": "onClick",
13190
+ "inheritedFrom": {
13191
+ "name": "Buttonsimple",
13192
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
13193
+ }
13194
+ },
13195
+ {
13196
+ "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the chip.",
13197
+ "name": "keydown",
13198
+ "reactName": "onKeyDown",
13199
+ "inheritedFrom": {
13200
+ "name": "Buttonsimple",
13201
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
13202
+ }
13203
+ },
13204
+ {
13205
+ "description": "(React: onKeyUp) This event is dispatched when a key is released on the chip.",
13206
+ "name": "keyup",
13207
+ "reactName": "onKeyUp",
13208
+ "inheritedFrom": {
13209
+ "name": "Buttonsimple",
13210
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
13211
+ }
13212
+ },
13213
+ {
13214
+ "description": "(React: onFocus) This event is dispatched when the chip receives focus.",
13215
+ "name": "focus",
13216
+ "reactName": "onFocus",
13217
+ "inheritedFrom": {
13218
+ "name": "Buttonsimple",
13219
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
13220
+ }
13221
+ }
13222
+ ],
13143
13223
  "attributes": [
13144
13224
  {
13145
13225
  "name": "selected",
@@ -13335,72 +13415,8 @@
13335
13415
  "module": "/src/components/chip/chip.component"
13336
13416
  },
13337
13417
  "tagName": "mdc-filterchip",
13338
- "jsDoc": "/**\n * mdc-filterchip component is an interactive chip that consumers can use to select or deselect.\n * They can be found with lists or tables as quick filters.\n *\n * This component is built on top of the mdc-chip component.\n *\n * @tagname mdc-filterchip\n *\n */",
13339
- "customElement": true,
13340
- "cssProperties": [
13341
- {
13342
- "description": "The color of the chip.",
13343
- "name": "--mdc-chip-color",
13344
- "inheritedFrom": {
13345
- "name": "Chip",
13346
- "module": "src/components/chip/chip.component.ts"
13347
- }
13348
- },
13349
- {
13350
- "description": "The border color of the chip.",
13351
- "name": "--mdc-chip-border-color",
13352
- "inheritedFrom": {
13353
- "name": "Chip",
13354
- "module": "src/components/chip/chip.component.ts"
13355
- }
13356
- },
13357
- {
13358
- "description": "The background color of the chip.",
13359
- "name": "--mdc-chip-background-color",
13360
- "inheritedFrom": {
13361
- "name": "Chip",
13362
- "module": "src/components/chip/chip.component.ts"
13363
- }
13364
- }
13365
- ],
13366
- "events": [
13367
- {
13368
- "description": "(React: onClick) This event is dispatched when the button is clicked.",
13369
- "name": "click",
13370
- "reactName": "onClick",
13371
- "inheritedFrom": {
13372
- "name": "Buttonsimple",
13373
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
13374
- }
13375
- },
13376
- {
13377
- "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the button.",
13378
- "name": "keydown",
13379
- "reactName": "onKeyDown",
13380
- "inheritedFrom": {
13381
- "name": "Buttonsimple",
13382
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
13383
- }
13384
- },
13385
- {
13386
- "description": "(React: onKeyUp) This event is dispatched when a key is released on the button.",
13387
- "name": "keyup",
13388
- "reactName": "onKeyUp",
13389
- "inheritedFrom": {
13390
- "name": "Buttonsimple",
13391
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
13392
- }
13393
- },
13394
- {
13395
- "description": "(React: onFocus) This event is dispatched when the button receives focus.",
13396
- "name": "focus",
13397
- "reactName": "onFocus",
13398
- "inheritedFrom": {
13399
- "name": "Buttonsimple",
13400
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
13401
- }
13402
- }
13403
- ]
13418
+ "jsDoc": "/**\n * mdc-filterchip component is an interactive chip that consumers can use to select or deselect.\n * They can be found with lists or tables as quick filters.\n *\n * This component is built on top of the mdc-chip component.\n *\n * @tagname mdc-filterchip\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @csspart label - The label part of the chip.\n *\n * @cssproperty --mdc-chip-color - The color of the chip.\n * @cssproperty --mdc-chip-border-color - The border color of the chip.\n * @cssproperty --mdc-chip-background-color - The background color of the chip.\n *\n * @event click - (React: onClick) This event is dispatched when the chip is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.\n * @event focus - (React: onFocus) This event is dispatched when the chip receives focus.\n */",
13419
+ "customElement": true
13404
13420
  }
13405
13421
  ],
13406
13422
  "exports": [
@@ -15488,6 +15504,20 @@
15488
15504
  "name": "--mdc-chip-background-color"
15489
15505
  }
15490
15506
  ],
15507
+ "cssParts": [
15508
+ {
15509
+ "description": "The label part of the chip.",
15510
+ "name": "label"
15511
+ },
15512
+ {
15513
+ "description": "The icon part of the chip.",
15514
+ "name": "icon"
15515
+ },
15516
+ {
15517
+ "description": "The close icon part of the chip.",
15518
+ "name": "close-icon"
15519
+ }
15520
+ ],
15491
15521
  "members": [
15492
15522
  {
15493
15523
  "kind": "field",
@@ -15650,7 +15680,7 @@
15650
15680
  "module": "/src/models"
15651
15681
  },
15652
15682
  "tagName": "mdc-inputchip",
15653
- "jsDoc": "/**\n * mdc-inputchip component is an interactive chip that consumers can use to represent an input.\n *\n * - It supports a leading icon along with label.\n * - It supports an error state for validation.\n * - It supports a close button to remove the chip.\n *\n * @tagname mdc-inputchip\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @event remove - This event is dispatched when the close button is activated. It bubbles and is composed.\n *\n * @cssproperty --mdc-chip-color - The color of the chip.\n * @cssproperty --mdc-chip-border-color - The border color of the chip.\n * @cssproperty --mdc-chip-background-color - The background color of the chip.\n *\n */",
15683
+ "jsDoc": "/**\n * mdc-inputchip component is an interactive chip that consumers can use to represent an input.\n *\n * - It supports a leading icon along with label.\n * - It supports an error state for validation.\n * - It supports a close button to remove the chip.\n *\n * @tagname mdc-inputchip\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @event remove - This event is dispatched when the close button is activated. It bubbles and is composed.\n *\n * @csspart label - The label part of the chip.\n * @csspart icon - The icon part of the chip.\n * @csspart close-icon - The close icon part of the chip.\n *\n * @cssproperty --mdc-chip-color - The color of the chip.\n * @cssproperty --mdc-chip-border-color - The border color of the chip.\n * @cssproperty --mdc-chip-background-color - The background color of the chip.\n *\n */",
15654
15684
  "customElement": true
15655
15685
  }
15656
15686
  ],
@@ -18540,15 +18570,15 @@
18540
18570
  },
18541
18571
  {
18542
18572
  "kind": "javascript-module",
18543
- "path": "components/menuitemcheckbox/menuitemcheckbox.component.js",
18573
+ "path": "components/menuitem/menuitem.component.js",
18544
18574
  "declarations": [
18545
18575
  {
18546
18576
  "kind": "class",
18547
- "description": "A menuitemcheckbox component is a checkable menuitem.\nThere should be no focusable descendants inside this menuitemcheckbox component.\n\nThe `checked` attribute indicates whether the menuitemcheckbox is checked or not.\n\nMenu item checkbox has `name` and `value` attribute that can be used to identify the menu item when it is selected.\n\nThe `indicator` attribute is used to differentiate between <b>checkbox</b>, <b>checkmark</b>, <b>toggle</b> and <b>none</b>.\nBy default, the `indicator` is set to <b>checkbox</b>.<br/>\n\nThe checkbox will always be positioned on the leading side of the menuitem label and\nthe toggle and checkmark will always be positioned on the trailing side.\n\nThe checkbox will have the possible states of `true` or `false`.\nIf the indicator is set to <b>checkmark</b> and if the `checked` attribute is set to `true`,\nthen the checkmark will be displayed. if not, then no indicator will be displayed.\n\nThe forth options for the `indicator` is <b>none</b>, which will not display any indicator at all.\nIt is intended to be used for customised menu items where the indicator is implemented differently.\nFor example, you can use a custom icon or a different visual element to indicate the state of the menu item.\nMake sure the new indicator is accessible.\n\nIf you want only one item in a group to be checked, consider using menuitemradio component.",
18548
- "name": "MenuItemCheckbox",
18577
+ "description": "menuitem component is inherited by listitem component with the role set `menuitem`.<br/>\nA menu item can contain an icon on the leading or trailing side.\n\nThe leading and trailing slots can be used to display controls and text.<br/>\nBased on the leading/trailing slot, the position of the controls and text can be adjusted.\n\nPlease use element with role=menu as a parent element even when there is only menuitem for a11y purpose.\nFor example mdc-menupopover or mdc-menubar.\n\nMenu item has `name` and `value` attribute that can be used to identify the menu item when it is selected.\n\n**Note**: If a menuitem contains a long text, it is recommended to create a tooltip for the menuitem that displays the full text on hover.\nConsumers need to add a unique ID to this menuitem and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the menuitem using the `triggerID` attribute.",
18578
+ "name": "MenuItem",
18549
18579
  "slots": [
18550
18580
  {
18551
- "description": "slot for menu item checkbox controls to appear of leading end.",
18581
+ "description": "slot for menu item controls to appear of leading end.",
18552
18582
  "name": "leading-controls",
18553
18583
  "inheritedFrom": {
18554
18584
  "name": "ListItem",
@@ -18556,7 +18586,7 @@
18556
18586
  }
18557
18587
  },
18558
18588
  {
18559
- "description": "slot for menu item checkbox primary label.",
18589
+ "description": "slot for menu item primary label.",
18560
18590
  "name": "leading-text-primary-label",
18561
18591
  "inheritedFrom": {
18562
18592
  "name": "ListItem",
@@ -18564,7 +18594,7 @@
18564
18594
  }
18565
18595
  },
18566
18596
  {
18567
- "description": "slot for menu item checkbox secondary label.",
18597
+ "description": "slot for menu item secondary label.",
18568
18598
  "name": "leading-text-secondary-label",
18569
18599
  "inheritedFrom": {
18570
18600
  "name": "ListItem",
@@ -18572,7 +18602,7 @@
18572
18602
  }
18573
18603
  },
18574
18604
  {
18575
- "description": "slot for menu item checkbox tertiary label.",
18605
+ "description": "slot for menu item tertiary label.",
18576
18606
  "name": "leading-text-tertiary-label",
18577
18607
  "inheritedFrom": {
18578
18608
  "name": "ListItem",
@@ -18580,7 +18610,7 @@
18580
18610
  }
18581
18611
  },
18582
18612
  {
18583
- "description": "slot for menu item checkbox side header text.",
18613
+ "description": "slot for menu item side header text.",
18584
18614
  "name": "trailing-text-side-header",
18585
18615
  "inheritedFrom": {
18586
18616
  "name": "ListItem",
@@ -18588,7 +18618,7 @@
18588
18618
  }
18589
18619
  },
18590
18620
  {
18591
- "description": "slot for menu item checkbox subline text.",
18621
+ "description": "slot for menu item subline text.",
18592
18622
  "name": "trailing-text-subline",
18593
18623
  "inheritedFrom": {
18594
18624
  "name": "ListItem",
@@ -18596,7 +18626,7 @@
18596
18626
  }
18597
18627
  },
18598
18628
  {
18599
- "description": "slot for menu item checkbox controls to appear of trailing end.",
18629
+ "description": "slot for menu item controls to appear of trailing end.",
18600
18630
  "name": "trailing-controls",
18601
18631
  "inheritedFrom": {
18602
18632
  "name": "ListItem",
@@ -18613,67 +18643,6 @@
18613
18643
  }
18614
18644
  ],
18615
18645
  "members": [
18616
- {
18617
- "kind": "field",
18618
- "name": "checked",
18619
- "type": {
18620
- "text": "boolean"
18621
- },
18622
- "default": "false",
18623
- "description": "The checked attribute is used to indicate that the menuitemcheckbox is checked or not.",
18624
- "attribute": "checked",
18625
- "reflects": true
18626
- },
18627
- {
18628
- "kind": "field",
18629
- "name": "indicator",
18630
- "type": {
18631
- "text": "Indicator"
18632
- },
18633
- "description": "The indicator attribute is used to differentiate between <b>checkbox</b> and <b>toggle</b>.",
18634
- "default": "'checkbox'",
18635
- "attribute": "indicator",
18636
- "reflects": true
18637
- },
18638
- {
18639
- "kind": "method",
18640
- "name": "handleMouseClick",
18641
- "privacy": "private",
18642
- "description": "Handles click events to toggle checked state\nIf the menuitemcheckbox is disabled, it does nothing.\nIf the menuitemcheckbox is not disabled, it toggles the `checked` state between `true` and `false`."
18643
- },
18644
- {
18645
- "kind": "method",
18646
- "name": "staticCheckbox",
18647
- "privacy": "private",
18648
- "return": {
18649
- "type": {
18650
- "text": ""
18651
- }
18652
- },
18653
- "description": "Returns a static checkbox element if the indicator is set to checkbox.\nIf the indicator is not set to checkbox, it returns nothing."
18654
- },
18655
- {
18656
- "kind": "method",
18657
- "name": "staticToggle",
18658
- "privacy": "private",
18659
- "return": {
18660
- "type": {
18661
- "text": ""
18662
- }
18663
- },
18664
- "description": "Returns a static toggle element if the indicator is set to toggle.\nIf the indicator is not set to toggle, it returns nothing.\n\nThe toggle will always be positioned on the trailing side of the menuitem label."
18665
- },
18666
- {
18667
- "kind": "method",
18668
- "name": "getCheckmarkIcon",
18669
- "privacy": "private",
18670
- "return": {
18671
- "type": {
18672
- "text": ""
18673
- }
18674
- },
18675
- "description": "Returns a checkmark icon if the indicator is set to checkmark and the checked state is true.\nIf the indicator is not set to checkmark or the checked state is false, it returns nothing.\n\nThe checkmark icon will always be positioned on the trailing side of the menuitem label."
18676
- },
18677
18646
  {
18678
18647
  "kind": "field",
18679
18648
  "name": "arrowPosition",
@@ -18682,11 +18651,7 @@
18682
18651
  },
18683
18652
  "description": "Defines where the arrow icon will appear.\n- `'leading'`: Icon appears on the leading edge (start).\n- `'trailing'`: Icon appears on the trailing edge (end).\n\nIf not set, no arrow is displayed.",
18684
18653
  "attribute": "arrow-position",
18685
- "reflects": true,
18686
- "inheritedFrom": {
18687
- "name": "MenuItem",
18688
- "module": "components/menuitem/menuitem.component.js"
18689
- }
18654
+ "reflects": true
18690
18655
  },
18691
18656
  {
18692
18657
  "kind": "field",
@@ -18696,11 +18661,7 @@
18696
18661
  },
18697
18662
  "description": "Defines the direction the arrow icon points.\n- `'positive'`: Arrow points toward the trailing side.\n- `'negative'`: Arrow points toward the leading side.",
18698
18663
  "attribute": "arrow-direction",
18699
- "reflects": true,
18700
- "inheritedFrom": {
18701
- "name": "MenuItem",
18702
- "module": "components/menuitem/menuitem.component.js"
18703
- }
18664
+ "reflects": true
18704
18665
  },
18705
18666
  {
18706
18667
  "kind": "field",
@@ -18710,11 +18671,7 @@
18710
18671
  },
18711
18672
  "description": "The name attribute is used to identify the menu item when it is selected.",
18712
18673
  "attribute": "name",
18713
- "reflects": true,
18714
- "inheritedFrom": {
18715
- "name": "MenuItem",
18716
- "module": "components/menuitem/menuitem.component.js"
18717
- }
18674
+ "reflects": true
18718
18675
  },
18719
18676
  {
18720
18677
  "kind": "field",
@@ -18724,11 +18681,7 @@
18724
18681
  },
18725
18682
  "description": "The value attribute is used to represent a value when the menu item is selected.\nIt is typically used with checkbox and radio menu items, but can be handy for any menu item.",
18726
18683
  "attribute": "value",
18727
- "reflects": true,
18728
- "inheritedFrom": {
18729
- "name": "MenuItem",
18730
- "module": "components/menuitem/menuitem.component.js"
18731
- }
18684
+ "reflects": true
18732
18685
  },
18733
18686
  {
18734
18687
  "kind": "method",
@@ -18772,11 +18725,7 @@
18772
18725
  "description": "The keyboard event that triggered the action."
18773
18726
  }
18774
18727
  ],
18775
- "description": "Handles the keyup event for the menu item.\nIf the Space key is released, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Space key.\nIt also prevents the default action of the Space key to avoid scrolling the page.\n\nThis follows the native behaviour, actionable element can be triggered by Space\nkey on the keyup event.\n\nNote: Action triggered by Enter on the keydown event.",
18776
- "inheritedFrom": {
18777
- "name": "MenuItem",
18778
- "module": "components/menuitem/menuitem.component.js"
18779
- }
18728
+ "description": "Handles the keyup event for the menu item.\nIf the Space key is released, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Space key.\nIt also prevents the default action of the Space key to avoid scrolling the page.\n\nThis follows the native behaviour, actionable element can be triggered by Space\nkey on the keyup event.\n\nNote: Action triggered by Enter on the keydown event."
18780
18729
  },
18781
18730
  {
18782
18731
  "kind": "method",
@@ -19063,15 +19012,7 @@
19063
19012
  ],
19064
19013
  "events": [
19065
19014
  {
19066
- "name": "change",
19067
- "type": {
19068
- "text": "Event"
19069
- },
19070
- "description": "(React: onChange) This event is dispatched when the menuitemcheckbox changes.",
19071
- "reactName": "onChange"
19072
- },
19073
- {
19074
- "description": "(React: onClick) This event is dispatched when the menuitemcheckbox is clicked.",
19015
+ "description": "(React: onClick) This event is dispatched when the menuitem is clicked.",
19075
19016
  "name": "click",
19076
19017
  "reactName": "onClick",
19077
19018
  "inheritedFrom": {
@@ -19079,15 +19020,6 @@
19079
19020
  "module": "src/components/listitem/listitem.component.ts"
19080
19021
  }
19081
19022
  },
19082
- {
19083
- "description": "(React: onFocus) This event is dispatched when the menuitemcheckbox receives focus.",
19084
- "name": "focus",
19085
- "reactName": "onFocus",
19086
- "inheritedFrom": {
19087
- "name": "ListItem",
19088
- "module": "src/components/listitem/listitem.component.ts"
19089
- }
19090
- },
19091
19023
  {
19092
19024
  "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the menuitem.",
19093
19025
  "name": "keydown",
@@ -19106,6 +19038,15 @@
19106
19038
  "module": "src/components/listitem/listitem.component.ts"
19107
19039
  }
19108
19040
  },
19041
+ {
19042
+ "description": "(React: onFocus) This event is dispatched when the menuitem receives focus.",
19043
+ "name": "focus",
19044
+ "reactName": "onFocus",
19045
+ "inheritedFrom": {
19046
+ "name": "ListItem",
19047
+ "module": "src/components/listitem/listitem.component.ts"
19048
+ }
19049
+ },
19109
19050
  {
19110
19051
  "description": "(React: onEnabled) This event is dispatched after the menuitem is enabled",
19111
19052
  "name": "enabled",
@@ -19144,35 +19085,13 @@
19144
19085
  }
19145
19086
  ],
19146
19087
  "attributes": [
19147
- {
19148
- "name": "checked",
19149
- "type": {
19150
- "text": "boolean"
19151
- },
19152
- "default": "false",
19153
- "description": "The checked attribute is used to indicate that the menuitemcheckbox is checked or not.",
19154
- "fieldName": "checked"
19155
- },
19156
- {
19157
- "name": "indicator",
19158
- "type": {
19159
- "text": "Indicator"
19160
- },
19161
- "description": "The indicator attribute is used to differentiate between <b>checkbox</b> and <b>toggle</b>.",
19162
- "default": "'checkbox'",
19163
- "fieldName": "indicator"
19164
- },
19165
19088
  {
19166
19089
  "name": "arrow-position",
19167
19090
  "type": {
19168
19091
  "text": "ArrowPositions | undefined"
19169
19092
  },
19170
19093
  "description": "Defines where the arrow icon will appear.\n- `'leading'`: Icon appears on the leading edge (start).\n- `'trailing'`: Icon appears on the trailing edge (end).\n\nIf not set, no arrow is displayed.",
19171
- "fieldName": "arrowPosition",
19172
- "inheritedFrom": {
19173
- "name": "MenuItem",
19174
- "module": "src/components/menuitem/menuitem.component.ts"
19175
- }
19094
+ "fieldName": "arrowPosition"
19176
19095
  },
19177
19096
  {
19178
19097
  "name": "arrow-direction",
@@ -19180,11 +19099,7 @@
19180
19099
  "text": "ArrowDirections | undefined"
19181
19100
  },
19182
19101
  "description": "Defines the direction the arrow icon points.\n- `'positive'`: Arrow points toward the trailing side.\n- `'negative'`: Arrow points toward the leading side.",
19183
- "fieldName": "arrowDirection",
19184
- "inheritedFrom": {
19185
- "name": "MenuItem",
19186
- "module": "src/components/menuitem/menuitem.component.ts"
19187
- }
19102
+ "fieldName": "arrowDirection"
19188
19103
  },
19189
19104
  {
19190
19105
  "name": "name",
@@ -19192,11 +19107,7 @@
19192
19107
  "text": "string | undefined"
19193
19108
  },
19194
19109
  "description": "The name attribute is used to identify the menu item when it is selected.",
19195
- "fieldName": "name",
19196
- "inheritedFrom": {
19197
- "name": "MenuItem",
19198
- "module": "src/components/menuitem/menuitem.component.ts"
19199
- }
19110
+ "fieldName": "name"
19200
19111
  },
19201
19112
  {
19202
19113
  "name": "value",
@@ -19204,11 +19115,7 @@
19204
19115
  "text": "string | undefined"
19205
19116
  },
19206
19117
  "description": "The value attribute is used to represent a value when the menu item is selected.\nIt is typically used with checkbox and radio menu items, but can be handy for any menu item.",
19207
- "fieldName": "value",
19208
- "inheritedFrom": {
19209
- "name": "MenuItem",
19210
- "module": "src/components/menuitem/menuitem.component.ts"
19211
- }
19118
+ "fieldName": "value"
19212
19119
  },
19213
19120
  {
19214
19121
  "name": "disabled",
@@ -19324,11 +19231,11 @@
19324
19231
  }
19325
19232
  ],
19326
19233
  "superclass": {
19327
- "name": "MenuItem",
19328
- "module": "/src/components/menuitem/menuitem.component"
19234
+ "name": "ListItem",
19235
+ "module": "/src/components/listitem/listitem.component"
19329
19236
  },
19330
- "tagName": "mdc-menuitemcheckbox",
19331
- "jsDoc": "/**\n * A menuitemcheckbox component is a checkable menuitem.\n * There should be no focusable descendants inside this menuitemcheckbox component.\n *\n * The `checked` attribute indicates whether the menuitemcheckbox is checked or not.\n *\n * Menu item checkbox has `name` and `value` attribute that can be used to identify the menu item when it is selected.\n *\n * The `indicator` attribute is used to differentiate between <b>checkbox</b>, <b>checkmark</b>, <b>toggle</b> and <b>none</b>.\n * By default, the `indicator` is set to <b>checkbox</b>.<br/>\n *\n * The checkbox will always be positioned on the leading side of the menuitem label and\n * the toggle and checkmark will always be positioned on the trailing side.\n *\n * The checkbox will have the possible states of `true` or `false`.\n * If the indicator is set to <b>checkmark</b> and if the `checked` attribute is set to `true`,\n * then the checkmark will be displayed. if not, then no indicator will be displayed.\n *\n * The forth options for the `indicator` is <b>none</b>, which will not display any indicator at all.\n * It is intended to be used for customised menu items where the indicator is implemented differently.\n * For example, you can use a custom icon or a different visual element to indicate the state of the menu item.\n * Make sure the new indicator is accessible.\n *\n * If you want only one item in a group to be checked, consider using menuitemradio component.\n *\n * @dependency mdc-staticcheckbox\n * @dependency mdc-statictoggle\n * @dependency mdc-icon\n *\n * @tagname mdc-menuitemcheckbox\n *\n * @slot leading-controls - slot for menu item checkbox controls to appear of leading end.\n * @slot leading-text-primary-label - slot for menu item checkbox primary label.\n * @slot leading-text-secondary-label - slot for menu item checkbox secondary label.\n * @slot leading-text-tertiary-label - slot for menu item checkbox tertiary label.\n * @slot trailing-text-side-header - slot for menu item checkbox side header text.\n * @slot trailing-text-subline - slot for menu item checkbox subline text.\n * @slot trailing-controls - slot for menu item checkbox controls to appear of trailing end.\n *\n * @event change - (React: onChange) This event is dispatched when the menuitemcheckbox changes.\n * @event click - (React: onClick) This event is dispatched when the menuitemcheckbox is clicked.\n * @event focus - (React: onFocus) This event is dispatched when the menuitemcheckbox receives focus.\n */",
19237
+ "tagName": "mdc-menuitem",
19238
+ "jsDoc": "/**\n * menuitem component is inherited by listitem component with the role set `menuitem`.<br/>\n * A menu item can contain an icon on the leading or trailing side.\n *\n * The leading and trailing slots can be used to display controls and text.<br/>\n * Based on the leading/trailing slot, the position of the controls and text can be adjusted.\n *\n * Please use element with role=menu as a parent element even when there is only menuitem for a11y purpose.\n * For example mdc-menupopover or mdc-menubar.\n *\n * Menu item has `name` and `value` attribute that can be used to identify the menu item when it is selected.\n *\n * **Note**: If a menuitem contains a long text, it is recommended to create a tooltip for the menuitem that displays the full text on hover.\n * Consumers need to add a unique ID to this menuitem and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the menuitem using the `triggerID` attribute.\n *\n * @dependency mdc-text\n * @dependency mdc-icon\n *\n * @tagname mdc-menuitem\n *\n * @slot leading-controls - slot for menu item controls to appear of leading end.\n * @slot leading-text-primary-label - slot for menu item primary label.\n * @slot leading-text-secondary-label - slot for menu item secondary label.\n * @slot leading-text-tertiary-label - slot for menu item tertiary label.\n * @slot trailing-text-side-header - slot for menu item side header text.\n * @slot trailing-text-subline - slot for menu item subline text.\n * @slot trailing-controls - slot for menu item controls to appear of trailing end.\n *\n * @event click - (React: onClick) This event is dispatched when the menuitem is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the menuitem.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the menuitem.\n * @event focus - (React: onFocus) This event is dispatched when the menuitem receives focus.\n * @event enabled - (React: onEnabled) This event is dispatched after the menuitem is enabled\n * @event disabled - (React: onDisabled) This event is dispatched after the menuitem is disabled\n * @event created - (React: onCreated) This event is dispatched after the menuitem is created (added to the DOM)\n * @event destroyed - (React: onDestroyed) This event is dispatched after the menuitem is destroyed (removed from the DOM)\n */",
19332
19239
  "customElement": true,
19333
19240
  "cssProperties": [
19334
19241
  {
@@ -19435,23 +19342,23 @@
19435
19342
  "kind": "js",
19436
19343
  "name": "default",
19437
19344
  "declaration": {
19438
- "name": "MenuItemCheckbox",
19439
- "module": "components/menuitemcheckbox/menuitemcheckbox.component.js"
19345
+ "name": "MenuItem",
19346
+ "module": "components/menuitem/menuitem.component.js"
19440
19347
  }
19441
19348
  }
19442
19349
  ]
19443
19350
  },
19444
19351
  {
19445
19352
  "kind": "javascript-module",
19446
- "path": "components/menuitem/menuitem.component.js",
19353
+ "path": "components/menuitemcheckbox/menuitemcheckbox.component.js",
19447
19354
  "declarations": [
19448
19355
  {
19449
19356
  "kind": "class",
19450
- "description": "menuitem component is inherited by listitem component with the role set `menuitem`.<br/>\nA menu item can contain an icon on the leading or trailing side.\n\nThe leading and trailing slots can be used to display controls and text.<br/>\nBased on the leading/trailing slot, the position of the controls and text can be adjusted.\n\nPlease use element with role=menu as a parent element even when there is only menuitem for a11y purpose.\nFor example mdc-menupopover or mdc-menubar.\n\nMenu item has `name` and `value` attribute that can be used to identify the menu item when it is selected.\n\n**Note**: If a menuitem contains a long text, it is recommended to create a tooltip for the menuitem that displays the full text on hover.\nConsumers need to add a unique ID to this menuitem and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the menuitem using the `triggerID` attribute.",
19451
- "name": "MenuItem",
19357
+ "description": "A menuitemcheckbox component is a checkable menuitem.\nThere should be no focusable descendants inside this menuitemcheckbox component.\n\nThe `checked` attribute indicates whether the menuitemcheckbox is checked or not.\n\nMenu item checkbox has `name` and `value` attribute that can be used to identify the menu item when it is selected.\n\nThe `indicator` attribute is used to differentiate between <b>checkbox</b>, <b>checkmark</b>, <b>toggle</b> and <b>none</b>.\nBy default, the `indicator` is set to <b>checkbox</b>.<br/>\n\nThe checkbox will always be positioned on the leading side of the menuitem label and\nthe toggle and checkmark will always be positioned on the trailing side.\n\nThe checkbox will have the possible states of `true` or `false`.\nIf the indicator is set to <b>checkmark</b> and if the `checked` attribute is set to `true`,\nthen the checkmark will be displayed. if not, then no indicator will be displayed.\n\nThe forth options for the `indicator` is <b>none</b>, which will not display any indicator at all.\nIt is intended to be used for customised menu items where the indicator is implemented differently.\nFor example, you can use a custom icon or a different visual element to indicate the state of the menu item.\nMake sure the new indicator is accessible.\n\nIf you want only one item in a group to be checked, consider using menuitemradio component.",
19358
+ "name": "MenuItemCheckbox",
19452
19359
  "slots": [
19453
19360
  {
19454
- "description": "slot for menu item controls to appear of leading end.",
19361
+ "description": "slot for menu item checkbox controls to appear of leading end.",
19455
19362
  "name": "leading-controls",
19456
19363
  "inheritedFrom": {
19457
19364
  "name": "ListItem",
@@ -19459,7 +19366,7 @@
19459
19366
  }
19460
19367
  },
19461
19368
  {
19462
- "description": "slot for menu item primary label.",
19369
+ "description": "slot for menu item checkbox primary label.",
19463
19370
  "name": "leading-text-primary-label",
19464
19371
  "inheritedFrom": {
19465
19372
  "name": "ListItem",
@@ -19467,7 +19374,7 @@
19467
19374
  }
19468
19375
  },
19469
19376
  {
19470
- "description": "slot for menu item secondary label.",
19377
+ "description": "slot for menu item checkbox secondary label.",
19471
19378
  "name": "leading-text-secondary-label",
19472
19379
  "inheritedFrom": {
19473
19380
  "name": "ListItem",
@@ -19475,7 +19382,7 @@
19475
19382
  }
19476
19383
  },
19477
19384
  {
19478
- "description": "slot for menu item tertiary label.",
19385
+ "description": "slot for menu item checkbox tertiary label.",
19479
19386
  "name": "leading-text-tertiary-label",
19480
19387
  "inheritedFrom": {
19481
19388
  "name": "ListItem",
@@ -19483,7 +19390,7 @@
19483
19390
  }
19484
19391
  },
19485
19392
  {
19486
- "description": "slot for menu item side header text.",
19393
+ "description": "slot for menu item checkbox side header text.",
19487
19394
  "name": "trailing-text-side-header",
19488
19395
  "inheritedFrom": {
19489
19396
  "name": "ListItem",
@@ -19491,7 +19398,7 @@
19491
19398
  }
19492
19399
  },
19493
19400
  {
19494
- "description": "slot for menu item subline text.",
19401
+ "description": "slot for menu item checkbox subline text.",
19495
19402
  "name": "trailing-text-subline",
19496
19403
  "inheritedFrom": {
19497
19404
  "name": "ListItem",
@@ -19499,7 +19406,7 @@
19499
19406
  }
19500
19407
  },
19501
19408
  {
19502
- "description": "slot for menu item controls to appear of trailing end.",
19409
+ "description": "slot for menu item checkbox controls to appear of trailing end.",
19503
19410
  "name": "trailing-controls",
19504
19411
  "inheritedFrom": {
19505
19412
  "name": "ListItem",
@@ -19516,6 +19423,67 @@
19516
19423
  }
19517
19424
  ],
19518
19425
  "members": [
19426
+ {
19427
+ "kind": "field",
19428
+ "name": "checked",
19429
+ "type": {
19430
+ "text": "boolean"
19431
+ },
19432
+ "default": "false",
19433
+ "description": "The checked attribute is used to indicate that the menuitemcheckbox is checked or not.",
19434
+ "attribute": "checked",
19435
+ "reflects": true
19436
+ },
19437
+ {
19438
+ "kind": "field",
19439
+ "name": "indicator",
19440
+ "type": {
19441
+ "text": "Indicator"
19442
+ },
19443
+ "description": "The indicator attribute is used to differentiate between <b>checkbox</b> and <b>toggle</b>.",
19444
+ "default": "'checkbox'",
19445
+ "attribute": "indicator",
19446
+ "reflects": true
19447
+ },
19448
+ {
19449
+ "kind": "method",
19450
+ "name": "handleMouseClick",
19451
+ "privacy": "private",
19452
+ "description": "Handles click events to toggle checked state\nIf the menuitemcheckbox is disabled, it does nothing.\nIf the menuitemcheckbox is not disabled, it toggles the `checked` state between `true` and `false`."
19453
+ },
19454
+ {
19455
+ "kind": "method",
19456
+ "name": "staticCheckbox",
19457
+ "privacy": "private",
19458
+ "return": {
19459
+ "type": {
19460
+ "text": ""
19461
+ }
19462
+ },
19463
+ "description": "Returns a static checkbox element if the indicator is set to checkbox.\nIf the indicator is not set to checkbox, it returns nothing."
19464
+ },
19465
+ {
19466
+ "kind": "method",
19467
+ "name": "staticToggle",
19468
+ "privacy": "private",
19469
+ "return": {
19470
+ "type": {
19471
+ "text": ""
19472
+ }
19473
+ },
19474
+ "description": "Returns a static toggle element if the indicator is set to toggle.\nIf the indicator is not set to toggle, it returns nothing.\n\nThe toggle will always be positioned on the trailing side of the menuitem label."
19475
+ },
19476
+ {
19477
+ "kind": "method",
19478
+ "name": "getCheckmarkIcon",
19479
+ "privacy": "private",
19480
+ "return": {
19481
+ "type": {
19482
+ "text": ""
19483
+ }
19484
+ },
19485
+ "description": "Returns a checkmark icon if the indicator is set to checkmark and the checked state is true.\nIf the indicator is not set to checkmark or the checked state is false, it returns nothing.\n\nThe checkmark icon will always be positioned on the trailing side of the menuitem label."
19486
+ },
19519
19487
  {
19520
19488
  "kind": "field",
19521
19489
  "name": "arrowPosition",
@@ -19524,7 +19492,11 @@
19524
19492
  },
19525
19493
  "description": "Defines where the arrow icon will appear.\n- `'leading'`: Icon appears on the leading edge (start).\n- `'trailing'`: Icon appears on the trailing edge (end).\n\nIf not set, no arrow is displayed.",
19526
19494
  "attribute": "arrow-position",
19527
- "reflects": true
19495
+ "reflects": true,
19496
+ "inheritedFrom": {
19497
+ "name": "MenuItem",
19498
+ "module": "components/menuitem/menuitem.component.js"
19499
+ }
19528
19500
  },
19529
19501
  {
19530
19502
  "kind": "field",
@@ -19534,7 +19506,11 @@
19534
19506
  },
19535
19507
  "description": "Defines the direction the arrow icon points.\n- `'positive'`: Arrow points toward the trailing side.\n- `'negative'`: Arrow points toward the leading side.",
19536
19508
  "attribute": "arrow-direction",
19537
- "reflects": true
19509
+ "reflects": true,
19510
+ "inheritedFrom": {
19511
+ "name": "MenuItem",
19512
+ "module": "components/menuitem/menuitem.component.js"
19513
+ }
19538
19514
  },
19539
19515
  {
19540
19516
  "kind": "field",
@@ -19544,7 +19520,11 @@
19544
19520
  },
19545
19521
  "description": "The name attribute is used to identify the menu item when it is selected.",
19546
19522
  "attribute": "name",
19547
- "reflects": true
19523
+ "reflects": true,
19524
+ "inheritedFrom": {
19525
+ "name": "MenuItem",
19526
+ "module": "components/menuitem/menuitem.component.js"
19527
+ }
19548
19528
  },
19549
19529
  {
19550
19530
  "kind": "field",
@@ -19554,7 +19534,11 @@
19554
19534
  },
19555
19535
  "description": "The value attribute is used to represent a value when the menu item is selected.\nIt is typically used with checkbox and radio menu items, but can be handy for any menu item.",
19556
19536
  "attribute": "value",
19557
- "reflects": true
19537
+ "reflects": true,
19538
+ "inheritedFrom": {
19539
+ "name": "MenuItem",
19540
+ "module": "components/menuitem/menuitem.component.js"
19541
+ }
19558
19542
  },
19559
19543
  {
19560
19544
  "kind": "method",
@@ -19598,7 +19582,11 @@
19598
19582
  "description": "The keyboard event that triggered the action."
19599
19583
  }
19600
19584
  ],
19601
- "description": "Handles the keyup event for the menu item.\nIf the Space key is released, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Space key.\nIt also prevents the default action of the Space key to avoid scrolling the page.\n\nThis follows the native behaviour, actionable element can be triggered by Space\nkey on the keyup event.\n\nNote: Action triggered by Enter on the keydown event."
19585
+ "description": "Handles the keyup event for the menu item.\nIf the Space key is released, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Space key.\nIt also prevents the default action of the Space key to avoid scrolling the page.\n\nThis follows the native behaviour, actionable element can be triggered by Space\nkey on the keyup event.\n\nNote: Action triggered by Enter on the keydown event.",
19586
+ "inheritedFrom": {
19587
+ "name": "MenuItem",
19588
+ "module": "components/menuitem/menuitem.component.js"
19589
+ }
19602
19590
  },
19603
19591
  {
19604
19592
  "kind": "method",
@@ -19885,7 +19873,15 @@
19885
19873
  ],
19886
19874
  "events": [
19887
19875
  {
19888
- "description": "(React: onClick) This event is dispatched when the menuitem is clicked.",
19876
+ "name": "change",
19877
+ "type": {
19878
+ "text": "Event"
19879
+ },
19880
+ "description": "(React: onChange) This event is dispatched when the menuitemcheckbox changes.",
19881
+ "reactName": "onChange"
19882
+ },
19883
+ {
19884
+ "description": "(React: onClick) This event is dispatched when the menuitemcheckbox is clicked.",
19889
19885
  "name": "click",
19890
19886
  "reactName": "onClick",
19891
19887
  "inheritedFrom": {
@@ -19894,27 +19890,27 @@
19894
19890
  }
19895
19891
  },
19896
19892
  {
19897
- "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the menuitem.",
19898
- "name": "keydown",
19899
- "reactName": "onKeyDown",
19893
+ "description": "(React: onFocus) This event is dispatched when the menuitemcheckbox receives focus.",
19894
+ "name": "focus",
19895
+ "reactName": "onFocus",
19900
19896
  "inheritedFrom": {
19901
19897
  "name": "ListItem",
19902
19898
  "module": "src/components/listitem/listitem.component.ts"
19903
19899
  }
19904
19900
  },
19905
19901
  {
19906
- "description": "(React: onKeyUp) This event is dispatched when a key is released on the menuitem.",
19907
- "name": "keyup",
19908
- "reactName": "onKeyUp",
19902
+ "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the menuitem.",
19903
+ "name": "keydown",
19904
+ "reactName": "onKeyDown",
19909
19905
  "inheritedFrom": {
19910
19906
  "name": "ListItem",
19911
19907
  "module": "src/components/listitem/listitem.component.ts"
19912
19908
  }
19913
19909
  },
19914
19910
  {
19915
- "description": "(React: onFocus) This event is dispatched when the menuitem receives focus.",
19916
- "name": "focus",
19917
- "reactName": "onFocus",
19911
+ "description": "(React: onKeyUp) This event is dispatched when a key is released on the menuitem.",
19912
+ "name": "keyup",
19913
+ "reactName": "onKeyUp",
19918
19914
  "inheritedFrom": {
19919
19915
  "name": "ListItem",
19920
19916
  "module": "src/components/listitem/listitem.component.ts"
@@ -19958,13 +19954,35 @@
19958
19954
  }
19959
19955
  ],
19960
19956
  "attributes": [
19957
+ {
19958
+ "name": "checked",
19959
+ "type": {
19960
+ "text": "boolean"
19961
+ },
19962
+ "default": "false",
19963
+ "description": "The checked attribute is used to indicate that the menuitemcheckbox is checked or not.",
19964
+ "fieldName": "checked"
19965
+ },
19966
+ {
19967
+ "name": "indicator",
19968
+ "type": {
19969
+ "text": "Indicator"
19970
+ },
19971
+ "description": "The indicator attribute is used to differentiate between <b>checkbox</b> and <b>toggle</b>.",
19972
+ "default": "'checkbox'",
19973
+ "fieldName": "indicator"
19974
+ },
19961
19975
  {
19962
19976
  "name": "arrow-position",
19963
19977
  "type": {
19964
19978
  "text": "ArrowPositions | undefined"
19965
19979
  },
19966
19980
  "description": "Defines where the arrow icon will appear.\n- `'leading'`: Icon appears on the leading edge (start).\n- `'trailing'`: Icon appears on the trailing edge (end).\n\nIf not set, no arrow is displayed.",
19967
- "fieldName": "arrowPosition"
19981
+ "fieldName": "arrowPosition",
19982
+ "inheritedFrom": {
19983
+ "name": "MenuItem",
19984
+ "module": "src/components/menuitem/menuitem.component.ts"
19985
+ }
19968
19986
  },
19969
19987
  {
19970
19988
  "name": "arrow-direction",
@@ -19972,7 +19990,11 @@
19972
19990
  "text": "ArrowDirections | undefined"
19973
19991
  },
19974
19992
  "description": "Defines the direction the arrow icon points.\n- `'positive'`: Arrow points toward the trailing side.\n- `'negative'`: Arrow points toward the leading side.",
19975
- "fieldName": "arrowDirection"
19993
+ "fieldName": "arrowDirection",
19994
+ "inheritedFrom": {
19995
+ "name": "MenuItem",
19996
+ "module": "src/components/menuitem/menuitem.component.ts"
19997
+ }
19976
19998
  },
19977
19999
  {
19978
20000
  "name": "name",
@@ -19980,7 +20002,11 @@
19980
20002
  "text": "string | undefined"
19981
20003
  },
19982
20004
  "description": "The name attribute is used to identify the menu item when it is selected.",
19983
- "fieldName": "name"
20005
+ "fieldName": "name",
20006
+ "inheritedFrom": {
20007
+ "name": "MenuItem",
20008
+ "module": "src/components/menuitem/menuitem.component.ts"
20009
+ }
19984
20010
  },
19985
20011
  {
19986
20012
  "name": "value",
@@ -19988,7 +20014,11 @@
19988
20014
  "text": "string | undefined"
19989
20015
  },
19990
20016
  "description": "The value attribute is used to represent a value when the menu item is selected.\nIt is typically used with checkbox and radio menu items, but can be handy for any menu item.",
19991
- "fieldName": "value"
20017
+ "fieldName": "value",
20018
+ "inheritedFrom": {
20019
+ "name": "MenuItem",
20020
+ "module": "src/components/menuitem/menuitem.component.ts"
20021
+ }
19992
20022
  },
19993
20023
  {
19994
20024
  "name": "disabled",
@@ -20104,11 +20134,11 @@
20104
20134
  }
20105
20135
  ],
20106
20136
  "superclass": {
20107
- "name": "ListItem",
20108
- "module": "/src/components/listitem/listitem.component"
20137
+ "name": "MenuItem",
20138
+ "module": "/src/components/menuitem/menuitem.component"
20109
20139
  },
20110
- "tagName": "mdc-menuitem",
20111
- "jsDoc": "/**\n * menuitem component is inherited by listitem component with the role set `menuitem`.<br/>\n * A menu item can contain an icon on the leading or trailing side.\n *\n * The leading and trailing slots can be used to display controls and text.<br/>\n * Based on the leading/trailing slot, the position of the controls and text can be adjusted.\n *\n * Please use element with role=menu as a parent element even when there is only menuitem for a11y purpose.\n * For example mdc-menupopover or mdc-menubar.\n *\n * Menu item has `name` and `value` attribute that can be used to identify the menu item when it is selected.\n *\n * **Note**: If a menuitem contains a long text, it is recommended to create a tooltip for the menuitem that displays the full text on hover.\n * Consumers need to add a unique ID to this menuitem and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the menuitem using the `triggerID` attribute.\n *\n * @dependency mdc-text\n * @dependency mdc-icon\n *\n * @tagname mdc-menuitem\n *\n * @slot leading-controls - slot for menu item controls to appear of leading end.\n * @slot leading-text-primary-label - slot for menu item primary label.\n * @slot leading-text-secondary-label - slot for menu item secondary label.\n * @slot leading-text-tertiary-label - slot for menu item tertiary label.\n * @slot trailing-text-side-header - slot for menu item side header text.\n * @slot trailing-text-subline - slot for menu item subline text.\n * @slot trailing-controls - slot for menu item controls to appear of trailing end.\n *\n * @event click - (React: onClick) This event is dispatched when the menuitem is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the menuitem.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the menuitem.\n * @event focus - (React: onFocus) This event is dispatched when the menuitem receives focus.\n * @event enabled - (React: onEnabled) This event is dispatched after the menuitem is enabled\n * @event disabled - (React: onDisabled) This event is dispatched after the menuitem is disabled\n * @event created - (React: onCreated) This event is dispatched after the menuitem is created (added to the DOM)\n * @event destroyed - (React: onDestroyed) This event is dispatched after the menuitem is destroyed (removed from the DOM)\n */",
20140
+ "tagName": "mdc-menuitemcheckbox",
20141
+ "jsDoc": "/**\n * A menuitemcheckbox component is a checkable menuitem.\n * There should be no focusable descendants inside this menuitemcheckbox component.\n *\n * The `checked` attribute indicates whether the menuitemcheckbox is checked or not.\n *\n * Menu item checkbox has `name` and `value` attribute that can be used to identify the menu item when it is selected.\n *\n * The `indicator` attribute is used to differentiate between <b>checkbox</b>, <b>checkmark</b>, <b>toggle</b> and <b>none</b>.\n * By default, the `indicator` is set to <b>checkbox</b>.<br/>\n *\n * The checkbox will always be positioned on the leading side of the menuitem label and\n * the toggle and checkmark will always be positioned on the trailing side.\n *\n * The checkbox will have the possible states of `true` or `false`.\n * If the indicator is set to <b>checkmark</b> and if the `checked` attribute is set to `true`,\n * then the checkmark will be displayed. if not, then no indicator will be displayed.\n *\n * The forth options for the `indicator` is <b>none</b>, which will not display any indicator at all.\n * It is intended to be used for customised menu items where the indicator is implemented differently.\n * For example, you can use a custom icon or a different visual element to indicate the state of the menu item.\n * Make sure the new indicator is accessible.\n *\n * If you want only one item in a group to be checked, consider using menuitemradio component.\n *\n * @dependency mdc-staticcheckbox\n * @dependency mdc-statictoggle\n * @dependency mdc-icon\n *\n * @tagname mdc-menuitemcheckbox\n *\n * @slot leading-controls - slot for menu item checkbox controls to appear of leading end.\n * @slot leading-text-primary-label - slot for menu item checkbox primary label.\n * @slot leading-text-secondary-label - slot for menu item checkbox secondary label.\n * @slot leading-text-tertiary-label - slot for menu item checkbox tertiary label.\n * @slot trailing-text-side-header - slot for menu item checkbox side header text.\n * @slot trailing-text-subline - slot for menu item checkbox subline text.\n * @slot trailing-controls - slot for menu item checkbox controls to appear of trailing end.\n *\n * @event change - (React: onChange) This event is dispatched when the menuitemcheckbox changes.\n * @event click - (React: onClick) This event is dispatched when the menuitemcheckbox is clicked.\n * @event focus - (React: onFocus) This event is dispatched when the menuitemcheckbox receives focus.\n */",
20112
20142
  "customElement": true,
20113
20143
  "cssProperties": [
20114
20144
  {
@@ -20215,8 +20245,8 @@
20215
20245
  "kind": "js",
20216
20246
  "name": "default",
20217
20247
  "declaration": {
20218
- "name": "MenuItem",
20219
- "module": "components/menuitem/menuitem.component.js"
20248
+ "name": "MenuItemCheckbox",
20249
+ "module": "components/menuitemcheckbox/menuitemcheckbox.component.js"
20220
20250
  }
20221
20251
  }
20222
20252
  ]
@@ -34418,6 +34448,133 @@
34418
34448
  }
34419
34449
  ]
34420
34450
  },
34451
+ {
34452
+ "kind": "javascript-module",
34453
+ "path": "components/staticchip/staticchip.component.js",
34454
+ "declarations": [
34455
+ {
34456
+ "kind": "class",
34457
+ "description": "mdc-staticchip is an static element that can be used to represent a chip. It supports a leading icon along with label.\n\nIt is recommended to keep the label text for the chip component concise and compact.\nFor best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>, including empty spaces to split words.",
34458
+ "name": "StaticChip",
34459
+ "cssProperties": [
34460
+ {
34461
+ "description": "The color of the static chip.",
34462
+ "name": "--mdc-chip-color"
34463
+ },
34464
+ {
34465
+ "description": "The border color of the static chip.",
34466
+ "name": "--mdc-chip-border-color"
34467
+ },
34468
+ {
34469
+ "description": "The background color of the static chip.",
34470
+ "name": "--mdc-chip-background-color"
34471
+ }
34472
+ ],
34473
+ "members": [
34474
+ {
34475
+ "kind": "field",
34476
+ "name": "color",
34477
+ "type": {
34478
+ "text": "ColorType"
34479
+ },
34480
+ "description": "The color of the chip. It supports the following colors\n- default\n- cobalt\n- gold\n- lime\n- mint\n- orange\n- pink\n- purple\n- slate\n- violet",
34481
+ "default": "default",
34482
+ "attribute": "color",
34483
+ "reflects": true
34484
+ },
34485
+ {
34486
+ "kind": "field",
34487
+ "name": "label",
34488
+ "type": {
34489
+ "text": "string"
34490
+ },
34491
+ "default": "''",
34492
+ "description": "The visible label text of the chip.\n\nWe recommend limiting the <b>maximum length of the label text to 20 characters</b>,\nincluding empty spaces to split words.",
34493
+ "attribute": "label"
34494
+ },
34495
+ {
34496
+ "kind": "method",
34497
+ "name": "renderIcon",
34498
+ "privacy": "private",
34499
+ "description": "Renders the icon element if available.",
34500
+ "return": {
34501
+ "type": {
34502
+ "text": ""
34503
+ }
34504
+ }
34505
+ },
34506
+ {
34507
+ "kind": "field",
34508
+ "name": "iconName",
34509
+ "type": {
34510
+ "text": "IconNames | undefined"
34511
+ },
34512
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
34513
+ "attribute": "icon-name",
34514
+ "inheritedFrom": {
34515
+ "name": "IconNameMixin",
34516
+ "module": "utils/mixins/IconNameMixin.js"
34517
+ }
34518
+ }
34519
+ ],
34520
+ "attributes": [
34521
+ {
34522
+ "name": "color",
34523
+ "type": {
34524
+ "text": "ColorType"
34525
+ },
34526
+ "description": "The color of the chip. It supports the following colors\n- default\n- cobalt\n- gold\n- lime\n- mint\n- orange\n- pink\n- purple\n- slate\n- violet",
34527
+ "default": "default",
34528
+ "fieldName": "color"
34529
+ },
34530
+ {
34531
+ "name": "label",
34532
+ "type": {
34533
+ "text": "string"
34534
+ },
34535
+ "default": "''",
34536
+ "description": "The visible label text of the chip.\n\nWe recommend limiting the <b>maximum length of the label text to 20 characters</b>,\nincluding empty spaces to split words.",
34537
+ "fieldName": "label"
34538
+ },
34539
+ {
34540
+ "name": "icon-name",
34541
+ "type": {
34542
+ "text": "IconNames | undefined"
34543
+ },
34544
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
34545
+ "fieldName": "iconName",
34546
+ "inheritedFrom": {
34547
+ "name": "IconNameMixin",
34548
+ "module": "src/utils/mixins/IconNameMixin.ts"
34549
+ }
34550
+ }
34551
+ ],
34552
+ "mixins": [
34553
+ {
34554
+ "name": "IconNameMixin",
34555
+ "module": "/src/utils/mixins/IconNameMixin"
34556
+ }
34557
+ ],
34558
+ "superclass": {
34559
+ "name": "Component",
34560
+ "module": "/src/models"
34561
+ },
34562
+ "tagName": "mdc-staticchip",
34563
+ "jsDoc": "/**\n * mdc-staticchip is an static element that can be used to represent a chip. It supports a leading icon along with label.\n *\n * It is recommended to keep the label text for the chip component concise and compact.\n * For best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>, including empty spaces to split words.\n *\n *\n * @tagname mdc-staticchip\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @cssproperty --mdc-chip-color - The color of the static chip.\n * @cssproperty --mdc-chip-border-color - The border color of the static chip.\n * @cssproperty --mdc-chip-background-color - The background color of the static chip.\n *\n */",
34564
+ "customElement": true
34565
+ }
34566
+ ],
34567
+ "exports": [
34568
+ {
34569
+ "kind": "js",
34570
+ "name": "default",
34571
+ "declaration": {
34572
+ "name": "StaticChip",
34573
+ "module": "components/staticchip/staticchip.component.js"
34574
+ }
34575
+ }
34576
+ ]
34577
+ },
34421
34578
  {
34422
34579
  "kind": "javascript-module",
34423
34580
  "path": "components/staticradio/staticradio.component.js",