@momentum-design/components 0.134.20 → 0.134.22
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 +481 -458
- package/dist/browser/index.js.map +4 -4
- package/dist/components/accordion/accordion.component.d.ts +15 -5
- package/dist/components/accordionbutton/accordionbutton.component.d.ts +14 -26
- package/dist/components/accordionbutton/accordionbutton.component.js +0 -22
- package/dist/components/accordiongroup/accordiongroup.component.d.ts +12 -16
- package/dist/components/accordiongroup/accordiongroup.component.js +0 -14
- package/dist/components/alertchip/alertchip.component.d.ts +15 -11
- package/dist/components/alertchip/alertchip.component.js +0 -7
- package/dist/components/animation/animation.component.d.ts +14 -6
- package/dist/components/animation/animation.component.js +0 -5
- package/dist/components/announcementdialog/announcementdialog.component.d.ts +18 -25
- package/dist/components/announcementdialog/announcementdialog.component.js +1 -20
- package/dist/components/appheader/appheader.component.d.ts +13 -12
- package/dist/components/appheader/appheader.component.js +0 -9
- package/dist/components/avatar/avatar.component.d.ts +14 -34
- package/dist/components/avatar/avatar.component.js +1 -31
- package/dist/components/avatarbutton/avatarbutton.component.d.ts +15 -14
- package/dist/components/avatarbutton/avatarbutton.component.js +1 -10
- package/dist/components/badge/badge.component.d.ts +16 -20
- package/dist/components/badge/badge.component.js +1 -17
- package/dist/components/banner/banner.component.d.ts +17 -17
- package/dist/components/banner/banner.component.js +1 -13
- package/dist/components/brandvisual/brandvisual.component.d.ts +15 -12
- package/dist/components/brandvisual/brandvisual.component.js +0 -10
- package/dist/components/bullet/bullet.component.d.ts +15 -16
- package/dist/components/bullet/bullet.component.js +0 -15
- package/dist/components/button/button.component.d.ts +21 -52
- package/dist/components/button/button.component.js +1 -47
- package/dist/components/buttongroup/buttongroup.component.d.ts +17 -20
- package/dist/components/buttongroup/buttongroup.component.js +0 -17
- package/dist/components/buttonlink/buttonlink.component.d.ts +19 -16
- package/dist/components/buttonlink/buttonlink.component.js +1 -11
- package/dist/components/buttonsimple/buttonsimple.component.d.ts +16 -25
- package/dist/components/buttonsimple/buttonsimple.component.js +0 -22
- package/dist/components/calendar/calendar.component.d.ts +17 -11
- package/dist/components/calendar/calendar.component.js +0 -8
- package/dist/components/card/card.component.d.ts +18 -17
- package/dist/components/card/card.component.js +0 -13
- package/dist/components/cardbutton/cardbutton.component.d.ts +20 -14
- package/dist/components/cardbutton/cardbutton.component.js +0 -9
- package/dist/components/cardcheckbox/cardcheckbox.component.d.ts +20 -19
- package/dist/components/cardcheckbox/cardcheckbox.component.js +0 -14
- package/dist/components/cardradio/cardradio.component.d.ts +20 -20
- package/dist/components/cardradio/cardradio.component.js +0 -15
- package/dist/components/checkbox/checkbox.component.d.ts +22 -26
- package/dist/components/checkbox/checkbox.component.js +1 -22
- package/dist/components/chip/chip.component.d.ts +20 -13
- package/dist/components/chip/chip.component.js +0 -9
- package/dist/components/coachmark/coachmark.component.d.ts +22 -22
- package/dist/components/coachmark/coachmark.component.js +1 -18
- package/dist/components/combobox/combobox.component.d.ts +27 -37
- package/dist/components/combobox/combobox.component.js +1 -32
- package/dist/components/controltypeprovider/controltypeprovider.component.d.ts +19 -11
- package/dist/components/controltypeprovider/controltypeprovider.component.js +0 -10
- package/dist/components/datepicker/datepicker.component.d.ts +25 -14
- package/dist/components/datepicker/datepicker.component.js +96 -35
- package/dist/components/dialog/dialog.component.d.ts +25 -40
- package/dist/components/dialog/dialog.component.js +1 -35
- package/dist/components/divider/divider.component.d.ts +23 -25
- package/dist/components/divider/divider.component.js +0 -23
- package/dist/components/filterchip/filterchip.component.d.ts +20 -9
- package/dist/components/filterchip/filterchip.component.js +0 -5
- package/dist/components/formfieldgroup/formfieldgroup.component.d.ts +18 -19
- package/dist/components/formfieldgroup/formfieldgroup.component.js +0 -15
- package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +16 -8
- package/dist/components/formfieldwrapper/formfieldwrapper.component.js +0 -4
- package/dist/components/icon/icon.component.d.ts +16 -41
- package/dist/components/icon/icon.component.js +0 -39
- package/dist/components/iconprovider/iconprovider.component.d.ts +14 -24
- package/dist/components/iconprovider/iconprovider.component.js +0 -23
- package/dist/components/illustration/illustration.component.d.ts +16 -32
- package/dist/components/illustration/illustration.component.js +0 -30
- package/dist/components/illustrationprovider/illustrationprovider.component.d.ts +14 -24
- package/dist/components/illustrationprovider/illustrationprovider.component.js +0 -23
- package/dist/components/input/input.component.d.ts +21 -16
- package/dist/components/input/input.component.js +0 -11
- package/dist/components/inputchip/inputchip.component.d.ts +19 -13
- package/dist/components/inputchip/inputchip.component.js +0 -7
- package/dist/components/link/link.component.d.ts +18 -12
- package/dist/components/link/link.component.js +1 -9
- package/dist/components/linkbutton/linkbutton.component.d.ts +19 -12
- package/dist/components/linkbutton/linkbutton.component.js +1 -8
- package/dist/components/linksimple/linksimple.component.d.ts +17 -10
- package/dist/components/linksimple/linksimple.component.js +0 -7
- package/dist/components/list/list.component.d.ts +17 -7
- package/dist/components/list/list.component.js +0 -5
- package/dist/components/listbox/listbox.component.d.ts +21 -16
- package/dist/components/listbox/listbox.component.js +1 -11
- package/dist/components/listheader/listheader.component.d.ts +14 -6
- package/dist/components/listheader/listheader.component.js +0 -3
- package/dist/components/listitem/listitem.component.d.ts +20 -18
- package/dist/components/listitem/listitem.component.js +0 -13
- package/dist/components/marker/marker.component.d.ts +15 -16
- package/dist/components/marker/marker.component.js +0 -15
- package/dist/components/menubar/menubar.component.d.ts +12 -19
- package/dist/components/menubar/menubar.component.js +2 -20
- package/dist/components/menuitem/menuitem.component.d.ts +18 -19
- package/dist/components/menuitem/menuitem.component.js +1 -15
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.d.ts +19 -30
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +1 -25
- package/dist/components/menuitemradio/menuitemradio.component.d.ts +18 -31
- package/dist/components/menuitemradio/menuitemradio.component.js +1 -26
- package/dist/components/menupopover/menupopover.component.d.ts +17 -39
- package/dist/components/menupopover/menupopover.component.js +4 -38
- package/dist/components/menusection/menusection.component.d.ts +16 -12
- package/dist/components/menusection/menusection.component.js +0 -8
- package/dist/components/navmenuitem/navmenuitem.component.d.ts +47 -16
- package/dist/components/navmenuitem/navmenuitem.component.js +146 -20
- package/dist/components/navmenuitem/navmenuitem.constants.d.ts +1 -0
- package/dist/components/navmenuitem/navmenuitem.constants.js +1 -0
- package/dist/components/navmenuitem/navmenuitem.styles.js +16 -5
- package/dist/components/optgroup/optgroup.component.d.ts +17 -7
- package/dist/components/optgroup/optgroup.component.js +1 -3
- package/dist/components/option/option.component.d.ts +17 -19
- package/dist/components/option/option.component.js +1 -15
- package/dist/components/password/password.component.d.ts +18 -17
- package/dist/components/password/password.component.js +0 -11
- package/dist/components/popover/popover.component.d.ts +20 -52
- package/dist/components/popover/popover.component.js +1 -47
- package/dist/components/presence/presence.component.d.ts +17 -10
- package/dist/components/presence/presence.component.js +1 -7
- package/dist/components/progressbar/progressbar.component.d.ts +17 -13
- package/dist/components/progressbar/progressbar.component.js +0 -9
- package/dist/components/progressspinner/progressspinner.component.d.ts +14 -19
- package/dist/components/progressspinner/progressspinner.component.js +0 -17
- package/dist/components/radio/radio.component.d.ts +19 -41
- package/dist/components/radio/radio.component.js +1 -37
- package/dist/components/radiogroup/radiogroup.component.d.ts +12 -5
- package/dist/components/radiogroup/radiogroup.component.js +0 -4
- package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.d.ts +11 -29
- package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.js +0 -29
- package/dist/components/screenreaderannouncer/screenreaderannouncer.component.d.ts +12 -51
- package/dist/components/screenreaderannouncer/screenreaderannouncer.component.js +0 -51
- package/dist/components/searchfield/searchfield.component.d.ts +16 -24
- package/dist/components/searchfield/searchfield.component.js +0 -20
- package/dist/components/searchpopover/searchpopover.component.d.ts +16 -20
- package/dist/components/searchpopover/searchpopover.component.js +0 -16
- package/dist/components/select/select.component.d.ts +23 -19
- package/dist/components/select/select.component.js +1 -14
- package/dist/components/selectlistbox/selectlistbox.component.d.ts +12 -8
- package/dist/components/selectlistbox/selectlistbox.component.js +0 -7
- package/dist/components/sidenavigation/sidenavigation.component.d.ts +64 -44
- package/dist/components/sidenavigation/sidenavigation.component.js +241 -43
- package/dist/components/sidenavigation/sidenavigation.constants.d.ts +6 -1
- package/dist/components/sidenavigation/sidenavigation.constants.js +6 -1
- package/dist/components/sidenavigation/sidenavigation.context.d.ts +6 -1
- package/dist/components/sidenavigation/sidenavigation.context.js +36 -11
- package/dist/components/sidenavigation/sidenavigation.types.d.ts +3 -2
- package/dist/components/sidenavigation/sidenavigationbase.d.ts +8 -0
- package/dist/components/sidenavigation/sidenavigationbase.js +7 -0
- package/dist/components/skeleton/skeleton.component.d.ts +14 -15
- package/dist/components/skeleton/skeleton.component.js +0 -13
- package/dist/components/slider/slider.component.d.ts +17 -15
- package/dist/components/slider/slider.component.js +0 -11
- package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.d.ts +15 -215
- package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.js +1 -215
- package/dist/components/spinner/spinner.component.d.ts +15 -27
- package/dist/components/spinner/spinner.component.js +0 -25
- package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +16 -21
- package/dist/components/staticcheckbox/staticcheckbox.component.js +0 -17
- package/dist/components/staticchip/staticchip.component.d.ts +17 -8
- package/dist/components/staticchip/staticchip.component.js +0 -5
- package/dist/components/staticradio/staticradio.component.d.ts +15 -19
- package/dist/components/staticradio/staticradio.component.js +0 -16
- package/dist/components/statictoggle/statictoggle.component.d.ts +16 -21
- package/dist/components/statictoggle/statictoggle.component.js +0 -17
- package/dist/components/stepper/stepper.component.d.ts +13 -5
- package/dist/components/stepper/stepper.component.js +0 -3
- package/dist/components/stepperconnector/stepperconnector.component.d.ts +13 -6
- package/dist/components/stepperconnector/stepperconnector.component.js +0 -4
- package/dist/components/stepperitem/stepperitem.component.d.ts +16 -14
- package/dist/components/stepperitem/stepperitem.component.js +1 -10
- package/dist/components/tab/tab.component.d.ts +20 -23
- package/dist/components/tab/tab.component.js +1 -16
- package/dist/components/tablist/tablist.component.d.ts +18 -30
- package/dist/components/tablist/tablist.component.js +0 -24
- package/dist/components/text/text.component.d.ts +12 -13
- package/dist/components/text/text.component.js +0 -12
- package/dist/components/textarea/textarea.component.d.ts +17 -39
- package/dist/components/textarea/textarea.component.js +0 -34
- package/dist/components/themeprovider/themeprovider.component.d.ts +13 -27
- package/dist/components/themeprovider/themeprovider.component.js +0 -25
- package/dist/components/timepicker/timepicker.component.d.ts +17 -19
- package/dist/components/timepicker/timepicker.component.js +0 -14
- package/dist/components/toast/toast.component.d.ts +20 -12
- package/dist/components/toast/toast.component.js +1 -7
- package/dist/components/toggle/toggle.component.d.ts +18 -24
- package/dist/components/toggle/toggle.component.js +1 -21
- package/dist/components/toggletip/toggletip.component.d.ts +18 -28
- package/dist/components/toggletip/toggletip.component.js +1 -24
- package/dist/components/tooltip/tooltip.component.d.ts +16 -16
- package/dist/components/tooltip/tooltip.component.js +0 -13
- package/dist/components/typewriter/typewriter.component.d.ts +18 -34
- package/dist/components/typewriter/typewriter.component.js +1 -31
- package/dist/components/verticaltablist/verticaltablist.component.d.ts +17 -30
- package/dist/components/verticaltablist/verticaltablist.component.js +0 -26
- package/dist/components/virtualizedlist/virtualizedlist.component.d.ts +16 -58
- package/dist/components/virtualizedlist/virtualizedlist.component.js +0 -55
- package/dist/custom-elements.json +334 -191
- package/dist/models/provider/provider.component.d.ts +2 -2
- package/dist/models/provider/provider.component.js +13 -0
- package/dist/react/accordion/index.d.ts +15 -5
- package/dist/react/accordionbutton/index.d.ts +14 -26
- package/dist/react/accordionbutton/index.js +0 -22
- package/dist/react/accordiongroup/index.d.ts +12 -16
- package/dist/react/accordiongroup/index.js +0 -14
- package/dist/react/alertchip/index.d.ts +15 -11
- package/dist/react/alertchip/index.js +0 -7
- package/dist/react/animation/index.d.ts +14 -6
- package/dist/react/animation/index.js +0 -5
- package/dist/react/announcementdialog/index.d.ts +18 -25
- package/dist/react/announcementdialog/index.js +1 -20
- package/dist/react/appheader/index.d.ts +13 -12
- package/dist/react/appheader/index.js +0 -9
- package/dist/react/avatar/index.d.ts +14 -34
- package/dist/react/avatar/index.js +1 -31
- package/dist/react/avatarbutton/index.d.ts +15 -14
- package/dist/react/avatarbutton/index.js +1 -10
- package/dist/react/badge/index.d.ts +16 -20
- package/dist/react/badge/index.js +1 -17
- package/dist/react/banner/index.d.ts +17 -17
- package/dist/react/banner/index.js +1 -13
- package/dist/react/brandvisual/index.d.ts +15 -12
- package/dist/react/brandvisual/index.js +0 -10
- package/dist/react/bullet/index.d.ts +15 -16
- package/dist/react/bullet/index.js +0 -15
- package/dist/react/button/index.d.ts +21 -52
- package/dist/react/button/index.js +1 -47
- package/dist/react/buttongroup/index.d.ts +17 -20
- package/dist/react/buttongroup/index.js +0 -17
- package/dist/react/buttonlink/index.d.ts +19 -16
- package/dist/react/buttonlink/index.js +1 -11
- package/dist/react/buttonsimple/index.d.ts +16 -25
- package/dist/react/buttonsimple/index.js +0 -22
- package/dist/react/calendar/index.d.ts +17 -11
- package/dist/react/calendar/index.js +0 -8
- package/dist/react/card/index.d.ts +18 -17
- package/dist/react/card/index.js +0 -13
- package/dist/react/cardbutton/index.d.ts +20 -14
- package/dist/react/cardbutton/index.js +0 -9
- package/dist/react/cardcheckbox/index.d.ts +20 -19
- package/dist/react/cardcheckbox/index.js +0 -14
- package/dist/react/cardradio/index.d.ts +20 -20
- package/dist/react/cardradio/index.js +0 -15
- package/dist/react/checkbox/index.d.ts +22 -26
- package/dist/react/checkbox/index.js +1 -22
- package/dist/react/chip/index.d.ts +20 -13
- package/dist/react/chip/index.js +0 -9
- package/dist/react/coachmark/index.d.ts +22 -22
- package/dist/react/coachmark/index.js +1 -18
- package/dist/react/combobox/index.d.ts +27 -37
- package/dist/react/combobox/index.js +1 -32
- package/dist/react/controltypeprovider/index.d.ts +19 -11
- package/dist/react/controltypeprovider/index.js +0 -10
- package/dist/react/datepicker/index.d.ts +20 -14
- package/dist/react/datepicker/index.js +0 -9
- package/dist/react/dialog/index.d.ts +25 -40
- package/dist/react/dialog/index.js +1 -35
- package/dist/react/divider/index.d.ts +23 -25
- package/dist/react/divider/index.js +0 -23
- package/dist/react/filterchip/index.d.ts +20 -9
- package/dist/react/filterchip/index.js +0 -5
- package/dist/react/formfieldgroup/index.d.ts +18 -19
- package/dist/react/formfieldgroup/index.js +0 -15
- package/dist/react/formfieldwrapper/index.d.ts +16 -8
- package/dist/react/formfieldwrapper/index.js +0 -4
- package/dist/react/icon/index.d.ts +16 -41
- package/dist/react/icon/index.js +0 -39
- package/dist/react/iconprovider/index.d.ts +14 -24
- package/dist/react/iconprovider/index.js +0 -23
- package/dist/react/illustration/index.d.ts +16 -32
- package/dist/react/illustration/index.js +0 -30
- package/dist/react/illustrationprovider/index.d.ts +14 -24
- package/dist/react/illustrationprovider/index.js +0 -23
- package/dist/react/input/index.d.ts +21 -16
- package/dist/react/input/index.js +0 -11
- package/dist/react/inputchip/index.d.ts +19 -13
- package/dist/react/inputchip/index.js +0 -7
- package/dist/react/link/index.d.ts +18 -12
- package/dist/react/link/index.js +1 -9
- package/dist/react/linkbutton/index.d.ts +19 -12
- package/dist/react/linkbutton/index.js +1 -8
- package/dist/react/linksimple/index.d.ts +17 -10
- package/dist/react/linksimple/index.js +0 -7
- package/dist/react/list/index.d.ts +17 -7
- package/dist/react/list/index.js +0 -5
- package/dist/react/listbox/index.d.ts +21 -16
- package/dist/react/listbox/index.js +1 -11
- package/dist/react/listheader/index.d.ts +14 -6
- package/dist/react/listheader/index.js +0 -3
- package/dist/react/listitem/index.d.ts +20 -18
- package/dist/react/listitem/index.js +0 -13
- package/dist/react/marker/index.d.ts +15 -16
- package/dist/react/marker/index.js +0 -15
- package/dist/react/menubar/index.d.ts +12 -19
- package/dist/react/menubar/index.js +0 -19
- package/dist/react/menuitem/index.d.ts +18 -19
- package/dist/react/menuitem/index.js +1 -15
- package/dist/react/menuitemcheckbox/index.d.ts +19 -30
- package/dist/react/menuitemcheckbox/index.js +1 -25
- package/dist/react/menuitemradio/index.d.ts +18 -31
- package/dist/react/menuitemradio/index.js +1 -26
- package/dist/react/menupopover/index.d.ts +16 -38
- package/dist/react/menupopover/index.js +0 -34
- package/dist/react/menusection/index.d.ts +16 -12
- package/dist/react/menusection/index.js +0 -8
- package/dist/react/navmenuitem/index.d.ts +19 -16
- package/dist/react/navmenuitem/index.js +3 -12
- package/dist/react/optgroup/index.d.ts +17 -7
- package/dist/react/optgroup/index.js +1 -3
- package/dist/react/option/index.d.ts +17 -19
- package/dist/react/option/index.js +1 -15
- package/dist/react/password/index.d.ts +18 -17
- package/dist/react/password/index.js +0 -11
- package/dist/react/popover/index.d.ts +20 -52
- package/dist/react/popover/index.js +1 -47
- package/dist/react/presence/index.d.ts +17 -10
- package/dist/react/presence/index.js +1 -7
- package/dist/react/progressbar/index.d.ts +17 -13
- package/dist/react/progressbar/index.js +0 -9
- package/dist/react/progressspinner/index.d.ts +14 -19
- package/dist/react/progressspinner/index.js +0 -17
- package/dist/react/radio/index.d.ts +19 -41
- package/dist/react/radio/index.js +1 -37
- package/dist/react/radiogroup/index.d.ts +12 -5
- package/dist/react/radiogroup/index.js +0 -4
- package/dist/react/responsivesettingsprovider/index.d.ts +11 -29
- package/dist/react/responsivesettingsprovider/index.js +0 -29
- package/dist/react/screenreaderannouncer/index.d.ts +12 -51
- package/dist/react/screenreaderannouncer/index.js +0 -51
- package/dist/react/searchfield/index.d.ts +16 -24
- package/dist/react/searchfield/index.js +0 -20
- package/dist/react/searchpopover/index.d.ts +16 -20
- package/dist/react/searchpopover/index.js +0 -16
- package/dist/react/select/index.d.ts +23 -19
- package/dist/react/select/index.js +1 -14
- package/dist/react/selectlistbox/index.d.ts +12 -8
- package/dist/react/selectlistbox/index.js +0 -7
- package/dist/react/sidenavigation/index.d.ts +21 -41
- package/dist/react/sidenavigation/index.js +1 -35
- package/dist/react/skeleton/index.d.ts +14 -15
- package/dist/react/skeleton/index.js +0 -13
- package/dist/react/slider/index.d.ts +17 -15
- package/dist/react/slider/index.js +0 -11
- package/dist/react/spatialnavigationprovider/index.d.ts +15 -215
- package/dist/react/spatialnavigationprovider/index.js +1 -214
- package/dist/react/spinner/index.d.ts +15 -27
- package/dist/react/spinner/index.js +0 -25
- package/dist/react/staticcheckbox/index.d.ts +16 -21
- package/dist/react/staticcheckbox/index.js +0 -17
- package/dist/react/staticchip/index.d.ts +17 -8
- package/dist/react/staticchip/index.js +0 -5
- package/dist/react/staticradio/index.d.ts +15 -19
- package/dist/react/staticradio/index.js +0 -16
- package/dist/react/statictoggle/index.d.ts +16 -21
- package/dist/react/statictoggle/index.js +0 -17
- package/dist/react/stepper/index.d.ts +13 -5
- package/dist/react/stepper/index.js +0 -3
- package/dist/react/stepperconnector/index.d.ts +13 -6
- package/dist/react/stepperconnector/index.js +0 -4
- package/dist/react/stepperitem/index.d.ts +16 -14
- package/dist/react/stepperitem/index.js +1 -10
- package/dist/react/tab/index.d.ts +20 -23
- package/dist/react/tab/index.js +1 -16
- package/dist/react/tablist/index.d.ts +18 -30
- package/dist/react/tablist/index.js +0 -24
- package/dist/react/text/index.d.ts +12 -13
- package/dist/react/text/index.js +0 -12
- package/dist/react/textarea/index.d.ts +17 -39
- package/dist/react/textarea/index.js +0 -34
- package/dist/react/themeprovider/index.d.ts +13 -27
- package/dist/react/themeprovider/index.js +0 -25
- package/dist/react/timepicker/index.d.ts +17 -19
- package/dist/react/timepicker/index.js +0 -14
- package/dist/react/toast/index.d.ts +20 -12
- package/dist/react/toast/index.js +1 -7
- package/dist/react/toggle/index.d.ts +18 -24
- package/dist/react/toggle/index.js +1 -21
- package/dist/react/toggletip/index.d.ts +18 -28
- package/dist/react/toggletip/index.js +1 -24
- package/dist/react/tooltip/index.d.ts +16 -16
- package/dist/react/tooltip/index.js +0 -13
- package/dist/react/typewriter/index.d.ts +18 -34
- package/dist/react/typewriter/index.js +1 -31
- package/dist/react/verticaltablist/index.d.ts +17 -30
- package/dist/react/verticaltablist/index.js +0 -26
- package/dist/react/virtualizedlist/index.d.ts +16 -58
- package/dist/react/virtualizedlist/index.js +0 -55
- package/package.json +1 -1
|
@@ -3,38 +3,25 @@ import MenuItem from '../menuitem/menuitem.component';
|
|
|
3
3
|
import { Indicator } from './menuitemradio.types';
|
|
4
4
|
declare const MenuItemRadio_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/ControlTypeMixin").ControlTypeMixinInterface> & typeof MenuItem;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* the checkmark will always be positioned on the trailing side.
|
|
21
|
-
*
|
|
22
|
-
* The radio will have the possible states of `true` or `false`.
|
|
23
|
-
* If the indicator is set to <b>checkmark</b> and if the `checked` attribute is set to `true`,
|
|
24
|
-
* then the checkmark will be displayed. if not, then no indicator will be displayed.
|
|
25
|
-
*
|
|
26
|
-
* The third options for the `indicator` is <b>none</b>, which will not display any indicator at all.
|
|
27
|
-
* It is intended to be used for customised menu items where the indicator is implemented differently.
|
|
28
|
-
* For example, you can use a custom icon or a different visual element to indicate the state of the menu item.
|
|
29
|
-
* Make sure the new indicator is accessible.
|
|
30
|
-
*
|
|
6
|
+
* `mdc-menuitemradio` is a checkable menu item used for single-selection within a group of related items. When checked, the component automatically un-checks every other `mdc-menuitemradio` that shares the same `name` inside the closest `mdc-menusection` or `mdc-menupopover`.
|
|
7
|
+
*
|
|
8
|
+
* **When to use**
|
|
9
|
+
*
|
|
10
|
+
* - Use `mdc-menuitemradio` for mutually exclusive options inside a menu (only one item in the group may be selected at a time).
|
|
11
|
+
* - Group related items by giving them the same `name` and placing them inside the same `mdc-menusection` or `mdc-menupopover`.
|
|
12
|
+
*
|
|
13
|
+
* **When not to use**
|
|
14
|
+
*
|
|
15
|
+
* - Use `mdc-menuitemcheckbox` when more than one item in the group can be checked simultaneously.
|
|
16
|
+
* - Use `mdc-menuitem` for actions that do not have a selected state.
|
|
17
|
+
*
|
|
18
|
+
* @tagname mdc-menuitemradio
|
|
19
|
+
*
|
|
31
20
|
* @dependency mdc-icon
|
|
32
21
|
* @dependency mdc-staticradio
|
|
33
22
|
* @dependency mdc-text
|
|
34
23
|
* @dependency mdc-tooltip
|
|
35
|
-
*
|
|
36
|
-
* @tagname mdc-menuitemradio
|
|
37
|
-
*
|
|
24
|
+
*
|
|
38
25
|
* @slot leading-controls - slot for menu item radio controls to appear of leading end.
|
|
39
26
|
* @slot leading-text-primary-label - slot for menu item radio primary label.
|
|
40
27
|
* @slot leading-text-secondary-label - slot for menu item radio secondary label.
|
|
@@ -42,13 +29,13 @@ declare const MenuItemRadio_base: import("../../utils/mixins/index.types").Const
|
|
|
42
29
|
* @slot trailing-text-side-header - slot for menu item radio side header text.
|
|
43
30
|
* @slot trailing-text-subline - slot for menu item radio subline text.
|
|
44
31
|
* @slot trailing-controls - slot for menu item radio controls to appear of trailing end.
|
|
45
|
-
*
|
|
32
|
+
*
|
|
46
33
|
* @event change - (React: onChange) This event is dispatched when the menuitemradio changes.
|
|
47
34
|
* @event click - (React: onClick) This event is dispatched when the menuitemradio is clicked.
|
|
48
35
|
* @event focus - (React: onFocus) This event is dispatched when the menuitemradio receives focus.
|
|
49
|
-
*
|
|
36
|
+
*
|
|
50
37
|
* @cssproperty --mdc-listitem-padding-left-and-right - Controls the padding on the left and right of the menuitemradio.
|
|
51
|
-
*
|
|
38
|
+
*
|
|
52
39
|
* @csspart checkmark-icon - Allows customization of the checkmark icon.
|
|
53
40
|
* @csspart leading - Allows customization of the leading part.
|
|
54
41
|
* @csspart leading-arrow - Allows customization of leading arrow icon.
|
|
@@ -19,38 +19,13 @@ import { ControlTypeMixin } from '../../utils/mixins/ControlTypeMixin';
|
|
|
19
19
|
import { INDICATOR, DEFAULTS } from './menuitemradio.constants';
|
|
20
20
|
import styles from './menuitemradio.styles';
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
* A menuitemradio should be checked only one at a time. <br/>
|
|
24
|
-
* There should be no focusable descendants inside this menuitemradio component.
|
|
25
|
-
*
|
|
26
|
-
* The `checked` menuitemradio attribute is used to indicate that the menuitemradio is checked or not.
|
|
27
|
-
*
|
|
28
|
-
* Menu item radio has `name` and `value` attribute that can be used to identify the menu item when it is selected.
|
|
29
|
-
*
|
|
30
|
-
* If you want more than one item in a group to be checked, consider using menuitemcheckbox component.
|
|
31
|
-
*
|
|
32
|
-
* The `indicator` attribute is used to differentiate between <b>radio</b>, <b>checkmark</b> and <b>none</b>.
|
|
33
|
-
* By default, the `indicator` is set to <b>radio</b>.<br/>
|
|
34
|
-
*
|
|
35
|
-
* The checkbox will always be positioned on the leading side of the menuitem label and
|
|
36
|
-
* the checkmark will always be positioned on the trailing side.
|
|
37
|
-
*
|
|
38
|
-
* The radio will have the possible states of `true` or `false`.
|
|
39
|
-
* If the indicator is set to <b>checkmark</b> and if the `checked` attribute is set to `true`,
|
|
40
|
-
* then the checkmark will be displayed. if not, then no indicator will be displayed.
|
|
41
|
-
*
|
|
42
|
-
* The third options for the `indicator` is <b>none</b>, which will not display any indicator at all.
|
|
43
|
-
* It is intended to be used for customised menu items where the indicator is implemented differently.
|
|
44
|
-
* For example, you can use a custom icon or a different visual element to indicate the state of the menu item.
|
|
45
|
-
* Make sure the new indicator is accessible.
|
|
22
|
+
* @tagname mdc-menuitemradio
|
|
46
23
|
*
|
|
47
24
|
* @dependency mdc-icon
|
|
48
25
|
* @dependency mdc-staticradio
|
|
49
26
|
* @dependency mdc-text
|
|
50
27
|
* @dependency mdc-tooltip
|
|
51
28
|
*
|
|
52
|
-
* @tagname mdc-menuitemradio
|
|
53
|
-
*
|
|
54
29
|
* @slot leading-controls - slot for menu item radio controls to appear of leading end.
|
|
55
30
|
* @slot leading-text-primary-label - slot for menu item radio primary label.
|
|
56
31
|
* @slot leading-text-secondary-label - slot for menu item radio secondary label.
|
|
@@ -2,49 +2,27 @@ import { CSSResult, PropertyValues } from 'lit';
|
|
|
2
2
|
import Popover from '../popover/popover.component';
|
|
3
3
|
import type { PopoverPlacement } from '../popover/popover.types';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* to work as a submenu (right-aligned, shows on hover).
|
|
18
|
-
*
|
|
19
|
-
* The orientation of the menu popover is always set to `vertical`.
|
|
20
|
-
*
|
|
21
|
-
* Submenu opens when:
|
|
22
|
-
* - Clicked on a menu item with a submenu
|
|
23
|
-
* - Enter or Space key pressed on a menu item with a submenu
|
|
24
|
-
*
|
|
25
|
-
* Menu closes completely (with all sub menus) when:
|
|
26
|
-
* - A menu item is clicked that does not have a submenu
|
|
27
|
-
* - Enter key pressed on a menu item (not a submenu trigger), menu item radio or menu item checkbox
|
|
28
|
-
* - Click outside the menu popover (on the backdrop)
|
|
29
|
-
*
|
|
30
|
-
* Close submenus when:
|
|
31
|
-
* - Esc key pressed, only the current submenu closed
|
|
32
|
-
* - Arrow Left key pressed, only the current submenu closed
|
|
33
|
-
* - Open another submenu with Click, Enter or Space key,
|
|
34
|
-
* closes recursively all submenus until the selected item's submenu
|
|
35
|
-
*
|
|
36
|
-
* Menu does not close when:
|
|
37
|
-
* - Space key pressed on a menu item radio or menu item checkbox
|
|
38
|
-
*
|
|
5
|
+
* `mdc-menupopover` is a floating overlay that hosts menu items (`mdc-menuitem`, `mdc-menuitemcheckbox`, `mdc-menuitemradio`) optionally grouped in `mdc-menusection`. It is anchored to a trigger element via the `triggerid` attribute and provides keyboard navigation, focus trapping, dismissal, and automatic submenu behaviour when nested inside another `mdc-menupopover` or used with `mdc-menubar`.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Use `mdc-menupopover` to surface a menu of actions from a trigger button or menu item.
|
|
10
|
+
* - Use it as a submenu by nesting it under another `mdc-menupopover` or by anchoring it to an `mdc-menuitem` inside an `mdc-menubar`.
|
|
11
|
+
*
|
|
12
|
+
* **When not to use**
|
|
13
|
+
*
|
|
14
|
+
* - Do not use `mdc-menupopover` for generic non-menu overlays — use `mdc-popover` for those.
|
|
15
|
+
* - Do not use it to host a single non-menu item or arbitrary form controls; the contents should be menu items.
|
|
16
|
+
*
|
|
39
17
|
* @tagname mdc-menupopover
|
|
40
|
-
*
|
|
18
|
+
*
|
|
41
19
|
* @slot - Default slot for the menu popover content
|
|
42
|
-
*
|
|
20
|
+
*
|
|
43
21
|
* @event change - (React: onChange) This event is dispatched when a `menuitemcheckbox`, or `menuitemradio` changes.
|
|
44
22
|
* @event action - (React: onAction) This event is dispatched when a menuItem selected and the menu closes.
|
|
45
|
-
*
|
|
23
|
+
*
|
|
46
24
|
* @slot default - Contains the menu items to be displayed in the popover
|
|
47
|
-
*
|
|
25
|
+
*
|
|
48
26
|
* @csspart popover-close - The close button of the menupopover.
|
|
49
27
|
* @csspart popover-content - The content of the menupopover.
|
|
50
28
|
* @csspart popover-hover-bridge - The hover bridge of the menupopover.
|
|
@@ -124,7 +102,7 @@ declare class MenuPopover extends Popover {
|
|
|
124
102
|
onOutsidePopoverClick: (event: MouseEvent) => void;
|
|
125
103
|
/**
|
|
126
104
|
* Toggles the visibility of the popover.
|
|
127
|
-
* This method checks if the trigger element has the `soft-disabled` attribute.
|
|
105
|
+
* This method checks if the trigger element has the `disabled` or `soft-disabled` attribute.
|
|
128
106
|
* If it does, the popover will not be toggled.
|
|
129
107
|
* If the popover is currently visible, it hides the popover; otherwise, it shows the popover.
|
|
130
108
|
* @returns - This method does not return anything.
|
|
@@ -21,40 +21,6 @@ import { DEFAULTS, TAG_NAME as MENU_POPOVER } from './menupopover.constants';
|
|
|
21
21
|
import styles from './menupopover.styles';
|
|
22
22
|
import { isValidMenuItem, isValidMenuPopover } from './menupopover.utils';
|
|
23
23
|
/**
|
|
24
|
-
* A popover menu component that displays a list of menu items in a floating container.
|
|
25
|
-
* It's designed to work in conjunction with `mdc-menubar` and `mdc-menuitem` to create
|
|
26
|
-
* accessible, nested menu structures with the following features:
|
|
27
|
-
* - Appears adjacent to the triggering menu item
|
|
28
|
-
* - Supports keyboard navigation (arrow keys, Home, End)
|
|
29
|
-
* - Manages focus trapping when open
|
|
30
|
-
* - Closes on Escape key or outside click
|
|
31
|
-
* - Supports both mouse and keyboard interactions
|
|
32
|
-
* - Automatically handles ARIA attributes for accessibility
|
|
33
|
-
*
|
|
34
|
-
* The component extends `mdc-popover` and adds menu-specific behaviors and styling.
|
|
35
|
-
* When nested within another `mdc-menupopover`, it automatically adjusts its behavior
|
|
36
|
-
* to work as a submenu (right-aligned, shows on hover).
|
|
37
|
-
*
|
|
38
|
-
* The orientation of the menu popover is always set to `vertical`.
|
|
39
|
-
*
|
|
40
|
-
* Submenu opens when:
|
|
41
|
-
* - Clicked on a menu item with a submenu
|
|
42
|
-
* - Enter or Space key pressed on a menu item with a submenu
|
|
43
|
-
*
|
|
44
|
-
* Menu closes completely (with all sub menus) when:
|
|
45
|
-
* - A menu item is clicked that does not have a submenu
|
|
46
|
-
* - Enter key pressed on a menu item (not a submenu trigger), menu item radio or menu item checkbox
|
|
47
|
-
* - Click outside the menu popover (on the backdrop)
|
|
48
|
-
*
|
|
49
|
-
* Close submenus when:
|
|
50
|
-
* - Esc key pressed, only the current submenu closed
|
|
51
|
-
* - Arrow Left key pressed, only the current submenu closed
|
|
52
|
-
* - Open another submenu with Click, Enter or Space key,
|
|
53
|
-
* closes recursively all submenus until the selected item's submenu
|
|
54
|
-
*
|
|
55
|
-
* Menu does not close when:
|
|
56
|
-
* - Space key pressed on a menu item radio or menu item checkbox
|
|
57
|
-
*
|
|
58
24
|
* @tagname mdc-menupopover
|
|
59
25
|
*
|
|
60
26
|
* @slot - Default slot for the menu popover content
|
|
@@ -112,14 +78,14 @@ class MenuPopover extends Popover {
|
|
|
112
78
|
};
|
|
113
79
|
/**
|
|
114
80
|
* Toggles the visibility of the popover.
|
|
115
|
-
* This method checks if the trigger element has the `soft-disabled` attribute.
|
|
81
|
+
* This method checks if the trigger element has the `disabled` or `soft-disabled` attribute.
|
|
116
82
|
* If it does, the popover will not be toggled.
|
|
117
83
|
* If the popover is currently visible, it hides the popover; otherwise, it shows the popover.
|
|
118
84
|
* @returns - This method does not return anything.
|
|
119
85
|
*/
|
|
120
86
|
this.togglePopoverVisible = (event) => {
|
|
121
|
-
var _a;
|
|
122
|
-
if ((_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.hasAttribute('soft-disabled'))
|
|
87
|
+
var _a, _b;
|
|
88
|
+
if (((_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.hasAttribute('disabled')) || ((_b = this.triggerElement) === null || _b === void 0 ? void 0 : _b.hasAttribute('soft-disabled')))
|
|
123
89
|
return;
|
|
124
90
|
// Handle mouse click in the parent menupopover to hide open sibling submenus
|
|
125
91
|
if (event.composedPath().find(el => el.tagName === this.tagName) === this) {
|
|
@@ -213,7 +179,7 @@ class MenuPopover extends Popover {
|
|
|
213
179
|
case ACTIONS.RIGHT: {
|
|
214
180
|
// If there is a submenu, open it.
|
|
215
181
|
const subMenu = this.getSubMenuPopoverOfTarget(target);
|
|
216
|
-
if (subMenu) {
|
|
182
|
+
if (subMenu && !target.hasAttribute('soft-disabled')) {
|
|
217
183
|
subMenu.show();
|
|
218
184
|
isKeyHandled = true;
|
|
219
185
|
}
|
|
@@ -2,26 +2,30 @@ import { CSSResult, PropertyValues } from 'lit';
|
|
|
2
2
|
import { Component } from '../../models';
|
|
3
3
|
import type { IconNames } from '../icon/icon.types';
|
|
4
4
|
/**
|
|
5
|
-
* `mdc-menusection`
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
5
|
+
* `mdc-menusection` groups a set of menu items (`mdc-menuitem`, `mdc-menuitemcheckbox`, `mdc-menuitemradio`) under an optional visible header, optional prefix icon, and optional divider. It also enforces single-selection semantics across any `mdc-menuitemradio` children that share a `name`.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Use `mdc-menusection` to label and visually separate related entries inside an `mdc-menupopover` or `mdc-menubar`.
|
|
10
|
+
* - Use it to scope a `mdc-menuitemradio` group: the section bounds the single-selection rule applied to radios with the same `name`.
|
|
11
|
+
*
|
|
12
|
+
* **When not to use**
|
|
13
|
+
*
|
|
14
|
+
* - Do not nest `mdc-menusection` inside another `mdc-menusection`; sections are flat.
|
|
15
|
+
* - Do not use it outside of a menu context (`mdc-menupopover`, `mdc-menubar`, `mdc-sidenavigation`).
|
|
16
|
+
*
|
|
13
17
|
* @tagname mdc-menusection
|
|
14
|
-
*
|
|
18
|
+
*
|
|
15
19
|
* @slot - Default slot for inserting `menuitem`, `menuitemcheckbox`, or `menuitemradio`
|
|
16
|
-
*
|
|
20
|
+
*
|
|
17
21
|
* @event change - (React: onChange) This event is dispatched when a `menuitemcheckbox`, or `menuitemradio` changes.
|
|
18
22
|
* @event action - (React: onAction) This event is dispatched when a `menuitem` selected.
|
|
19
|
-
*
|
|
23
|
+
*
|
|
20
24
|
* @csspart header - The header of the menusection.
|
|
21
25
|
* @csspart align-header - The header of the menusection when it is aligned to the start.
|
|
22
26
|
* @csspart container - The container of the menusection.
|
|
23
27
|
* @csspart divider - The divider of the menusection.
|
|
24
|
-
*
|
|
28
|
+
*
|
|
25
29
|
* @cssproperty --mdc-menusection-divider-margin-block - Sets the margin block of the divider.
|
|
26
30
|
* @cssproperty --mdc-menusection-gap - Sets the gap between items in the menusection.
|
|
27
31
|
* @cssproperty --mdc-menusection-divider-width - Sets the width of the divider.
|
|
@@ -17,14 +17,6 @@ import SideNavigation from '../sidenavigation/sidenavigation.component';
|
|
|
17
17
|
import styles from './menusection.styles';
|
|
18
18
|
import { DEFAULTS } from './menusection.constants';
|
|
19
19
|
/**
|
|
20
|
-
* `mdc-menusection` is a container element used to group a set of menu items.
|
|
21
|
-
*
|
|
22
|
-
* This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components. MenuSection can not be nested.
|
|
23
|
-
*
|
|
24
|
-
* - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:
|
|
25
|
-
* only one radio item can be selected at a time.
|
|
26
|
-
* - If `menuitemcheckbox` components are included, their checked state can be toggled independently.
|
|
27
|
-
*
|
|
28
20
|
* @tagname mdc-menusection
|
|
29
21
|
*
|
|
30
22
|
* @slot - Default slot for inserting `menuitem`, `menuitemcheckbox`, or `menuitemradio`
|
|
@@ -5,30 +5,31 @@ import type { PopoverPlacement } from '../popover/popover.types';
|
|
|
5
5
|
import type { TooltipType } from '../tooltip/tooltip.types';
|
|
6
6
|
import type { BadgeType } from './navmenuitem.types';
|
|
7
7
|
/**
|
|
8
|
-
* `mdc-navmenuitem` is a menuitem styled
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
8
|
+
* `mdc-navmenuitem` is a `menuitem`-role component styled as a navigation tab, supporting a leading icon, optional badge, and dynamic text rendering. It can operate as a simple item, as a parent with a flyout submenu (`mdc-menupopover`), or as a parent with an inline dropdown submenu, and a tooltip can be attached for collapsed states or when a nested child is active.
|
|
9
|
+
*
|
|
10
|
+
* **When to use**
|
|
11
|
+
*
|
|
12
|
+
* - Use `mdc-navmenuitem` for primary navigation entries inside `mdc-sidenavigation` (or an `mdc-menubar` used as a side navigation tree).
|
|
13
|
+
* - Use the active/inactive state to reflect which destination corresponds to the current route or view.
|
|
14
|
+
*
|
|
15
|
+
* **When not to use**
|
|
16
|
+
*
|
|
17
|
+
* - Do not use `mdc-navmenuitem` for action menu items inside `mdc-menupopover`; use `mdc-menuitem`, `mdc-menuitemcheckbox`, or `mdc-menuitemradio` there.
|
|
18
|
+
* - Do not use it as a stand-alone link or button outside a navigation context — use `mdc-link` or `mdc-button` instead.
|
|
19
|
+
*
|
|
19
20
|
* @tagname mdc-navmenuitem
|
|
20
|
-
*
|
|
21
|
+
*
|
|
21
22
|
* @dependency mdc-icon
|
|
22
23
|
* @dependency mdc-text
|
|
23
24
|
* @dependency mdc-badge
|
|
24
25
|
* @dependency mdc-tooltip
|
|
25
|
-
*
|
|
26
|
+
*
|
|
26
27
|
* @event click - (React: onClick) This event is dispatched when the navmenuitem is clicked.
|
|
27
28
|
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the navmenuitem.
|
|
28
29
|
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the navmenuitem.
|
|
29
30
|
* @event focus - (React: onFocus) This event is dispatched when the navmenuitem receives focus.
|
|
30
31
|
* @event activechange - (React: onActiveChange) Dispatched when the active state of the navmenuitem changes.
|
|
31
|
-
*
|
|
32
|
+
*
|
|
32
33
|
* @cssproperty --mdc-navmenuitem-in-sidenav-expanded-width - Width of the navmenuitem when expanded.
|
|
33
34
|
* @cssproperty --mdc-navmenuitem-in-sidenav-expanded-margin-left - Left margin of the navmenuitem, when expanded.
|
|
34
35
|
* @cssproperty --mdc-navmenuitem-in-sidenav-expanded-margin-right - Right margin of the navmenuitem, when expanded.
|
|
@@ -36,6 +37,7 @@ import type { BadgeType } from './navmenuitem.types';
|
|
|
36
37
|
* @cssproperty --mdc-navmenuitem-in-sidenav-collapsed-margin-left - Left margin of the navmenuitem, when collapsed.
|
|
37
38
|
* @cssproperty --mdc-navmenuitem-in-sidenav-collapsed-margin-right - Right margin of the navmenuitem, when collapsed.
|
|
38
39
|
* @cssproperty --mdc-navmenuitem-color - Text color of the navmenuitem in its normal state.
|
|
40
|
+
* @cssproperty --mdc-navmenuitem-notch-color - Notch color of the navmenuitem (if applicable) when active.
|
|
39
41
|
* @cssproperty --mdc-navmenuitem-disabled-color - Text color of the navmenuitem when disabled.
|
|
40
42
|
* @cssproperty --mdc-navmenuitem-rest-active-background-color - Background color of the active nav item in its rest state.
|
|
41
43
|
* @cssproperty --mdc-navmenuitem-hover-background-color - Background color of the navmenuitem when hovered.
|
|
@@ -44,12 +46,13 @@ import type { BadgeType } from './navmenuitem.types';
|
|
|
44
46
|
* @cssproperty --mdc-navmenuitem-pressed-active-background-color - Background color of the active navmenuitem when pressed.
|
|
45
47
|
* @cssproperty --mdc-navmenuitem-disabled-background-color - Background color of the navmenuitem when disabled.
|
|
46
48
|
* @cssproperty --mdc-navmenuitem-disabled-active-background-color - Background color of the active navmenuitem when disabled.
|
|
47
|
-
*
|
|
49
|
+
*
|
|
48
50
|
* @csspart arrow - The arrow of the navmenuitem.
|
|
49
51
|
* @csspart badge - The badge of the navmenuitem.
|
|
50
52
|
* @csspart icon-container - The container of the icon.
|
|
51
53
|
* @csspart text-container - The container of the text.
|
|
52
|
-
* @csspart trailing-arrow - The trailing arrow of the navmenuitem.
|
|
54
|
+
* @csspart trailing-arrow - The trailing arrow of the navmenuitem when it has a flyout menu.
|
|
55
|
+
* @csspart trailing-arrow-dropdown - The trailing arrow of the navmenuitem when it has a dropdown menu.
|
|
53
56
|
*/
|
|
54
57
|
declare class NavMenuItem extends MenuItem {
|
|
55
58
|
/**
|
|
@@ -166,6 +169,11 @@ declare class NavMenuItem extends MenuItem {
|
|
|
166
169
|
* @internal
|
|
167
170
|
*/
|
|
168
171
|
hasActiveChild: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* Tracks whether the dropdown submenu controlled by this navmenuitem is currently open.
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
private dropdownOpen;
|
|
169
177
|
/**
|
|
170
178
|
* @internal
|
|
171
179
|
*/
|
|
@@ -183,6 +191,11 @@ declare class NavMenuItem extends MenuItem {
|
|
|
183
191
|
* This method assumes nesting implies deeper levels of nav hierarchy.
|
|
184
192
|
*/
|
|
185
193
|
private isNested;
|
|
194
|
+
/**
|
|
195
|
+
* Check whether the navmenuitem is inside a dropdown container (div[data-trigger]).
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
private isInsideDropdownContainer;
|
|
186
199
|
/**
|
|
187
200
|
* Dispatch the activechange event.
|
|
188
201
|
* @internal
|
|
@@ -190,6 +203,24 @@ declare class NavMenuItem extends MenuItem {
|
|
|
190
203
|
*/
|
|
191
204
|
private emitNavMenuItemActiveChange;
|
|
192
205
|
private handleClickEvent;
|
|
206
|
+
/**
|
|
207
|
+
* Toggles the visibility of the dropdown container associated with this navmenuitem.
|
|
208
|
+
* @internal
|
|
209
|
+
*/
|
|
210
|
+
private toggleDropdown;
|
|
211
|
+
/**
|
|
212
|
+
* Opens the dropdown if it is closed.
|
|
213
|
+
*/
|
|
214
|
+
openDropdown(): void;
|
|
215
|
+
/**
|
|
216
|
+
* Closes the dropdown if it is open.
|
|
217
|
+
*/
|
|
218
|
+
closeDropdown(): void;
|
|
219
|
+
/**
|
|
220
|
+
* Returns the sibling div[data-trigger] element associated with this navmenuitem.
|
|
221
|
+
* @internal
|
|
222
|
+
*/
|
|
223
|
+
private getDropdownContainer;
|
|
193
224
|
private getFilledIconName;
|
|
194
225
|
private renderBadge;
|
|
195
226
|
render(): TemplateResult<1>;
|