Sha256: 1f1295b1041ca270acc16b3ec16793ed7fabe15d5dfb0b55e76a54e329fc24b4

Contents?: true

Size: 1.71 KB

Versions: 106

Compression:

Stored size: 1.71 KB

Contents

import '@oddbird/popover-polyfill';
import type { IncludeFragmentElement } from '@github/include-fragment-element';
type SelectVariant = 'none' | 'single' | 'multiple' | null;
type SelectedItem = {
    label: string | null | undefined;
    value: string | null | undefined;
    element: Element;
};
export type ItemActivatedEvent = {
    item: Element;
    checked: boolean;
};
declare global {
    interface HTMLElementEventMap {
        itemActivated: CustomEvent<ItemActivatedEvent>;
    }
}
export declare class ActionMenuElement extends HTMLElement {
    #private;
    includeFragment: IncludeFragmentElement;
    get selectVariant(): SelectVariant;
    set selectVariant(variant: SelectVariant);
    get dynamicLabelPrefix(): string;
    set dynamicLabelPrefix(value: string);
    get dynamicLabel(): boolean;
    set dynamicLabel(value: boolean);
    get popoverElement(): HTMLElement | null;
    get invokerElement(): HTMLButtonElement | null;
    get invokerLabel(): HTMLElement | null;
    get selectedItems(): SelectedItem[];
    connectedCallback(): void;
    disconnectedCallback(): void;
    handleEvent(event: Event): void;
    get items(): HTMLElement[];
    getItemById(itemId: string): HTMLElement | null;
    isItemDisabled(item: Element | null): boolean;
    disableItem(item: Element | null): void;
    enableItem(item: Element | null): void;
    isItemHidden(item: Element | null): boolean;
    hideItem(item: Element | null): void;
    showItem(item: Element | null): void;
    isItemChecked(item: Element | null): boolean;
    checkItem(item: Element | null): void;
    uncheckItem(item: Element | null): void;
}
declare global {
    interface Window {
        ActionMenuElement: typeof ActionMenuElement;
    }
}
export {};

Version data entries

106 entries across 53 versions & 3 rubygems

Version Path
jekyll-v4-theme-primer-0.16.0 _sass/@primer/view-components/app/components/primer/alpha/action_menu/action_menu_element.d.ts
jekyll-v4-theme-primer-0.16.0 _sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.37.1 app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.37.1 app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.37.0 app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.37.0 app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.36.2 app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.36.2 app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.36.1 app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.36.1 app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.36.0 app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.36.0 app/components/primer/alpha/action_menu/action_menu_element.d.ts
primer_view_components-0.27.0 app/components/primer/alpha/action_menu/action_menu_element.d.ts
primer_view_components-0.27.0 app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.35.2 app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.35.2 app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.35.1 app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
openproject-primer_view_components-0.35.1 app/components/primer/alpha/action_menu/action_menu_element.d.ts
primer_view_components-0.26.1 app/components/primer/alpha/action_menu/action_menu_element.d.ts
primer_view_components-0.26.1 app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts