import { h } from "@stencil/core";
/**
 * Loading 加载组件
 * 用于页面和区块的加载中状态
 */
export class Loading {
    /** 加载指示器尺寸 */
    size = 'default';
    /** 加载文案 */
    text;
    /** 是否全屏显示 */
    fullscreen = false;
    render() {
        return (h("div", { key: 'a29b2a7301ecd1ea3d4cc775b3eb842f591be4c3', class: {
                'hb-loading': true,
                'hb-loading--fullscreen': this.fullscreen,
                [`hb-loading--${this.size}`]: true,
            } }, h("div", { key: 'c429099b5e4c3d5ac229cd2d4befb58f9baff269', class: "hb-loading__spinner" }, h("div", { key: '36e30057b133e3d1f0874da7d2be3d933292fc26', class: "hb-loading__circle" }), this.text && h("div", { key: 'a13830edf63e082e26f14d9d120763cf3e7a8003', class: "hb-loading__text" }, this.text))));
    }
    static get is() { return "hb-loading"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["loading.css"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["loading.css"]
        };
    }
    static get properties() {
        return {
            "size": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'small' | 'default' | 'large'",
                    "resolved": "\"default\" | \"large\" | \"small\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "\u52A0\u8F7D\u6307\u793A\u5668\u5C3A\u5BF8"
                },
                "getter": false,
                "setter": false,
                "attribute": "size",
                "reflect": false,
                "defaultValue": "'default'"
            },
            "text": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "\u52A0\u8F7D\u6587\u6848"
                },
                "getter": false,
                "setter": false,
                "attribute": "text",
                "reflect": false
            },
            "fullscreen": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "\u662F\u5426\u5168\u5C4F\u663E\u793A"
                },
                "getter": false,
                "setter": false,
                "attribute": "fullscreen",
                "reflect": false,
                "defaultValue": "false"
            }
        };
    }
}
//# sourceMappingURL=Loading.js.map
