@configuratorware/configurator-admingui 1.26.5 → 1.27.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.
Files changed (44) hide show
  1. package/package.json +2 -2
  2. package/src/App/Data.js +9 -0
  3. package/src/App/Reducers/Common/OrderList/Actions.js +11 -3
  4. package/src/App/Reducers/Common/OrderList/Listener.js +2 -2
  5. package/src/App/Reducers/Common/OrderList/Reducer.js +22 -3
  6. package/src/App/Styles.scss +19 -1
  7. package/src/Components/DefaultConnectedScreen.js +3 -2
  8. package/src/Components/DefaultScreen.js +10 -2
  9. package/src/Components/Form.js +4 -0
  10. package/src/Components/FormFragments/HintText.js +14 -0
  11. package/src/Components/FormFragments/InputArray.js +42 -13
  12. package/src/Components/FormFragments/SimpleTable.js +18 -2
  13. package/src/Components/FormFragments/Styles.scss +4 -0
  14. package/src/Components/FormFragments/Text.js +1 -0
  15. package/src/Components/FormFragments/index.js +3 -0
  16. package/src/Components/List.js +1 -0
  17. package/src/Components/OrderList.js +15 -7
  18. package/src/Components/Pagination.js +8 -0
  19. package/src/Components/SplitContainer.js +25 -2
  20. package/src/Components/Styles.scss +2 -0
  21. package/src/Components/Translations.js +6 -0
  22. package/src/Screens/ColorPalettes/Components/DefaultColorSwitch.js +54 -0
  23. package/src/Screens/ColorPalettes/Containers/Edit.js +39 -21
  24. package/src/Screens/ColorPalettes/Translations.js +1 -0
  25. package/src/Screens/Creator/Reducers/ConfigurationActions.js +1 -1
  26. package/src/Screens/DesignProductionMethods/Containers/Edit.js +0 -5
  27. package/src/Screens/DesignProductionMethods/Reducers/DesignProductionMethodsReducer.js +0 -1
  28. package/src/Screens/Designer/SubScreens/DesignAreas/Containers/FormProductionMethods.js +339 -256
  29. package/src/Screens/Designer/SubScreens/DesignAreas/Reducers/Reducer.js +26 -3
  30. package/src/Screens/Designer/SubScreens/DesignAreas/Translations.js +16 -2
  31. package/src/Screens/Designer/__tests__/FormProductionMethods.test.js +0 -2
  32. package/src/Screens/Designer/__tests__/__snapshots__/FormProductionMethods.test.js.snap +167 -50
  33. package/src/Screens/DesignerGlobalItemPrices/Containers/Edit.js +34 -6
  34. package/src/Screens/DesignerGlobalItemPrices/Reducers/Actions.js +1 -1
  35. package/src/Screens/DesignerGlobalItemPrices/Screen.js +3 -1
  36. package/src/Screens/DesignerGlobalItemPrices/Translations.js +8 -0
  37. package/src/Screens/Font/Containers/List.js +14 -3
  38. package/src/Screens/Item/Containers/Styles.scss +3 -0
  39. package/src/Screens/OptionPools/Containers/Edit.js +20 -0
  40. package/src/Screens/OptionPools/Reducers/Reducer.js +3 -2
  41. package/src/Screens/Setting/Containers/Edit.js +6 -0
  42. package/src/Screens/Setting/Reducers/Reducer.js +1 -0
  43. package/src/Screens/Setting/Translations.js +4 -0
  44. package/src/Screens/ColorPalettes/Components/DefaultColorRadio.js +0 -35
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import Actions, { LIST_KEY } from '../Reducers/Actions';
2
3
  const { detailsAction, hideDetails, showDetails, createEntity, listAction, deleteEntities } = Actions;
3
4
 
@@ -24,13 +25,12 @@ const columns = [
24
25
  const listParams = {
25
26
  entity: 'fonts',
26
27
  addButtonLabel: 'fontScreen.addButtonLabel',
27
- orderby: 'font.name',
28
- orderdir: 'asc',
29
28
  };
30
29
 
31
30
  import generateConnectedList from '../../../Components/DefaultConnectedList';
31
+ import OrderList from '../../../Components/OrderList';
32
32
 
33
- export default generateConnectedList(
33
+ export const ConnectedList = generateConnectedList(
34
34
  columns,
35
35
  listParams,
36
36
  LIST_KEY,
@@ -41,3 +41,14 @@ export default generateConnectedList(
41
41
  createEntity,
42
42
  deleteEntities
43
43
  );
44
+
45
+ export const list = () => {
46
+ return (
47
+ <div>
48
+ <ConnectedList />
49
+ <OrderList listUrl={LIST_KEY} entity={'font'} orderSequenceNumber={'sequence_number'} />
50
+ </div>
51
+ );
52
+ };
53
+
54
+ export default list;
@@ -85,5 +85,8 @@
85
85
 
86
86
  .itemEdit {
87
87
  position: relative;
88
+ @media (max-width: 960px) {
89
+ margin-top: 40px;
90
+ }
88
91
  .configuratorQuickView {}
89
92
  }
@@ -10,6 +10,26 @@ const formFields = [
10
10
  label: 'Identifier',
11
11
  type: 'text',
12
12
  },
13
+ {
14
+ name: 'texts',
15
+ label: 'Title',
16
+ type: 'intl',
17
+ intl: {
18
+ name: 'title',
19
+ type: 'text',
20
+ },
21
+ },
22
+ {
23
+ name: 'texts',
24
+ label: 'Description',
25
+ type: 'intl',
26
+ intl: {
27
+ name: 'description',
28
+ type: 'text',
29
+ },
30
+ multiLine: true,
31
+ rows: 6,
32
+ },
13
33
  {
14
34
  name: 'options',
15
35
  label: 'Options',
@@ -7,12 +7,13 @@ const initialState = {
7
7
  {
8
8
  id: null,
9
9
  identifier: { value: '', constraints: { identifier: true } },
10
+ texts: { value: [] },
10
11
  options: {
11
12
  value: [],
12
13
  schema: {
13
14
  id: { value: null },
14
- identifier: { value: '' },
15
- translated_title: { value: '' }, // form helper
15
+ identifier: { value: null, constraints: { presence: true } },
16
+ translated_title: { value: '' },
16
17
  },
17
18
  },
18
19
  },
@@ -57,6 +57,12 @@ const formFields = [
57
57
  label: 'settingsScreen.maxZoom2d',
58
58
  type: 'number',
59
59
  },
60
+ {
61
+ type: 'text',
62
+ label: 'settingsScreen.shareUrl',
63
+ name: 'shareurl',
64
+ helperText: 'settingsScreen.shareUrlHelperText'
65
+ },
60
66
  {
61
67
  name: 'showItemIdentifier',
62
68
  label: 'settingsScreen.showItemIdentifier',
@@ -16,6 +16,7 @@ const initialState = {
16
16
  showItemIdentifier: false,
17
17
  callToAction: 'addToCart',
18
18
  calculationMethod: 'sumofall',
19
+ shareurl: '',
19
20
  },
20
21
  {},
21
22
  SETTING_DATA_KEY
@@ -10,6 +10,8 @@ require('../../App/i18n').use(
10
10
  showItemIdentifier:
11
11
  'Display item identifier in the configurator</br>(termkey for the label: item_identifier_label)',
12
12
  calculationMethod: 'Price calculation',
13
+ shareUrl: 'URL for sharing configurations',
14
+ shareUrlHelperText: 'include placeholder for configuration code, e.g. https://www.myshop.com/configurator/code:{code}<br>For more dynamic needs, \'&_share_url=\' can be passed as a GET parameter to the frontend.'
13
15
  },
14
16
  callToAction: {
15
17
  callToAction: 'Call-to-Action Element',
@@ -32,6 +34,8 @@ require('../../App/i18n').use(
32
34
  showItemIdentifier:
33
35
  'Produkt Identifier im Konfigurator anzeigen</br>(Übersetzungskey für das Label: item_identifier_label)',
34
36
  calculationMethod: 'Preiskalkulation',
37
+ shareUrl: 'URL zum Teilen von Konfigurationen',
38
+ shareUrlHelperText: 'Mit Platzhalter für Konfigurations-Code, z.B. https://www.myshop.com/configurator/code:{code}<br>Für dynamischere Anforderungen kann der GET Parameter \'&_share_url=\' beim Aufruf des Frontends übergeben werden.'
35
39
  },
36
40
  callToAction: {
37
41
  callToAction: 'Call-to-Action Element',
@@ -1,35 +0,0 @@
1
- import React, { Component } from 'react';
2
- import { connect } from 'react-redux';
3
- import PropTypes from 'prop-types';
4
- import get from 'lodash/get';
5
- import Radio from '@material-ui/core/Radio';
6
- import Actions, { COLORPALETTES_REDUCER_NAME } from '../Reducers/Actions';
7
-
8
- export class DefaultColorRadio extends Component {
9
- static propTypes = {
10
- color: PropTypes.object,
11
- };
12
-
13
- onRadioChange = () => {
14
- this.props.setDefaultColor(this.props.color);
15
- };
16
-
17
- render() {
18
- return <Radio checked={this.props.isDefaultColor} onChange={this.onRadioChange} />;
19
- }
20
- }
21
-
22
- const mapStateToProps = (state, ownProps) => {
23
- const colorId = get(ownProps.color, 'id', null);
24
- const defaultColorId = get(state, `${COLORPALETTES_REDUCER_NAME}.data.defaultColor.value.id`, null);
25
-
26
- return {
27
- isDefaultColor: colorId === defaultColorId,
28
- };
29
- };
30
-
31
- const mapDispatchToProps = dispatch => ({
32
- setDefaultColor: color => dispatch(Actions.setFieldData('defaultColor', color)),
33
- });
34
-
35
- export default connect(mapStateToProps, mapDispatchToProps)(DefaultColorRadio);