UNPKG

@larva.io/webcomponents

Version:

Fentrica SmartUnits WebComponents package

60 lines (57 loc) 2.61 kB
/*! * (C) Fentrica http://fentrica.com - Seee LICENSE.md */ import { p as proxyCustomElement, H, h } from './p-AOwgnAK2.js'; import { d as defineCustomElement$3 } from './p-C9VBtzS4.js'; import { d as defineCustomElement$2 } from './p-DwjVtK9p.js'; import { d as defineCustomElement$1 } from './p-B-fmI6sr.js'; const WeatherItem = /*@__PURE__*/ proxyCustomElement(class WeatherItem extends H { constructor(registerHost) { super(); if (registerHost !== false) { this.__registerHost(); } } 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}` }))) ]; } }, [256, "lar-weather-item", { "icon": [1], "name": [1], "value": [1], "rotateIcon": [2, "rotate-icon"] }]); function defineCustomElement() { if (typeof customElements === "undefined") { return; } const components = ["lar-weather-item", "lar-icon", "lar-list-item", "lar-translate"]; components.forEach(tagName => { switch (tagName) { case "lar-weather-item": if (!customElements.get(tagName)) { customElements.define(tagName, WeatherItem); } break; case "lar-icon": if (!customElements.get(tagName)) { defineCustomElement$3(); } break; case "lar-list-item": if (!customElements.get(tagName)) { defineCustomElement$2(); } break; case "lar-translate": if (!customElements.get(tagName)) { defineCustomElement$1(); } break; } }); } defineCustomElement(); export { WeatherItem as W, defineCustomElement as d }; //# sourceMappingURL=p-DZ674rl9.js.map //# sourceMappingURL=p-DZ674rl9.js.map