UNPKG

@larva.io/webcomponents

Version:

Fentrica SmartUnits WebComponents package

65 lines (61 loc) 2.29 kB
/*! * (C) Fentrica http://fentrica.com - Seee LICENSE.md */ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-C4h1muVj.js'; const analogValueCss = "slot-fb[hidden],slot[hidden]{display:initial !important}"; const LarvaAnalogValueNode = class { constructor(hostRef) { registerInstance(this, hostRef); this.output = createEvent(this, "output"); this.request = createEvent(this, "request"); /////// LarvaNode base properties /** * Component main icon */ this.icon = 'security'; /** * The color to use from your application's color palette. * Detrouble options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. */ this.color = 'primary'; /** * Is logging for this component enabled (lar-log subcomponent loaded) */ this.log = false; /** * Node size */ this.nodeSize = 'default'; this.loading = true; } componentDidLoad() { const el = this.el.shadowRoot || this.el; this.node = el.querySelector('lar-node'); this.output.emit(); } /** * Larva error input */ async error(data) { if (this.node) { this.node.error(data); } this.loading = false; } /** * Input Larva event message (see abow) */ async input(data) { this.text = data; this.loading = false; } render() { return [ h("lar-node", { key: 'a94a250125e83ca418dca8d17939f6dd1be54692', value: this.text, hideTitles: this.hideTitles, icon: this.icon, color: this.color, supTitle: this.supTitle, mainTitle: this.mainTitle, subTitle: this.subTitle, colorModal: this.colorModal, colorInputs: this.colorInputs, colorIconSmall: this.colorIconSmall, nodeSize: this.nodeSize, loading: this.loading, log: this.log }, h("slot", { key: 'efe620a30e5a88f639146f00b729c3a00045ac20' })) ]; } get el() { return getElement(this); } }; LarvaAnalogValueNode.style = analogValueCss; export { LarvaAnalogValueNode as lar_analog_value }; //# sourceMappingURL=lar-analog-value.entry.js.map