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.

37 lines (32 loc) 1.16 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const core = require('./core-d69cee64.js'); const PwcTabviewTab = class { constructor(hostRef) { core.registerInstance(this, hostRef); this.defaultActive = false; this.active = this.defaultActive; this.tabModified = core.createEvent(this, "tabModified", 7); } titleWatchHandler() { this.tabModified.emit(); } activeWatchHandler(newValue) { if (newValue === null || newValue === undefined) { this.active = this.defaultActive; } } componentWillRender() { this.activeWatchHandler(this.active); } render() { return core.h("slot", null); } get root() { return core.getElement(this); } static get watchers() { return { "title": ["titleWatchHandler"], "active": ["activeWatchHandler"] }; } static get style() { return "pwc-tabview-tab {\n display: none;\n border: 1px solid black;\n padding: 10px;\n background-color: white;\n}\n\npwc-tabview-tab[active] {\n display: block;\n}"; } }; exports.pwc_tabview_tab = PwcTabviewTab;