import { Host, h } from "@stencil/core";
/**
 * @slot sortable-item-actions - Content is placed within the `pds-sortable-item__actions` element as children. This slot is only rendered if `actions` is set to `true`.
 */
export class PdsSortableItem {
    constructor() {
        this.enableActions = false;
        this.componentId = undefined;
        this.handle = false;
    }
    render() {
        return (h(Host, { key: 'dc0b82dca578e2e25dcb590f7baeb8b7207c00cc', class: "pds-sortable-item", id: this.componentId }, this.handle && (h("div", { class: "pds-sortable-item__handle" }, h("pds-icon", { name: "handle" }))), h("slot", { key: 'c9d4b404d14dafbc0aa23e89db2b961c9ab51d3b' }), this.enableActions && (h("div", { class: "pds-sortable-item__actions" }, h("slot", { name: "sortable-item-actions" })))));
    }
    static get is() { return "pds-sortable-item"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["pds-sortable-item.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["pds-sortable-item.css"]
        };
    }
    static get properties() {
        return {
            "enableActions": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "defaultValue",
                            "text": "false"
                        }],
                    "text": "Determines whether `sortable-item-actions` slot should be enabled."
                },
                "attribute": "enable-actions",
                "reflect": false,
                "defaultValue": "false"
            },
            "componentId": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "A unique identifier used for the sortable item `id` attribute."
                },
                "attribute": "component-id",
                "reflect": false
            },
            "handle": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "defaultValue",
                            "text": "false"
                        }],
                    "text": "Determines whether `sortable-item` should have a handle."
                },
                "attribute": "handle",
                "reflect": false,
                "defaultValue": "false"
            }
        };
    }
}
//# sourceMappingURL=pds-sortable-item.js.map
