UNPKG

@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 977 B
System.register(["./p-87a47b61.system.js","./p-0be54cc7.system.js"],(function(t){"use strict";var e,n,s;return{setters:[function(t){e=t.r;n=t.h},function(t){s=t.r}],execute:function(){var r=t("pwc_dynamic_form_buttons",function(){function t(t){e(this,t);this.resolvedItems=[];this.defaultItems=[];this.items=this.defaultItems}t.prototype.onItemsChanged=function(t){if(t===null||t===undefined){this.items=this.defaultItems}else{this.resolvedItems=s(t)}};t.prototype.componentWillLoad=function(){this.onItemsChanged(this.items)};t.prototype.constructButton=function(t){return n("input",Object.assign({},t))};t.prototype.render=function(){var t=this;return this.resolvedItems?this.resolvedItems.map((function(e){return t.constructButton(e)})):""};Object.defineProperty(t,"watchers",{get:function(){return{items:["onItemsChanged"]}},enumerable:true,configurable:true});Object.defineProperty(t,"style",{get:function(){return""},enumerable:true,configurable:true});return t}())}}}));