import { r as registerInstance, h, c as getElement } from './core-1db051ba.js';
import './utils-3aef1637.js';
import { T as Tunnel } from './i18n.provider-15e382c4.js';
import { a as COLUMN_CONTEXT_MENU } from './column.renderer-aa0851f6.js';

const ColumnPinner = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        /**
         * Is pinning enabled
         */
        this.enabled = true;
        /**
         * Type of pinning not allows
         * Possible values are: `"left"`, `"right"`,  and `null` (both left and right pinning allowed). Defaults to null.
         */
        this.disallow = null;
    }
    render() {
        if (!this.enabled) {
            return undefined;
        }
        return COLUMN_CONTEXT_MENU.filter((o) => !this.disallow || o.value !== this.disallow)
            .map(o => h("anj-context-menu-item", { action: o.value }, this.translator(o.label)));
    }
    get element() { return getElement(this); }
    static get style() { return "anj-column-pinner {\n  display: none;\n}"; }
};
Tunnel.injectProps(ColumnPinner, ['translator']);

export { ColumnPinner as anj_column_pinner };
