@larva.io/webcomponents
Version:
Fentrica SmartUnits WebComponents package
129 lines (128 loc) • 4.95 kB
JavaScript
/*!
* (C) Fentrica http://fentrica.com - Seee LICENSE.md
*/
import { h } from "@stencil/core";
import { DoorState } from "./sliding-door-interface";
export class RadioButtonContent {
render() {
return (h("lar-button-group", { key: '3ff8f6764d46102f93be67ab8c6fcb86b1b52705' }, h("lar-button", { key: '690d51e8b8c105a820f63a181c955de6ea1a0a3d', disabled: this.loading || this.doorState === DoorState.OPEN || this.doorState === DoorState.OPENING || this.doorState === DoorState.CLOSING, color: this.color, onClick: () => this.sendcommand.emit('open') }, h("lar-translate", { key: '7649933c55b282f4772f28640756da8e6e0f0e14', t: "slidingDoor.open" })), h("lar-button", { key: '23b45b611ef7900b0bda3a50b78fb8dcccdd7dbb', disabled: this.loading || this.doorState === DoorState.CLOSED || this.doorState === DoorState.OPENING || this.doorState === DoorState.CLOSING, color: this.color, onClick: () => this.sendcommand.emit('close') }, h("lar-translate", { key: 'd4f59b59307c5ae7ca3368b682ca8dfbb1701eeb', t: "slidingDoor.close" })), this.stopEnabled === true ?
h("lar-button", { disabled: this.loading || (this.doorState !== DoorState.OPENING && this.doorState !== DoorState.CLOSING), color: this.color, onClick: () => this.sendcommand.emit('stop') }, h("lar-translate", { t: "slidingDoor.stop" })) : null));
}
static get is() { return "sliding-door-content"; }
static get encapsulation() { return "scoped"; }
static get originalStyleUrls() {
return {
"$": ["sliding-door.scss"]
};
}
static get styleUrls() {
return {
"$": ["sliding-door.css"]
};
}
static get properties() {
return {
"color": {
"type": "string",
"mutable": false,
"complexType": {
"original": "Color",
"resolved": "string",
"references": {
"Color": {
"location": "import",
"path": "../../interface",
"id": "src/interface.d.ts::Color"
}
}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": ""
},
"getter": false,
"setter": false,
"reflect": false,
"attribute": "color"
},
"doorState": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string",
"resolved": "string",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"getter": false,
"setter": false,
"reflect": false,
"attribute": "door-state"
},
"stopEnabled": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"getter": false,
"setter": false,
"reflect": false,
"attribute": "stop-enabled"
},
"loading": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": ""
},
"getter": false,
"setter": false,
"reflect": false,
"attribute": "loading"
}
};
}
static get events() {
return [{
"method": "sendcommand",
"name": "sendcommand",
"bubbles": true,
"cancelable": true,
"composed": true,
"docs": {
"tags": [],
"text": ""
},
"complexType": {
"original": "string",
"resolved": "string",
"references": {}
}
}];
}
}
//# sourceMappingURL=sliding-door-content.js.map