@bento-core/facet-filter 1.0.1-icdc.7 → 1.0.1-icdc.9
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.
|
@@ -91,12 +91,14 @@ function sideBarReducerGenerator() {
|
|
|
91
91
|
case _ActionTypes.sideBarActionTypes.FACET_VALUE_CHANGED:
|
|
92
92
|
updateState = onToggleStateUpdate(_objectSpread(_objectSpread({}, state), payload));
|
|
93
93
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
94
|
-
filterState: _objectSpread({}, updateState)
|
|
94
|
+
filterState: _objectSpread({}, updateState),
|
|
95
|
+
currentActionType: _ActionTypes.sideBarActionTypes.FACET_VALUE_CHANGED
|
|
95
96
|
});
|
|
96
97
|
case _ActionTypes.sideBarActionTypes.ON_TOGGLE_SLIDER:
|
|
97
98
|
updateState = updateSiderValue(_objectSpread(_objectSpread({}, state), payload));
|
|
98
99
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
99
|
-
filterState: _objectSpread({}, updateState)
|
|
100
|
+
filterState: _objectSpread({}, updateState),
|
|
101
|
+
currentActionType: _ActionTypes.sideBarActionTypes.ON_TOGGLE_SLIDER
|
|
100
102
|
});
|
|
101
103
|
case _ActionTypes.sideBarActionTypes.CLEAR_ALL_FILTERS:
|
|
102
104
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
@@ -119,14 +121,14 @@ function sideBarReducerGenerator() {
|
|
|
119
121
|
case _ActionTypes.sideBarActionTypes.CLEAR_SLIDER_SECTION:
|
|
120
122
|
updateState = onClearSliderSection(_objectSpread(_objectSpread({}, payload), state));
|
|
121
123
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
122
|
-
filterState: _objectSpread({}, updateState)
|
|
124
|
+
filterState: _objectSpread({}, updateState),
|
|
125
|
+
currentActionType: _ActionTypes.sideBarActionTypes.CLEAR_SLIDER_SECTION
|
|
123
126
|
});
|
|
124
127
|
case _ActionTypes.sideBarActionTypes.CLEAR_AND_SELECT_FACET_VALUE:
|
|
125
128
|
return {
|
|
126
|
-
filterState: payload
|
|
129
|
+
filterState: payload,
|
|
130
|
+
currentActionType: _ActionTypes.sideBarActionTypes.CLEAR_AND_SELECT_FACET_VALUE
|
|
127
131
|
};
|
|
128
|
-
case _ActionTypes.sideBarActionTypes.CURR_FILTER_ACTION:
|
|
129
|
-
return _objectSpread(_objectSpread({}, state), payload);
|
|
130
132
|
default:
|
|
131
133
|
return state;
|
|
132
134
|
}
|
package/package.json
CHANGED
|
@@ -67,12 +67,14 @@ export function sideBarReducerGenerator() {
|
|
|
67
67
|
return {
|
|
68
68
|
...state,
|
|
69
69
|
filterState: { ...updateState },
|
|
70
|
+
currentActionType: sideBarActionTypes.FACET_VALUE_CHANGED,
|
|
70
71
|
};
|
|
71
72
|
case sideBarActionTypes.ON_TOGGLE_SLIDER:
|
|
72
73
|
updateState = updateSiderValue({ ...state, ...payload });
|
|
73
74
|
return {
|
|
74
75
|
...state,
|
|
75
76
|
filterState: { ...updateState },
|
|
77
|
+
currentActionType: sideBarActionTypes.ON_TOGGLE_SLIDER,
|
|
76
78
|
};
|
|
77
79
|
case sideBarActionTypes.CLEAR_ALL_FILTERS:
|
|
78
80
|
return {
|
|
@@ -97,10 +99,12 @@ export function sideBarReducerGenerator() {
|
|
|
97
99
|
return {
|
|
98
100
|
...state,
|
|
99
101
|
filterState: { ...updateState },
|
|
102
|
+
currentActionType: sideBarActionTypes.CLEAR_SLIDER_SECTION,
|
|
100
103
|
};
|
|
101
104
|
case sideBarActionTypes.CLEAR_AND_SELECT_FACET_VALUE:
|
|
102
105
|
return {
|
|
103
106
|
filterState: payload,
|
|
107
|
+
currentActionType: sideBarActionTypes.CLEAR_AND_SELECT_FACET_VALUE,
|
|
104
108
|
};
|
|
105
109
|
default:
|
|
106
110
|
return state;
|