@arcgis/map-components
Version:
ArcGIS Map Components
35 lines (34 loc) • 1.49 kB
JavaScript
import { c as e } from "../../chunks/runtime.js";
import { usePropertyChange as t } from "@arcgis/components-controllers";
import s from "@arcgis/core/widgets/Weather.js";
import { LitElement as i, createEvent as o, noShadowRoot as a } from "@arcgis/lumina";
import { m as r } from "../../chunks/useWidget.js";
import { css as h } from "@lit/reactive-element/css-tag.js";
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
v4.32.14 */
const l = h`{arcgis-weather{display:block}}`, d = r(s);
class n extends i {
constructor() {
super(...arguments), this.widget = d(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.headingLevel = this.widget.headingLevel, this.hideHeader = this.widget.visibleElements.header, this.icon = this.widget.icon, this.label = this.widget.label, this.position = "bottom-left", this.state = this.viewModel.state, this.arcgisPropertyChange = t()("state"), this.arcgisReady = o();
}
static {
this.properties = { autoDestroyDisabled: 5, headingLevel: 9, hideHeader: 5, icon: 1, label: 1, position: 1, referenceElement: 1, state: 3 };
}
static {
this.shadowRootOptions = a;
}
static {
this.styles = l;
}
// #endregion
// #region Public Methods
/** Permanently destroy the component */
async destroy() {
await this.manager.destroy();
}
}
e("arcgis-weather", n);
export {
n as ArcgisWeather
};