x-weather
Version:
A collection of web components implementing portions of the OpenWeatherMap API.
2 lines (1 loc) • 1.85 kB
JavaScript
import"./utilities.js";import"./types.js";import"./updateCurrentWeather.js";import"./getCurrentWeather.js";import"./updateForecastWeather.js";import"./getForecastWeather.js";import"./index.js";import{_ as e}from"./_rollupPluginBabelHelpers-5bd7183e.js";import{L as t,c as r,h as i}from"./lit-element-ae08ccac.js";import"./XDateTime.js";import"./XWeatherItem.js";import{c as n}from"./connect-mixin-144a42a2.js";import"./redux-a2f99696.js";import{store as a}from"./configureStore.js";import"./initialState.js";import"./utilities2.js";import"./current.js";import"./forecast.js";import"./preferences.js";import"./index2.js";import"./root.js";import"./middleware.js";import"./dispatchers.js";import"./XCurrentTemperature.js";function s(){var t=e(['\n <x-weather-item iconalt="','" iconsrc="','">\n <x-date-time slot="x-date-time" timestamp="','"></x-date-time>\n <x-current-temperature\n primaryscale=','\n slot="x-weather-item-temperature"\n ></x-current-temperature>\n </x-weather-item>\n ']);return s=function(){return t},t}function m(){var t=e(["\n :host {\n display: block;\n }\n\n x-date-time {\n text-decoration: underline;\n }\n\n x-weather-item {\n margin-bottom: 0.5rem;\n }\n "]);return m=function(){return t},t}var o=class extends(n(a)(t)){static get styles(){return r(m())}static get properties(){return{currentweather:{type:Object},primaryscale:{type:String}}}stateChanged(e){var{weather:t}=e;this.currentweather=t.current,this.primaryscale=this.primaryscale||t.preferences.primaryScaleCurrent}render(){return i(s(),this.currentweather.iconAlt,this.currentweather.iconSrc,this.currentweather.timestamp,this.primaryscale)}};customElements.get("x-current")||customElements.define("x-current",o);export default o;export{o as XCurrent};