@bonlineza/luxity-lib 2.28.0 → 2.29.0

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.
package/StyleSelector.js CHANGED
@@ -817,10 +817,7 @@
817
817
  var _this$state = _this.state,
818
818
  limit = _this$state.limit,
819
819
  category = _this$state.category,
820
- nameFilter = _this$state.nameFilter,
821
- brands = _this$state.brands,
822
- models = _this$state.models,
823
- materials = _this$state.materials;
820
+ nameFilter = _this$state.nameFilter;
824
821
  var _this$props = _this.props,
825
822
  title = _this$props.title,
826
823
  baseClass = _this$props.baseClass,
@@ -841,10 +838,10 @@
841
838
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
842
839
  triggerRequest: function triggerRequest() {
843
840
  return requestInstance.post(graphApi, {
844
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
841
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
845
842
  });
846
843
  },
847
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
844
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
848
845
  identifier: identifier,
849
846
  ref: _this.multiSelectorRef,
850
847
  onChange: _this.onChange,
@@ -857,9 +854,6 @@
857
854
  _this.state = {
858
855
  limit: props.baseQueryLimit,
859
856
  category: props.category,
860
- brands: props.brands,
861
- models: props.models,
862
- materials: props.materials,
863
857
  nameFilter: ''
864
858
  };
865
859
  return _this;
@@ -868,23 +862,11 @@
868
862
  _createClass(LuxityGraphQLMultiselector, [{
869
863
  key: "componentDidUpdate",
870
864
  value: function componentDidUpdate(prevProps) {
871
- var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
865
+ var _this$multiSelectorRe;
872
866
 
873
867
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
874
868
  this.multiSelectorRef.current.emptySelected();
875
869
  }
876
-
877
- if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
878
- this.multiSelectorRef.current.emptySelected();
879
- }
880
-
881
- if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
882
- this.multiSelectorRef.current.emptySelected();
883
- }
884
-
885
- if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
886
- this.multiSelectorRef.current.emptySelected();
887
- }
888
870
  }
889
871
  }], [{
890
872
  key: "getDerivedStateFromProps",
@@ -895,24 +877,6 @@
895
877
  };
896
878
  }
897
879
 
898
- if (prevState.brands !== props.brands) {
899
- return {
900
- brands: props.brands
901
- };
902
- }
903
-
904
- if (prevState.models !== props.models) {
905
- return {
906
- models: props.models
907
- };
908
- }
909
-
910
- if (prevState.materials !== props.materials) {
911
- return {
912
- materials: props.materials
913
- };
914
- }
915
-
916
880
  return null;
917
881
  }
918
882
  }]);
@@ -983,10 +947,7 @@
983
947
  itemRenderer = _ref.itemRenderer,
984
948
  getGraphQuery = _ref.getGraphQuery,
985
949
  resultProcessor = _ref.resultProcessor,
986
- requestInstance = _ref.requestInstance,
987
- brands = _ref.brands,
988
- models = _ref.models,
989
- materials = _ref.materials;
950
+ requestInstance = _ref.requestInstance;
990
951
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
991
952
  title: "Styles",
992
953
  queryId: "getStyles",
@@ -995,9 +956,6 @@
995
956
  identifier: "style-selector",
996
957
  searchPlaceHolder: "Search Styles",
997
958
  category: category,
998
- brands: brands,
999
- models: models,
1000
- materials: materials,
1001
959
  onChange: onChange,
1002
960
  graphApi: graphApi,
1003
961
  itemRenderer: itemRenderer,