import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class IconSort {
    constructor() {
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    render() {
        return (h("svg", { key: '523f8d5be11dad9d6d0c365a9c2f6b9182ff3a0d', class: "digi-icon-sort", width: "12", height: "16", viewBox: "0 0 12 16", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
                ? this.afSvgAriaLabelledby
                : this.afTitle
                    ? this.titleId
                    : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && h("title", { key: '5a9140ec510ac31f9198f8b7f6378f3f518b4006', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '3e898abfa846ae00d34959e26eee33ace1de7e9f' }, this.afDesc), h("path", { key: '212fa203ff54a4b4a1c4c0cc07d0e3f24b25f6b2', class: "digi-icon-sort__shape", d: "M11.777 9.67a.689.689 0 01.223.512.689.689 0 01-.223.511l-5.25 5.091A.732.732 0 016 16a.732.732 0 01-.527-.216l-5.25-5.09A.689.689 0 010 10.181c0-.197.074-.368.223-.512a.732.732 0 01.527-.215h10.5c.203 0 .379.072.527.215zm0-4.363a.689.689 0 01.223.511.689.689 0 01-.223.512.732.732 0 01-.527.215H.75a.732.732 0 01-.527-.215A.689.689 0 010 5.818c0-.197.074-.367.223-.511L5.473.216A.732.732 0 016 0c.203 0 .379.072.527.216l5.25 5.09z", fill: "currentColor", "fill-rule": "evenodd" })));
    }
    static get is() { return "digi-icon-sort"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-sort.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-sort.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": {}
        };
    }
}
