@momentum-design/components 0.92.0 → 0.92.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 +261 -241
- package/dist/browser/index.js.map +3 -3
- package/dist/components/menuitem/menuitem.component.d.ts +11 -0
- package/dist/components/menuitem/menuitem.component.js +11 -0
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +11 -4
- package/dist/components/menuitemcheckbox/menuitemcheckbox.styles.js +3 -0
- package/dist/components/menuitemradio/menuitemradio.component.js +11 -4
- package/dist/components/menuitemradio/menuitemradio.styles.js +3 -0
- package/dist/components/menupopover/menupopover.component.d.ts +49 -1
- package/dist/components/menupopover/menupopover.component.js +125 -17
- package/dist/components/menupopover/menupopover.utils.d.ts +1 -2
- package/dist/components/menupopover/menupopover.utils.js +1 -6
- package/dist/components/popover/popover.component.d.ts +5 -0
- package/dist/components/popover/popover.component.js +10 -1
- package/dist/components/popover/popover.constants.d.ts +1 -0
- package/dist/components/popover/popover.constants.js +1 -0
- package/dist/custom-elements.json +202 -11
- package/dist/react/menupopover/index.d.ts +18 -0
- package/dist/react/menupopover/index.js +18 -0
- package/package.json +1 -1
@@ -8554,6 +8554,21 @@
|
|
8554
8554
|
"module": "components/popover/popover.component.js"
|
8555
8555
|
}
|
8556
8556
|
},
|
8557
|
+
{
|
8558
|
+
"kind": "field",
|
8559
|
+
"name": "boundaryPadding",
|
8560
|
+
"type": {
|
8561
|
+
"text": "number"
|
8562
|
+
},
|
8563
|
+
"description": "Virtual padding around the boundary to check for overflow.",
|
8564
|
+
"default": "16",
|
8565
|
+
"attribute": "boundary-padding",
|
8566
|
+
"reflects": true,
|
8567
|
+
"inheritedFrom": {
|
8568
|
+
"name": "Popover",
|
8569
|
+
"module": "components/popover/popover.component.js"
|
8570
|
+
}
|
8571
|
+
},
|
8557
8572
|
{
|
8558
8573
|
"kind": "field",
|
8559
8574
|
"name": "interactive",
|
@@ -9235,6 +9250,19 @@
|
|
9235
9250
|
"module": "src/components/popover/popover.component.ts"
|
9236
9251
|
}
|
9237
9252
|
},
|
9253
|
+
{
|
9254
|
+
"name": "boundary-padding",
|
9255
|
+
"type": {
|
9256
|
+
"text": "number"
|
9257
|
+
},
|
9258
|
+
"description": "Virtual padding around the boundary to check for overflow.",
|
9259
|
+
"default": "16",
|
9260
|
+
"fieldName": "boundaryPadding",
|
9261
|
+
"inheritedFrom": {
|
9262
|
+
"name": "Popover",
|
9263
|
+
"module": "src/components/popover/popover.component.ts"
|
9264
|
+
}
|
9265
|
+
},
|
9238
9266
|
{
|
9239
9267
|
"name": "focus-trap",
|
9240
9268
|
"type": {
|
@@ -15800,7 +15828,7 @@
|
|
15800
15828
|
"description": "The keyboard event that triggered the action."
|
15801
15829
|
}
|
15802
15830
|
],
|
15803
|
-
"description": "Handles the keydown event for the menu item.\nIf the Enter key is pressed, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Enter key.",
|
15831
|
+
"description": "Handles the keydown event for the menu item.\nIf the Enter key is pressed, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Enter key.\n\nThis follows the native behaviour, actionable element can be triggered by Enter\nkey on the keydown event.\n\nNote: Action triggered by Space on the keyup event.",
|
15804
15832
|
"inheritedFrom": {
|
15805
15833
|
"name": "ListItem",
|
15806
15834
|
"module": "components/listitem/listitem.component.js"
|
@@ -15824,7 +15852,7 @@
|
|
15824
15852
|
"description": "The keyboard event that triggered the action."
|
15825
15853
|
}
|
15826
15854
|
],
|
15827
|
-
"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."
|
15855
|
+
"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."
|
15828
15856
|
},
|
15829
15857
|
{
|
15830
15858
|
"kind": "method",
|
@@ -16660,7 +16688,7 @@
|
|
16660
16688
|
"description": "The keyboard event that triggered the action."
|
16661
16689
|
}
|
16662
16690
|
],
|
16663
|
-
"description": "Handles the keydown event for the menu item.\nIf the Enter key is pressed, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Enter key.",
|
16691
|
+
"description": "Handles the keydown event for the menu item.\nIf the Enter key is pressed, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Enter key.\n\nThis follows the native behaviour, actionable element can be triggered by Enter\nkey on the keydown event.\n\nNote: Action triggered by Space on the keyup event.",
|
16664
16692
|
"inheritedFrom": {
|
16665
16693
|
"name": "ListItem",
|
16666
16694
|
"module": "components/listitem/listitem.component.js"
|
@@ -16684,7 +16712,7 @@
|
|
16684
16712
|
"description": "The keyboard event that triggered the action."
|
16685
16713
|
}
|
16686
16714
|
],
|
16687
|
-
"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.",
|
16715
|
+
"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.",
|
16688
16716
|
"inheritedFrom": {
|
16689
16717
|
"name": "MenuItem",
|
16690
16718
|
"module": "components/menuitem/menuitem.component.js"
|
@@ -17574,7 +17602,7 @@
|
|
17574
17602
|
"description": "The keyboard event that triggered the action."
|
17575
17603
|
}
|
17576
17604
|
],
|
17577
|
-
"description": "Handles the keydown event for the menu item.\nIf the Enter key is pressed, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Enter key.",
|
17605
|
+
"description": "Handles the keydown event for the menu item.\nIf the Enter key is pressed, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Enter key.\n\nThis follows the native behaviour, actionable element can be triggered by Enter\nkey on the keydown event.\n\nNote: Action triggered by Space on the keyup event.",
|
17578
17606
|
"inheritedFrom": {
|
17579
17607
|
"name": "ListItem",
|
17580
17608
|
"module": "components/listitem/listitem.component.js"
|
@@ -17598,7 +17626,7 @@
|
|
17598
17626
|
"description": "The keyboard event that triggered the action."
|
17599
17627
|
}
|
17600
17628
|
],
|
17601
|
-
"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.",
|
17629
|
+
"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.",
|
17602
17630
|
"inheritedFrom": {
|
17603
17631
|
"name": "MenuItem",
|
17604
17632
|
"module": "components/menuitem/menuitem.component.js"
|
@@ -18279,7 +18307,7 @@
|
|
18279
18307
|
"declarations": [
|
18280
18308
|
{
|
18281
18309
|
"kind": "class",
|
18282
|
-
"description": "A popover menu component that displays a list of menu items in a floating container.\nIt's designed to work in conjunction with `mdc-menubar` and `mdc-menuitem` to create\naccessible, nested menu structures with the following features:\n- Appears adjacent to the triggering menu item\n- Supports keyboard navigation (arrow keys, Home, End)\n- Manages focus trapping when open\n- Closes on Escape key or outside click\n- Supports both mouse and keyboard interactions\n- Automatically handles ARIA attributes for accessibility\n\nThe component extends `mdc-popover` and adds menu-specific behaviors and styling.\nWhen nested within another `mdc-menupopover`, it automatically adjusts its behavior\nto work as a submenu (right-aligned, shows on hover).\n\nThe orientation of the menu popover is always set to `vertical
|
18310
|
+
"description": "A popover menu component that displays a list of menu items in a floating container.\nIt's designed to work in conjunction with `mdc-menubar` and `mdc-menuitem` to create\naccessible, nested menu structures with the following features:\n- Appears adjacent to the triggering menu item\n- Supports keyboard navigation (arrow keys, Home, End)\n- Manages focus trapping when open\n- Closes on Escape key or outside click\n- Supports both mouse and keyboard interactions\n- Automatically handles ARIA attributes for accessibility\n\nThe component extends `mdc-popover` and adds menu-specific behaviors and styling.\nWhen nested within another `mdc-menupopover`, it automatically adjusts its behavior\nto work as a submenu (right-aligned, shows on hover).\n\nThe orientation of the menu popover is always set to `vertical`.\n\nSubmenu opens when:\n- Clicked on a menu item with a submenu\n- Enter or Space key pressed on a menu item with a submenu\n\nMenu closes completely (with all sub menus) when:\n- A menu item is clicked that does not have a submenu\n- Enter key pressed on a menu item (not a submenu trigger), menu item radio or menu item checkbox\n- Click outside the menu popover (on the backdrop)\n\nClose submenus when:\n- Esc key pressed, only the current submenu closed\n- Arrow Left key pressed, only the current submenu closed\n- Open another submenu with Click, Enter or Space key,\n closes recursively all submenus until the selected item's submenu\n\nMenu does not close when:\n- Space key pressed on a menu item radio or menu item checkbox",
|
18283
18311
|
"name": "MenuPopover",
|
18284
18312
|
"slots": [
|
18285
18313
|
{
|
@@ -18311,6 +18339,15 @@
|
|
18311
18339
|
"module": "components/popover/popover.component.js"
|
18312
18340
|
}
|
18313
18341
|
},
|
18342
|
+
{
|
18343
|
+
"kind": "field",
|
18344
|
+
"name": "menuItems",
|
18345
|
+
"type": {
|
18346
|
+
"text": "Array<HTMLElement>"
|
18347
|
+
},
|
18348
|
+
"privacy": "private",
|
18349
|
+
"default": "[]"
|
18350
|
+
},
|
18314
18351
|
{
|
18315
18352
|
"kind": "method",
|
18316
18353
|
"name": "isOpenUpdated",
|
@@ -18340,6 +18377,21 @@
|
|
18340
18377
|
"module": "components/popover/popover.component.js"
|
18341
18378
|
}
|
18342
18379
|
},
|
18380
|
+
{
|
18381
|
+
"kind": "method",
|
18382
|
+
"name": "resetTabIndexes",
|
18383
|
+
"privacy": "private",
|
18384
|
+
"parameters": [
|
18385
|
+
{
|
18386
|
+
"name": "currentIndex",
|
18387
|
+
"type": {
|
18388
|
+
"text": "number"
|
18389
|
+
},
|
18390
|
+
"description": "The index of the currently focused menu item."
|
18391
|
+
}
|
18392
|
+
],
|
18393
|
+
"description": "Reset all tabindex to -1 and set the tabindex of the current menu item to 0"
|
18394
|
+
},
|
18343
18395
|
{
|
18344
18396
|
"kind": "method",
|
18345
18397
|
"name": "getCurrentIndex",
|
@@ -18454,6 +18506,21 @@
|
|
18454
18506
|
"module": "components/popover/popover.component.js"
|
18455
18507
|
}
|
18456
18508
|
},
|
18509
|
+
{
|
18510
|
+
"kind": "method",
|
18511
|
+
"name": "closeMenu",
|
18512
|
+
"privacy": "private",
|
18513
|
+
"parameters": [
|
18514
|
+
{
|
18515
|
+
"name": "target",
|
18516
|
+
"type": {
|
18517
|
+
"text": "HTMLElement"
|
18518
|
+
},
|
18519
|
+
"description": "The target element that was clicked."
|
18520
|
+
}
|
18521
|
+
],
|
18522
|
+
"description": "Determines whether to close the menu based on the clicked target."
|
18523
|
+
},
|
18457
18524
|
{
|
18458
18525
|
"kind": "method",
|
18459
18526
|
"name": "handleMouseClick",
|
@@ -18514,7 +18581,27 @@
|
|
18514
18581
|
"description": "The keyboard event that triggered the keydown action."
|
18515
18582
|
}
|
18516
18583
|
],
|
18517
|
-
"description": "Handles keydown events for keyboard navigation within the menu popover.\nThis method allows users to navigate through the menu items using the keyboard.\nIt supports Home, End, Arrow Up, Arrow Down, Arrow Left, Arrow Right, and Escape keys
|
18584
|
+
"description": "Handles keydown events for keyboard navigation within the menu popover.\nThis method allows users to navigate through the menu items using the keyboard.\nIt supports Home, End, Arrow Up, Arrow Down, Arrow Left, Arrow Right, and Escape keys.\n\nAlso, it handles Enter key to close the menu popover",
|
18585
|
+
"return": {
|
18586
|
+
"type": {
|
18587
|
+
"text": ""
|
18588
|
+
}
|
18589
|
+
}
|
18590
|
+
},
|
18591
|
+
{
|
18592
|
+
"kind": "method",
|
18593
|
+
"name": "handleKeyUp",
|
18594
|
+
"privacy": "private",
|
18595
|
+
"parameters": [
|
18596
|
+
{
|
18597
|
+
"name": "event",
|
18598
|
+
"type": {
|
18599
|
+
"text": "KeyboardEvent"
|
18600
|
+
},
|
18601
|
+
"description": "The keyboard event that triggered the keydown action."
|
18602
|
+
}
|
18603
|
+
],
|
18604
|
+
"description": "Handles keyup events for keyboard navigation within the menu popover.\n\nSome keys must be handled with keyup event to prevent default action.\n\nSpace key closes the menu when the user presses it on a menu item,\nbut the same key will trigger a click on the menu opener button.\nThe button uses the keyup event so we have to handle it here as well\nto prevent the meu opener action which would re-open the menu.",
|
18518
18605
|
"return": {
|
18519
18606
|
"type": {
|
18520
18607
|
"text": ""
|
@@ -19157,6 +19244,21 @@
|
|
19157
19244
|
"module": "components/popover/popover.component.js"
|
19158
19245
|
}
|
19159
19246
|
},
|
19247
|
+
{
|
19248
|
+
"kind": "field",
|
19249
|
+
"name": "boundaryPadding",
|
19250
|
+
"type": {
|
19251
|
+
"text": "number"
|
19252
|
+
},
|
19253
|
+
"description": "Virtual padding around the boundary to check for overflow.",
|
19254
|
+
"default": "16",
|
19255
|
+
"attribute": "boundary-padding",
|
19256
|
+
"reflects": true,
|
19257
|
+
"inheritedFrom": {
|
19258
|
+
"name": "Popover",
|
19259
|
+
"module": "components/popover/popover.component.js"
|
19260
|
+
}
|
19261
|
+
},
|
19160
19262
|
{
|
19161
19263
|
"kind": "field",
|
19162
19264
|
"name": "showArrow",
|
@@ -19802,6 +19904,19 @@
|
|
19802
19904
|
"module": "src/components/popover/popover.component.ts"
|
19803
19905
|
}
|
19804
19906
|
},
|
19907
|
+
{
|
19908
|
+
"name": "boundary-padding",
|
19909
|
+
"type": {
|
19910
|
+
"text": "number"
|
19911
|
+
},
|
19912
|
+
"description": "Virtual padding around the boundary to check for overflow.",
|
19913
|
+
"default": "16",
|
19914
|
+
"fieldName": "boundaryPadding",
|
19915
|
+
"inheritedFrom": {
|
19916
|
+
"name": "Popover",
|
19917
|
+
"module": "src/components/popover/popover.component.ts"
|
19918
|
+
}
|
19919
|
+
},
|
19805
19920
|
{
|
19806
19921
|
"name": "focus-trap",
|
19807
19922
|
"type": {
|
@@ -20094,7 +20209,7 @@
|
|
20094
20209
|
"module": "/src/components/popover/popover.component"
|
20095
20210
|
},
|
20096
20211
|
"tagName": "mdc-menupopover",
|
20097
|
-
"jsDoc": "/**\n * A popover menu component that displays a list of menu items in a floating container.\n * It's designed to work in conjunction with `mdc-menubar` and `mdc-menuitem` to create\n * accessible, nested menu structures with the following features:\n * - Appears adjacent to the triggering menu item\n * - Supports keyboard navigation (arrow keys, Home, End)\n * - Manages focus trapping when open\n * - Closes on Escape key or outside click\n * - Supports both mouse and keyboard interactions\n * - Automatically handles ARIA attributes for accessibility\n *\n * The component extends `mdc-popover` and adds menu-specific behaviors and styling.\n * When nested within another `mdc-menupopover`, it automatically adjusts its behavior\n * to work as a submenu (right-aligned, shows on hover).\n *\n * The orientation of the menu popover is always set to `vertical`.\n *\n * @tagname mdc-menupopover\n *\n * @slot - Default slot for the menu popover content\n *\n * @event change - (React: onChange) This event is dispatched when a `menuitemcheckbox`, or `menuitemradio` changes.\n * @event action - (React: onAction) This event is dispatched when a menuItem selected and the menu closes.\n *\n * @slot default - Contains the menu items to be displayed in the popover\n */",
|
20212
|
+
"jsDoc": "/**\n * A popover menu component that displays a list of menu items in a floating container.\n * It's designed to work in conjunction with `mdc-menubar` and `mdc-menuitem` to create\n * accessible, nested menu structures with the following features:\n * - Appears adjacent to the triggering menu item\n * - Supports keyboard navigation (arrow keys, Home, End)\n * - Manages focus trapping when open\n * - Closes on Escape key or outside click\n * - Supports both mouse and keyboard interactions\n * - Automatically handles ARIA attributes for accessibility\n *\n * The component extends `mdc-popover` and adds menu-specific behaviors and styling.\n * When nested within another `mdc-menupopover`, it automatically adjusts its behavior\n * to work as a submenu (right-aligned, shows on hover).\n *\n * The orientation of the menu popover is always set to `vertical`.\n *\n * Submenu opens when:\n * - Clicked on a menu item with a submenu\n * - Enter or Space key pressed on a menu item with a submenu\n *\n * Menu closes completely (with all sub menus) when:\n * - A menu item is clicked that does not have a submenu\n * - Enter key pressed on a menu item (not a submenu trigger), menu item radio or menu item checkbox\n * - Click outside the menu popover (on the backdrop)\n *\n * Close submenus when:\n * - Esc key pressed, only the current submenu closed\n * - Arrow Left key pressed, only the current submenu closed\n * - Open another submenu with Click, Enter or Space key,\n * closes recursively all submenus until the selected item's submenu\n *\n * Menu does not close when:\n * - Space key pressed on a menu item radio or menu item checkbox\n *\n * @tagname mdc-menupopover\n *\n * @slot - Default slot for the menu popover content\n *\n * @event change - (React: onChange) This event is dispatched when a `menuitemcheckbox`, or `menuitemradio` changes.\n * @event action - (React: onAction) This event is dispatched when a menuItem selected and the menu closes.\n *\n * @slot default - Contains the menu items to be displayed in the popover\n */",
|
20098
20213
|
"customElement": true,
|
20099
20214
|
"cssProperties": [
|
20100
20215
|
{
|
@@ -20659,7 +20774,7 @@
|
|
20659
20774
|
"description": "The keyboard event that triggered the action."
|
20660
20775
|
}
|
20661
20776
|
],
|
20662
|
-
"description": "Handles the keydown event for the menu item.\nIf the Enter key is pressed, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Enter key.",
|
20777
|
+
"description": "Handles the keydown event for the menu item.\nIf the Enter key is pressed, it triggers a click event on the menu item.\nThis allows keyboard users to activate the menu item using the Enter key.\n\nThis follows the native behaviour, actionable element can be triggered by Enter\nkey on the keydown event.\n\nNote: Action triggered by Space on the keyup event.",
|
20663
20778
|
"inheritedFrom": {
|
20664
20779
|
"name": "ListItem",
|
20665
20780
|
"module": "components/listitem/listitem.component.js"
|
@@ -20683,7 +20798,7 @@
|
|
20683
20798
|
"description": "The keyboard event that triggered the action."
|
20684
20799
|
}
|
20685
20800
|
],
|
20686
|
-
"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.",
|
20801
|
+
"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.",
|
20687
20802
|
"inheritedFrom": {
|
20688
20803
|
"name": "MenuItem",
|
20689
20804
|
"module": "components/menuitem/menuitem.component.js"
|
@@ -23856,6 +23971,17 @@
|
|
23856
23971
|
"attribute": "offset",
|
23857
23972
|
"reflects": true
|
23858
23973
|
},
|
23974
|
+
{
|
23975
|
+
"kind": "field",
|
23976
|
+
"name": "boundaryPadding",
|
23977
|
+
"type": {
|
23978
|
+
"text": "number"
|
23979
|
+
},
|
23980
|
+
"description": "Virtual padding around the boundary to check for overflow.",
|
23981
|
+
"default": "16",
|
23982
|
+
"attribute": "boundary-padding",
|
23983
|
+
"reflects": true
|
23984
|
+
},
|
23859
23985
|
{
|
23860
23986
|
"kind": "field",
|
23861
23987
|
"name": "focusTrap",
|
@@ -24876,6 +25002,15 @@
|
|
24876
25002
|
"default": "4",
|
24877
25003
|
"fieldName": "offset"
|
24878
25004
|
},
|
25005
|
+
{
|
25006
|
+
"name": "boundary-padding",
|
25007
|
+
"type": {
|
25008
|
+
"text": "number"
|
25009
|
+
},
|
25010
|
+
"description": "Virtual padding around the boundary to check for overflow.",
|
25011
|
+
"default": "16",
|
25012
|
+
"fieldName": "boundaryPadding"
|
25013
|
+
},
|
24879
25014
|
{
|
24880
25015
|
"name": "focus-trap",
|
24881
25016
|
"type": {
|
@@ -34370,6 +34505,21 @@
|
|
34370
34505
|
"module": "components/popover/popover.component.js"
|
34371
34506
|
}
|
34372
34507
|
},
|
34508
|
+
{
|
34509
|
+
"kind": "field",
|
34510
|
+
"name": "boundaryPadding",
|
34511
|
+
"type": {
|
34512
|
+
"text": "number"
|
34513
|
+
},
|
34514
|
+
"description": "Virtual padding around the boundary to check for overflow.",
|
34515
|
+
"default": "16",
|
34516
|
+
"attribute": "boundary-padding",
|
34517
|
+
"reflects": true,
|
34518
|
+
"inheritedFrom": {
|
34519
|
+
"name": "Popover",
|
34520
|
+
"module": "components/popover/popover.component.js"
|
34521
|
+
}
|
34522
|
+
},
|
34373
34523
|
{
|
34374
34524
|
"kind": "field",
|
34375
34525
|
"name": "showArrow",
|
@@ -35065,6 +35215,19 @@
|
|
35065
35215
|
"module": "src/components/popover/popover.component.ts"
|
35066
35216
|
}
|
35067
35217
|
},
|
35218
|
+
{
|
35219
|
+
"name": "boundary-padding",
|
35220
|
+
"type": {
|
35221
|
+
"text": "number"
|
35222
|
+
},
|
35223
|
+
"description": "Virtual padding around the boundary to check for overflow.",
|
35224
|
+
"default": "16",
|
35225
|
+
"fieldName": "boundaryPadding",
|
35226
|
+
"inheritedFrom": {
|
35227
|
+
"name": "Popover",
|
35228
|
+
"module": "src/components/popover/popover.component.ts"
|
35229
|
+
}
|
35230
|
+
},
|
35068
35231
|
{
|
35069
35232
|
"name": "focus-trap",
|
35070
35233
|
"type": {
|
@@ -36221,6 +36384,21 @@
|
|
36221
36384
|
"module": "components/popover/popover.component.js"
|
36222
36385
|
}
|
36223
36386
|
},
|
36387
|
+
{
|
36388
|
+
"kind": "field",
|
36389
|
+
"name": "boundaryPadding",
|
36390
|
+
"type": {
|
36391
|
+
"text": "number"
|
36392
|
+
},
|
36393
|
+
"description": "Virtual padding around the boundary to check for overflow.",
|
36394
|
+
"default": "16",
|
36395
|
+
"attribute": "boundary-padding",
|
36396
|
+
"reflects": true,
|
36397
|
+
"inheritedFrom": {
|
36398
|
+
"name": "Popover",
|
36399
|
+
"module": "components/popover/popover.component.js"
|
36400
|
+
}
|
36401
|
+
},
|
36224
36402
|
{
|
36225
36403
|
"kind": "field",
|
36226
36404
|
"name": "showArrow",
|
@@ -36917,6 +37095,19 @@
|
|
36917
37095
|
"module": "src/components/popover/popover.component.ts"
|
36918
37096
|
}
|
36919
37097
|
},
|
37098
|
+
{
|
37099
|
+
"name": "boundary-padding",
|
37100
|
+
"type": {
|
37101
|
+
"text": "number"
|
37102
|
+
},
|
37103
|
+
"description": "Virtual padding around the boundary to check for overflow.",
|
37104
|
+
"default": "16",
|
37105
|
+
"fieldName": "boundaryPadding",
|
37106
|
+
"inheritedFrom": {
|
37107
|
+
"name": "Popover",
|
37108
|
+
"module": "src/components/popover/popover.component.ts"
|
37109
|
+
}
|
37110
|
+
},
|
36920
37111
|
{
|
36921
37112
|
"name": "focus-trap",
|
36922
37113
|
"type": {
|
@@ -17,6 +17,24 @@ import Component from '../../components/menupopover';
|
|
17
17
|
*
|
18
18
|
* The orientation of the menu popover is always set to `vertical`.
|
19
19
|
*
|
20
|
+
* Submenu opens when:
|
21
|
+
* - Clicked on a menu item with a submenu
|
22
|
+
* - Enter or Space key pressed on a menu item with a submenu
|
23
|
+
*
|
24
|
+
* Menu closes completely (with all sub menus) when:
|
25
|
+
* - A menu item is clicked that does not have a submenu
|
26
|
+
* - Enter key pressed on a menu item (not a submenu trigger), menu item radio or menu item checkbox
|
27
|
+
* - Click outside the menu popover (on the backdrop)
|
28
|
+
*
|
29
|
+
* Close submenus when:
|
30
|
+
* - Esc key pressed, only the current submenu closed
|
31
|
+
* - Arrow Left key pressed, only the current submenu closed
|
32
|
+
* - Open another submenu with Click, Enter or Space key,
|
33
|
+
* closes recursively all submenus until the selected item's submenu
|
34
|
+
*
|
35
|
+
* Menu does not close when:
|
36
|
+
* - Space key pressed on a menu item radio or menu item checkbox
|
37
|
+
*
|
20
38
|
* @tagname mdc-menupopover
|
21
39
|
*
|
22
40
|
* @slot - Default slot for the menu popover content
|
@@ -19,6 +19,24 @@ import { TAG_NAME } from '../../components/menupopover/menupopover.constants';
|
|
19
19
|
*
|
20
20
|
* The orientation of the menu popover is always set to `vertical`.
|
21
21
|
*
|
22
|
+
* Submenu opens when:
|
23
|
+
* - Clicked on a menu item with a submenu
|
24
|
+
* - Enter or Space key pressed on a menu item with a submenu
|
25
|
+
*
|
26
|
+
* Menu closes completely (with all sub menus) when:
|
27
|
+
* - A menu item is clicked that does not have a submenu
|
28
|
+
* - Enter key pressed on a menu item (not a submenu trigger), menu item radio or menu item checkbox
|
29
|
+
* - Click outside the menu popover (on the backdrop)
|
30
|
+
*
|
31
|
+
* Close submenus when:
|
32
|
+
* - Esc key pressed, only the current submenu closed
|
33
|
+
* - Arrow Left key pressed, only the current submenu closed
|
34
|
+
* - Open another submenu with Click, Enter or Space key,
|
35
|
+
* closes recursively all submenus until the selected item's submenu
|
36
|
+
*
|
37
|
+
* Menu does not close when:
|
38
|
+
* - Space key pressed on a menu item radio or menu item checkbox
|
39
|
+
*
|
22
40
|
* @tagname mdc-menupopover
|
23
41
|
*
|
24
42
|
* @slot - Default slot for the menu popover content
|