import ngModule from '../module'; import SearchPanel from 'core/components/searchbar/search-panel'; class Controller extends SearchPanel { constructor($element, $) { super($element, $); this.filter = {}; } get filter() { return this.$.filter; } set filter(value) { if (!value) value = {}; if (!value.values) value.values = [{}]; this.$.filter = value; } addValue() { this.filter.values.push({}); setTimeout(() => this.parentPopover.relocate()); } changeTag() { } } ngModule.vnComponent('vnOrderCatalogSearchPanel', { template: require('./index.html'), controller: Controller, bindings: { onSubmit: '&?', parentPopover: '