@paraboly/pwc-multi-filter
Version:
A wrapper over pwc-tabview and pwc-filter. Provides means of dynamically managing multiple filters via a single component.
1 lines • 585 B
JavaScript
import{r as t,h as s}from"./p-8b276715.js";import{r}from"./p-4a9004ee.js";const i=class{constructor(s){t(this,s),this.resolvedItems=[],this.defaultItems=[],this.items=this.defaultItems}onItemsChanged(t){null==t?this.items=this.defaultItems:this.resolvedItems=r(t)}componentWillLoad(){this.onItemsChanged(this.items)}constructButton(t){return s("input",Object.assign({},t))}render(){return this.resolvedItems?this.resolvedItems.map(t=>this.constructButton(t)):""}static get watchers(){return{items:["onItemsChanged"]}}static get style(){return""}};export{i as pwc_dynamic_form_buttons};