@bonlineza/luxity-lib 2.17.5 → 2.18.1

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.
@@ -10323,7 +10323,10 @@
10323
10323
  var _this$state = _this.state,
10324
10324
  limit = _this$state.limit,
10325
10325
  category = _this$state.category,
10326
- nameFilter = _this$state.nameFilter;
10326
+ nameFilter = _this$state.nameFilter,
10327
+ brands = _this$state.brands,
10328
+ models = _this$state.models,
10329
+ materials = _this$state.materials;
10327
10330
  var _this$props = _this.props,
10328
10331
  title = _this$props.title,
10329
10332
  baseClass = _this$props.baseClass,
@@ -10344,10 +10347,10 @@
10344
10347
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
10345
10348
  triggerRequest: function triggerRequest() {
10346
10349
  return requestInstance.post(graphApi, {
10347
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
10350
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
10348
10351
  });
10349
10352
  },
10350
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
10353
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
10351
10354
  identifier: identifier,
10352
10355
  ref: _this.multiSelectorRef,
10353
10356
  onChange: _this.onChange,
@@ -10360,6 +10363,9 @@
10360
10363
  _this.state = {
10361
10364
  limit: props.baseQueryLimit,
10362
10365
  category: props.category,
10366
+ brands: props.brands,
10367
+ models: props.models,
10368
+ materials: props.materials,
10363
10369
  nameFilter: ''
10364
10370
  };
10365
10371
  return _this;
@@ -10368,11 +10374,23 @@
10368
10374
  _createClass(LuxityGraphQLMultiselector, [{
10369
10375
  key: "componentDidUpdate",
10370
10376
  value: function componentDidUpdate(prevProps) {
10371
- var _this$multiSelectorRe;
10377
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
10372
10378
 
10373
10379
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
10374
10380
  this.multiSelectorRef.current.emptySelected();
10375
10381
  }
10382
+
10383
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
10384
+ this.multiSelectorRef.current.emptySelected();
10385
+ }
10386
+
10387
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
10388
+ this.multiSelectorRef.current.emptySelected();
10389
+ }
10390
+
10391
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
10392
+ this.multiSelectorRef.current.emptySelected();
10393
+ }
10376
10394
  }
10377
10395
  }], [{
10378
10396
  key: "getDerivedStateFromProps",
@@ -10383,6 +10401,24 @@
10383
10401
  };
10384
10402
  }
10385
10403
 
10404
+ if (prevState.brands !== props.brands) {
10405
+ return {
10406
+ brands: props.brands
10407
+ };
10408
+ }
10409
+
10410
+ if (prevState.models !== props.models) {
10411
+ return {
10412
+ models: props.models
10413
+ };
10414
+ }
10415
+
10416
+ if (prevState.materials !== props.materials) {
10417
+ return {
10418
+ materials: props.materials
10419
+ };
10420
+ }
10421
+
10386
10422
  return null;
10387
10423
  }
10388
10424
  }]);
@@ -10431,7 +10467,10 @@
10431
10467
  itemRenderer = _ref.itemRenderer,
10432
10468
  getGraphQuery = _ref.getGraphQuery,
10433
10469
  resultProcessor = _ref.resultProcessor,
10434
- requestInstance = _ref.requestInstance;
10470
+ requestInstance = _ref.requestInstance,
10471
+ brands = _ref.brands,
10472
+ models = _ref.models,
10473
+ materials = _ref.materials;
10435
10474
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10436
10475
  title: "Styles",
10437
10476
  queryId: "getStyles",
@@ -10440,6 +10479,9 @@
10440
10479
  identifier: "style-selector",
10441
10480
  searchPlaceHolder: "Search Styles",
10442
10481
  category: category,
10482
+ brands: brands,
10483
+ models: models,
10484
+ materials: materials,
10443
10485
  onChange: onChange,
10444
10486
  graphApi: graphApi,
10445
10487
  itemRenderer: itemRenderer,
@@ -10967,7 +11009,8 @@
10967
11009
  _this.setState({
10968
11010
  brands: brandsArray.map(function (brand) {
10969
11011
  return brand.value;
10970
- })
11012
+ }),
11013
+ styles: []
10971
11014
  });
10972
11015
  });
10973
11016
 
@@ -10991,7 +11034,8 @@
10991
11034
  _this.setState({
10992
11035
  models: modelsArray.map(function (model) {
10993
11036
  return model.value;
10994
- })
11037
+ }),
11038
+ styles: []
10995
11039
  });
10996
11040
  });
10997
11041
 
@@ -10999,7 +11043,8 @@
10999
11043
  _this.setState({
11000
11044
  materials: materialsArray.map(function (material) {
11001
11045
  return material.value;
11002
- })
11046
+ }),
11047
+ styles: []
11003
11048
  });
11004
11049
  });
11005
11050
 
@@ -11102,7 +11147,9 @@
11102
11147
  var _this$state2 = _this.state,
11103
11148
  category_type = _this$state2.category_type,
11104
11149
  fetching = _this$state2.request.fetching,
11105
- brands = _this$state2.brands;
11150
+ brands = _this$state2.brands,
11151
+ models = _this$state2.models,
11152
+ materials = _this$state2.materials;
11106
11153
  var _this$props = _this.props,
11107
11154
  requestInstance = _this$props.requestInstance,
11108
11155
  baseGraphApi = _this$props.baseGraphApi,
@@ -11153,7 +11200,10 @@
11153
11200
  onChange: _this.onStylesChanged,
11154
11201
  requestInstance: requestInstance,
11155
11202
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11156
- getGraphQuery: getStylesGraphQuery
11203
+ getGraphQuery: getStylesGraphQuery,
11204
+ brands: brands,
11205
+ models: models,
11206
+ materials: materials
11157
11207
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11158
11208
  className: "fl-right"
11159
11209
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -817,7 +817,10 @@
817
817
  var _this$state = _this.state,
818
818
  limit = _this$state.limit,
819
819
  category = _this$state.category,
820
- nameFilter = _this$state.nameFilter;
820
+ nameFilter = _this$state.nameFilter,
821
+ brands = _this$state.brands,
822
+ models = _this$state.models,
823
+ materials = _this$state.materials;
821
824
  var _this$props = _this.props,
822
825
  title = _this$props.title,
823
826
  baseClass = _this$props.baseClass,
@@ -838,10 +841,10 @@
838
841
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
839
842
  triggerRequest: function triggerRequest() {
840
843
  return requestInstance.post(graphApi, {
841
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
844
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
842
845
  });
843
846
  },
844
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
847
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
845
848
  identifier: identifier,
846
849
  ref: _this.multiSelectorRef,
847
850
  onChange: _this.onChange,
@@ -854,6 +857,9 @@
854
857
  _this.state = {
855
858
  limit: props.baseQueryLimit,
856
859
  category: props.category,
860
+ brands: props.brands,
861
+ models: props.models,
862
+ materials: props.materials,
857
863
  nameFilter: ''
858
864
  };
859
865
  return _this;
@@ -862,11 +868,23 @@
862
868
  _createClass(LuxityGraphQLMultiselector, [{
863
869
  key: "componentDidUpdate",
864
870
  value: function componentDidUpdate(prevProps) {
865
- var _this$multiSelectorRe;
871
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
866
872
 
867
873
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
868
874
  this.multiSelectorRef.current.emptySelected();
869
875
  }
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
+ }
870
888
  }
871
889
  }], [{
872
890
  key: "getDerivedStateFromProps",
@@ -877,6 +895,24 @@
877
895
  };
878
896
  }
879
897
 
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
+
880
916
  return null;
881
917
  }
882
918
  }]);
@@ -10323,7 +10323,10 @@
10323
10323
  var _this$state = _this.state,
10324
10324
  limit = _this$state.limit,
10325
10325
  category = _this$state.category,
10326
- nameFilter = _this$state.nameFilter;
10326
+ nameFilter = _this$state.nameFilter,
10327
+ brands = _this$state.brands,
10328
+ models = _this$state.models,
10329
+ materials = _this$state.materials;
10327
10330
  var _this$props = _this.props,
10328
10331
  title = _this$props.title,
10329
10332
  baseClass = _this$props.baseClass,
@@ -10344,10 +10347,10 @@
10344
10347
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
10345
10348
  triggerRequest: function triggerRequest() {
10346
10349
  return requestInstance.post(graphApi, {
10347
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
10350
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
10348
10351
  });
10349
10352
  },
10350
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
10353
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
10351
10354
  identifier: identifier,
10352
10355
  ref: _this.multiSelectorRef,
10353
10356
  onChange: _this.onChange,
@@ -10360,6 +10363,9 @@
10360
10363
  _this.state = {
10361
10364
  limit: props.baseQueryLimit,
10362
10365
  category: props.category,
10366
+ brands: props.brands,
10367
+ models: props.models,
10368
+ materials: props.materials,
10363
10369
  nameFilter: ''
10364
10370
  };
10365
10371
  return _this;
@@ -10368,11 +10374,23 @@
10368
10374
  _createClass(LuxityGraphQLMultiselector, [{
10369
10375
  key: "componentDidUpdate",
10370
10376
  value: function componentDidUpdate(prevProps) {
10371
- var _this$multiSelectorRe;
10377
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
10372
10378
 
10373
10379
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
10374
10380
  this.multiSelectorRef.current.emptySelected();
10375
10381
  }
10382
+
10383
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
10384
+ this.multiSelectorRef.current.emptySelected();
10385
+ }
10386
+
10387
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
10388
+ this.multiSelectorRef.current.emptySelected();
10389
+ }
10390
+
10391
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
10392
+ this.multiSelectorRef.current.emptySelected();
10393
+ }
10376
10394
  }
10377
10395
  }], [{
10378
10396
  key: "getDerivedStateFromProps",
@@ -10383,6 +10401,24 @@
10383
10401
  };
10384
10402
  }
10385
10403
 
10404
+ if (prevState.brands !== props.brands) {
10405
+ return {
10406
+ brands: props.brands
10407
+ };
10408
+ }
10409
+
10410
+ if (prevState.models !== props.models) {
10411
+ return {
10412
+ models: props.models
10413
+ };
10414
+ }
10415
+
10416
+ if (prevState.materials !== props.materials) {
10417
+ return {
10418
+ materials: props.materials
10419
+ };
10420
+ }
10421
+
10386
10422
  return null;
10387
10423
  }
10388
10424
  }]);
@@ -10431,7 +10467,10 @@
10431
10467
  itemRenderer = _ref.itemRenderer,
10432
10468
  getGraphQuery = _ref.getGraphQuery,
10433
10469
  resultProcessor = _ref.resultProcessor,
10434
- requestInstance = _ref.requestInstance;
10470
+ requestInstance = _ref.requestInstance,
10471
+ brands = _ref.brands,
10472
+ models = _ref.models,
10473
+ materials = _ref.materials;
10435
10474
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10436
10475
  title: "Styles",
10437
10476
  queryId: "getStyles",
@@ -10440,6 +10479,9 @@
10440
10479
  identifier: "style-selector",
10441
10480
  searchPlaceHolder: "Search Styles",
10442
10481
  category: category,
10482
+ brands: brands,
10483
+ models: models,
10484
+ materials: materials,
10443
10485
  onChange: onChange,
10444
10486
  graphApi: graphApi,
10445
10487
  itemRenderer: itemRenderer,
@@ -10932,7 +10974,8 @@
10932
10974
  _this.setState({
10933
10975
  brands: brandsArray.map(function (brand) {
10934
10976
  return brand.value;
10935
- })
10977
+ }),
10978
+ styles: []
10936
10979
  });
10937
10980
  });
10938
10981
 
@@ -10956,7 +10999,8 @@
10956
10999
  _this.setState({
10957
11000
  models: modelsArray.map(function (model) {
10958
11001
  return model.value;
10959
- })
11002
+ }),
11003
+ styles: []
10960
11004
  });
10961
11005
  });
10962
11006
 
@@ -10964,7 +11008,8 @@
10964
11008
  _this.setState({
10965
11009
  materials: materialsArray.map(function (material) {
10966
11010
  return material.value;
10967
- })
11011
+ }),
11012
+ styles: []
10968
11013
  });
10969
11014
  });
10970
11015
 
@@ -11067,7 +11112,9 @@
11067
11112
  var _this$state2 = _this.state,
11068
11113
  category_type = _this$state2.category_type,
11069
11114
  fetching = _this$state2.request.fetching,
11070
- brands = _this$state2.brands;
11115
+ brands = _this$state2.brands,
11116
+ models = _this$state2.models,
11117
+ materials = _this$state2.materials;
11071
11118
  var _this$props = _this.props,
11072
11119
  requestInstance = _this$props.requestInstance,
11073
11120
  baseGraphApi = _this$props.baseGraphApi,
@@ -11118,7 +11165,10 @@
11118
11165
  onChange: _this.onStylesChanged,
11119
11166
  requestInstance: requestInstance,
11120
11167
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11121
- getGraphQuery: getStylesGraphQuery
11168
+ getGraphQuery: getStylesGraphQuery,
11169
+ brands: brands,
11170
+ models: models,
11171
+ materials: materials
11122
11172
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11123
11173
  className: "fl-right"
11124
11174
  }, /*#__PURE__*/React__default.createElement("div", {
package/ModelSelector.js CHANGED
@@ -10323,7 +10323,10 @@
10323
10323
  var _this$state = _this.state,
10324
10324
  limit = _this$state.limit,
10325
10325
  category = _this$state.category,
10326
- nameFilter = _this$state.nameFilter;
10326
+ nameFilter = _this$state.nameFilter,
10327
+ brands = _this$state.brands,
10328
+ models = _this$state.models,
10329
+ materials = _this$state.materials;
10327
10330
  var _this$props = _this.props,
10328
10331
  title = _this$props.title,
10329
10332
  baseClass = _this$props.baseClass,
@@ -10344,10 +10347,10 @@
10344
10347
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
10345
10348
  triggerRequest: function triggerRequest() {
10346
10349
  return requestInstance.post(graphApi, {
10347
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
10350
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
10348
10351
  });
10349
10352
  },
10350
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
10353
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
10351
10354
  identifier: identifier,
10352
10355
  ref: _this.multiSelectorRef,
10353
10356
  onChange: _this.onChange,
@@ -10360,6 +10363,9 @@
10360
10363
  _this.state = {
10361
10364
  limit: props.baseQueryLimit,
10362
10365
  category: props.category,
10366
+ brands: props.brands,
10367
+ models: props.models,
10368
+ materials: props.materials,
10363
10369
  nameFilter: ''
10364
10370
  };
10365
10371
  return _this;
@@ -10368,11 +10374,23 @@
10368
10374
  _createClass(LuxityGraphQLMultiselector, [{
10369
10375
  key: "componentDidUpdate",
10370
10376
  value: function componentDidUpdate(prevProps) {
10371
- var _this$multiSelectorRe;
10377
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
10372
10378
 
10373
10379
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
10374
10380
  this.multiSelectorRef.current.emptySelected();
10375
10381
  }
10382
+
10383
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
10384
+ this.multiSelectorRef.current.emptySelected();
10385
+ }
10386
+
10387
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
10388
+ this.multiSelectorRef.current.emptySelected();
10389
+ }
10390
+
10391
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
10392
+ this.multiSelectorRef.current.emptySelected();
10393
+ }
10376
10394
  }
10377
10395
  }], [{
10378
10396
  key: "getDerivedStateFromProps",
@@ -10383,6 +10401,24 @@
10383
10401
  };
10384
10402
  }
10385
10403
 
10404
+ if (prevState.brands !== props.brands) {
10405
+ return {
10406
+ brands: props.brands
10407
+ };
10408
+ }
10409
+
10410
+ if (prevState.models !== props.models) {
10411
+ return {
10412
+ models: props.models
10413
+ };
10414
+ }
10415
+
10416
+ if (prevState.materials !== props.materials) {
10417
+ return {
10418
+ materials: props.materials
10419
+ };
10420
+ }
10421
+
10386
10422
  return null;
10387
10423
  }
10388
10424
  }]);
@@ -10431,7 +10467,10 @@
10431
10467
  itemRenderer = _ref.itemRenderer,
10432
10468
  getGraphQuery = _ref.getGraphQuery,
10433
10469
  resultProcessor = _ref.resultProcessor,
10434
- requestInstance = _ref.requestInstance;
10470
+ requestInstance = _ref.requestInstance,
10471
+ brands = _ref.brands,
10472
+ models = _ref.models,
10473
+ materials = _ref.materials;
10435
10474
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10436
10475
  title: "Styles",
10437
10476
  queryId: "getStyles",
@@ -10440,6 +10479,9 @@
10440
10479
  identifier: "style-selector",
10441
10480
  searchPlaceHolder: "Search Styles",
10442
10481
  category: category,
10482
+ brands: brands,
10483
+ models: models,
10484
+ materials: materials,
10443
10485
  onChange: onChange,
10444
10486
  graphApi: graphApi,
10445
10487
  itemRenderer: itemRenderer,
@@ -10932,7 +10974,8 @@
10932
10974
  _this.setState({
10933
10975
  brands: brandsArray.map(function (brand) {
10934
10976
  return brand.value;
10935
- })
10977
+ }),
10978
+ styles: []
10936
10979
  });
10937
10980
  });
10938
10981
 
@@ -10956,7 +10999,8 @@
10956
10999
  _this.setState({
10957
11000
  models: modelsArray.map(function (model) {
10958
11001
  return model.value;
10959
- })
11002
+ }),
11003
+ styles: []
10960
11004
  });
10961
11005
  });
10962
11006
 
@@ -10964,7 +11008,8 @@
10964
11008
  _this.setState({
10965
11009
  materials: materialsArray.map(function (material) {
10966
11010
  return material.value;
10967
- })
11011
+ }),
11012
+ styles: []
10968
11013
  });
10969
11014
  });
10970
11015
 
@@ -11067,7 +11112,9 @@
11067
11112
  var _this$state2 = _this.state,
11068
11113
  category_type = _this$state2.category_type,
11069
11114
  fetching = _this$state2.request.fetching,
11070
- brands = _this$state2.brands;
11115
+ brands = _this$state2.brands,
11116
+ models = _this$state2.models,
11117
+ materials = _this$state2.materials;
11071
11118
  var _this$props = _this.props,
11072
11119
  requestInstance = _this$props.requestInstance,
11073
11120
  baseGraphApi = _this$props.baseGraphApi,
@@ -11118,7 +11165,10 @@
11118
11165
  onChange: _this.onStylesChanged,
11119
11166
  requestInstance: requestInstance,
11120
11167
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11121
- getGraphQuery: getStylesGraphQuery
11168
+ getGraphQuery: getStylesGraphQuery,
11169
+ brands: brands,
11170
+ models: models,
11171
+ materials: materials
11122
11172
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11123
11173
  className: "fl-right"
11124
11174
  }, /*#__PURE__*/React__default.createElement("div", {
package/RareStepHeader.js CHANGED
@@ -642,14 +642,12 @@
642
642
 
643
643
  return /*#__PURE__*/React__default.createElement(React.Fragment, null, links.top.map(function (link, index) {
644
644
  return link !== null && link !== void 0 && link.isSubMenu ? /*#__PURE__*/React__default.createElement(SubMenuLinkContainer, {
645
- key: index
646
- }, /*#__PURE__*/React__default.createElement(SideNavLink, {
647
- href: link.url
648
- }, link.name), /*#__PURE__*/React__default.createElement(SubMenuRightIcon, {
649
- src: rightArrowIconUrl,
650
645
  onClick: function onClick() {
651
646
  return setShowSideNavSubMenu(true);
652
- }
647
+ },
648
+ key: index
649
+ }, /*#__PURE__*/React__default.createElement(SideNavLink, null, link.name), /*#__PURE__*/React__default.createElement(SubMenuRightIcon, {
650
+ src: rightArrowIconUrl
653
651
  })) : /*#__PURE__*/React__default.createElement(SideNavLink, {
654
652
  key: index,
655
653
  href: link.url
package/StyleSelector.js CHANGED
@@ -817,7 +817,10 @@
817
817
  var _this$state = _this.state,
818
818
  limit = _this$state.limit,
819
819
  category = _this$state.category,
820
- nameFilter = _this$state.nameFilter;
820
+ nameFilter = _this$state.nameFilter,
821
+ brands = _this$state.brands,
822
+ models = _this$state.models,
823
+ materials = _this$state.materials;
821
824
  var _this$props = _this.props,
822
825
  title = _this$props.title,
823
826
  baseClass = _this$props.baseClass,
@@ -838,10 +841,10 @@
838
841
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
839
842
  triggerRequest: function triggerRequest() {
840
843
  return requestInstance.post(graphApi, {
841
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
844
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
842
845
  });
843
846
  },
844
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
847
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
845
848
  identifier: identifier,
846
849
  ref: _this.multiSelectorRef,
847
850
  onChange: _this.onChange,
@@ -854,6 +857,9 @@
854
857
  _this.state = {
855
858
  limit: props.baseQueryLimit,
856
859
  category: props.category,
860
+ brands: props.brands,
861
+ models: props.models,
862
+ materials: props.materials,
857
863
  nameFilter: ''
858
864
  };
859
865
  return _this;
@@ -862,11 +868,23 @@
862
868
  _createClass(LuxityGraphQLMultiselector, [{
863
869
  key: "componentDidUpdate",
864
870
  value: function componentDidUpdate(prevProps) {
865
- var _this$multiSelectorRe;
871
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
866
872
 
867
873
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
868
874
  this.multiSelectorRef.current.emptySelected();
869
875
  }
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
+ }
870
888
  }
871
889
  }], [{
872
890
  key: "getDerivedStateFromProps",
@@ -877,6 +895,24 @@
877
895
  };
878
896
  }
879
897
 
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
+
880
916
  return null;
881
917
  }
882
918
  }]);
@@ -947,7 +983,10 @@
947
983
  itemRenderer = _ref.itemRenderer,
948
984
  getGraphQuery = _ref.getGraphQuery,
949
985
  resultProcessor = _ref.resultProcessor,
950
- requestInstance = _ref.requestInstance;
986
+ requestInstance = _ref.requestInstance,
987
+ brands = _ref.brands,
988
+ models = _ref.models,
989
+ materials = _ref.materials;
951
990
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
952
991
  title: "Styles",
953
992
  queryId: "getStyles",
@@ -956,6 +995,9 @@
956
995
  identifier: "style-selector",
957
996
  searchPlaceHolder: "Search Styles",
958
997
  category: category,
998
+ brands: brands,
999
+ models: models,
1000
+ materials: materials,
959
1001
  onChange: onChange,
960
1002
  graphApi: graphApi,
961
1003
  itemRenderer: itemRenderer,