/**
 * Copyright Aquera Inc 2026
 *
 * This source code is licensed under the BSD-3-Clause license found in the
 * LICENSE file in the root directory of this source tree.
 */
var NileContextMenuGroup_1;
import { __decorate } from "tslib";
import { html } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { styles } from './nile-context-menu-group.css';
import NileElement from '../internal/nile-element';
/**
 * Nile context-menu group. Groups related items inside a `nile-context-menu`.
 *
 * @tag nile-context-menu-group
 *
 * @slot - Default slot for `nile-context-menu-item` children.
 */
let NileContextMenuGroup = NileContextMenuGroup_1 = class NileContextMenuGroup extends NileElement {
    constructor() {
        super(...arguments);
        this.label = '';
        this._labelId = `nile-context-menu-group-label-${++NileContextMenuGroup_1._idSeq}`;
    }
    static get styles() {
        return [styles];
    }
    render() {
        const heading = this.label || this.id;
        return html `
      <div
        part="group"
        class="group"
        role="group"
        aria-labelledby=${heading ? this._labelId : undefined}
      >
        ${heading
            ? html `<div part="label" class="label" id=${this._labelId}>${heading}</div>`
            : null}
        <slot></slot>
      </div>
    `;
    }
};
NileContextMenuGroup._idSeq = 0;
__decorate([
    property({ attribute: true, type: String, reflect: true })
], NileContextMenuGroup.prototype, "label", void 0);
NileContextMenuGroup = NileContextMenuGroup_1 = __decorate([
    customElement('nile-context-menu-group')
], NileContextMenuGroup);
export { NileContextMenuGroup };
export default NileContextMenuGroup;
//# sourceMappingURL=nile-context-menu-group.js.map