@configuratorware/configurator-admingui 1.39.1 → 1.39.2
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/Components/FormFragments/InputWithSource.js +2 -14
- package/Components/FormFragments/Select.js +3 -5
- package/Screens/Attribute/Containers/Edit.js +0 -7
- package/Screens/Attribute/Reducers/Reducer.js +1 -4
- package/Screens/Attribute/Translations.js +2 -6
- package/Screens/Client/Containers/Edit.js +0 -4
- package/Screens/Client/Reducers/Reducer.js +0 -3
- package/Screens/Client/Translations.js +0 -1
- package/Screens/CurrentClient/Containers/Edit.js +0 -4
- package/Screens/CurrentClient/Reducers/Reducer.js +0 -3
- package/Screens/DefaultClient/Containers/Edit.js +0 -4
- package/Screens/DefaultClient/Reducers/Reducer.js +0 -3
- package/Screens/PriceTypes/Containers/Edit.js +10 -36
- package/Screens/PriceTypes/Reducers/Reducer.js +2 -2
- package/Screens/PriceTypes/Translations.js +0 -14
- package/package.json +2 -2
- package/src/Components/FormFragments/InputWithSource.js +0 -3
- package/src/Components/FormFragments/Select.js +4 -10
- package/src/Screens/Attribute/Containers/Edit.js +0 -7
- package/src/Screens/Attribute/Reducers/Reducer.js +0 -1
- package/src/Screens/Attribute/Translations.js +0 -4
- package/src/Screens/Client/Containers/Edit.js +2 -7
- package/src/Screens/Client/Reducers/Reducer.js +0 -1
- package/src/Screens/Client/Translations.js +2 -5
- package/src/Screens/CurrentClient/Containers/Edit.js +4 -9
- package/src/Screens/CurrentClient/Reducers/Reducer.js +0 -1
- package/src/Screens/DefaultClient/Containers/Edit.js +1 -6
- package/src/Screens/DefaultClient/Reducers/Reducer.js +0 -1
- package/src/Screens/PriceTypes/Containers/Edit.js +9 -32
- package/src/Screens/PriceTypes/Reducers/Reducer.js +1 -1
- package/src/Screens/PriceTypes/Translations.js +0 -14
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.sourceConfigPropType = exports.getInputItemKeyByConfig = exports.getInputItemParamsByConfig = exports.getInputValueByConfig = void 0;
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
@@ -65,16 +65,4 @@ var sourceConfigPropType = _propTypes["default"].shape({
|
|
|
65
65
|
value: _propTypes["default"].string.isRequired
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
exports.sourceConfigPropType = sourceConfigPropType;
|
|
69
|
-
|
|
70
|
-
var valueToNull = function valueToNull(value) {
|
|
71
|
-
return value === 'null' ? null : value;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
exports.valueToNull = valueToNull;
|
|
75
|
-
|
|
76
|
-
var nullToValue = function nullToValue(value) {
|
|
77
|
-
return value === null ? 'null' : value;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
exports.nullToValue = nullToValue;
|
|
68
|
+
exports.sourceConfigPropType = sourceConfigPropType;
|
|
@@ -22,7 +22,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
22
22
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
23
|
|
|
24
24
|
var select = function select(props) {
|
|
25
|
-
var value = (0, _InputWithSource.
|
|
25
|
+
var value = (0, _InputWithSource.getInputValueByConfig)(props);
|
|
26
26
|
return /*#__PURE__*/_react["default"].createElement(_SelectField["default"], {
|
|
27
27
|
style: {
|
|
28
28
|
width: '100%'
|
|
@@ -35,7 +35,7 @@ var select = function select(props) {
|
|
|
35
35
|
var selectedObj = (0, _find2["default"])(props.source, _defineProperty({}, key, event.target.value));
|
|
36
36
|
props.onChange(props.name, selectedObj);
|
|
37
37
|
} else {
|
|
38
|
-
props.onChange(props.name,
|
|
38
|
+
props.onChange(props.name, event.target.value);
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
onFocus: function onFocus() {
|
|
@@ -52,10 +52,8 @@ var select = function select(props) {
|
|
|
52
52
|
value = _getInputItemParamsBy.value,
|
|
53
53
|
text = _getInputItemParamsBy.text;
|
|
54
54
|
|
|
55
|
-
var _value = (0, _InputWithSource.nullToValue)(value);
|
|
56
|
-
|
|
57
55
|
return /*#__PURE__*/_react["default"].createElement(_MenuItem["default"], {
|
|
58
|
-
value:
|
|
56
|
+
value: value,
|
|
59
57
|
key: idx
|
|
60
58
|
}, text);
|
|
61
59
|
}));
|
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _Actions = require("../Reducers/Actions");
|
|
9
9
|
|
|
10
|
-
var _i18n = require("../../../App/i18n");
|
|
11
|
-
|
|
12
10
|
var _DefaultConnectedForm = _interopRequireDefault(require("../../../Components/DefaultConnectedForm"));
|
|
13
11
|
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -41,11 +39,6 @@ var formFields = [{
|
|
|
41
39
|
label: 'Attribute data type',
|
|
42
40
|
type: 'select',
|
|
43
41
|
source: ['string', 'integer', 'number', 'boolean', 'text']
|
|
44
|
-
}, {
|
|
45
|
-
name: 'writeProtected',
|
|
46
|
-
label: (0, _i18n.t)('attribute.writeProtected'),
|
|
47
|
-
type: 'checkbox',
|
|
48
|
-
helperText: (0, _i18n.t)('attribute.writeProtectedInfo')
|
|
49
42
|
}];
|
|
50
43
|
|
|
51
44
|
var _default = (0, _DefaultConnectedForm["default"])(formFields, _Actions.ATTRIBUTE_REDUCER_NAME, _Actions.setFieldData, _Actions.postData);
|
|
@@ -31,10 +31,7 @@ var initialState = _objectSpread({}, (0, _Reducer.getDefaultEntityState)({
|
|
|
31
31
|
presence: true
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
texts: []
|
|
35
|
-
writeProtected: {
|
|
36
|
-
value: ''
|
|
37
|
-
}
|
|
34
|
+
texts: []
|
|
38
35
|
}, null, _Actions.ATTRIBUTE_DATA_KEY));
|
|
39
36
|
|
|
40
37
|
var attributeData = (0, _FeatureReducers.createFeatureReducer)(_Actions.ATTRIBUTE_REDUCER_NAME, function () {
|
|
@@ -7,9 +7,7 @@ require("../../App/i18n").use({
|
|
|
7
7
|
'Attribute data type': 'Attribute data type',
|
|
8
8
|
Variants: 'Variants',
|
|
9
9
|
attribute: {
|
|
10
|
-
addButtonLabel: 'Add Attribute'
|
|
11
|
-
writeProtected: 'Write protected',
|
|
12
|
-
writeProtectedInfo: 'Attribute won’t be deleted by the importer'
|
|
10
|
+
addButtonLabel: 'Add Attribute'
|
|
13
11
|
}
|
|
14
12
|
},
|
|
15
13
|
de: {
|
|
@@ -18,9 +16,7 @@ require("../../App/i18n").use({
|
|
|
18
16
|
'Attribute data type': 'Attributdatentyp',
|
|
19
17
|
Variants: 'Varianten',
|
|
20
18
|
attribute: {
|
|
21
|
-
addButtonLabel: 'Attribute hinzufügen'
|
|
22
|
-
writeProtected: 'Schreibgeschützt',
|
|
23
|
-
writeProtectedInfo: 'Das Attribut wird beim Import nicht gelöscht'
|
|
19
|
+
addButtonLabel: 'Attribute hinzufügen'
|
|
24
20
|
}
|
|
25
21
|
}
|
|
26
22
|
}, true);
|
|
@@ -137,10 +137,6 @@ var formFields = [{
|
|
|
137
137
|
label: 'BCC E-Mail(s) receiver for request offer',
|
|
138
138
|
type: 'text',
|
|
139
139
|
helperText: (0, _i18n.t)('emailHint')
|
|
140
|
-
}, {
|
|
141
|
-
name: 'sendOfferRequestMailToCustomer',
|
|
142
|
-
label: 'Send offer request email to customer',
|
|
143
|
-
type: 'checkbox'
|
|
144
140
|
}, {
|
|
145
141
|
type: _CallToActionField.CallToActionField,
|
|
146
142
|
fields: [{
|
|
@@ -36,7 +36,6 @@ require("../../App/i18n").use({
|
|
|
36
36
|
'E-Mail sender for request offer': 'Absender E-Mail für die Angebotsanfrage',
|
|
37
37
|
'CC E-Mail(s) receiver for request offer': 'CC E-Mail(s) für die Angebotsanfrage',
|
|
38
38
|
'BCC E-Mail(s) receiver for request offer': 'BCC E-Mail(s) für die Angebotsanfrage',
|
|
39
|
-
'Send offer request email to customer': 'Angebotsanfrage per E-Mail an den Kunden senden',
|
|
40
39
|
'Client logo': 'Kunden Logo',
|
|
41
40
|
Texts: 'Texte',
|
|
42
41
|
themeColorError: 'Bitte gib einen hexadezimalen Farbwert ein (z.B. #0000ff)',
|
|
@@ -100,10 +100,6 @@ var formFields = [{
|
|
|
100
100
|
label: 'BCC E-Mail(s) receiver for request offer',
|
|
101
101
|
type: 'text',
|
|
102
102
|
helperText: (0, _i18n.t)('emailHint')
|
|
103
|
-
}, {
|
|
104
|
-
name: 'sendOfferRequestMailToCustomer',
|
|
105
|
-
label: 'Send offer request email to customer',
|
|
106
|
-
type: 'checkbox'
|
|
107
103
|
}, {
|
|
108
104
|
type: _CallToActionField.CallToActionField,
|
|
109
105
|
fields: [{
|
|
@@ -98,10 +98,6 @@ var formFields = [{
|
|
|
98
98
|
label: 'BCC E-Mail(s) receiver for request offer',
|
|
99
99
|
type: 'text',
|
|
100
100
|
helperText: (0, _i18n.t)('emailHint')
|
|
101
|
-
}, {
|
|
102
|
-
name: 'sendOfferRequestMailToCustomer',
|
|
103
|
-
label: 'Send offer request email to customer',
|
|
104
|
-
type: 'checkbox'
|
|
105
101
|
}, {
|
|
106
102
|
name: 'callToAction',
|
|
107
103
|
label: 'callToAction.callToAction',
|
|
@@ -7,9 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
var _i18n = require("../../../App/i18n");
|
|
10
|
+
var _Actions = _interopRequireWildcard(require("../Reducers/Actions"));
|
|
13
11
|
|
|
14
12
|
var _DefaultConnectedForm = _interopRequireDefault(require("../../../Components/DefaultConnectedForm"));
|
|
15
13
|
|
|
@@ -17,14 +15,14 @@ var _LocalizedPriceTextField = require("../../../Components/LocalizedPriceTextFi
|
|
|
17
15
|
|
|
18
16
|
var _LocalizedPriceValue = _interopRequireDefault(require("../../../Components/LocalizedPriceValue"));
|
|
19
17
|
|
|
20
|
-
var
|
|
18
|
+
var _react = _interopRequireDefault(require("react"));
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
22
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
23
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
-
|
|
28
26
|
var setFieldData = _Actions["default"].setFieldData,
|
|
29
27
|
postData = _Actions["default"].postData;
|
|
30
28
|
var formFields = [{
|
|
@@ -44,33 +42,9 @@ var formFields = [{
|
|
|
44
42
|
label: 'selectable By User',
|
|
45
43
|
type: 'toggle'
|
|
46
44
|
}, {
|
|
47
|
-
name: '
|
|
48
|
-
label: '
|
|
49
|
-
type: '
|
|
50
|
-
sourceConfig: {
|
|
51
|
-
text: function text(_ref) {
|
|
52
|
-
var label = _ref.label;
|
|
53
|
-
return (0, _i18n.T)(label);
|
|
54
|
-
},
|
|
55
|
-
value: 'value'
|
|
56
|
-
},
|
|
57
|
-
source: [{
|
|
58
|
-
value: null,
|
|
59
|
-
label: 'imageDependent.no',
|
|
60
|
-
id: 'print'
|
|
61
|
-
}, {
|
|
62
|
-
value: 'image_data_dependent',
|
|
63
|
-
label: 'imageDependent.imageDataDependent',
|
|
64
|
-
id: 'image_data_dependent'
|
|
65
|
-
}, {
|
|
66
|
-
value: 'user_image_dependent',
|
|
67
|
-
label: 'imageDependent.userImageDependent',
|
|
68
|
-
id: 'user_image_dependent'
|
|
69
|
-
}, {
|
|
70
|
-
value: 'gallery_image_dependent',
|
|
71
|
-
label: 'imageDependent.galleryImageDependent',
|
|
72
|
-
id: 'gallery_image_dependent'
|
|
73
|
-
}]
|
|
45
|
+
name: 'imageDataDependent',
|
|
46
|
+
label: 'image Data Dependent',
|
|
47
|
+
type: 'toggle'
|
|
74
48
|
}, {
|
|
75
49
|
name: 'texts',
|
|
76
50
|
label: 'Title',
|
|
@@ -97,9 +71,9 @@ var formFields = [{
|
|
|
97
71
|
},
|
|
98
72
|
type: 'dynSource',
|
|
99
73
|
sourceConfig: {
|
|
100
|
-
text: function text(
|
|
101
|
-
var identifier =
|
|
102
|
-
currency =
|
|
74
|
+
text: function text(_ref) {
|
|
75
|
+
var identifier = _ref.identifier,
|
|
76
|
+
currency = _ref.currency;
|
|
103
77
|
return "".concat(identifier, " / ").concat(currency.symbol, " (").concat(currency.iso, ")");
|
|
104
78
|
}
|
|
105
79
|
},
|
|
@@ -15,13 +15,6 @@ require("../../App/i18n").use({
|
|
|
15
15
|
prices: {
|
|
16
16
|
addButtonLabel: 'Add Price'
|
|
17
17
|
}
|
|
18
|
-
},
|
|
19
|
-
imageDependent: {
|
|
20
|
-
label: 'Depending on the image data',
|
|
21
|
-
no: 'No',
|
|
22
|
-
imageDataDependent: 'Image data dependent (uploaded + images from image gallery)',
|
|
23
|
-
userImageDependent: 'Uploaded Image Data Dependent',
|
|
24
|
-
galleryImageDependent: 'Image gallery Data Dependent'
|
|
25
18
|
}
|
|
26
19
|
},
|
|
27
20
|
de: {
|
|
@@ -38,13 +31,6 @@ require("../../App/i18n").use({
|
|
|
38
31
|
prices: {
|
|
39
32
|
addButtonLabel: 'Preis hinzufügen'
|
|
40
33
|
}
|
|
41
|
-
},
|
|
42
|
-
imageDependent: {
|
|
43
|
-
label: 'Abhängig von den Bilddaten',
|
|
44
|
-
no: 'Nein',
|
|
45
|
-
imageDataDependent: 'Abhängig von Bilddaten (hochgeladene + Bildern aus der Bildergalerie)',
|
|
46
|
-
userImageDependent: 'Abhängig von hochgeladenen Bildern',
|
|
47
|
-
galleryImageDependent: 'Abhängig von Bildern aus der Bildergalerie'
|
|
48
34
|
}
|
|
49
35
|
}
|
|
50
36
|
}, true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-admingui",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.2",
|
|
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.39.
|
|
32
|
+
"redhotmagma-visualization": "1.39.2",
|
|
33
33
|
"redux": "^4.1.0",
|
|
34
34
|
"redux-logger": "^3.0.6",
|
|
35
35
|
"redux-persist": "^5.10.0",
|
|
@@ -44,6 +44,3 @@ export const sourceConfigPropType = PropTypes.shape({
|
|
|
44
44
|
text: PropTypes.oneOfType([PropTypes.string, PropTypes.func]).isRequired,
|
|
45
45
|
value: PropTypes.string.isRequired,
|
|
46
46
|
});
|
|
47
|
-
|
|
48
|
-
export const valueToNull = value => (value === 'null' ? null : value);
|
|
49
|
-
export const nullToValue = value => (value === null ? 'null' : value);
|
|
@@ -4,15 +4,10 @@ import find from 'lodash/find';
|
|
|
4
4
|
import SelectField from '../../UIComponents/SelectField';
|
|
5
5
|
import MenuItem from '../../UIComponents/MenuItem';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
getInputValueByConfig,
|
|
9
|
-
getInputItemParamsByConfig,
|
|
10
|
-
valueToNull,
|
|
11
|
-
nullToValue,
|
|
12
|
-
} from './InputWithSource';
|
|
7
|
+
import { getInputValueByConfig, getInputItemParamsByConfig } from './InputWithSource';
|
|
13
8
|
|
|
14
9
|
const select = props => {
|
|
15
|
-
const value =
|
|
10
|
+
const value = getInputValueByConfig(props);
|
|
16
11
|
return (
|
|
17
12
|
<SelectField
|
|
18
13
|
style={{ width: '100%' }}
|
|
@@ -24,7 +19,7 @@ const select = props => {
|
|
|
24
19
|
const selectedObj = find(props.source, { [key]: event.target.value });
|
|
25
20
|
props.onChange(props.name, selectedObj);
|
|
26
21
|
} else {
|
|
27
|
-
props.onChange(props.name,
|
|
22
|
+
props.onChange(props.name, event.target.value);
|
|
28
23
|
}
|
|
29
24
|
}}
|
|
30
25
|
onFocus={() => props.source.length === 0 && this.props.loadSource && this.props.loadSource()}
|
|
@@ -37,9 +32,8 @@ const select = props => {
|
|
|
37
32
|
>
|
|
38
33
|
{props.source.map((item, idx) => {
|
|
39
34
|
const { value, text } = getInputItemParamsByConfig(item, props.sourceConfig);
|
|
40
|
-
const _value = nullToValue(value);
|
|
41
35
|
return (
|
|
42
|
-
<MenuItem value={
|
|
36
|
+
<MenuItem value={value} key={idx}>
|
|
43
37
|
{text}
|
|
44
38
|
</MenuItem>
|
|
45
39
|
);
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
ATTRIBUTE_LIST_KEY,
|
|
7
7
|
ATTRIBUTE_LIST_URL,
|
|
8
8
|
} from '../Reducers/Actions';
|
|
9
|
-
import { t } from '../../../App/i18n';
|
|
10
9
|
|
|
11
10
|
const formFields = [
|
|
12
11
|
{
|
|
@@ -40,12 +39,6 @@ const formFields = [
|
|
|
40
39
|
type: 'select',
|
|
41
40
|
source: ['string', 'integer', 'number', 'boolean', 'text'],
|
|
42
41
|
},
|
|
43
|
-
{
|
|
44
|
-
name: 'writeProtected',
|
|
45
|
-
label: t('attribute.writeProtected'),
|
|
46
|
-
type: 'checkbox',
|
|
47
|
-
helperText: t('attribute.writeProtectedInfo'),
|
|
48
|
-
},
|
|
49
42
|
];
|
|
50
43
|
|
|
51
44
|
import generateConnectedEdit from '../../../Components/DefaultConnectedForm';
|
|
@@ -7,8 +7,6 @@ require('../../App/i18n').use(
|
|
|
7
7
|
Variants: 'Variants',
|
|
8
8
|
attribute: {
|
|
9
9
|
addButtonLabel: 'Add Attribute',
|
|
10
|
-
writeProtected: 'Write protected',
|
|
11
|
-
writeProtectedInfo: 'Attribute won’t be deleted by the importer',
|
|
12
10
|
},
|
|
13
11
|
},
|
|
14
12
|
de: {
|
|
@@ -18,8 +16,6 @@ require('../../App/i18n').use(
|
|
|
18
16
|
Variants: 'Varianten',
|
|
19
17
|
attribute: {
|
|
20
18
|
addButtonLabel: 'Attribute hinzufügen',
|
|
21
|
-
writeProtected: 'Schreibgeschützt',
|
|
22
|
-
writeProtectedInfo: 'Das Attribut wird beim Import nicht gelöscht',
|
|
23
19
|
},
|
|
24
20
|
},
|
|
25
21
|
},
|
|
@@ -54,7 +54,7 @@ const formFields = [
|
|
|
54
54
|
accept: '.ttf',
|
|
55
55
|
showFileName: true,
|
|
56
56
|
deleteEnabled: true,
|
|
57
|
-
warningMessage: T('clientFontMessage')
|
|
57
|
+
warningMessage: T('clientFontMessage')
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
name: 'logo',
|
|
@@ -127,11 +127,6 @@ const formFields = [
|
|
|
127
127
|
type: 'text',
|
|
128
128
|
helperText: t('emailHint'),
|
|
129
129
|
},
|
|
130
|
-
{
|
|
131
|
-
name: 'sendOfferRequestMailToCustomer',
|
|
132
|
-
label: 'Send offer request email to customer',
|
|
133
|
-
type: 'checkbox',
|
|
134
|
-
},
|
|
135
130
|
{
|
|
136
131
|
type: CallToActionField,
|
|
137
132
|
fields: [
|
|
@@ -141,7 +136,7 @@ const formFields = [
|
|
|
141
136
|
type: 'select',
|
|
142
137
|
},
|
|
143
138
|
],
|
|
144
|
-
dynamicDefaultLabel: false
|
|
139
|
+
dynamicDefaultLabel: false
|
|
145
140
|
},
|
|
146
141
|
{
|
|
147
142
|
name: 'texts',
|
|
@@ -16,8 +16,7 @@ require('../../App/i18n').use(
|
|
|
16
16
|
headerInfo: 'Please check your changes in a generated pdf to make sure it looks as expected',
|
|
17
17
|
footerInfo: 'Please check your changes in a generated pdf to make sure it looks as expected',
|
|
18
18
|
emailHint: 'separate multiple addresses with a semicolon',
|
|
19
|
-
clientFontMessage:
|
|
20
|
-
'For the font to be rendered correctly in the configuratorware frontend, make sure the filename does not contain any spaces and matches the fonts internal name.',
|
|
19
|
+
clientFontMessage: 'For the font to be rendered correctly in the configuratorware frontend, make sure the filename does not contain any spaces and matches the fonts internal name.'
|
|
21
20
|
},
|
|
22
21
|
de: {
|
|
23
22
|
clients: 'Klienten',
|
|
@@ -36,7 +35,6 @@ require('../../App/i18n').use(
|
|
|
36
35
|
'E-Mail sender for request offer': 'Absender E-Mail für die Angebotsanfrage',
|
|
37
36
|
'CC E-Mail(s) receiver for request offer': 'CC E-Mail(s) für die Angebotsanfrage',
|
|
38
37
|
'BCC E-Mail(s) receiver for request offer': 'BCC E-Mail(s) für die Angebotsanfrage',
|
|
39
|
-
'Send offer request email to customer': 'Angebotsanfrage per E-Mail an den Kunden senden',
|
|
40
38
|
'Client logo': 'Kunden Logo',
|
|
41
39
|
Texts: 'Texte',
|
|
42
40
|
themeColorError: 'Bitte gib einen hexadezimalen Farbwert ein (z.B. #0000ff)',
|
|
@@ -49,8 +47,7 @@ require('../../App/i18n').use(
|
|
|
49
47
|
headerInfo: 'Bitte überprüfe Deine Änderungen in einem generierten PDF',
|
|
50
48
|
footerInfo: 'Bitte überprüfe Deine Änderungen in einem generierten PDF',
|
|
51
49
|
emailHint: 'trenne mehrere Adressen mit einem Semikolon',
|
|
52
|
-
clientFontMessage:
|
|
53
|
-
'Für eine korrekte Darstellung der Schrift im configuratorware Fronted darf der Dateiname keine Leerzeichen enthalten und muss dem internen Namen der Schriftart entsprechen.',
|
|
50
|
+
clientFontMessage: 'Für eine korrekte Darstellung der Schrift im configuratorware Fronted darf der Dateiname keine Leerzeichen enthalten und muss dem internen Namen der Schriftart entsprechen.'
|
|
54
51
|
},
|
|
55
52
|
},
|
|
56
53
|
true
|
|
@@ -2,7 +2,7 @@ import Actions, { REDUCER_NAME } from '../Reducers/Actions';
|
|
|
2
2
|
import SimpleNestedData from '../../../Components/FormFragments/SimpleNestedData';
|
|
3
3
|
import generateConnectedEdit from '../../../Components/DefaultConnectedForm';
|
|
4
4
|
import { withLoadAction } from '../../../Components/withLoadAction';
|
|
5
|
-
import {
|
|
5
|
+
import {T, t } from '../../../App/i18n';
|
|
6
6
|
import { CallToActionField } from '../../../Components/CallToActionField';
|
|
7
7
|
import PdfMarkDownField from '../../Client/Components/PdfMarkdownField';
|
|
8
8
|
|
|
@@ -23,7 +23,7 @@ const formFields = [
|
|
|
23
23
|
accept: '.ttf',
|
|
24
24
|
showFileName: true,
|
|
25
25
|
deleteEnabled: true,
|
|
26
|
-
warningMessage: T('clientFontMessage')
|
|
26
|
+
warningMessage: T('clientFontMessage')
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
name: 'logo',
|
|
@@ -96,11 +96,6 @@ const formFields = [
|
|
|
96
96
|
type: 'text',
|
|
97
97
|
helperText: t('emailHint'),
|
|
98
98
|
},
|
|
99
|
-
{
|
|
100
|
-
name: 'sendOfferRequestMailToCustomer',
|
|
101
|
-
label: 'Send offer request email to customer',
|
|
102
|
-
type: 'checkbox',
|
|
103
|
-
},
|
|
104
99
|
{
|
|
105
100
|
type: CallToActionField,
|
|
106
101
|
fields: [
|
|
@@ -108,9 +103,9 @@ const formFields = [
|
|
|
108
103
|
name: 'callToAction',
|
|
109
104
|
label: 'callToAction.callToAction',
|
|
110
105
|
type: 'select',
|
|
111
|
-
}
|
|
106
|
+
}
|
|
112
107
|
],
|
|
113
|
-
dynamicDefaultLabel: false
|
|
108
|
+
dynamicDefaultLabel: false
|
|
114
109
|
},
|
|
115
110
|
{
|
|
116
111
|
name: 'texts',
|
|
@@ -22,7 +22,7 @@ const formFields = [
|
|
|
22
22
|
accept: '.ttf',
|
|
23
23
|
showFileName: true,
|
|
24
24
|
deleteEnabled: true,
|
|
25
|
-
warningMessage: T('clientFontMessage')
|
|
25
|
+
warningMessage: T('clientFontMessage')
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
name: 'logo',
|
|
@@ -95,11 +95,6 @@ const formFields = [
|
|
|
95
95
|
type: 'text',
|
|
96
96
|
helperText: t('emailHint'),
|
|
97
97
|
},
|
|
98
|
-
{
|
|
99
|
-
name: 'sendOfferRequestMailToCustomer',
|
|
100
|
-
label: 'Send offer request email to customer',
|
|
101
|
-
type: 'checkbox',
|
|
102
|
-
},
|
|
103
98
|
{
|
|
104
99
|
name: 'callToAction',
|
|
105
100
|
label: 'callToAction.callToAction',
|
|
@@ -31,7 +31,6 @@ const initialState = {
|
|
|
31
31
|
fromEmailAddress: { value: '', constraints: { presence: true } },
|
|
32
32
|
ccEmailAddresses: { value: '', constraints: { presence: true } },
|
|
33
33
|
bccEmailAddresses: { value: '', constraints: { presence: true } },
|
|
34
|
-
sendOfferRequestMailToCustomer: { value: '' },
|
|
35
34
|
callToAction: 'addToCart',
|
|
36
35
|
customCss: '',
|
|
37
36
|
},
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { T } from '../../../App/i18n';
|
|
3
|
-
import generateConnectedEdit from '../../../Components/DefaultConnectedForm';
|
|
4
|
-
import { LocalizedPriceTextField } from '../../../Components/LocalizedPriceTextField';
|
|
5
|
-
import LocalizedPriceValue from '../../../Components/LocalizedPriceValue';
|
|
6
1
|
import Actions, { REDUCER_NAME } from '../Reducers/Actions';
|
|
7
2
|
const { setFieldData, postData } = Actions;
|
|
8
3
|
|
|
@@ -28,31 +23,9 @@ const formFields = [
|
|
|
28
23
|
type: 'toggle',
|
|
29
24
|
},
|
|
30
25
|
{
|
|
31
|
-
name: '
|
|
32
|
-
label: '
|
|
33
|
-
type: '
|
|
34
|
-
sourceConfig: {
|
|
35
|
-
text: ({ label }) => T(label),
|
|
36
|
-
value: 'value',
|
|
37
|
-
},
|
|
38
|
-
source: [
|
|
39
|
-
{ value: null, label: 'imageDependent.no', id: 'print' },
|
|
40
|
-
{
|
|
41
|
-
value: 'image_data_dependent',
|
|
42
|
-
label: 'imageDependent.imageDataDependent',
|
|
43
|
-
id: 'image_data_dependent',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
value: 'user_image_dependent',
|
|
47
|
-
label: 'imageDependent.userImageDependent',
|
|
48
|
-
id: 'user_image_dependent',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
value: 'gallery_image_dependent',
|
|
52
|
-
label: 'imageDependent.galleryImageDependent',
|
|
53
|
-
id: 'gallery_image_dependent',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
26
|
+
name: 'imageDataDependent',
|
|
27
|
+
label: 'image Data Dependent',
|
|
28
|
+
type: 'toggle',
|
|
56
29
|
},
|
|
57
30
|
{
|
|
58
31
|
name: 'texts',
|
|
@@ -102,13 +75,13 @@ const formFields = [
|
|
|
102
75
|
name: 'price',
|
|
103
76
|
label: 'price',
|
|
104
77
|
type: LocalizedPriceTextField,
|
|
105
|
-
renderValue: value => <LocalizedPriceValue data={value}
|
|
78
|
+
renderValue: value => <LocalizedPriceValue data={value}/>,
|
|
106
79
|
},
|
|
107
80
|
{
|
|
108
81
|
name: 'priceNet',
|
|
109
82
|
label: 'price Net',
|
|
110
83
|
type: LocalizedPriceTextField,
|
|
111
|
-
renderValue: value => <LocalizedPriceValue data={value}
|
|
84
|
+
renderValue: value => <LocalizedPriceValue data={value}/>,
|
|
112
85
|
},
|
|
113
86
|
],
|
|
114
87
|
},
|
|
@@ -116,4 +89,8 @@ const formFields = [
|
|
|
116
89
|
},
|
|
117
90
|
];
|
|
118
91
|
|
|
92
|
+
import generateConnectedEdit from '../../../Components/DefaultConnectedForm';
|
|
93
|
+
import {LocalizedPriceTextField} from "../../../Components/LocalizedPriceTextField";
|
|
94
|
+
import LocalizedPriceValue from "../../../Components/LocalizedPriceValue";
|
|
95
|
+
import React from "react";
|
|
119
96
|
export default generateConnectedEdit(formFields, REDUCER_NAME, setFieldData, postData);
|
|
@@ -15,13 +15,6 @@ require('../../App/i18n').use(
|
|
|
15
15
|
addButtonLabel: 'Add Price',
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
|
-
imageDependent: {
|
|
19
|
-
label: 'Depending on the image data',
|
|
20
|
-
no: 'No',
|
|
21
|
-
imageDataDependent: 'Image data dependent (uploaded + images from image gallery)',
|
|
22
|
-
userImageDependent: 'Uploaded Image Data Dependent',
|
|
23
|
-
galleryImageDependent: 'Image gallery Data Dependent',
|
|
24
|
-
},
|
|
25
18
|
},
|
|
26
19
|
de: {
|
|
27
20
|
designer_global_calculation_types: 'Globale Kalkulationsposten',
|
|
@@ -38,13 +31,6 @@ require('../../App/i18n').use(
|
|
|
38
31
|
addButtonLabel: 'Preis hinzufügen',
|
|
39
32
|
},
|
|
40
33
|
},
|
|
41
|
-
imageDependent: {
|
|
42
|
-
label: 'Abhängig von den Bilddaten',
|
|
43
|
-
no: 'Nein',
|
|
44
|
-
imageDataDependent: 'Abhängig von Bilddaten (hochgeladene + Bildern aus der Bildergalerie)',
|
|
45
|
-
userImageDependent: 'Abhängig von hochgeladenen Bildern',
|
|
46
|
-
galleryImageDependent: 'Abhängig von Bildern aus der Bildergalerie',
|
|
47
|
-
},
|
|
48
34
|
},
|
|
49
35
|
},
|
|
50
36
|
true
|