Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hits: {
hits: []
}
},
subItems: [],
selectedValues: []
};
this.nested = [
"nestedParentaggs"
];
this.sortObj = {
aggSort: this.props.sortBy
};
this.channelId = null;
this.channelListener = null;
this.urlParams = props.URLParams ? helper.URLParams.get(props.componentId) : null;
this.urlParams = this.urlParams ? this.urlParams.split("/") : null;
this.filterBySearch = this.filterBySearch.bind(this);
this.onItemSelect = this.onItemSelect.bind(this);
this.onItemClick = this.onItemClick.bind(this);
this.customQuery = this.customQuery.bind(this);
this.handleSelect = this.handleSelect.bind(this);
this.nestedAggQuery = this.nestedAggQuery.bind(this);
this.type = "term";
}
hits: {
hits: []
}
},
subItems: [],
selectedValues: {}
};
this.nested = [
"nestedParentaggs"
];
this.sortObj = {
aggSort: this.props.sortBy
};
this.channelId = null;
this.channelListener = null;
this.urlParams = props.URLParams ? helper.URLParams.get(props.componentId) : null;
this.urlParams = this.urlParams ? this.urlParams.split("/") : null;
this.filterBySearch = this.filterBySearch.bind(this);
this.onItemClick = this.onItemClick.bind(this);
this.customQuery = this.customQuery.bind(this);
this.handleSelect = this.handleSelect.bind(this);
this.nestedAggQuery = this.nestedAggQuery.bind(this);
this.type = "term";
}
const execQuery = () => {
if (this.props.onValueChange) {
this.props.onValueChange(obj.value);
}
const paramValue = value && value.length ? value.join("/") : null;
if (this.props.URLParams) {
helper.URLParams.update(this.props.componentId, paramValue, this.props.URLParams);
}
helper.selectedSensor.set(obj, isExecuteQuery);
};
constructor(props) {
super(props);
this.state = {
selected: null
};
this.type = "range";
this.urlParams = props.URLParams ? helper.URLParams.get(props.componentId, false, true) : null;
this.handleChange = this.handleChange.bind(this);
this.customQuery = this.customQuery.bind(this);
}
const execQuery = () => {
if (this.props.onValueChange) {
this.props.onValueChange(obj.value);
}
if (this.props.URLParams) {
helper.URLParams.update(this.props.componentId, finalVal ? finalVal.value : null, this.props.URLParams);
}
helper.selectedSensor.set(obj, true);
};
constructor(props) {
super(props);
this.state = {
selected: []
};
this.type = "term";
this.urlParams = helper.URLParams.get(this.props.componentId, true);
this.defaultSelected = null;
this.handleChange = this.handleChange.bind(this);
this.customQuery = this.customQuery.bind(this);
}
value: null
},
isLoading: false,
options: [],
rawData: {
hits: {
hits: []
}
}
};
this.selectedCategory = null;
this.searchInputId = `internal-${props.componentId}`;
this.type = "match_phrase";
this.channelId = null;
this.channelListener = null;
this.urlParams = props.URLParams ? helper.URLParams.get(props.componentId) : null;
this.fieldType = typeof props.dataField;
this.handleSearch = this.handleSearch.bind(this);
this.optionRenderer = this.optionRenderer.bind(this);
this.setValue = this.setValue.bind(this);
this.defaultSearchQuery = this.defaultSearchQuery.bind(this);
this.previousSelectedSensor = {};
this.clearSuggestions = this.clearSuggestions.bind(this);
this.onSuggestionSelected = this.onSuggestionSelected.bind(this);
this.getSuggestionValue = this.getSuggestionValue.bind(this);
this.onInputChange = this.onInputChange.bind(this);
this.handleBlur = this.handleBlur.bind(this);
this.handleKeyPress = this.handleKeyPress.bind(this);
this.handleInputChange = this.handleInputChange.bind(this);
this.renderSuggestion = this.renderSuggestion.bind(this);
}
const execQuery = () => {
if(this.props.onValueChange) {
this.props.onValueChange(obj.value);
}
helper.URLParams.update(this.props.componentId, this.setURLParam(obj.value), this.props.URLParams);
helper.selectedSensor.set(obj, true);
};
storedItems: [],
rawData: {
hits: {
hits: []
}
},
queryStart: false
};
this.sortObj = {
aggSort: "asc"
};
this.highestCount = 0;
this.previousSelectedSensor = {};
this.channelId = null;
this.channelListener = null;
this.urlParams = props.URLParams ? helper.URLParams.get(props.componentId, props.multiSelect) : null;
this.type = this.props.multiSelect ? "terms" : "term";
this.customQuery = this.customQuery.bind(this);
this.defaultCustomQuery = this.defaultCustomQuery.bind(this);
}
const execQuery = () => {
if (this.props.onValueChange) {
this.props.onValueChange(obj.value);
}
if (this.props.URLParams) {
helper.URLParams.update(this.props.componentId, obj.value, this.props.URLParams);
}
helper.selectedSensor.set(obj, true);
};