@crystaldesign/diva-backoffice 26.11.0-beta.1 → 26.11.0-beta.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/build/esm/index.js +866 -495
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.d.ts +3 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.d.ts +28 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts +2 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts +13 -5
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useAdditionalItemRefs.d.ts +5 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useAdditionalItemRefs.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts +2 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -127,7 +127,7 @@ import QuestionOutlined from '@ant-design/icons/QuestionOutlined';
|
|
|
127
127
|
import { TransformWrapper, TransformComponent } from 'react-zoom-pan-pinch';
|
|
128
128
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
129
129
|
import Descriptions$1 from 'antd/es/descriptions';
|
|
130
|
-
import { Spreadsheet as Spreadsheet$1, applyFilterToAddtionalColumn } from '@crystaldesign/spreadsheet';
|
|
130
|
+
import { Spreadsheet as Spreadsheet$1, applyFilterToAddtionalColumn, SelectAllOption } from '@crystaldesign/spreadsheet';
|
|
131
131
|
import Modal$3 from 'antd/es/modal';
|
|
132
132
|
import Spin$1 from 'antd/es/spin';
|
|
133
133
|
import Flex from 'antd/es/flex';
|
|
@@ -203,8 +203,8 @@ import { GoogleGenAI } from '@google/genai';
|
|
|
203
203
|
function _createForOfIteratorHelper$H(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$H(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
204
204
|
function _unsupportedIterableToArray$H(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$H(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$H(r, a) : void 0; } }
|
|
205
205
|
function _arrayLikeToArray$H(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
206
|
-
function ownKeys$
|
|
207
|
-
function _objectSpread$
|
|
206
|
+
function ownKeys$1R(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
207
|
+
function _objectSpread$1R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
208
208
|
var LOG$q = getLogger('Backoffice', 'ApplyMapping');
|
|
209
209
|
function applyMapping (_ref) {
|
|
210
210
|
var mappable = _ref.mappable,
|
|
@@ -225,10 +225,10 @@ function applyMapping (_ref) {
|
|
|
225
225
|
var newValue = {};
|
|
226
226
|
newValue[newKey] = valueToAdd;
|
|
227
227
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
|
228
|
-
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$
|
|
228
|
+
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$1R(_objectSpread$1R({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
|
229
229
|
return startValue;
|
|
230
230
|
}
|
|
231
|
-
if (newIdx == 1) return _objectSpread$
|
|
231
|
+
if (newIdx == 1) return _objectSpread$1R(_objectSpread$1R({}, startValue), newValue);
|
|
232
232
|
return _getTarget(idx + 1, keys, startValue, newValue);
|
|
233
233
|
};
|
|
234
234
|
returnValue = _getTarget(0, key.split('.'), returnValue, value);
|
|
@@ -531,8 +531,8 @@ function getLeafColumns(columns) {
|
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
-
function ownKeys$
|
|
535
|
-
function _objectSpread$
|
|
534
|
+
function ownKeys$1Q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
535
|
+
function _objectSpread$1Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
536
536
|
var LOG$p = getLogger('Backoffice', 'ApiHandler');
|
|
537
537
|
var jp = require('jsonpath');
|
|
538
538
|
var _default$c = /*#__PURE__*/function () {
|
|
@@ -711,7 +711,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
711
711
|
_context2.next = 20;
|
|
712
712
|
return fetch(finalUrl, {
|
|
713
713
|
method: this._updateMethod,
|
|
714
|
-
headers: _objectSpread$
|
|
714
|
+
headers: _objectSpread$1Q(_objectSpread$1Q({}, jwt ? {
|
|
715
715
|
Authorization: 'Bearer ' + jwt
|
|
716
716
|
} : {}), {}, {
|
|
717
717
|
'Content-Type': 'application/json'
|
|
@@ -804,7 +804,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
804
804
|
rootStore: this._rootStore,
|
|
805
805
|
fallBackToParams: true
|
|
806
806
|
});
|
|
807
|
-
if (data) createData = _objectSpread$
|
|
807
|
+
if (data) createData = _objectSpread$1Q({}, data);
|
|
808
808
|
} else if (data !== undefined) {
|
|
809
809
|
createData = applyMapping({
|
|
810
810
|
mappable: data,
|
|
@@ -1066,7 +1066,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1066
1066
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1067
1067
|
case 2:
|
|
1068
1068
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
|
1069
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1069
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$1Q(_objectSpread$1Q({}, filterServerSide), {}, {
|
|
1070
1070
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1071
1071
|
baseUrl: this._readListUrl,
|
|
1072
1072
|
prefilter: prefilter
|
|
@@ -1086,7 +1086,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1086
1086
|
});
|
|
1087
1087
|
case 6:
|
|
1088
1088
|
response = _context8.sent;
|
|
1089
|
-
return _context8.abrupt("return", _objectSpread$
|
|
1089
|
+
return _context8.abrupt("return", _objectSpread$1Q(_objectSpread$1Q({}, response), {}, {
|
|
1090
1090
|
data: response.data.map(function (d) {
|
|
1091
1091
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
|
1092
1092
|
})
|
|
@@ -1110,7 +1110,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1110
1110
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1111
1111
|
}
|
|
1112
1112
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
|
1113
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1113
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$1Q(_objectSpread$1Q({}, filterServerSide), {}, {
|
|
1114
1114
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1115
1115
|
baseUrl: this._readListUrl,
|
|
1116
1116
|
prefilter: prefilter
|
|
@@ -2025,8 +2025,8 @@ function buildContentTranslationItems(content, t) {
|
|
|
2025
2025
|
return translationItems;
|
|
2026
2026
|
}
|
|
2027
2027
|
|
|
2028
|
-
function ownKeys$
|
|
2029
|
-
function _objectSpread$
|
|
2028
|
+
function ownKeys$1P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2029
|
+
function _objectSpread$1P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2030
2030
|
var PROMPT_RESOLUTION_VALUE_STRINGS = promptAndAiTesterOptions.aiImageTester.resolutionOptions.map(function (o) {
|
|
2031
2031
|
return o.apiValue;
|
|
2032
2032
|
});
|
|
@@ -2067,7 +2067,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
|
2067
2067
|
var _i$permission;
|
|
2068
2068
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
|
2069
2069
|
});
|
|
2070
|
-
config = _objectSpread$
|
|
2070
|
+
config = _objectSpread$1P(_objectSpread$1P({}, config), {}, {
|
|
2071
2071
|
items: filteredItems
|
|
2072
2072
|
});
|
|
2073
2073
|
}
|
|
@@ -15098,8 +15098,8 @@ function getIcon(icon) {
|
|
|
15098
15098
|
return undefined;
|
|
15099
15099
|
}
|
|
15100
15100
|
|
|
15101
|
-
function ownKeys$
|
|
15102
|
-
function _objectSpread$
|
|
15101
|
+
function ownKeys$1O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15102
|
+
function _objectSpread$1O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15103
15103
|
/**
|
|
15104
15104
|
* Browser-persisted per-tool user preferences (docked width/pin/open + popout geometry).
|
|
15105
15105
|
* Keyed by the owning toolbar's preference key: the tool id, or one shared slot key for
|
|
@@ -15145,7 +15145,7 @@ function readToolPreferences(toolId) {
|
|
|
15145
15145
|
/** Merges the given fields into the tool's stored preferences. Best-effort — preferences are non-essential. */
|
|
15146
15146
|
function updateToolPreferences(toolId, patch) {
|
|
15147
15147
|
try {
|
|
15148
|
-
localStorage.setItem(STORAGE_PREFIX$1 + toolId, JSON.stringify(_objectSpread$
|
|
15148
|
+
localStorage.setItem(STORAGE_PREFIX$1 + toolId, JSON.stringify(_objectSpread$1O(_objectSpread$1O({}, readToolPreferences(toolId)), patch)));
|
|
15149
15149
|
} catch (_unused2) {
|
|
15150
15150
|
// storage unavailable / quota exceeded
|
|
15151
15151
|
}
|
|
@@ -15751,8 +15751,8 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
|
15751
15751
|
}]);
|
|
15752
15752
|
}();
|
|
15753
15753
|
|
|
15754
|
-
function ownKeys$
|
|
15755
|
-
function _objectSpread$
|
|
15754
|
+
function ownKeys$1N(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15755
|
+
function _objectSpread$1N(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1N(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1N(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15756
15756
|
function _createForOfIteratorHelper$F(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$F(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
15757
15757
|
function _unsupportedIterableToArray$F(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$F(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$F(r, a) : void 0; } }
|
|
15758
15758
|
function _arrayLikeToArray$F(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -15898,7 +15898,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
15898
15898
|
if (index >= 0) {
|
|
15899
15899
|
this._additionalMenuElements[index] = {
|
|
15900
15900
|
key: key,
|
|
15901
|
-
element: _objectSpread$
|
|
15901
|
+
element: _objectSpread$1N(_objectSpread$1N({}, this._additionalMenuElements[index].element), {}, {
|
|
15902
15902
|
items: items,
|
|
15903
15903
|
selected: selected
|
|
15904
15904
|
})
|
|
@@ -15971,7 +15971,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
15971
15971
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
|
15972
15972
|
this.root.navigate('/' + path);
|
|
15973
15973
|
}
|
|
15974
|
-
this._menuElement1 = _objectSpread$
|
|
15974
|
+
this._menuElement1 = _objectSpread$1N(_objectSpread$1N({}, this.menuElement1), {}, {
|
|
15975
15975
|
selected: this._selectedMenuKeys[0]
|
|
15976
15976
|
});
|
|
15977
15977
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
|
@@ -16247,7 +16247,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
16247
16247
|
}
|
|
16248
16248
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
|
16249
16249
|
}).map(function (item) {
|
|
16250
|
-
return _objectSpread$
|
|
16250
|
+
return _objectSpread$1N(_objectSpread$1N({}, item), {}, {
|
|
16251
16251
|
items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
|
|
16252
16252
|
subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
|
16253
16253
|
});
|
|
@@ -17646,8 +17646,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
|
17646
17646
|
return _createClass(_default);
|
|
17647
17647
|
}(_default$c);
|
|
17648
17648
|
|
|
17649
|
-
function ownKeys$
|
|
17650
|
-
function _objectSpread$
|
|
17649
|
+
function ownKeys$1M(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17650
|
+
function _objectSpread$1M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17651
17651
|
var LOG$n = getLogger('Backoffice', 'ContextStore');
|
|
17652
17652
|
|
|
17653
17653
|
/**
|
|
@@ -17682,7 +17682,7 @@ var ContextStore = /*#__PURE__*/function () {
|
|
|
17682
17682
|
key: "updateContext",
|
|
17683
17683
|
value: function updateContext(contextId, updates) {
|
|
17684
17684
|
var currentState = this.contexts.get(contextId) || {};
|
|
17685
|
-
var updatedState = _objectSpread$
|
|
17685
|
+
var updatedState = _objectSpread$1M(_objectSpread$1M({}, currentState), updates);
|
|
17686
17686
|
this.contexts.set(contextId, updatedState);
|
|
17687
17687
|
LOG$n.debug("Updated context ".concat(contextId), {
|
|
17688
17688
|
updatedState: updatedState
|
|
@@ -17920,8 +17920,8 @@ function removeEmpty(data) {
|
|
|
17920
17920
|
return undefined;
|
|
17921
17921
|
}
|
|
17922
17922
|
|
|
17923
|
-
function ownKeys$
|
|
17924
|
-
function _objectSpread$
|
|
17923
|
+
function ownKeys$1L(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17924
|
+
function _objectSpread$1L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17925
17925
|
function fetchFileData(_x) {
|
|
17926
17926
|
return _fetchFileData.apply(this, arguments);
|
|
17927
17927
|
}
|
|
@@ -18081,7 +18081,7 @@ function _uploadMediaItem() {
|
|
|
18081
18081
|
_context4.next = 4;
|
|
18082
18082
|
return fetch("".concat(root, "/v1/assets/uploads"), {
|
|
18083
18083
|
method: 'POST',
|
|
18084
|
-
headers: _objectSpread$
|
|
18084
|
+
headers: _objectSpread$1L({
|
|
18085
18085
|
'Content-Type': 'application/json'
|
|
18086
18086
|
}, auth),
|
|
18087
18087
|
body: JSON.stringify({
|
|
@@ -18147,7 +18147,7 @@ function _uploadMediaItem() {
|
|
|
18147
18147
|
_context4.next = 31;
|
|
18148
18148
|
return fetch("".concat(root, "/v1/assets/uploads/complete"), {
|
|
18149
18149
|
method: 'POST',
|
|
18150
|
-
headers: _objectSpread$
|
|
18150
|
+
headers: _objectSpread$1L({
|
|
18151
18151
|
'Content-Type': 'application/json'
|
|
18152
18152
|
}, auth),
|
|
18153
18153
|
body: JSON.stringify({
|
|
@@ -18192,7 +18192,7 @@ function _uploadMediaItem() {
|
|
|
18192
18192
|
refUrl = (_ref$url = ref.url) !== null && _ref$url !== void 0 ? _ref$url : ref.cdnUrl;
|
|
18193
18193
|
return _context4.abrupt("return", {
|
|
18194
18194
|
_id: mediaItem._id,
|
|
18195
|
-
ref: _objectSpread$
|
|
18195
|
+
ref: _objectSpread$1L(_objectSpread$1L({}, ref), {}, {
|
|
18196
18196
|
_id: ref._id,
|
|
18197
18197
|
url: refUrl
|
|
18198
18198
|
})
|
|
@@ -18640,8 +18640,8 @@ function getData$1(id, data) {
|
|
|
18640
18640
|
function _createForOfIteratorHelper$C(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$C(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
18641
18641
|
function _unsupportedIterableToArray$C(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$C(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$C(r, a) : void 0; } }
|
|
18642
18642
|
function _arrayLikeToArray$C(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18643
|
-
function ownKeys$
|
|
18644
|
-
function _objectSpread$
|
|
18643
|
+
function ownKeys$1K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18644
|
+
function _objectSpread$1K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18645
18645
|
function toNamePath$2(name) {
|
|
18646
18646
|
if (name === undefined || name === '') return [];
|
|
18647
18647
|
return Array.isArray(name) ? name : [name];
|
|
@@ -18711,7 +18711,7 @@ function useFormData (_ref) {
|
|
|
18711
18711
|
var _useMemo = useMemo(function () {
|
|
18712
18712
|
setCanSave === null || setCanSave === void 0 || setCanSave(true);
|
|
18713
18713
|
var baseConfiguration = configurationOverride !== null && configurationOverride !== void 0 ? configurationOverride : root.configurationStore.getConfiguration(id, 'Form');
|
|
18714
|
-
var configuration = _objectSpread$
|
|
18714
|
+
var configuration = _objectSpread$1K(_objectSpread$1K({}, baseConfiguration), {}, {
|
|
18715
18715
|
apiInterface: apiInterface !== null && apiInterface !== void 0 ? apiInterface : baseConfiguration.apiInterface
|
|
18716
18716
|
});
|
|
18717
18717
|
var c = {
|
|
@@ -18811,7 +18811,7 @@ function useFormData (_ref) {
|
|
|
18811
18811
|
multipleEditingData = inboundData;
|
|
18812
18812
|
}
|
|
18813
18813
|
return {
|
|
18814
|
-
loadedData: _onLoadFields(_objectSpread$
|
|
18814
|
+
loadedData: _onLoadFields(_objectSpread$1K({}, dt)),
|
|
18815
18815
|
multipleEditingData: multipleEditingData
|
|
18816
18816
|
};
|
|
18817
18817
|
}, [inboundData]),
|
|
@@ -18838,7 +18838,7 @@ function useFormData (_ref) {
|
|
|
18838
18838
|
setFieldErrors = _useState20[1];
|
|
18839
18839
|
useEffect(function () {
|
|
18840
18840
|
var _loadedData$_id2;
|
|
18841
|
-
setState(_objectSpread$
|
|
18841
|
+
setState(_objectSpread$1K(_objectSpread$1K({}, state), {}, {
|
|
18842
18842
|
data: loadedData,
|
|
18843
18843
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
|
18844
18844
|
update: !!((_loadedData$_id2 = loadedData === null || loadedData === void 0 ? void 0 : loadedData._id) !== null && _loadedData$_id2 !== void 0 ? _loadedData$_id2 : loadedData === null || loadedData === void 0 ? void 0 : loadedData.ID),
|
|
@@ -18951,7 +18951,7 @@ function useFormData (_ref) {
|
|
|
18951
18951
|
root.actions.toggleLoading('saving_form');
|
|
18952
18952
|
_context2.prev = 4;
|
|
18953
18953
|
_context2.next = 7;
|
|
18954
|
-
return setDynamicFields(_objectSpread$
|
|
18954
|
+
return setDynamicFields(_objectSpread$1K({}, state.data), newData);
|
|
18955
18955
|
case 7:
|
|
18956
18956
|
newData = _context2.sent;
|
|
18957
18957
|
_context2.next = 10;
|
|
@@ -18966,7 +18966,7 @@ function useFormData (_ref) {
|
|
|
18966
18966
|
root.actions.toggleLoading('saving_form');
|
|
18967
18967
|
throw _context2.t0;
|
|
18968
18968
|
case 17:
|
|
18969
|
-
setState(_objectSpread$
|
|
18969
|
+
setState(_objectSpread$1K(_objectSpread$1K({}, state), {}, {
|
|
18970
18970
|
loading: true
|
|
18971
18971
|
}));
|
|
18972
18972
|
finalData = state.data;
|
|
@@ -19019,14 +19019,14 @@ function useFormData (_ref) {
|
|
|
19019
19019
|
_context2.next = 47;
|
|
19020
19020
|
break;
|
|
19021
19021
|
}
|
|
19022
|
-
setFieldErrors(_objectSpread$
|
|
19022
|
+
setFieldErrors(_objectSpread$1K(_objectSpread$1K({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
|
19023
19023
|
return _context2.abrupt("return", undefined);
|
|
19024
19024
|
case 47:
|
|
19025
19025
|
throw _context2.t1;
|
|
19026
19026
|
case 48:
|
|
19027
19027
|
_context2.prev = 48;
|
|
19028
19028
|
root.actions.toggleLoading('saving_form');
|
|
19029
|
-
setState(_objectSpread$
|
|
19029
|
+
setState(_objectSpread$1K(_objectSpread$1K({}, state), {}, {
|
|
19030
19030
|
data: finalData,
|
|
19031
19031
|
loading: false
|
|
19032
19032
|
}));
|
|
@@ -19082,11 +19082,11 @@ function useFormData (_ref) {
|
|
|
19082
19082
|
var data = d !== null && d !== void 0 ? d : mergeWith(cloneDeep(state.data), formValues, mergeFormWithCustomizer);
|
|
19083
19083
|
if (id) {
|
|
19084
19084
|
setFieldInObject(id, data, value);
|
|
19085
|
-
var newFieldErrors = _objectSpread$
|
|
19085
|
+
var newFieldErrors = _objectSpread$1K({}, fieldErrors);
|
|
19086
19086
|
delete newFieldErrors[id.toString()];
|
|
19087
19087
|
setFieldErrors(newFieldErrors);
|
|
19088
19088
|
}
|
|
19089
|
-
setState(_objectSpread$
|
|
19089
|
+
setState(_objectSpread$1K(_objectSpread$1K({}, state), {}, {
|
|
19090
19090
|
data: data
|
|
19091
19091
|
}));
|
|
19092
19092
|
return data;
|
|
@@ -19142,10 +19142,10 @@ function useFormData (_ref) {
|
|
|
19142
19142
|
} else {
|
|
19143
19143
|
data[name] = val;
|
|
19144
19144
|
}
|
|
19145
|
-
if (configuration.itemSelectorReset) setState(_objectSpread$
|
|
19145
|
+
if (configuration.itemSelectorReset) setState(_objectSpread$1K(_objectSpread$1K({}, state), {}, {
|
|
19146
19146
|
data: data
|
|
19147
|
-
}));else setState(_objectSpread$
|
|
19148
|
-
data: _objectSpread$
|
|
19147
|
+
}));else setState(_objectSpread$1K(_objectSpread$1K({}, state), {}, {
|
|
19148
|
+
data: _objectSpread$1K(_objectSpread$1K({}, state.data), data)
|
|
19149
19149
|
}));
|
|
19150
19150
|
if (Array.isArray(configuration.items[selectorIdx[0]]) && Array.isArray(configuration.items[selectorIdx[0]][selectorIdx[1]])) {
|
|
19151
19151
|
setSelectedItemsIndex([selectorIdx[0], selectorIdx[1]]);
|
|
@@ -19178,12 +19178,12 @@ function useFormData (_ref) {
|
|
|
19178
19178
|
var val = _ref6.value;
|
|
19179
19179
|
if (value === val) {
|
|
19180
19180
|
if (configuration.itemSelectorReset) {
|
|
19181
|
-
setState(_objectSpread$
|
|
19181
|
+
setState(_objectSpread$1K(_objectSpread$1K({}, state), {}, {
|
|
19182
19182
|
data: _defineProperty({}, name, val)
|
|
19183
19183
|
}));
|
|
19184
19184
|
} else {
|
|
19185
|
-
setState(_objectSpread$
|
|
19186
|
-
data: _objectSpread$
|
|
19185
|
+
setState(_objectSpread$1K(_objectSpread$1K({}, state), {}, {
|
|
19186
|
+
data: _objectSpread$1K(_objectSpread$1K({}, state.data), {}, _defineProperty({}, name, val))
|
|
19187
19187
|
}));
|
|
19188
19188
|
}
|
|
19189
19189
|
setSelectedItemsIndex([selectedItemsIndex[0], idx]);
|
|
@@ -19358,7 +19358,7 @@ function useFormData (_ref) {
|
|
|
19358
19358
|
for (var i = 0; i < configuration.tools.length; i++) {
|
|
19359
19359
|
var _tool$defaultOpen;
|
|
19360
19360
|
var tool = configuration.tools[i];
|
|
19361
|
-
tools.push(_objectSpread$
|
|
19361
|
+
tools.push(_objectSpread$1K(_objectSpread$1K({}, tool), {}, {
|
|
19362
19362
|
parameters: {
|
|
19363
19363
|
data: state.data,
|
|
19364
19364
|
formInstance: form,
|
|
@@ -19511,7 +19511,7 @@ function useFormData (_ref) {
|
|
|
19511
19511
|
}
|
|
19512
19512
|
});
|
|
19513
19513
|
}
|
|
19514
|
-
return _objectSpread$
|
|
19514
|
+
return _objectSpread$1K(_objectSpread$1K({}, state), {}, {
|
|
19515
19515
|
getIsHidden: getIsHidden,
|
|
19516
19516
|
setUsedPreset: setUsedPreset,
|
|
19517
19517
|
configuration: configuration,
|
|
@@ -19629,8 +19629,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
|
19629
19629
|
};
|
|
19630
19630
|
|
|
19631
19631
|
var _excluded$c = ["key", "name"];
|
|
19632
|
-
function ownKeys$
|
|
19633
|
-
function _objectSpread$
|
|
19632
|
+
function ownKeys$1J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19633
|
+
function _objectSpread$1J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19634
19634
|
var FormList$2 = function FormList(_ref) {
|
|
19635
19635
|
var value = _ref.value,
|
|
19636
19636
|
item = _ref.item,
|
|
@@ -19695,7 +19695,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
19695
19695
|
var n = [name].concat(_toConsumableArray(Array.isArray(i.name) ? i.name : [i.name]), _toConsumableArray(i.doTranslate && postFixName ? Array.isArray(postFixName) ? postFixName : [postFixName] : []));
|
|
19696
19696
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
|
19697
19697
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
|
19698
|
-
return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$
|
|
19698
|
+
return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$1J(_objectSpread$1J({}, restField), {}, {
|
|
19699
19699
|
id: n.join(),
|
|
19700
19700
|
key: n.join(),
|
|
19701
19701
|
name: n,
|
|
@@ -19707,7 +19707,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
19707
19707
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
19708
19708
|
help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
|
|
19709
19709
|
hidden: hidden
|
|
19710
|
-
}), getElement(_objectSpread$
|
|
19710
|
+
}), getElement(_objectSpread$1J(_objectSpread$1J({}, i), {}, {
|
|
19711
19711
|
name: n
|
|
19712
19712
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
|
19713
19713
|
})
|
|
@@ -19941,8 +19941,8 @@ var buttonGroup = "button-group-GYt-T";
|
|
|
19941
19941
|
var css_248z$V = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
|
|
19942
19942
|
styleInject(css_248z$V);
|
|
19943
19943
|
|
|
19944
|
-
function ownKeys$
|
|
19945
|
-
function _objectSpread$
|
|
19944
|
+
function ownKeys$1I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19945
|
+
function _objectSpread$1I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19946
19946
|
var SubTitle = function SubTitle(_ref) {
|
|
19947
19947
|
var _item$label, _item$orientation, _item$buttonIds;
|
|
19948
19948
|
var item = _ref.item,
|
|
@@ -19952,7 +19952,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
|
19952
19952
|
var title = (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : Array.isArray(item.name) ? item.name[0].toString() : item.name;
|
|
19953
19953
|
return /*#__PURE__*/jsx(Divider, {
|
|
19954
19954
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'horizontal',
|
|
19955
|
-
style: _objectSpread$
|
|
19955
|
+
style: _objectSpread$1I({}, item.style),
|
|
19956
19956
|
children: /*#__PURE__*/jsxs("div", {
|
|
19957
19957
|
className: wrapper$7,
|
|
19958
19958
|
children: [t(title, title), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
|
|
@@ -20246,8 +20246,8 @@ var css_248z$U = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\
|
|
|
20246
20246
|
styleInject(css_248z$U);
|
|
20247
20247
|
|
|
20248
20248
|
var _excluded$b = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
|
20249
|
-
function ownKeys$
|
|
20250
|
-
function _objectSpread$
|
|
20249
|
+
function ownKeys$1H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20250
|
+
function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20251
20251
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
20252
20252
|
var apiInterface = _ref.apiInterface,
|
|
20253
20253
|
selectMapping = _ref.selectMapping,
|
|
@@ -20274,7 +20274,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
|
20274
20274
|
return /*#__PURE__*/jsxs("div", {
|
|
20275
20275
|
ref: ref,
|
|
20276
20276
|
className: classNames(title ? wrapper$6 : undefined),
|
|
20277
|
-
children: [title, /*#__PURE__*/jsx(Select, _objectSpread$
|
|
20277
|
+
children: [title, /*#__PURE__*/jsx(Select, _objectSpread$1H(_objectSpread$1H({}, selectProps), {}, {
|
|
20278
20278
|
showSearch: search,
|
|
20279
20279
|
loading: state.loading,
|
|
20280
20280
|
options: state.options,
|
|
@@ -20891,8 +20891,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
|
20891
20891
|
}]);
|
|
20892
20892
|
}(_default$c);
|
|
20893
20893
|
|
|
20894
|
-
function ownKeys$
|
|
20895
|
-
function _objectSpread$
|
|
20894
|
+
function ownKeys$1G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20895
|
+
function _objectSpread$1G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20896
20896
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
|
20897
20897
|
function useSelectClientRelationCatalog (_ref) {
|
|
20898
20898
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
|
@@ -21061,7 +21061,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
|
21061
21061
|
case 22:
|
|
21062
21062
|
supplierData = _context2.sent;
|
|
21063
21063
|
case 23:
|
|
21064
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
|
21064
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$1G(_objectSpread$1G({}, _selectedSupplier), {}, {
|
|
21065
21065
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
|
21066
21066
|
}), supplierData);
|
|
21067
21067
|
if (catalogId && catalogList.find(function (c) {
|
|
@@ -21294,8 +21294,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
|
21294
21294
|
function _createForOfIteratorHelper$A(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$A(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
21295
21295
|
function _unsupportedIterableToArray$A(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$A(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$A(r, a) : void 0; } }
|
|
21296
21296
|
function _arrayLikeToArray$A(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21297
|
-
function ownKeys$
|
|
21298
|
-
function _objectSpread$
|
|
21297
|
+
function ownKeys$1F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21298
|
+
function _objectSpread$1F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21299
21299
|
function useSelectData (_ref) {
|
|
21300
21300
|
var data = _ref.data,
|
|
21301
21301
|
onChange = _ref.onChange,
|
|
@@ -21767,7 +21767,7 @@ function useSelectData (_ref) {
|
|
|
21767
21767
|
setFetching(true);
|
|
21768
21768
|
serverSideParams = {
|
|
21769
21769
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? (_selectMapping$search = selectMapping.searchField) === null || _selectMapping$search === void 0 ? void 0 : _selectMapping$search.reduce(function (filter, field) {
|
|
21770
|
-
return _objectSpread$
|
|
21770
|
+
return _objectSpread$1F(_objectSpread$1F({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
|
21771
21771
|
}, {}) : {
|
|
21772
21772
|
_id: [value, 'contains']
|
|
21773
21773
|
},
|
|
@@ -22244,8 +22244,8 @@ var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
|
|
22244
22244
|
var css_248z$R = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
|
|
22245
22245
|
styleInject(css_248z$R);
|
|
22246
22246
|
|
|
22247
|
-
function ownKeys$
|
|
22248
|
-
function _objectSpread$
|
|
22247
|
+
function ownKeys$1E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22248
|
+
function _objectSpread$1E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22249
22249
|
var LOG$k = getLogger('Backoffice', 'Translation Form');
|
|
22250
22250
|
function useTranslationHook (item, state) {
|
|
22251
22251
|
var root = useStore();
|
|
@@ -22378,7 +22378,7 @@ function useTranslationHook (item, state) {
|
|
|
22378
22378
|
case 0:
|
|
22379
22379
|
_context2.next = 2;
|
|
22380
22380
|
return apiHandler.create({
|
|
22381
|
-
locales: _objectSpread$
|
|
22381
|
+
locales: _objectSpread$1E({
|
|
22382
22382
|
de: {},
|
|
22383
22383
|
it: {},
|
|
22384
22384
|
fr: {},
|
|
@@ -22427,8 +22427,8 @@ function useTranslationHook (item, state) {
|
|
|
22427
22427
|
};
|
|
22428
22428
|
}
|
|
22429
22429
|
|
|
22430
|
-
function ownKeys$
|
|
22431
|
-
function _objectSpread$
|
|
22430
|
+
function ownKeys$1D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22431
|
+
function _objectSpread$1D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22432
22432
|
var HiddenFormField = function HiddenFormField() {
|
|
22433
22433
|
return null;
|
|
22434
22434
|
};
|
|
@@ -22494,7 +22494,7 @@ var Translation = function Translation(_ref) {
|
|
|
22494
22494
|
}, key);
|
|
22495
22495
|
}
|
|
22496
22496
|
return /*#__PURE__*/jsx(React.Fragment, {
|
|
22497
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
|
22497
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$1D(_objectSpread$1D({}, i), {}, {
|
|
22498
22498
|
name: n
|
|
22499
22499
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang, newFormName) : /*#__PURE__*/jsx(Form$2.Item, {
|
|
22500
22500
|
id: idx.toString(),
|
|
@@ -22507,7 +22507,7 @@ var Translation = function Translation(_ref) {
|
|
|
22507
22507
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
22508
22508
|
help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
|
|
22509
22509
|
hidden: hidden,
|
|
22510
|
-
children: getElement(_objectSpread$
|
|
22510
|
+
children: getElement(_objectSpread$1D(_objectSpread$1D({}, i), {}, {
|
|
22511
22511
|
name: n
|
|
22512
22512
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
|
22513
22513
|
})
|
|
@@ -22994,8 +22994,8 @@ function deltaFromColors(mainHex, valueHex) {
|
|
|
22994
22994
|
return avg;
|
|
22995
22995
|
}
|
|
22996
22996
|
|
|
22997
|
-
function ownKeys$
|
|
22998
|
-
function _objectSpread$
|
|
22997
|
+
function ownKeys$1C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22998
|
+
function _objectSpread$1C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22999
22999
|
function FormSlider(_ref) {
|
|
23000
23000
|
var item = _ref.item,
|
|
23001
23001
|
disabled = _ref.disabled,
|
|
@@ -23029,7 +23029,7 @@ function FormSlider(_ref) {
|
|
|
23029
23029
|
children: t('backoffice.form.slider.apiDefaultHint', {
|
|
23030
23030
|
defaultValue: 'Not set (Gemini API default, typically 1). Move the slider to set.'
|
|
23031
23031
|
})
|
|
23032
|
-
}) : null, /*#__PURE__*/jsx(Slider, _objectSpread$
|
|
23032
|
+
}) : null, /*#__PURE__*/jsx(Slider, _objectSpread$1C(_objectSpread$1C({
|
|
23033
23033
|
min: item.min,
|
|
23034
23034
|
max: item.max,
|
|
23035
23035
|
step: item.step
|
|
@@ -23060,8 +23060,8 @@ function FormSlider(_ref) {
|
|
|
23060
23060
|
function _createForOfIteratorHelper$z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
23061
23061
|
function _unsupportedIterableToArray$z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$z(r, a) : void 0; } }
|
|
23062
23062
|
function _arrayLikeToArray$z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
23063
|
-
function ownKeys$
|
|
23064
|
-
function _objectSpread$
|
|
23063
|
+
function ownKeys$1B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23064
|
+
function _objectSpread$1B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23065
23065
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName, formName) {
|
|
23066
23066
|
var _isReadonly, _state$hiddenRequired, _state$data$_id, _state$data;
|
|
23067
23067
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
|
@@ -23098,7 +23098,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
23098
23098
|
}
|
|
23099
23099
|
});
|
|
23100
23100
|
case 'selectSimple':
|
|
23101
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
23101
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1B(_objectSpread$1B({}, item), {}, {
|
|
23102
23102
|
disabled: disabled,
|
|
23103
23103
|
onChange: function onChange(value) {
|
|
23104
23104
|
_onChange(absoluteName, value);
|
|
@@ -23344,7 +23344,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
23344
23344
|
value: item.value,
|
|
23345
23345
|
options: item.options.map(function (o) {
|
|
23346
23346
|
var _o$disabled;
|
|
23347
|
-
return _objectSpread$
|
|
23347
|
+
return _objectSpread$1B(_objectSpread$1B({}, o), {}, {
|
|
23348
23348
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
|
|
23349
23349
|
});
|
|
23350
23350
|
}),
|
|
@@ -23365,7 +23365,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
23365
23365
|
},
|
|
23366
23366
|
icon: item.icon,
|
|
23367
23367
|
callback: function callback(data) {
|
|
23368
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
|
23368
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$1B(_objectSpread$1B({}, state.data), data));
|
|
23369
23369
|
}
|
|
23370
23370
|
});
|
|
23371
23371
|
case 'media':
|
|
@@ -23403,7 +23403,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
23403
23403
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
23404
23404
|
var _useTranslation = useTranslation(),
|
|
23405
23405
|
t = _useTranslation.t;
|
|
23406
|
-
return /*#__PURE__*/jsx(Input$1, _objectSpread$
|
|
23406
|
+
return /*#__PURE__*/jsx(Input$1, _objectSpread$1B(_objectSpread$1B({}, props), {}, {
|
|
23407
23407
|
ref: ref,
|
|
23408
23408
|
disabled: true,
|
|
23409
23409
|
value: t(props.translationPrefix + '.' + props.value)
|
|
@@ -23422,8 +23422,8 @@ function isReadonly(item, data) {
|
|
|
23422
23422
|
return false;
|
|
23423
23423
|
}
|
|
23424
23424
|
|
|
23425
|
-
function ownKeys$
|
|
23426
|
-
function _objectSpread$
|
|
23425
|
+
function ownKeys$1A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23426
|
+
function _objectSpread$1A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23427
23427
|
function _createForOfIteratorHelper$y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
23428
23428
|
function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$y(r, a) : void 0; } }
|
|
23429
23429
|
function _arrayLikeToArray$y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -23473,13 +23473,13 @@ var Presets = function Presets(_ref) {
|
|
|
23473
23473
|
} finally {
|
|
23474
23474
|
_iterator.f();
|
|
23475
23475
|
}
|
|
23476
|
-
var data = _objectSpread$
|
|
23476
|
+
var data = _objectSpread$1A(_objectSpread$1A({}, form.getFieldsValue(names)), {}, {
|
|
23477
23477
|
newPresetName: newPresetName
|
|
23478
23478
|
});
|
|
23479
23479
|
data.dpi = parseInt(data.dpi);
|
|
23480
23480
|
data.organization = root.getGlobalValue('organizationId');
|
|
23481
23481
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
|
23482
|
-
var dt = _objectSpread$
|
|
23482
|
+
var dt = _objectSpread$1A(_objectSpread$1A({}, form.getFieldsValue(names)), {}, {
|
|
23483
23483
|
name: newPresetName
|
|
23484
23484
|
});
|
|
23485
23485
|
setPresets({
|
|
@@ -23613,8 +23613,8 @@ function ModalProgressBar(_ref) {
|
|
|
23613
23613
|
});
|
|
23614
23614
|
}
|
|
23615
23615
|
|
|
23616
|
-
function ownKeys$
|
|
23617
|
-
function _objectSpread$
|
|
23616
|
+
function ownKeys$1z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23617
|
+
function _objectSpread$1z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23618
23618
|
function ItemSelector(_ref) {
|
|
23619
23619
|
var state = _ref.state,
|
|
23620
23620
|
setCanSave = _ref.setCanSave,
|
|
@@ -23631,7 +23631,7 @@ function ItemSelector(_ref) {
|
|
|
23631
23631
|
rules: state.getRules(itemSelector, state.data),
|
|
23632
23632
|
label: itemSelector.label ? t(itemSelector.label, itemSelector.label) : itemSelector.name,
|
|
23633
23633
|
valuePropName: itemSelector.type == 'checkbox' ? 'checked' : 'value',
|
|
23634
|
-
children: getElement(_objectSpread$
|
|
23634
|
+
children: getElement(_objectSpread$1z(_objectSpread$1z({}, itemSelector), {}, {
|
|
23635
23635
|
value: itemSelector.type == 'select' ? itemSelector.values[state.selectedItemsIndex[idx]] : undefined
|
|
23636
23636
|
}), setCanSave, state, itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
|
|
23637
23637
|
}, itemSelector.name.toString());
|
|
@@ -24017,8 +24017,8 @@ function getLabel(item, t) {
|
|
|
24017
24017
|
}
|
|
24018
24018
|
var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
|
24019
24019
|
|
|
24020
|
-
function ownKeys$
|
|
24021
|
-
function _objectSpread$
|
|
24020
|
+
function ownKeys$1y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24021
|
+
function _objectSpread$1y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24022
24022
|
function _createForOfIteratorHelper$x(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$x(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24023
24023
|
function _unsupportedIterableToArray$x(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$x(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$x(r, a) : void 0; } }
|
|
24024
24024
|
function _arrayLikeToArray$x(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -24220,7 +24220,7 @@ function useRoleSelectorData (_ref) {
|
|
|
24220
24220
|
roles.forEach(function (r) {
|
|
24221
24221
|
//check if after the changes the role is selected
|
|
24222
24222
|
if (value.includes(r._id)) {
|
|
24223
|
-
var newValue = _objectSpread$
|
|
24223
|
+
var newValue = _objectSpread$1y(_objectSpread$1y({}, r), {}, {
|
|
24224
24224
|
selected: true
|
|
24225
24225
|
});
|
|
24226
24226
|
//add it to the new list as selected role
|
|
@@ -24256,7 +24256,7 @@ function useRoleSelectorData (_ref) {
|
|
|
24256
24256
|
}
|
|
24257
24257
|
}
|
|
24258
24258
|
} else {
|
|
24259
|
-
var _newValue = _objectSpread$
|
|
24259
|
+
var _newValue = _objectSpread$1y(_objectSpread$1y({}, r), {}, {
|
|
24260
24260
|
selected: false
|
|
24261
24261
|
});
|
|
24262
24262
|
//add it to the new list as unselected role
|
|
@@ -24460,7 +24460,7 @@ function _updateRoles() {
|
|
|
24460
24460
|
userRole = userRoles.find(function (r) {
|
|
24461
24461
|
return r._id == role._id;
|
|
24462
24462
|
});
|
|
24463
|
-
newRole = _objectSpread$
|
|
24463
|
+
newRole = _objectSpread$1y({}, role);
|
|
24464
24464
|
if (userRole) {
|
|
24465
24465
|
newRole.selected = true;
|
|
24466
24466
|
newRole.inherited = userRole.inherited;
|
|
@@ -24680,7 +24680,7 @@ function _fetchOptions() {
|
|
|
24680
24680
|
case 4:
|
|
24681
24681
|
result = _context11.sent;
|
|
24682
24682
|
options = result.data.map(function (d) {
|
|
24683
|
-
return _objectSpread$
|
|
24683
|
+
return _objectSpread$1y(_objectSpread$1y({}, d), {}, {
|
|
24684
24684
|
label: d.displayName,
|
|
24685
24685
|
value: d._id,
|
|
24686
24686
|
isLeaf: !d.hasChildren
|
|
@@ -24776,7 +24776,7 @@ var select$3 = "select-lzft-";
|
|
|
24776
24776
|
var loadingOption = "loadingOption-qCkRw";
|
|
24777
24777
|
var scroller = "scroller-lrdk9";
|
|
24778
24778
|
var skeleton = "skeleton--xCI0";
|
|
24779
|
-
var filterField = "filterField-1kU1O";
|
|
24779
|
+
var filterField$1 = "filterField-1kU1O";
|
|
24780
24780
|
var parentScroll = "parent-scroll-GmaL9";
|
|
24781
24781
|
var parent = "parent-NZJ3S";
|
|
24782
24782
|
var container$8 = "container--O28P";
|
|
@@ -24784,8 +24784,8 @@ var infiniteScrollContainer = "infiniteScrollContainer-8G1wc";
|
|
|
24784
24784
|
var css_248z$P = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n flex: 1;\n min-height: 0;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: hidden;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.container--O28P {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n\n.infiniteScrollContainer-8G1wc {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component__outerdiv {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component {\n flex: 1 !important;\n min-height: 0 !important;\n height: auto !important;\n display: flex !important;\n flex-direction: column !important;\n}\n";
|
|
24785
24785
|
styleInject(css_248z$P);
|
|
24786
24786
|
|
|
24787
|
-
function ownKeys$
|
|
24788
|
-
function _objectSpread$
|
|
24787
|
+
function ownKeys$1x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24788
|
+
function _objectSpread$1x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24789
24789
|
function _createForOfIteratorHelper$w(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$w(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24790
24790
|
function _unsupportedIterableToArray$w(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$w(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0; } }
|
|
24791
24791
|
function _arrayLikeToArray$w(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -24845,8 +24845,8 @@ function _generateCSV() {
|
|
|
24845
24845
|
break;
|
|
24846
24846
|
}
|
|
24847
24847
|
_context2.next = 21;
|
|
24848
|
-
return generateCSV(_objectSpread$
|
|
24849
|
-
mappingData: _objectSpread$
|
|
24848
|
+
return generateCSV(_objectSpread$1x(_objectSpread$1x({}, exportParams.children), {}, {
|
|
24849
|
+
mappingData: _objectSpread$1x(_objectSpread$1x({}, parent), {}, {
|
|
24850
24850
|
parentId: exportParams.mappingData._id
|
|
24851
24851
|
})
|
|
24852
24852
|
}), csvData);
|
|
@@ -24969,8 +24969,8 @@ function _downloadFile() {
|
|
|
24969
24969
|
return _downloadFile.apply(this, arguments);
|
|
24970
24970
|
}
|
|
24971
24971
|
|
|
24972
|
-
function ownKeys$
|
|
24973
|
-
function _objectSpread$
|
|
24972
|
+
function ownKeys$1w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24973
|
+
function _objectSpread$1w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24974
24974
|
function _createForOfIteratorHelper$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24975
24975
|
function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0; } }
|
|
24976
24976
|
function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -25389,7 +25389,7 @@ function useRelationSelectorData (_ref) {
|
|
|
25389
25389
|
var activeItem = _step.value;
|
|
25390
25390
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
|
25391
25391
|
addedObjects.push(addedData);
|
|
25392
|
-
getSplittedItems(_objectSpread$
|
|
25392
|
+
getSplittedItems(_objectSpread$1w(_objectSpread$1w({}, activeItem), {}, {
|
|
25393
25393
|
userId: data === null || data === void 0 ? void 0 : data._id
|
|
25394
25394
|
}));
|
|
25395
25395
|
ret = true;
|
|
@@ -25594,8 +25594,8 @@ function useRelationSelectorData (_ref) {
|
|
|
25594
25594
|
};
|
|
25595
25595
|
}
|
|
25596
25596
|
|
|
25597
|
-
function ownKeys$
|
|
25598
|
-
function _objectSpread$
|
|
25597
|
+
function ownKeys$1v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25598
|
+
function _objectSpread$1v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25599
25599
|
function _createForOfIteratorHelper$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
25600
25600
|
function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
|
|
25601
25601
|
function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -25743,7 +25743,7 @@ function ActionButton (_ref) {
|
|
|
25743
25743
|
_iterator2.f();
|
|
25744
25744
|
}
|
|
25745
25745
|
_context.next = 19;
|
|
25746
|
-
return apiInterface.update(_objectSpread$
|
|
25746
|
+
return apiInterface.update(_objectSpread$1v(_objectSpread$1v({}, data), {}, {
|
|
25747
25747
|
state: toSwitch
|
|
25748
25748
|
}), data);
|
|
25749
25749
|
case 19:
|
|
@@ -25879,14 +25879,14 @@ function _simpleChangeValue() {
|
|
|
25879
25879
|
break;
|
|
25880
25880
|
}
|
|
25881
25881
|
for (i = 0; i < action.newValues.length; i++) {
|
|
25882
|
-
fieldsToUpdate = _objectSpread$
|
|
25882
|
+
fieldsToUpdate = _objectSpread$1v(_objectSpread$1v({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
|
25883
25883
|
}
|
|
25884
25884
|
if (!apiInterface.canUpdate) {
|
|
25885
25885
|
_context2.next = 9;
|
|
25886
25886
|
break;
|
|
25887
25887
|
}
|
|
25888
25888
|
_context2.next = 7;
|
|
25889
|
-
return apiInterface.update(_objectSpread$
|
|
25889
|
+
return apiInterface.update(_objectSpread$1v({}, fieldsToUpdate), data);
|
|
25890
25890
|
case 7:
|
|
25891
25891
|
response = _context2.sent;
|
|
25892
25892
|
return _context2.abrupt("return", response);
|
|
@@ -25901,7 +25901,7 @@ function _simpleChangeValue() {
|
|
|
25901
25901
|
return _simpleChangeValue.apply(this, arguments);
|
|
25902
25902
|
}
|
|
25903
25903
|
function A(props) {
|
|
25904
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
|
25904
|
+
return /*#__PURE__*/jsx("a", _objectSpread$1v({}, props));
|
|
25905
25905
|
}
|
|
25906
25906
|
|
|
25907
25907
|
function _createForOfIteratorHelper$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -25947,7 +25947,7 @@ var Filter = function Filter(_ref) {
|
|
|
25947
25947
|
style: {
|
|
25948
25948
|
paddingTop: 8
|
|
25949
25949
|
},
|
|
25950
|
-
className: filterField,
|
|
25950
|
+
className: filterField$1,
|
|
25951
25951
|
children: [/*#__PURE__*/jsx(Input$1, {
|
|
25952
25952
|
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : t("backoffice.relationsector.fitler"),
|
|
25953
25953
|
value: selectedKeys.input,
|
|
@@ -26039,8 +26039,8 @@ var itemDesc = "item-desc-DBiiF";
|
|
|
26039
26039
|
var css_248z$O = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
|
|
26040
26040
|
styleInject(css_248z$O);
|
|
26041
26041
|
|
|
26042
|
-
function ownKeys$
|
|
26043
|
-
function _objectSpread$
|
|
26042
|
+
function ownKeys$1u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26043
|
+
function _objectSpread$1u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26044
26044
|
var DropDown = function DropDown(_ref) {
|
|
26045
26045
|
var _curItem$data$length;
|
|
26046
26046
|
var split = _ref.split,
|
|
@@ -26072,7 +26072,7 @@ var DropDown = function DropDown(_ref) {
|
|
|
26072
26072
|
});
|
|
26073
26073
|
return /*#__PURE__*/jsx(Collapse, {
|
|
26074
26074
|
onChange: function onChange() {
|
|
26075
|
-
return getSplittedItems(_objectSpread$
|
|
26075
|
+
return getSplittedItems(_objectSpread$1u(_objectSpread$1u({}, item.item), {}, {
|
|
26076
26076
|
parentId: item.parentId
|
|
26077
26077
|
}), 0);
|
|
26078
26078
|
},
|
|
@@ -26332,8 +26332,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
|
26332
26332
|
};
|
|
26333
26333
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
|
26334
26334
|
|
|
26335
|
-
function ownKeys$
|
|
26336
|
-
function _objectSpread$
|
|
26335
|
+
function ownKeys$1t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26336
|
+
function _objectSpread$1t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26337
26337
|
function useFormListData (_ref) {
|
|
26338
26338
|
var _configuration$defaul;
|
|
26339
26339
|
var id = _ref.id,
|
|
@@ -26413,7 +26413,7 @@ function useFormListData (_ref) {
|
|
|
26413
26413
|
if (updated.length == state.length) {
|
|
26414
26414
|
newState = state.map(function (s, i) {
|
|
26415
26415
|
var _updated$find;
|
|
26416
|
-
return _objectSpread$
|
|
26416
|
+
return _objectSpread$1t(_objectSpread$1t({}, s), {}, {
|
|
26417
26417
|
data: (_updated$find = updated.find(function (u) {
|
|
26418
26418
|
return u.index == i;
|
|
26419
26419
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
|
@@ -26550,8 +26550,8 @@ var FormList = function FormList(_ref, ref) {
|
|
|
26550
26550
|
};
|
|
26551
26551
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
|
26552
26552
|
|
|
26553
|
-
function ownKeys$
|
|
26554
|
-
function _objectSpread$
|
|
26553
|
+
function ownKeys$1s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26554
|
+
function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26555
26555
|
var LOG$h = getLogger('Backoffice', 'SelectOrCreate');
|
|
26556
26556
|
function useSelectOrCreateData (_ref) {
|
|
26557
26557
|
var id = _ref.id,
|
|
@@ -26648,7 +26648,7 @@ function useSelectOrCreateData (_ref) {
|
|
|
26648
26648
|
_context.next = 7;
|
|
26649
26649
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
|
26650
26650
|
filters: (_configuration$select3 = configuration.selectMapping) !== null && _configuration$select3 !== void 0 && _configuration$select3.searchField ? (_configuration$select4 = configuration.selectMapping) === null || _configuration$select4 === void 0 ? void 0 : _configuration$select4.searchField.reduce(function (filter, field) {
|
|
26651
|
-
return _objectSpread$
|
|
26651
|
+
return _objectSpread$1s(_objectSpread$1s({}, filter), {}, _defineProperty({}, field.field, [value, field.filter]));
|
|
26652
26652
|
}, {}) : {
|
|
26653
26653
|
_id: [value, 'contains']
|
|
26654
26654
|
},
|
|
@@ -26959,8 +26959,8 @@ var Multiple = function Multiple(_ref3) {
|
|
|
26959
26959
|
});
|
|
26960
26960
|
};
|
|
26961
26961
|
|
|
26962
|
-
function ownKeys$
|
|
26963
|
-
function _objectSpread$
|
|
26962
|
+
function ownKeys$1r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26963
|
+
function _objectSpread$1r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26964
26964
|
function useListData (_ref) {
|
|
26965
26965
|
var id = _ref.id,
|
|
26966
26966
|
data = _ref.data;
|
|
@@ -27003,7 +27003,7 @@ function useListData (_ref) {
|
|
|
27003
27003
|
case 3:
|
|
27004
27004
|
result = _context.sent;
|
|
27005
27005
|
setListData(result.data.map(parseField));
|
|
27006
|
-
initData = _objectSpread$
|
|
27006
|
+
initData = _objectSpread$1r({}, data);
|
|
27007
27007
|
setUpdatedObject(initData);
|
|
27008
27008
|
setLoading(false);
|
|
27009
27009
|
case 8:
|
|
@@ -27044,7 +27044,7 @@ function useListData (_ref) {
|
|
|
27044
27044
|
});
|
|
27045
27045
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
|
27046
27046
|
var parsedField = field.field.split('.');
|
|
27047
|
-
item.itemUpdate = _objectSpread$
|
|
27047
|
+
item.itemUpdate = _objectSpread$1r(_objectSpread$1r({}, field), {}, {
|
|
27048
27048
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
|
27049
27049
|
});
|
|
27050
27050
|
});
|
|
@@ -27075,16 +27075,16 @@ function useListData (_ref) {
|
|
|
27075
27075
|
console.error('field with more than 2 parts not allowed');
|
|
27076
27076
|
return;
|
|
27077
27077
|
}
|
|
27078
|
-
var updObj = _objectSpread$
|
|
27078
|
+
var updObj = _objectSpread$1r({}, updatedObject);
|
|
27079
27079
|
if (fields.length === 1) {
|
|
27080
|
-
updObj = _objectSpread$
|
|
27080
|
+
updObj = _objectSpread$1r(_objectSpread$1r({}, updObj), {}, _defineProperty({}, fields[0], value));
|
|
27081
27081
|
} else if (fields.length === 2) {
|
|
27082
27082
|
var updatedField = updObj[fields[0]].find(function (v) {
|
|
27083
27083
|
return v.id === item.id.trim();
|
|
27084
27084
|
});
|
|
27085
27085
|
if (updatedField) {
|
|
27086
|
-
var updatedFieldCopy = _objectSpread$
|
|
27087
|
-
updObj = _objectSpread$
|
|
27086
|
+
var updatedFieldCopy = _objectSpread$1r(_objectSpread$1r({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
|
27087
|
+
updObj = _objectSpread$1r(_objectSpread$1r({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
|
27088
27088
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
|
27089
27089
|
})));
|
|
27090
27090
|
}
|
|
@@ -27093,11 +27093,11 @@ function useListData (_ref) {
|
|
|
27093
27093
|
var acItems = listData;
|
|
27094
27094
|
for (var i = 0; i < acItems.length; i++) {
|
|
27095
27095
|
if (i == index) {
|
|
27096
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
27096
|
+
acItems[i].itemUpdate = _objectSpread$1r(_objectSpread$1r({}, acItems[i].itemUpdate), {}, {
|
|
27097
27097
|
value: value
|
|
27098
27098
|
});
|
|
27099
27099
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
|
27100
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
27100
|
+
acItems[i].itemUpdate = _objectSpread$1r(_objectSpread$1r({}, acItems[i].itemUpdate), {}, {
|
|
27101
27101
|
value: !value
|
|
27102
27102
|
});
|
|
27103
27103
|
}
|
|
@@ -27611,8 +27611,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
|
27611
27611
|
};
|
|
27612
27612
|
}
|
|
27613
27613
|
|
|
27614
|
-
function ownKeys$
|
|
27615
|
-
function _objectSpread$
|
|
27614
|
+
function ownKeys$1q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27615
|
+
function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27616
27616
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
|
27617
27617
|
var id = _ref.id,
|
|
27618
27618
|
data = _ref.data,
|
|
@@ -27720,12 +27720,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
|
27720
27720
|
}
|
|
27721
27721
|
function onEnter(e) {
|
|
27722
27722
|
if (e.key != 'Enter') return;
|
|
27723
|
-
setCrop(_objectSpread$
|
|
27723
|
+
setCrop(_objectSpread$1q(_objectSpread$1q({}, crop), {}, {
|
|
27724
27724
|
unit: 'px',
|
|
27725
27725
|
width: Number(widthInputElement.current.value),
|
|
27726
27726
|
height: Number(heightInputElement.current.value)
|
|
27727
27727
|
}));
|
|
27728
|
-
setCompletedCrop(_objectSpread$
|
|
27728
|
+
setCompletedCrop(_objectSpread$1q(_objectSpread$1q({}, crop), {}, {
|
|
27729
27729
|
unit: 'px',
|
|
27730
27730
|
width: Number(widthInputElement.current.value),
|
|
27731
27731
|
height: Number(heightInputElement.current.value)
|
|
@@ -27803,8 +27803,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
|
27803
27803
|
function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
27804
27804
|
function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
|
|
27805
27805
|
function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
27806
|
-
function ownKeys$
|
|
27807
|
-
function _objectSpread$
|
|
27806
|
+
function ownKeys$1p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27807
|
+
function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27808
27808
|
function useDescriptions (_ref) {
|
|
27809
27809
|
var id = _ref.id;
|
|
27810
27810
|
var root = useStore();
|
|
@@ -27897,7 +27897,7 @@ function _getDisplayData() {
|
|
|
27897
27897
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
27898
27898
|
while (1) switch (_context4.prev = _context4.next) {
|
|
27899
27899
|
case 0:
|
|
27900
|
-
displayData = _objectSpread$
|
|
27900
|
+
displayData = _objectSpread$1p({}, data);
|
|
27901
27901
|
_iterator = _createForOfIteratorHelper$s(items);
|
|
27902
27902
|
_context4.prev = 2;
|
|
27903
27903
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
@@ -28173,8 +28173,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
|
28173
28173
|
};
|
|
28174
28174
|
var FileUploadBeta = observer(FileUploadWrapper$1);
|
|
28175
28175
|
|
|
28176
|
-
function ownKeys$
|
|
28177
|
-
function _objectSpread$
|
|
28176
|
+
function ownKeys$1o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28177
|
+
function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28178
28178
|
function useGridData (_ref) {
|
|
28179
28179
|
var id = _ref.id,
|
|
28180
28180
|
data = _ref.data;
|
|
@@ -28217,11 +28217,11 @@ function useGridData (_ref) {
|
|
|
28217
28217
|
function reducer(state, action) {
|
|
28218
28218
|
switch (action.type) {
|
|
28219
28219
|
case 'update':
|
|
28220
|
-
return _objectSpread$
|
|
28220
|
+
return _objectSpread$1o(_objectSpread$1o({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$1o(_objectSpread$1o({}, action.data), {}, {
|
|
28221
28221
|
buffer: Buffer.from(action.data.buffer)
|
|
28222
28222
|
})));
|
|
28223
28223
|
case 'delete':
|
|
28224
|
-
var newState = _objectSpread$
|
|
28224
|
+
var newState = _objectSpread$1o({}, state);
|
|
28225
28225
|
delete newState[action.data.divaNr];
|
|
28226
28226
|
return newState;
|
|
28227
28227
|
default:
|
|
@@ -28308,8 +28308,8 @@ var Grid = function Grid(_ref) {
|
|
|
28308
28308
|
});
|
|
28309
28309
|
};
|
|
28310
28310
|
|
|
28311
|
-
function ownKeys$
|
|
28312
|
-
function _objectSpread$
|
|
28311
|
+
function ownKeys$1n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28312
|
+
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28313
28313
|
var useMediaUpload = function useMediaUpload(_ref) {
|
|
28314
28314
|
var id = _ref.id;
|
|
28315
28315
|
var root = useStore();
|
|
@@ -28518,7 +28518,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
28518
28518
|
onRemove: onRemove,
|
|
28519
28519
|
customRequest: customRequest,
|
|
28520
28520
|
fileList: fileList.map(function (f) {
|
|
28521
|
-
return _objectSpread$
|
|
28521
|
+
return _objectSpread$1n(_objectSpread$1n({}, f), {}, {
|
|
28522
28522
|
url: f.url
|
|
28523
28523
|
});
|
|
28524
28524
|
}),
|
|
@@ -28622,8 +28622,8 @@ var TableSummary = function TableSummary(_ref) {
|
|
|
28622
28622
|
});
|
|
28623
28623
|
};
|
|
28624
28624
|
|
|
28625
|
-
function ownKeys$
|
|
28626
|
-
function _objectSpread$
|
|
28625
|
+
function ownKeys$1m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28626
|
+
function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28627
28627
|
function getExpandedRowRenderer (config, root) {
|
|
28628
28628
|
return function (record) {
|
|
28629
28629
|
var data = record;
|
|
@@ -28645,7 +28645,7 @@ function customSubTable(columns, datasource) {
|
|
|
28645
28645
|
// map custom columns to antd columns
|
|
28646
28646
|
var antcols = columns.map(function (col) {
|
|
28647
28647
|
var _col$width;
|
|
28648
|
-
return _objectSpread$
|
|
28648
|
+
return _objectSpread$1m(_objectSpread$1m({}, col), {}, {
|
|
28649
28649
|
title: col.title,
|
|
28650
28650
|
dataIndex: col.field,
|
|
28651
28651
|
key: col.field,
|
|
@@ -29508,8 +29508,8 @@ function ArrayCell (_ref) {
|
|
|
29508
29508
|
|
|
29509
29509
|
var _excluded$a = ["index"],
|
|
29510
29510
|
_excluded2$1 = ["children", "dataIndex", "record", "handleSave", "column"];
|
|
29511
|
-
function ownKeys$
|
|
29512
|
-
function _objectSpread$
|
|
29511
|
+
function ownKeys$1l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29512
|
+
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29513
29513
|
var LOG$f = getLogger('Backoffice', 'CellRenderer');
|
|
29514
29514
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
|
29515
29515
|
var CustomRow = function CustomRow(_ref) {
|
|
@@ -29523,7 +29523,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
|
29523
29523
|
component: false,
|
|
29524
29524
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
|
29525
29525
|
value: form,
|
|
29526
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
|
29526
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$1l({}, props))
|
|
29527
29527
|
})
|
|
29528
29528
|
});
|
|
29529
29529
|
};
|
|
@@ -29576,7 +29576,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
29576
29576
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
|
29577
29577
|
longDescriptionType = 'text';
|
|
29578
29578
|
}
|
|
29579
|
-
var modifiedColumn = _objectSpread$
|
|
29579
|
+
var modifiedColumn = _objectSpread$1l(_objectSpread$1l({}, column), {}, {
|
|
29580
29580
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
|
29581
29581
|
});
|
|
29582
29582
|
if (column) {
|
|
@@ -29589,43 +29589,43 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
29589
29589
|
};
|
|
29590
29590
|
switch (modifiedColumn.type) {
|
|
29591
29591
|
case 'boolean':
|
|
29592
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
|
29592
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$1l({}, cellProps));
|
|
29593
29593
|
break;
|
|
29594
29594
|
case 'text':
|
|
29595
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
|
29595
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$1l({}, cellProps));
|
|
29596
29596
|
break;
|
|
29597
29597
|
case 'select':
|
|
29598
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
|
29598
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$1l({}, cellProps));
|
|
29599
29599
|
case 'media':
|
|
29600
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
|
29600
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$1l({}, cellProps));
|
|
29601
29601
|
break;
|
|
29602
29602
|
case 'mediaItem':
|
|
29603
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
|
29603
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$1l({}, cellProps));
|
|
29604
29604
|
break;
|
|
29605
29605
|
case 'unixTimeStamp':
|
|
29606
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
|
29606
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$1l({}, cellProps));
|
|
29607
29607
|
break;
|
|
29608
29608
|
case 'unixTimeStampCheck':
|
|
29609
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
|
29609
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$1l({}, cellProps));
|
|
29610
29610
|
break;
|
|
29611
29611
|
case 'icon':
|
|
29612
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
|
29612
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$1l({}, cellProps));
|
|
29613
29613
|
break;
|
|
29614
29614
|
case 'progress':
|
|
29615
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
|
29615
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$1l({}, cellProps));
|
|
29616
29616
|
break;
|
|
29617
29617
|
case 'link':
|
|
29618
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
|
29618
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$1l({}, cellProps));
|
|
29619
29619
|
break;
|
|
29620
29620
|
case 'array':
|
|
29621
|
-
childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$
|
|
29621
|
+
childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$1l({}, cellProps));
|
|
29622
29622
|
break;
|
|
29623
29623
|
default:
|
|
29624
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
|
29624
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$1l({}, cellProps));
|
|
29625
29625
|
break;
|
|
29626
29626
|
}
|
|
29627
29627
|
}
|
|
29628
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
|
29628
|
+
return /*#__PURE__*/jsx("td", _objectSpread$1l(_objectSpread$1l({}, restProps), {}, {
|
|
29629
29629
|
children: childNode
|
|
29630
29630
|
}));
|
|
29631
29631
|
};
|
|
@@ -29980,8 +29980,8 @@ var SMChart = function SMChart(props) {
|
|
|
29980
29980
|
function _createForOfIteratorHelper$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29981
29981
|
function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
|
|
29982
29982
|
function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29983
|
-
function ownKeys$
|
|
29984
|
-
function _objectSpread$
|
|
29983
|
+
function ownKeys$1k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29984
|
+
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29985
29985
|
|
|
29986
29986
|
/**
|
|
29987
29987
|
* Props for the useTools hook
|
|
@@ -30021,7 +30021,7 @@ var useTools = function useTools(_ref) {
|
|
|
30021
30021
|
var packageId = enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage._id;
|
|
30022
30022
|
var isoLanguageIds = (catalog === null || catalog === void 0 ? void 0 : catalog.isoLanguageIds) || (enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage.isoLanguageIds);
|
|
30023
30023
|
var createTool = function createTool(tool) {
|
|
30024
|
-
return _objectSpread$
|
|
30024
|
+
return _objectSpread$1k({
|
|
30025
30025
|
startWidth: 600,
|
|
30026
30026
|
defaultPinned: true,
|
|
30027
30027
|
defaultOpen: false
|
|
@@ -30052,7 +30052,7 @@ var useTools = function useTools(_ref) {
|
|
|
30052
30052
|
name: 'Konfigurator',
|
|
30053
30053
|
type: 'Configurator',
|
|
30054
30054
|
where: 'right',
|
|
30055
|
-
parameters: _objectSpread$
|
|
30055
|
+
parameters: _objectSpread$1k({
|
|
30056
30056
|
catalogId: catalogId,
|
|
30057
30057
|
packageId: packageId,
|
|
30058
30058
|
isIDMData: !isApi2 ? '1' : undefined
|
|
@@ -30148,8 +30148,8 @@ function InformationButton(_ref) {
|
|
|
30148
30148
|
});
|
|
30149
30149
|
}
|
|
30150
30150
|
|
|
30151
|
-
function ownKeys$
|
|
30152
|
-
function _objectSpread$
|
|
30151
|
+
function ownKeys$1j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30152
|
+
function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30153
30153
|
function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30154
30154
|
function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
|
|
30155
30155
|
function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -30271,7 +30271,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
30271
30271
|
if (data && data.length > 0) {
|
|
30272
30272
|
data = data.map(function (dt) {
|
|
30273
30273
|
var _ref2, _dt$catalogItem;
|
|
30274
|
-
return _objectSpread$
|
|
30274
|
+
return _objectSpread$1j(_objectSpread$1j({}, dt), {}, {
|
|
30275
30275
|
catalogItem: (_ref2 = (_dt$catalogItem = dt.catalogItem) !== null && _dt$catalogItem !== void 0 ? _dt$catalogItem : state.catalogItem) !== null && _ref2 !== void 0 ? _ref2 : null
|
|
30276
30276
|
});
|
|
30277
30277
|
});
|
|
@@ -30427,13 +30427,13 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
30427
30427
|
// Convert to Dayjs
|
|
30428
30428
|
(_state$globalFilter4 = state.globalFilter) !== null && _state$globalFilter4 !== void 0 && (_state$globalFilter4 = _state$globalFilter4.timeStamp) !== null && _state$globalFilter4 !== void 0 && (_state$globalFilter4 = _state$globalFilter4['toTimeStamp']) !== null && _state$globalFilter4 !== void 0 && _state$globalFilter4[0] ? dayjs((_state$globalFilter5 = state.globalFilter) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5.timeStamp) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5['toTimeStamp']) === null || _state$globalFilter5 === void 0 ? void 0 : _state$globalFilter5[0]) : dayjs(new Date()) // Convert to Dayjs
|
|
30429
30429
|
]
|
|
30430
|
-
}), selectFilter && (selectFilter.selectVariant === 'select' ? /*#__PURE__*/jsx(Selector, _objectSpread$
|
|
30430
|
+
}), selectFilter && (selectFilter.selectVariant === 'select' ? /*#__PURE__*/jsx(Selector, _objectSpread$1j(_objectSpread$1j({}, selectFilter.settings), {}, {
|
|
30431
30431
|
minWidth: "200px",
|
|
30432
30432
|
value: (_state$globalFilter$s = state.globalFilter.select) === null || _state$globalFilter$s === void 0 || (_state$globalFilter$s = _state$globalFilter$s[selectFilter.filterField]) === null || _state$globalFilter$s === void 0 ? void 0 : _state$globalFilter$s[0],
|
|
30433
30433
|
onChange: function onChange(selected) {
|
|
30434
30434
|
state.onGlobalFilterSelect(normalizeTableFilterSelectValue(selected, selectFilter.filterField));
|
|
30435
30435
|
}
|
|
30436
|
-
})) : /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
30436
|
+
})) : /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1j(_objectSpread$1j({}, selectFilter.settings), {}, {
|
|
30437
30437
|
style: {
|
|
30438
30438
|
minWidth: '200px'
|
|
30439
30439
|
},
|
|
@@ -30543,7 +30543,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
30543
30543
|
root: tableLoadingSpin
|
|
30544
30544
|
}
|
|
30545
30545
|
},
|
|
30546
|
-
pagination: _objectSpread$
|
|
30546
|
+
pagination: _objectSpread$1j(_objectSpread$1j({}, state.pagination), {}, {
|
|
30547
30547
|
showTotal: function showTotal(total, range) {
|
|
30548
30548
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
|
30549
30549
|
},
|
|
@@ -30877,7 +30877,7 @@ function BulkAction(_ref8) {
|
|
|
30877
30877
|
}
|
|
30878
30878
|
_context5.t0 = data;
|
|
30879
30879
|
_context5.next = 14;
|
|
30880
|
-
return apiInterface.update(_objectSpread$
|
|
30880
|
+
return apiInterface.update(_objectSpread$1j(_objectSpread$1j({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
|
30881
30881
|
case 14:
|
|
30882
30882
|
_context5.t1 = _context5.sent;
|
|
30883
30883
|
_context5.t0.push.call(_context5.t0, _context5.t1);
|
|
@@ -30998,8 +30998,8 @@ function SelectionText(_ref10) {
|
|
|
30998
30998
|
function _createForOfIteratorHelper$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30999
30999
|
function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
|
|
31000
31000
|
function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
31001
|
-
function ownKeys$
|
|
31002
|
-
function _objectSpread$
|
|
31001
|
+
function ownKeys$1i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31002
|
+
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31003
31003
|
function getColumnFilterProps (_ref) {
|
|
31004
31004
|
var filter = _ref.filter,
|
|
31005
31005
|
title = _ref.title;
|
|
@@ -31371,7 +31371,7 @@ var selectProps = function selectProps(title, filter) {
|
|
|
31371
31371
|
});
|
|
31372
31372
|
},
|
|
31373
31373
|
options: filter.map(function (f) {
|
|
31374
|
-
return _objectSpread$
|
|
31374
|
+
return _objectSpread$1i(_objectSpread$1i({}, f), {}, {
|
|
31375
31375
|
label: t(f.label)
|
|
31376
31376
|
});
|
|
31377
31377
|
})
|
|
@@ -31450,7 +31450,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
31450
31450
|
t = _useTranslation3.t;
|
|
31451
31451
|
var options = [];
|
|
31452
31452
|
options = filter.map(function (f) {
|
|
31453
|
-
return _objectSpread$
|
|
31453
|
+
return _objectSpread$1i(_objectSpread$1i({}, f), {}, {
|
|
31454
31454
|
label: t(f.label)
|
|
31455
31455
|
});
|
|
31456
31456
|
});
|
|
@@ -31521,8 +31521,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
31521
31521
|
};
|
|
31522
31522
|
};
|
|
31523
31523
|
|
|
31524
|
-
function ownKeys$
|
|
31525
|
-
function _objectSpread$
|
|
31524
|
+
function ownKeys$1h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31525
|
+
function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31526
31526
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter, filterState) {
|
|
31527
31527
|
var columns = configuration.columns.filter(function (c) {
|
|
31528
31528
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
|
@@ -31580,7 +31580,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
|
31580
31580
|
function mapColumn(column, onUpdate, filterState) {
|
|
31581
31581
|
var _column$field, _filterState$filters$, _filterState$filters, _column$children;
|
|
31582
31582
|
var key = column.field || column.title;
|
|
31583
|
-
return _objectSpread$
|
|
31583
|
+
return _objectSpread$1h(_objectSpread$1h(_objectSpread$1h(_objectSpread$1h({}, column), {}, {
|
|
31584
31584
|
hidden: false,
|
|
31585
31585
|
width: column.width || 100,
|
|
31586
31586
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
|
@@ -31641,8 +31641,8 @@ function updateData (_ref) {
|
|
|
31641
31641
|
};
|
|
31642
31642
|
}
|
|
31643
31643
|
|
|
31644
|
-
function ownKeys$
|
|
31645
|
-
function _objectSpread$
|
|
31644
|
+
function ownKeys$1g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31645
|
+
function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31646
31646
|
function applyFilterAndSortation (_ref) {
|
|
31647
31647
|
var data = _ref.data,
|
|
31648
31648
|
filters = _ref.filters,
|
|
@@ -31657,7 +31657,7 @@ function applyFilterAndSortation (_ref) {
|
|
|
31657
31657
|
processedData = sort(sorter || [], processedData);
|
|
31658
31658
|
return {
|
|
31659
31659
|
data: processedData,
|
|
31660
|
-
pagination: _objectSpread$
|
|
31660
|
+
pagination: _objectSpread$1g(_objectSpread$1g({}, pagination), {}, {
|
|
31661
31661
|
total: processedData.length
|
|
31662
31662
|
})
|
|
31663
31663
|
};
|
|
@@ -31742,8 +31742,8 @@ function filter(f, data) {
|
|
|
31742
31742
|
}
|
|
31743
31743
|
|
|
31744
31744
|
var _excluded$9 = ["_id"];
|
|
31745
|
-
function ownKeys$
|
|
31746
|
-
function _objectSpread$
|
|
31745
|
+
function ownKeys$1f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31746
|
+
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31747
31747
|
function useTableData$1 (_ref) {
|
|
31748
31748
|
var _configuration$apiInt;
|
|
31749
31749
|
var id = _ref.id;
|
|
@@ -31798,7 +31798,7 @@ function useTableData$1 (_ref) {
|
|
|
31798
31798
|
var _configuration$create;
|
|
31799
31799
|
if (!dataRow) return;
|
|
31800
31800
|
var id = v4();
|
|
31801
|
-
var processedDataRow = unflatten(_objectSpread$
|
|
31801
|
+
var processedDataRow = unflatten(_objectSpread$1f({
|
|
31802
31802
|
_id: id,
|
|
31803
31803
|
ID: id
|
|
31804
31804
|
}, dataRow));
|
|
@@ -31810,11 +31810,11 @@ function useTableData$1 (_ref) {
|
|
|
31810
31810
|
newData = _updateData.data;
|
|
31811
31811
|
_updateData.prevDataRow;
|
|
31812
31812
|
_updateData.index;
|
|
31813
|
-
var newState = _objectSpread$
|
|
31813
|
+
var newState = _objectSpread$1f(_objectSpread$1f({}, state), {}, {
|
|
31814
31814
|
data: newData
|
|
31815
31815
|
});
|
|
31816
31816
|
if (!filterServerSide) {
|
|
31817
|
-
var res = applyFilterAndSortation(_objectSpread$
|
|
31817
|
+
var res = applyFilterAndSortation(_objectSpread$1f(_objectSpread$1f({}, filterData), {}, {
|
|
31818
31818
|
data: newData
|
|
31819
31819
|
}));
|
|
31820
31820
|
newState.data = res.data;
|
|
@@ -31826,33 +31826,33 @@ function useTableData$1 (_ref) {
|
|
|
31826
31826
|
var formData = new FormData();
|
|
31827
31827
|
processedDataRow._id;
|
|
31828
31828
|
var value = _objectWithoutProperties(processedDataRow, _excluded$9);
|
|
31829
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
|
31829
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$1f(_objectSpread$1f({}, catalogItem), {}, {
|
|
31830
31830
|
filterContex: filterContex,
|
|
31831
31831
|
value: JSON.stringify([value])
|
|
31832
31832
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
|
31833
31833
|
if (d && d.Result && d.Result == 'Success') return;
|
|
31834
|
-
setState(_objectSpread$
|
|
31834
|
+
setState(_objectSpread$1f({}, oldState));
|
|
31835
31835
|
});
|
|
31836
31836
|
}, [state, catalogItem, filterData]);
|
|
31837
31837
|
useEffect(function () {
|
|
31838
31838
|
if (!catalogItem) return;
|
|
31839
|
-
setState(_objectSpread$
|
|
31839
|
+
setState(_objectSpread$1f(_objectSpread$1f({}, state), {}, {
|
|
31840
31840
|
loading: true,
|
|
31841
|
-
mappingData: _objectSpread$
|
|
31841
|
+
mappingData: _objectSpread$1f(_objectSpread$1f({}, catalogItem), {}, {
|
|
31842
31842
|
filterContex: filterContex
|
|
31843
31843
|
})
|
|
31844
31844
|
}));
|
|
31845
31845
|
if (!filterServerSide) {
|
|
31846
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
31846
|
+
apiHandler.readList(configuration.mapping, _objectSpread$1f(_objectSpread$1f({}, catalogItem), {}, {
|
|
31847
31847
|
filterContex: filterContex
|
|
31848
31848
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
|
31849
31849
|
var newData = data.data.map(function (d) {
|
|
31850
|
-
return _objectSpread$
|
|
31850
|
+
return _objectSpread$1f(_objectSpread$1f({}, d), {}, {
|
|
31851
31851
|
_id: d._id || d.ID || nanoid()
|
|
31852
31852
|
});
|
|
31853
31853
|
});
|
|
31854
31854
|
onChange({
|
|
31855
|
-
pagination: _objectSpread$
|
|
31855
|
+
pagination: _objectSpread$1f({}, state.pagination),
|
|
31856
31856
|
filters: {},
|
|
31857
31857
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
31858
31858
|
return c.defaultSortOrder;
|
|
@@ -31868,7 +31868,7 @@ function useTableData$1 (_ref) {
|
|
|
31868
31868
|
});
|
|
31869
31869
|
} else {
|
|
31870
31870
|
onChange({
|
|
31871
|
-
pagination: _objectSpread$
|
|
31871
|
+
pagination: _objectSpread$1f({}, state.pagination),
|
|
31872
31872
|
filters: {},
|
|
31873
31873
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
31874
31874
|
return c.defaultSortOrder;
|
|
@@ -31884,17 +31884,17 @@ function useTableData$1 (_ref) {
|
|
|
31884
31884
|
}
|
|
31885
31885
|
}, [filterContex, catalogItem]);
|
|
31886
31886
|
var onChange = function onChange(p, dataParam) {
|
|
31887
|
-
setState(_objectSpread$
|
|
31887
|
+
setState(_objectSpread$1f(_objectSpread$1f({}, state), {}, {
|
|
31888
31888
|
loading: true
|
|
31889
31889
|
}));
|
|
31890
31890
|
if (!filterServerSide) {
|
|
31891
31891
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
|
31892
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
31892
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1f(_objectSpread$1f({}, p), {}, {
|
|
31893
31893
|
data: unfilteredData
|
|
31894
31894
|
})),
|
|
31895
31895
|
data = _applyFilterAndSortat.data,
|
|
31896
31896
|
pagination = _applyFilterAndSortat.pagination;
|
|
31897
|
-
setState(_objectSpread$
|
|
31897
|
+
setState(_objectSpread$1f(_objectSpread$1f({}, state), {}, {
|
|
31898
31898
|
data: data,
|
|
31899
31899
|
pagination: pagination,
|
|
31900
31900
|
loading: false,
|
|
@@ -31905,20 +31905,20 @@ function useTableData$1 (_ref) {
|
|
|
31905
31905
|
sorter: p.sorter
|
|
31906
31906
|
});
|
|
31907
31907
|
} else {
|
|
31908
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
31908
|
+
apiHandler.readList(configuration.mapping, _objectSpread$1f(_objectSpread$1f({}, catalogItem), {}, {
|
|
31909
31909
|
filterContex: filterContex
|
|
31910
31910
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
|
31911
|
-
setState(_objectSpread$
|
|
31911
|
+
setState(_objectSpread$1f(_objectSpread$1f({}, state), {}, {
|
|
31912
31912
|
data: data.data.map(function (dt) {
|
|
31913
|
-
return _objectSpread$
|
|
31913
|
+
return _objectSpread$1f(_objectSpread$1f({}, dt), {}, {
|
|
31914
31914
|
_id: dt._id || dt.ID || nanoid()
|
|
31915
31915
|
});
|
|
31916
31916
|
}),
|
|
31917
|
-
pagination: _objectSpread$
|
|
31917
|
+
pagination: _objectSpread$1f(_objectSpread$1f({}, p.pagination), {}, {
|
|
31918
31918
|
total: data.total
|
|
31919
31919
|
}),
|
|
31920
31920
|
loading: false,
|
|
31921
|
-
mappingData: _objectSpread$
|
|
31921
|
+
mappingData: _objectSpread$1f(_objectSpread$1f({}, catalogItem), {}, {
|
|
31922
31922
|
filterContex: filterContex
|
|
31923
31923
|
})
|
|
31924
31924
|
}));
|
|
@@ -31939,7 +31939,7 @@ function useTableData$1 (_ref) {
|
|
|
31939
31939
|
filters['_id'] = [id, 'eq', false];
|
|
31940
31940
|
_context.next = 4;
|
|
31941
31941
|
return apiHandler.readList(configuration.mapping, {
|
|
31942
|
-
pagination: _objectSpread$
|
|
31942
|
+
pagination: _objectSpread$1f({}, state.pagination),
|
|
31943
31943
|
columns: configuration.columns,
|
|
31944
31944
|
filters: filters,
|
|
31945
31945
|
sorter: filterData.sorter
|
|
@@ -31958,7 +31958,7 @@ function useTableData$1 (_ref) {
|
|
|
31958
31958
|
};
|
|
31959
31959
|
}();
|
|
31960
31960
|
var onSelect = function onSelect(keys) {
|
|
31961
|
-
setState(_objectSpread$
|
|
31961
|
+
setState(_objectSpread$1f(_objectSpread$1f({}, state), {}, {
|
|
31962
31962
|
selected: keys
|
|
31963
31963
|
}));
|
|
31964
31964
|
};
|
|
@@ -31968,7 +31968,7 @@ function useTableData$1 (_ref) {
|
|
|
31968
31968
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
31969
31969
|
while (1) switch (_context3.prev = _context3.next) {
|
|
31970
31970
|
case 0:
|
|
31971
|
-
setState(_objectSpread$
|
|
31971
|
+
setState(_objectSpread$1f(_objectSpread$1f({}, state), {}, {
|
|
31972
31972
|
deleting: true
|
|
31973
31973
|
}));
|
|
31974
31974
|
newData = _toConsumableArray(state.data);
|
|
@@ -31983,7 +31983,7 @@ function useTableData$1 (_ref) {
|
|
|
31983
31983
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
|
31984
31984
|
return nd._id === state.selected[index];
|
|
31985
31985
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
|
31986
|
-
mappingData = _objectSpread$
|
|
31986
|
+
mappingData = _objectSpread$1f(_objectSpread$1f({}, mappingData), state.mappingData);
|
|
31987
31987
|
_context2.next = 5;
|
|
31988
31988
|
return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData, true, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid);
|
|
31989
31989
|
case 5:
|
|
@@ -32033,7 +32033,7 @@ function useTableData$1 (_ref) {
|
|
|
32033
32033
|
}
|
|
32034
32034
|
_context3.next = 18;
|
|
32035
32035
|
return apiHandler.readList(configuration.mapping, {
|
|
32036
|
-
pagination: _objectSpread$
|
|
32036
|
+
pagination: _objectSpread$1f(_objectSpread$1f({}, state.pagination), {}, {
|
|
32037
32037
|
current: current
|
|
32038
32038
|
}),
|
|
32039
32039
|
columns: configuration.columns,
|
|
@@ -32045,11 +32045,11 @@ function useTableData$1 (_ref) {
|
|
|
32045
32045
|
newData = data.data;
|
|
32046
32046
|
total = data.total;
|
|
32047
32047
|
case 21:
|
|
32048
|
-
setState(_objectSpread$
|
|
32048
|
+
setState(_objectSpread$1f(_objectSpread$1f({}, state), {}, {
|
|
32049
32049
|
selected: [],
|
|
32050
32050
|
deleting: false,
|
|
32051
32051
|
data: newData,
|
|
32052
|
-
pagination: _objectSpread$
|
|
32052
|
+
pagination: _objectSpread$1f(_objectSpread$1f({}, state.pagination), {}, {
|
|
32053
32053
|
current: current,
|
|
32054
32054
|
total: total
|
|
32055
32055
|
})
|
|
@@ -32065,12 +32065,12 @@ function useTableData$1 (_ref) {
|
|
|
32065
32065
|
};
|
|
32066
32066
|
}();
|
|
32067
32067
|
function setLoading() {
|
|
32068
|
-
setState(_objectSpread$
|
|
32068
|
+
setState(_objectSpread$1f(_objectSpread$1f({}, state), {}, {
|
|
32069
32069
|
loading: true
|
|
32070
32070
|
}));
|
|
32071
32071
|
}
|
|
32072
|
-
return _objectSpread$
|
|
32073
|
-
configuration: _objectSpread$
|
|
32072
|
+
return _objectSpread$1f(_objectSpread$1f({}, state), {}, {
|
|
32073
|
+
configuration: _objectSpread$1f(_objectSpread$1f({}, configuration), {}, {
|
|
32074
32074
|
title: undefined
|
|
32075
32075
|
}),
|
|
32076
32076
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
|
@@ -32166,8 +32166,8 @@ var translation = {
|
|
|
32166
32166
|
SUPPLIER: 'backoffice.translation.supplier'
|
|
32167
32167
|
};
|
|
32168
32168
|
|
|
32169
|
-
function ownKeys$
|
|
32170
|
-
function _objectSpread$
|
|
32169
|
+
function ownKeys$1e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32170
|
+
function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32171
32171
|
/**
|
|
32172
32172
|
* Route/menu-driven overrides for a single shared table module (e.g. list URL filter on `read.list`, default create payload).
|
|
32173
32173
|
*/
|
|
@@ -32175,10 +32175,10 @@ function mergeTableConfiguration(base, readListUrl, genericType) {
|
|
|
32175
32175
|
if (!readListUrl && !genericType) {
|
|
32176
32176
|
return base;
|
|
32177
32177
|
}
|
|
32178
|
-
var next = _objectSpread$
|
|
32178
|
+
var next = _objectSpread$1e({}, base);
|
|
32179
32179
|
if (readListUrl && _typeof(next.apiInterface) === 'object' && next.apiInterface.read && _typeof(next.apiInterface.read) === 'object') {
|
|
32180
|
-
next.apiInterface = _objectSpread$
|
|
32181
|
-
read: _objectSpread$
|
|
32180
|
+
next.apiInterface = _objectSpread$1e(_objectSpread$1e({}, next.apiInterface), {}, {
|
|
32181
|
+
read: _objectSpread$1e(_objectSpread$1e({}, next.apiInterface.read), {}, {
|
|
32182
32182
|
list: readListUrl
|
|
32183
32183
|
})
|
|
32184
32184
|
});
|
|
@@ -32211,8 +32211,8 @@ function objectHash (obj) {
|
|
|
32211
32211
|
function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
32212
32212
|
function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
|
|
32213
32213
|
function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
32214
|
-
function ownKeys$
|
|
32215
|
-
function _objectSpread$
|
|
32214
|
+
function ownKeys$1d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32215
|
+
function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32216
32216
|
var LOG$d = getLogger('Backoffice', 'TableData');
|
|
32217
32217
|
function useTableData (_ref) {
|
|
32218
32218
|
var _persistedTableState$, _configuration$filter, _configuration$filter2, _ref2, _configuration$filter3, _configuration$filter4, _configuration$filter5, _ref3, _configuration$filter6, _configuration$filter7, _configuration$filter8, _persistedTableState$2, _configuration$filter9, _configuration$filter10, _persistedTableState$3, _configuration$bulkAc, _configuration$apiInt, _ref5, _configuration$readMa;
|
|
@@ -32233,8 +32233,8 @@ function useTableData (_ref) {
|
|
|
32233
32233
|
var apiHandler = useMemo(function () {
|
|
32234
32234
|
if (configProp) {
|
|
32235
32235
|
// Store entry is minimal (type+title only); pass the full apiInterface directly
|
|
32236
|
-
var apiInterface = readListUrlOverride && _typeof(configProp.apiInterface) === 'object' && configProp.apiInterface.read ? _objectSpread$
|
|
32237
|
-
read: _objectSpread$
|
|
32236
|
+
var apiInterface = readListUrlOverride && _typeof(configProp.apiInterface) === 'object' && configProp.apiInterface.read ? _objectSpread$1d(_objectSpread$1d({}, configProp.apiInterface), {}, {
|
|
32237
|
+
read: _objectSpread$1d(_objectSpread$1d({}, configProp.apiInterface.read), {}, {
|
|
32238
32238
|
list: readListUrlOverride
|
|
32239
32239
|
})
|
|
32240
32240
|
}) : configProp.apiInterface;
|
|
@@ -32245,8 +32245,8 @@ function useTableData (_ref) {
|
|
|
32245
32245
|
}
|
|
32246
32246
|
var base = baseConfiguration;
|
|
32247
32247
|
if (_typeof(base.apiInterface) === 'object' && base.apiInterface.read && _typeof(base.apiInterface.read) === 'object') {
|
|
32248
|
-
return root.getApiHandler(id, _objectSpread$
|
|
32249
|
-
read: _objectSpread$
|
|
32248
|
+
return root.getApiHandler(id, _objectSpread$1d(_objectSpread$1d({}, base.apiInterface), {}, {
|
|
32249
|
+
read: _objectSpread$1d(_objectSpread$1d({}, base.apiInterface.read), {}, {
|
|
32250
32250
|
list: readListUrlOverride
|
|
32251
32251
|
})
|
|
32252
32252
|
}));
|
|
@@ -32300,7 +32300,7 @@ function useTableData (_ref) {
|
|
|
32300
32300
|
var _useState13 = useState({
|
|
32301
32301
|
loading: true,
|
|
32302
32302
|
deleting: false,
|
|
32303
|
-
pagination: _objectSpread$
|
|
32303
|
+
pagination: _objectSpread$1d(_objectSpread$1d({
|
|
32304
32304
|
current: 1,
|
|
32305
32305
|
pageSize: 20,
|
|
32306
32306
|
total: 0,
|
|
@@ -32309,7 +32309,7 @@ function useTableData (_ref) {
|
|
|
32309
32309
|
selected: (_persistedTableState$3 = persistedTableState === null || persistedTableState === void 0 ? void 0 : persistedTableState.selected) !== null && _persistedTableState$3 !== void 0 ? _persistedTableState$3 : [],
|
|
32310
32310
|
canDelete: !!apiHandler.canDelete,
|
|
32311
32311
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
|
32312
|
-
mappingData: _objectSpread$
|
|
32312
|
+
mappingData: _objectSpread$1d(_objectSpread$1d({}, parentData), {}, {
|
|
32313
32313
|
prefilter: {
|
|
32314
32314
|
select: globalFilter.select
|
|
32315
32315
|
},
|
|
@@ -32320,7 +32320,7 @@ function useTableData (_ref) {
|
|
|
32320
32320
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32321
32321
|
state = _useState14[0],
|
|
32322
32322
|
setState = _useState14[1];
|
|
32323
|
-
var mappingData = _objectSpread$
|
|
32323
|
+
var mappingData = _objectSpread$1d(_objectSpread$1d(_objectSpread$1d({}, parentData), state.data), {}, {
|
|
32324
32324
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
|
32325
32325
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
|
32326
32326
|
});
|
|
@@ -32360,7 +32360,7 @@ function useTableData (_ref) {
|
|
|
32360
32360
|
}
|
|
32361
32361
|
var dataArray = Array.isArray(data) ? data : [data];
|
|
32362
32362
|
var newInitData = initData;
|
|
32363
|
-
var newState = _objectSpread$
|
|
32363
|
+
var newState = _objectSpread$1d({}, state);
|
|
32364
32364
|
var selected = [];
|
|
32365
32365
|
if (configuration.deselectOnUpdate == false) {
|
|
32366
32366
|
selected = state.selected;
|
|
@@ -32377,7 +32377,7 @@ function useTableData (_ref) {
|
|
|
32377
32377
|
dataRow: dataRow
|
|
32378
32378
|
}),
|
|
32379
32379
|
_data = _updateData.data;
|
|
32380
|
-
newState = _objectSpread$
|
|
32380
|
+
newState = _objectSpread$1d(_objectSpread$1d({}, newState), {}, {
|
|
32381
32381
|
data: _data,
|
|
32382
32382
|
selected: selected
|
|
32383
32383
|
});
|
|
@@ -32389,8 +32389,8 @@ function useTableData (_ref) {
|
|
|
32389
32389
|
dataRow: dataRow
|
|
32390
32390
|
}),
|
|
32391
32391
|
nextInitData = _updateData2.data;
|
|
32392
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
32393
|
-
filters: _objectSpread$
|
|
32392
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1d(_objectSpread$1d(_objectSpread$1d({}, filterData), {}, {
|
|
32393
|
+
filters: _objectSpread$1d(_objectSpread$1d(_objectSpread$1d(_objectSpread$1d(_objectSpread$1d(_objectSpread$1d({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter12 = configuration.filter) !== null && _configuration$filter12 !== void 0 && (_configuration$filter12 = _configuration$filter12.toggle) !== null && _configuration$filter12 !== void 0 && _configuration$filter12.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
|
|
32394
32394
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter13 = configuration.filter) !== null && _configuration$filter13 !== void 0 && (_configuration$filter13 = _configuration$filter13.toggle) !== null && _configuration$filter13 !== void 0 && _configuration$filter13.inQuery ? {
|
|
32395
32395
|
genericProps: globalFilter.toggle
|
|
32396
32396
|
} : undefined), {}, {
|
|
@@ -32400,7 +32400,7 @@ function useTableData (_ref) {
|
|
|
32400
32400
|
_data2 = _applyFilterAndSortat.data,
|
|
32401
32401
|
pagination = _applyFilterAndSortat.pagination;
|
|
32402
32402
|
newInitData = nextInitData;
|
|
32403
|
-
newState = _objectSpread$
|
|
32403
|
+
newState = _objectSpread$1d(_objectSpread$1d({}, newState), {}, {
|
|
32404
32404
|
pagination: pagination,
|
|
32405
32405
|
data: _data2,
|
|
32406
32406
|
selected: selected
|
|
@@ -32410,8 +32410,8 @@ function useTableData (_ref) {
|
|
|
32410
32410
|
if (apiHandler.canCreate) {
|
|
32411
32411
|
apiCreate(data).then(function (res) {
|
|
32412
32412
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
|
32413
|
-
initData && setInitData(_objectSpread$
|
|
32414
|
-
setState(_objectSpread$
|
|
32413
|
+
initData && setInitData(_objectSpread$1d({}, initData));
|
|
32414
|
+
setState(_objectSpread$1d({}, state));
|
|
32415
32415
|
}
|
|
32416
32416
|
});
|
|
32417
32417
|
}
|
|
@@ -32424,7 +32424,7 @@ function useTableData (_ref) {
|
|
|
32424
32424
|
var triggerRefresh = function triggerRefresh() {
|
|
32425
32425
|
var _configuration$filter14;
|
|
32426
32426
|
setError(undefined);
|
|
32427
|
-
var newGlobalFilter = _objectSpread$
|
|
32427
|
+
var newGlobalFilter = _objectSpread$1d({}, globalFilter);
|
|
32428
32428
|
//on refresh update default filter, since global value can change
|
|
32429
32429
|
if ((_configuration$filter14 = configuration.filter) !== null && _configuration$filter14 !== void 0 && _configuration$filter14["default"]) {
|
|
32430
32430
|
var _configuration$filter15;
|
|
@@ -32435,7 +32435,7 @@ function useTableData (_ref) {
|
|
|
32435
32435
|
newGlobalFilter["default"] = _defaultFilter;
|
|
32436
32436
|
setGlobaFilter(newGlobalFilter);
|
|
32437
32437
|
}
|
|
32438
|
-
onChange(_objectSpread$
|
|
32438
|
+
onChange(_objectSpread$1d({
|
|
32439
32439
|
pagination: state.pagination
|
|
32440
32440
|
}, filterData), newGlobalFilter, true);
|
|
32441
32441
|
};
|
|
@@ -32453,7 +32453,7 @@ function useTableData (_ref) {
|
|
|
32453
32453
|
order: c.defaultSortOrder
|
|
32454
32454
|
};
|
|
32455
32455
|
});
|
|
32456
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
|
32456
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$1d(_objectSpread$1d({}, state), {}, {
|
|
32457
32457
|
loading: false
|
|
32458
32458
|
}));else {
|
|
32459
32459
|
var _persistedTableState$4, _persistedTableState$5, _persistedTableState$6, _persistedTableState$7;
|
|
@@ -32508,7 +32508,7 @@ function useTableData (_ref) {
|
|
|
32508
32508
|
case 0:
|
|
32509
32509
|
filters = {};
|
|
32510
32510
|
filters['_id'] = [id, 'eq', false];
|
|
32511
|
-
ssf = _objectSpread$
|
|
32511
|
+
ssf = _objectSpread$1d({
|
|
32512
32512
|
pagination: {
|
|
32513
32513
|
current: 1,
|
|
32514
32514
|
pageSize: 1
|
|
@@ -32519,7 +32519,7 @@ function useTableData (_ref) {
|
|
|
32519
32519
|
genericProps: globalFilter.toggle
|
|
32520
32520
|
} : undefined);
|
|
32521
32521
|
_context2.next = 5;
|
|
32522
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
32522
|
+
return apiHandler.readList(readMapping, _objectSpread$1d(_objectSpread$1d({}, mappingData), state.mappingData), ssf);
|
|
32523
32523
|
case 5:
|
|
32524
32524
|
data = _context2.sent;
|
|
32525
32525
|
return _context2.abrupt("return", data);
|
|
@@ -32563,12 +32563,12 @@ function useTableData (_ref) {
|
|
|
32563
32563
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
|
32564
32564
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
|
32565
32565
|
overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
|
|
32566
|
-
setState(_objectSpread$
|
|
32566
|
+
setState(_objectSpread$1d(_objectSpread$1d({}, state), {}, {
|
|
32567
32567
|
mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
|
|
32568
32568
|
loading: true
|
|
32569
32569
|
}));
|
|
32570
32570
|
currentData = initData;
|
|
32571
|
-
filterData = _objectSpread$
|
|
32571
|
+
filterData = _objectSpread$1d(_objectSpread$1d(_objectSpread$1d(_objectSpread$1d({}, prefilter.search), ((_configuration$filter17 = configuration.filter) === null || _configuration$filter17 === void 0 || (_configuration$filter17 = _configuration$filter17.select) === null || _configuration$filter17 === void 0 ? void 0 : _configuration$filter17.applyDefaultValue) !== false || ((_configuration$filter18 = configuration.filter) === null || _configuration$filter18 === void 0 || (_configuration$filter18 = _configuration$filter18.select) === null || _configuration$filter18 === void 0 ? void 0 : _configuration$filter18.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter19 = (_configuration$filter20 = configuration.filter) === null || _configuration$filter20 === void 0 || (_configuration$filter20 = _configuration$filter20.select) === null || _configuration$filter20 === void 0 ? void 0 : _configuration$filter20.filterField) !== null && _configuration$filter19 !== void 0 ? _configuration$filter19 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
|
|
32572
32572
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref9) {
|
|
32573
32573
|
var _ref10 = _slicedToArray(_ref9, 2);
|
|
32574
32574
|
_ref10[0];
|
|
@@ -32576,7 +32576,7 @@ function useTableData (_ref) {
|
|
|
32576
32576
|
return v != null;
|
|
32577
32577
|
}));
|
|
32578
32578
|
currentFilterHash = objectHash(filterData);
|
|
32579
|
-
currentPagination = _objectSpread$
|
|
32579
|
+
currentPagination = _objectSpread$1d(_objectSpread$1d({}, p.pagination), {}, {
|
|
32580
32580
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
|
32581
32581
|
});
|
|
32582
32582
|
filterHash.current = currentFilterHash;
|
|
@@ -32584,7 +32584,7 @@ function useTableData (_ref) {
|
|
|
32584
32584
|
_context3.next = 21;
|
|
32585
32585
|
break;
|
|
32586
32586
|
}
|
|
32587
|
-
ssf = _objectSpread$
|
|
32587
|
+
ssf = _objectSpread$1d({
|
|
32588
32588
|
pagination: currentPagination,
|
|
32589
32589
|
columns: configuration.columns,
|
|
32590
32590
|
filters: filterData,
|
|
@@ -32593,12 +32593,12 @@ function useTableData (_ref) {
|
|
|
32593
32593
|
genericProps: prefilter.toggle
|
|
32594
32594
|
} : undefined);
|
|
32595
32595
|
_context3.next = 15;
|
|
32596
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
32596
|
+
return apiHandler.readList(readMapping, _objectSpread$1d(_objectSpread$1d({}, mappingData), overwriteMappingData), ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter22 = configuration.filter) !== null && _configuration$filter22 !== void 0 && (_configuration$filter22 = _configuration$filter22.toggle) !== null && _configuration$filter22 !== void 0 && _configuration$filter22.inQuery) ? (_prefilter$toggle = prefilter.toggle) !== null && _prefilter$toggle !== void 0 ? _prefilter$toggle : {} : {}, (_parseFilter = parseFilter(p.filters, undefined)) === null || _parseFilter === void 0 ? void 0 : _parseFilter.slice(1, -1)));
|
|
32597
32597
|
case 15:
|
|
32598
32598
|
data = _context3.sent;
|
|
32599
|
-
currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$
|
|
32599
|
+
currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$1d(_objectSpread$1d({}, mappingData), state.mappingData), ssf);
|
|
32600
32600
|
currentData = data.data;
|
|
32601
|
-
currentPagination = _objectSpread$
|
|
32601
|
+
currentPagination = _objectSpread$1d(_objectSpread$1d({}, currentPagination), {}, {
|
|
32602
32602
|
total: data.total
|
|
32603
32603
|
});
|
|
32604
32604
|
_context3.next = 30;
|
|
@@ -32615,7 +32615,7 @@ function useTableData (_ref) {
|
|
|
32615
32615
|
currentData = _data3.data;
|
|
32616
32616
|
setInitData(currentData);
|
|
32617
32617
|
case 27:
|
|
32618
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
|
32618
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$1d(_objectSpread$1d({}, p), {}, {
|
|
32619
32619
|
pagination: currentPagination,
|
|
32620
32620
|
filters: filterData,
|
|
32621
32621
|
data: currentData,
|
|
@@ -32624,11 +32624,11 @@ function useTableData (_ref) {
|
|
|
32624
32624
|
currentData = _data4;
|
|
32625
32625
|
currentPagination = pagination;
|
|
32626
32626
|
case 30:
|
|
32627
|
-
setState(_objectSpread$
|
|
32627
|
+
setState(_objectSpread$1d(_objectSpread$1d({}, state), {}, {
|
|
32628
32628
|
loading: false,
|
|
32629
32629
|
data: currentData,
|
|
32630
32630
|
pagination: currentPagination,
|
|
32631
|
-
mappingData: _objectSpread$
|
|
32631
|
+
mappingData: _objectSpread$1d(_objectSpread$1d(_objectSpread$1d(_objectSpread$1d({}, parentData), state.mappingData), overwriteMappingData), {}, {
|
|
32632
32632
|
prefilter: prefilter
|
|
32633
32633
|
}),
|
|
32634
32634
|
currentFetchUrl: currentUrl
|
|
@@ -32650,7 +32650,7 @@ function useTableData (_ref) {
|
|
|
32650
32650
|
};
|
|
32651
32651
|
}();
|
|
32652
32652
|
var onSelect = function onSelect(keys) {
|
|
32653
|
-
setState(_objectSpread$
|
|
32653
|
+
setState(_objectSpread$1d(_objectSpread$1d({}, state), {}, {
|
|
32654
32654
|
selected: keys
|
|
32655
32655
|
}));
|
|
32656
32656
|
};
|
|
@@ -32661,7 +32661,7 @@ function useTableData (_ref) {
|
|
|
32661
32661
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
32662
32662
|
while (1) switch (_context5.prev = _context5.next) {
|
|
32663
32663
|
case 0:
|
|
32664
|
-
setState(_objectSpread$
|
|
32664
|
+
setState(_objectSpread$1d(_objectSpread$1d({}, state), {}, {
|
|
32665
32665
|
deleting: true
|
|
32666
32666
|
}));
|
|
32667
32667
|
newData = _toConsumableArray(state.data);
|
|
@@ -32701,7 +32701,7 @@ function useTableData (_ref) {
|
|
|
32701
32701
|
} finally {
|
|
32702
32702
|
_iterator.f();
|
|
32703
32703
|
}
|
|
32704
|
-
mappingData = _objectSpread$
|
|
32704
|
+
mappingData = _objectSpread$1d(_objectSpread$1d(_objectSpread$1d({}, mappingData), state.mappingData), mapToggle);
|
|
32705
32705
|
deleteResult = undefined;
|
|
32706
32706
|
_context4.prev = 7;
|
|
32707
32707
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
|
@@ -32791,12 +32791,12 @@ function useTableData (_ref) {
|
|
|
32791
32791
|
break;
|
|
32792
32792
|
}
|
|
32793
32793
|
_context5.next = 25;
|
|
32794
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
32795
|
-
pagination: _objectSpread$
|
|
32794
|
+
return apiHandler.readList(readMapping, _objectSpread$1d(_objectSpread$1d({}, mappingData), state.mappingData), _objectSpread$1d({
|
|
32795
|
+
pagination: _objectSpread$1d(_objectSpread$1d({}, state.pagination), {}, {
|
|
32796
32796
|
current: current
|
|
32797
32797
|
}),
|
|
32798
32798
|
columns: configuration.columns,
|
|
32799
|
-
filters: _objectSpread$
|
|
32799
|
+
filters: _objectSpread$1d(_objectSpread$1d(_objectSpread$1d(_objectSpread$1d(_objectSpread$1d(_objectSpread$1d({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter23 = configuration.filter) !== null && _configuration$filter23 !== void 0 && (_configuration$filter23 = _configuration$filter23.toggle) !== null && _configuration$filter23 !== void 0 && _configuration$filter23.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
|
|
32800
32800
|
sorter: filterData.sorter
|
|
32801
32801
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter24 = configuration.filter) !== null && _configuration$filter24 !== void 0 && (_configuration$filter24 = _configuration$filter24.toggle) !== null && _configuration$filter24 !== void 0 && _configuration$filter24.inQuery ? {
|
|
32802
32802
|
genericProps: globalFilter.toggle
|
|
@@ -32807,11 +32807,11 @@ function useTableData (_ref) {
|
|
|
32807
32807
|
total = data.total;
|
|
32808
32808
|
case 28:
|
|
32809
32809
|
setInitData(newInitData);
|
|
32810
|
-
setState(_objectSpread$
|
|
32810
|
+
setState(_objectSpread$1d(_objectSpread$1d({}, state), {}, {
|
|
32811
32811
|
selected: [],
|
|
32812
32812
|
deleting: false,
|
|
32813
32813
|
data: newData,
|
|
32814
|
-
pagination: _objectSpread$
|
|
32814
|
+
pagination: _objectSpread$1d(_objectSpread$1d({}, state.pagination), {}, {
|
|
32815
32815
|
current: current === 0 ? 1 : current,
|
|
32816
32816
|
total: total
|
|
32817
32817
|
})
|
|
@@ -32832,7 +32832,7 @@ function useTableData (_ref) {
|
|
|
32832
32832
|
LOG$d.error(new DivaError('No global select filter defiend'));
|
|
32833
32833
|
return;
|
|
32834
32834
|
}
|
|
32835
|
-
var newGlobalFilter = _objectSpread$
|
|
32835
|
+
var newGlobalFilter = _objectSpread$1d({}, globalFilter);
|
|
32836
32836
|
if (value !== null && value !== void 0 && value.length) {
|
|
32837
32837
|
var selectValue = Array.isArray(value) ? value : [value];
|
|
32838
32838
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, selectValue.length > 1 ? [].concat(_toConsumableArray(selectValue), ['in']) : [selectValue[0], selectFilterOperation]);
|
|
@@ -32840,7 +32840,7 @@ function useTableData (_ref) {
|
|
|
32840
32840
|
newGlobalFilter.select = {};
|
|
32841
32841
|
}
|
|
32842
32842
|
setGlobaFilter(newGlobalFilter);
|
|
32843
|
-
onChange(_objectSpread$
|
|
32843
|
+
onChange(_objectSpread$1d({
|
|
32844
32844
|
pagination: state.pagination
|
|
32845
32845
|
}, filterData), newGlobalFilter);
|
|
32846
32846
|
};
|
|
@@ -32851,16 +32851,16 @@ function useTableData (_ref) {
|
|
|
32851
32851
|
return;
|
|
32852
32852
|
}
|
|
32853
32853
|
var toggleFilter = {};
|
|
32854
|
-
var mappingData = _objectSpread$
|
|
32854
|
+
var mappingData = _objectSpread$1d({}, state.mappingData);
|
|
32855
32855
|
configuration.filter.toggle.fields.forEach(function (f) {
|
|
32856
32856
|
mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
|
|
32857
32857
|
toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
|
32858
32858
|
});
|
|
32859
|
-
var newGlobalFilter = _objectSpread$
|
|
32859
|
+
var newGlobalFilter = _objectSpread$1d(_objectSpread$1d({}, globalFilter), {}, {
|
|
32860
32860
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
|
32861
32861
|
});
|
|
32862
32862
|
setGlobaFilter(newGlobalFilter);
|
|
32863
|
-
onChange(_objectSpread$
|
|
32863
|
+
onChange(_objectSpread$1d({
|
|
32864
32864
|
pagination: state.pagination
|
|
32865
32865
|
}, filterData), newGlobalFilter, true, true, mappingData);
|
|
32866
32866
|
};
|
|
@@ -32873,7 +32873,7 @@ function useTableData (_ref) {
|
|
|
32873
32873
|
LOG$d.error(new DivaError('No global search filter defiend'));
|
|
32874
32874
|
return;
|
|
32875
32875
|
}
|
|
32876
|
-
var newGlobalFilter = _objectSpread$
|
|
32876
|
+
var newGlobalFilter = _objectSpread$1d(_objectSpread$1d({}, globalFilter), {}, {
|
|
32877
32877
|
search: {}
|
|
32878
32878
|
});
|
|
32879
32879
|
if (value) {
|
|
@@ -32887,7 +32887,7 @@ function useTableData (_ref) {
|
|
|
32887
32887
|
});
|
|
32888
32888
|
}
|
|
32889
32889
|
setGlobaFilter(newGlobalFilter);
|
|
32890
|
-
onChange(_objectSpread$
|
|
32890
|
+
onChange(_objectSpread$1d({
|
|
32891
32891
|
pagination: state.pagination
|
|
32892
32892
|
}, filterData), newGlobalFilter);
|
|
32893
32893
|
};
|
|
@@ -32897,20 +32897,20 @@ function useTableData (_ref) {
|
|
|
32897
32897
|
LOG$d.error(new DivaError('No global period filter defiend'));
|
|
32898
32898
|
return;
|
|
32899
32899
|
}
|
|
32900
|
-
var newGlobalFilter = _objectSpread$
|
|
32900
|
+
var newGlobalFilter = _objectSpread$1d({}, globalFilter);
|
|
32901
32901
|
newGlobalFilter.timeStamp = {
|
|
32902
32902
|
fromTimeStamp: [from],
|
|
32903
32903
|
toTimeStamp: [to]
|
|
32904
32904
|
};
|
|
32905
32905
|
if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
|
|
32906
|
-
onChange(_objectSpread$
|
|
32906
|
+
onChange(_objectSpread$1d({
|
|
32907
32907
|
pagination: state.pagination
|
|
32908
|
-
}, filterData), undefined, true, undefined, _objectSpread$
|
|
32908
|
+
}, filterData), undefined, true, undefined, _objectSpread$1d(_objectSpread$1d({}, state.mappingData), {}, {
|
|
32909
32909
|
from: from,
|
|
32910
32910
|
to: to
|
|
32911
32911
|
}));
|
|
32912
32912
|
};
|
|
32913
|
-
return _objectSpread$
|
|
32913
|
+
return _objectSpread$1d(_objectSpread$1d({}, state), {}, {
|
|
32914
32914
|
title: title,
|
|
32915
32915
|
configuration: configuration,
|
|
32916
32916
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter, persistFilters ? filterData : undefined),
|
|
@@ -32956,8 +32956,8 @@ function StandardTable (_ref) {
|
|
|
32956
32956
|
});
|
|
32957
32957
|
}
|
|
32958
32958
|
|
|
32959
|
-
function ownKeys$
|
|
32960
|
-
function _objectSpread$
|
|
32959
|
+
function ownKeys$1c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32960
|
+
function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32961
32961
|
function Table (props) {
|
|
32962
32962
|
var root = useStore();
|
|
32963
32963
|
var variant = useMemo(function () {
|
|
@@ -32965,15 +32965,15 @@ function Table (props) {
|
|
|
32965
32965
|
return config.variant;
|
|
32966
32966
|
}, [props.id]);
|
|
32967
32967
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
32968
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
|
32968
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$1c({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$1c({}, props))]
|
|
32969
32969
|
});
|
|
32970
32970
|
}
|
|
32971
32971
|
|
|
32972
32972
|
function _createForOfIteratorHelper$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
32973
32973
|
function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
|
|
32974
32974
|
function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
32975
|
-
function ownKeys$
|
|
32976
|
-
function _objectSpread$
|
|
32975
|
+
function ownKeys$1b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32976
|
+
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32977
32977
|
function useAGGrid (_ref) {
|
|
32978
32978
|
var id = _ref.id,
|
|
32979
32979
|
filter = _ref.filter,
|
|
@@ -33067,7 +33067,7 @@ function useAGGrid (_ref) {
|
|
|
33067
33067
|
value = _ref3[1];
|
|
33068
33068
|
if (_idx == 0) {
|
|
33069
33069
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
|
33070
|
-
rdat.push(_objectSpread$
|
|
33070
|
+
rdat.push(_objectSpread$1b(_objectSpread$1b({}, rd), {}, {
|
|
33071
33071
|
grouping: [idx.toString()]
|
|
33072
33072
|
}));
|
|
33073
33073
|
var sp = key.split(':');
|
|
@@ -33210,8 +33210,8 @@ var value = "value-FCA-6";
|
|
|
33210
33210
|
var css_248z$H = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
|
|
33211
33211
|
styleInject(css_248z$H);
|
|
33212
33212
|
|
|
33213
|
-
function ownKeys$
|
|
33214
|
-
function _objectSpread$
|
|
33213
|
+
function ownKeys$1a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33214
|
+
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33215
33215
|
var AGChart = function AGChart(_ref) {
|
|
33216
33216
|
var data = _ref.data;
|
|
33217
33217
|
var groupedData = [];
|
|
@@ -33219,11 +33219,11 @@ var AGChart = function AGChart(_ref) {
|
|
|
33219
33219
|
data.forEach(function (dt) {
|
|
33220
33220
|
if (dt.count == 0) return;
|
|
33221
33221
|
if (groupedData.length > dt.grouping[0]) {
|
|
33222
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
|
33222
|
+
groupedData[dt.grouping[0]].push(_objectSpread$1a(_objectSpread$1a({}, dt), {}, {
|
|
33223
33223
|
count: Number(dt.count)
|
|
33224
33224
|
}));
|
|
33225
33225
|
} else {
|
|
33226
|
-
groupedData.push([_objectSpread$
|
|
33226
|
+
groupedData.push([_objectSpread$1a(_objectSpread$1a({}, dt), {}, {
|
|
33227
33227
|
count: Number(dt.count)
|
|
33228
33228
|
})]);
|
|
33229
33229
|
}
|
|
@@ -33264,8 +33264,8 @@ var AGChart = function AGChart(_ref) {
|
|
|
33264
33264
|
});
|
|
33265
33265
|
};
|
|
33266
33266
|
|
|
33267
|
-
function ownKeys$
|
|
33268
|
-
function _objectSpread$
|
|
33267
|
+
function ownKeys$19(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33268
|
+
function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$19(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$19(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33269
33269
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
33270
33270
|
var id = _ref.id,
|
|
33271
33271
|
filter = _ref.filter,
|
|
@@ -33358,7 +33358,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
33358
33358
|
});
|
|
33359
33359
|
});
|
|
33360
33360
|
}
|
|
33361
|
-
return _objectSpread$
|
|
33361
|
+
return _objectSpread$19(_objectSpread$19({}, column), {}, {
|
|
33362
33362
|
cellRenderer: renderer
|
|
33363
33363
|
});
|
|
33364
33364
|
});
|
|
@@ -33628,8 +33628,8 @@ var CustomText = function CustomText(_ref) {
|
|
|
33628
33628
|
};
|
|
33629
33629
|
var CustomText$1 = observer(CustomText);
|
|
33630
33630
|
|
|
33631
|
-
function ownKeys$
|
|
33632
|
-
function _objectSpread$
|
|
33631
|
+
function ownKeys$18(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33632
|
+
function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$18(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$18(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33633
33633
|
function _createForOfIteratorHelper$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
33634
33634
|
function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
|
|
33635
33635
|
function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -33692,7 +33692,7 @@ function useFilterBoxData (id) {
|
|
|
33692
33692
|
} finally {
|
|
33693
33693
|
_iterator.f();
|
|
33694
33694
|
}
|
|
33695
|
-
return _objectSpread$
|
|
33695
|
+
return _objectSpread$18(_objectSpread$18({}, state), ob);
|
|
33696
33696
|
}
|
|
33697
33697
|
return {
|
|
33698
33698
|
configuration: configuration,
|
|
@@ -33706,8 +33706,8 @@ function useFilterBoxData (id) {
|
|
|
33706
33706
|
function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
33707
33707
|
function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
|
|
33708
33708
|
function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
33709
|
-
function ownKeys$
|
|
33710
|
-
function _objectSpread$
|
|
33709
|
+
function ownKeys$17(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33710
|
+
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33711
33711
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
33712
33712
|
var id = _ref.id,
|
|
33713
33713
|
onChangeFilter = _ref.onChangeFilter,
|
|
@@ -33735,7 +33735,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
33735
33735
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Selector, {
|
|
33736
33736
|
mode: "single",
|
|
33737
33737
|
apiInterface: filter.requestOptions,
|
|
33738
|
-
wholeData: _objectSpread$
|
|
33738
|
+
wholeData: _objectSpread$17(_objectSpread$17({}, state.filter), {}, {
|
|
33739
33739
|
tab: tab
|
|
33740
33740
|
}),
|
|
33741
33741
|
mapping: filter.requestMapping,
|
|
@@ -33967,8 +33967,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
33967
33967
|
return false;
|
|
33968
33968
|
});
|
|
33969
33969
|
|
|
33970
|
-
function ownKeys$
|
|
33971
|
-
function _objectSpread$
|
|
33970
|
+
function ownKeys$16(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33971
|
+
function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$16(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$16(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33972
33972
|
function useUIBuilderData (id) {
|
|
33973
33973
|
var save = undefined;
|
|
33974
33974
|
var root = useStore();
|
|
@@ -34000,7 +34000,7 @@ function useUIBuilderData (id) {
|
|
|
34000
34000
|
var configuration = _useMemo.configuration;
|
|
34001
34001
|
useEffect(function () {
|
|
34002
34002
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
|
34003
|
-
return setFilter(_objectSpread$
|
|
34003
|
+
return setFilter(_objectSpread$16(_objectSpread$16({}, filter), {}, {
|
|
34004
34004
|
sessionGuid: res
|
|
34005
34005
|
}));
|
|
34006
34006
|
});
|
|
@@ -34023,8 +34023,8 @@ function useUIBuilderData (id) {
|
|
|
34023
34023
|
};
|
|
34024
34024
|
}
|
|
34025
34025
|
|
|
34026
|
-
function ownKeys$
|
|
34027
|
-
function _objectSpread$
|
|
34026
|
+
function ownKeys$15(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34027
|
+
function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$15(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$15(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34028
34028
|
function UIBuilder(_ref) {
|
|
34029
34029
|
var id = _ref.id;
|
|
34030
34030
|
var state = useUIBuilderData(id);
|
|
@@ -34051,7 +34051,7 @@ function UIBuilder(_ref) {
|
|
|
34051
34051
|
override = {
|
|
34052
34052
|
value: newFilter[item.field],
|
|
34053
34053
|
setValue: function setValue(newVal) {
|
|
34054
|
-
var newFilter = _objectSpread$
|
|
34054
|
+
var newFilter = _objectSpread$15({}, state.filter);
|
|
34055
34055
|
newFilter[item.field] = newVal;
|
|
34056
34056
|
state.setFilter(newFilter);
|
|
34057
34057
|
}
|
|
@@ -34099,7 +34099,7 @@ function UIBuilder(_ref) {
|
|
|
34099
34099
|
case 'AGGrid':
|
|
34100
34100
|
return /*#__PURE__*/jsx(AGGrid, {
|
|
34101
34101
|
id: item.id,
|
|
34102
|
-
filter: _objectSpread$
|
|
34102
|
+
filter: _objectSpread$15({
|
|
34103
34103
|
optionCodices: JSON.stringify(state.data)
|
|
34104
34104
|
}, state.filter),
|
|
34105
34105
|
override: item.id == 'AGGridTopOptionValues' ? {
|
|
@@ -34263,8 +34263,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
|
34263
34263
|
};
|
|
34264
34264
|
var OrgItem$1 = observer(OrgItem);
|
|
34265
34265
|
|
|
34266
|
-
function ownKeys$
|
|
34267
|
-
function _objectSpread$
|
|
34266
|
+
function ownKeys$14(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34267
|
+
function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$14(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$14(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34268
34268
|
function useTransformJson (_ref) {
|
|
34269
34269
|
var id = _ref.id;
|
|
34270
34270
|
var _useState = useState(),
|
|
@@ -34330,7 +34330,7 @@ function useTransformJson (_ref) {
|
|
|
34330
34330
|
}();
|
|
34331
34331
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
|
34332
34332
|
var _data$children;
|
|
34333
|
-
return _objectSpread$
|
|
34333
|
+
return _objectSpread$14(_objectSpread$14({}, data), {}, {
|
|
34334
34334
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
|
34335
34335
|
data: data,
|
|
34336
34336
|
configuration: configuration,
|
|
@@ -34990,8 +34990,8 @@ function useCatalogEditor (id) {
|
|
|
34990
34990
|
};
|
|
34991
34991
|
}
|
|
34992
34992
|
|
|
34993
|
-
function ownKeys$
|
|
34994
|
-
function _objectSpread$
|
|
34993
|
+
function ownKeys$13(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34994
|
+
function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$13(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$13(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34995
34995
|
function DragDropUpload(_ref) {
|
|
34996
34996
|
var api2Params = _ref.api2Params,
|
|
34997
34997
|
catalogId = _ref.catalogId,
|
|
@@ -35099,7 +35099,7 @@ function DragDropUpload(_ref) {
|
|
|
35099
35099
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
|
35100
35100
|
children: t('backoffice.catalogeditor.classimportstarted')
|
|
35101
35101
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
|
35102
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
|
35102
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$13(_objectSpread$13({}, props), {}, {
|
|
35103
35103
|
children: [/*#__PURE__*/jsx("p", {
|
|
35104
35104
|
className: "ant-upload-drag-icon",
|
|
35105
35105
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
|
@@ -35316,8 +35316,8 @@ function CatalogEditor(_ref) {
|
|
|
35316
35316
|
}
|
|
35317
35317
|
var CatalogEditor$1 = observer(CatalogEditor);
|
|
35318
35318
|
|
|
35319
|
-
function ownKeys$
|
|
35320
|
-
function _objectSpread$
|
|
35319
|
+
function ownKeys$12(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35320
|
+
function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$12(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$12(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35321
35321
|
var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
|
|
35322
35322
|
var _root$contentStore$bo, _root$contentStore$ri;
|
|
35323
35323
|
var root = useStore();
|
|
@@ -35332,7 +35332,7 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
|
35332
35332
|
style: {
|
|
35333
35333
|
display: 'contents'
|
|
35334
35334
|
},
|
|
35335
|
-
children: /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$
|
|
35335
|
+
children: /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$12(_objectSpread$12({}, props), {}, {
|
|
35336
35336
|
ref: ref,
|
|
35337
35337
|
darkMode: root.contentStore.theme == 'darkmode',
|
|
35338
35338
|
jwt: root.dataStore.jwt,
|
|
@@ -35342,8 +35342,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
|
35342
35342
|
});
|
|
35343
35343
|
var Spreadsheet = observer(SpreadsheetWrapper);
|
|
35344
35344
|
|
|
35345
|
-
function ownKeys$
|
|
35346
|
-
function _objectSpread$
|
|
35345
|
+
function ownKeys$11(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35346
|
+
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35347
35347
|
|
|
35348
35348
|
// Type definition for the context state
|
|
35349
35349
|
|
|
@@ -35365,14 +35365,14 @@ var useEnricherContext = function useEnricherContext() {
|
|
|
35365
35365
|
loading: loading,
|
|
35366
35366
|
setOptions: function setOptions(options) {
|
|
35367
35367
|
var state = root.contextStore.getContext('enricher');
|
|
35368
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
|
35368
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$11(_objectSpread$11({}, state[stateKey]), {}, {
|
|
35369
35369
|
options: options,
|
|
35370
35370
|
loading: false
|
|
35371
35371
|
})));
|
|
35372
35372
|
},
|
|
35373
35373
|
setLoading: function setLoading(loading) {
|
|
35374
35374
|
var state = root.contextStore.getContext('enricher');
|
|
35375
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
|
35375
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$11(_objectSpread$11({}, state[stateKey]), {}, {
|
|
35376
35376
|
loading: loading
|
|
35377
35377
|
})));
|
|
35378
35378
|
}
|
|
@@ -35496,7 +35496,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
|
35496
35496
|
}, [urlPackageId, getContext().packageId, setSelectedPackage]);
|
|
35497
35497
|
|
|
35498
35498
|
// Return context + handlers
|
|
35499
|
-
return _objectSpread$
|
|
35499
|
+
return _objectSpread$11(_objectSpread$11({}, getContext()), {}, {
|
|
35500
35500
|
setSelectedSerie: setSelectedSerie,
|
|
35501
35501
|
setSelectedItem: setSelectedItem,
|
|
35502
35502
|
setSelectedFeature: setSelectedFeature,
|
|
@@ -36425,8 +36425,8 @@ function useModule$1 (currentModules) {
|
|
|
36425
36425
|
};
|
|
36426
36426
|
}
|
|
36427
36427
|
|
|
36428
|
-
function ownKeys
|
|
36429
|
-
function _objectSpread
|
|
36428
|
+
function ownKeys$10(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
36429
|
+
function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$10(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$10(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
36430
36430
|
/**
|
|
36431
36431
|
* Creates a column configuration for translated fields in a spreadsheet
|
|
36432
36432
|
*
|
|
@@ -36454,7 +36454,7 @@ function createTranslatedColumnConfig(field, headerName, languages) {
|
|
|
36454
36454
|
acc[key] = "".concat(customParams[key], ".").concat(language);
|
|
36455
36455
|
return acc;
|
|
36456
36456
|
}, {}) : undefined;
|
|
36457
|
-
return maxLength !== undefined ? _objectSpread
|
|
36457
|
+
return maxLength !== undefined ? _objectSpread$10(_objectSpread$10({}, translatedCustomParams), {}, {
|
|
36458
36458
|
maxLength: maxLength
|
|
36459
36459
|
}) : translatedCustomParams;
|
|
36460
36460
|
};
|
|
@@ -38893,15 +38893,15 @@ function PropertyObjectExpandedEditor(_ref) {
|
|
|
38893
38893
|
});
|
|
38894
38894
|
}
|
|
38895
38895
|
|
|
38896
|
-
function ownKeys
|
|
38897
|
-
function _objectSpread
|
|
38896
|
+
function ownKeys$$(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
38897
|
+
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
38898
38898
|
var collapseSecondaryLanguages = function collapseSecondaryLanguages(columnConfig) {
|
|
38899
38899
|
if (!('children' in columnConfig)) {
|
|
38900
38900
|
return columnConfig;
|
|
38901
38901
|
}
|
|
38902
|
-
return _objectSpread
|
|
38902
|
+
return _objectSpread$$(_objectSpread$$({}, columnConfig), {}, {
|
|
38903
38903
|
children: columnConfig.children.map(function (child, index) {
|
|
38904
|
-
return index === 0 ? child : _objectSpread
|
|
38904
|
+
return index === 0 ? child : _objectSpread$$(_objectSpread$$({}, child), {}, {
|
|
38905
38905
|
columnGroupShow: 'open'
|
|
38906
38906
|
});
|
|
38907
38907
|
})
|
|
@@ -38993,7 +38993,7 @@ var EnrichmentTable = observer(function (_ref) {
|
|
|
38993
38993
|
return _toConsumableArray(new Set([].concat(_toConsumableArray(p), [v.addProperty])));
|
|
38994
38994
|
});
|
|
38995
38995
|
setPropertyMeta(function (p) {
|
|
38996
|
-
return _objectSpread
|
|
38996
|
+
return _objectSpread$$(_objectSpread$$({}, p), {}, _defineProperty({}, v.addProperty, {
|
|
38997
38997
|
codexKey: v.codexKey,
|
|
38998
38998
|
description: v.description,
|
|
38999
38999
|
type: v.type
|
|
@@ -39085,7 +39085,7 @@ var EnrichmentTable = observer(function (_ref) {
|
|
|
39085
39085
|
if (type !== 'detailInfos') {
|
|
39086
39086
|
var keys = event.updates.flatMap(function (u) {
|
|
39087
39087
|
var _u$data, _u$data2, _u$data3;
|
|
39088
|
-
return Object.keys(_objectSpread
|
|
39088
|
+
return Object.keys(_objectSpread$$(_objectSpread$$(_objectSpread$$({}, (_u$data = u.data) === null || _u$data === void 0 ? void 0 : _u$data.prop), (_u$data2 = u.data) === null || _u$data2 === void 0 ? void 0 : _u$data2.origProp), (_u$data3 = u.data) === null || _u$data3 === void 0 ? void 0 : _u$data3.translatedProp));
|
|
39089
39089
|
});
|
|
39090
39090
|
if (keys.length) {
|
|
39091
39091
|
setShownProps(function (prev) {
|
|
@@ -39126,7 +39126,7 @@ var EnrichmentTable = observer(function (_ref) {
|
|
|
39126
39126
|
if (type === 'items' && !selectedSerie) {
|
|
39127
39127
|
return oldDataRef.current;
|
|
39128
39128
|
}
|
|
39129
|
-
var newData = _objectSpread
|
|
39129
|
+
var newData = _objectSpread$$(_objectSpread$$({}, baseApplicationData), {}, {
|
|
39130
39130
|
subTypeId: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id
|
|
39131
39131
|
});
|
|
39132
39132
|
oldDataRef.current = newData;
|
|
@@ -39164,7 +39164,7 @@ var EnrichmentTable = observer(function (_ref) {
|
|
|
39164
39164
|
return;
|
|
39165
39165
|
}
|
|
39166
39166
|
setPropertyMeta(function (prev) {
|
|
39167
|
-
var next = _objectSpread
|
|
39167
|
+
var next = _objectSpread$$({}, prev);
|
|
39168
39168
|
usage.forEach(function (_ref4) {
|
|
39169
39169
|
var _next$key, _next$key2, _next$key3;
|
|
39170
39170
|
var key = _ref4.key,
|
|
@@ -39282,9 +39282,9 @@ var EnrichmentTable = observer(function (_ref) {
|
|
|
39282
39282
|
};
|
|
39283
39283
|
|
|
39284
39284
|
// a text property with more than one language is a column group, whose buttons belong on the group header
|
|
39285
|
-
return 'children' in columnConfig ? _objectSpread
|
|
39285
|
+
return 'children' in columnConfig ? _objectSpread$$(_objectSpread$$({}, columnConfig), {}, {
|
|
39286
39286
|
headerGroupComponentParams: headerParams
|
|
39287
|
-
}) : _objectSpread
|
|
39287
|
+
}) : _objectSpread$$(_objectSpread$$({}, columnConfig), {}, {
|
|
39288
39288
|
headerComponentParams: headerParams
|
|
39289
39289
|
});
|
|
39290
39290
|
})), _toConsumableArray(viewOnly ? [] : [{
|
|
@@ -39808,8 +39808,8 @@ var isDefaultValue = function isDefaultValue(value, type) {
|
|
|
39808
39808
|
return value === getDefaultValue(type);
|
|
39809
39809
|
};
|
|
39810
39810
|
|
|
39811
|
-
function ownKeys$
|
|
39812
|
-
function _objectSpread$
|
|
39811
|
+
function ownKeys$_(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
39812
|
+
function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$_(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$_(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39813
39813
|
/**
|
|
39814
39814
|
* Custom hook to manage price factor state and logic
|
|
39815
39815
|
* @param props - Hook configuration
|
|
@@ -39846,7 +39846,7 @@ function usePriceFactor(_ref) {
|
|
|
39846
39846
|
var updateEntries = function updateEntries(newTypeEntries) {
|
|
39847
39847
|
setHasChangedCurrentType(true);
|
|
39848
39848
|
setEntries(function (prev) {
|
|
39849
|
-
return _objectSpread$
|
|
39849
|
+
return _objectSpread$_(_objectSpread$_({}, prev), {}, _defineProperty(_defineProperty({}, type, newTypeEntries), type === 'factor' ? 'discount' : 'factor', []));
|
|
39850
39850
|
});
|
|
39851
39851
|
};
|
|
39852
39852
|
var handleModalOpen = useCallback(function () {
|
|
@@ -39883,7 +39883,7 @@ function usePriceFactor(_ref) {
|
|
|
39883
39883
|
// Always ensure at least one entry when switching types
|
|
39884
39884
|
var newEntries = hasChangedCurrentType ? [] : entries[newType];
|
|
39885
39885
|
setEntries(function (prev) {
|
|
39886
|
-
return _objectSpread$
|
|
39886
|
+
return _objectSpread$_(_objectSpread$_({}, prev), {}, _defineProperty({}, newType, newEntries.length > 0 ? newEntries : [{
|
|
39887
39887
|
value: getDefaultValue(newType),
|
|
39888
39888
|
isValid: true
|
|
39889
39889
|
}]));
|
|
@@ -40319,8 +40319,8 @@ var css_248z$z = ".input-leHam {\n position: relative;\n width: 200px;\n heig
|
|
|
40319
40319
|
styleInject(css_248z$z);
|
|
40320
40320
|
|
|
40321
40321
|
var _excluded$8 = ["onSave", "value"];
|
|
40322
|
-
function ownKeys$
|
|
40323
|
-
function _objectSpread$
|
|
40322
|
+
function ownKeys$Z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40323
|
+
function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40324
40324
|
function PriceFactorInput(_ref) {
|
|
40325
40325
|
var _onSave = _ref.onSave,
|
|
40326
40326
|
value = _ref.value,
|
|
@@ -40336,7 +40336,7 @@ function PriceFactorInput(_ref) {
|
|
|
40336
40336
|
title: props.tooltip,
|
|
40337
40337
|
children: /*#__PURE__*/jsx("div", {
|
|
40338
40338
|
className: classNames(input, 'price-factor-input', props.className, _defineProperty({}, disabled$1, props.disabled)),
|
|
40339
|
-
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$
|
|
40339
|
+
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$Z(_objectSpread$Z({}, props), {}, {
|
|
40340
40340
|
isNotInAGGrid: true,
|
|
40341
40341
|
value: innerValue,
|
|
40342
40342
|
onSave: function onSave(data, value) {
|
|
@@ -40412,8 +40412,8 @@ function Setting(_ref) {
|
|
|
40412
40412
|
});
|
|
40413
40413
|
}
|
|
40414
40414
|
|
|
40415
|
-
function ownKeys$
|
|
40416
|
-
function _objectSpread$
|
|
40415
|
+
function ownKeys$Y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40416
|
+
function _objectSpread$Y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40417
40417
|
/**
|
|
40418
40418
|
* Custom hook for managing modal open/close state
|
|
40419
40419
|
*
|
|
@@ -40429,12 +40429,12 @@ function useModalOpenState() {
|
|
|
40429
40429
|
setOpenStates = _useState2[1];
|
|
40430
40430
|
var openModal = function openModal(key) {
|
|
40431
40431
|
setOpenStates(function (prev) {
|
|
40432
|
-
return _objectSpread$
|
|
40432
|
+
return _objectSpread$Y(_objectSpread$Y({}, prev), {}, _defineProperty({}, key, true));
|
|
40433
40433
|
});
|
|
40434
40434
|
};
|
|
40435
40435
|
var closeModal = function closeModal(key) {
|
|
40436
40436
|
setOpenStates(function (prev) {
|
|
40437
|
-
return _objectSpread$
|
|
40437
|
+
return _objectSpread$Y(_objectSpread$Y({}, prev), {}, _defineProperty({}, key, false));
|
|
40438
40438
|
});
|
|
40439
40439
|
};
|
|
40440
40440
|
return {
|
|
@@ -40502,12 +40502,12 @@ function getFormItemProps(props) {
|
|
|
40502
40502
|
}
|
|
40503
40503
|
|
|
40504
40504
|
var _excluded$6 = ["disabled"];
|
|
40505
|
-
function ownKeys$
|
|
40506
|
-
function _objectSpread$
|
|
40505
|
+
function ownKeys$X(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40506
|
+
function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$X(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$X(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40507
40507
|
function Checkbox(_ref) {
|
|
40508
40508
|
var disabled = _ref.disabled,
|
|
40509
40509
|
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
40510
|
-
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$
|
|
40510
|
+
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$X(_objectSpread$X({}, getFormItemProps(props)), {}, {
|
|
40511
40511
|
valuePropName: "checked",
|
|
40512
40512
|
children: /*#__PURE__*/jsx(Checkbox$1, {
|
|
40513
40513
|
disabled: disabled
|
|
@@ -40516,13 +40516,13 @@ function Checkbox(_ref) {
|
|
|
40516
40516
|
}
|
|
40517
40517
|
|
|
40518
40518
|
var _excluded$5 = ["disabled", "placeholder"];
|
|
40519
|
-
function ownKeys$
|
|
40520
|
-
function _objectSpread$
|
|
40519
|
+
function ownKeys$W(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40520
|
+
function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$W(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$W(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40521
40521
|
function Input(_ref) {
|
|
40522
40522
|
var disabled = _ref.disabled,
|
|
40523
40523
|
placeholder = _ref.placeholder,
|
|
40524
40524
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
40525
|
-
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$
|
|
40525
|
+
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$W(_objectSpread$W({}, getFormItemProps(props)), {}, {
|
|
40526
40526
|
children: /*#__PURE__*/jsx(Input$1, {
|
|
40527
40527
|
disabled: disabled,
|
|
40528
40528
|
placeholder: placeholder
|
|
@@ -40534,8 +40534,8 @@ var uploadDraggerWrapper = "upload-dragger-wrapper-xZiDJ";
|
|
|
40534
40534
|
var css_248z$w = ".upload-dragger-wrapper-xZiDJ {\n min-height: 220px;\n}\n";
|
|
40535
40535
|
styleInject(css_248z$w);
|
|
40536
40536
|
|
|
40537
|
-
function ownKeys$
|
|
40538
|
-
function _objectSpread$
|
|
40537
|
+
function ownKeys$V(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40538
|
+
function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$V(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40539
40539
|
/**
|
|
40540
40540
|
* Handles file selection and optional auto-zipping
|
|
40541
40541
|
*
|
|
@@ -40639,7 +40639,7 @@ function _validateFile() {
|
|
|
40639
40639
|
return _validateFile.apply(this, arguments);
|
|
40640
40640
|
}
|
|
40641
40641
|
function toUploadFile(file) {
|
|
40642
|
-
return _objectSpread$
|
|
40642
|
+
return _objectSpread$V(_objectSpread$V({}, file), {}, {
|
|
40643
40643
|
uid: file.name,
|
|
40644
40644
|
name: file.name,
|
|
40645
40645
|
status: 'done',
|
|
@@ -40711,8 +40711,8 @@ var DraggerComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
40711
40711
|
});
|
|
40712
40712
|
|
|
40713
40713
|
var _excluded$4 = ["acceptedFileTypes", "disabled", "autoZip", "required", "hint"];
|
|
40714
|
-
function ownKeys$
|
|
40715
|
-
function _objectSpread$
|
|
40714
|
+
function ownKeys$U(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40715
|
+
function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$U(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40716
40716
|
function Dragger(_ref) {
|
|
40717
40717
|
var _props$rules;
|
|
40718
40718
|
var acceptedFileTypes = _ref.acceptedFileTypes,
|
|
@@ -40723,7 +40723,7 @@ function Dragger(_ref) {
|
|
|
40723
40723
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
40724
40724
|
var _useTranslation = useTranslation(),
|
|
40725
40725
|
t = _useTranslation.t;
|
|
40726
|
-
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$
|
|
40726
|
+
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$U(_objectSpread$U({}, getFormItemProps(props)), {}, {
|
|
40727
40727
|
rules: [].concat(_toConsumableArray((_props$rules = props.rules) !== null && _props$rules !== void 0 ? _props$rules : []), [{
|
|
40728
40728
|
validator: function validator(_, value) {
|
|
40729
40729
|
return validateFile(acceptedFileTypes, t, value);
|
|
@@ -40797,8 +40797,8 @@ function useForm(_ref) {
|
|
|
40797
40797
|
};
|
|
40798
40798
|
}
|
|
40799
40799
|
|
|
40800
|
-
function ownKeys$
|
|
40801
|
-
function _objectSpread$
|
|
40800
|
+
function ownKeys$T(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40801
|
+
function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$T(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$T(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40802
40802
|
/**
|
|
40803
40803
|
* Form component that renders form fields based on configuration
|
|
40804
40804
|
*
|
|
@@ -40854,15 +40854,15 @@ function FormItem(_ref2) {
|
|
|
40854
40854
|
var field = _ref2.field;
|
|
40855
40855
|
switch (field.type) {
|
|
40856
40856
|
case 'dragger':
|
|
40857
|
-
return /*#__PURE__*/createElement(Dragger, _objectSpread$
|
|
40857
|
+
return /*#__PURE__*/createElement(Dragger, _objectSpread$T(_objectSpread$T({}, field), {}, {
|
|
40858
40858
|
key: field.name
|
|
40859
40859
|
}));
|
|
40860
40860
|
case 'checkbox':
|
|
40861
|
-
return /*#__PURE__*/createElement(Checkbox, _objectSpread$
|
|
40861
|
+
return /*#__PURE__*/createElement(Checkbox, _objectSpread$T(_objectSpread$T({}, field), {}, {
|
|
40862
40862
|
key: field.name
|
|
40863
40863
|
}));
|
|
40864
40864
|
case 'input':
|
|
40865
|
-
return /*#__PURE__*/createElement(Input, _objectSpread$
|
|
40865
|
+
return /*#__PURE__*/createElement(Input, _objectSpread$T(_objectSpread$T({}, field), {}, {
|
|
40866
40866
|
key: field.name
|
|
40867
40867
|
}));
|
|
40868
40868
|
default:
|
|
@@ -41220,8 +41220,8 @@ function useUploadModal(_ref) {
|
|
|
41220
41220
|
};
|
|
41221
41221
|
}
|
|
41222
41222
|
|
|
41223
|
-
function ownKeys$
|
|
41224
|
-
function _objectSpread$
|
|
41223
|
+
function ownKeys$S(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
41224
|
+
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
41225
41225
|
var Panel = Collapse.Panel;
|
|
41226
41226
|
var Text$7 = Typography.Text;
|
|
41227
41227
|
/**
|
|
@@ -41287,7 +41287,7 @@ function ErrorDisplay(_ref) {
|
|
|
41287
41287
|
}
|
|
41288
41288
|
allFieldGroups.get(fieldName).push({
|
|
41289
41289
|
operationType: label,
|
|
41290
|
-
errors: [_objectSpread$
|
|
41290
|
+
errors: [_objectSpread$S(_objectSpread$S({}, error), {}, {
|
|
41291
41291
|
errorTexts: fieldError.errorTexts
|
|
41292
41292
|
})]
|
|
41293
41293
|
});
|
|
@@ -41300,7 +41300,7 @@ function ErrorDisplay(_ref) {
|
|
|
41300
41300
|
}
|
|
41301
41301
|
allFieldGroups.get(fieldName).push({
|
|
41302
41302
|
operationType: label,
|
|
41303
|
-
errors: [_objectSpread$
|
|
41303
|
+
errors: [_objectSpread$S(_objectSpread$S({}, error), {}, {
|
|
41304
41304
|
errorTexts: [error.error]
|
|
41305
41305
|
})]
|
|
41306
41306
|
});
|
|
@@ -41519,8 +41519,8 @@ function ExportModal(_ref) {
|
|
|
41519
41519
|
});
|
|
41520
41520
|
}
|
|
41521
41521
|
|
|
41522
|
-
function ownKeys$
|
|
41523
|
-
function _objectSpread$
|
|
41522
|
+
function ownKeys$R(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
41523
|
+
function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
41524
41524
|
function Modals(_ref) {
|
|
41525
41525
|
var openStates = _ref.openStates,
|
|
41526
41526
|
closeModal = _ref.closeModal,
|
|
@@ -41529,7 +41529,7 @@ function Modals(_ref) {
|
|
|
41529
41529
|
children: [items.filter(function (item) {
|
|
41530
41530
|
return item.type === 'uploadModal';
|
|
41531
41531
|
}).map(function (item) {
|
|
41532
|
-
return /*#__PURE__*/createElement(UploadModal, _objectSpread$
|
|
41532
|
+
return /*#__PURE__*/createElement(UploadModal, _objectSpread$R(_objectSpread$R({}, item), {}, {
|
|
41533
41533
|
key: item.key,
|
|
41534
41534
|
isOpen: openStates[item.key],
|
|
41535
41535
|
onClose: function onClose() {
|
|
@@ -41576,8 +41576,8 @@ function ActionMenu(_ref) {
|
|
|
41576
41576
|
});
|
|
41577
41577
|
}
|
|
41578
41578
|
|
|
41579
|
-
function ownKeys$
|
|
41580
|
-
function _objectSpread$
|
|
41579
|
+
function ownKeys$Q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
41580
|
+
function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
41581
41581
|
var Prices = observer(function (_ref) {
|
|
41582
41582
|
var _pricelist$seriePrice;
|
|
41583
41583
|
var organizationId = _ref.organizationId,
|
|
@@ -41637,8 +41637,8 @@ var Prices = observer(function (_ref) {
|
|
|
41637
41637
|
if (!selectedSerie) return;
|
|
41638
41638
|
|
|
41639
41639
|
// Create copies of the objects to modify
|
|
41640
|
-
var newFactors = _objectSpread$
|
|
41641
|
-
var serieFactors = _objectSpread$
|
|
41640
|
+
var newFactors = _objectSpread$Q({}, pricelist.pfgPricefactors);
|
|
41641
|
+
var serieFactors = _objectSpread$Q({}, newFactors[selectedSerie.serieNo]);
|
|
41642
41642
|
if (value.length === 0) {
|
|
41643
41643
|
// Remove the empty price feature group
|
|
41644
41644
|
delete serieFactors[priceFeatureGroupItem];
|
|
@@ -41669,7 +41669,7 @@ var Prices = observer(function (_ref) {
|
|
|
41669
41669
|
var updatePfgPriority = useCallback(function (priceFeatureGroupItem, value) {
|
|
41670
41670
|
var _newPriority$selected;
|
|
41671
41671
|
if (!selectedSerie) return;
|
|
41672
|
-
var newPriority = _objectSpread$
|
|
41672
|
+
var newPriority = _objectSpread$Q({}, pricelist.pfgPricefactorsPriority);
|
|
41673
41673
|
var seriesPriority = new Set((_newPriority$selected = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected !== void 0 ? _newPriority$selected : []);
|
|
41674
41674
|
if (value === true) {
|
|
41675
41675
|
seriesPriority.add(priceFeatureGroupItem);
|
|
@@ -41688,7 +41688,7 @@ var Prices = observer(function (_ref) {
|
|
|
41688
41688
|
var updatePgPriority = useCallback(function (priceFeatureGroupItem, value) {
|
|
41689
41689
|
var _newPriority$selected2;
|
|
41690
41690
|
if (!selectedSerie) return;
|
|
41691
|
-
var newPriority = _objectSpread$
|
|
41691
|
+
var newPriority = _objectSpread$Q({}, pricelist.pgPricefactorsPriority);
|
|
41692
41692
|
var seriesPriority = new Set((_newPriority$selected2 = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected2 !== void 0 ? _newPriority$selected2 : []);
|
|
41693
41693
|
if (value === true) {
|
|
41694
41694
|
seriesPriority.add(priceFeatureGroupItem);
|
|
@@ -41708,8 +41708,8 @@ var Prices = observer(function (_ref) {
|
|
|
41708
41708
|
if (!selectedSerie) return;
|
|
41709
41709
|
|
|
41710
41710
|
// Create copies of the objects to modify
|
|
41711
|
-
var newFactors = _objectSpread$
|
|
41712
|
-
var serieFactors = _objectSpread$
|
|
41711
|
+
var newFactors = _objectSpread$Q({}, pricelist.pgPricefactors);
|
|
41712
|
+
var serieFactors = _objectSpread$Q({}, newFactors[selectedSerie.serieNo]);
|
|
41713
41713
|
if (value.length === 0) {
|
|
41714
41714
|
// Remove the empty price feature group
|
|
41715
41715
|
delete serieFactors[priceFeatureGroupItem];
|
|
@@ -41741,8 +41741,8 @@ var Prices = observer(function (_ref) {
|
|
|
41741
41741
|
if (!selectedSerie) return;
|
|
41742
41742
|
|
|
41743
41743
|
// Create copies of the objects to modify
|
|
41744
|
-
var newFactors = _objectSpread$
|
|
41745
|
-
var serieFactors = _objectSpread$
|
|
41744
|
+
var newFactors = _objectSpread$Q({}, pricelist.articlePricefactors);
|
|
41745
|
+
var serieFactors = _objectSpread$Q({}, newFactors[selectedSerie.serieNo]);
|
|
41746
41746
|
if (value.length === 0) {
|
|
41747
41747
|
// Remove the empty article price factor
|
|
41748
41748
|
delete serieFactors[typeNo];
|
|
@@ -41774,8 +41774,8 @@ var Prices = observer(function (_ref) {
|
|
|
41774
41774
|
if (!selectedSerie) return;
|
|
41775
41775
|
|
|
41776
41776
|
// Create copies of the objects to modify
|
|
41777
|
-
var newFactors = _objectSpread$
|
|
41778
|
-
var serieFactors = _objectSpread$
|
|
41777
|
+
var newFactors = _objectSpread$Q({}, pricelist.typeKeyPricefactors);
|
|
41778
|
+
var serieFactors = _objectSpread$Q({}, newFactors[selectedSerie.serieNo]);
|
|
41779
41779
|
if (value.length === 0) {
|
|
41780
41780
|
// Remove the empty article price factor
|
|
41781
41781
|
delete serieFactors[typeKey];
|
|
@@ -41807,7 +41807,7 @@ var Prices = observer(function (_ref) {
|
|
|
41807
41807
|
if (!selectedSerie) return;
|
|
41808
41808
|
|
|
41809
41809
|
// Create a copy of the object to modify
|
|
41810
|
-
var newFactors = _objectSpread$
|
|
41810
|
+
var newFactors = _objectSpread$Q({}, pricelist.seriePricefactors);
|
|
41811
41811
|
if (value.length === 0) {
|
|
41812
41812
|
// Remove the empty serie price factor
|
|
41813
41813
|
delete newFactors[selectedSerie.serieNo];
|
|
@@ -42578,8 +42578,8 @@ function Content$9() {
|
|
|
42578
42578
|
}
|
|
42579
42579
|
|
|
42580
42580
|
var _excluded$3 = ["buttonText", "onClose"];
|
|
42581
|
-
function ownKeys$
|
|
42582
|
-
function _objectSpread$
|
|
42581
|
+
function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
42582
|
+
function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
42583
42583
|
/**
|
|
42584
42584
|
* Button component that opens an upload modal when clicked
|
|
42585
42585
|
*
|
|
@@ -42608,15 +42608,15 @@ function UploadModalButton(_ref) {
|
|
|
42608
42608
|
return setIsModalOpen(true);
|
|
42609
42609
|
},
|
|
42610
42610
|
children: buttonText
|
|
42611
|
-
}), /*#__PURE__*/jsx(UploadModal, _objectSpread$
|
|
42611
|
+
}), /*#__PURE__*/jsx(UploadModal, _objectSpread$P(_objectSpread$P({}, props), {}, {
|
|
42612
42612
|
isOpen: isModalOpen,
|
|
42613
42613
|
onClose: handleClose
|
|
42614
42614
|
}))]
|
|
42615
42615
|
});
|
|
42616
42616
|
}
|
|
42617
42617
|
|
|
42618
|
-
function ownKeys$
|
|
42619
|
-
function _objectSpread$
|
|
42618
|
+
function ownKeys$O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
42619
|
+
function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
42620
42620
|
|
|
42621
42621
|
// Type definition for the context state
|
|
42622
42622
|
|
|
@@ -42638,14 +42638,14 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
42638
42638
|
loading: loading,
|
|
42639
42639
|
setOptions: function setOptions(options) {
|
|
42640
42640
|
var state = root.contextStore.getContext('catalog');
|
|
42641
|
-
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$
|
|
42641
|
+
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$O(_objectSpread$O({}, state[stateKey]), {}, {
|
|
42642
42642
|
options: options,
|
|
42643
42643
|
loading: false
|
|
42644
42644
|
})));
|
|
42645
42645
|
},
|
|
42646
42646
|
setLoading: function setLoading(loading) {
|
|
42647
42647
|
var state = root.contextStore.getContext('catalog');
|
|
42648
|
-
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$
|
|
42648
|
+
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$O(_objectSpread$O({}, state[stateKey]), {}, {
|
|
42649
42649
|
loading: loading
|
|
42650
42650
|
})));
|
|
42651
42651
|
}
|
|
@@ -42759,7 +42759,7 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
42759
42759
|
}, [urlCatalogId, getContext().catalogId, setSelectedCatalog]);
|
|
42760
42760
|
|
|
42761
42761
|
// Return context + handlers
|
|
42762
|
-
return _objectSpread$
|
|
42762
|
+
return _objectSpread$O(_objectSpread$O({}, getContext()), {}, {
|
|
42763
42763
|
setSelectedSerie: setSelectedSerie,
|
|
42764
42764
|
setSelectedItem: setSelectedItem,
|
|
42765
42765
|
setSelectedFeature: setSelectedFeature,
|
|
@@ -42769,8 +42769,8 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
42769
42769
|
});
|
|
42770
42770
|
};
|
|
42771
42771
|
|
|
42772
|
-
function ownKeys$
|
|
42773
|
-
function _objectSpread$
|
|
42772
|
+
function ownKeys$N(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
42773
|
+
function _objectSpread$N(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$N(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$N(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
42774
42774
|
var IDM_VERSIONS = [{
|
|
42775
42775
|
name: '3.0.0',
|
|
42776
42776
|
value: '3.0.0'
|
|
@@ -42812,7 +42812,7 @@ function transformFilterNode(node, versionColId) {
|
|
|
42812
42812
|
return c !== undefined;
|
|
42813
42813
|
});
|
|
42814
42814
|
if (conditions.length === 0) return undefined;
|
|
42815
|
-
return _objectSpread$
|
|
42815
|
+
return _objectSpread$N(_objectSpread$N({}, joinNode), {}, {
|
|
42816
42816
|
conditions: conditions
|
|
42817
42817
|
});
|
|
42818
42818
|
}
|
|
@@ -46735,8 +46735,8 @@ var footerContent = "footer-content-sOrT1";
|
|
|
46735
46735
|
var css_248z$u = ".container-wGptw {\n display: flex;\n flex-direction: column;\n height: 500px;\n}\n\n.scrollable-content-zRBJy {\n flex-grow: 1;\n overflow: auto;\n margin-bottom: 16px;\n}\n\n.section-title-s2qIs {\n margin-bottom: 16px;\n}\n\n.action-item-LjQVf {\n width: 100%;\n}\n\n.action-item-highlighted-pjO7e {\n background-color: #e6f7ff;\n border: 1px solid #91d5ff;\n}\n\n.form-container-gF94J {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.form-layout-Ykach {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.form-content-H-AkE {\n flex-grow: 1;\n overflow: auto;\n}\n\n.footer-buttons-4cwcu {\n margin-top: auto;\n}\n\n.add-button-w-6Lk {\n width: 100%;\n}\n\n.footer-content-sOrT1 {\n text-align: center;\n padding: 8px 0;\n}\n";
|
|
46736
46736
|
styleInject(css_248z$u);
|
|
46737
46737
|
|
|
46738
|
-
function ownKeys$
|
|
46739
|
-
function _objectSpread$
|
|
46738
|
+
function ownKeys$M(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
46739
|
+
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
46740
46740
|
function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
46741
46741
|
function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
|
|
46742
46742
|
function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -46961,7 +46961,7 @@ function parseActionsCellValue(values) {
|
|
|
46961
46961
|
}
|
|
46962
46962
|
/** Validate and serialize; used by the form and list display. */
|
|
46963
46963
|
function serializeAction(action) {
|
|
46964
|
-
var a = _objectSpread$
|
|
46964
|
+
var a = _objectSpread$M({}, action);
|
|
46965
46965
|
if (!isActionType(a.actionType)) {
|
|
46966
46966
|
return {
|
|
46967
46967
|
ok: false,
|
|
@@ -46975,7 +46975,7 @@ function serializeAction(action) {
|
|
|
46975
46975
|
ok: false,
|
|
46976
46976
|
reason: 'invalid_main_value'
|
|
46977
46977
|
};
|
|
46978
|
-
var base = _objectSpread$
|
|
46978
|
+
var base = _objectSpread$M(_objectSpread$M({}, a), {}, {
|
|
46979
46979
|
decisionNo: d,
|
|
46980
46980
|
featureNo: undefined,
|
|
46981
46981
|
messageNo: undefined
|
|
@@ -47082,8 +47082,8 @@ function actionDisplayString(action) {
|
|
|
47082
47082
|
return r.ok ? r.value : '';
|
|
47083
47083
|
}
|
|
47084
47084
|
|
|
47085
|
-
function ownKeys$
|
|
47086
|
-
function _objectSpread$
|
|
47085
|
+
function ownKeys$L(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47086
|
+
function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
47087
47087
|
var ACTIONS_FORM_I18N = 'backoffice.idmCatalog.optionCombinations.actions';
|
|
47088
47088
|
function toLookupScalar(v) {
|
|
47089
47089
|
if (v === undefined || v === null || v === '') return undefined;
|
|
@@ -47304,9 +47304,9 @@ function ActionsForm(_ref) {
|
|
|
47304
47304
|
}, [referenceTypeChoiceOptions]);
|
|
47305
47305
|
var defaultValues = useMemo(function () {
|
|
47306
47306
|
if (value != null) {
|
|
47307
|
-
return _objectSpread$
|
|
47307
|
+
return _objectSpread$L(_objectSpread$L({}, DEFAULT_ACTION), value);
|
|
47308
47308
|
}
|
|
47309
|
-
return _objectSpread$
|
|
47309
|
+
return _objectSpread$L({}, DEFAULT_ACTION);
|
|
47310
47310
|
}, [value]);
|
|
47311
47311
|
useEffect(function () {
|
|
47312
47312
|
form.resetFields();
|
|
@@ -47847,8 +47847,8 @@ function ActionsExpandedEditor(_ref) {
|
|
|
47847
47847
|
});
|
|
47848
47848
|
}
|
|
47849
47849
|
|
|
47850
|
-
function ownKeys$
|
|
47851
|
-
function _objectSpread$
|
|
47850
|
+
function ownKeys$K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47851
|
+
function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
47852
47852
|
/**
|
|
47853
47853
|
* Serialize / parse optionsSetRefs cell strings to match idm-model Util/Converter.cs
|
|
47854
47854
|
* (ConvertOptionsSetRef + ConvertOptionsSetRefFromDto).
|
|
@@ -47940,7 +47940,7 @@ function parseOptionsSetRefString(contentOSR) {
|
|
|
47940
47940
|
var content = contentFull;
|
|
47941
47941
|
var attachRef = function attachRef(v) {
|
|
47942
47942
|
if (refLevel !== undefined && refLevel !== 3) {
|
|
47943
|
-
return _objectSpread$
|
|
47943
|
+
return _objectSpread$K(_objectSpread$K({}, v), {}, {
|
|
47944
47944
|
refLevel: refLevel
|
|
47945
47945
|
});
|
|
47946
47946
|
}
|
|
@@ -48175,8 +48175,8 @@ function serializeOptionsSetRef(model) {
|
|
|
48175
48175
|
return base;
|
|
48176
48176
|
}
|
|
48177
48177
|
|
|
48178
|
-
function ownKeys$
|
|
48179
|
-
function _objectSpread$
|
|
48178
|
+
function ownKeys$J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
48179
|
+
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48180
48180
|
var DEFAULT_FORM = {
|
|
48181
48181
|
conditionKind: 'optionRefOp',
|
|
48182
48182
|
operator: 'eq',
|
|
@@ -48196,7 +48196,7 @@ function mapParsedToFormValues(p) {
|
|
|
48196
48196
|
var refLevel = (_p$refLevel = p.refLevel) !== null && _p$refLevel !== void 0 ? _p$refLevel : 3;
|
|
48197
48197
|
switch (p.kind) {
|
|
48198
48198
|
case 'optionInterval':
|
|
48199
|
-
return _objectSpread$
|
|
48199
|
+
return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
|
|
48200
48200
|
conditionKind: 'optionInterval',
|
|
48201
48201
|
operator: p.operator,
|
|
48202
48202
|
optionKeyMin: p.optionKeyMin,
|
|
@@ -48204,42 +48204,42 @@ function mapParsedToFormValues(p) {
|
|
|
48204
48204
|
refLevel: refLevel
|
|
48205
48205
|
});
|
|
48206
48206
|
case 'optionList':
|
|
48207
|
-
return _objectSpread$
|
|
48207
|
+
return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
|
|
48208
48208
|
conditionKind: 'optionList',
|
|
48209
48209
|
operator: p.operator,
|
|
48210
48210
|
optionKeysSelected: _toConsumableArray(p.optionKeys),
|
|
48211
48211
|
refLevel: refLevel
|
|
48212
48212
|
});
|
|
48213
48213
|
case 'optionGroupRefOp':
|
|
48214
|
-
return _objectSpread$
|
|
48214
|
+
return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
|
|
48215
48215
|
conditionKind: 'optionGroupRefOp',
|
|
48216
48216
|
operator: p.operator,
|
|
48217
48217
|
optionGroupKey: p.optionGroupKey,
|
|
48218
48218
|
refLevel: refLevel
|
|
48219
48219
|
});
|
|
48220
48220
|
case 'optionRefOp':
|
|
48221
|
-
return _objectSpread$
|
|
48221
|
+
return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
|
|
48222
48222
|
conditionKind: 'optionRefOp',
|
|
48223
48223
|
operator: p.operator,
|
|
48224
48224
|
optionKey: p.optionKey,
|
|
48225
48225
|
refLevel: refLevel
|
|
48226
48226
|
});
|
|
48227
48227
|
case 'featureRefOp':
|
|
48228
|
-
return _objectSpread$
|
|
48228
|
+
return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
|
|
48229
48229
|
conditionKind: 'featureRefOp',
|
|
48230
48230
|
operator: p.operator,
|
|
48231
48231
|
featureNo: p.featureNo,
|
|
48232
48232
|
refLevel: refLevel
|
|
48233
48233
|
});
|
|
48234
48234
|
case 'measureValueOp':
|
|
48235
|
-
return _objectSpread$
|
|
48235
|
+
return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
|
|
48236
48236
|
conditionKind: 'measureValueOp',
|
|
48237
48237
|
operator: p.operator,
|
|
48238
48238
|
measureValue: p.measureValue,
|
|
48239
48239
|
refLevel: refLevel
|
|
48240
48240
|
});
|
|
48241
48241
|
case 'measureInterval':
|
|
48242
|
-
return _objectSpread$
|
|
48242
|
+
return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
|
|
48243
48243
|
conditionKind: 'measureInterval',
|
|
48244
48244
|
operator: p.operator,
|
|
48245
48245
|
measureMin: p.measureMin,
|
|
@@ -48247,13 +48247,13 @@ function mapParsedToFormValues(p) {
|
|
|
48247
48247
|
refLevel: refLevel
|
|
48248
48248
|
});
|
|
48249
48249
|
default:
|
|
48250
|
-
return _objectSpread$
|
|
48250
|
+
return _objectSpread$J({}, DEFAULT_FORM);
|
|
48251
48251
|
}
|
|
48252
48252
|
}
|
|
48253
48253
|
function addRefLevel(m, refLevel) {
|
|
48254
48254
|
var rl = refLevel === null || refLevel === undefined || refLevel === 3 ? undefined : refLevel;
|
|
48255
48255
|
if (rl !== undefined) {
|
|
48256
|
-
return _objectSpread$
|
|
48256
|
+
return _objectSpread$J(_objectSpread$J({}, m), {}, {
|
|
48257
48257
|
refLevel: rl
|
|
48258
48258
|
});
|
|
48259
48259
|
}
|
|
@@ -50200,8 +50200,8 @@ var TablePartlists = observer(function () {
|
|
|
50200
50200
|
});
|
|
50201
50201
|
});
|
|
50202
50202
|
|
|
50203
|
-
function ownKeys$
|
|
50204
|
-
function _objectSpread$
|
|
50203
|
+
function ownKeys$I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
50204
|
+
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
50205
50205
|
function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
50206
50206
|
var priceFeatureGroup = _ref.priceFeatureGroup,
|
|
50207
50207
|
catalogId = _ref.catalogId,
|
|
@@ -50229,7 +50229,7 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
|
50229
50229
|
var newRefsDisplayTexts = _toConsumableArray(priceFeatureGroup.featureNosDisplayTexts);
|
|
50230
50230
|
newRefs.splice(index, 1);
|
|
50231
50231
|
newRefsDisplayTexts.splice(index, 1);
|
|
50232
|
-
var updatedPriceFeatureGroup = _objectSpread$
|
|
50232
|
+
var updatedPriceFeatureGroup = _objectSpread$I(_objectSpread$I({}, priceFeatureGroup), {}, {
|
|
50233
50233
|
featureNos: newRefs,
|
|
50234
50234
|
featureNosDisplayTexts: newRefsDisplayTexts
|
|
50235
50235
|
});
|
|
@@ -50600,8 +50600,8 @@ function PriceFeatureGroupFinishes(_ref) {
|
|
|
50600
50600
|
}, priceFeatureGroup._id);
|
|
50601
50601
|
}
|
|
50602
50602
|
|
|
50603
|
-
function ownKeys$
|
|
50604
|
-
function _objectSpread$
|
|
50603
|
+
function ownKeys$H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
50604
|
+
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
50605
50605
|
var TablePriceFeatureGroups = observer(function () {
|
|
50606
50606
|
var _selectedCatalog$isoL, _selectedCatalog$isoL2;
|
|
50607
50607
|
var _useTranslation = useTranslation(),
|
|
@@ -50708,7 +50708,7 @@ var TablePriceFeatureGroups = observer(function () {
|
|
|
50708
50708
|
return ((_update$node = update.node) === null || _update$node === void 0 ? void 0 : _update$node.id) == selectedNodeId;
|
|
50709
50709
|
});
|
|
50710
50710
|
if (current) {
|
|
50711
|
-
setSelectedPriceFeatureGroup(_objectSpread$
|
|
50711
|
+
setSelectedPriceFeatureGroup(_objectSpread$H({}, current.data));
|
|
50712
50712
|
}
|
|
50713
50713
|
if (updates.length == 0 || updates.some(function (update) {
|
|
50714
50714
|
var _update$oldData;
|
|
@@ -51361,6 +51361,124 @@ function AccessoryCellRenderer(props) {
|
|
|
51361
51361
|
}
|
|
51362
51362
|
}
|
|
51363
51363
|
|
|
51364
|
+
function ownKeys$G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
51365
|
+
function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
51366
|
+
/**
|
|
51367
|
+
* Rewrites the filters of the Zusatzartikel matrix onto the fields the item endpoint can answer.
|
|
51368
|
+
*
|
|
51369
|
+
* The matrix columns are computed from the nested ADDITIONAL_ITEMS groups and have no field of their own, so the
|
|
51370
|
+
* server cannot be asked for them directly. It addresses one accessory by the serie and the type no of its
|
|
51371
|
+
* reference instead - the two keys of the filter fields below - and compares the value inside the very reference it
|
|
51372
|
+
* found, so a filter can never mix two accessories.
|
|
51373
|
+
*/
|
|
51374
|
+
|
|
51375
|
+
/** The two keys the item endpoint identifies one accessory reference by. */
|
|
51376
|
+
function filterField(property, accessory) {
|
|
51377
|
+
return "".concat(property, "[\"").concat(accessory.serieNo, "\"][\"").concat(accessory.typeNo, "\"]");
|
|
51378
|
+
}
|
|
51379
|
+
|
|
51380
|
+
/** The IDM keeps the mandatory and the optional relations in their own groups, each with its own filter field. */
|
|
51381
|
+
var MANDATORY_QUANTITY = 'additionalItemMandatoryQuantity';
|
|
51382
|
+
var OPTIONAL_QUANTITY = 'additionalItemOptionalQuantity';
|
|
51383
|
+
var MANDATORY_SET_NO = 'additionalItemMandatorySetNo';
|
|
51384
|
+
var OPTIONAL_SET_NO = 'additionalItemOptionalSetNo';
|
|
51385
|
+
|
|
51386
|
+
/**
|
|
51387
|
+
* Walks the filter model and hands every condition of the given column to `rewrite`. Conditions of other columns
|
|
51388
|
+
* stay untouched - the grid applies the parsers of all filtered columns to the same model.
|
|
51389
|
+
*/
|
|
51390
|
+
function rewriteConditions(filterModel, colId, rewrite) {
|
|
51391
|
+
if (!filterModel) return undefined;
|
|
51392
|
+
if (filterModel.filterType === 'join') {
|
|
51393
|
+
var join = filterModel;
|
|
51394
|
+
// Dropping a child whose parser found nothing to narrow down is safe here: the grid hands its column filters
|
|
51395
|
+
// over as one AND, and a nested OR only ever holds the conditions of a single column (see prepareFilter)
|
|
51396
|
+
var conditions = join.conditions.map(function (condition) {
|
|
51397
|
+
return rewriteConditions(condition, colId, rewrite);
|
|
51398
|
+
}).filter(function (condition) {
|
|
51399
|
+
return condition !== undefined;
|
|
51400
|
+
});
|
|
51401
|
+
if (conditions.length === 0) return undefined;
|
|
51402
|
+
return _objectSpread$G(_objectSpread$G({}, join), {}, {
|
|
51403
|
+
conditions: conditions
|
|
51404
|
+
});
|
|
51405
|
+
}
|
|
51406
|
+
if (filterModel.colId !== colId) return filterModel;
|
|
51407
|
+
return rewrite(filterModel);
|
|
51408
|
+
}
|
|
51409
|
+
|
|
51410
|
+
/** Joins conditions that have to hold for either the mandatory or the optional side of an accessory. */
|
|
51411
|
+
function eitherSide(conditions, type) {
|
|
51412
|
+
return {
|
|
51413
|
+
filterType: 'join',
|
|
51414
|
+
type: type,
|
|
51415
|
+
conditions: conditions
|
|
51416
|
+
};
|
|
51417
|
+
}
|
|
51418
|
+
|
|
51419
|
+
/**
|
|
51420
|
+
* Filter of a quantity column: the same condition, asked of the group the quantity belongs to.
|
|
51421
|
+
*/
|
|
51422
|
+
function quantityFilterParser(colId, accessory, side) {
|
|
51423
|
+
var property = side === 'mandatory' ? MANDATORY_QUANTITY : OPTIONAL_QUANTITY;
|
|
51424
|
+
return function (_ref) {
|
|
51425
|
+
var filterModel = _ref.filterModel;
|
|
51426
|
+
return rewriteConditions(filterModel, colId, function (condition) {
|
|
51427
|
+
return _objectSpread$G(_objectSpread$G({}, condition), {}, {
|
|
51428
|
+
colId: filterField(property, accessory)
|
|
51429
|
+
});
|
|
51430
|
+
});
|
|
51431
|
+
};
|
|
51432
|
+
}
|
|
51433
|
+
|
|
51434
|
+
/**
|
|
51435
|
+
* Filter of the Set No column: the grid shows one set per accessory although the IDM numbers both sides on their
|
|
51436
|
+
* own, so a set matches as soon as one of the two groups carries it.
|
|
51437
|
+
*
|
|
51438
|
+
* OR holds for a negated condition too: the item endpoint answers each side as an existence check over its groups,
|
|
51439
|
+
* so the side an accessory does not sit on is false rather than "no value". AND would drop every accessory that
|
|
51440
|
+
* only exists on one side, whatever its set.
|
|
51441
|
+
*/
|
|
51442
|
+
function setNoFilterParser(colId, accessory) {
|
|
51443
|
+
return function (_ref2) {
|
|
51444
|
+
var filterModel = _ref2.filterModel;
|
|
51445
|
+
return rewriteConditions(filterModel, colId, function (condition) {
|
|
51446
|
+
return eitherSide([_objectSpread$G(_objectSpread$G({}, condition), {}, {
|
|
51447
|
+
colId: filterField(MANDATORY_SET_NO, accessory)
|
|
51448
|
+
}), _objectSpread$G(_objectSpread$G({}, condition), {}, {
|
|
51449
|
+
colId: filterField(OPTIONAL_SET_NO, accessory)
|
|
51450
|
+
})], 'OR');
|
|
51451
|
+
});
|
|
51452
|
+
};
|
|
51453
|
+
}
|
|
51454
|
+
|
|
51455
|
+
/**
|
|
51456
|
+
* Filter of the Aktiv column: a checked cell means the article references the accessory at all, which the catalog
|
|
51457
|
+
* only holds as a quantity on one of the two sides. Unchecked is the absence of both, so the conditions have to
|
|
51458
|
+
* hold together.
|
|
51459
|
+
*/
|
|
51460
|
+
function activeFilterParser(colId, accessory) {
|
|
51461
|
+
return function (_ref3) {
|
|
51462
|
+
var filterModel = _ref3.filterModel;
|
|
51463
|
+
return rewriteConditions(filterModel, colId, function (condition) {
|
|
51464
|
+
var _condition$values;
|
|
51465
|
+
var values = (_condition$values = condition.values) !== null && _condition$values !== void 0 ? _condition$values : [];
|
|
51466
|
+
var checked = values.includes('true') || values.includes(true);
|
|
51467
|
+
var unchecked = values.includes('false') || values.includes(false);
|
|
51468
|
+
|
|
51469
|
+
// Both or neither narrows nothing down
|
|
51470
|
+
if (checked === unchecked) return undefined;
|
|
51471
|
+
return eitherSide([MANDATORY_QUANTITY, OPTIONAL_QUANTITY].map(function (property) {
|
|
51472
|
+
return {
|
|
51473
|
+
colId: filterField(property, accessory),
|
|
51474
|
+
filterType: 'text',
|
|
51475
|
+
type: checked ? 'notBlank' : 'blank'
|
|
51476
|
+
};
|
|
51477
|
+
}), checked ? 'OR' : 'AND');
|
|
51478
|
+
});
|
|
51479
|
+
};
|
|
51480
|
+
}
|
|
51481
|
+
|
|
51364
51482
|
function ownKeys$F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
51365
51483
|
function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
51366
51484
|
function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -51459,10 +51577,11 @@ function readCells(item, isV4) {
|
|
|
51459
51577
|
|
|
51460
51578
|
/**
|
|
51461
51579
|
* Applies one cell edit to the matrix, in place. Filling a quantity on a new accessory also activates it; an
|
|
51462
|
-
* existing accessory keeps its checkbox. Each side's set no defaults while its quantity is set and clears with it
|
|
51580
|
+
* existing accessory keeps its checkbox. Each side's set no defaults while its quantity is set and clears with it -
|
|
51581
|
+
* to the set the other side already uses, because the grid edits one set no per accessory.
|
|
51463
51582
|
*/
|
|
51464
51583
|
function applyCellChange(cells, accessory, property, value) {
|
|
51465
|
-
var _cell$mandatorySetNo, _cell$optionalSetNo;
|
|
51584
|
+
var _ref3, _cell$mandatorySetNo, _cell$mandatorySetNo2, _cell$optionalSetNo;
|
|
51466
51585
|
var key = accessoryKey(accessory.serieNo, accessory.typeNo);
|
|
51467
51586
|
var existing = cells[key];
|
|
51468
51587
|
var cell = existing ? _objectSpread$F(_objectSpread$F({}, existing), {}, _defineProperty({}, property, value)) : _defineProperty({
|
|
@@ -51470,8 +51589,11 @@ function applyCellChange(cells, accessory, property, value) {
|
|
|
51470
51589
|
typeNo: accessory.typeNo,
|
|
51471
51590
|
active: property !== 'active'
|
|
51472
51591
|
}, property, value);
|
|
51473
|
-
|
|
51474
|
-
|
|
51592
|
+
|
|
51593
|
+
// One set no per accessory in the grid: a quantity filled later joins the set the other side already uses
|
|
51594
|
+
var sharedSetNo = (_ref3 = (_cell$mandatorySetNo = cell.mandatorySetNo) !== null && _cell$mandatorySetNo !== void 0 ? _cell$mandatorySetNo : cell.optionalSetNo) !== null && _ref3 !== void 0 ? _ref3 : DEFAULT_SET_NO;
|
|
51595
|
+
cell.mandatorySetNo = cell.mandatoryQuantity != null ? (_cell$mandatorySetNo2 = cell.mandatorySetNo) !== null && _cell$mandatorySetNo2 !== void 0 ? _cell$mandatorySetNo2 : sharedSetNo : undefined;
|
|
51596
|
+
cell.optionalSetNo = cell.optionalQuantity != null ? (_cell$optionalSetNo = cell.optionalSetNo) !== null && _cell$optionalSetNo !== void 0 ? _cell$optionalSetNo : sharedSetNo : undefined;
|
|
51475
51597
|
cells[key] = cell;
|
|
51476
51598
|
return cells;
|
|
51477
51599
|
}
|
|
@@ -51574,9 +51696,10 @@ var SET_NO_OPTIONS = Array.from({
|
|
|
51574
51696
|
/**
|
|
51575
51697
|
* Zusatzartikel of a serie: rows are its articles, the dynamic columns their accessories. A checked cell makes the
|
|
51576
51698
|
* relation active, the two quantities become the IDM MANDATORY_QUANTITY (minimum) and OPTIONAL_QUANTITY (maximum).
|
|
51577
|
-
*
|
|
51578
|
-
*
|
|
51579
|
-
*
|
|
51699
|
+
* The IDM numbers the mandatory and the optional groups independently (SET_NO 1-9), but a relation belongs to one
|
|
51700
|
+
* set here: the grid has a single Set No dropdown per accessory and writes it to both sides, each keeping it only
|
|
51701
|
+
* while it has a quantity. It is filled as soon as a quantity is (defaulting to set 1) and empty and disabled
|
|
51702
|
+
* without any, because a set without a quantity has nothing to publish.
|
|
51580
51703
|
*
|
|
51581
51704
|
* The relations live on the articles themselves (ITEM.ADDITIONAL_ITEMS), so a row is an item and every edit goes
|
|
51582
51705
|
* through the normal item endpoints.
|
|
@@ -51584,19 +51707,26 @@ var SET_NO_OPTIONS = Array.from({
|
|
|
51584
51707
|
* A matrix cell has no row field of its own - it is computed from the nested groups - so the cells render their own
|
|
51585
51708
|
* input and stage the rebuilt groups through the grid's transaction handler. The grid's normal editing path is not
|
|
51586
51709
|
* usable here: it keys each commit on `colDef.field` and drops an edit that has none. Staging keeps the save on the
|
|
51587
|
-
* row: the grid commits the pending changes when the selection leaves it.
|
|
51710
|
+
* row: the grid commits the pending changes when the selection leaves it. The fill handle takes the same route, so
|
|
51711
|
+
* a value can be dragged onto the rows below it.
|
|
51588
51712
|
*/
|
|
51589
|
-
var ArticleRelations = observer(function (
|
|
51590
|
-
var idmService =
|
|
51591
|
-
catalogId =
|
|
51592
|
-
serieId =
|
|
51593
|
-
|
|
51594
|
-
|
|
51595
|
-
|
|
51596
|
-
|
|
51713
|
+
var ArticleRelations = observer(function (props) {
|
|
51714
|
+
var idmService = props.idmService,
|
|
51715
|
+
catalogId = props.catalogId,
|
|
51716
|
+
serieId = props.serieId,
|
|
51717
|
+
serieNo = props.serieNo,
|
|
51718
|
+
isV4 = props.isV4,
|
|
51719
|
+
languages = props.languages,
|
|
51720
|
+
accessories = props.accessories,
|
|
51721
|
+
onlyWithRelations = props.onlyWithRelations,
|
|
51722
|
+
onRemoved = props.onRemoved,
|
|
51723
|
+
viewOnly = props.viewOnly;
|
|
51597
51724
|
var _useTranslation = useTranslation(),
|
|
51725
|
+
t = _useTranslation.t,
|
|
51598
51726
|
i18n = _useTranslation.i18n;
|
|
51727
|
+
var root = useStore();
|
|
51599
51728
|
var language = ((languages === null || languages === void 0 ? void 0 : languages[0]) || i18n.language || 'DE').toUpperCase();
|
|
51729
|
+
var spreadsheetRef = useRef(null);
|
|
51600
51730
|
var applicationData = useMemo(function () {
|
|
51601
51731
|
return {
|
|
51602
51732
|
catalogId: catalogId,
|
|
@@ -51611,6 +51741,31 @@ var ArticleRelations = observer(function (_ref) {
|
|
|
51611
51741
|
};
|
|
51612
51742
|
}, [idmService, viewOnly]);
|
|
51613
51743
|
|
|
51744
|
+
/**
|
|
51745
|
+
* Only the articles that have at least one relation. The groups are properties of the item, so the server can
|
|
51746
|
+
* answer this as a null check on the pair - an article without any Zusatzartikel has neither of them.
|
|
51747
|
+
*/
|
|
51748
|
+
var preFilter = useMemo(function () {
|
|
51749
|
+
if (!onlyWithRelations) return undefined;
|
|
51750
|
+
var _additionalItemFields = additionalItemFields(isV4),
|
|
51751
|
+
_additionalItemFields2 = _slicedToArray(_additionalItemFields, 2),
|
|
51752
|
+
mandatoryField = _additionalItemFields2[0],
|
|
51753
|
+
optionalField = _additionalItemFields2[1];
|
|
51754
|
+
return {
|
|
51755
|
+
filterType: 'join',
|
|
51756
|
+
type: 'OR',
|
|
51757
|
+
conditions: [{
|
|
51758
|
+
colId: mandatoryField,
|
|
51759
|
+
filterType: 'text',
|
|
51760
|
+
type: 'notBlank'
|
|
51761
|
+
}, {
|
|
51762
|
+
colId: optionalField,
|
|
51763
|
+
filterType: 'text',
|
|
51764
|
+
type: 'notBlank'
|
|
51765
|
+
}]
|
|
51766
|
+
};
|
|
51767
|
+
}, [onlyWithRelations, isV4]);
|
|
51768
|
+
|
|
51614
51769
|
/**
|
|
51615
51770
|
* Rebuilds both group arrays of the row from its matrix and stages them as one update. Staging instead of
|
|
51616
51771
|
* committing is what makes the row save when it is left: the grid commits the pending changes as soon as the
|
|
@@ -51625,10 +51780,10 @@ var ArticleRelations = observer(function (_ref) {
|
|
|
51625
51780
|
change(cells, setMeta);
|
|
51626
51781
|
var groups = {};
|
|
51627
51782
|
writeCells(groups, isV4, cells, setMeta);
|
|
51628
|
-
var
|
|
51629
|
-
|
|
51630
|
-
mandatoryField =
|
|
51631
|
-
optionalField =
|
|
51783
|
+
var _additionalItemFields3 = additionalItemFields(isV4),
|
|
51784
|
+
_additionalItemFields4 = _slicedToArray(_additionalItemFields3, 2),
|
|
51785
|
+
mandatoryField = _additionalItemFields4[0],
|
|
51786
|
+
optionalField = _additionalItemFields4[1];
|
|
51632
51787
|
transactionHandler.updateRow(node.id, _defineProperty(_defineProperty({}, mandatoryField, groups[mandatoryField]), optionalField, groups[optionalField]), true);
|
|
51633
51788
|
}, [isV4]);
|
|
51634
51789
|
var saveCell = useCallback(function (accessory, property) {
|
|
@@ -51638,104 +51793,221 @@ var ArticleRelations = observer(function (_ref) {
|
|
|
51638
51793
|
});
|
|
51639
51794
|
};
|
|
51640
51795
|
}, [save]);
|
|
51796
|
+
|
|
51797
|
+
/**
|
|
51798
|
+
* Writes the single Set No of an accessory to both IDM sides. Each side drops the value again while it has no
|
|
51799
|
+
* quantity, so an accessory that is only mandatory or only optional publishes just that one group.
|
|
51800
|
+
*/
|
|
51801
|
+
var saveSetNo = useCallback(function (accessory) {
|
|
51802
|
+
return function (node, value, transactionHandler) {
|
|
51803
|
+
return save(node, transactionHandler, function (cells) {
|
|
51804
|
+
applyCellChange(cells, accessory, 'mandatorySetNo', value);
|
|
51805
|
+
applyCellChange(cells, accessory, 'optionalSetNo', value);
|
|
51806
|
+
});
|
|
51807
|
+
};
|
|
51808
|
+
}, [save]);
|
|
51809
|
+
|
|
51810
|
+
/**
|
|
51811
|
+
* Fill handle: copies the value of the dragged cells onto the rows they are dragged over, through the same save
|
|
51812
|
+
* the cell renderer uses. Only vertical drags copy - sideways the next column means something else. The cell
|
|
51813
|
+
* value is returned unchanged, which keeps the write of the grid (which would need a field) out of it.
|
|
51814
|
+
*/
|
|
51815
|
+
var fill = useCallback(function (onSave) {
|
|
51816
|
+
return function (params) {
|
|
51817
|
+
var _params$context;
|
|
51818
|
+
// The cells disable their own input on a view, the fill has to refuse the write just as much
|
|
51819
|
+
if (viewOnly) return false;
|
|
51820
|
+
if (params.direction !== 'down' && params.direction !== 'up') return false;
|
|
51821
|
+
|
|
51822
|
+
// Several dragged cells repeat over the filled rows, like the fill of the grid does
|
|
51823
|
+
var value = params.initialValues[params.currentIndex % params.initialValues.length];
|
|
51824
|
+
onSave(params.rowNode, value, (_params$context = params.context) === null || _params$context === void 0 ? void 0 : _params$context.transactionHandler);
|
|
51825
|
+
return params.currentCellValue;
|
|
51826
|
+
};
|
|
51827
|
+
}, [viewOnly]);
|
|
51828
|
+
|
|
51829
|
+
/**
|
|
51830
|
+
* Deletes every relation of one accessory in this serie - the whole column. The relations are spread over the
|
|
51831
|
+
* items, so the server does the removal and the grid reloads the rows it just changed.
|
|
51832
|
+
*/
|
|
51833
|
+
var removeAccessory = useCallback(/*#__PURE__*/function () {
|
|
51834
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(accessory) {
|
|
51835
|
+
var _spreadsheetRef$curre;
|
|
51836
|
+
var path, response;
|
|
51837
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
51838
|
+
while (1) switch (_context.prev = _context.next) {
|
|
51839
|
+
case 0:
|
|
51840
|
+
path = "".concat(idmService, "/catalogs/").concat(catalogId, "/series/").concat(serieId, "/items/additionalitemrefs");
|
|
51841
|
+
_context.next = 3;
|
|
51842
|
+
return fetch("".concat(path, "/").concat(encodeURIComponent(accessory.serieNo), "/").concat(encodeURIComponent(accessory.typeNo)), {
|
|
51843
|
+
method: 'DELETE',
|
|
51844
|
+
headers: {
|
|
51845
|
+
Authorization: "Bearer ".concat(root.dataStore.jwt)
|
|
51846
|
+
}
|
|
51847
|
+
})["catch"](function () {
|
|
51848
|
+
return undefined;
|
|
51849
|
+
});
|
|
51850
|
+
case 3:
|
|
51851
|
+
response = _context.sent;
|
|
51852
|
+
if (response !== null && response !== void 0 && response.ok) {
|
|
51853
|
+
_context.next = 7;
|
|
51854
|
+
break;
|
|
51855
|
+
}
|
|
51856
|
+
message$1.error(t('backoffice.idmCatalog.articlerelations.label.removeAccessoryError', {
|
|
51857
|
+
defaultValue: 'Failed to remove the accessory'
|
|
51858
|
+
}));
|
|
51859
|
+
return _context.abrupt("return");
|
|
51860
|
+
case 7:
|
|
51861
|
+
onRemoved === null || onRemoved === void 0 || onRemoved(accessory.key);
|
|
51862
|
+
(_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 || _spreadsheetRef$curre.refresh(true);
|
|
51863
|
+
case 9:
|
|
51864
|
+
case "end":
|
|
51865
|
+
return _context.stop();
|
|
51866
|
+
}
|
|
51867
|
+
}, _callee);
|
|
51868
|
+
}));
|
|
51869
|
+
return function (_x) {
|
|
51870
|
+
return _ref.apply(this, arguments);
|
|
51871
|
+
};
|
|
51872
|
+
}(), [idmService, catalogId, serieId, root.dataStore.jwt, onRemoved, t]);
|
|
51873
|
+
|
|
51874
|
+
// A reference carries its serie as a string, the selected serie may carry its number as one
|
|
51875
|
+
var ownSerieNo = serieNo == null ? undefined : String(serieNo);
|
|
51641
51876
|
var accessoryColumnDefs = useMemo(function () {
|
|
51642
51877
|
return accessories.map(function (accessory) {
|
|
51643
|
-
var _accessory$
|
|
51644
|
-
// Computed from nested groups: no field to
|
|
51878
|
+
var _accessory$serieName, _accessory$shortText;
|
|
51879
|
+
// Computed from nested groups: no field to sort or key an edit on. The filters reach the server through
|
|
51880
|
+
// the parsers below, which rewrite them onto the fields the item endpoint answers for one accessory.
|
|
51645
51881
|
var matrixCell = {
|
|
51646
51882
|
editable: false,
|
|
51647
|
-
filter: false,
|
|
51648
51883
|
sortable: false,
|
|
51649
51884
|
cellRenderer: AccessoryCellRenderer
|
|
51650
51885
|
};
|
|
51886
|
+
// A column without a data type is a text one, and its filter offers contains, startsWith and the like -
|
|
51887
|
+
// operations the service cannot answer for a number. The numeric columns have to name their type to get
|
|
51888
|
+
// the numeric operations instead.
|
|
51889
|
+
var numberFilter = _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
|
|
51890
|
+
cellDataType: 'number'
|
|
51891
|
+
});
|
|
51651
51892
|
var cellOf = function cellOf(data) {
|
|
51652
51893
|
return readCells(data, isV4)[accessory.key];
|
|
51653
51894
|
};
|
|
51895
|
+
|
|
51896
|
+
// An accessory of another serie names where it comes from. The serie is compared rather than the presence
|
|
51897
|
+
// of its name, so one whose name cannot be resolved does not pass as an accessory of the own serie.
|
|
51898
|
+
var origin = accessory.serieNo === ownSerieNo ? undefined : "(".concat([accessory.serieNo, (_accessory$serieName = accessory.serieName) === null || _accessory$serieName === void 0 ? void 0 : _accessory$serieName[language]].filter(Boolean).join(' '), ")");
|
|
51899
|
+
var article = [accessory.typeNo, (_accessory$shortText = accessory.shortText) === null || _accessory$shortText === void 0 ? void 0 : _accessory$shortText[language]].filter(Boolean).join(' - ');
|
|
51654
51900
|
return {
|
|
51655
|
-
headerName:
|
|
51901
|
+
headerName: [article, origin].filter(Boolean).join(' '),
|
|
51656
51902
|
marryChildren: true,
|
|
51657
|
-
|
|
51658
|
-
|
|
51659
|
-
|
|
51903
|
+
headerGroupComponentParams: viewOnly ? undefined : {
|
|
51904
|
+
additionalElement: /*#__PURE__*/jsx(Popconfirm$1, {
|
|
51905
|
+
rootClassName: "ag-custom-component-popup",
|
|
51906
|
+
title: t('backoffice.idmCatalog.articlerelations.label.removeAccessoryConfirmTitle', {
|
|
51907
|
+
defaultValue: 'Remove accessory?'
|
|
51908
|
+
}),
|
|
51909
|
+
description: t('backoffice.idmCatalog.articlerelations.label.removeAccessoryConfirmDescription', {
|
|
51910
|
+
defaultValue: 'This deletes the relation to this accessory on every article of the serie, not just the ones shown.'
|
|
51911
|
+
}),
|
|
51912
|
+
onConfirm: function onConfirm(e) {
|
|
51913
|
+
e === null || e === void 0 || e.stopPropagation();
|
|
51914
|
+
removeAccessory(accessory);
|
|
51915
|
+
},
|
|
51916
|
+
onCancel: function onCancel(e) {
|
|
51917
|
+
return e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
51918
|
+
},
|
|
51919
|
+
okText: t('backoffice.common.button.delete', {
|
|
51920
|
+
defaultValue: 'Delete'
|
|
51921
|
+
}),
|
|
51922
|
+
cancelText: t('backoffice.common.button.cancel'),
|
|
51923
|
+
children: /*#__PURE__*/jsx(Button$1, {
|
|
51924
|
+
icon: /*#__PURE__*/jsx(DeleteOutlined$1, {}),
|
|
51925
|
+
type: "text",
|
|
51926
|
+
size: "small",
|
|
51927
|
+
onClick: function onClick(e) {
|
|
51928
|
+
return e.stopPropagation();
|
|
51929
|
+
}
|
|
51930
|
+
})
|
|
51931
|
+
})
|
|
51932
|
+
},
|
|
51933
|
+
children: [_objectSpread$E(_objectSpread$E({}, numberFilter), {}, {
|
|
51934
|
+
headerName: 'backoffice.idmCatalog.articlerelations.label.mandatoryQuantity',
|
|
51935
|
+
colId: "".concat(accessory.key, ".mandatoryQuantity"),
|
|
51936
|
+
filterModelParser: quantityFilterParser("".concat(accessory.key, ".mandatoryQuantity"), accessory, 'mandatory'),
|
|
51660
51937
|
valueGetter: function valueGetter(_ref2) {
|
|
51661
|
-
var _cellOf
|
|
51938
|
+
var _cellOf;
|
|
51662
51939
|
var data = _ref2.data;
|
|
51663
|
-
return data ? (_cellOf
|
|
51940
|
+
return data ? (_cellOf = cellOf(data)) === null || _cellOf === void 0 ? void 0 : _cellOf.mandatoryQuantity : undefined;
|
|
51664
51941
|
},
|
|
51942
|
+
setFillValue: fill(saveCell(accessory, 'mandatoryQuantity')),
|
|
51665
51943
|
cellRendererParams: {
|
|
51666
|
-
kind: '
|
|
51944
|
+
kind: 'number',
|
|
51945
|
+
min: 0,
|
|
51667
51946
|
disabled: viewOnly,
|
|
51668
|
-
onSave: saveCell(accessory, '
|
|
51947
|
+
onSave: saveCell(accessory, 'mandatoryQuantity')
|
|
51669
51948
|
}
|
|
51670
|
-
}), _objectSpread$E(_objectSpread$E({},
|
|
51671
|
-
headerName: 'backoffice.idmCatalog.articlerelations.label.
|
|
51672
|
-
colId: "".concat(accessory.key, ".
|
|
51949
|
+
}), _objectSpread$E(_objectSpread$E({}, numberFilter), {}, {
|
|
51950
|
+
headerName: 'backoffice.idmCatalog.articlerelations.label.optionalQuantity',
|
|
51951
|
+
colId: "".concat(accessory.key, ".optionalQuantity"),
|
|
51952
|
+
filterModelParser: quantityFilterParser("".concat(accessory.key, ".optionalQuantity"), accessory, 'optional'),
|
|
51673
51953
|
valueGetter: function valueGetter(_ref3) {
|
|
51674
51954
|
var _cellOf2;
|
|
51675
51955
|
var data = _ref3.data;
|
|
51676
|
-
return data ? (_cellOf2 = cellOf(data)) === null || _cellOf2 === void 0 ? void 0 : _cellOf2.
|
|
51956
|
+
return data ? (_cellOf2 = cellOf(data)) === null || _cellOf2 === void 0 ? void 0 : _cellOf2.optionalQuantity : undefined;
|
|
51677
51957
|
},
|
|
51958
|
+
setFillValue: fill(saveCell(accessory, 'optionalQuantity')),
|
|
51678
51959
|
cellRendererParams: {
|
|
51679
51960
|
kind: 'number',
|
|
51680
51961
|
min: 0,
|
|
51681
51962
|
disabled: viewOnly,
|
|
51682
|
-
onSave: saveCell(accessory, '
|
|
51963
|
+
onSave: saveCell(accessory, 'optionalQuantity')
|
|
51683
51964
|
}
|
|
51684
|
-
}), _objectSpread$E(_objectSpread$E({},
|
|
51685
|
-
headerName: 'backoffice.idmCatalog.articlerelations.label.
|
|
51686
|
-
colId: "".concat(accessory.key, ".
|
|
51965
|
+
}), _objectSpread$E(_objectSpread$E({}, numberFilter), {}, {
|
|
51966
|
+
headerName: 'backoffice.idmCatalog.articlerelations.label.setNo',
|
|
51967
|
+
colId: "".concat(accessory.key, ".setNo"),
|
|
51968
|
+
filterModelParser: setNoFilterParser("".concat(accessory.key, ".setNo"), accessory),
|
|
51969
|
+
// Both sides are always written together, so either one carries the set of the relation
|
|
51687
51970
|
valueGetter: function valueGetter(_ref4) {
|
|
51688
|
-
var _cellOf3;
|
|
51971
|
+
var _cellOf$mandatorySetN, _cellOf3, _cellOf4;
|
|
51689
51972
|
var data = _ref4.data;
|
|
51690
|
-
return data ? (_cellOf3 = cellOf(data)) === null || _cellOf3 === void 0 ? void 0 : _cellOf3.mandatorySetNo : undefined;
|
|
51973
|
+
return data ? (_cellOf$mandatorySetN = (_cellOf3 = cellOf(data)) === null || _cellOf3 === void 0 ? void 0 : _cellOf3.mandatorySetNo) !== null && _cellOf$mandatorySetN !== void 0 ? _cellOf$mandatorySetN : (_cellOf4 = cellOf(data)) === null || _cellOf4 === void 0 ? void 0 : _cellOf4.optionalSetNo : undefined;
|
|
51691
51974
|
},
|
|
51692
51975
|
cellRendererParams: {
|
|
51693
51976
|
kind: 'select',
|
|
51694
51977
|
options: SET_NO_OPTIONS,
|
|
51695
51978
|
disabled: viewOnly,
|
|
51696
|
-
// Required exactly while
|
|
51979
|
+
// Required exactly while a quantity is set - without one there is nothing the set could publish
|
|
51697
51980
|
isDisabled: function isDisabled(node) {
|
|
51698
|
-
var
|
|
51699
|
-
return ((
|
|
51981
|
+
var _cellOf5, _cellOf6;
|
|
51982
|
+
return ((_cellOf5 = cellOf(node.data)) === null || _cellOf5 === void 0 ? void 0 : _cellOf5.mandatoryQuantity) == null && ((_cellOf6 = cellOf(node.data)) === null || _cellOf6 === void 0 ? void 0 : _cellOf6.optionalQuantity) == null;
|
|
51700
51983
|
},
|
|
51701
|
-
onSave:
|
|
51702
|
-
}
|
|
51984
|
+
onSave: saveSetNo(accessory)
|
|
51985
|
+
},
|
|
51986
|
+
setFillValue: fill(saveSetNo(accessory))
|
|
51703
51987
|
}), _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
|
|
51704
|
-
headerName: 'backoffice.idmCatalog.articlerelations.label.
|
|
51705
|
-
colId: "".concat(accessory.key, ".
|
|
51988
|
+
headerName: 'backoffice.idmCatalog.articlerelations.label.active',
|
|
51989
|
+
colId: "".concat(accessory.key, ".active"),
|
|
51990
|
+
filter: 'agSetColumnFilter',
|
|
51991
|
+
filterParams: {
|
|
51992
|
+
suppressMiniFilter: true,
|
|
51993
|
+
values: [true, false]
|
|
51994
|
+
},
|
|
51995
|
+
filterModelParser: activeFilterParser("".concat(accessory.key, ".active"), accessory),
|
|
51706
51996
|
valueGetter: function valueGetter(_ref5) {
|
|
51707
|
-
var
|
|
51997
|
+
var _cellOf$active, _cellOf7;
|
|
51708
51998
|
var data = _ref5.data;
|
|
51709
|
-
return data ? (
|
|
51710
|
-
},
|
|
51711
|
-
cellRendererParams: {
|
|
51712
|
-
kind: 'number',
|
|
51713
|
-
min: 0,
|
|
51714
|
-
disabled: viewOnly,
|
|
51715
|
-
onSave: saveCell(accessory, 'optionalQuantity')
|
|
51716
|
-
}
|
|
51717
|
-
}), _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
|
|
51718
|
-
headerName: 'backoffice.idmCatalog.articlerelations.label.optionalSetNo',
|
|
51719
|
-
colId: "".concat(accessory.key, ".optionalSetNo"),
|
|
51720
|
-
valueGetter: function valueGetter(_ref6) {
|
|
51721
|
-
var _cellOf6;
|
|
51722
|
-
var data = _ref6.data;
|
|
51723
|
-
return data ? (_cellOf6 = cellOf(data)) === null || _cellOf6 === void 0 ? void 0 : _cellOf6.optionalSetNo : undefined;
|
|
51999
|
+
return data ? (_cellOf$active = (_cellOf7 = cellOf(data)) === null || _cellOf7 === void 0 ? void 0 : _cellOf7.active) !== null && _cellOf$active !== void 0 ? _cellOf$active : false : undefined;
|
|
51724
52000
|
},
|
|
52001
|
+
setFillValue: fill(saveCell(accessory, 'active')),
|
|
51725
52002
|
cellRendererParams: {
|
|
51726
|
-
kind: '
|
|
51727
|
-
options: SET_NO_OPTIONS,
|
|
52003
|
+
kind: 'boolean',
|
|
51728
52004
|
disabled: viewOnly,
|
|
51729
|
-
|
|
51730
|
-
var _cellOf7;
|
|
51731
|
-
return ((_cellOf7 = cellOf(node.data)) === null || _cellOf7 === void 0 ? void 0 : _cellOf7.optionalQuantity) == null;
|
|
51732
|
-
},
|
|
51733
|
-
onSave: saveCell(accessory, 'optionalSetNo')
|
|
52005
|
+
onSave: saveCell(accessory, 'active')
|
|
51734
52006
|
}
|
|
51735
52007
|
})]
|
|
51736
52008
|
};
|
|
51737
52009
|
});
|
|
51738
|
-
}, [accessories, language, isV4, viewOnly, saveCell]);
|
|
52010
|
+
}, [accessories, language, ownSerieNo, isV4, viewOnly, saveCell, saveSetNo, fill, removeAccessory, t]);
|
|
51739
52011
|
var configuration = useMemo(function () {
|
|
51740
52012
|
return {
|
|
51741
52013
|
type: 'dotnetSSM',
|
|
@@ -51772,9 +52044,11 @@ var ArticleRelations = observer(function (_ref) {
|
|
|
51772
52044
|
}, [apiInterface, accessoryColumnDefs, isV4]);
|
|
51773
52045
|
if (!catalogId || !serieId) return null;
|
|
51774
52046
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
52047
|
+
ref: spreadsheetRef,
|
|
51775
52048
|
gridId: "crud-grid_articlerelations",
|
|
51776
52049
|
applicationData: applicationData,
|
|
51777
|
-
configuration: configuration
|
|
52050
|
+
configuration: configuration,
|
|
52051
|
+
preFilter: preFilter
|
|
51778
52052
|
});
|
|
51779
52053
|
});
|
|
51780
52054
|
|
|
@@ -51785,6 +52059,7 @@ var ArticleRelations = observer(function (_ref) {
|
|
|
51785
52059
|
function AddAccessoryModal(_ref) {
|
|
51786
52060
|
var open = _ref.open,
|
|
51787
52061
|
catalogId = _ref.catalogId,
|
|
52062
|
+
serieId = _ref.serieId,
|
|
51788
52063
|
language = _ref.language,
|
|
51789
52064
|
onCancel = _ref.onCancel,
|
|
51790
52065
|
onAdd = _ref.onAdd;
|
|
@@ -51807,6 +52082,10 @@ function AddAccessoryModal(_ref) {
|
|
|
51807
52082
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
51808
52083
|
typeNos = _useState8[0],
|
|
51809
52084
|
setTypeNos = _useState8[1];
|
|
52085
|
+
var _useState9 = useState(''),
|
|
52086
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
52087
|
+
search = _useState10[0],
|
|
52088
|
+
setSearch = _useState10[1];
|
|
51810
52089
|
var read = useMemo(function () {
|
|
51811
52090
|
return function (path) {
|
|
51812
52091
|
return new _default$c({
|
|
@@ -51829,13 +52108,38 @@ function AddAccessoryModal(_ref) {
|
|
|
51829
52108
|
setItems([]);
|
|
51830
52109
|
return;
|
|
51831
52110
|
}
|
|
52111
|
+
var cancelled = false;
|
|
51832
52112
|
|
|
51833
52113
|
// Project to what the picker shows - without it the endpoint resolves detail infos, partlist and prices per item
|
|
51834
52114
|
read("/catalogs/".concat(catalogId, "/series/").concat(serie._id, "/items?fields=").concat(encodeURIComponent('typeNo;shortText'))).readList().then(function (r) {
|
|
51835
52115
|
var _r$data2;
|
|
51836
|
-
|
|
52116
|
+
// The serie may have been switched again while this was on its way - a late answer must not win
|
|
52117
|
+
if (cancelled) return;
|
|
52118
|
+
setItems((_r$data2 = r.data) !== null && _r$data2 !== void 0 ? _r$data2 : []);
|
|
51837
52119
|
});
|
|
52120
|
+
return function () {
|
|
52121
|
+
cancelled = true;
|
|
52122
|
+
};
|
|
51838
52123
|
}, [serie, catalogId, read]);
|
|
52124
|
+
|
|
52125
|
+
// Every opening starts over
|
|
52126
|
+
useEffect(function () {
|
|
52127
|
+
if (!open) return;
|
|
52128
|
+
setSerie(undefined);
|
|
52129
|
+
setTypeNos([]);
|
|
52130
|
+
setSearch('');
|
|
52131
|
+
}, [open]);
|
|
52132
|
+
|
|
52133
|
+
// ... at the serie being edited, which is where an accessory comes from in most cases. Only fills in what is not
|
|
52134
|
+
// chosen yet, because the serie list is fetched per opening and would otherwise undo a pick made while it loads
|
|
52135
|
+
useEffect(function () {
|
|
52136
|
+
if (!open) return;
|
|
52137
|
+
setSerie(function (current) {
|
|
52138
|
+
return current !== null && current !== void 0 ? current : series.find(function (s) {
|
|
52139
|
+
return s._id === serieId;
|
|
52140
|
+
});
|
|
52141
|
+
});
|
|
52142
|
+
}, [open, series, serieId]);
|
|
51839
52143
|
var itemOptions = useMemo(function () {
|
|
51840
52144
|
return items.map(function (i) {
|
|
51841
52145
|
var _i$shortText$language, _i$shortText;
|
|
@@ -51846,6 +52150,23 @@ function AddAccessoryModal(_ref) {
|
|
|
51846
52150
|
};
|
|
51847
52151
|
});
|
|
51848
52152
|
}, [items, language]);
|
|
52153
|
+
|
|
52154
|
+
/** The articles the list currently offers - the same match the select filters its options by. */
|
|
52155
|
+
var offeredOptions = useMemo(function () {
|
|
52156
|
+
var needle = search.trim().toLowerCase();
|
|
52157
|
+
return needle ? itemOptions.filter(function (option) {
|
|
52158
|
+
return option.label.toLowerCase().includes(needle);
|
|
52159
|
+
}) : itemOptions;
|
|
52160
|
+
}, [itemOptions, search]);
|
|
52161
|
+
|
|
52162
|
+
// Adds to the picked articles instead of replacing them, so searching twice keeps the first result
|
|
52163
|
+
var selectAll = useCallback(function () {
|
|
52164
|
+
setTypeNos(function (current) {
|
|
52165
|
+
return _toConsumableArray(new Set([].concat(_toConsumableArray(current), _toConsumableArray(offeredOptions.map(function (option) {
|
|
52166
|
+
return option.value;
|
|
52167
|
+
})))));
|
|
52168
|
+
});
|
|
52169
|
+
}, [offeredOptions]);
|
|
51849
52170
|
return /*#__PURE__*/jsx(Modal$3, {
|
|
51850
52171
|
open: open,
|
|
51851
52172
|
title: t('backoffice.idmCatalog.articlerelations.label.addAccessory'),
|
|
@@ -51867,7 +52188,9 @@ function AddAccessoryModal(_ref) {
|
|
|
51867
52188
|
key: accessoryKey(serieNo, option.value),
|
|
51868
52189
|
serieNo: serieNo,
|
|
51869
52190
|
typeNo: option.value,
|
|
51870
|
-
shortText: (_option$item = option.item) === null || _option$item === void 0 ? void 0 : _option$item.shortText
|
|
52191
|
+
shortText: (_option$item = option.item) === null || _option$item === void 0 ? void 0 : _option$item.shortText,
|
|
52192
|
+
// Names the origin of a foreign accessory right away, the way the item endpoint does for the columns it serves
|
|
52193
|
+
serieName: serie._id === serieId ? undefined : serie.seriesName
|
|
51871
52194
|
};
|
|
51872
52195
|
}));
|
|
51873
52196
|
setTypeNos([]);
|
|
@@ -51898,14 +52221,32 @@ function AddAccessoryModal(_ref) {
|
|
|
51898
52221
|
}), /*#__PURE__*/jsx(Form$3.Item, {
|
|
51899
52222
|
label: t('backoffice.idmCatalog.articlerelations.label.accessoryTypeNos'),
|
|
51900
52223
|
children: /*#__PURE__*/jsx(Select$1, {
|
|
51901
|
-
mode: "multiple"
|
|
51902
|
-
|
|
51903
|
-
|
|
52224
|
+
mode: "multiple"
|
|
52225
|
+
// The search survives a pick - without it every selection empties it and the list has to be searched again
|
|
52226
|
+
,
|
|
52227
|
+
showSearch: {
|
|
52228
|
+
optionFilterProp: 'label',
|
|
52229
|
+
autoClearSearchValue: false,
|
|
52230
|
+
onSearch: setSearch
|
|
52231
|
+
}
|
|
52232
|
+
// Controlled, so what the list shows and what "select all" takes can never drift apart
|
|
52233
|
+
,
|
|
52234
|
+
searchValue: search,
|
|
51904
52235
|
maxTagCount: "responsive",
|
|
51905
52236
|
value: typeNos,
|
|
51906
52237
|
onChange: setTypeNos,
|
|
51907
52238
|
options: itemOptions,
|
|
51908
52239
|
disabled: !serie
|
|
52240
|
+
// The same select all the decision table picker of the item grid offers
|
|
52241
|
+
,
|
|
52242
|
+
popupRender: function popupRender(menu) {
|
|
52243
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
52244
|
+
children: [/*#__PURE__*/jsx(SelectAllOption, {
|
|
52245
|
+
onClick: selectAll,
|
|
52246
|
+
disabled: offeredOptions.length === 0
|
|
52247
|
+
}), menu]
|
|
52248
|
+
});
|
|
52249
|
+
}
|
|
51909
52250
|
})
|
|
51910
52251
|
})]
|
|
51911
52252
|
})
|
|
@@ -51978,18 +52319,30 @@ function useAdditionalItemRefs(catalogId, serieId) {
|
|
|
51978
52319
|
return fresh.length ? [].concat(_toConsumableArray(current), fresh) : current;
|
|
51979
52320
|
});
|
|
51980
52321
|
}, []);
|
|
52322
|
+
|
|
52323
|
+
/** Drops a column the editor removed. The relations behind it are deleted by the caller, on the server. */
|
|
52324
|
+
var removeColumn = useCallback(function (key) {
|
|
52325
|
+
setColumns(function (current) {
|
|
52326
|
+
return current.filter(function (column) {
|
|
52327
|
+
return column.key !== key;
|
|
52328
|
+
});
|
|
52329
|
+
});
|
|
52330
|
+
}, []);
|
|
51981
52331
|
return {
|
|
51982
52332
|
columns: columns,
|
|
51983
|
-
addColumns: addColumns
|
|
52333
|
+
addColumns: addColumns,
|
|
52334
|
+
removeColumn: removeColumn
|
|
51984
52335
|
};
|
|
51985
52336
|
}
|
|
51986
52337
|
|
|
52338
|
+
var INFO_CODEX = 'IDM_ARTICLE_RELATIONS_TABLE_INFO';
|
|
51987
52339
|
var MODULES = ['articlerelations'];
|
|
51988
52340
|
|
|
51989
52341
|
/**
|
|
51990
52342
|
* Zusatzartikel of the selected serie. The relations are catalog data on the articles themselves
|
|
51991
52343
|
* (ITEM.ADDITIONAL_ITEMS), so a row is an item of the serie and the accessories are its dynamic columns - each with
|
|
51992
|
-
*
|
|
52344
|
+
* a mandatory and an optional quantity and one IDM set no. The checkbox of the title bar reduces the rows to the
|
|
52345
|
+
* articles that have at least one relation.
|
|
51993
52346
|
*/
|
|
51994
52347
|
var TableArticleRelations = observer(function () {
|
|
51995
52348
|
var _selectedCatalog$isoL;
|
|
@@ -52008,10 +52361,16 @@ var TableArticleRelations = observer(function () {
|
|
|
52008
52361
|
_useState2 = _slicedToArray(_useState, 2),
|
|
52009
52362
|
addAccessoryOpen = _useState2[0],
|
|
52010
52363
|
setAddAccessoryOpen = _useState2[1];
|
|
52364
|
+
var _useState3 = useState(false),
|
|
52365
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
52366
|
+
onlyWithRelations = _useState4[0],
|
|
52367
|
+
setOnlyWithRelations = _useState4[1];
|
|
52011
52368
|
var _useAdditionalItemRef = useAdditionalItemRefs(catalogId, selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id),
|
|
52012
52369
|
accessories = _useAdditionalItemRef.columns,
|
|
52013
|
-
addColumns = _useAdditionalItemRef.addColumns
|
|
52370
|
+
addColumns = _useAdditionalItemRef.addColumns,
|
|
52371
|
+
removeColumn = _useAdditionalItemRef.removeColumn;
|
|
52014
52372
|
useTools({
|
|
52373
|
+
mainInformationWindowCodex: INFO_CODEX,
|
|
52015
52374
|
catalog: selectedCatalog,
|
|
52016
52375
|
setSerie: setSelectedSerie,
|
|
52017
52376
|
setArticle: setSelectedItem,
|
|
@@ -52022,14 +52381,22 @@ var TableArticleRelations = observer(function () {
|
|
|
52022
52381
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
52023
52382
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
52024
52383
|
title: /*#__PURE__*/jsxs("div", {
|
|
52025
|
-
children: [/*#__PURE__*/
|
|
52026
|
-
children: t('backoffice.menu.items.label.IDMCatalogEditorTableArticleRelations')
|
|
52384
|
+
children: [/*#__PURE__*/jsxs(Space$1, {
|
|
52385
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableArticleRelations'), /*#__PURE__*/jsx(InformationButton, {
|
|
52386
|
+
codex: INFO_CODEX
|
|
52387
|
+
})]
|
|
52027
52388
|
}), /*#__PURE__*/jsxs(Space$1, {
|
|
52028
52389
|
style: {
|
|
52029
52390
|
"float": 'right'
|
|
52030
52391
|
},
|
|
52031
52392
|
align: "end",
|
|
52032
|
-
children: [/*#__PURE__*/jsx(
|
|
52393
|
+
children: [/*#__PURE__*/jsx(Checkbox$2, {
|
|
52394
|
+
checked: onlyWithRelations,
|
|
52395
|
+
onChange: function onChange(event) {
|
|
52396
|
+
return setOnlyWithRelations(event.target.checked);
|
|
52397
|
+
},
|
|
52398
|
+
children: t('backoffice.idmCatalog.articlerelations.label.onlyWithRelations')
|
|
52399
|
+
}), /*#__PURE__*/jsx(Button$1, {
|
|
52033
52400
|
icon: /*#__PURE__*/jsx(PlusOutlined$1, {}),
|
|
52034
52401
|
disabled: !catalogId || !(selectedSerie !== null && selectedSerie !== void 0 && selectedSerie._id),
|
|
52035
52402
|
onClick: function onClick() {
|
|
@@ -52047,12 +52414,16 @@ var TableArticleRelations = observer(function () {
|
|
|
52047
52414
|
idmService: apiConfig.idmService,
|
|
52048
52415
|
catalogId: catalogId,
|
|
52049
52416
|
serieId: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id,
|
|
52417
|
+
serieNo: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo,
|
|
52050
52418
|
isV4: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4,
|
|
52051
52419
|
languages: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds,
|
|
52052
|
-
accessories: accessories
|
|
52420
|
+
accessories: accessories,
|
|
52421
|
+
onlyWithRelations: onlyWithRelations,
|
|
52422
|
+
onRemoved: removeColumn
|
|
52053
52423
|
}), /*#__PURE__*/jsx(AddAccessoryModal, {
|
|
52054
52424
|
open: addAccessoryOpen,
|
|
52055
52425
|
catalogId: catalogId,
|
|
52426
|
+
serieId: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id,
|
|
52056
52427
|
language: language,
|
|
52057
52428
|
onCancel: function onCancel() {
|
|
52058
52429
|
return setAddAccessoryOpen(false);
|