UNPKG

@larva.io/webcomponents

Version:

Fentrica SmartUnits WebComponents package

94 lines (93 loc) 3.57 kB
/*! * (C) Fentrica http://fentrica.com - Seee LICENSE.md */ import { h } from "@stencil/core"; export class WeatherItem { render() { return [ h("lar-list-item", { key: 'de105c9ea455307dfe617f4c31c6dc67564e4002' }, h("div", { key: '2f80a102e73a0b4165cb2387e7392de98e21c31b', slot: "start", class: "circle" }, h("lar-icon", { key: '6e5300b09d6ff36362db8357d7db8b869e8cf3fe', color: "tertiary", style: { transform: `rotate(${this.rotateIcon || 0}deg)` }, icon: this.icon })), h("h4", { key: 'aa49bc89ef053c121e3e0904bfec055bf93e2411' }, h("lar-translate", { key: '647d5ab7eba473210cde5dd4ff6174070d7fc91b', t: this.name })), this.value !== 'true' && this.value !== 'false' && h("span", { key: '471e5ec61275a8054d5154d929fbf289dbe815ac' }, this.value), (this.value === 'true' || this.value === 'false') && h("span", { key: 'b142ea10052dda54964bb36df1b5ccebd5baf389' }, h("lar-translate", { key: '132b1c40e7caa4017ff3f597131886b07e5145bf', t: `weather.${this.value}` }))) ]; } static get is() { return "lar-weather-item"; } static get properties() { return { "icon": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "Component JSON text" }, "getter": false, "setter": false, "reflect": false, "attribute": "icon" }, "name": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "" }, "getter": false, "setter": false, "reflect": false, "attribute": "name" }, "value": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "" }, "getter": false, "setter": false, "reflect": false, "attribute": "value" }, "rotateIcon": { "type": "number", "mutable": false, "complexType": { "original": "number", "resolved": "number", "references": {} }, "required": false, "optional": true, "docs": { "tags": [], "text": "" }, "getter": false, "setter": false, "reflect": false, "attribute": "rotate-icon" } }; } } //# sourceMappingURL=weather-item.js.map