@momentum-design/components 0.92.0 → 0.92.2
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 +36 -0
- package/dist/components/popover/popover.component.js +46 -1
- package/dist/components/popover/popover.constants.d.ts +3 -0
- package/dist/components/popover/popover.constants.js +3 -0
- package/dist/custom-elements.json +669 -214
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- 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,51 @@
|
|
8554
8554
|
"module": "components/popover/popover.component.js"
|
8555
8555
|
}
|
8556
8556
|
},
|
8557
|
+
{
|
8558
|
+
"kind": "field",
|
8559
|
+
"name": "boundary",
|
8560
|
+
"type": {
|
8561
|
+
"text": "'clippingAncestors' | string"
|
8562
|
+
},
|
8563
|
+
"description": "This describes the clipping element(s) or area that overflow will be checked relative to.\nThe default is 'clippingAncestors', which are the overflow ancestors which will cause the\nelement to be clipped.\n\nPossible values:\n - 'clippingAncestors'\n - any css selector",
|
8564
|
+
"default": "'clippingAncestors'",
|
8565
|
+
"attribute": "boundary",
|
8566
|
+
"reflects": true,
|
8567
|
+
"inheritedFrom": {
|
8568
|
+
"name": "Popover",
|
8569
|
+
"module": "components/popover/popover.component.js"
|
8570
|
+
}
|
8571
|
+
},
|
8572
|
+
{
|
8573
|
+
"kind": "field",
|
8574
|
+
"name": "boundaryRoot",
|
8575
|
+
"type": {
|
8576
|
+
"text": "'viewport' | 'document'"
|
8577
|
+
},
|
8578
|
+
"description": "This describes the root boundary that the element will be checked for overflow relative to.\nThe default is 'viewport', which is the area of the page the user can see on the screen.\n\nThe other string option is 'document', which is the entire page outside the viewport.",
|
8579
|
+
"default": "'viewport'",
|
8580
|
+
"attribute": "boundary-root",
|
8581
|
+
"reflects": true,
|
8582
|
+
"inheritedFrom": {
|
8583
|
+
"name": "Popover",
|
8584
|
+
"module": "components/popover/popover.component.js"
|
8585
|
+
}
|
8586
|
+
},
|
8587
|
+
{
|
8588
|
+
"kind": "field",
|
8589
|
+
"name": "boundaryPadding",
|
8590
|
+
"type": {
|
8591
|
+
"text": "undefined | number"
|
8592
|
+
},
|
8593
|
+
"description": "Virtual padding around the boundary to check for overflow.\nSo the popover will not be placed on top of the edge of the boundary.\n\nDefault works well for most cases, but you can set this to customise it when necessary.",
|
8594
|
+
"default": "undefined",
|
8595
|
+
"attribute": "boundary-padding",
|
8596
|
+
"reflects": true,
|
8597
|
+
"inheritedFrom": {
|
8598
|
+
"name": "Popover",
|
8599
|
+
"module": "components/popover/popover.component.js"
|
8600
|
+
}
|
8601
|
+
},
|
8557
8602
|
{
|
8558
8603
|
"kind": "field",
|
8559
8604
|
"name": "interactive",
|
@@ -9235,6 +9280,45 @@
|
|
9235
9280
|
"module": "src/components/popover/popover.component.ts"
|
9236
9281
|
}
|
9237
9282
|
},
|
9283
|
+
{
|
9284
|
+
"name": "boundary",
|
9285
|
+
"type": {
|
9286
|
+
"text": "'clippingAncestors' | string"
|
9287
|
+
},
|
9288
|
+
"description": "This describes the clipping element(s) or area that overflow will be checked relative to.\nThe default is 'clippingAncestors', which are the overflow ancestors which will cause the\nelement to be clipped.\n\nPossible values:\n - 'clippingAncestors'\n - any css selector",
|
9289
|
+
"default": "'clippingAncestors'",
|
9290
|
+
"fieldName": "boundary",
|
9291
|
+
"inheritedFrom": {
|
9292
|
+
"name": "Popover",
|
9293
|
+
"module": "src/components/popover/popover.component.ts"
|
9294
|
+
}
|
9295
|
+
},
|
9296
|
+
{
|
9297
|
+
"name": "boundary-root",
|
9298
|
+
"type": {
|
9299
|
+
"text": "'viewport' | 'document'"
|
9300
|
+
},
|
9301
|
+
"description": "This describes the root boundary that the element will be checked for overflow relative to.\nThe default is 'viewport', which is the area of the page the user can see on the screen.\n\nThe other string option is 'document', which is the entire page outside the viewport.",
|
9302
|
+
"default": "'viewport'",
|
9303
|
+
"fieldName": "boundaryRoot",
|
9304
|
+
"inheritedFrom": {
|
9305
|
+
"name": "Popover",
|
9306
|
+
"module": "src/components/popover/popover.component.ts"
|
9307
|
+
}
|
9308
|
+
},
|
9309
|
+
{
|
9310
|
+
"name": "boundary-padding",
|
9311
|
+
"type": {
|
9312
|
+
"text": "undefined | number"
|
9313
|
+
},
|
9314
|
+
"description": "Virtual padding around the boundary to check for overflow.\nSo the popover will not be placed on top of the edge of the boundary.\n\nDefault works well for most cases, but you can set this to customise it when necessary.",
|
9315
|
+
"default": "undefined",
|
9316
|
+
"fieldName": "boundaryPadding",
|
9317
|
+
"inheritedFrom": {
|
9318
|
+
"name": "Popover",
|
9319
|
+
"module": "src/components/popover/popover.component.ts"
|
9320
|
+
}
|
9321
|
+
},
|
9238
9322
|
{
|
9239
9323
|
"name": "focus-trap",
|
9240
9324
|
"type": {
|
@@ -15800,7 +15884,7 @@
|
|
15800
15884
|
"description": "The keyboard event that triggered the action."
|
15801
15885
|
}
|
15802
15886
|
],
|
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.",
|
15887
|
+
"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
15888
|
"inheritedFrom": {
|
15805
15889
|
"name": "ListItem",
|
15806
15890
|
"module": "components/listitem/listitem.component.js"
|
@@ -15824,7 +15908,7 @@
|
|
15824
15908
|
"description": "The keyboard event that triggered the action."
|
15825
15909
|
}
|
15826
15910
|
],
|
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."
|
15911
|
+
"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
15912
|
},
|
15829
15913
|
{
|
15830
15914
|
"kind": "method",
|
@@ -16660,7 +16744,7 @@
|
|
16660
16744
|
"description": "The keyboard event that triggered the action."
|
16661
16745
|
}
|
16662
16746
|
],
|
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.",
|
16747
|
+
"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
16748
|
"inheritedFrom": {
|
16665
16749
|
"name": "ListItem",
|
16666
16750
|
"module": "components/listitem/listitem.component.js"
|
@@ -16684,7 +16768,7 @@
|
|
16684
16768
|
"description": "The keyboard event that triggered the action."
|
16685
16769
|
}
|
16686
16770
|
],
|
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.",
|
16771
|
+
"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
16772
|
"inheritedFrom": {
|
16689
16773
|
"name": "MenuItem",
|
16690
16774
|
"module": "components/menuitem/menuitem.component.js"
|
@@ -17574,7 +17658,7 @@
|
|
17574
17658
|
"description": "The keyboard event that triggered the action."
|
17575
17659
|
}
|
17576
17660
|
],
|
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.",
|
17661
|
+
"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
17662
|
"inheritedFrom": {
|
17579
17663
|
"name": "ListItem",
|
17580
17664
|
"module": "components/listitem/listitem.component.js"
|
@@ -17598,7 +17682,7 @@
|
|
17598
17682
|
"description": "The keyboard event that triggered the action."
|
17599
17683
|
}
|
17600
17684
|
],
|
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.",
|
17685
|
+
"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
17686
|
"inheritedFrom": {
|
17603
17687
|
"name": "MenuItem",
|
17604
17688
|
"module": "components/menuitem/menuitem.component.js"
|
@@ -18279,7 +18363,7 @@
|
|
18279
18363
|
"declarations": [
|
18280
18364
|
{
|
18281
18365
|
"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
|
18366
|
+
"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
18367
|
"name": "MenuPopover",
|
18284
18368
|
"slots": [
|
18285
18369
|
{
|
@@ -18311,6 +18395,15 @@
|
|
18311
18395
|
"module": "components/popover/popover.component.js"
|
18312
18396
|
}
|
18313
18397
|
},
|
18398
|
+
{
|
18399
|
+
"kind": "field",
|
18400
|
+
"name": "menuItems",
|
18401
|
+
"type": {
|
18402
|
+
"text": "Array<HTMLElement>"
|
18403
|
+
},
|
18404
|
+
"privacy": "private",
|
18405
|
+
"default": "[]"
|
18406
|
+
},
|
18314
18407
|
{
|
18315
18408
|
"kind": "method",
|
18316
18409
|
"name": "isOpenUpdated",
|
@@ -18340,6 +18433,21 @@
|
|
18340
18433
|
"module": "components/popover/popover.component.js"
|
18341
18434
|
}
|
18342
18435
|
},
|
18436
|
+
{
|
18437
|
+
"kind": "method",
|
18438
|
+
"name": "resetTabIndexes",
|
18439
|
+
"privacy": "private",
|
18440
|
+
"parameters": [
|
18441
|
+
{
|
18442
|
+
"name": "currentIndex",
|
18443
|
+
"type": {
|
18444
|
+
"text": "number"
|
18445
|
+
},
|
18446
|
+
"description": "The index of the currently focused menu item."
|
18447
|
+
}
|
18448
|
+
],
|
18449
|
+
"description": "Reset all tabindex to -1 and set the tabindex of the current menu item to 0"
|
18450
|
+
},
|
18343
18451
|
{
|
18344
18452
|
"kind": "method",
|
18345
18453
|
"name": "getCurrentIndex",
|
@@ -18454,6 +18562,21 @@
|
|
18454
18562
|
"module": "components/popover/popover.component.js"
|
18455
18563
|
}
|
18456
18564
|
},
|
18565
|
+
{
|
18566
|
+
"kind": "method",
|
18567
|
+
"name": "closeMenu",
|
18568
|
+
"privacy": "private",
|
18569
|
+
"parameters": [
|
18570
|
+
{
|
18571
|
+
"name": "target",
|
18572
|
+
"type": {
|
18573
|
+
"text": "HTMLElement"
|
18574
|
+
},
|
18575
|
+
"description": "The target element that was clicked."
|
18576
|
+
}
|
18577
|
+
],
|
18578
|
+
"description": "Determines whether to close the menu based on the clicked target."
|
18579
|
+
},
|
18457
18580
|
{
|
18458
18581
|
"kind": "method",
|
18459
18582
|
"name": "handleMouseClick",
|
@@ -18514,7 +18637,27 @@
|
|
18514
18637
|
"description": "The keyboard event that triggered the keydown action."
|
18515
18638
|
}
|
18516
18639
|
],
|
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
|
18640
|
+
"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",
|
18641
|
+
"return": {
|
18642
|
+
"type": {
|
18643
|
+
"text": ""
|
18644
|
+
}
|
18645
|
+
}
|
18646
|
+
},
|
18647
|
+
{
|
18648
|
+
"kind": "method",
|
18649
|
+
"name": "handleKeyUp",
|
18650
|
+
"privacy": "private",
|
18651
|
+
"parameters": [
|
18652
|
+
{
|
18653
|
+
"name": "event",
|
18654
|
+
"type": {
|
18655
|
+
"text": "KeyboardEvent"
|
18656
|
+
},
|
18657
|
+
"description": "The keyboard event that triggered the keydown action."
|
18658
|
+
}
|
18659
|
+
],
|
18660
|
+
"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
18661
|
"return": {
|
18519
18662
|
"type": {
|
18520
18663
|
"text": ""
|
@@ -19157,6 +19300,51 @@
|
|
19157
19300
|
"module": "components/popover/popover.component.js"
|
19158
19301
|
}
|
19159
19302
|
},
|
19303
|
+
{
|
19304
|
+
"kind": "field",
|
19305
|
+
"name": "boundary",
|
19306
|
+
"type": {
|
19307
|
+
"text": "'clippingAncestors' | string"
|
19308
|
+
},
|
19309
|
+
"description": "This describes the clipping element(s) or area that overflow will be checked relative to.\nThe default is 'clippingAncestors', which are the overflow ancestors which will cause the\nelement to be clipped.\n\nPossible values:\n - 'clippingAncestors'\n - any css selector",
|
19310
|
+
"default": "'clippingAncestors'",
|
19311
|
+
"attribute": "boundary",
|
19312
|
+
"reflects": true,
|
19313
|
+
"inheritedFrom": {
|
19314
|
+
"name": "Popover",
|
19315
|
+
"module": "components/popover/popover.component.js"
|
19316
|
+
}
|
19317
|
+
},
|
19318
|
+
{
|
19319
|
+
"kind": "field",
|
19320
|
+
"name": "boundaryRoot",
|
19321
|
+
"type": {
|
19322
|
+
"text": "'viewport' | 'document'"
|
19323
|
+
},
|
19324
|
+
"description": "This describes the root boundary that the element will be checked for overflow relative to.\nThe default is 'viewport', which is the area of the page the user can see on the screen.\n\nThe other string option is 'document', which is the entire page outside the viewport.",
|
19325
|
+
"default": "'viewport'",
|
19326
|
+
"attribute": "boundary-root",
|
19327
|
+
"reflects": true,
|
19328
|
+
"inheritedFrom": {
|
19329
|
+
"name": "Popover",
|
19330
|
+
"module": "components/popover/popover.component.js"
|
19331
|
+
}
|
19332
|
+
},
|
19333
|
+
{
|
19334
|
+
"kind": "field",
|
19335
|
+
"name": "boundaryPadding",
|
19336
|
+
"type": {
|
19337
|
+
"text": "undefined | number"
|
19338
|
+
},
|
19339
|
+
"description": "Virtual padding around the boundary to check for overflow.\nSo the popover will not be placed on top of the edge of the boundary.\n\nDefault works well for most cases, but you can set this to customise it when necessary.",
|
19340
|
+
"default": "undefined",
|
19341
|
+
"attribute": "boundary-padding",
|
19342
|
+
"reflects": true,
|
19343
|
+
"inheritedFrom": {
|
19344
|
+
"name": "Popover",
|
19345
|
+
"module": "components/popover/popover.component.js"
|
19346
|
+
}
|
19347
|
+
},
|
19160
19348
|
{
|
19161
19349
|
"kind": "field",
|
19162
19350
|
"name": "showArrow",
|
@@ -19802,6 +19990,45 @@
|
|
19802
19990
|
"module": "src/components/popover/popover.component.ts"
|
19803
19991
|
}
|
19804
19992
|
},
|
19993
|
+
{
|
19994
|
+
"name": "boundary",
|
19995
|
+
"type": {
|
19996
|
+
"text": "'clippingAncestors' | string"
|
19997
|
+
},
|
19998
|
+
"description": "This describes the clipping element(s) or area that overflow will be checked relative to.\nThe default is 'clippingAncestors', which are the overflow ancestors which will cause the\nelement to be clipped.\n\nPossible values:\n - 'clippingAncestors'\n - any css selector",
|
19999
|
+
"default": "'clippingAncestors'",
|
20000
|
+
"fieldName": "boundary",
|
20001
|
+
"inheritedFrom": {
|
20002
|
+
"name": "Popover",
|
20003
|
+
"module": "src/components/popover/popover.component.ts"
|
20004
|
+
}
|
20005
|
+
},
|
20006
|
+
{
|
20007
|
+
"name": "boundary-root",
|
20008
|
+
"type": {
|
20009
|
+
"text": "'viewport' | 'document'"
|
20010
|
+
},
|
20011
|
+
"description": "This describes the root boundary that the element will be checked for overflow relative to.\nThe default is 'viewport', which is the area of the page the user can see on the screen.\n\nThe other string option is 'document', which is the entire page outside the viewport.",
|
20012
|
+
"default": "'viewport'",
|
20013
|
+
"fieldName": "boundaryRoot",
|
20014
|
+
"inheritedFrom": {
|
20015
|
+
"name": "Popover",
|
20016
|
+
"module": "src/components/popover/popover.component.ts"
|
20017
|
+
}
|
20018
|
+
},
|
20019
|
+
{
|
20020
|
+
"name": "boundary-padding",
|
20021
|
+
"type": {
|
20022
|
+
"text": "undefined | number"
|
20023
|
+
},
|
20024
|
+
"description": "Virtual padding around the boundary to check for overflow.\nSo the popover will not be placed on top of the edge of the boundary.\n\nDefault works well for most cases, but you can set this to customise it when necessary.",
|
20025
|
+
"default": "undefined",
|
20026
|
+
"fieldName": "boundaryPadding",
|
20027
|
+
"inheritedFrom": {
|
20028
|
+
"name": "Popover",
|
20029
|
+
"module": "src/components/popover/popover.component.ts"
|
20030
|
+
}
|
20031
|
+
},
|
19805
20032
|
{
|
19806
20033
|
"name": "focus-trap",
|
19807
20034
|
"type": {
|
@@ -20094,7 +20321,7 @@
|
|
20094
20321
|
"module": "/src/components/popover/popover.component"
|
20095
20322
|
},
|
20096
20323
|
"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 */",
|
20324
|
+
"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
20325
|
"customElement": true,
|
20099
20326
|
"cssProperties": [
|
20100
20327
|
{
|
@@ -20659,7 +20886,7 @@
|
|
20659
20886
|
"description": "The keyboard event that triggered the action."
|
20660
20887
|
}
|
20661
20888
|
],
|
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.",
|
20889
|
+
"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
20890
|
"inheritedFrom": {
|
20664
20891
|
"name": "ListItem",
|
20665
20892
|
"module": "components/listitem/listitem.component.js"
|
@@ -20683,7 +20910,7 @@
|
|
20683
20910
|
"description": "The keyboard event that triggered the action."
|
20684
20911
|
}
|
20685
20912
|
],
|
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.",
|
20913
|
+
"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
20914
|
"inheritedFrom": {
|
20688
20915
|
"name": "MenuItem",
|
20689
20916
|
"module": "components/menuitem/menuitem.component.js"
|
@@ -23856,6 +24083,39 @@
|
|
23856
24083
|
"attribute": "offset",
|
23857
24084
|
"reflects": true
|
23858
24085
|
},
|
24086
|
+
{
|
24087
|
+
"kind": "field",
|
24088
|
+
"name": "boundary",
|
24089
|
+
"type": {
|
24090
|
+
"text": "'clippingAncestors' | string"
|
24091
|
+
},
|
24092
|
+
"description": "This describes the clipping element(s) or area that overflow will be checked relative to.\nThe default is 'clippingAncestors', which are the overflow ancestors which will cause the\nelement to be clipped.\n\nPossible values:\n - 'clippingAncestors'\n - any css selector",
|
24093
|
+
"default": "'clippingAncestors'",
|
24094
|
+
"attribute": "boundary",
|
24095
|
+
"reflects": true
|
24096
|
+
},
|
24097
|
+
{
|
24098
|
+
"kind": "field",
|
24099
|
+
"name": "boundaryRoot",
|
24100
|
+
"type": {
|
24101
|
+
"text": "'viewport' | 'document'"
|
24102
|
+
},
|
24103
|
+
"description": "This describes the root boundary that the element will be checked for overflow relative to.\nThe default is 'viewport', which is the area of the page the user can see on the screen.\n\nThe other string option is 'document', which is the entire page outside the viewport.",
|
24104
|
+
"default": "'viewport'",
|
24105
|
+
"attribute": "boundary-root",
|
24106
|
+
"reflects": true
|
24107
|
+
},
|
24108
|
+
{
|
24109
|
+
"kind": "field",
|
24110
|
+
"name": "boundaryPadding",
|
24111
|
+
"type": {
|
24112
|
+
"text": "undefined | number"
|
24113
|
+
},
|
24114
|
+
"description": "Virtual padding around the boundary to check for overflow.\nSo the popover will not be placed on top of the edge of the boundary.\n\nDefault works well for most cases, but you can set this to customise it when necessary.",
|
24115
|
+
"default": "undefined",
|
24116
|
+
"attribute": "boundary-padding",
|
24117
|
+
"reflects": true
|
24118
|
+
},
|
23859
24119
|
{
|
23860
24120
|
"kind": "field",
|
23861
24121
|
"name": "focusTrap",
|
@@ -24876,6 +25136,33 @@
|
|
24876
25136
|
"default": "4",
|
24877
25137
|
"fieldName": "offset"
|
24878
25138
|
},
|
25139
|
+
{
|
25140
|
+
"name": "boundary",
|
25141
|
+
"type": {
|
25142
|
+
"text": "'clippingAncestors' | string"
|
25143
|
+
},
|
25144
|
+
"description": "This describes the clipping element(s) or area that overflow will be checked relative to.\nThe default is 'clippingAncestors', which are the overflow ancestors which will cause the\nelement to be clipped.\n\nPossible values:\n - 'clippingAncestors'\n - any css selector",
|
25145
|
+
"default": "'clippingAncestors'",
|
25146
|
+
"fieldName": "boundary"
|
25147
|
+
},
|
25148
|
+
{
|
25149
|
+
"name": "boundary-root",
|
25150
|
+
"type": {
|
25151
|
+
"text": "'viewport' | 'document'"
|
25152
|
+
},
|
25153
|
+
"description": "This describes the root boundary that the element will be checked for overflow relative to.\nThe default is 'viewport', which is the area of the page the user can see on the screen.\n\nThe other string option is 'document', which is the entire page outside the viewport.",
|
25154
|
+
"default": "'viewport'",
|
25155
|
+
"fieldName": "boundaryRoot"
|
25156
|
+
},
|
25157
|
+
{
|
25158
|
+
"name": "boundary-padding",
|
25159
|
+
"type": {
|
25160
|
+
"text": "undefined | number"
|
25161
|
+
},
|
25162
|
+
"description": "Virtual padding around the boundary to check for overflow.\nSo the popover will not be placed on top of the edge of the boundary.\n\nDefault works well for most cases, but you can set this to customise it when necessary.",
|
25163
|
+
"default": "undefined",
|
25164
|
+
"fieldName": "boundaryPadding"
|
25165
|
+
},
|
24879
25166
|
{
|
24880
25167
|
"name": "focus-trap",
|
24881
25168
|
"type": {
|
@@ -30649,238 +30936,64 @@
|
|
30649
30936
|
},
|
30650
30937
|
{
|
30651
30938
|
"kind": "javascript-module",
|
30652
|
-
"path": "components/
|
30939
|
+
"path": "components/tab/tab.component.js",
|
30653
30940
|
"declarations": [
|
30654
30941
|
{
|
30655
30942
|
"kind": "class",
|
30656
|
-
"description": "
|
30657
|
-
"name": "
|
30943
|
+
"description": "`mdc-tab` is Tab component to be used within the Tabgroup.\n\nPassing in the attribute `text` to the tab component is changing the text displayed in the tab.\n\nPass attribute `tabid` when using inside of `tablist` component.\n\nThe `slot=\"badge\"` can be used to add a badge to the tab.\n\nThe `slot=\"chip\"` can be used to add a chip to the tab.\n\nFor `icon`, the `mdc-icon` component is used to render the icon.\n\nNote: Icons can be used in conjunction with badges or chips.\nBadges and chips should not be used at the same time.",
|
30944
|
+
"name": "Tab",
|
30658
30945
|
"cssProperties": [
|
30659
30946
|
{
|
30660
|
-
"description": "
|
30661
|
-
"name": "--mdc-
|
30947
|
+
"description": "Gap between the badge(if provided), icon and text.",
|
30948
|
+
"name": "--mdc-tab-content-gap"
|
30662
30949
|
},
|
30663
30950
|
{
|
30664
|
-
"description": "Height of the
|
30665
|
-
"name": "--mdc-
|
30951
|
+
"description": "Height of the tab.",
|
30952
|
+
"name": "--mdc-tab-height"
|
30666
30953
|
},
|
30667
30954
|
{
|
30668
|
-
"description": "
|
30669
|
-
"name": "--mdc-
|
30955
|
+
"description": "Background color for active glass tab in disabled state.",
|
30956
|
+
"name": "--mdc-tab-glass-active-background-color-disabled"
|
30670
30957
|
},
|
30671
30958
|
{
|
30672
|
-
"description": "
|
30673
|
-
"name": "--mdc-
|
30959
|
+
"description": "Background color for active glass tab in hover state.",
|
30960
|
+
"name": "--mdc-tab-glass-active-background-color-hover"
|
30674
30961
|
},
|
30675
30962
|
{
|
30676
|
-
"description": "
|
30677
|
-
"name": "--mdc-
|
30963
|
+
"description": "Background color for active glass tab in rest state.",
|
30964
|
+
"name": "--mdc-tab-glass-active-background-color-normal"
|
30678
30965
|
},
|
30679
30966
|
{
|
30680
|
-
"description": "
|
30681
|
-
"name": "--mdc-
|
30967
|
+
"description": "Background color for active glass tab in pressed state.",
|
30968
|
+
"name": "--mdc-tab-glass-active-background-color-pressed"
|
30682
30969
|
},
|
30683
30970
|
{
|
30684
|
-
"description": "
|
30685
|
-
"name": "--mdc-
|
30971
|
+
"description": "Text and icon color for active glass tab.",
|
30972
|
+
"name": "--mdc-tab-glass-active-color"
|
30686
30973
|
},
|
30687
30974
|
{
|
30688
|
-
"description": "
|
30689
|
-
"name": "--mdc-
|
30975
|
+
"description": "Text and icon color for active glass tab in disabled state.",
|
30976
|
+
"name": "--mdc-tab-glass-active-color-disabled"
|
30690
30977
|
},
|
30691
30978
|
{
|
30692
|
-
"description": "
|
30693
|
-
"name": "--mdc-
|
30979
|
+
"description": "Border radius for glass tab.",
|
30980
|
+
"name": "--mdc-tab-glass-border-radius"
|
30694
30981
|
},
|
30695
30982
|
{
|
30696
|
-
"description": "Background color
|
30697
|
-
"name": "--mdc-
|
30983
|
+
"description": "Background color for inactive glass tab in disabled state.",
|
30984
|
+
"name": "--mdc-tab-glass-inactive-background-color-disabled"
|
30698
30985
|
},
|
30699
30986
|
{
|
30700
|
-
"description": "Background color
|
30701
|
-
"name": "--mdc-
|
30987
|
+
"description": "Background color for inactive glass tab in hover state.",
|
30988
|
+
"name": "--mdc-tab-glass-inactive-background-color-hover"
|
30702
30989
|
},
|
30703
30990
|
{
|
30704
|
-
"description": "
|
30705
|
-
"name": "--mdc-
|
30991
|
+
"description": "Background color for inactive glass tab in rest state.",
|
30992
|
+
"name": "--mdc-tab-glass-inactive-background-color-normal"
|
30706
30993
|
},
|
30707
30994
|
{
|
30708
|
-
"description": "
|
30709
|
-
"name": "--mdc-
|
30710
|
-
},
|
30711
|
-
{
|
30712
|
-
"description": "Background color of the icon in normal state",
|
30713
|
-
"name": "--mdc-statictoggle-icon-background-color-normal"
|
30714
|
-
},
|
30715
|
-
{
|
30716
|
-
"description": "Background color of the icon in disabled state",
|
30717
|
-
"name": "--mdc-statictoggle-icon-background-color-disabled"
|
30718
|
-
}
|
30719
|
-
],
|
30720
|
-
"slots": [
|
30721
|
-
{
|
30722
|
-
"description": "This is a default/unnamed slot",
|
30723
|
-
"name": "default"
|
30724
|
-
}
|
30725
|
-
],
|
30726
|
-
"members": [
|
30727
|
-
{
|
30728
|
-
"kind": "field",
|
30729
|
-
"name": "checked",
|
30730
|
-
"type": {
|
30731
|
-
"text": "boolean"
|
30732
|
-
},
|
30733
|
-
"default": "false",
|
30734
|
-
"description": "Determines whether the toggle is active or inactive.",
|
30735
|
-
"attribute": "checked",
|
30736
|
-
"reflects": true
|
30737
|
-
},
|
30738
|
-
{
|
30739
|
-
"kind": "field",
|
30740
|
-
"name": "size",
|
30741
|
-
"type": {
|
30742
|
-
"text": "ToggleSize"
|
30743
|
-
},
|
30744
|
-
"description": "Determines toggle size in rem (height is specified here).\n- **Default**: 1.5\n- **Compact**: 1",
|
30745
|
-
"default": "default",
|
30746
|
-
"attribute": "size",
|
30747
|
-
"reflects": true
|
30748
|
-
},
|
30749
|
-
{
|
30750
|
-
"kind": "field",
|
30751
|
-
"name": "disabled",
|
30752
|
-
"type": {
|
30753
|
-
"text": "boolean | undefined"
|
30754
|
-
},
|
30755
|
-
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
30756
|
-
"default": "undefined",
|
30757
|
-
"attribute": "disabled",
|
30758
|
-
"reflects": true,
|
30759
|
-
"inheritedFrom": {
|
30760
|
-
"name": "DisabledMixin",
|
30761
|
-
"module": "utils/mixins/DisabledMixin.js"
|
30762
|
-
}
|
30763
|
-
}
|
30764
|
-
],
|
30765
|
-
"attributes": [
|
30766
|
-
{
|
30767
|
-
"name": "checked",
|
30768
|
-
"type": {
|
30769
|
-
"text": "boolean"
|
30770
|
-
},
|
30771
|
-
"default": "false",
|
30772
|
-
"description": "Determines whether the toggle is active or inactive.",
|
30773
|
-
"fieldName": "checked"
|
30774
|
-
},
|
30775
|
-
{
|
30776
|
-
"name": "size",
|
30777
|
-
"type": {
|
30778
|
-
"text": "ToggleSize"
|
30779
|
-
},
|
30780
|
-
"description": "Determines toggle size in rem (height is specified here).\n- **Default**: 1.5\n- **Compact**: 1",
|
30781
|
-
"default": "default",
|
30782
|
-
"fieldName": "size"
|
30783
|
-
},
|
30784
|
-
{
|
30785
|
-
"name": "disabled",
|
30786
|
-
"type": {
|
30787
|
-
"text": "boolean | undefined"
|
30788
|
-
},
|
30789
|
-
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
30790
|
-
"default": "undefined",
|
30791
|
-
"fieldName": "disabled",
|
30792
|
-
"inheritedFrom": {
|
30793
|
-
"name": "DisabledMixin",
|
30794
|
-
"module": "src/utils/mixins/DisabledMixin.ts"
|
30795
|
-
}
|
30796
|
-
}
|
30797
|
-
],
|
30798
|
-
"mixins": [
|
30799
|
-
{
|
30800
|
-
"name": "DisabledMixin",
|
30801
|
-
"module": "/src/utils/mixins/DisabledMixin"
|
30802
|
-
}
|
30803
|
-
],
|
30804
|
-
"superclass": {
|
30805
|
-
"name": "Component",
|
30806
|
-
"module": "/src/models"
|
30807
|
-
},
|
30808
|
-
"tagName": "mdc-statictoggle",
|
30809
|
-
"jsDoc": "/**\n * This is a decorative component that is styled to look as a toggle. <br/>\n * It has 3 properties - checked, size and disabled. <br/>\n * We are using the same styling that has been created for the `mdc-toggle` component.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-statictoggle\n *\n * @slot default - This is a default/unnamed slot\n *\n * @cssproperty --mdc-statictoggle-width - Width of the toggle\n * @cssproperty --mdc-statictoggle-height - Height of the toggle\n * @cssproperty --mdc-statictoggle-width-compact - Width of the toggle when it's size is compact\n * @cssproperty --mdc-statictoggle-height-compact - Height of the toggle when it's size is compact\n * @cssproperty --mdc-statictoggle-border-radius - Border radius of the toggle\n * @cssproperty --mdc-statictoggle-border-radius-compact - Border radius of the toggle when it's size is compact\n * @cssproperty --mdc-statictoggle-border - Border of the toggle\n * @cssproperty --mdc-statictoggle-inactive-rest-color - Background color of the inactive toggle in rest state\n * @cssproperty --mdc-statictoggle-inactive-disabled-color - Background color of the inactive toggle in disabled state\n * @cssproperty --mdc-statictoggle-active-rest-color - Background color of the active toggle in rest state\n * @cssproperty --mdc-statictoggle-active-disabled-color - Background color of the active toggle in disabled state\n * @cssproperty --mdc-statictoggle-icon-color-normal - Color of the icon in normal state\n * @cssproperty --mdc-statictoggle-icon-color-disabled - Color of the icon in disabled state\n * @cssproperty --mdc-statictoggle-icon-background-color-normal - Background color of the icon in normal state\n * @cssproperty --mdc-statictoggle-icon-background-color-disabled - Background color of the icon in disabled state\n */",
|
30810
|
-
"customElement": true
|
30811
|
-
}
|
30812
|
-
],
|
30813
|
-
"exports": [
|
30814
|
-
{
|
30815
|
-
"kind": "js",
|
30816
|
-
"name": "default",
|
30817
|
-
"declaration": {
|
30818
|
-
"name": "StaticToggle",
|
30819
|
-
"module": "components/statictoggle/statictoggle.component.js"
|
30820
|
-
}
|
30821
|
-
}
|
30822
|
-
]
|
30823
|
-
},
|
30824
|
-
{
|
30825
|
-
"kind": "javascript-module",
|
30826
|
-
"path": "components/tab/tab.component.js",
|
30827
|
-
"declarations": [
|
30828
|
-
{
|
30829
|
-
"kind": "class",
|
30830
|
-
"description": "`mdc-tab` is Tab component to be used within the Tabgroup.\n\nPassing in the attribute `text` to the tab component is changing the text displayed in the tab.\n\nPass attribute `tabid` when using inside of `tablist` component.\n\nThe `slot=\"badge\"` can be used to add a badge to the tab.\n\nThe `slot=\"chip\"` can be used to add a chip to the tab.\n\nFor `icon`, the `mdc-icon` component is used to render the icon.\n\nNote: Icons can be used in conjunction with badges or chips.\nBadges and chips should not be used at the same time.",
|
30831
|
-
"name": "Tab",
|
30832
|
-
"cssProperties": [
|
30833
|
-
{
|
30834
|
-
"description": "Gap between the badge(if provided), icon and text.",
|
30835
|
-
"name": "--mdc-tab-content-gap"
|
30836
|
-
},
|
30837
|
-
{
|
30838
|
-
"description": "Height of the tab.",
|
30839
|
-
"name": "--mdc-tab-height"
|
30840
|
-
},
|
30841
|
-
{
|
30842
|
-
"description": "Background color for active glass tab in disabled state.",
|
30843
|
-
"name": "--mdc-tab-glass-active-background-color-disabled"
|
30844
|
-
},
|
30845
|
-
{
|
30846
|
-
"description": "Background color for active glass tab in hover state.",
|
30847
|
-
"name": "--mdc-tab-glass-active-background-color-hover"
|
30848
|
-
},
|
30849
|
-
{
|
30850
|
-
"description": "Background color for active glass tab in rest state.",
|
30851
|
-
"name": "--mdc-tab-glass-active-background-color-normal"
|
30852
|
-
},
|
30853
|
-
{
|
30854
|
-
"description": "Background color for active glass tab in pressed state.",
|
30855
|
-
"name": "--mdc-tab-glass-active-background-color-pressed"
|
30856
|
-
},
|
30857
|
-
{
|
30858
|
-
"description": "Text and icon color for active glass tab.",
|
30859
|
-
"name": "--mdc-tab-glass-active-color"
|
30860
|
-
},
|
30861
|
-
{
|
30862
|
-
"description": "Text and icon color for active glass tab in disabled state.",
|
30863
|
-
"name": "--mdc-tab-glass-active-color-disabled"
|
30864
|
-
},
|
30865
|
-
{
|
30866
|
-
"description": "Border radius for glass tab.",
|
30867
|
-
"name": "--mdc-tab-glass-border-radius"
|
30868
|
-
},
|
30869
|
-
{
|
30870
|
-
"description": "Background color for inactive glass tab in disabled state.",
|
30871
|
-
"name": "--mdc-tab-glass-inactive-background-color-disabled"
|
30872
|
-
},
|
30873
|
-
{
|
30874
|
-
"description": "Background color for inactive glass tab in hover state.",
|
30875
|
-
"name": "--mdc-tab-glass-inactive-background-color-hover"
|
30876
|
-
},
|
30877
|
-
{
|
30878
|
-
"description": "Background color for inactive glass tab in rest state.",
|
30879
|
-
"name": "--mdc-tab-glass-inactive-background-color-normal"
|
30880
|
-
},
|
30881
|
-
{
|
30882
|
-
"description": "Background color for inactive glass tab in pressed state.",
|
30883
|
-
"name": "--mdc-tab-glass-inactive-background-color-pressed"
|
30995
|
+
"description": "Background color for inactive glass tab in pressed state.",
|
30996
|
+
"name": "--mdc-tab-glass-inactive-background-color-pressed"
|
30884
30997
|
},
|
30885
30998
|
{
|
30886
30999
|
"description": "Text and icon color for inactive glass tab.",
|
@@ -31630,6 +31743,180 @@
|
|
31630
31743
|
}
|
31631
31744
|
]
|
31632
31745
|
},
|
31746
|
+
{
|
31747
|
+
"kind": "javascript-module",
|
31748
|
+
"path": "components/statictoggle/statictoggle.component.js",
|
31749
|
+
"declarations": [
|
31750
|
+
{
|
31751
|
+
"kind": "class",
|
31752
|
+
"description": "This is a decorative component that is styled to look as a toggle. <br/>\nIt has 3 properties - checked, size and disabled. <br/>\nWe are using the same styling that has been created for the `mdc-toggle` component.",
|
31753
|
+
"name": "StaticToggle",
|
31754
|
+
"cssProperties": [
|
31755
|
+
{
|
31756
|
+
"description": "Width of the toggle",
|
31757
|
+
"name": "--mdc-statictoggle-width"
|
31758
|
+
},
|
31759
|
+
{
|
31760
|
+
"description": "Height of the toggle",
|
31761
|
+
"name": "--mdc-statictoggle-height"
|
31762
|
+
},
|
31763
|
+
{
|
31764
|
+
"description": "Width of the toggle when it's size is compact",
|
31765
|
+
"name": "--mdc-statictoggle-width-compact"
|
31766
|
+
},
|
31767
|
+
{
|
31768
|
+
"description": "Height of the toggle when it's size is compact",
|
31769
|
+
"name": "--mdc-statictoggle-height-compact"
|
31770
|
+
},
|
31771
|
+
{
|
31772
|
+
"description": "Border radius of the toggle",
|
31773
|
+
"name": "--mdc-statictoggle-border-radius"
|
31774
|
+
},
|
31775
|
+
{
|
31776
|
+
"description": "Border radius of the toggle when it's size is compact",
|
31777
|
+
"name": "--mdc-statictoggle-border-radius-compact"
|
31778
|
+
},
|
31779
|
+
{
|
31780
|
+
"description": "Border of the toggle",
|
31781
|
+
"name": "--mdc-statictoggle-border"
|
31782
|
+
},
|
31783
|
+
{
|
31784
|
+
"description": "Background color of the inactive toggle in rest state",
|
31785
|
+
"name": "--mdc-statictoggle-inactive-rest-color"
|
31786
|
+
},
|
31787
|
+
{
|
31788
|
+
"description": "Background color of the inactive toggle in disabled state",
|
31789
|
+
"name": "--mdc-statictoggle-inactive-disabled-color"
|
31790
|
+
},
|
31791
|
+
{
|
31792
|
+
"description": "Background color of the active toggle in rest state",
|
31793
|
+
"name": "--mdc-statictoggle-active-rest-color"
|
31794
|
+
},
|
31795
|
+
{
|
31796
|
+
"description": "Background color of the active toggle in disabled state",
|
31797
|
+
"name": "--mdc-statictoggle-active-disabled-color"
|
31798
|
+
},
|
31799
|
+
{
|
31800
|
+
"description": "Color of the icon in normal state",
|
31801
|
+
"name": "--mdc-statictoggle-icon-color-normal"
|
31802
|
+
},
|
31803
|
+
{
|
31804
|
+
"description": "Color of the icon in disabled state",
|
31805
|
+
"name": "--mdc-statictoggle-icon-color-disabled"
|
31806
|
+
},
|
31807
|
+
{
|
31808
|
+
"description": "Background color of the icon in normal state",
|
31809
|
+
"name": "--mdc-statictoggle-icon-background-color-normal"
|
31810
|
+
},
|
31811
|
+
{
|
31812
|
+
"description": "Background color of the icon in disabled state",
|
31813
|
+
"name": "--mdc-statictoggle-icon-background-color-disabled"
|
31814
|
+
}
|
31815
|
+
],
|
31816
|
+
"slots": [
|
31817
|
+
{
|
31818
|
+
"description": "This is a default/unnamed slot",
|
31819
|
+
"name": "default"
|
31820
|
+
}
|
31821
|
+
],
|
31822
|
+
"members": [
|
31823
|
+
{
|
31824
|
+
"kind": "field",
|
31825
|
+
"name": "checked",
|
31826
|
+
"type": {
|
31827
|
+
"text": "boolean"
|
31828
|
+
},
|
31829
|
+
"default": "false",
|
31830
|
+
"description": "Determines whether the toggle is active or inactive.",
|
31831
|
+
"attribute": "checked",
|
31832
|
+
"reflects": true
|
31833
|
+
},
|
31834
|
+
{
|
31835
|
+
"kind": "field",
|
31836
|
+
"name": "size",
|
31837
|
+
"type": {
|
31838
|
+
"text": "ToggleSize"
|
31839
|
+
},
|
31840
|
+
"description": "Determines toggle size in rem (height is specified here).\n- **Default**: 1.5\n- **Compact**: 1",
|
31841
|
+
"default": "default",
|
31842
|
+
"attribute": "size",
|
31843
|
+
"reflects": true
|
31844
|
+
},
|
31845
|
+
{
|
31846
|
+
"kind": "field",
|
31847
|
+
"name": "disabled",
|
31848
|
+
"type": {
|
31849
|
+
"text": "boolean | undefined"
|
31850
|
+
},
|
31851
|
+
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
31852
|
+
"default": "undefined",
|
31853
|
+
"attribute": "disabled",
|
31854
|
+
"reflects": true,
|
31855
|
+
"inheritedFrom": {
|
31856
|
+
"name": "DisabledMixin",
|
31857
|
+
"module": "utils/mixins/DisabledMixin.js"
|
31858
|
+
}
|
31859
|
+
}
|
31860
|
+
],
|
31861
|
+
"attributes": [
|
31862
|
+
{
|
31863
|
+
"name": "checked",
|
31864
|
+
"type": {
|
31865
|
+
"text": "boolean"
|
31866
|
+
},
|
31867
|
+
"default": "false",
|
31868
|
+
"description": "Determines whether the toggle is active or inactive.",
|
31869
|
+
"fieldName": "checked"
|
31870
|
+
},
|
31871
|
+
{
|
31872
|
+
"name": "size",
|
31873
|
+
"type": {
|
31874
|
+
"text": "ToggleSize"
|
31875
|
+
},
|
31876
|
+
"description": "Determines toggle size in rem (height is specified here).\n- **Default**: 1.5\n- **Compact**: 1",
|
31877
|
+
"default": "default",
|
31878
|
+
"fieldName": "size"
|
31879
|
+
},
|
31880
|
+
{
|
31881
|
+
"name": "disabled",
|
31882
|
+
"type": {
|
31883
|
+
"text": "boolean | undefined"
|
31884
|
+
},
|
31885
|
+
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
31886
|
+
"default": "undefined",
|
31887
|
+
"fieldName": "disabled",
|
31888
|
+
"inheritedFrom": {
|
31889
|
+
"name": "DisabledMixin",
|
31890
|
+
"module": "src/utils/mixins/DisabledMixin.ts"
|
31891
|
+
}
|
31892
|
+
}
|
31893
|
+
],
|
31894
|
+
"mixins": [
|
31895
|
+
{
|
31896
|
+
"name": "DisabledMixin",
|
31897
|
+
"module": "/src/utils/mixins/DisabledMixin"
|
31898
|
+
}
|
31899
|
+
],
|
31900
|
+
"superclass": {
|
31901
|
+
"name": "Component",
|
31902
|
+
"module": "/src/models"
|
31903
|
+
},
|
31904
|
+
"tagName": "mdc-statictoggle",
|
31905
|
+
"jsDoc": "/**\n * This is a decorative component that is styled to look as a toggle. <br/>\n * It has 3 properties - checked, size and disabled. <br/>\n * We are using the same styling that has been created for the `mdc-toggle` component.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-statictoggle\n *\n * @slot default - This is a default/unnamed slot\n *\n * @cssproperty --mdc-statictoggle-width - Width of the toggle\n * @cssproperty --mdc-statictoggle-height - Height of the toggle\n * @cssproperty --mdc-statictoggle-width-compact - Width of the toggle when it's size is compact\n * @cssproperty --mdc-statictoggle-height-compact - Height of the toggle when it's size is compact\n * @cssproperty --mdc-statictoggle-border-radius - Border radius of the toggle\n * @cssproperty --mdc-statictoggle-border-radius-compact - Border radius of the toggle when it's size is compact\n * @cssproperty --mdc-statictoggle-border - Border of the toggle\n * @cssproperty --mdc-statictoggle-inactive-rest-color - Background color of the inactive toggle in rest state\n * @cssproperty --mdc-statictoggle-inactive-disabled-color - Background color of the inactive toggle in disabled state\n * @cssproperty --mdc-statictoggle-active-rest-color - Background color of the active toggle in rest state\n * @cssproperty --mdc-statictoggle-active-disabled-color - Background color of the active toggle in disabled state\n * @cssproperty --mdc-statictoggle-icon-color-normal - Color of the icon in normal state\n * @cssproperty --mdc-statictoggle-icon-color-disabled - Color of the icon in disabled state\n * @cssproperty --mdc-statictoggle-icon-background-color-normal - Background color of the icon in normal state\n * @cssproperty --mdc-statictoggle-icon-background-color-disabled - Background color of the icon in disabled state\n */",
|
31906
|
+
"customElement": true
|
31907
|
+
}
|
31908
|
+
],
|
31909
|
+
"exports": [
|
31910
|
+
{
|
31911
|
+
"kind": "js",
|
31912
|
+
"name": "default",
|
31913
|
+
"declaration": {
|
31914
|
+
"name": "StaticToggle",
|
31915
|
+
"module": "components/statictoggle/statictoggle.component.js"
|
31916
|
+
}
|
31917
|
+
}
|
31918
|
+
]
|
31919
|
+
},
|
31633
31920
|
{
|
31634
31921
|
"kind": "javascript-module",
|
31635
31922
|
"path": "components/tablist/tablist.component.js",
|
@@ -34370,6 +34657,51 @@
|
|
34370
34657
|
"module": "components/popover/popover.component.js"
|
34371
34658
|
}
|
34372
34659
|
},
|
34660
|
+
{
|
34661
|
+
"kind": "field",
|
34662
|
+
"name": "boundary",
|
34663
|
+
"type": {
|
34664
|
+
"text": "'clippingAncestors' | string"
|
34665
|
+
},
|
34666
|
+
"description": "This describes the clipping element(s) or area that overflow will be checked relative to.\nThe default is 'clippingAncestors', which are the overflow ancestors which will cause the\nelement to be clipped.\n\nPossible values:\n - 'clippingAncestors'\n - any css selector",
|
34667
|
+
"default": "'clippingAncestors'",
|
34668
|
+
"attribute": "boundary",
|
34669
|
+
"reflects": true,
|
34670
|
+
"inheritedFrom": {
|
34671
|
+
"name": "Popover",
|
34672
|
+
"module": "components/popover/popover.component.js"
|
34673
|
+
}
|
34674
|
+
},
|
34675
|
+
{
|
34676
|
+
"kind": "field",
|
34677
|
+
"name": "boundaryRoot",
|
34678
|
+
"type": {
|
34679
|
+
"text": "'viewport' | 'document'"
|
34680
|
+
},
|
34681
|
+
"description": "This describes the root boundary that the element will be checked for overflow relative to.\nThe default is 'viewport', which is the area of the page the user can see on the screen.\n\nThe other string option is 'document', which is the entire page outside the viewport.",
|
34682
|
+
"default": "'viewport'",
|
34683
|
+
"attribute": "boundary-root",
|
34684
|
+
"reflects": true,
|
34685
|
+
"inheritedFrom": {
|
34686
|
+
"name": "Popover",
|
34687
|
+
"module": "components/popover/popover.component.js"
|
34688
|
+
}
|
34689
|
+
},
|
34690
|
+
{
|
34691
|
+
"kind": "field",
|
34692
|
+
"name": "boundaryPadding",
|
34693
|
+
"type": {
|
34694
|
+
"text": "undefined | number"
|
34695
|
+
},
|
34696
|
+
"description": "Virtual padding around the boundary to check for overflow.\nSo the popover will not be placed on top of the edge of the boundary.\n\nDefault works well for most cases, but you can set this to customise it when necessary.",
|
34697
|
+
"default": "undefined",
|
34698
|
+
"attribute": "boundary-padding",
|
34699
|
+
"reflects": true,
|
34700
|
+
"inheritedFrom": {
|
34701
|
+
"name": "Popover",
|
34702
|
+
"module": "components/popover/popover.component.js"
|
34703
|
+
}
|
34704
|
+
},
|
34373
34705
|
{
|
34374
34706
|
"kind": "field",
|
34375
34707
|
"name": "showArrow",
|
@@ -35065,6 +35397,45 @@
|
|
35065
35397
|
"module": "src/components/popover/popover.component.ts"
|
35066
35398
|
}
|
35067
35399
|
},
|
35400
|
+
{
|
35401
|
+
"name": "boundary",
|
35402
|
+
"type": {
|
35403
|
+
"text": "'clippingAncestors' | string"
|
35404
|
+
},
|
35405
|
+
"description": "This describes the clipping element(s) or area that overflow will be checked relative to.\nThe default is 'clippingAncestors', which are the overflow ancestors which will cause the\nelement to be clipped.\n\nPossible values:\n - 'clippingAncestors'\n - any css selector",
|
35406
|
+
"default": "'clippingAncestors'",
|
35407
|
+
"fieldName": "boundary",
|
35408
|
+
"inheritedFrom": {
|
35409
|
+
"name": "Popover",
|
35410
|
+
"module": "src/components/popover/popover.component.ts"
|
35411
|
+
}
|
35412
|
+
},
|
35413
|
+
{
|
35414
|
+
"name": "boundary-root",
|
35415
|
+
"type": {
|
35416
|
+
"text": "'viewport' | 'document'"
|
35417
|
+
},
|
35418
|
+
"description": "This describes the root boundary that the element will be checked for overflow relative to.\nThe default is 'viewport', which is the area of the page the user can see on the screen.\n\nThe other string option is 'document', which is the entire page outside the viewport.",
|
35419
|
+
"default": "'viewport'",
|
35420
|
+
"fieldName": "boundaryRoot",
|
35421
|
+
"inheritedFrom": {
|
35422
|
+
"name": "Popover",
|
35423
|
+
"module": "src/components/popover/popover.component.ts"
|
35424
|
+
}
|
35425
|
+
},
|
35426
|
+
{
|
35427
|
+
"name": "boundary-padding",
|
35428
|
+
"type": {
|
35429
|
+
"text": "undefined | number"
|
35430
|
+
},
|
35431
|
+
"description": "Virtual padding around the boundary to check for overflow.\nSo the popover will not be placed on top of the edge of the boundary.\n\nDefault works well for most cases, but you can set this to customise it when necessary.",
|
35432
|
+
"default": "undefined",
|
35433
|
+
"fieldName": "boundaryPadding",
|
35434
|
+
"inheritedFrom": {
|
35435
|
+
"name": "Popover",
|
35436
|
+
"module": "src/components/popover/popover.component.ts"
|
35437
|
+
}
|
35438
|
+
},
|
35068
35439
|
{
|
35069
35440
|
"name": "focus-trap",
|
35070
35441
|
"type": {
|
@@ -36221,6 +36592,51 @@
|
|
36221
36592
|
"module": "components/popover/popover.component.js"
|
36222
36593
|
}
|
36223
36594
|
},
|
36595
|
+
{
|
36596
|
+
"kind": "field",
|
36597
|
+
"name": "boundary",
|
36598
|
+
"type": {
|
36599
|
+
"text": "'clippingAncestors' | string"
|
36600
|
+
},
|
36601
|
+
"description": "This describes the clipping element(s) or area that overflow will be checked relative to.\nThe default is 'clippingAncestors', which are the overflow ancestors which will cause the\nelement to be clipped.\n\nPossible values:\n - 'clippingAncestors'\n - any css selector",
|
36602
|
+
"default": "'clippingAncestors'",
|
36603
|
+
"attribute": "boundary",
|
36604
|
+
"reflects": true,
|
36605
|
+
"inheritedFrom": {
|
36606
|
+
"name": "Popover",
|
36607
|
+
"module": "components/popover/popover.component.js"
|
36608
|
+
}
|
36609
|
+
},
|
36610
|
+
{
|
36611
|
+
"kind": "field",
|
36612
|
+
"name": "boundaryRoot",
|
36613
|
+
"type": {
|
36614
|
+
"text": "'viewport' | 'document'"
|
36615
|
+
},
|
36616
|
+
"description": "This describes the root boundary that the element will be checked for overflow relative to.\nThe default is 'viewport', which is the area of the page the user can see on the screen.\n\nThe other string option is 'document', which is the entire page outside the viewport.",
|
36617
|
+
"default": "'viewport'",
|
36618
|
+
"attribute": "boundary-root",
|
36619
|
+
"reflects": true,
|
36620
|
+
"inheritedFrom": {
|
36621
|
+
"name": "Popover",
|
36622
|
+
"module": "components/popover/popover.component.js"
|
36623
|
+
}
|
36624
|
+
},
|
36625
|
+
{
|
36626
|
+
"kind": "field",
|
36627
|
+
"name": "boundaryPadding",
|
36628
|
+
"type": {
|
36629
|
+
"text": "undefined | number"
|
36630
|
+
},
|
36631
|
+
"description": "Virtual padding around the boundary to check for overflow.\nSo the popover will not be placed on top of the edge of the boundary.\n\nDefault works well for most cases, but you can set this to customise it when necessary.",
|
36632
|
+
"default": "undefined",
|
36633
|
+
"attribute": "boundary-padding",
|
36634
|
+
"reflects": true,
|
36635
|
+
"inheritedFrom": {
|
36636
|
+
"name": "Popover",
|
36637
|
+
"module": "components/popover/popover.component.js"
|
36638
|
+
}
|
36639
|
+
},
|
36224
36640
|
{
|
36225
36641
|
"kind": "field",
|
36226
36642
|
"name": "showArrow",
|
@@ -36917,6 +37333,45 @@
|
|
36917
37333
|
"module": "src/components/popover/popover.component.ts"
|
36918
37334
|
}
|
36919
37335
|
},
|
37336
|
+
{
|
37337
|
+
"name": "boundary",
|
37338
|
+
"type": {
|
37339
|
+
"text": "'clippingAncestors' | string"
|
37340
|
+
},
|
37341
|
+
"description": "This describes the clipping element(s) or area that overflow will be checked relative to.\nThe default is 'clippingAncestors', which are the overflow ancestors which will cause the\nelement to be clipped.\n\nPossible values:\n - 'clippingAncestors'\n - any css selector",
|
37342
|
+
"default": "'clippingAncestors'",
|
37343
|
+
"fieldName": "boundary",
|
37344
|
+
"inheritedFrom": {
|
37345
|
+
"name": "Popover",
|
37346
|
+
"module": "src/components/popover/popover.component.ts"
|
37347
|
+
}
|
37348
|
+
},
|
37349
|
+
{
|
37350
|
+
"name": "boundary-root",
|
37351
|
+
"type": {
|
37352
|
+
"text": "'viewport' | 'document'"
|
37353
|
+
},
|
37354
|
+
"description": "This describes the root boundary that the element will be checked for overflow relative to.\nThe default is 'viewport', which is the area of the page the user can see on the screen.\n\nThe other string option is 'document', which is the entire page outside the viewport.",
|
37355
|
+
"default": "'viewport'",
|
37356
|
+
"fieldName": "boundaryRoot",
|
37357
|
+
"inheritedFrom": {
|
37358
|
+
"name": "Popover",
|
37359
|
+
"module": "src/components/popover/popover.component.ts"
|
37360
|
+
}
|
37361
|
+
},
|
37362
|
+
{
|
37363
|
+
"name": "boundary-padding",
|
37364
|
+
"type": {
|
37365
|
+
"text": "undefined | number"
|
37366
|
+
},
|
37367
|
+
"description": "Virtual padding around the boundary to check for overflow.\nSo the popover will not be placed on top of the edge of the boundary.\n\nDefault works well for most cases, but you can set this to customise it when necessary.",
|
37368
|
+
"default": "undefined",
|
37369
|
+
"fieldName": "boundaryPadding",
|
37370
|
+
"inheritedFrom": {
|
37371
|
+
"name": "Popover",
|
37372
|
+
"module": "src/components/popover/popover.component.ts"
|
37373
|
+
}
|
37374
|
+
},
|
36920
37375
|
{
|
36921
37376
|
"name": "focus-trap",
|
36922
37377
|
"type": {
|