@bento-core/facet-filter 1.0.1-icdc.15 → 1.0.1-icdc.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
18
18
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
19
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
20
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
21
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
21
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /* eslint-disable block-scoped-var */ /* eslint-disable no-plusplus */ /* eslint-disable no-unused-vars */ /* eslint-disable guard-for-in */ /* eslint-disable no-var */ /* eslint-disable vars-on-top */ /* eslint-disable no-restricted-syntax */ /* eslint-disable no-param-reassign */ /* eslint-disable space-infix-ops */ /* eslint-disable prefer-template */
22
22
  const FacetFilterController = props => {
23
23
  /**
24
24
  * update checkbox state
@@ -158,5 +158,4 @@ const FacetFilterController = props => {
158
158
  const mapStateToProps = state => ({
159
159
  filterState: state.statusReducer.filterState
160
160
  });
161
- var _default = (0, _reactRedux.connect)(mapStateToProps, null)(FacetFilterController);
162
- exports.default = _default;
161
+ var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, null)(FacetFilterController);
@@ -36,5 +36,4 @@ const BentoFacetFilter = _ref => {
36
36
  clearIcon: clearIcon
37
37
  }))))));
38
38
  };
39
- var _default = (0, _core.withStyles)(_FacetFilterStyle.default)(BentoFacetFilter);
40
- exports.default = _default;
39
+ var _default = exports.default = (0, _core.withStyles)(_FacetFilterStyle.default)(BentoFacetFilter);
@@ -176,5 +176,4 @@ const FacetView = _ref => {
176
176
  onClick: onExpandFacet
177
177
  }, "...expand to see all selections"));
178
178
  };
179
- var _default = (0, _core.withStyles)(_FacetStyle.default)(FacetView);
180
- exports.default = _default;
179
+ var _default = exports.default = (0, _core.withStyles)(_FacetStyle.default)(FacetView);
@@ -15,8 +15,8 @@ const mapStateToProps = state => {
15
15
  return {
16
16
  filterState: state.statusReducer.filterState,
17
17
  currentActionType: state.statusReducer.currentActionType,
18
- autoComplete: (state === null || state === void 0 ? void 0 : (_state$localFind = state.localFind) === null || _state$localFind === void 0 ? void 0 : _state$localFind.autocomplete) || [],
19
- upload: (state === null || state === void 0 ? void 0 : (_state$localFind2 = state.localFind) === null || _state$localFind2 === void 0 ? void 0 : _state$localFind2.upload) || []
18
+ autoComplete: (state === null || state === void 0 || (_state$localFind = state.localFind) === null || _state$localFind === void 0 ? void 0 : _state$localFind.autocomplete) || [],
19
+ upload: (state === null || state === void 0 || (_state$localFind2 = state.localFind) === null || _state$localFind2 === void 0 ? void 0 : _state$localFind2.upload) || []
20
20
  };
21
21
  };
22
22
  const mapDispatchToProps = dispatch => ({
@@ -28,5 +28,4 @@ const mapDispatchToProps = dispatch => ({
28
28
  dispatch((0, _Actions.clearSliderSection)(facet));
29
29
  }
30
30
  });
31
- var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ReduxFacetView);
32
- exports.default = _default;
31
+ var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ReduxFacetView);
@@ -14,7 +14,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
14
14
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
15
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
16
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
17
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /* eslint-disable react/jsx-wrap-multilines */ /* eslint-disable react/jsx-indent */
18
18
  const FilterItems = _ref => {
19
19
  let {
20
20
  facet,
@@ -49,5 +49,4 @@ const FilterItems = _ref => {
49
49
  };
50
50
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, filterItems());
51
51
  };
52
- var _default = FilterItems;
53
- exports.default = _default;
52
+ var _default = exports.default = FilterItems;
@@ -4,14 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.silderTypes = exports.InputTypes = void 0;
7
- const InputTypes = {
7
+ const InputTypes = exports.InputTypes = {
8
8
  CHECKBOX: 'checkbox',
9
9
  SLIDER: 'slider',
10
10
  LOCAL_SEARCH: 'local_search'
11
11
  };
12
- exports.InputTypes = InputTypes;
13
- const silderTypes = {
12
+ const silderTypes = exports.silderTypes = {
14
13
  INPUT_MIN: 'INPUT_MIN',
15
14
  INPUT_MAX: 'INPUT_MAX'
16
- };
17
- exports.silderTypes = silderTypes;
15
+ };
@@ -16,7 +16,8 @@ var _default = () => ({
16
16
  color: '#323232',
17
17
  fontFamily: 'Nunito',
18
18
  fontSize: '14px',
19
- fontWeight: '200'
19
+ fontWeight: '200',
20
+ maxWidth: '60%'
20
21
  },
21
22
  panelSubjectText: {
22
23
  color: '#323232',
@@ -112,5 +112,4 @@ const CheckBoxView = _ref => {
112
112
  }
113
113
  }));
114
114
  };
115
- var _default = (0, _styles.withStyles)(_CheckboxStyle.default)(CheckBoxView);
116
- exports.default = _default;
115
+ var _default = exports.default = (0, _styles.withStyles)(_CheckboxStyle.default)(CheckBoxView);
@@ -16,5 +16,4 @@ const mapStateToProps = state => ({
16
16
  const mapDispatchToProps = dispatch => ({
17
17
  onToggle: view => dispatch((0, _Actions.toggleCheckBox)(view))
18
18
  });
19
- var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ReduxCheckbox);
20
- exports.default = _default;
19
+ var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ReduxCheckbox);
@@ -43,5 +43,4 @@ function InputMinMaxView(_ref) {
43
43
  }
44
44
  });
45
45
  }
46
- var _default = (0, _styles.withStyles)(_InputMinMaxStyle.default)(InputMinMaxView);
47
- exports.default = _default;
46
+ var _default = exports.default = (0, _styles.withStyles)(_InputMinMaxStyle.default)(InputMinMaxView);
@@ -16,5 +16,4 @@ const mapStateToProps = state => ({
16
16
  const mapDispatchToProps = dispatch => ({
17
17
  onSliderToggle: slider => dispatch((0, _Actions.toggleSilder)(slider))
18
18
  });
19
- var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ReduxSlider);
20
- exports.default = _default;
19
+ var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ReduxSlider);
@@ -17,7 +17,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
17
17
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18
18
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
19
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
20
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /* eslint-disable no-unused-vars */ /* eslint-disable react/jsx-wrap-multilines */ /* eslint-disable react/jsx-indent */ /* eslint-disable object-curly-newline */
21
21
  const SliderView = _ref => {
22
22
  let {
23
23
  classes,
@@ -113,5 +113,4 @@ const SliderView = _ref => {
113
113
  className: isValid() ? classes.sliderText : classes.invalidSliderText
114
114
  }, sliderValue[0], ' - ', sliderValue[1], "\xA0", quantifier));
115
115
  };
116
- var _default = (0, _core.withStyles)(_SliderStyle.default)(SliderView);
117
- exports.default = _default;
116
+ var _default = exports.default = (0, _core.withStyles)(_SliderStyle.default)(SliderView);
@@ -43,5 +43,4 @@ const mapDispatchToProps = dispatch => ({
43
43
  dispatch((0, _Actions.clearAllFilters)());
44
44
  }
45
45
  });
46
- var _default = (0, _reactRedux.connect)(null, mapDispatchToProps)(ClearAllFiltersBtn);
47
- exports.default = _default;
46
+ var _default = exports.default = (0, _reactRedux.connect)(null, mapDispatchToProps)(ClearAllFiltersBtn);
@@ -42,5 +42,4 @@ const FacetSectionView = _ref => {
42
42
  id: section.sectionName
43
43
  }, children)));
44
44
  };
45
- var _default = (0, _core.withStyles)(_FacetSectionStyle.default)(FacetSectionView);
46
- exports.default = _default;
45
+ var _default = exports.default = (0, _core.withStyles)(_FacetSectionStyle.default)(FacetSectionView);
@@ -47,5 +47,4 @@ const CustomAccordionSummary = _ref => {
47
47
  }
48
48
  }, children);
49
49
  };
50
- var _default = (0, _core.withStyles)(_AccordionSummaryStyle.default)(CustomAccordionSummary);
51
- exports.default = _default;
50
+ var _default = exports.default = (0, _core.withStyles)(_AccordionSummaryStyle.default)(CustomAccordionSummary);
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.sideBarActionTypes = exports.Actions = void 0;
7
- const sideBarActionTypes = {
7
+ const sideBarActionTypes = exports.sideBarActionTypes = {
8
8
  FACET_VALUE_CHANGED: 'FACET_VALUE_CHANGED',
9
9
  ON_TOGGLE_SLIDER: 'ON_TOGGLE_SLIDER',
10
10
  CLEAR_ALL_FILTERS: 'CLEAR_ALL_FILTERS',
@@ -12,6 +12,4 @@ const sideBarActionTypes = {
12
12
  CLEAR_SLIDER_SECTION: 'CLEAR_SLIDER_SECTION',
13
13
  CLEAR_AND_SELECT_FACET_VALUE: 'CLEAR_AND_SELECT_FACET_VALUE'
14
14
  };
15
- exports.sideBarActionTypes = sideBarActionTypes;
16
- const Actions = '';
17
- exports.Actions = Actions;
15
+ const Actions = exports.Actions = '';
@@ -11,7 +11,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11
11
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
12
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
13
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
14
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /* eslint-disable no-case-declarations */
15
15
  const initFilterState = {};
16
16
  const onToggleStateUpdate = _ref => {
17
17
  let {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.sortType = exports.sortBySection = exports.sortByCheckedItem = exports.getNumberArray = void 0;
7
7
  /* eslint-disable camelcase */
8
- const sortType = {
8
+ const sortType = exports.sortType = {
9
9
  ALPHABET: 'ALPHABET',
10
10
  NUMERIC: 'NUMERIC',
11
11
  ALPHA_NUMERIC: 'ALPHA_NUMERIC',
@@ -19,7 +19,7 @@ const sortType = {
19
19
  * @param {array} checkboxData
20
20
  * @return {array}
21
21
  */
22
- exports.sortType = sortType;
22
+
23
23
  const sortByCheckedItem = sortfacetValues => sortfacetValues.sort((a, b) => b.isChecked - a.isChecked);
24
24
  exports.sortByCheckedItem = sortByCheckedItem;
25
25
  const startIndex = range => Number("".concat(range).split('-')[0]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/facet-filter",
3
- "version": "1.0.1-icdc.15",
3
+ "version": "1.0.1-icdc.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -11,6 +11,7 @@ export default () => ({
11
11
  fontFamily: 'Nunito',
12
12
  fontSize: '14px',
13
13
  fontWeight: '200',
14
+ maxWidth: '60%',
14
15
  },
15
16
  panelSubjectText: {
16
17
  color: '#323232',