How to use the @appbaseio/reactivemaps.AppbaseSensorHelper.URLParams function in @appbaseio/reactivemaps

To help you get started, we’ve selected a few @appbaseio/reactivemaps examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appbaseio / reactivesearch / app / sensors / NestedList.js View on Github external
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";
	}
github appbaseio / reactivesearch / app / sensors / NestedMultiList.js View on Github external
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";
	}
github appbaseio / reactivesearch / app / sensors / NestedList.js View on Github external
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);
		};
github appbaseio / reactivesearch / app / sensors / RatingsFilter.js View on Github external
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);
	}
github appbaseio / reactivesearch / app / sensors / CategorySearch.js View on Github external
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);
		};
github appbaseio / reactivesearch / app / sensors / ToggleList.js View on Github external
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);
	}
github appbaseio / reactivesearch / app / sensors / CategorySearch.js View on Github external
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);
	}
github appbaseio / reactivesearch / app / sensors / ToggleList.js View on Github external
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);
				};
github appbaseio / reactivesearch / app / sensors / TagCloud.js View on Github external
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);
	}
github appbaseio / reactivesearch / app / sensors / TagCloud.js View on Github external
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);
			};