@sekiui/elements 0.0.81 → 0.0.83
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/cdn/p-BgtjDG0h.js +45 -0
- package/dist/cdn/{p-BgpxFAwm.js → p-BuBiWSGh.js} +18 -3
- package/dist/cdn/{p-o_nleCju.js → p-Cs0DgQw5.js} +25 -8
- package/dist/cdn/p-D50kwTtW.js +160 -0
- package/dist/cdn/p-DuJp0Kp6.js +63 -0
- package/dist/cdn/seki-accordion-content.js +10 -8
- package/dist/cdn/seki-accordion-item.js +12 -10
- package/dist/cdn/seki-accordion-trigger.js +12 -10
- package/dist/cdn/seki-alert-dialog-action.js +1 -1
- package/dist/cdn/seki-alert-dialog-cancel.js +1 -1
- package/dist/cdn/seki-alert-dialog-content.js +23 -21
- package/dist/cdn/seki-alert-dialog.js +1 -1
- package/dist/cdn/seki-button.js +1 -1
- package/dist/cdn/seki-calendar.js +1 -1
- package/dist/cdn/seki-carousel-dots.js +3 -3
- package/dist/cdn/seki-carousel-next.js +3 -3
- package/dist/cdn/seki-carousel-previous.js +3 -3
- package/dist/cdn/seki-carousel.js +22 -4
- package/dist/cdn/seki-collapsible-content.js +9 -5
- package/dist/cdn/seki-combobox-item.js +9 -2
- package/dist/cdn/seki-command-group.js +9 -7
- package/dist/cdn/seki-context-menu-content.js +17 -15
- package/dist/cdn/seki-context-menu.js +11 -2
- package/dist/cdn/seki-data-table.js +19 -16
- package/dist/cdn/seki-date-picker.js +1 -1
- package/dist/cdn/seki-dialog-content.js +23 -21
- package/dist/cdn/seki-dialog-overlay.js +10 -8
- package/dist/cdn/seki-dialog.js +1 -1
- package/dist/cdn/seki-dropdown-menu-content.js +23 -68
- package/dist/cdn/seki-dropdown-menu-radio.js +11 -9
- package/dist/cdn/seki-dropdown-menu-trigger.js +11 -9
- package/dist/cdn/seki-dropdown-menu.js +11 -2
- package/dist/cdn/seki-menubar-content.js +24 -42
- package/dist/cdn/seki-menubar-radio.js +11 -9
- package/dist/cdn/seki-menubar-trigger.js +12 -10
- package/dist/cdn/seki-menubar.js +11 -2
- package/dist/cdn/seki-navigation-menu-content.js +8 -3
- package/dist/cdn/seki-navigation-menu-item.js +2 -2
- package/dist/cdn/seki-navigation-menu-link.js +8 -3
- package/dist/cdn/seki-navigation-menu-list.js +7 -2
- package/dist/cdn/seki-navigation-menu-trigger.js +3 -3
- package/dist/cdn/seki-navigation-menu.js +5 -5
- package/dist/cdn/seki-popover-content.js +20 -65
- package/dist/cdn/seki-popover.js +13 -3
- package/dist/cdn/seki-scroll-bar.js +6 -2
- package/dist/cdn/seki-select-option.js +29 -13
- package/dist/cdn/seki-select.js +79 -33
- package/dist/cdn/seki-sidebar-menu-sub.js +17 -16
- package/dist/cdn/seki-sidebar-provider.js +13 -4
- package/dist/cdn/seki-sidebar-rail.js +7 -2
- package/dist/cdn/seki-slider.js +36 -4
- package/dist/cdn/seki-spinner.js +2 -2
- package/dist/cdn/seki-table-body.js +1 -1
- package/dist/cdn/seki-table-caption.js +1 -1
- package/dist/cdn/seki-table-footer.js +1 -1
- package/dist/cdn/seki-table-header.js +1 -1
- package/dist/cdn/seki-table-row.js +2 -2
- package/dist/cdn/seki-table.js +1 -1
- package/dist/cdn/seki-tabs-content.js +12 -10
- package/dist/cdn/seki-tabs-list.js +2 -2
- package/dist/cdn/seki-tabs-trigger.js +12 -10
- package/dist/cdn/seki-tabs.js +2 -2
- package/dist/cdn/seki-textarea.js +1 -1
- package/dist/cdn/seki-toggle-group.js +1 -1
- package/dist/cdn/seki-toggle.js +1 -1
- package/dist/cdn/seki-tooltip.js +16 -3
- package/dist/cjs/ancestor-attrs-CnUfqtWw.js +47 -0
- package/dist/cjs/focus-trap-CFl79SjZ.js +165 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/positioning-LQZBWMS6.js +65 -0
- package/dist/cjs/seki-accordion-content.cjs.entry.js +10 -8
- package/dist/cjs/seki-accordion-item.cjs.entry.js +12 -10
- package/dist/cjs/seki-accordion-trigger.cjs.entry.js +12 -10
- package/dist/cjs/seki-alert-dialog-action.cjs.entry.js +1 -1
- package/dist/cjs/seki-alert-dialog-cancel.cjs.entry.js +1 -1
- package/dist/cjs/seki-alert-dialog-content.cjs.entry.js +23 -21
- package/dist/cjs/seki-button.cjs.entry.js +1 -1
- package/dist/cjs/seki-calendar.cjs.entry.js +25 -8
- package/dist/cjs/seki-carousel-dots.cjs.entry.js +3 -3
- package/dist/cjs/seki-carousel-next.cjs.entry.js +3 -3
- package/dist/cjs/seki-carousel-previous.cjs.entry.js +3 -3
- package/dist/cjs/seki-carousel.cjs.entry.js +22 -4
- package/dist/cjs/seki-collapsible-content.cjs.entry.js +9 -5
- package/dist/cjs/seki-combobox-item.cjs.entry.js +9 -2
- package/dist/cjs/seki-command-group.cjs.entry.js +9 -7
- package/dist/cjs/seki-context-menu-content.cjs.entry.js +17 -15
- package/dist/cjs/seki-context-menu.cjs.entry.js +11 -2
- package/dist/cjs/seki-data-table.cjs.entry.js +19 -16
- package/dist/cjs/seki-dialog-content.cjs.entry.js +23 -21
- package/dist/cjs/seki-dialog-overlay.cjs.entry.js +10 -8
- package/dist/cjs/seki-dialog.cjs.entry.js +15 -2
- package/dist/cjs/seki-dropdown-menu-content.cjs.entry.js +23 -68
- package/dist/cjs/seki-dropdown-menu-radio.cjs.entry.js +11 -9
- package/dist/cjs/seki-dropdown-menu-trigger.cjs.entry.js +11 -9
- package/dist/cjs/seki-dropdown-menu.cjs.entry.js +11 -2
- package/dist/cjs/seki-menubar-content.cjs.entry.js +24 -42
- package/dist/cjs/seki-menubar-radio.cjs.entry.js +11 -9
- package/dist/cjs/seki-menubar-trigger.cjs.entry.js +12 -10
- package/dist/cjs/seki-menubar.cjs.entry.js +11 -2
- package/dist/cjs/seki-navigation-menu-content.cjs.entry.js +8 -3
- package/dist/cjs/seki-navigation-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/seki-navigation-menu-link.cjs.entry.js +8 -3
- package/dist/cjs/seki-navigation-menu-list.cjs.entry.js +7 -2
- package/dist/cjs/seki-navigation-menu-trigger.cjs.entry.js +3 -3
- package/dist/cjs/seki-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/seki-popover-content.cjs.entry.js +20 -65
- package/dist/cjs/seki-popover.cjs.entry.js +13 -3
- package/dist/cjs/seki-scroll-bar.cjs.entry.js +6 -2
- package/dist/cjs/seki-select-option.cjs.entry.js +29 -13
- package/dist/cjs/seki-select.cjs.entry.js +81 -30
- package/dist/cjs/seki-sidebar-menu-sub.cjs.entry.js +17 -16
- package/dist/cjs/seki-sidebar-provider.cjs.entry.js +13 -4
- package/dist/cjs/seki-sidebar-rail.cjs.entry.js +7 -2
- package/dist/cjs/seki-slider.cjs.entry.js +36 -1
- package/dist/cjs/seki-spinner.cjs.entry.js +2 -2
- package/dist/cjs/seki-table-body.cjs.entry.js +1 -1
- package/dist/cjs/seki-table-caption.cjs.entry.js +1 -1
- package/dist/cjs/seki-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/seki-table-header.cjs.entry.js +1 -1
- package/dist/cjs/seki-table-row.cjs.entry.js +2 -2
- package/dist/cjs/seki-table.cjs.entry.js +1 -1
- package/dist/cjs/seki-tabs-content.cjs.entry.js +12 -10
- package/dist/cjs/seki-tabs-list.cjs.entry.js +2 -2
- package/dist/cjs/seki-tabs-trigger.cjs.entry.js +12 -10
- package/dist/cjs/seki-tabs.cjs.entry.js +2 -2
- package/dist/cjs/seki-textarea.cjs.entry.js +1 -1
- package/dist/cjs/seki-toggle-group.cjs.entry.js +1 -1
- package/dist/cjs/seki-toggle.cjs.entry.js +1 -1
- package/dist/cjs/seki-tooltip.cjs.entry.js +16 -3
- package/dist/cjs/sekiui.cjs.js +1 -1
- package/dist/collection/components/accordion/seki-accordion-content.js +10 -8
- package/dist/collection/components/accordion/seki-accordion-item.js +12 -10
- package/dist/collection/components/accordion/seki-accordion-trigger.js +12 -10
- package/dist/collection/components/alert-dialog/seki-alert-dialog-action.css +5 -5
- package/dist/collection/components/alert-dialog/seki-alert-dialog-cancel.css +4 -4
- package/dist/collection/components/alert-dialog/seki-alert-dialog-content.js +22 -20
- package/dist/collection/components/button/seki-button.css +9 -9
- package/dist/collection/components/calendar/seki-calendar.js +14 -5
- package/dist/collection/components/carousel/seki-carousel-dots.js +3 -3
- package/dist/collection/components/carousel/seki-carousel-next.js +3 -3
- package/dist/collection/components/carousel/seki-carousel-previous.js +3 -3
- package/dist/collection/components/carousel/seki-carousel.js +22 -4
- package/dist/collection/components/collapsible/seki-collapsible-content.js +9 -5
- package/dist/collection/components/combobox-item/seki-combobox-item.js +9 -2
- package/dist/collection/components/command/seki-command-group.js +9 -7
- package/dist/collection/components/context-menu/seki-context-menu-content.js +17 -15
- package/dist/collection/components/context-menu/seki-context-menu.js +11 -2
- package/dist/collection/components/data-table/seki-data-table.css +5 -5
- package/dist/collection/components/data-table/seki-data-table.js +18 -15
- package/dist/collection/components/dialog/seki-dialog-content.js +22 -20
- package/dist/collection/components/dialog/seki-dialog-overlay.js +10 -8
- package/dist/collection/components/dialog/seki-dialog.js +17 -1
- package/dist/collection/components/dropdown-menu/seki-dropdown-menu-content.js +23 -68
- package/dist/collection/components/dropdown-menu/seki-dropdown-menu-radio.js +11 -9
- package/dist/collection/components/dropdown-menu/seki-dropdown-menu-trigger.js +11 -9
- package/dist/collection/components/dropdown-menu/seki-dropdown-menu.js +11 -2
- package/dist/collection/components/menubar/seki-menubar-content.js +24 -42
- package/dist/collection/components/menubar/seki-menubar-radio.js +11 -9
- package/dist/collection/components/menubar/seki-menubar-trigger.js +12 -10
- package/dist/collection/components/menubar/seki-menubar.js +11 -2
- package/dist/collection/components/navigation-menu/seki-navigation-menu-content.css +1 -1
- package/dist/collection/components/navigation-menu/seki-navigation-menu-content.js +7 -2
- package/dist/collection/components/navigation-menu/seki-navigation-menu-item.js +2 -2
- package/dist/collection/components/navigation-menu/seki-navigation-menu-link.css +1 -1
- package/dist/collection/components/navigation-menu/seki-navigation-menu-link.js +7 -2
- package/dist/collection/components/navigation-menu/seki-navigation-menu-list.css +1 -1
- package/dist/collection/components/navigation-menu/seki-navigation-menu-list.js +6 -1
- package/dist/collection/components/navigation-menu/seki-navigation-menu-trigger.js +3 -3
- package/dist/collection/components/navigation-menu/seki-navigation-menu.js +5 -5
- package/dist/collection/components/popover/seki-popover-content.js +20 -65
- package/dist/collection/components/popover/seki-popover.js +13 -3
- package/dist/collection/components/scroll-area/seki-scroll-bar.css +5 -5
- package/dist/collection/components/scroll-area/seki-scroll-bar.js +5 -1
- package/dist/collection/components/select/seki-select.js +77 -30
- package/dist/collection/components/select-option/seki-select-option.js +29 -13
- package/dist/collection/components/sidebar/seki-sidebar-menu-sub.js +17 -16
- package/dist/collection/components/sidebar/seki-sidebar-provider.js +13 -4
- package/dist/collection/components/sidebar/seki-sidebar-rail.css +6 -6
- package/dist/collection/components/sidebar/seki-sidebar-rail.js +6 -1
- package/dist/collection/components/slider/seki-slider.js +36 -2
- package/dist/collection/components/spinner/seki-spinner.js +2 -2
- package/dist/collection/components/table/seki-table-body.js +1 -1
- package/dist/collection/components/table/seki-table-caption.js +1 -1
- package/dist/collection/components/table/seki-table-footer.js +1 -1
- package/dist/collection/components/table/seki-table-header.js +1 -1
- package/dist/collection/components/table/seki-table-row.js +2 -2
- package/dist/collection/components/table/seki-table.js +1 -1
- package/dist/collection/components/tabs/seki-tabs-content.js +12 -10
- package/dist/collection/components/tabs/seki-tabs-list.js +2 -2
- package/dist/collection/components/tabs/seki-tabs-trigger.js +12 -10
- package/dist/collection/components/tabs/seki-tabs.js +2 -2
- package/dist/collection/components/textarea/seki-textarea.js +1 -1
- package/dist/collection/components/toggle/seki-toggle.js +1 -1
- package/dist/collection/components/toggle-group/seki-toggle-group.js +1 -1
- package/dist/collection/components/tooltip/seki-tooltip.js +16 -3
- package/dist/collection/utils/ancestor-attrs.js +43 -0
- package/dist/collection/utils/calendar/date-utils.js +12 -4
- package/dist/collection/utils/dialog/focus-trap.js +110 -21
- package/dist/collection/utils/positioning.js +61 -0
- package/dist/components/p-BgtjDG0h.js +45 -0
- package/dist/components/{p-tgCyk_Am.js → p-C87BOunl.js} +18 -3
- package/dist/components/p-D50kwTtW.js +160 -0
- package/dist/components/{p-DKbSEP4m.js → p-DFfIiiRa.js} +25 -8
- package/dist/components/p-DuJp0Kp6.js +63 -0
- package/dist/components/seki-accordion-content.js +10 -8
- package/dist/components/seki-accordion-item.js +12 -10
- package/dist/components/seki-accordion-trigger.js +12 -10
- package/dist/components/seki-alert-dialog-action.js +1 -1
- package/dist/components/seki-alert-dialog-cancel.js +1 -1
- package/dist/components/seki-alert-dialog-content.js +23 -21
- package/dist/components/seki-alert-dialog.js +1 -1
- package/dist/components/seki-button.js +1 -1
- package/dist/components/seki-calendar.js +1 -1
- package/dist/components/seki-carousel-dots.js +3 -3
- package/dist/components/seki-carousel-next.js +3 -3
- package/dist/components/seki-carousel-previous.js +3 -3
- package/dist/components/seki-carousel.js +22 -4
- package/dist/components/seki-collapsible-content.js +9 -5
- package/dist/components/seki-combobox-item.js +9 -2
- package/dist/components/seki-command-group.js +9 -7
- package/dist/components/seki-context-menu-content.js +17 -15
- package/dist/components/seki-context-menu.js +11 -2
- package/dist/components/seki-data-table.js +19 -16
- package/dist/components/seki-date-picker.js +1 -1
- package/dist/components/seki-dialog-content.js +23 -21
- package/dist/components/seki-dialog-overlay.js +10 -8
- package/dist/components/seki-dialog.js +1 -1
- package/dist/components/seki-dropdown-menu-content.js +23 -68
- package/dist/components/seki-dropdown-menu-radio.js +11 -9
- package/dist/components/seki-dropdown-menu-trigger.js +11 -9
- package/dist/components/seki-dropdown-menu.js +11 -2
- package/dist/components/seki-menubar-content.js +24 -42
- package/dist/components/seki-menubar-radio.js +11 -9
- package/dist/components/seki-menubar-trigger.js +12 -10
- package/dist/components/seki-menubar.js +11 -2
- package/dist/components/seki-navigation-menu-content.js +8 -3
- package/dist/components/seki-navigation-menu-item.js +2 -2
- package/dist/components/seki-navigation-menu-link.js +8 -3
- package/dist/components/seki-navigation-menu-list.js +7 -2
- package/dist/components/seki-navigation-menu-trigger.js +3 -3
- package/dist/components/seki-navigation-menu.js +5 -5
- package/dist/components/seki-popover-content.js +20 -65
- package/dist/components/seki-popover.js +13 -3
- package/dist/components/seki-scroll-bar.js +6 -2
- package/dist/components/seki-select-option.js +29 -13
- package/dist/components/seki-select.js +79 -33
- package/dist/components/seki-sidebar-menu-sub.js +17 -16
- package/dist/components/seki-sidebar-provider.js +13 -4
- package/dist/components/seki-sidebar-rail.js +7 -2
- package/dist/components/seki-slider.js +36 -4
- package/dist/components/seki-spinner.js +2 -2
- package/dist/components/seki-table-body.js +1 -1
- package/dist/components/seki-table-caption.js +1 -1
- package/dist/components/seki-table-footer.js +1 -1
- package/dist/components/seki-table-header.js +1 -1
- package/dist/components/seki-table-row.js +2 -2
- package/dist/components/seki-table.js +1 -1
- package/dist/components/seki-tabs-content.js +12 -10
- package/dist/components/seki-tabs-list.js +2 -2
- package/dist/components/seki-tabs-trigger.js +12 -10
- package/dist/components/seki-tabs.js +2 -2
- package/dist/components/seki-textarea.js +1 -1
- package/dist/components/seki-toggle-group.js +1 -1
- package/dist/components/seki-toggle.js +1 -1
- package/dist/components/seki-tooltip.js +16 -3
- package/dist/esm/ancestor-attrs-BgtjDG0h.js +45 -0
- package/dist/esm/focus-trap-D50kwTtW.js +160 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/positioning-DuJp0Kp6.js +63 -0
- package/dist/esm/seki-accordion-content.entry.js +10 -8
- package/dist/esm/seki-accordion-item.entry.js +12 -10
- package/dist/esm/seki-accordion-trigger.entry.js +12 -10
- package/dist/esm/seki-alert-dialog-action.entry.js +1 -1
- package/dist/esm/seki-alert-dialog-cancel.entry.js +1 -1
- package/dist/esm/seki-alert-dialog-content.entry.js +23 -21
- package/dist/esm/seki-button.entry.js +1 -1
- package/dist/esm/seki-calendar.entry.js +25 -8
- package/dist/esm/seki-carousel-dots.entry.js +3 -3
- package/dist/esm/seki-carousel-next.entry.js +3 -3
- package/dist/esm/seki-carousel-previous.entry.js +3 -3
- package/dist/esm/seki-carousel.entry.js +22 -4
- package/dist/esm/seki-collapsible-content.entry.js +9 -5
- package/dist/esm/seki-combobox-item.entry.js +9 -2
- package/dist/esm/seki-command-group.entry.js +9 -7
- package/dist/esm/seki-context-menu-content.entry.js +17 -15
- package/dist/esm/seki-context-menu.entry.js +11 -2
- package/dist/esm/seki-data-table.entry.js +19 -16
- package/dist/esm/seki-dialog-content.entry.js +23 -21
- package/dist/esm/seki-dialog-overlay.entry.js +10 -8
- package/dist/esm/seki-dialog.entry.js +15 -2
- package/dist/esm/seki-dropdown-menu-content.entry.js +23 -68
- package/dist/esm/seki-dropdown-menu-radio.entry.js +11 -9
- package/dist/esm/seki-dropdown-menu-trigger.entry.js +11 -9
- package/dist/esm/seki-dropdown-menu.entry.js +11 -2
- package/dist/esm/seki-menubar-content.entry.js +24 -42
- package/dist/esm/seki-menubar-radio.entry.js +11 -9
- package/dist/esm/seki-menubar-trigger.entry.js +12 -10
- package/dist/esm/seki-menubar.entry.js +11 -2
- package/dist/esm/seki-navigation-menu-content.entry.js +8 -3
- package/dist/esm/seki-navigation-menu-item.entry.js +2 -2
- package/dist/esm/seki-navigation-menu-link.entry.js +8 -3
- package/dist/esm/seki-navigation-menu-list.entry.js +7 -2
- package/dist/esm/seki-navigation-menu-trigger.entry.js +3 -3
- package/dist/esm/seki-navigation-menu.entry.js +5 -5
- package/dist/esm/seki-popover-content.entry.js +20 -65
- package/dist/esm/seki-popover.entry.js +13 -3
- package/dist/esm/seki-scroll-bar.entry.js +6 -2
- package/dist/esm/seki-select-option.entry.js +29 -13
- package/dist/esm/seki-select.entry.js +81 -30
- package/dist/esm/seki-sidebar-menu-sub.entry.js +17 -16
- package/dist/esm/seki-sidebar-provider.entry.js +13 -4
- package/dist/esm/seki-sidebar-rail.entry.js +7 -2
- package/dist/esm/seki-slider.entry.js +36 -1
- package/dist/esm/seki-spinner.entry.js +2 -2
- package/dist/esm/seki-table-body.entry.js +1 -1
- package/dist/esm/seki-table-caption.entry.js +1 -1
- package/dist/esm/seki-table-footer.entry.js +1 -1
- package/dist/esm/seki-table-header.entry.js +1 -1
- package/dist/esm/seki-table-row.entry.js +2 -2
- package/dist/esm/seki-table.entry.js +1 -1
- package/dist/esm/seki-tabs-content.entry.js +12 -10
- package/dist/esm/seki-tabs-list.entry.js +2 -2
- package/dist/esm/seki-tabs-trigger.entry.js +12 -10
- package/dist/esm/seki-tabs.entry.js +2 -2
- package/dist/esm/seki-textarea.entry.js +1 -1
- package/dist/esm/seki-toggle-group.entry.js +1 -1
- package/dist/esm/seki-toggle.entry.js +1 -1
- package/dist/esm/seki-tooltip.entry.js +16 -3
- package/dist/esm/sekiui.js +1 -1
- package/dist/sekiui/{p-40458a33.entry.js → p-01420aec.entry.js} +1 -1
- package/dist/sekiui/{p-9643e1d8.entry.js → p-021cb880.entry.js} +1 -1
- package/dist/sekiui/p-0ab43c7f.entry.js +1 -0
- package/dist/sekiui/p-14b6774a.entry.js +1 -0
- package/dist/sekiui/{p-d02efcf2.entry.js → p-1b8d2288.entry.js} +1 -1
- package/dist/sekiui/{p-67fffcd0.entry.js → p-1eb709fb.entry.js} +1 -1
- package/dist/sekiui/{p-24ea0d3d.entry.js → p-2de73747.entry.js} +1 -1
- package/dist/sekiui/p-32569d7d.entry.js +1 -0
- package/dist/sekiui/p-367d9a7f.entry.js +1 -0
- package/dist/sekiui/p-40c40d4f.entry.js +1 -0
- package/dist/sekiui/p-4572d290.entry.js +1 -0
- package/dist/sekiui/p-49024e9e.entry.js +1 -0
- package/dist/sekiui/{p-0c2344d1.entry.js → p-4bf8c2fa.entry.js} +1 -1
- package/dist/sekiui/p-4e60d2d0.entry.js +1 -0
- package/dist/sekiui/{p-5a853b23.entry.js → p-51b11242.entry.js} +1 -1
- package/dist/sekiui/{p-541f1dbb.entry.js → p-57e7685a.entry.js} +1 -1
- package/dist/sekiui/p-677a1751.entry.js +1 -0
- package/dist/sekiui/{p-66b1c2ac.entry.js → p-695a4986.entry.js} +1 -1
- package/dist/sekiui/p-71f6da8b.entry.js +1 -0
- package/dist/sekiui/{p-96073eae.entry.js → p-75d46bc7.entry.js} +1 -1
- package/dist/sekiui/p-7cd76bbb.entry.js +1 -0
- package/dist/sekiui/p-80b79cc0.entry.js +1 -0
- package/dist/sekiui/p-835f723b.entry.js +1 -0
- package/dist/sekiui/p-851d1c50.entry.js +1 -0
- package/dist/sekiui/{p-b664489e.entry.js → p-887b559d.entry.js} +1 -1
- package/dist/sekiui/{p-7bf379c4.entry.js → p-8c369957.entry.js} +1 -1
- package/dist/sekiui/{p-41f5488e.entry.js → p-8c57364a.entry.js} +1 -1
- package/dist/sekiui/p-8d888e3d.entry.js +1 -0
- package/dist/sekiui/{p-4c1b29de.entry.js → p-92b0241d.entry.js} +1 -1
- package/dist/sekiui/{p-fc6d6133.entry.js → p-966b2358.entry.js} +1 -1
- package/dist/sekiui/p-9a00c59c.entry.js +1 -0
- package/dist/sekiui/{p-b14ba603.entry.js → p-9af630c4.entry.js} +1 -1
- package/dist/sekiui/p-BgtjDG0h.js +1 -0
- package/dist/sekiui/p-D50kwTtW.js +1 -0
- package/dist/sekiui/p-DuJp0Kp6.js +1 -0
- package/dist/sekiui/p-a29160bc.entry.js +1 -0
- package/dist/sekiui/p-a6ae5c4b.entry.js +1 -0
- package/dist/sekiui/{p-c1bf976b.entry.js → p-b0d1e077.entry.js} +1 -1
- package/dist/sekiui/{p-73cbd067.entry.js → p-b2a60e91.entry.js} +1 -1
- package/dist/sekiui/{p-a5edaf79.entry.js → p-b43f9720.entry.js} +1 -1
- package/dist/sekiui/p-b5c242a0.entry.js +1 -0
- package/dist/sekiui/{p-d5b616c5.entry.js → p-bac67676.entry.js} +1 -1
- package/dist/sekiui/p-bc611a3d.entry.js +1 -0
- package/dist/sekiui/p-c004f467.entry.js +1 -0
- package/dist/sekiui/{p-41fae140.entry.js → p-cb657adb.entry.js} +1 -1
- package/dist/sekiui/{p-fa9a68be.entry.js → p-cfac56e7.entry.js} +1 -1
- package/dist/sekiui/{p-bf52433b.entry.js → p-d1a06cbc.entry.js} +1 -1
- package/dist/sekiui/p-d1f6efac.entry.js +1 -0
- package/dist/sekiui/{p-67aaf0f1.entry.js → p-d4ed816d.entry.js} +1 -1
- package/dist/sekiui/p-eaf626e5.entry.js +1 -0
- package/dist/sekiui/p-ed9034e4.entry.js +1 -0
- package/dist/sekiui/p-edd02332.entry.js +1 -0
- package/dist/sekiui/{p-bd9d106a.entry.js → p-ee40575b.entry.js} +1 -1
- package/dist/sekiui/{p-8344563b.entry.js → p-ef3679b0.entry.js} +1 -1
- package/dist/sekiui/p-f07b430e.entry.js +1 -0
- package/dist/sekiui/p-f3c69359.entry.js +1 -0
- package/dist/sekiui/p-f53b37e2.entry.js +1 -0
- package/dist/sekiui/p-f587cd57.entry.js +1 -0
- package/dist/sekiui/p-f7e1fdf0.entry.js +1 -0
- package/dist/sekiui/p-fb1370a9.entry.js +1 -0
- package/dist/sekiui/p-fde2877f.entry.js +1 -0
- package/dist/sekiui/p-fed3a547.entry.js +1 -0
- package/dist/sekiui/sekiui.esm.js +1 -1
- package/dist/types/components/accordion/seki-accordion-content.d.ts +2 -0
- package/dist/types/components/accordion/seki-accordion-item.d.ts +2 -0
- package/dist/types/components/accordion/seki-accordion-trigger.d.ts +2 -0
- package/dist/types/components/alert-dialog/seki-alert-dialog-content.d.ts +2 -0
- package/dist/types/components/carousel/seki-carousel.d.ts +3 -0
- package/dist/types/components/collapsible/seki-collapsible-content.d.ts +2 -0
- package/dist/types/components/combobox-item/seki-combobox-item.d.ts +1 -0
- package/dist/types/components/command/seki-command-group.d.ts +2 -0
- package/dist/types/components/context-menu/seki-context-menu-content.d.ts +2 -0
- package/dist/types/components/context-menu/seki-context-menu.d.ts +1 -0
- package/dist/types/components/dialog/seki-dialog-content.d.ts +2 -0
- package/dist/types/components/dialog/seki-dialog-overlay.d.ts +2 -0
- package/dist/types/components/dialog/seki-dialog.d.ts +1 -0
- package/dist/types/components/dropdown-menu/seki-dropdown-menu-content.d.ts +2 -0
- package/dist/types/components/dropdown-menu/seki-dropdown-menu-radio.d.ts +2 -0
- package/dist/types/components/dropdown-menu/seki-dropdown-menu-trigger.d.ts +2 -0
- package/dist/types/components/dropdown-menu/seki-dropdown-menu.d.ts +1 -0
- package/dist/types/components/menubar/seki-menubar-content.d.ts +2 -0
- package/dist/types/components/menubar/seki-menubar-radio.d.ts +2 -0
- package/dist/types/components/menubar/seki-menubar-trigger.d.ts +2 -0
- package/dist/types/components/menubar/seki-menubar.d.ts +1 -0
- package/dist/types/components/navigation-menu/seki-navigation-menu-content.d.ts +1 -0
- package/dist/types/components/navigation-menu/seki-navigation-menu-link.d.ts +1 -0
- package/dist/types/components/navigation-menu/seki-navigation-menu-list.d.ts +1 -0
- package/dist/types/components/popover/seki-popover-content.d.ts +2 -0
- package/dist/types/components/popover/seki-popover.d.ts +1 -0
- package/dist/types/components/scroll-area/seki-scroll-bar.d.ts +1 -0
- package/dist/types/components/select/seki-select.d.ts +8 -1
- package/dist/types/components/select-option/seki-select-option.d.ts +3 -1
- package/dist/types/components/sidebar/seki-sidebar-menu-sub.d.ts +2 -0
- package/dist/types/components/sidebar/seki-sidebar-rail.d.ts +1 -0
- package/dist/types/components/slider/seki-slider.d.ts +9 -0
- package/dist/types/components/tabs/seki-tabs-content.d.ts +2 -0
- package/dist/types/components/tabs/seki-tabs-trigger.d.ts +2 -0
- package/dist/types/components/tooltip/seki-tooltip.d.ts +1 -0
- package/dist/types/components.d.ts +32 -32
- package/dist/types/utils/ancestor-attrs.d.ts +18 -0
- package/dist/types/utils/calendar/date-utils.d.ts +9 -0
- package/dist/types/utils/dialog/focus-trap.d.ts +18 -7
- package/dist/types/utils/positioning.d.ts +34 -0
- package/package.json +25 -2
- package/dist/cdn/p-CP7ZtKCE.js +0 -71
- package/dist/cjs/focus-trap-C7ukllRZ.js +0 -76
- package/dist/components/p-CP7ZtKCE.js +0 -71
- package/dist/esm/focus-trap-CP7ZtKCE.js +0 -71
- package/dist/sekiui/p-107bdce6.entry.js +0 -1
- package/dist/sekiui/p-2548d7c3.entry.js +0 -1
- package/dist/sekiui/p-307a0de3.entry.js +0 -1
- package/dist/sekiui/p-397fb20e.entry.js +0 -1
- package/dist/sekiui/p-3e01b3c9.entry.js +0 -1
- package/dist/sekiui/p-4617d9c5.entry.js +0 -1
- package/dist/sekiui/p-4896a497.entry.js +0 -1
- package/dist/sekiui/p-4a47ea19.entry.js +0 -1
- package/dist/sekiui/p-4b0ee9e5.entry.js +0 -1
- package/dist/sekiui/p-598f9c5b.entry.js +0 -1
- package/dist/sekiui/p-635ca5ab.entry.js +0 -1
- package/dist/sekiui/p-63b3a53c.entry.js +0 -1
- package/dist/sekiui/p-63ffc38a.entry.js +0 -1
- package/dist/sekiui/p-6416552b.entry.js +0 -1
- package/dist/sekiui/p-66b59a4c.entry.js +0 -1
- package/dist/sekiui/p-70f149c3.entry.js +0 -1
- package/dist/sekiui/p-79062829.entry.js +0 -1
- package/dist/sekiui/p-7bf7ee5f.entry.js +0 -1
- package/dist/sekiui/p-8067a8f3.entry.js +0 -1
- package/dist/sekiui/p-884bde18.entry.js +0 -1
- package/dist/sekiui/p-91d532fa.entry.js +0 -1
- package/dist/sekiui/p-95749f03.entry.js +0 -1
- package/dist/sekiui/p-9d5b807f.entry.js +0 -1
- package/dist/sekiui/p-CP7ZtKCE.js +0 -1
- package/dist/sekiui/p-ac321aeb.entry.js +0 -1
- package/dist/sekiui/p-adc3cfff.entry.js +0 -1
- package/dist/sekiui/p-b945fc54.entry.js +0 -1
- package/dist/sekiui/p-bdb2d304.entry.js +0 -1
- package/dist/sekiui/p-c0ce45c3.entry.js +0 -1
- package/dist/sekiui/p-d2951ab4.entry.js +0 -1
- package/dist/sekiui/p-db37e4d2.entry.js +0 -1
- package/dist/sekiui/p-e51d76de.entry.js +0 -1
- package/dist/sekiui/p-f0bb516d.entry.js +0 -1
- package/dist/sekiui/p-f82ead84.entry.js +0 -1
|
@@ -12,6 +12,11 @@ export class SekiDialogOverlay {
|
|
|
12
12
|
*/
|
|
13
13
|
this.closeOnClick = true;
|
|
14
14
|
this._isOpen = false;
|
|
15
|
+
this.onDialogOpenChange = () => {
|
|
16
|
+
var _a;
|
|
17
|
+
const context = this.getContext();
|
|
18
|
+
this._isOpen = (_a = context === null || context === void 0 ? void 0 : context.isOpen) !== null && _a !== void 0 ? _a : false;
|
|
19
|
+
};
|
|
15
20
|
this.handleClick = () => {
|
|
16
21
|
if (this.closeOnClick) {
|
|
17
22
|
this.closeDialog.emit();
|
|
@@ -29,21 +34,18 @@ export class SekiDialogOverlay {
|
|
|
29
34
|
this._isOpen = (_a = context === null || context === void 0 ? void 0 : context.isOpen) !== null && _a !== void 0 ? _a : false;
|
|
30
35
|
}
|
|
31
36
|
componentDidLoad() {
|
|
37
|
+
var _a, _b;
|
|
32
38
|
// Listen for context changes
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
dialog.addEventListener('sekiOpenChange', () => {
|
|
36
|
-
var _a;
|
|
37
|
-
const context = this.getContext();
|
|
38
|
-
this._isOpen = (_a = context === null || context === void 0 ? void 0 : context.isOpen) !== null && _a !== void 0 ? _a : false;
|
|
39
|
-
});
|
|
40
|
-
}
|
|
39
|
+
this.dialogEl = (_a = this.el.closest('seki-dialog')) !== null && _a !== void 0 ? _a : undefined;
|
|
40
|
+
(_b = this.dialogEl) === null || _b === void 0 ? void 0 : _b.addEventListener('sekiOpenChange', this.onDialogOpenChange);
|
|
41
41
|
}
|
|
42
42
|
connectedCallback() {
|
|
43
43
|
registerThemeSync(this.el);
|
|
44
44
|
}
|
|
45
45
|
disconnectedCallback() {
|
|
46
|
+
var _a;
|
|
46
47
|
unregisterThemeSync(this.el);
|
|
48
|
+
(_a = this.dialogEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('sekiOpenChange', this.onDialogOpenChange);
|
|
47
49
|
}
|
|
48
50
|
render() {
|
|
49
51
|
if (!this._isOpen) {
|
|
@@ -31,6 +31,16 @@ export class SekiDialog {
|
|
|
31
31
|
componentWillLoad() {
|
|
32
32
|
this._isOpen = this.open || this.defaultOpen;
|
|
33
33
|
}
|
|
34
|
+
handleOpenPropChange(newValue) {
|
|
35
|
+
// Honour controlled `open` updates after first render. Without this, setting
|
|
36
|
+
// dialog.open = true later did nothing (open was only read in componentWillLoad).
|
|
37
|
+
if (newValue && !this._isOpen) {
|
|
38
|
+
this.openDialog();
|
|
39
|
+
}
|
|
40
|
+
else if (!newValue && this._isOpen) {
|
|
41
|
+
this.closeDialog();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
34
44
|
get titleId() {
|
|
35
45
|
return `seki-dialog-title-${this.instanceId}`;
|
|
36
46
|
}
|
|
@@ -104,7 +114,7 @@ export class SekiDialog {
|
|
|
104
114
|
}
|
|
105
115
|
}
|
|
106
116
|
render() {
|
|
107
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: '185a05b13663a81dc152b76009f9befd201ec8db', "data-state": this._isOpen ? 'open' : 'closed' }, h("div", { key: 'b172f05f25d1ee05dc43e2b50e95a6c1c0e8ad60', part: "dialog", class: "dialog" }, h("slot", { key: '5d73235cd76ea9b95b793661940553bc0685ed96' }))));
|
|
108
118
|
}
|
|
109
119
|
static get is() { return "seki-dialog"; }
|
|
110
120
|
static get encapsulation() { return "shadow"; }
|
|
@@ -244,6 +254,12 @@ export class SekiDialog {
|
|
|
244
254
|
};
|
|
245
255
|
}
|
|
246
256
|
static get elementRef() { return "el"; }
|
|
257
|
+
static get watchers() {
|
|
258
|
+
return [{
|
|
259
|
+
"propName": "open",
|
|
260
|
+
"methodName": "handleOpenPropChange"
|
|
261
|
+
}];
|
|
262
|
+
}
|
|
247
263
|
static get listeners() {
|
|
248
264
|
return [{
|
|
249
265
|
"name": "sekiDialogTriggerClick",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { registerThemeSync, unregisterThemeSync } from "../../utils/theme-sync";
|
|
3
|
+
import { computeAnchoredPosition } from "../../utils/positioning";
|
|
3
4
|
/**
|
|
4
5
|
* Dropdown Menu content panel
|
|
5
6
|
*
|
|
@@ -9,6 +10,18 @@ import { registerThemeSync, unregisterThemeSync } from "../../utils/theme-sync";
|
|
|
9
10
|
*/
|
|
10
11
|
export class SekiDropdownMenuContent {
|
|
11
12
|
constructor() {
|
|
13
|
+
this.onMenuOpenChange = () => {
|
|
14
|
+
var _a;
|
|
15
|
+
const context = this.getContext();
|
|
16
|
+
this._isOpen = (_a = context === null || context === void 0 ? void 0 : context.isOpen) !== null && _a !== void 0 ? _a : false;
|
|
17
|
+
if (this._isOpen) {
|
|
18
|
+
this._focusedIndex = 0;
|
|
19
|
+
requestAnimationFrame(() => {
|
|
20
|
+
this.updatePosition();
|
|
21
|
+
this.focusItem(0);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
};
|
|
12
25
|
/**
|
|
13
26
|
* Offset from trigger
|
|
14
27
|
*/
|
|
@@ -33,21 +46,9 @@ export class SekiDropdownMenuContent {
|
|
|
33
46
|
this._isOpen = (_a = context === null || context === void 0 ? void 0 : context.isOpen) !== null && _a !== void 0 ? _a : false;
|
|
34
47
|
}
|
|
35
48
|
componentDidLoad() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var _a;
|
|
40
|
-
const context = this.getContext();
|
|
41
|
-
this._isOpen = (_a = context === null || context === void 0 ? void 0 : context.isOpen) !== null && _a !== void 0 ? _a : false;
|
|
42
|
-
if (this._isOpen) {
|
|
43
|
-
this._focusedIndex = 0;
|
|
44
|
-
requestAnimationFrame(() => {
|
|
45
|
-
this.updatePosition();
|
|
46
|
-
this.focusItem(0);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
49
|
+
var _a, _b;
|
|
50
|
+
this.menuEl = (_a = this.el.closest('seki-dropdown-menu')) !== null && _a !== void 0 ? _a : undefined;
|
|
51
|
+
(_b = this.menuEl) === null || _b === void 0 ? void 0 : _b.addEventListener('sekiOpenChange', this.onMenuOpenChange);
|
|
51
52
|
}
|
|
52
53
|
componentDidRender() {
|
|
53
54
|
if (this._isOpen) {
|
|
@@ -104,69 +105,23 @@ export class SekiDropdownMenuContent {
|
|
|
104
105
|
return;
|
|
105
106
|
const triggerRect = trigger.getBoundingClientRect();
|
|
106
107
|
const contentRect = this.contentRef.getBoundingClientRect();
|
|
107
|
-
const viewport = {
|
|
108
|
-
width: window.innerWidth,
|
|
109
|
-
height: window.innerHeight,
|
|
110
|
-
};
|
|
111
108
|
const context = this.getContext();
|
|
112
109
|
const side = (_b = (_a = this.side) !== null && _a !== void 0 ? _a : context === null || context === void 0 ? void 0 : context.side) !== null && _b !== void 0 ? _b : 'bottom';
|
|
113
110
|
const align = (_d = (_c = this.align) !== null && _c !== void 0 ? _c : context === null || context === void 0 ? void 0 : context.align) !== null && _d !== void 0 ? _d : 'start';
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
case 'top':
|
|
120
|
-
top = triggerRect.top - contentRect.height - offset;
|
|
121
|
-
break;
|
|
122
|
-
case 'bottom':
|
|
123
|
-
top = triggerRect.bottom + offset;
|
|
124
|
-
break;
|
|
125
|
-
case 'left':
|
|
126
|
-
left = triggerRect.left - contentRect.width - offset;
|
|
127
|
-
break;
|
|
128
|
-
case 'right':
|
|
129
|
-
left = triggerRect.right + offset;
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
// Align positioning
|
|
133
|
-
if (side === 'top' || side === 'bottom') {
|
|
134
|
-
switch (align) {
|
|
135
|
-
case 'start':
|
|
136
|
-
left = triggerRect.left;
|
|
137
|
-
break;
|
|
138
|
-
case 'center':
|
|
139
|
-
left = triggerRect.left + (triggerRect.width - contentRect.width) / 2;
|
|
140
|
-
break;
|
|
141
|
-
case 'end':
|
|
142
|
-
left = triggerRect.right - contentRect.width;
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
switch (align) {
|
|
148
|
-
case 'start':
|
|
149
|
-
top = triggerRect.top;
|
|
150
|
-
break;
|
|
151
|
-
case 'center':
|
|
152
|
-
top = triggerRect.top + (triggerRect.height - contentRect.height) / 2;
|
|
153
|
-
break;
|
|
154
|
-
case 'end':
|
|
155
|
-
top = triggerRect.bottom - contentRect.height;
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
// Viewport clamping
|
|
160
|
-
const margin = 8;
|
|
161
|
-
left = Math.max(margin, Math.min(left, viewport.width - contentRect.width - margin));
|
|
162
|
-
top = Math.max(margin, Math.min(top, viewport.height - contentRect.height - margin));
|
|
111
|
+
const { top, left } = computeAnchoredPosition(triggerRect, contentRect, {
|
|
112
|
+
side,
|
|
113
|
+
align,
|
|
114
|
+
sideOffset: this.sideOffset,
|
|
115
|
+
});
|
|
163
116
|
this._position = { top: `${top}px`, left: `${left}px` };
|
|
164
117
|
}
|
|
165
118
|
connectedCallback() {
|
|
166
119
|
registerThemeSync(this.el);
|
|
167
120
|
}
|
|
168
121
|
disconnectedCallback() {
|
|
122
|
+
var _a;
|
|
169
123
|
unregisterThemeSync(this.el);
|
|
124
|
+
(_a = this.menuEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('sekiOpenChange', this.onMenuOpenChange);
|
|
170
125
|
}
|
|
171
126
|
render() {
|
|
172
127
|
if (!this._isOpen) {
|
|
@@ -15,6 +15,10 @@ export class SekiDropdownMenuRadio {
|
|
|
15
15
|
*/
|
|
16
16
|
this.disabled = false;
|
|
17
17
|
this._isChecked = false;
|
|
18
|
+
this.onRadioGroupValueChange = () => {
|
|
19
|
+
const context = this.getContext();
|
|
20
|
+
this._isChecked = (context === null || context === void 0 ? void 0 : context.getValue()) === this.value;
|
|
21
|
+
};
|
|
18
22
|
this.handleClick = () => {
|
|
19
23
|
if (this.disabled)
|
|
20
24
|
return;
|
|
@@ -39,25 +43,23 @@ export class SekiDropdownMenuRadio {
|
|
|
39
43
|
this._isChecked = (context === null || context === void 0 ? void 0 : context.getValue()) === this.value;
|
|
40
44
|
}
|
|
41
45
|
componentDidLoad() {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const context = this.getContext();
|
|
46
|
-
this._isChecked = (context === null || context === void 0 ? void 0 : context.getValue()) === this.value;
|
|
47
|
-
});
|
|
48
|
-
}
|
|
46
|
+
var _a, _b;
|
|
47
|
+
this.radioGroupEl = (_a = this.el.closest('seki-dropdown-menu-radio-group')) !== null && _a !== void 0 ? _a : undefined;
|
|
48
|
+
(_b = this.radioGroupEl) === null || _b === void 0 ? void 0 : _b.addEventListener('sekiValueChange', this.onRadioGroupValueChange);
|
|
49
49
|
}
|
|
50
50
|
connectedCallback() {
|
|
51
51
|
registerThemeSync(this.el);
|
|
52
52
|
}
|
|
53
53
|
disconnectedCallback() {
|
|
54
|
+
var _a;
|
|
54
55
|
unregisterThemeSync(this.el);
|
|
56
|
+
(_a = this.radioGroupEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('sekiValueChange', this.onRadioGroupValueChange);
|
|
55
57
|
}
|
|
56
58
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '9b5c16b86989fe8cac562696569685288dd455d1' }, h("div", { key: 'c190e966f43a39ff4171e721a85f5fcc4ae530e5', part: "item", role: "menuitemradio", class: {
|
|
58
60
|
'dropdown-menu-radio': true,
|
|
59
61
|
'dropdown-menu-radio--disabled': this.disabled,
|
|
60
|
-
}, tabindex: this.disabled ? -1 : 0, "aria-checked": this._isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: '
|
|
62
|
+
}, tabindex: this.disabled ? -1 : 0, "aria-checked": this._isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: '6eb76b52b8148dfe5d8e0dc5c81476c7cf0871ce', part: "indicator", class: "dropdown-menu-radio__indicator" }, this._isChecked && (h("svg", { key: '3ec758d15aaa2ea3c267051169c5b16ac889084e', xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor" }, h("circle", { key: '6a18e381a0dc726fca24b2d5404064dd781fefaf', cx: "12", cy: "12", r: "4" })))), h("slot", { key: '894485165c5cf9c9b303c5faef47a130c7e7bbdf' }))));
|
|
61
63
|
}
|
|
62
64
|
static get is() { return "seki-dropdown-menu-radio"; }
|
|
63
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,6 +10,11 @@ import { registerThemeSync, unregisterThemeSync } from "../../utils/theme-sync";
|
|
|
10
10
|
export class SekiDropdownMenuTrigger {
|
|
11
11
|
constructor() {
|
|
12
12
|
this._isOpen = false;
|
|
13
|
+
this.onMenuOpenChange = () => {
|
|
14
|
+
var _a;
|
|
15
|
+
const context = this.getContext();
|
|
16
|
+
this._isOpen = (_a = context === null || context === void 0 ? void 0 : context.isOpen) !== null && _a !== void 0 ? _a : false;
|
|
17
|
+
};
|
|
13
18
|
}
|
|
14
19
|
getContext() {
|
|
15
20
|
const menu = this.el.closest('seki-dropdown-menu');
|
|
@@ -17,14 +22,9 @@ export class SekiDropdownMenuTrigger {
|
|
|
17
22
|
return menu ? menu._dropdownMenuContext : null;
|
|
18
23
|
}
|
|
19
24
|
componentDidLoad() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var _a;
|
|
24
|
-
const context = this.getContext();
|
|
25
|
-
this._isOpen = (_a = context === null || context === void 0 ? void 0 : context.isOpen) !== null && _a !== void 0 ? _a : false;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
25
|
+
var _a, _b;
|
|
26
|
+
this.menuEl = (_a = this.el.closest('seki-dropdown-menu')) !== null && _a !== void 0 ? _a : undefined;
|
|
27
|
+
(_b = this.menuEl) === null || _b === void 0 ? void 0 : _b.addEventListener('sekiOpenChange', this.onMenuOpenChange);
|
|
28
28
|
}
|
|
29
29
|
handleClick(event) {
|
|
30
30
|
event.stopPropagation();
|
|
@@ -34,10 +34,12 @@ export class SekiDropdownMenuTrigger {
|
|
|
34
34
|
registerThemeSync(this.el);
|
|
35
35
|
}
|
|
36
36
|
disconnectedCallback() {
|
|
37
|
+
var _a;
|
|
37
38
|
unregisterThemeSync(this.el);
|
|
39
|
+
(_a = this.menuEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('sekiOpenChange', this.onMenuOpenChange);
|
|
38
40
|
}
|
|
39
41
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'fce6a84d7fcc4ed52edfdc4465d1da0942cfe3cb', "data-state": this._isOpen ? 'open' : 'closed' }, h("span", { key: '0fe984028ed8e6802fcb91354fe4d0fcc4b1d5fe', part: "trigger", class: "dropdown-menu-trigger", "aria-haspopup": "menu", "aria-expanded": this._isOpen ? 'true' : 'false' }, h("slot", { key: 'f7985116dbb64d96608f5eac631552862fa4c83a' }))));
|
|
41
43
|
}
|
|
42
44
|
static get is() { return "seki-dropdown-menu-trigger"; }
|
|
43
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -91,7 +91,11 @@ export class SekiDropdownMenu {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
setupClickOutside() {
|
|
94
|
-
|
|
94
|
+
// Clear any pending timeout/handler first so a rapid open→close→open cannot
|
|
95
|
+
// leave a leaked listener or double-schedule.
|
|
96
|
+
this.removeClickOutside();
|
|
97
|
+
this.clickOutsideTimeout = setTimeout(() => {
|
|
98
|
+
this.clickOutsideTimeout = undefined;
|
|
95
99
|
this.clickOutsideHandler = (e) => {
|
|
96
100
|
const path = e.composedPath();
|
|
97
101
|
if (!path.includes(this.el)) {
|
|
@@ -102,6 +106,11 @@ export class SekiDropdownMenu {
|
|
|
102
106
|
}, 0);
|
|
103
107
|
}
|
|
104
108
|
removeClickOutside() {
|
|
109
|
+
// Cancel a still-pending registration so it can't fire after close/disconnect.
|
|
110
|
+
if (this.clickOutsideTimeout !== undefined) {
|
|
111
|
+
clearTimeout(this.clickOutsideTimeout);
|
|
112
|
+
this.clickOutsideTimeout = undefined;
|
|
113
|
+
}
|
|
105
114
|
if (this.clickOutsideHandler) {
|
|
106
115
|
document.removeEventListener('click', this.clickOutsideHandler, { capture: true });
|
|
107
116
|
this.clickOutsideHandler = undefined;
|
|
@@ -139,7 +148,7 @@ export class SekiDropdownMenu {
|
|
|
139
148
|
this.removeClickOutside();
|
|
140
149
|
}
|
|
141
150
|
render() {
|
|
142
|
-
return (h(Host, { key: '
|
|
151
|
+
return (h(Host, { key: '2d005621c57288981fd010d032df05ba0673382b', "data-state": this._isOpen ? 'open' : 'closed' }, h("div", { key: 'ccfad38f3553407073c9c5f8b7d2ad1a536428c8', part: "dropdown-menu", class: "dropdown-menu" }, h("slot", { key: '12250972a0eaeef563e711a82c60243442e47a63' }))));
|
|
143
152
|
}
|
|
144
153
|
static get is() { return "seki-dropdown-menu"; }
|
|
145
154
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/components/menubar/seki-menubar-content.tsx
|
|
2
2
|
import { h, Host } from "@stencil/core";
|
|
3
3
|
import { registerThemeSync, unregisterThemeSync } from "../../utils/theme-sync";
|
|
4
|
+
import { computeAnchoredPosition } from "../../utils/positioning";
|
|
4
5
|
/**
|
|
5
6
|
* Menubar content - dropdown content container
|
|
6
7
|
*
|
|
@@ -26,6 +27,19 @@ export class SekiMenubarContent {
|
|
|
26
27
|
this._position = { top: '0', left: '0' };
|
|
27
28
|
this._focusedIndex = -1;
|
|
28
29
|
this.typeaheadBuffer = '';
|
|
30
|
+
this.onMenubarOpenChange = () => {
|
|
31
|
+
const context = this.getMenubarContext();
|
|
32
|
+
const menuId = this.getMenuId();
|
|
33
|
+
const wasOpen = this._isOpen;
|
|
34
|
+
this._isOpen = (context === null || context === void 0 ? void 0 : context.activeMenuId) === menuId;
|
|
35
|
+
if (this._isOpen && !wasOpen) {
|
|
36
|
+
this._focusedIndex = 0;
|
|
37
|
+
requestAnimationFrame(() => {
|
|
38
|
+
this.updatePosition();
|
|
39
|
+
this.focusItem(0);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
29
43
|
}
|
|
30
44
|
getMenubarContext() {
|
|
31
45
|
const menubar = this.el.closest('seki-menubar');
|
|
@@ -42,22 +56,9 @@ export class SekiMenubarContent {
|
|
|
42
56
|
return Array.from(this.contentRef.querySelectorAll('seki-menubar-item:not([disabled]), seki-menubar-checkbox:not([disabled]), seki-menubar-radio:not([disabled]), seki-menubar-sub-trigger:not([disabled])'));
|
|
43
57
|
}
|
|
44
58
|
componentDidLoad() {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const context = this.getMenubarContext();
|
|
49
|
-
const menuId = this.getMenuId();
|
|
50
|
-
const wasOpen = this._isOpen;
|
|
51
|
-
this._isOpen = (context === null || context === void 0 ? void 0 : context.activeMenuId) === menuId;
|
|
52
|
-
if (this._isOpen && !wasOpen) {
|
|
53
|
-
this._focusedIndex = 0;
|
|
54
|
-
requestAnimationFrame(() => {
|
|
55
|
-
this.updatePosition();
|
|
56
|
-
this.focusItem(0);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
59
|
+
var _a, _b;
|
|
60
|
+
this.menubarEl = (_a = this.el.closest('seki-menubar')) !== null && _a !== void 0 ? _a : undefined;
|
|
61
|
+
(_b = this.menubarEl) === null || _b === void 0 ? void 0 : _b.addEventListener('sekiOpenChange', this.onMenubarOpenChange);
|
|
61
62
|
}
|
|
62
63
|
componentDidRender() {
|
|
63
64
|
if (this._isOpen) {
|
|
@@ -146,39 +147,20 @@ export class SekiMenubarContent {
|
|
|
146
147
|
return;
|
|
147
148
|
const triggerRect = trigger.getBoundingClientRect();
|
|
148
149
|
const contentRect = this.contentRef.getBoundingClientRect();
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
top = triggerRect.bottom + this.sideOffset;
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
top = triggerRect.top - contentRect.height - this.sideOffset;
|
|
158
|
-
}
|
|
159
|
-
// Align positioning
|
|
160
|
-
switch (this.align) {
|
|
161
|
-
case 'start':
|
|
162
|
-
left = triggerRect.left;
|
|
163
|
-
break;
|
|
164
|
-
case 'center':
|
|
165
|
-
left = triggerRect.left + (triggerRect.width - contentRect.width) / 2;
|
|
166
|
-
break;
|
|
167
|
-
case 'end':
|
|
168
|
-
left = triggerRect.right - contentRect.width;
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
// Viewport clamping
|
|
172
|
-
const margin = 8;
|
|
173
|
-
left = Math.max(margin, Math.min(left, viewport.width - contentRect.width - margin));
|
|
174
|
-
top = Math.max(margin, Math.min(top, viewport.height - contentRect.height - margin));
|
|
150
|
+
const { top, left } = computeAnchoredPosition(triggerRect, contentRect, {
|
|
151
|
+
side: this.side,
|
|
152
|
+
align: this.align,
|
|
153
|
+
sideOffset: this.sideOffset,
|
|
154
|
+
});
|
|
175
155
|
this._position = { top: `${top}px`, left: `${left}px` };
|
|
176
156
|
}
|
|
177
157
|
connectedCallback() {
|
|
178
158
|
registerThemeSync(this.el);
|
|
179
159
|
}
|
|
180
160
|
disconnectedCallback() {
|
|
161
|
+
var _a;
|
|
181
162
|
unregisterThemeSync(this.el);
|
|
163
|
+
(_a = this.menubarEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('sekiOpenChange', this.onMenubarOpenChange);
|
|
182
164
|
}
|
|
183
165
|
render() {
|
|
184
166
|
if (!this._isOpen) {
|
|
@@ -15,6 +15,10 @@ export class SekiMenubarRadio {
|
|
|
15
15
|
*/
|
|
16
16
|
this.disabled = false;
|
|
17
17
|
this._isChecked = false;
|
|
18
|
+
this.onRadioGroupValueChange = () => {
|
|
19
|
+
const context = this.getContext();
|
|
20
|
+
this._isChecked = (context === null || context === void 0 ? void 0 : context.getValue()) === this.value;
|
|
21
|
+
};
|
|
18
22
|
this.handleClick = () => {
|
|
19
23
|
if (this.disabled)
|
|
20
24
|
return;
|
|
@@ -39,25 +43,23 @@ export class SekiMenubarRadio {
|
|
|
39
43
|
this._isChecked = (context === null || context === void 0 ? void 0 : context.getValue()) === this.value;
|
|
40
44
|
}
|
|
41
45
|
componentDidLoad() {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const context = this.getContext();
|
|
46
|
-
this._isChecked = (context === null || context === void 0 ? void 0 : context.getValue()) === this.value;
|
|
47
|
-
});
|
|
48
|
-
}
|
|
46
|
+
var _a, _b;
|
|
47
|
+
this.radioGroupEl = (_a = this.el.closest('seki-menubar-radio-group')) !== null && _a !== void 0 ? _a : undefined;
|
|
48
|
+
(_b = this.radioGroupEl) === null || _b === void 0 ? void 0 : _b.addEventListener('sekiValueChange', this.onRadioGroupValueChange);
|
|
49
49
|
}
|
|
50
50
|
connectedCallback() {
|
|
51
51
|
registerThemeSync(this.el);
|
|
52
52
|
}
|
|
53
53
|
disconnectedCallback() {
|
|
54
|
+
var _a;
|
|
54
55
|
unregisterThemeSync(this.el);
|
|
56
|
+
(_a = this.radioGroupEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('sekiValueChange', this.onRadioGroupValueChange);
|
|
55
57
|
}
|
|
56
58
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '99afe7f98812789bb52bc0e8e1c4e55997deae58' }, h("div", { key: '41b181429662965778352ef1684f9a76888bb0dd', part: "item", role: "menuitemradio", class: {
|
|
58
60
|
'menubar-radio': true,
|
|
59
61
|
'menubar-radio--disabled': this.disabled,
|
|
60
|
-
}, tabindex: this.disabled ? -1 : 0, "aria-checked": this._isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: '
|
|
62
|
+
}, tabindex: this.disabled ? -1 : 0, "aria-checked": this._isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: '1e40707605e814958c8c714cdf93a0a65dca11d3', part: "indicator", class: "menubar-radio__indicator" }, this._isChecked && (h("svg", { key: 'aa45c00b05cd138ebd1bbd71a2579602efb3593e', xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor" }, h("circle", { key: 'ce97ee3943f16913bca5548980c7d19720c13cbe', cx: "12", cy: "12", r: "4" })))), h("slot", { key: 'cd4f98b8dc51067f62d80c17dd24f3326c42f9d7' }))));
|
|
61
63
|
}
|
|
62
64
|
static get is() { return "seki-menubar-radio"; }
|
|
63
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,6 +15,11 @@ export class SekiMenubarTrigger {
|
|
|
15
15
|
*/
|
|
16
16
|
this.disabled = false;
|
|
17
17
|
this._isOpen = false;
|
|
18
|
+
this.onMenubarOpenChange = () => {
|
|
19
|
+
const context = this.getContext();
|
|
20
|
+
const menuId = this.getMenuId();
|
|
21
|
+
this._isOpen = (context === null || context === void 0 ? void 0 : context.activeMenuId) === menuId;
|
|
22
|
+
};
|
|
18
23
|
this.handleClick = () => {
|
|
19
24
|
if (this.disabled)
|
|
20
25
|
return;
|
|
@@ -89,26 +94,23 @@ export class SekiMenubarTrigger {
|
|
|
89
94
|
return (menu === null || menu === void 0 ? void 0 : menu.getAttribute('menu-id')) || null;
|
|
90
95
|
}
|
|
91
96
|
componentDidLoad() {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const context = this.getContext();
|
|
96
|
-
const menuId = this.getMenuId();
|
|
97
|
-
this._isOpen = (context === null || context === void 0 ? void 0 : context.activeMenuId) === menuId;
|
|
98
|
-
});
|
|
99
|
-
}
|
|
97
|
+
var _a, _b;
|
|
98
|
+
this.menubarEl = (_a = this.el.closest('seki-menubar')) !== null && _a !== void 0 ? _a : undefined;
|
|
99
|
+
(_b = this.menubarEl) === null || _b === void 0 ? void 0 : _b.addEventListener('sekiOpenChange', this.onMenubarOpenChange);
|
|
100
100
|
}
|
|
101
101
|
connectedCallback() {
|
|
102
102
|
registerThemeSync(this.el);
|
|
103
103
|
}
|
|
104
104
|
disconnectedCallback() {
|
|
105
|
+
var _a;
|
|
105
106
|
unregisterThemeSync(this.el);
|
|
107
|
+
(_a = this.menubarEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('sekiOpenChange', this.onMenubarOpenChange);
|
|
106
108
|
}
|
|
107
109
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: '03b877042dda1aa2c752bf3e8310c4673c337afc' }, h("button", { key: '6aaae36fe7dcb72653f681027eda9b379756b73b', part: "trigger", type: "button", role: "menuitem", class: {
|
|
109
111
|
'menubar-trigger': true,
|
|
110
112
|
'menubar-trigger--disabled': this.disabled,
|
|
111
|
-
}, tabindex: this.disabled ? -1 : 0, "aria-haspopup": "menu", "aria-expanded": this._isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, "data-state": this._isOpen ? 'open' : 'closed', onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("slot", { key: '
|
|
113
|
+
}, tabindex: this.disabled ? -1 : 0, "aria-haspopup": "menu", "aria-expanded": this._isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, "data-state": this._isOpen ? 'open' : 'closed', onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("slot", { key: '73e5a3d6a9293c39db703862147d662097d51820' }))));
|
|
112
114
|
}
|
|
113
115
|
static get is() { return "seki-menubar-trigger"; }
|
|
114
116
|
static get encapsulation() { return "shadow"; }
|
|
@@ -108,7 +108,11 @@ export class SekiMenubar {
|
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
setupClickOutside() {
|
|
111
|
-
|
|
111
|
+
// Clear any pending timeout/handler first so a rapid open→close→open cannot
|
|
112
|
+
// leave a leaked listener or double-schedule.
|
|
113
|
+
this.removeClickOutside();
|
|
114
|
+
this.clickOutsideTimeout = setTimeout(() => {
|
|
115
|
+
this.clickOutsideTimeout = undefined;
|
|
112
116
|
this.clickOutsideHandler = (e) => {
|
|
113
117
|
const path = e.composedPath();
|
|
114
118
|
if (!path.includes(this.el)) {
|
|
@@ -119,6 +123,11 @@ export class SekiMenubar {
|
|
|
119
123
|
}, 0);
|
|
120
124
|
}
|
|
121
125
|
removeClickOutside() {
|
|
126
|
+
// Cancel a still-pending registration so it can't fire after close/disconnect.
|
|
127
|
+
if (this.clickOutsideTimeout !== undefined) {
|
|
128
|
+
clearTimeout(this.clickOutsideTimeout);
|
|
129
|
+
this.clickOutsideTimeout = undefined;
|
|
130
|
+
}
|
|
122
131
|
if (this.clickOutsideHandler) {
|
|
123
132
|
document.removeEventListener('click', this.clickOutsideHandler, { capture: true });
|
|
124
133
|
this.clickOutsideHandler = undefined;
|
|
@@ -145,7 +154,7 @@ export class SekiMenubar {
|
|
|
145
154
|
this.removeClickOutside();
|
|
146
155
|
}
|
|
147
156
|
render() {
|
|
148
|
-
return (h(Host, { key: '
|
|
157
|
+
return (h(Host, { key: '900d29f5d66cc3340d0855f964a93f6fbad6faf1' }, h("div", { key: 'ee5bcb93c4890e3dccbd5df39a0a395f61bd879d', part: "menubar", role: "menubar", class: "menubar" }, h("slot", { key: '72f9ce0e13a159d690f104798e2597d7582ee49d' }))));
|
|
149
158
|
}
|
|
150
159
|
static get is() { return "seki-menubar"; }
|
|
151
160
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { registerThemeSync, unregisterThemeSync } from "../../utils/theme-sync";
|
|
3
|
+
import { mirrorAncestorAttributes } from "../../utils/ancestor-attrs";
|
|
3
4
|
export class SekiNavigationMenuContent {
|
|
4
5
|
constructor() {
|
|
5
6
|
// =========================================================================
|
|
@@ -65,10 +66,14 @@ export class SekiNavigationMenuContent {
|
|
|
65
66
|
}
|
|
66
67
|
connectedCallback() {
|
|
67
68
|
registerThemeSync(this.el);
|
|
69
|
+
this.itemAttrMirror = mirrorAncestorAttributes(this.el, 'seki-navigation-menu-item', ['data-mobile-expanded']);
|
|
68
70
|
}
|
|
69
71
|
disconnectedCallback() {
|
|
72
|
+
var _a;
|
|
70
73
|
unregisterThemeSync(this.el);
|
|
71
74
|
this.cleanupContentInteractions();
|
|
75
|
+
(_a = this.itemAttrMirror) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
76
|
+
this.itemAttrMirror = undefined;
|
|
72
77
|
}
|
|
73
78
|
// =========================================================================
|
|
74
79
|
// Watchers
|
|
@@ -198,13 +203,13 @@ export class SekiNavigationMenuContent {
|
|
|
198
203
|
if (this.layout === 'grid') {
|
|
199
204
|
customStyles['--content-columns'] = String(this.columns);
|
|
200
205
|
}
|
|
201
|
-
return (h(Host, { key: '
|
|
206
|
+
return (h(Host, { key: 'bfc21c5185e5547f881b626cea1601f785e59aed', class: {
|
|
202
207
|
'navigation-menu-content': true,
|
|
203
208
|
'navigation-menu-content--open': this.isOpen,
|
|
204
209
|
'navigation-menu-content--mobile': this.isMobile,
|
|
205
210
|
[`navigation-menu-content--layout-${this.layout}`]: true,
|
|
206
211
|
[`navigation-menu-content--align-${this.align}`]: true,
|
|
207
|
-
}, style: customStyles }, h("div", { key: '
|
|
212
|
+
}, "data-mobile": this.isMobile ? '' : undefined, style: customStyles }, h("div", { key: 'c2b7defd5f2788357ac74928551e8dadfc4e538d', id: `content-${itemId}`, class: "navigation-menu-content__inner", role: "menu", "aria-labelledby": `trigger-${itemId}` }, h("slot", { key: 'd5041f39310854ec214b75e54a62a3626d29b883' }))));
|
|
208
213
|
}
|
|
209
214
|
static get is() { return "seki-navigation-menu-content"; }
|
|
210
215
|
static get encapsulation() { return "shadow"; }
|
|
@@ -91,12 +91,12 @@ export class SekiNavigationMenuItem {
|
|
|
91
91
|
return this.parentMenu;
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: 'e806c978b9f7fafa2dcbf08e4ea59290bdb857e1', class: {
|
|
95
95
|
'navigation-menu-item': true,
|
|
96
96
|
'navigation-menu-item--open': this.isOpen,
|
|
97
97
|
'navigation-menu-item--mobile': this.isMobile,
|
|
98
98
|
'navigation-menu-item--mobile-expanded': this.mobileExpanded,
|
|
99
|
-
}, "data-item-id": this.itemId }, h("li", { key: '
|
|
99
|
+
}, "data-item-id": this.itemId, "data-mobile-expanded": this.mobileExpanded ? '' : undefined }, h("li", { key: 'c5ad26eafb3efce7e4026a357ccddfa8c7cc7d89', class: "navigation-menu-item__container", role: "none" }, h("slot", { key: '2807adbb320822f01778e98e034707b6c2bf69dc' }))));
|
|
100
100
|
}
|
|
101
101
|
static get is() { return "seki-navigation-menu-item"; }
|
|
102
102
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/* Mobile mode */
|
|
73
|
-
:host
|
|
73
|
+
:host([data-mobile]) .navigation-menu-link__anchor {
|
|
74
74
|
min-height: 44px;
|
|
75
75
|
padding: var(--seki-spacing-3, 0.75rem) var(--seki-spacing-4, 1rem);
|
|
76
76
|
}
|