import { h } from "@stencil/core";
export class DgaProgressIndicatorV2 {
    constructor() {
        this.activeStep = 1;
        this.alignment = 'horizontal';
        this.steps = [];
    }
    // @State() parsedSteps: Array<{ label: string; description: string }> = [];
    // componentWillLoad() {
    //   // Parse the steps string into an array
    //   try {
    //     console.log(this.steps);
    //     this.parsedSteps = JSON.parse(this.steps);
    //   } catch (error) {
    //     console.error('Invalid steps format:', error);
    //     this.parsedSteps = [];
    //   }
    // }
    render() {
        return (h("div", { key: 'ccb29d4090d0f1f09c696a2fa4eba1a0e1d5037d', class: "progress-indicator flex", "data-alignment": this.alignment }, this.steps.map((step, index) => (h("dga-progress-indicator-step", { currentStep: index + 1, title: step.label, description: step.description, activeStep: this.activeStep })))));
    }
    static get is() { return "dga-progress-indicator-v2"; }
    static get originalStyleUrls() {
        return {
            "$": ["dga-progress-indicator.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["dga-progress-indicator.css"]
        };
    }
    static get properties() {
        return {
            "activeStep": {
                "type": "number",
                "mutable": false,
                "complexType": {
                    "original": "number",
                    "resolved": "number",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "active-step",
                "reflect": false,
                "defaultValue": "1"
            },
            "alignment": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'horizontal' | 'vertical'",
                    "resolved": "\"horizontal\" | \"vertical\"",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "alignment",
                "reflect": false,
                "defaultValue": "'horizontal'"
            },
            "steps": {
                "type": "unknown",
                "mutable": false,
                "complexType": {
                    "original": "Array<{\n    label: string;\n    description: string;\n  }>",
                    "resolved": "{ label: string; description: string; }[]",
                    "references": {
                        "Array": {
                            "location": "global",
                            "id": "global::Array"
                        }
                    }
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "defaultValue": "[]"
            }
        };
    }
}
//# sourceMappingURL=dga-progress-indicator-v2.js.map
