import { h } from "@stencil/core";
export class CardImage {
    /** Image source URL. */
    src;
    /** Text description of the image for screen readers. */
    alt;
    /** Image position. */
    position;
    /** Emits the image position when it changes or is set. */
    imgPosition;
    handlePosition(position) {
        this.imgPosition.emit(position);
    }
    componentWillLoad() {
        this.handlePosition(this.position);
    }
    componentDidUpdate() {
        this.handlePosition(this.position);
    }
    render() {
        return h("img", { key: '9e3f0b0f3b8f14e591772d8e464f39d562f974af', src: this.src, alt: this.alt, class: "card-image" });
    }
    static get is() { return "ifx-card-image"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["card-image.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["card-image.css"]
        };
    }
    static get properties() {
        return {
            "src": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Image source URL."
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "src"
            },
            "alt": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Text description of the image for screen readers."
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "alt"
            },
            "position": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Image position."
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "position"
            }
        };
    }
    static get events() {
        return [{
                "method": "imgPosition",
                "name": "imgPosition",
                "bubbles": true,
                "cancelable": true,
                "composed": true,
                "docs": {
                    "tags": [],
                    "text": "Emits the image position when it changes or is set."
                },
                "complexType": {
                    "original": "any",
                    "resolved": "any",
                    "references": {}
                }
            }];
    }
}
