UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

31 lines (29 loc) 3.83 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = MultiSelectFilterFactory; var _react = _interopRequireDefault(require("react")); var _itemSelector = _interopRequireDefault(require("../common/item-selector/item-selector")); var _styledComponents = require("../common/styled-components"); var _localization = require("@kepler.gl/localization"); // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project function MultiSelectFilterFactory() { var MultiSelectFilter = function MultiSelectFilter(_ref) { var filter = _ref.filter, setFilter = _ref.setFilter; return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_styledComponents.PanelLabel, { htmlFor: "filter-".concat(filter.id) }, /*#__PURE__*/_react["default"].createElement(_localization.FormattedMessage, { id: 'misc.valuesIn' })), /*#__PURE__*/_react["default"].createElement(_itemSelector["default"], { options: filter.domain, selectedItems: filter.value, onChange: setFilter })); }; return MultiSelectFilter; } //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9pdGVtU2VsZWN0b3IiLCJfc3R5bGVkQ29tcG9uZW50cyIsIl9sb2NhbGl6YXRpb24iLCJNdWx0aVNlbGVjdEZpbHRlckZhY3RvcnkiLCJNdWx0aVNlbGVjdEZpbHRlciIsIl9yZWYiLCJmaWx0ZXIiLCJzZXRGaWx0ZXIiLCJjcmVhdGVFbGVtZW50IiwiUGFuZWxMYWJlbCIsImh0bWxGb3IiLCJjb25jYXQiLCJpZCIsIkZvcm1hdHRlZE1lc3NhZ2UiLCJvcHRpb25zIiwiZG9tYWluIiwic2VsZWN0ZWRJdGVtcyIsInZhbHVlIiwib25DaGFuZ2UiXSwic291cmNlcyI6WyIuLi8uLi9zcmMvZmlsdGVycy9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