UNPKG

@revolist/revogrid

Version:

Virtual reactive data grid spreadsheet component - RevoGrid.

4 lines 897 B
/*! * Built by Revolist OU ❤️ */ import{proxyCustomElement as e,HTMLElement as r,h as t,transformTag as s}from"@stencil/core/internal/client";const n=e(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.nodes=[],this.update=1}async refresh(){this.update*=-1}render(){var e;return null===(e=this.nodes)||void 0===e?void 0:e.map((e=>{if("function"==typeof e){const r={},s=()=>[e({refresh:()=>{var e;return null===(e=r.refresh)||void 0===e?void 0:e.call(r)}})];return t("revogr-extra",{nodes:s(),ref:e=>{e&&(r.refresh=()=>{e.nodes=s()})}})}return e}))}},[0,"revogr-extra",{nodes:[16],update:[32],refresh:[64]}]);function o(){"undefined"!=typeof customElements&&["revogr-extra","revogr-extra"].forEach((e=>{switch(e){case"revogr-extra":customElements.get(s(e))||customElements.define(s(e),n);break;case"revogr-extra":customElements.get(s(e))||o()}}))}export{n as R,o as d}