UNPKG

@larva.io/webcomponents

Version:

Fentrica SmartUnits WebComponents package

67 lines (62 loc) 2.28 kB
/*! * (C) Fentrica http://fentrica.com - Seee LICENSE.md */ 'use strict'; var index = require('./index-B0SElCD3.js'); const analogValueCss = "slot-fb[hidden],slot[hidden]{display:initial !important}"; const LarvaAnalogValueNode = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.output = index.createEvent(this, "output"); this.request = index.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 [ index.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 }, index.h("slot", { key: 'efe620a30e5a88f639146f00b729c3a00045ac20' })) ]; } get el() { return index.getElement(this); } }; LarvaAnalogValueNode.style = analogValueCss; exports.lar_analog_value = LarvaAnalogValueNode; //# sourceMappingURL=lar-analog-value.entry.cjs.js.map