@configuratorware/configurator-admingui 1.33.3 → 1.34.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/Screens/Creator/Components/Rules/Styles.scss +2 -2
- package/Screens/Item/Containers/Edit.js +8 -5
- package/Screens/Item/Translations.js +12 -2
- package/package.json +2 -2
- package/src/Screens/Creator/Components/Rules/Styles.scss +2 -2
- package/src/Screens/Item/Containers/Edit.js +2 -2
- package/src/Screens/Item/Containers/Edit.test.js +2 -2
- package/src/Screens/Item/Translations.js +12 -2
|
@@ -344,10 +344,13 @@ var formFields = [{
|
|
|
344
344
|
noWrap: true,
|
|
345
345
|
field: {
|
|
346
346
|
name: 'visualizationMode',
|
|
347
|
-
label: '
|
|
347
|
+
label: 'visualizationData.visualizationComponent',
|
|
348
348
|
type: 'select',
|
|
349
349
|
sourceConfig: {
|
|
350
|
-
text:
|
|
350
|
+
text: function text(_ref11) {
|
|
351
|
+
var label = _ref11.label;
|
|
352
|
+
return (0, _i18n.T)("visualizationData.".concat(label));
|
|
353
|
+
},
|
|
351
354
|
value: 'id'
|
|
352
355
|
},
|
|
353
356
|
source: [],
|
|
@@ -376,9 +379,9 @@ var formFields = [{
|
|
|
376
379
|
label: 'Prices',
|
|
377
380
|
type: 'dynSource',
|
|
378
381
|
sourceConfig: {
|
|
379
|
-
text: function text(
|
|
380
|
-
var identifier =
|
|
381
|
-
currency =
|
|
382
|
+
text: function text(_ref12) {
|
|
383
|
+
var identifier = _ref12.identifier,
|
|
384
|
+
currency = _ref12.currency;
|
|
382
385
|
return "".concat(identifier, " / ").concat(currency.symbol, " (").concat(currency.iso, ")");
|
|
383
386
|
}
|
|
384
387
|
},
|
|
@@ -17,8 +17,13 @@ require("../../App/i18n").use({
|
|
|
17
17
|
save: 'Save',
|
|
18
18
|
editDialogTitle: 'Edit selected entries',
|
|
19
19
|
editDialogHint: 'Use the checkboxes to select one or more entries in the list</br>and then click this icon to set the item status for them.',
|
|
20
|
+
visualizationData: {
|
|
21
|
+
'2d': "2D",
|
|
22
|
+
'3d': "3D",
|
|
23
|
+
'2doverlay': '2D image in the foreground',
|
|
24
|
+
visualizationComponent: 'Visualization component'
|
|
25
|
+
},
|
|
20
26
|
itemCoreData: {
|
|
21
|
-
visualizationComponent: 'Visualization component',
|
|
22
27
|
configurationMode: 'Configuration mode',
|
|
23
28
|
creator: 'creator',
|
|
24
29
|
designer: 'designer'
|
|
@@ -88,8 +93,13 @@ require("../../App/i18n").use({
|
|
|
88
93
|
save: 'Speichern',
|
|
89
94
|
editDialogTitle: 'Gewählte Einträge bearbeiten',
|
|
90
95
|
editDialogHint: 'Nutze die Checkboxen in der Liste und klicke dann dieses Icon,</br>um den Status für einen oder mehrere Einträge zu setzen.',
|
|
96
|
+
visualizationData: {
|
|
97
|
+
'2d': "2D",
|
|
98
|
+
'3d': "3D",
|
|
99
|
+
'2doverlay': '2D, Bild im Vordergrund',
|
|
100
|
+
visualizationComponent: 'Visualisierungskomponente'
|
|
101
|
+
},
|
|
91
102
|
itemCoreData: {
|
|
92
|
-
visualizationComponent: 'Visualisierungskomponente',
|
|
93
103
|
configurationMode: 'Konfigurationsmodus',
|
|
94
104
|
creator: 'creator',
|
|
95
105
|
designer: 'designer'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-admingui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
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.
|
|
32
|
+
"redhotmagma-visualization": "1.34.0",
|
|
33
33
|
"redux": "^4.1.0",
|
|
34
34
|
"redux-logger": "^3.0.6",
|
|
35
35
|
"redux-persist": "^5.10.0",
|
|
@@ -219,10 +219,10 @@ const formFields = [
|
|
|
219
219
|
noWrap: true,
|
|
220
220
|
field: {
|
|
221
221
|
name: 'visualizationMode',
|
|
222
|
-
label: '
|
|
222
|
+
label: 'visualizationData.visualizationComponent',
|
|
223
223
|
type: 'select',
|
|
224
224
|
sourceConfig: {
|
|
225
|
-
text:
|
|
225
|
+
text: ({label}) => T(`visualizationData.${label}`),
|
|
226
226
|
value: 'id',
|
|
227
227
|
},
|
|
228
228
|
source: [],
|
|
@@ -243,8 +243,8 @@ describe('Item/Edit', () => {
|
|
|
243
243
|
const selectWrapper = wrapper.find('select[name="visualizationMode"]');
|
|
244
244
|
|
|
245
245
|
const findButton = text => findWithText('li', text, selectWrapper);
|
|
246
|
-
const button2D = findButton('2d');
|
|
247
|
-
const button3D = findButton('3d');
|
|
246
|
+
const button2D = findButton('visualizationData.2d');
|
|
247
|
+
const button3D = findButton('visualizationData.3d');
|
|
248
248
|
expect(button2D).toHaveLength(1);
|
|
249
249
|
expect(button3D).toHaveLength(1);
|
|
250
250
|
button3D.simulate('click');
|
|
@@ -18,8 +18,13 @@ require('../../App/i18n').use(
|
|
|
18
18
|
editDialogTitle: 'Edit selected entries',
|
|
19
19
|
editDialogHint:
|
|
20
20
|
'Use the checkboxes to select one or more entries in the list</br>and then click this icon to set the item status for them.',
|
|
21
|
+
visualizationData: {
|
|
22
|
+
'2d': "2D",
|
|
23
|
+
'3d': "3D",
|
|
24
|
+
'2doverlay': '2D image in the foreground',
|
|
25
|
+
visualizationComponent: 'Visualization component',
|
|
26
|
+
},
|
|
21
27
|
itemCoreData: {
|
|
22
|
-
visualizationComponent: 'Visualization component',
|
|
23
28
|
configurationMode: 'Configuration mode',
|
|
24
29
|
creator: 'creator',
|
|
25
30
|
designer: 'designer',
|
|
@@ -94,8 +99,13 @@ require('../../App/i18n').use(
|
|
|
94
99
|
editDialogTitle: 'Gewählte Einträge bearbeiten',
|
|
95
100
|
editDialogHint:
|
|
96
101
|
'Nutze die Checkboxen in der Liste und klicke dann dieses Icon,</br>um den Status für einen oder mehrere Einträge zu setzen.',
|
|
97
|
-
|
|
102
|
+
visualizationData: {
|
|
103
|
+
'2d': "2D",
|
|
104
|
+
'3d': "3D",
|
|
105
|
+
'2doverlay': '2D, Bild im Vordergrund',
|
|
98
106
|
visualizationComponent: 'Visualisierungskomponente',
|
|
107
|
+
},
|
|
108
|
+
itemCoreData: {
|
|
99
109
|
configurationMode: 'Konfigurationsmodus',
|
|
100
110
|
creator: 'creator',
|
|
101
111
|
designer: 'designer',
|