2020-11-20 14:05:57 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import SearchPanel from 'core/components/searchbar/search-panel';
|
|
|
|
|
2021-01-07 13:21:17 +00:00
|
|
|
class Controller extends SearchPanel {
|
|
|
|
constructor($, $element) {
|
|
|
|
super($, $element);
|
|
|
|
|
|
|
|
this.filter = this.$.filter;
|
|
|
|
}
|
|
|
|
|
|
|
|
get shippedFrom() {
|
|
|
|
return this._shippedFrom;
|
|
|
|
}
|
|
|
|
|
|
|
|
set shippedFrom(value) {
|
|
|
|
this._shippedFrom = value;
|
|
|
|
|
|
|
|
if (!this.filter.shippedTo)
|
|
|
|
this.filter.shippedTo = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
get shippedTo() {
|
|
|
|
return this._shippedTo;
|
|
|
|
}
|
|
|
|
|
|
|
|
set shippedTo(value) {
|
|
|
|
this._shippedTo = value;
|
|
|
|
|
|
|
|
if (!this.filter.shippedFrom)
|
|
|
|
this.filter.shippedFrom = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
get landedFrom() {
|
|
|
|
return this._landedFrom;
|
|
|
|
}
|
|
|
|
|
|
|
|
set landedFrom(value) {
|
|
|
|
this._landedFrom = value;
|
|
|
|
|
|
|
|
if (!this.filter.landedTo)
|
|
|
|
this.filter.landedTo = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
get landedTo() {
|
|
|
|
return this._landedTo;
|
|
|
|
}
|
|
|
|
|
|
|
|
set landedTo(value) {
|
|
|
|
this._landedTo = value;
|
|
|
|
|
|
|
|
if (!this.filter.landedFrom)
|
|
|
|
this.filter.landedFrom = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-20 14:05:57 +00:00
|
|
|
ngModule.vnComponent('vnExtraCommunitySearchPanel', {
|
|
|
|
template: require('./index.html'),
|
2021-01-07 13:21:17 +00:00
|
|
|
controller: Controller
|
2020-11-20 14:05:57 +00:00
|
|
|
});
|