@configuratorware/configurator-admingui 1.43.2 → 1.44.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.
@@ -98,13 +98,13 @@ var IntlInputHoc = function IntlInputHoc(IntlInputComponent) {
98
98
  value: function render() {
99
99
  var open = this.state.open;
100
100
  var tfs = [];
101
- var locales = open ? this.locales : [this.props.locale];
101
+ var locales = open ? this.locales : this.locales.includes(this.props.locale) ? [this.props.locale] : [this.locales[0]];
102
102
  var _iterator = _createForOfIteratorHelper(locales),
103
103
  _step;
104
104
  try {
105
105
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
106
106
  var locale = _step.value;
107
- var _locale = locale.replace('-', '_');
107
+ var _locale = locale === null || locale === void 0 ? void 0 : locale.replace('-', '_');
108
108
  var props = _objectSpread({}, this.props);
109
109
  var value = _lodash["default"].get(_lodash["default"].find(props.value, {
110
110
  language: _locale
@@ -69,7 +69,8 @@ var InspirationsScreen = function InspirationsScreen(props) {
69
69
  loadDetails: loadDetails,
70
70
  showDetails: showDetails,
71
71
  EditComponent: EditComponent,
72
- hideDetails: hideDetails
72
+ hideDetails: hideDetails,
73
+ hideDetailsAction: hideDetails
73
74
  }, props));
74
75
  };
75
76
  var _default = exports["default"] = InspirationsScreen;
@@ -5,5 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _TableSortLabel = _interopRequireDefault(require("@material-ui/core/TableSortLabel/TableSortLabel"));
8
+ var _styles = require("@material-ui/core/styles");
9
+ var _core = require("@material-ui/core");
8
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- var _default = exports["default"] = _TableSortLabel["default"];
11
+ var StyledTableSortLabel = (0, _styles.withStyles)(function () {
12
+ return (0, _core.createStyles)({
13
+ root: {
14
+ color: 'inherit',
15
+ '&$active': {
16
+ color: '#45c08a'
17
+ }
18
+ },
19
+ active: {},
20
+ icon: {}
21
+ });
22
+ })(_TableSortLabel["default"]);
23
+ var _default = exports["default"] = StyledTableSortLabel;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@configuratorware/configurator-admingui",
3
- "version": "1.43.2",
3
+ "version": "1.44.0",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@babel/polyfill": "^7.12.1",
8
- "@configuratorware/scripts": "1.43.2",
8
+ "@configuratorware/scripts": "1.44.0",
9
9
  "@material-ui/core": "^3.9.4",
10
10
  "@material-ui/icons": "^3.0.2",
11
11
  "@tweenjs/tween.js": "^17.6.0",
@@ -28,7 +28,7 @@
28
28
  "react-redux-i18n": "^1.9.3",
29
29
  "react-router": "^3.2.6",
30
30
  "react-sortable-hoc": "^1.11.0",
31
- "redhotmagma-visualization": "1.43.2",
31
+ "redhotmagma-visualization": "1.44.0",
32
32
  "redux": "^4.1.0",
33
33
  "redux-logger": "^3.0.6",
34
34
  "redux-persist": "^5.10.0",
@@ -14,7 +14,9 @@ function getConfig(customConfigDecorator) {
14
14
  presets,
15
15
  plugins,
16
16
  };
17
- return customConfigDecorator ? customConfigDecorator(config, api) : config;
17
+ return customConfigDecorator && customConfigDecorator instanceof Function
18
+ ? customConfigDecorator(config, api)
19
+ : config;
18
20
  };
19
21
  }
20
22