import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class IconEdit {
    constructor() {
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    render() {
        return (h("svg", { key: '7f6d5c46ff9afb4f85b51752218b11ce5d1dfea5', class: "digi-icon-edit", width: "29", height: "26", viewBox: "0 0 29 26", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
                ? this.afSvgAriaLabelledby
                : this.afTitle
                    ? this.titleId
                    : undefined }, this.afTitle && h("title", { key: '3053f87c7a8434daa697d8e51907e9f8b6874a9a', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'fd400fe70331853fc1a3e722877da5a5a35015af' }, this.afDesc), h("path", { key: '01018d45848a4af56167baa4f89fb5438c79ac68', class: "digi-icon-edit__shape", d: "M20.27 4.225l4.541 4.58a.5.5 0 010 .701l-10.996 11.09-4.672.524a.983.983 0 01-1.082-1.092l.518-4.712L19.575 4.225a.49.49 0 01.695 0zm8.156-1.163L25.969.584a1.957 1.957 0 00-2.78 0l-1.781 1.798a.5.5 0 000 .7l4.541 4.58a.49.49 0 00.695 0l1.782-1.797a1.998 1.998 0 000-2.803zM19.333 17.58v5.17H3.223V6.5h11.569a.616.616 0 00.428-.178l2.014-2.031c.382-.386.11-1.041-.428-1.041H2.416A2.428 2.428 0 000 5.688v17.875A2.428 2.428 0 002.417 26h17.722a2.428 2.428 0 002.417-2.438V15.55a.605.605 0 00-1.033-.431l-2.013 2.03a.627.627 0 00-.177.432z", fill: "currentColor", "fill-rule": "nonzero" })));
    }
    static get is() { return "digi-icon-edit"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-edit.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-edit.css"]
        };
    }
    static get properties() {
        return {
            "afTitle": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "en",
                            "text": "Adds a title element inside the svg"
                        }],
                    "text": "L\u00E4gger till ett titleelement i svg:n"
                },
                "getter": false,
                "setter": false,
                "attribute": "af-title",
                "reflect": false
            },
            "afDesc": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "en",
                            "text": "Adds a desc element inside the svg"
                        }],
                    "text": "L\u00E4gger till ett descelement i svg:n"
                },
                "getter": false,
                "setter": false,
                "attribute": "af-desc",
                "reflect": false
            },
            "afSvgAriaHidden": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "en",
                            "text": "Hides the icon for screen readers. Default is set to true."
                        }],
                    "text": "F\u00F6r att d\u00F6lja ikonen f\u00F6r sk\u00E4rml\u00E4sare. Default \u00E4r satt till true."
                },
                "getter": false,
                "setter": false,
                "attribute": "af-svg-aria-hidden",
                "reflect": false,
                "defaultValue": "true"
            },
            "afSvgAriaLabelledby": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "en",
                            "text": "Reference other elements on the page to define an accessible name."
                        }],
                    "text": "Referera till andra element p\u00E5 sidan f\u00F6r att definiera ett tillg\u00E4ngligt namn."
                },
                "getter": false,
                "setter": false,
                "attribute": "af-svg-aria-labelledby",
                "reflect": false
            }
        };
    }
    static get states() {
        return {
            "titleId": {}
        };
    }
}
