@configuratorware/configurator-admingui 1.35.7 → 1.35.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.
- package/App/Reducers/Common/OrderList/Actions.js +3 -1
- package/Screens/DesignProductionMethods/Containers/Edit.js +1 -0
- package/Screens/Designer/Components/TemplateList.js +1 -1
- package/Screens/Designer/SubScreens/DesignAreas/Reducers/Actions.js +7 -1
- package/Screens/Designer/SubScreens/Designviews/Reducers/Actions.js +7 -2
- package/package.json +2 -2
- package/src/App/Reducers/Common/OrderList/Actions.js +1 -1
- package/src/Screens/DesignProductionMethods/Containers/Edit.js +1 -0
- package/src/Screens/Designer/Components/TemplateList.js +1 -1
- package/src/Screens/Designer/SubScreens/DesignAreas/Reducers/Actions.js +2 -1
- package/src/Screens/Designer/SubScreens/Designviews/Reducers/Actions.js +3 -2
|
@@ -39,7 +39,9 @@ var loadList = function loadList(dispatch) {
|
|
|
39
39
|
url: url,
|
|
40
40
|
params: {
|
|
41
41
|
orderby: "".concat(entity, ".").concat(orderSequenceNumber),
|
|
42
|
-
filters: _objectSpread({}, filters)
|
|
42
|
+
filters: _objectSpread({}, filters),
|
|
43
|
+
offset: 0,
|
|
44
|
+
limit: 1000
|
|
43
45
|
}
|
|
44
46
|
});
|
|
45
47
|
};
|
|
@@ -123,6 +123,7 @@ var formFields = [{
|
|
|
123
123
|
type: 'chip',
|
|
124
124
|
listKey: 'colorpalettes_autocomplete',
|
|
125
125
|
url: 'colorpalettes',
|
|
126
|
+
maxSearchResults: 1000,
|
|
126
127
|
mapItems: function mapItems(item, idx, collection, locale) {
|
|
127
128
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
128
129
|
label: "".concat((0, _TranslationFinder.findTranslation)(item.texts, locale, 'title', item.title), " (").concat(item.identifier, ")")
|
|
@@ -151,7 +151,7 @@ var TemplateList = /*#__PURE__*/function (_Component) {
|
|
|
151
151
|
|
|
152
152
|
_defineProperty(_assertThisInitialized(_this), "onSearchChange", (0, _InputHelpers.delay)(function (data) {
|
|
153
153
|
_lodash["default"].isFunction(_this.props.onSearchChange) && _this.props.onSearchChange(data);
|
|
154
|
-
}));
|
|
154
|
+
}, 500));
|
|
155
155
|
|
|
156
156
|
_defineProperty(_assertThisInitialized(_this), "renderAddItemButton", function () {
|
|
157
157
|
return _this.props.onAddItem && /*#__PURE__*/_react["default"].createElement(AddItemButton, {
|
|
@@ -42,7 +42,13 @@ var listAction = function listAction(params) {
|
|
|
42
42
|
|
|
43
43
|
var id = designerData.data.id.value;
|
|
44
44
|
var filters = params && params.filters || {};
|
|
45
|
-
|
|
45
|
+
|
|
46
|
+
var paramsWithLimit = _objectSpread(_objectSpread({}, params), {}, {
|
|
47
|
+
offset: 0,
|
|
48
|
+
limit: 1000
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
dispatch(DesignAreaActions.listAction(_objectSpread(_objectSpread({}, paramsWithLimit), {}, {
|
|
46
52
|
filters: _objectSpread(_objectSpread({}, filters), {}, {
|
|
47
53
|
'designarea.item.id': id
|
|
48
54
|
})
|
|
@@ -150,14 +150,19 @@ var listAction = function listAction(params) {
|
|
|
150
150
|
var id = designerData.data.id.value;
|
|
151
151
|
var filters = params && params.filters || {};
|
|
152
152
|
|
|
153
|
+
var paramsWithLimit = _objectSpread(_objectSpread({}, params), {}, {
|
|
154
|
+
offset: 0,
|
|
155
|
+
limit: 1000
|
|
156
|
+
});
|
|
157
|
+
|
|
153
158
|
if (isCreatorDesignerModeWith2DVisualization(designerData)) {
|
|
154
|
-
dispatch(CreatorViewActions.listAction(_objectSpread(_objectSpread({},
|
|
159
|
+
dispatch(CreatorViewActions.listAction(_objectSpread(_objectSpread({}, paramsWithLimit), {}, {
|
|
155
160
|
filters: _objectSpread(_objectSpread({}, filters), {}, {
|
|
156
161
|
'creatorview.item.id': id
|
|
157
162
|
})
|
|
158
163
|
})));
|
|
159
164
|
} else {
|
|
160
|
-
dispatch(DesignViewActions.listAction(_objectSpread(_objectSpread({},
|
|
165
|
+
dispatch(DesignViewActions.listAction(_objectSpread(_objectSpread({}, paramsWithLimit), {}, {
|
|
161
166
|
filters: _objectSpread(_objectSpread({}, filters), {}, {
|
|
162
167
|
'designview.item.id': id
|
|
163
168
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-admingui",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.9",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"dependencies": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-redux-i18n": "^1.9.3",
|
|
30
30
|
"react-router": "^3.2.6",
|
|
31
31
|
"react-sortable-hoc": "^1.11.0",
|
|
32
|
-
"redhotmagma-visualization": "1.35.
|
|
32
|
+
"redhotmagma-visualization": "1.35.9",
|
|
33
33
|
"redux": "^4.1.0",
|
|
34
34
|
"redux-logger": "^3.0.6",
|
|
35
35
|
"redux-persist": "^5.10.0",
|
|
@@ -13,7 +13,7 @@ export const loadList = dispatch => (url, entity, orderSequenceNumber, filters =
|
|
|
13
13
|
dispatch(setDataField(dataField));
|
|
14
14
|
return dispatchFetchData(dispatch)(COMPONENT_KEY, {
|
|
15
15
|
url,
|
|
16
|
-
params: { orderby: `${entity}.${orderSequenceNumber}`, filters: { ...filters } },
|
|
16
|
+
params: { orderby: `${entity}.${orderSequenceNumber}`, filters: { ...filters }, offset: 0, limit: 1000 },
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -114,7 +114,7 @@ export default class TemplateList extends Component {
|
|
|
114
114
|
|
|
115
115
|
onSearchChange = delay(data => {
|
|
116
116
|
_.isFunction(this.props.onSearchChange) && this.props.onSearchChange(data);
|
|
117
|
-
});
|
|
117
|
+
}, 500);
|
|
118
118
|
|
|
119
119
|
renderAddItemButton = () => this.props.onAddItem && <AddItemButton onClick={this.props.onAddItem} />;
|
|
120
120
|
|
|
@@ -17,7 +17,8 @@ const listAction = params => (dispatch, getState) => {
|
|
|
17
17
|
const { designerData } = getState();
|
|
18
18
|
const id = designerData.data.id.value;
|
|
19
19
|
const filters = (params && params.filters) || {};
|
|
20
|
-
|
|
20
|
+
const paramsWithLimit = {...params, offset: 0, limit: 1000}
|
|
21
|
+
dispatch(DesignAreaActions.listAction({ ...paramsWithLimit, filters: { ...filters, 'designarea.item.id': id } }));
|
|
21
22
|
};
|
|
22
23
|
const invalidateList = () => (dispatch, getState) => {
|
|
23
24
|
const { entity } = getState();
|
|
@@ -97,14 +97,15 @@ const listAction = params => (dispatch, getState) => {
|
|
|
97
97
|
const { designerData } = getState();
|
|
98
98
|
const id = designerData.data.id.value;
|
|
99
99
|
const filters = (params && params.filters) || {};
|
|
100
|
+
const paramsWithLimit = {...params, offset: 0, limit: 1000}
|
|
100
101
|
|
|
101
102
|
if (isCreatorDesignerModeWith2DVisualization(designerData)) {
|
|
102
103
|
dispatch(
|
|
103
|
-
CreatorViewActions.listAction({ ...
|
|
104
|
+
CreatorViewActions.listAction({ ...paramsWithLimit, filters: { ...filters, 'creatorview.item.id': id } })
|
|
104
105
|
);
|
|
105
106
|
} else {
|
|
106
107
|
dispatch(
|
|
107
|
-
DesignViewActions.listAction({ ...
|
|
108
|
+
DesignViewActions.listAction({ ...paramsWithLimit, filters: { ...filters, 'designview.item.id': id } })
|
|
108
109
|
);
|
|
109
110
|
}
|
|
110
111
|
};
|