@crystaldesign/diva-backoffice 24.13.0-beta.12 → 24.13.0-beta.14
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 +956 -338
- package/build/types/backoffice/src/Configuration.d.ts +3 -2
- package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssetMananger/utils.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Form/useFormData.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PackageSelector/index.d.ts +7 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PackageSelector/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelector/index.d.ts +12 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelector/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SpreadsheetWrapper/index.d.ts +4 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SpreadsheetWrapper/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/index.d.ts +9 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts +5 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/useModule.d.ts +7 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/useModule.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/useNavigation.d.ts +7 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/useNavigation.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/Table/StandardTable/useTableData.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TreeChart/BreadCrumbsTrigger/index.d.ts.map +1 -1
- package/build/types/backoffice/src/utils/parseServersideFilters.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -119,7 +119,7 @@ import QuestionOutlined from '@ant-design/icons/QuestionOutlined';
|
|
|
119
119
|
import { TransformWrapper, TransformComponent } from 'react-zoom-pan-pinch';
|
|
120
120
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
121
121
|
import Descriptions$1 from 'antd/es/descriptions';
|
|
122
|
-
import { Spreadsheet as Spreadsheet$
|
|
122
|
+
import { Spreadsheet as Spreadsheet$2 } from '@crystaldesign/spreadsheet';
|
|
123
123
|
import EditOutlined from '@ant-design/icons/lib/icons/EditOutlined';
|
|
124
124
|
import Checkbox$1 from 'antd/es/checkbox/Checkbox';
|
|
125
125
|
import Switch$1 from 'antd/es/switch';
|
|
@@ -146,8 +146,8 @@ import { ContentItemComponent } from '@crystaldesign/content-item';
|
|
|
146
146
|
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; } } }; }
|
|
147
147
|
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; } }
|
|
148
148
|
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; }
|
|
149
|
-
function ownKeys$
|
|
150
|
-
function _objectSpread$
|
|
149
|
+
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; }
|
|
150
|
+
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; }
|
|
151
151
|
var LOG$d = getLogger('Backoffice', 'ApplyMapping');
|
|
152
152
|
function applyMapping (_ref) {
|
|
153
153
|
var mappable = _ref.mappable,
|
|
@@ -168,10 +168,10 @@ function applyMapping (_ref) {
|
|
|
168
168
|
var newValue = {};
|
|
169
169
|
newValue[newKey] = valueToAdd;
|
|
170
170
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
|
171
|
-
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$
|
|
171
|
+
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$P(_objectSpread$P({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
|
172
172
|
return startValue;
|
|
173
173
|
}
|
|
174
|
-
if (newIdx == 1) return _objectSpread$
|
|
174
|
+
if (newIdx == 1) return _objectSpread$P(_objectSpread$P({}, startValue), newValue);
|
|
175
175
|
return _getTarget(idx + 1, keys, startValue, newValue);
|
|
176
176
|
};
|
|
177
177
|
returnValue = _getTarget(0, key.split('.'), returnValue, value);
|
|
@@ -356,6 +356,7 @@ function useFullTextSearch(filters) {
|
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
358
|
function parseFilter(filters, prefilter) {
|
|
359
|
+
var _prefilter, _prefilter2;
|
|
359
360
|
var ors = [];
|
|
360
361
|
var ands = [];
|
|
361
362
|
var res = '';
|
|
@@ -373,21 +374,23 @@ function parseFilter(filters, prefilter) {
|
|
|
373
374
|
ands.push([field, [values[i], values[i + 1]]]);
|
|
374
375
|
}
|
|
375
376
|
} else {
|
|
376
|
-
|
|
377
|
-
|
|
377
|
+
//filter[1][2]; // [field, [value, operator, or?]]
|
|
378
|
+
//The third value is the 'or'-flag, unless it is a 'in'-operator,
|
|
379
|
+
//then the array can contain more than 3 values and the last value is the 'in'-operator.
|
|
380
|
+
//The 'or'-flag is either a boolean, or a number. If it is a number it defines to which 'or'-group the filter belongs.
|
|
378
381
|
var inFilter = values[values.length - 1] === 'in';
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
} else {
|
|
387
|
-
while (ors.length <= index) {
|
|
382
|
+
var or = !inFilter ? values[2] : undefined;
|
|
383
|
+
var orIndex = typeof or === 'number' ? or : 0;
|
|
384
|
+
if (inFilter) {
|
|
385
|
+
var inValues = values.slice(0, values.length - 1);
|
|
386
|
+
ands.push([field, [inValues, 'in']]);
|
|
387
|
+
} else if (or) {
|
|
388
|
+
while (ors.length <= orIndex) {
|
|
388
389
|
ors.push([]);
|
|
389
390
|
}
|
|
390
|
-
ors[
|
|
391
|
+
ors[orIndex].push(filter);
|
|
392
|
+
} else {
|
|
393
|
+
ands.push(filter);
|
|
391
394
|
}
|
|
392
395
|
}
|
|
393
396
|
});
|
|
@@ -422,14 +425,18 @@ function parseFilter(filters, prefilter) {
|
|
|
422
425
|
return "{".concat(field, ",").concat(type, ",").concat(value, "}");
|
|
423
426
|
}).join(','));
|
|
424
427
|
}
|
|
425
|
-
|
|
426
|
-
|
|
428
|
+
|
|
429
|
+
//remove enclosing brackets so it can be added to the existing filter
|
|
430
|
+
if ((_prefilter = prefilter) !== null && _prefilter !== void 0 && _prefilter.startsWith('[') && (_prefilter2 = prefilter) !== null && _prefilter2 !== void 0 && _prefilter2.endsWith(']')) {
|
|
431
|
+
prefilter = prefilter.slice(1, -1);
|
|
427
432
|
}
|
|
428
|
-
if (prefilter) {
|
|
429
|
-
|
|
433
|
+
if (prefilter && res) {
|
|
434
|
+
res = res + ',' + prefilter;
|
|
435
|
+
} else if (prefilter) {
|
|
436
|
+
res = prefilter;
|
|
430
437
|
}
|
|
431
438
|
if (res) {
|
|
432
|
-
|
|
439
|
+
res = '[' + res + ']';
|
|
433
440
|
}
|
|
434
441
|
return res;
|
|
435
442
|
}
|
|
@@ -465,8 +472,8 @@ function getLeafColumns(columns) {
|
|
|
465
472
|
});
|
|
466
473
|
}
|
|
467
474
|
|
|
468
|
-
function ownKeys$
|
|
469
|
-
function _objectSpread$
|
|
475
|
+
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; }
|
|
476
|
+
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; }
|
|
470
477
|
var LOG$c = getLogger('Backoffice', 'ApiHandler');
|
|
471
478
|
var jp = require('jsonpath');
|
|
472
479
|
var _default$d = /*#__PURE__*/function () {
|
|
@@ -645,7 +652,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
645
652
|
_context2.next = 20;
|
|
646
653
|
return fetch(finalUrl, {
|
|
647
654
|
method: this._updateMethod,
|
|
648
|
-
headers: _objectSpread$
|
|
655
|
+
headers: _objectSpread$O(_objectSpread$O({}, jwt ? {
|
|
649
656
|
Authorization: 'Bearer ' + jwt
|
|
650
657
|
} : {}), {}, {
|
|
651
658
|
'Content-Type': 'application/json'
|
|
@@ -738,7 +745,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
738
745
|
rootStore: this._rootStore,
|
|
739
746
|
fallBackToParams: true
|
|
740
747
|
});
|
|
741
|
-
if (data) createData = _objectSpread$
|
|
748
|
+
if (data) createData = _objectSpread$O({}, data);
|
|
742
749
|
} else if (data !== undefined) {
|
|
743
750
|
createData = applyMapping({
|
|
744
751
|
mappable: data,
|
|
@@ -881,7 +888,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
881
888
|
_context6.next = 7;
|
|
882
889
|
return fetch((_url = url) === null || _url === void 0 ? void 0 : _url.toString(), {
|
|
883
890
|
method: isApi2 ? 'POST' : 'DELETE',
|
|
884
|
-
headers: _objectSpread$
|
|
891
|
+
headers: _objectSpread$O({}, jwt ? {
|
|
885
892
|
Authorization: 'Bearer ' + jwt
|
|
886
893
|
} : {})
|
|
887
894
|
}).then(/*#__PURE__*/function () {
|
|
@@ -999,7 +1006,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
999
1006
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1000
1007
|
case 2:
|
|
1001
1008
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
|
1002
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1009
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$O(_objectSpread$O({}, filterServerSide), {}, {
|
|
1003
1010
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1004
1011
|
baseUrl: this._readListUrl,
|
|
1005
1012
|
prefilter: prefilter
|
|
@@ -1019,7 +1026,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1019
1026
|
});
|
|
1020
1027
|
case 6:
|
|
1021
1028
|
response = _context8.sent;
|
|
1022
|
-
return _context8.abrupt("return", _objectSpread$
|
|
1029
|
+
return _context8.abrupt("return", _objectSpread$O(_objectSpread$O({}, response), {}, {
|
|
1023
1030
|
data: response.data.map(function (d) {
|
|
1024
1031
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
|
1025
1032
|
})
|
|
@@ -1043,7 +1050,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1043
1050
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1044
1051
|
}
|
|
1045
1052
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
|
1046
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1053
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$O(_objectSpread$O({}, filterServerSide), {}, {
|
|
1047
1054
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1048
1055
|
baseUrl: this._readListUrl,
|
|
1049
1056
|
prefilter: prefilter
|
|
@@ -1250,8 +1257,8 @@ var _default$c = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1250
1257
|
}]);
|
|
1251
1258
|
}(_default$d);
|
|
1252
1259
|
|
|
1253
|
-
function ownKeys$
|
|
1254
|
-
function _objectSpread$
|
|
1260
|
+
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; }
|
|
1261
|
+
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; }
|
|
1255
1262
|
function _callSuper$5(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1256
1263
|
function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
1257
1264
|
var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
@@ -1350,7 +1357,7 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1350
1357
|
_context2.next = 5;
|
|
1351
1358
|
return fetch(this._createUrl + '?ref=true', {
|
|
1352
1359
|
method: this._createMethod,
|
|
1353
|
-
headers: _objectSpread$
|
|
1360
|
+
headers: _objectSpread$N({}, jwt ? {
|
|
1354
1361
|
Authorization: 'Bearer ' + jwt
|
|
1355
1362
|
} : {}),
|
|
1356
1363
|
body: data
|
|
@@ -1728,8 +1735,8 @@ var _default$8 = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1728
1735
|
}]);
|
|
1729
1736
|
}(_default$d);
|
|
1730
1737
|
|
|
1731
|
-
function ownKeys$
|
|
1732
|
-
function _objectSpread$
|
|
1738
|
+
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; }
|
|
1739
|
+
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; }
|
|
1733
1740
|
var _default$7 = /*#__PURE__*/function () {
|
|
1734
1741
|
function _default(root) {
|
|
1735
1742
|
_classCallCheck(this, _default);
|
|
@@ -1765,7 +1772,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
|
1765
1772
|
var _i$permission;
|
|
1766
1773
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
|
1767
1774
|
});
|
|
1768
|
-
config = _objectSpread$
|
|
1775
|
+
config = _objectSpread$M(_objectSpread$M({}, config), {}, {
|
|
1769
1776
|
items: filteredItems
|
|
1770
1777
|
});
|
|
1771
1778
|
}
|
|
@@ -2533,6 +2540,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2533
2540
|
TableTaskStatusVersioning: {
|
|
2534
2541
|
type: 'Table',
|
|
2535
2542
|
canRefresh: true,
|
|
2543
|
+
autoRefresh: 60000,
|
|
2536
2544
|
title: t('backoffice.table.taskstatusversioning.title.taskstatusversioninglist'),
|
|
2537
2545
|
columns: [{
|
|
2538
2546
|
title: 'ID',
|
|
@@ -2698,6 +2706,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2698
2706
|
TableTaskStatusCustom: {
|
|
2699
2707
|
type: 'Table',
|
|
2700
2708
|
canRefresh: true,
|
|
2709
|
+
autoRefresh: 60000,
|
|
2701
2710
|
title: t('backoffice.table.taskstatusversioning.title.taskstatuscustom'),
|
|
2702
2711
|
columns: [{
|
|
2703
2712
|
title: 'ID',
|
|
@@ -2830,7 +2839,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2830
2839
|
},
|
|
2831
2840
|
apiInterface: {
|
|
2832
2841
|
read: {
|
|
2833
|
-
list: '${adminService}/taskStatus?filter=%5B%2B%5B%7BtaskType%2Ceq%2CSAP_XML_IMPORT%7D%2C%7BtaskType%2Ceq%2CSAP_DROPDOWNITEMS%7D%2C%7BtaskType%2Ceq%2CSAP_TEMPLATEARTICLES%7D%2C%7BtaskType%2Ceq%2CSAP_ARTICLE_IMPORT%7D%2C%7BtaskType%2Ceq%2CSAP_SUPPLIERS%7D%2C%7BtaskType%2Ceq%2CSAP_PRODUCTGROUPS%7D%2C%7BtaskType%2Ceq%2CSAP_AUSP%7D%2C%7BtaskType%2Ceq%2CPIM_SEND_CLASSIFICATION%7D%2C%7BtaskType%2Ceq%2CSEND_SAP_ARTICLES%7D%2C%7BtaskType%2Ceq%
|
|
2842
|
+
list: '${adminService}/taskStatus?filter=%5B%2B%5B%7BtaskType%2Ceq%2CSAP_XML_IMPORT%7D%2C%7BtaskType%2Ceq%2CSAP_DROPDOWNITEMS%7D%2C%7BtaskType%2Ceq%2CSAP_TEMPLATEARTICLES%7D%2C%7BtaskType%2Ceq%2CSAP_ARTICLE_IMPORT%7D%2C%7BtaskType%2Ceq%2CSAP_SUPPLIERS%7D%2C%7BtaskType%2Ceq%2CSAP_PRODUCTGROUPS%7D%2C%7BtaskType%2Ceq%2CSAP_AUSP%7D%2C%7BtaskType%2Ceq%2CPIM_SEND_CLASSIFICATION%7D%2C%7BtaskType%2Ceq%2CSEND_SAP_ARTICLES%7D%2C%7BtaskType%2Ceq%2CGET_PRODUCT_FEATURES_PIM%7D%5D%5D',
|
|
2834
2843
|
fields: true,
|
|
2835
2844
|
filterServerSide: true
|
|
2836
2845
|
}
|
|
@@ -2854,6 +2863,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2854
2863
|
TableTaskStatusCronJobs: {
|
|
2855
2864
|
type: 'Table',
|
|
2856
2865
|
canRefresh: true,
|
|
2866
|
+
autoRefresh: 60000,
|
|
2857
2867
|
title: t('backoffice.table.taskstatusversioning.title.taskstatusversioninglist'),
|
|
2858
2868
|
columns: [{
|
|
2859
2869
|
title: 'ID',
|
|
@@ -3011,6 +3021,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
3011
3021
|
TableTaskStatusOthers: {
|
|
3012
3022
|
type: 'Table',
|
|
3013
3023
|
canRefresh: true,
|
|
3024
|
+
autoRefresh: 60000,
|
|
3014
3025
|
title: t('backoffice.table.taskstatusversioning.title.taskstatusothers'),
|
|
3015
3026
|
columns: [{
|
|
3016
3027
|
title: 'ID',
|
|
@@ -3143,7 +3154,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
3143
3154
|
},
|
|
3144
3155
|
apiInterface: {
|
|
3145
3156
|
read: {
|
|
3146
|
-
list: '${adminService}/taskStatus?filter=%5B%7BtaskType%2Cne%2CSAP_XML_IMPORT%7D%2C%7BtaskType%2Cne%2CSAP_DROPDOWNITEMS%7D%2C%7BtaskType%2Cne%2CSAP_TEMPLATEARTICLES%7D%2C%7BtaskType%2Cne%2CSAP_ARTICLE_IMPORT%7D%2C%7BtaskType%2Cne%2CSAP_SUPPLIERS%7D%2C%7BtaskType%2Cne%2CSAP_PRODUCTGROUPS%7D%2C%7BtaskType%2Cne%2CSAP_AUSP%7D%2C%7BtaskType%2Cne%2CPIM_SEND_CLASSIFICATION%7D%2C%7BtaskType%2Cne%2CSEND_SAP_ARTICLES%7D%2C%7BtaskType%2Cne%2CCRON%7D%2C%7BtaskType%2Cne%2CRETAIL_VERSIONING%7D%2C%7BtaskType%2Cne%2CSUPPLIER_VERSIONING%7D%2C%7BtaskType%2Cne%2CBACKOFFICE_CE_EXPORT%7D%2C%7BtaskType%2Cne%2CBACKOFFICE_CE_IMPORT%7D%2C%7BtaskType%2Cne%
|
|
3157
|
+
list: '${adminService}/taskStatus?filter=%5B%7BtaskType%2Cne%2CSAP_XML_IMPORT%7D%2C%7BtaskType%2Cne%2CSAP_DROPDOWNITEMS%7D%2C%7BtaskType%2Cne%2CSAP_TEMPLATEARTICLES%7D%2C%7BtaskType%2Cne%2CSAP_ARTICLE_IMPORT%7D%2C%7BtaskType%2Cne%2CSAP_SUPPLIERS%7D%2C%7BtaskType%2Cne%2CSAP_PRODUCTGROUPS%7D%2C%7BtaskType%2Cne%2CSAP_AUSP%7D%2C%7BtaskType%2Cne%2CPIM_SEND_CLASSIFICATION%7D%2C%7BtaskType%2Cne%2CSEND_SAP_ARTICLES%7D%2C%7BtaskType%2Cne%2CCRON%7D%2C%7BtaskType%2Cne%2CRETAIL_VERSIONING%7D%2C%7BtaskType%2Cne%2CSUPPLIER_VERSIONING%7D%2C%7BtaskType%2Cne%2CBACKOFFICE_CE_EXPORT%7D%2C%7BtaskType%2Cne%2CBACKOFFICE_CE_IMPORT%7D%2C%7BtaskType%2Cne%2CGET_PRODUCT_FEATURES_PIM%7D%5D',
|
|
3147
3158
|
fields: true,
|
|
3148
3159
|
filterServerSide: true
|
|
3149
3160
|
}
|
|
@@ -4032,10 +4043,17 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
4032
4043
|
}],
|
|
4033
4044
|
apiInterface: {
|
|
4034
4045
|
read: {
|
|
4035
|
-
list: '${catalogService}/contentItems',
|
|
4046
|
+
list: '${catalogService}/contentItems?organizationId=${organizationId}',
|
|
4036
4047
|
filterServerSide: true
|
|
4037
4048
|
},
|
|
4038
4049
|
"delete": '${catalogService}/contentItems/${id}'
|
|
4050
|
+
},
|
|
4051
|
+
mapping: {
|
|
4052
|
+
type: 'query',
|
|
4053
|
+
map: [{
|
|
4054
|
+
globalValue: 'organizationId',
|
|
4055
|
+
targetField: 'organizationId'
|
|
4056
|
+
}]
|
|
4039
4057
|
}
|
|
4040
4058
|
},
|
|
4041
4059
|
TableApplicationTranslations: {
|
|
@@ -12348,6 +12366,9 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
12348
12366
|
},
|
|
12349
12367
|
IDMEnricherEditor: {
|
|
12350
12368
|
type: 'IDMEnricherEditor'
|
|
12369
|
+
},
|
|
12370
|
+
IDMCatalogEditor: {
|
|
12371
|
+
type: 'IDMCatalogEditor'
|
|
12351
12372
|
}
|
|
12352
12373
|
};
|
|
12353
12374
|
}
|
|
@@ -12581,8 +12602,8 @@ function getIcon(icon) {
|
|
|
12581
12602
|
return undefined;
|
|
12582
12603
|
}
|
|
12583
12604
|
|
|
12584
|
-
function ownKeys$
|
|
12585
|
-
function _objectSpread$
|
|
12605
|
+
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; }
|
|
12606
|
+
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; }
|
|
12586
12607
|
var _default$6 = /*#__PURE__*/function () {
|
|
12587
12608
|
function _default(root) {
|
|
12588
12609
|
_classCallCheck(this, _default);
|
|
@@ -12714,7 +12735,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
12714
12735
|
if (index >= 0) {
|
|
12715
12736
|
this._additionalMenuElements[index] = {
|
|
12716
12737
|
key: key,
|
|
12717
|
-
element: _objectSpread$
|
|
12738
|
+
element: _objectSpread$L(_objectSpread$L({}, this._additionalMenuElements[index].element), {}, {
|
|
12718
12739
|
items: items,
|
|
12719
12740
|
selected: selected
|
|
12720
12741
|
})
|
|
@@ -12765,7 +12786,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
12765
12786
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
|
12766
12787
|
this.root.navigate('/' + path);
|
|
12767
12788
|
}
|
|
12768
|
-
this._menuElement1 = _objectSpread$
|
|
12789
|
+
this._menuElement1 = _objectSpread$L(_objectSpread$L({}, this.menuElement1), {}, {
|
|
12769
12790
|
selected: this._selectedMenuKeys[0]
|
|
12770
12791
|
});
|
|
12771
12792
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
|
@@ -13009,7 +13030,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
13009
13030
|
return items.filter(function (item) {
|
|
13010
13031
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
|
13011
13032
|
}).map(function (item) {
|
|
13012
|
-
return _objectSpread$
|
|
13033
|
+
return _objectSpread$L(_objectSpread$L({}, item), {}, {
|
|
13013
13034
|
items: item.items ? _this4.filterMenuByPermission(hasPermission, item.items) : undefined,
|
|
13014
13035
|
subMenu: item.subMenu ? _this4.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
|
13015
13036
|
});
|
|
@@ -13148,12 +13169,26 @@ var menu = [{
|
|
|
13148
13169
|
}
|
|
13149
13170
|
}]
|
|
13150
13171
|
}, {
|
|
13151
|
-
id: '
|
|
13152
|
-
path: '
|
|
13153
|
-
haSubRoutes: true,
|
|
13172
|
+
id: 'IDM',
|
|
13173
|
+
path: 'idm',
|
|
13154
13174
|
label: 'backoffice.menu.items.label.IDMEnricherEditor',
|
|
13155
13175
|
permission: 'backoffice_ce_idmee',
|
|
13156
|
-
icon: 'OrderedListOutlined'
|
|
13176
|
+
icon: 'OrderedListOutlined',
|
|
13177
|
+
items: [{
|
|
13178
|
+
id: 'IDMCatalogEditor',
|
|
13179
|
+
path: 'catalogs',
|
|
13180
|
+
label: 'backoffice.menu.items.label.IDMCatalogs',
|
|
13181
|
+
permission: 'idm_catalogs',
|
|
13182
|
+
icon: 'HistoryOutlined',
|
|
13183
|
+
haSubRoutes: true
|
|
13184
|
+
}, {
|
|
13185
|
+
id: 'IDMEnricherEditor',
|
|
13186
|
+
path: 'packages',
|
|
13187
|
+
label: 'backoffice.menu.items.label.EnricherPackages',
|
|
13188
|
+
permission: 'enricher_packages',
|
|
13189
|
+
icon: 'HistoryOutlined',
|
|
13190
|
+
haSubRoutes: true
|
|
13191
|
+
}]
|
|
13157
13192
|
}]
|
|
13158
13193
|
}, {
|
|
13159
13194
|
id: 'Adminarea',
|
|
@@ -14313,20 +14348,24 @@ function fetchFileData(_x) {
|
|
|
14313
14348
|
}
|
|
14314
14349
|
function _fetchFileData() {
|
|
14315
14350
|
_fetchFileData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(url) {
|
|
14351
|
+
var _response$url;
|
|
14352
|
+
var response, blob, name;
|
|
14316
14353
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
14317
14354
|
while (1) switch (_context.prev = _context.next) {
|
|
14318
14355
|
case 0:
|
|
14319
14356
|
_context.next = 2;
|
|
14320
|
-
return fetch(url)
|
|
14321
|
-
return response.blob();
|
|
14322
|
-
}).then(function (blob) {
|
|
14323
|
-
return new File([blob], nameFromUrl(url), {
|
|
14324
|
-
type: blob.type
|
|
14325
|
-
});
|
|
14326
|
-
});
|
|
14357
|
+
return fetch(url);
|
|
14327
14358
|
case 2:
|
|
14328
|
-
|
|
14329
|
-
|
|
14359
|
+
response = _context.sent;
|
|
14360
|
+
_context.next = 5;
|
|
14361
|
+
return response.blob();
|
|
14362
|
+
case 5:
|
|
14363
|
+
blob = _context.sent;
|
|
14364
|
+
name = nameFromUrl((_response$url = response.url) !== null && _response$url !== void 0 ? _response$url : url);
|
|
14365
|
+
return _context.abrupt("return", new File([blob], name, {
|
|
14366
|
+
type: blob.type
|
|
14367
|
+
}));
|
|
14368
|
+
case 8:
|
|
14330
14369
|
case "end":
|
|
14331
14370
|
return _context.stop();
|
|
14332
14371
|
}
|
|
@@ -14721,8 +14760,8 @@ var MediaItem = /*#__PURE__*/function () {
|
|
|
14721
14760
|
}]);
|
|
14722
14761
|
}();
|
|
14723
14762
|
|
|
14724
|
-
function ownKeys$
|
|
14725
|
-
function _objectSpread$
|
|
14763
|
+
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; }
|
|
14764
|
+
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; }
|
|
14726
14765
|
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; } } }; }
|
|
14727
14766
|
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; } }
|
|
14728
14767
|
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; }
|
|
@@ -14844,7 +14883,7 @@ function useFormData (_ref) {
|
|
|
14844
14883
|
multipleEditingData = inboundData;
|
|
14845
14884
|
}
|
|
14846
14885
|
return {
|
|
14847
|
-
loadedData: _onLoadFields(_objectSpread$
|
|
14886
|
+
loadedData: _onLoadFields(_objectSpread$K({}, dt)),
|
|
14848
14887
|
multipleEditingData: multipleEditingData
|
|
14849
14888
|
};
|
|
14850
14889
|
}, [inboundData, selectedItemsIndex]),
|
|
@@ -14881,7 +14920,7 @@ function useFormData (_ref) {
|
|
|
14881
14920
|
setFieldErrors = _useState20[1];
|
|
14882
14921
|
useEffect(function () {
|
|
14883
14922
|
var _loadedData$_id2;
|
|
14884
|
-
setState(_objectSpread$
|
|
14923
|
+
setState(_objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
14885
14924
|
data: loadedData,
|
|
14886
14925
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
|
14887
14926
|
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),
|
|
@@ -14983,7 +15022,7 @@ function useFormData (_ref) {
|
|
|
14983
15022
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
14984
15023
|
while (1) switch (_context2.prev = _context2.next) {
|
|
14985
15024
|
case 0:
|
|
14986
|
-
newData = merge(_objectSpread$
|
|
15025
|
+
newData = merge(_objectSpread$K({}, state.data), values);
|
|
14987
15026
|
if (!skipApi) {
|
|
14988
15027
|
_context2.next = 3;
|
|
14989
15028
|
break;
|
|
@@ -14993,7 +15032,7 @@ function useFormData (_ref) {
|
|
|
14993
15032
|
root.actions.toggleLoading('saving_form');
|
|
14994
15033
|
_context2.prev = 4;
|
|
14995
15034
|
_context2.next = 7;
|
|
14996
|
-
return setDynamicFields(_objectSpread$
|
|
15035
|
+
return setDynamicFields(_objectSpread$K({}, state.data), newData);
|
|
14997
15036
|
case 7:
|
|
14998
15037
|
newData = _context2.sent;
|
|
14999
15038
|
_context2.next = 10;
|
|
@@ -15008,7 +15047,7 @@ function useFormData (_ref) {
|
|
|
15008
15047
|
root.actions.toggleLoading('saving_form');
|
|
15009
15048
|
throw _context2.t0;
|
|
15010
15049
|
case 17:
|
|
15011
|
-
setState(_objectSpread$
|
|
15050
|
+
setState(_objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
15012
15051
|
loading: true
|
|
15013
15052
|
}));
|
|
15014
15053
|
finalData = state.data;
|
|
@@ -15061,14 +15100,14 @@ function useFormData (_ref) {
|
|
|
15061
15100
|
_context2.next = 47;
|
|
15062
15101
|
break;
|
|
15063
15102
|
}
|
|
15064
|
-
setFieldErrors(_objectSpread$
|
|
15103
|
+
setFieldErrors(_objectSpread$K(_objectSpread$K({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
|
15065
15104
|
return _context2.abrupt("return", undefined);
|
|
15066
15105
|
case 47:
|
|
15067
15106
|
throw _context2.t1;
|
|
15068
15107
|
case 48:
|
|
15069
15108
|
_context2.prev = 48;
|
|
15070
15109
|
root.actions.toggleLoading('saving_form');
|
|
15071
|
-
setState(_objectSpread$
|
|
15110
|
+
setState(_objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
15072
15111
|
data: finalData,
|
|
15073
15112
|
loading: false
|
|
15074
15113
|
}));
|
|
@@ -15098,7 +15137,7 @@ function useFormData (_ref) {
|
|
|
15098
15137
|
}
|
|
15099
15138
|
var updateHiddenRequiredDisabled = function updateHiddenRequiredDisabled(data, changedFields) {
|
|
15100
15139
|
if (!(selectedItems !== null && selectedItems !== void 0 && selectedItems.length)) return;
|
|
15101
|
-
var wholeData = Object.assign(_objectSpread$
|
|
15140
|
+
var wholeData = Object.assign(_objectSpread$K({}, state.data), _objectSpread$K({}, changedFields !== null && changedFields !== void 0 ? changedFields : data));
|
|
15102
15141
|
var newState = getHiddenRequredDisabled(wholeData, selectedItems);
|
|
15103
15142
|
if (JSON.stringify(newState) !== JSON.stringify(hiddenRequiredDisabled)) {
|
|
15104
15143
|
setHiddenRequiredDisabled(newState);
|
|
@@ -15111,14 +15150,14 @@ function useFormData (_ref) {
|
|
|
15111
15150
|
}
|
|
15112
15151
|
};
|
|
15113
15152
|
var onInputChanged = function onInputChanged(id, value, d) {
|
|
15114
|
-
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$
|
|
15153
|
+
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$K({}, state.data), state.form.getFieldsValue(), mergeCustomizer);
|
|
15115
15154
|
if (id) {
|
|
15116
15155
|
setFieldInObject(id, data, value);
|
|
15117
|
-
var newFieldErrors = _objectSpread$
|
|
15156
|
+
var newFieldErrors = _objectSpread$K({}, fieldErrors);
|
|
15118
15157
|
delete newFieldErrors[id.toString()];
|
|
15119
15158
|
setFieldErrors(newFieldErrors);
|
|
15120
15159
|
}
|
|
15121
|
-
setState(_objectSpread$
|
|
15160
|
+
setState(_objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
15122
15161
|
data: data
|
|
15123
15162
|
}));
|
|
15124
15163
|
return data;
|
|
@@ -15150,12 +15189,12 @@ function useFormData (_ref) {
|
|
|
15150
15189
|
var _value$value;
|
|
15151
15190
|
if (((_value$value = value === null || value === void 0 ? void 0 : value.value) !== null && _value$value !== void 0 ? _value$value : value) === val) {
|
|
15152
15191
|
if (configuration.itemSelectorReset) {
|
|
15153
|
-
setState(_objectSpread$
|
|
15192
|
+
setState(_objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
15154
15193
|
data: _defineProperty({}, name, val)
|
|
15155
15194
|
}));
|
|
15156
15195
|
} else {
|
|
15157
|
-
setState(_objectSpread$
|
|
15158
|
-
data: _objectSpread$
|
|
15196
|
+
setState(_objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
15197
|
+
data: _objectSpread$K(_objectSpread$K({}, state.data), {}, _defineProperty({}, name, val))
|
|
15159
15198
|
}));
|
|
15160
15199
|
}
|
|
15161
15200
|
setSelectedItemsIndex(idx);
|
|
@@ -15165,12 +15204,12 @@ function useFormData (_ref) {
|
|
|
15165
15204
|
var val = _ref6.value;
|
|
15166
15205
|
if (value === val) {
|
|
15167
15206
|
if (configuration.itemSelectorReset) {
|
|
15168
|
-
setState(_objectSpread$
|
|
15207
|
+
setState(_objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
15169
15208
|
data: _defineProperty({}, name, val)
|
|
15170
15209
|
}));
|
|
15171
15210
|
} else {
|
|
15172
|
-
setState(_objectSpread$
|
|
15173
|
-
data: _objectSpread$
|
|
15211
|
+
setState(_objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
15212
|
+
data: _objectSpread$K(_objectSpread$K({}, state.data), {}, _defineProperty({}, name, val))
|
|
15174
15213
|
}));
|
|
15175
15214
|
}
|
|
15176
15215
|
setSelectedItemsIndex(idx);
|
|
@@ -15450,7 +15489,7 @@ function useFormData (_ref) {
|
|
|
15450
15489
|
var tools = [];
|
|
15451
15490
|
for (var i = 0; i < configuration.tools.length; i++) {
|
|
15452
15491
|
var tool = configuration.tools[i];
|
|
15453
|
-
tools.push(_objectSpread$
|
|
15492
|
+
tools.push(_objectSpread$K({
|
|
15454
15493
|
parameters: {
|
|
15455
15494
|
data: state.data
|
|
15456
15495
|
},
|
|
@@ -15487,7 +15526,7 @@ function useFormData (_ref) {
|
|
|
15487
15526
|
break;
|
|
15488
15527
|
}
|
|
15489
15528
|
media = getData(itemName, data);
|
|
15490
|
-
if (media)
|
|
15529
|
+
if (media) pushRemovedMediaItem(media);
|
|
15491
15530
|
_context3.next = 26;
|
|
15492
15531
|
break;
|
|
15493
15532
|
case 11:
|
|
@@ -15546,13 +15585,13 @@ function useFormData (_ref) {
|
|
|
15546
15585
|
return _ref7.apply(this, arguments);
|
|
15547
15586
|
};
|
|
15548
15587
|
}();
|
|
15549
|
-
var
|
|
15588
|
+
var pushRemovedMediaItem = function pushRemovedMediaItem(media) {
|
|
15550
15589
|
if (removedMedias.find(function (m) {
|
|
15551
15590
|
return m.itemRefId === media.itemRefId;
|
|
15552
15591
|
})) return;
|
|
15553
15592
|
setRemovedMedias([].concat(_toConsumableArray(removedMedias), [media]));
|
|
15554
15593
|
};
|
|
15555
|
-
return _objectSpread$
|
|
15594
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
15556
15595
|
getIsHidden: getIsHidden,
|
|
15557
15596
|
setUsedPreset: setUsedPreset,
|
|
15558
15597
|
configuration: configuration,
|
|
@@ -15576,7 +15615,7 @@ function useFormData (_ref) {
|
|
|
15576
15615
|
progressBarOpen: progressBarOpen,
|
|
15577
15616
|
progressBarPercentage: progressBarPercentage,
|
|
15578
15617
|
keepRemovedMediaItem: _keepRemovedMediaItem,
|
|
15579
|
-
|
|
15618
|
+
pushRemovedMediaItem: pushRemovedMediaItem
|
|
15580
15619
|
});
|
|
15581
15620
|
}
|
|
15582
15621
|
function setFieldInObject(id, data, value) {
|
|
@@ -15669,8 +15708,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
|
15669
15708
|
};
|
|
15670
15709
|
|
|
15671
15710
|
var _excluded$3 = ["key", "name"];
|
|
15672
|
-
function ownKeys$
|
|
15673
|
-
function _objectSpread$
|
|
15711
|
+
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; }
|
|
15712
|
+
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; }
|
|
15674
15713
|
var FormList$2 = function FormList(_ref) {
|
|
15675
15714
|
var _item$initialValue;
|
|
15676
15715
|
var value = _ref.value,
|
|
@@ -15723,7 +15762,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
15723
15762
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
|
15724
15763
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
|
15725
15764
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
|
15726
|
-
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$
|
|
15765
|
+
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$J(_objectSpread$J({}, restField), {}, {
|
|
15727
15766
|
id: n.join(),
|
|
15728
15767
|
key: n.join(),
|
|
15729
15768
|
name: n,
|
|
@@ -15735,7 +15774,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
15735
15774
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
15736
15775
|
help: state.fieldErrors[n.toString()],
|
|
15737
15776
|
hidden: hidden
|
|
15738
|
-
}), getElement(_objectSpread$
|
|
15777
|
+
}), getElement(_objectSpread$J(_objectSpread$J({}, i), {}, {
|
|
15739
15778
|
name: n
|
|
15740
15779
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
|
15741
15780
|
})
|
|
@@ -15968,8 +16007,8 @@ var buttonGroup = "button-group-GYt-T";
|
|
|
15968
16007
|
var css_248z$n = ".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";
|
|
15969
16008
|
styleInject(css_248z$n);
|
|
15970
16009
|
|
|
15971
|
-
function ownKeys$
|
|
15972
|
-
function _objectSpread$
|
|
16010
|
+
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; }
|
|
16011
|
+
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; }
|
|
15973
16012
|
var SubTitle = function SubTitle(_ref) {
|
|
15974
16013
|
var _item$orientation, _item$buttonIds;
|
|
15975
16014
|
var item = _ref.item,
|
|
@@ -15978,7 +16017,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
|
15978
16017
|
t = _useTranslation.t;
|
|
15979
16018
|
return /*#__PURE__*/jsx(Divider, {
|
|
15980
16019
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
|
15981
|
-
style: _objectSpread$
|
|
16020
|
+
style: _objectSpread$I({}, item.style),
|
|
15982
16021
|
children: /*#__PURE__*/jsxs("div", {
|
|
15983
16022
|
className: wrapper$5,
|
|
15984
16023
|
children: [Array.isArray(item.name) ? t(item.name[0].toString()) : t(item.name), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
|
|
@@ -16228,8 +16267,8 @@ var css_248z$m = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\
|
|
|
16228
16267
|
styleInject(css_248z$m);
|
|
16229
16268
|
|
|
16230
16269
|
var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title"];
|
|
16231
|
-
function ownKeys$
|
|
16232
|
-
function _objectSpread$
|
|
16270
|
+
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; }
|
|
16271
|
+
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; }
|
|
16233
16272
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
16234
16273
|
var apiInterface = _ref.apiInterface,
|
|
16235
16274
|
selectMapping = _ref.selectMapping,
|
|
@@ -16254,7 +16293,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
|
16254
16293
|
return /*#__PURE__*/jsxs("div", {
|
|
16255
16294
|
ref: ref,
|
|
16256
16295
|
className: classnames(title ? wrapper$4 : undefined),
|
|
16257
|
-
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$
|
|
16296
|
+
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$H(_objectSpread$H({}, selectProps), {}, {
|
|
16258
16297
|
showSearch: search,
|
|
16259
16298
|
loading: state.loading,
|
|
16260
16299
|
options: state.options,
|
|
@@ -16871,8 +16910,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
|
16871
16910
|
}]);
|
|
16872
16911
|
}(_default$d);
|
|
16873
16912
|
|
|
16874
|
-
function ownKeys$
|
|
16875
|
-
function _objectSpread$
|
|
16913
|
+
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; }
|
|
16914
|
+
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; }
|
|
16876
16915
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
|
16877
16916
|
function useSelectClientRelationCatalog (_ref) {
|
|
16878
16917
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
|
@@ -17041,7 +17080,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
|
17041
17080
|
case 22:
|
|
17042
17081
|
supplierData = _context2.sent;
|
|
17043
17082
|
case 23:
|
|
17044
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
|
17083
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$G(_objectSpread$G({}, _selectedSupplier), {}, {
|
|
17045
17084
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
|
17046
17085
|
}), supplierData);
|
|
17047
17086
|
if (catalogId && catalogList.find(function (c) {
|
|
@@ -17107,7 +17146,7 @@ var customSelect = "custom-select-ESUJX";
|
|
|
17107
17146
|
var customSelectOption = "custom-select-option-dUA7N";
|
|
17108
17147
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
|
17109
17148
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
|
17110
|
-
var css_248z$l = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N {\n margin: 0px 12px;\n padding:
|
|
17149
|
+
var css_248z$l = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N.ant-select-item {\n margin: 0px 12px;\n padding: 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.custom-select-option-dUA7N .ant-select-item-option-content {\n display: flex;\n align-items: center;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 30px;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
|
|
17111
17150
|
styleInject(css_248z$l);
|
|
17112
17151
|
|
|
17113
17152
|
var Selector = function Selector(_ref) {
|
|
@@ -17262,8 +17301,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
|
17262
17301
|
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; } } }; }
|
|
17263
17302
|
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; } }
|
|
17264
17303
|
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; }
|
|
17265
|
-
function ownKeys$
|
|
17266
|
-
function _objectSpread$
|
|
17304
|
+
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; }
|
|
17305
|
+
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; }
|
|
17267
17306
|
function useSelectData (_ref) {
|
|
17268
17307
|
var data = _ref.data,
|
|
17269
17308
|
onChange = _ref.onChange,
|
|
@@ -17436,7 +17475,7 @@ function useSelectData (_ref) {
|
|
|
17436
17475
|
setFetching(true);
|
|
17437
17476
|
serverSideParams = {
|
|
17438
17477
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.searchField.reduce(function (filter, field) {
|
|
17439
|
-
return _objectSpread$
|
|
17478
|
+
return _objectSpread$F(_objectSpread$F({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
|
17440
17479
|
}, {}) : {
|
|
17441
17480
|
_id: [value, 'contains']
|
|
17442
17481
|
},
|
|
@@ -17726,8 +17765,8 @@ var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
|
|
17726
17765
|
var css_248z$j = ".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";
|
|
17727
17766
|
styleInject(css_248z$j);
|
|
17728
17767
|
|
|
17729
|
-
function ownKeys$
|
|
17730
|
-
function _objectSpread$
|
|
17768
|
+
function ownKeys$E(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; }
|
|
17769
|
+
function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17731
17770
|
var LOG$8 = getLogger('Backoffice', 'Translation Form');
|
|
17732
17771
|
function useTranslationHook (item, state) {
|
|
17733
17772
|
var root = useStore();
|
|
@@ -17860,7 +17899,7 @@ function useTranslationHook (item, state) {
|
|
|
17860
17899
|
case 0:
|
|
17861
17900
|
_context2.next = 2;
|
|
17862
17901
|
return apiHandler.create({
|
|
17863
|
-
locales: _objectSpread$
|
|
17902
|
+
locales: _objectSpread$E({
|
|
17864
17903
|
de: {},
|
|
17865
17904
|
it: {},
|
|
17866
17905
|
fr: {},
|
|
@@ -17909,8 +17948,8 @@ function useTranslationHook (item, state) {
|
|
|
17909
17948
|
};
|
|
17910
17949
|
}
|
|
17911
17950
|
|
|
17912
|
-
function ownKeys$
|
|
17913
|
-
function _objectSpread$
|
|
17951
|
+
function ownKeys$D(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; }
|
|
17952
|
+
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17914
17953
|
var Translation = function Translation(_ref) {
|
|
17915
17954
|
var item = _ref.item,
|
|
17916
17955
|
state = _ref.state,
|
|
@@ -17960,7 +17999,7 @@ var Translation = function Translation(_ref) {
|
|
|
17960
17999
|
var hidden = state.getIsHidden(i, data);
|
|
17961
18000
|
var newAbsoluteName = absoluteName !== '' ? [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n)) : n;
|
|
17962
18001
|
return /*#__PURE__*/jsx(React.Fragment, {
|
|
17963
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
|
18002
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$D(_objectSpread$D({}, i), {}, {
|
|
17964
18003
|
name: n
|
|
17965
18004
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang) : /*#__PURE__*/jsx(Form$1.Item, {
|
|
17966
18005
|
id: idx.toString(),
|
|
@@ -17973,7 +18012,7 @@ var Translation = function Translation(_ref) {
|
|
|
17973
18012
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
17974
18013
|
help: state.fieldErrors[n.toString()],
|
|
17975
18014
|
hidden: hidden,
|
|
17976
|
-
children: getElement(_objectSpread$
|
|
18015
|
+
children: getElement(_objectSpread$D(_objectSpread$D({}, i), {}, {
|
|
17977
18016
|
name: n
|
|
17978
18017
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
|
17979
18018
|
})
|
|
@@ -18041,24 +18080,24 @@ function FileInput(_ref3) {
|
|
|
18041
18080
|
},
|
|
18042
18081
|
onPressEnter: function onPressEnter(e) {
|
|
18043
18082
|
e.stopPropagation();
|
|
18044
|
-
value ? onEnter(value) : undefined;
|
|
18083
|
+
value ? onEnter(value, true) : undefined;
|
|
18045
18084
|
},
|
|
18046
18085
|
allowClear: true
|
|
18047
18086
|
}), /*#__PURE__*/jsx(Dropdown.Button, {
|
|
18048
18087
|
icon: /*#__PURE__*/jsx(DownOutlined, {}),
|
|
18088
|
+
onClick: function onClick() {
|
|
18089
|
+
return onEnter(value, true);
|
|
18090
|
+
},
|
|
18049
18091
|
menu: {
|
|
18050
18092
|
items: [{
|
|
18051
18093
|
key: 'use',
|
|
18052
|
-
label: t('backoffice.mediaupload.
|
|
18094
|
+
label: t('backoffice.mediaupload.use'),
|
|
18053
18095
|
onClick: function onClick() {
|
|
18054
18096
|
onEnter(value);
|
|
18055
18097
|
}
|
|
18056
|
-
}]
|
|
18057
|
-
onClick: function onClick() {
|
|
18058
|
-
return onEnter(value, true);
|
|
18059
|
-
}
|
|
18098
|
+
}]
|
|
18060
18099
|
},
|
|
18061
|
-
children: t('backoffice.mediaupload.
|
|
18100
|
+
children: t('backoffice.mediaupload.upload')
|
|
18062
18101
|
})]
|
|
18063
18102
|
}), /*#__PURE__*/jsx(Button, {
|
|
18064
18103
|
type: "link",
|
|
@@ -18254,7 +18293,7 @@ function Media (_ref) {
|
|
|
18254
18293
|
if (item.mediaItemRefField) {
|
|
18255
18294
|
state.onInputChanged(mediaItemRefIdPath, undefined, newData);
|
|
18256
18295
|
}
|
|
18257
|
-
if (media) state.
|
|
18296
|
+
if (media) state.pushRemovedMediaItem(media);
|
|
18258
18297
|
};
|
|
18259
18298
|
var onError = function onError(e) {
|
|
18260
18299
|
onRemove();
|
|
@@ -18276,8 +18315,8 @@ function Media (_ref) {
|
|
|
18276
18315
|
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; } } }; }
|
|
18277
18316
|
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; } }
|
|
18278
18317
|
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; }
|
|
18279
|
-
function ownKeys$
|
|
18280
|
-
function _objectSpread$
|
|
18318
|
+
function ownKeys$C(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; }
|
|
18319
|
+
function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18281
18320
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName) {
|
|
18282
18321
|
var _isReadonly, _state$hiddenRequired;
|
|
18283
18322
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
|
@@ -18311,7 +18350,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
18311
18350
|
}
|
|
18312
18351
|
});
|
|
18313
18352
|
case 'selectSimple':
|
|
18314
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
18353
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$C(_objectSpread$C({}, item), {}, {
|
|
18315
18354
|
disabled: disabled,
|
|
18316
18355
|
onChange: function onChange(value) {
|
|
18317
18356
|
_onChange(absoluteName, value);
|
|
@@ -18515,7 +18554,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
18515
18554
|
value: item.value,
|
|
18516
18555
|
options: item.options.map(function (o) {
|
|
18517
18556
|
var _o$disabled;
|
|
18518
|
-
return _objectSpread$
|
|
18557
|
+
return _objectSpread$C(_objectSpread$C({}, o), {}, {
|
|
18519
18558
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
|
|
18520
18559
|
});
|
|
18521
18560
|
}),
|
|
@@ -18536,7 +18575,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
18536
18575
|
},
|
|
18537
18576
|
icon: item.icon,
|
|
18538
18577
|
callback: function callback(data) {
|
|
18539
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
|
18578
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$C(_objectSpread$C({}, state.data), data));
|
|
18540
18579
|
}
|
|
18541
18580
|
});
|
|
18542
18581
|
case 'media':
|
|
@@ -18553,7 +18592,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
18553
18592
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
18554
18593
|
var _useTranslation = useTranslation(),
|
|
18555
18594
|
t = _useTranslation.t;
|
|
18556
|
-
return /*#__PURE__*/jsx(Input, _objectSpread$
|
|
18595
|
+
return /*#__PURE__*/jsx(Input, _objectSpread$C(_objectSpread$C({}, props), {}, {
|
|
18557
18596
|
ref: ref,
|
|
18558
18597
|
disabled: true,
|
|
18559
18598
|
value: t(props.translationPrefix + '.' + props.value)
|
|
@@ -18572,8 +18611,8 @@ function isReadonly(item, data) {
|
|
|
18572
18611
|
return false;
|
|
18573
18612
|
}
|
|
18574
18613
|
|
|
18575
|
-
function ownKeys$
|
|
18576
|
-
function _objectSpread$
|
|
18614
|
+
function ownKeys$B(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; }
|
|
18615
|
+
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18577
18616
|
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; } } }; }
|
|
18578
18617
|
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; } }
|
|
18579
18618
|
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; }
|
|
@@ -18623,13 +18662,13 @@ var Presets = function Presets(_ref) {
|
|
|
18623
18662
|
} finally {
|
|
18624
18663
|
_iterator.f();
|
|
18625
18664
|
}
|
|
18626
|
-
var data = _objectSpread$
|
|
18665
|
+
var data = _objectSpread$B(_objectSpread$B({}, form.getFieldsValue(names)), {}, {
|
|
18627
18666
|
newPresetName: newPresetName
|
|
18628
18667
|
});
|
|
18629
18668
|
data.dpi = parseInt(data.dpi);
|
|
18630
18669
|
data.organization = root.getGlobalValue('organizationId');
|
|
18631
18670
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
|
18632
|
-
var dt = _objectSpread$
|
|
18671
|
+
var dt = _objectSpread$B(_objectSpread$B({}, form.getFieldsValue(names)), {}, {
|
|
18633
18672
|
name: newPresetName
|
|
18634
18673
|
});
|
|
18635
18674
|
setPresets({
|
|
@@ -18971,8 +19010,8 @@ function getLabel(item, t) {
|
|
|
18971
19010
|
}
|
|
18972
19011
|
var Form = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
|
18973
19012
|
|
|
18974
|
-
function ownKeys$
|
|
18975
|
-
function _objectSpread$
|
|
19013
|
+
function ownKeys$A(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; }
|
|
19014
|
+
function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18976
19015
|
function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(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; } } }; }
|
|
18977
19016
|
function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(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$e(r, a) : void 0; } }
|
|
18978
19017
|
function _arrayLikeToArray$e(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; }
|
|
@@ -19174,7 +19213,7 @@ function useRoleSelectorData (_ref) {
|
|
|
19174
19213
|
roles.forEach(function (r) {
|
|
19175
19214
|
//check if after the changes the role is selected
|
|
19176
19215
|
if (value.includes(r._id)) {
|
|
19177
|
-
var newValue = _objectSpread$
|
|
19216
|
+
var newValue = _objectSpread$A(_objectSpread$A({}, r), {}, {
|
|
19178
19217
|
selected: true
|
|
19179
19218
|
});
|
|
19180
19219
|
//add it to the new list as selected role
|
|
@@ -19210,7 +19249,7 @@ function useRoleSelectorData (_ref) {
|
|
|
19210
19249
|
}
|
|
19211
19250
|
}
|
|
19212
19251
|
} else {
|
|
19213
|
-
var _newValue = _objectSpread$
|
|
19252
|
+
var _newValue = _objectSpread$A(_objectSpread$A({}, r), {}, {
|
|
19214
19253
|
selected: false
|
|
19215
19254
|
});
|
|
19216
19255
|
//add it to the new list as unselected role
|
|
@@ -19414,7 +19453,7 @@ function _updateRoles() {
|
|
|
19414
19453
|
userRole = userRoles.find(function (r) {
|
|
19415
19454
|
return r._id == role._id;
|
|
19416
19455
|
});
|
|
19417
|
-
newRole = _objectSpread$
|
|
19456
|
+
newRole = _objectSpread$A({}, role);
|
|
19418
19457
|
if (userRole) {
|
|
19419
19458
|
newRole.selected = true;
|
|
19420
19459
|
newRole.inherited = userRole.inherited;
|
|
@@ -19634,7 +19673,7 @@ function _fetchOptions() {
|
|
|
19634
19673
|
case 4:
|
|
19635
19674
|
result = _context11.sent;
|
|
19636
19675
|
options = result.data.map(function (d) {
|
|
19637
|
-
return _objectSpread$
|
|
19676
|
+
return _objectSpread$A(_objectSpread$A({}, d), {}, {
|
|
19638
19677
|
label: d.displayName,
|
|
19639
19678
|
value: d._id,
|
|
19640
19679
|
isLeaf: !d.hasChildren
|
|
@@ -19736,8 +19775,8 @@ var parent = "parent-NZJ3S";
|
|
|
19736
19775
|
var css_248z$i = ".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 height: 100%;\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: auto;\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.parent-scroll-GmaL9 .ant-spin-container {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component__outerdiv {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component {\n height: 100% !important;\n}\n";
|
|
19737
19776
|
styleInject(css_248z$i);
|
|
19738
19777
|
|
|
19739
|
-
function ownKeys$
|
|
19740
|
-
function _objectSpread$
|
|
19778
|
+
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; }
|
|
19779
|
+
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; }
|
|
19741
19780
|
function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(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; } } }; }
|
|
19742
19781
|
function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(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$d(r, a) : void 0; } }
|
|
19743
19782
|
function _arrayLikeToArray$d(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; }
|
|
@@ -19797,8 +19836,8 @@ function _generateCSV() {
|
|
|
19797
19836
|
break;
|
|
19798
19837
|
}
|
|
19799
19838
|
_context2.next = 21;
|
|
19800
|
-
return generateCSV(_objectSpread$
|
|
19801
|
-
mappingData: _objectSpread$
|
|
19839
|
+
return generateCSV(_objectSpread$z(_objectSpread$z({}, exportParams.children), {}, {
|
|
19840
|
+
mappingData: _objectSpread$z(_objectSpread$z({}, parent), {}, {
|
|
19802
19841
|
parentId: exportParams.mappingData._id
|
|
19803
19842
|
})
|
|
19804
19843
|
}), csvData);
|
|
@@ -19860,8 +19899,8 @@ var generateCSVData = /*#__PURE__*/function () {
|
|
|
19860
19899
|
};
|
|
19861
19900
|
}();
|
|
19862
19901
|
|
|
19863
|
-
function ownKeys$
|
|
19864
|
-
function _objectSpread$
|
|
19902
|
+
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; }
|
|
19903
|
+
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; }
|
|
19865
19904
|
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; } } }; }
|
|
19866
19905
|
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; } }
|
|
19867
19906
|
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; }
|
|
@@ -20280,7 +20319,7 @@ function useRelationSelectorData (_ref) {
|
|
|
20280
20319
|
var activeItem = _step.value;
|
|
20281
20320
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
|
20282
20321
|
addedObjects.push(addedData);
|
|
20283
|
-
getSplittedItems(_objectSpread$
|
|
20322
|
+
getSplittedItems(_objectSpread$y(_objectSpread$y({}, activeItem), {}, {
|
|
20284
20323
|
userId: data === null || data === void 0 ? void 0 : data._id
|
|
20285
20324
|
}));
|
|
20286
20325
|
ret = true;
|
|
@@ -20485,8 +20524,8 @@ function useRelationSelectorData (_ref) {
|
|
|
20485
20524
|
};
|
|
20486
20525
|
}
|
|
20487
20526
|
|
|
20488
|
-
function ownKeys$
|
|
20489
|
-
function _objectSpread$
|
|
20527
|
+
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; }
|
|
20528
|
+
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; }
|
|
20490
20529
|
function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(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; } } }; }
|
|
20491
20530
|
function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(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$b(r, a) : void 0; } }
|
|
20492
20531
|
function _arrayLikeToArray$b(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; }
|
|
@@ -20619,7 +20658,7 @@ function ActionButton (_ref) {
|
|
|
20619
20658
|
_iterator2.f();
|
|
20620
20659
|
}
|
|
20621
20660
|
_context.next = 19;
|
|
20622
|
-
return apiInterface.update(_objectSpread$
|
|
20661
|
+
return apiInterface.update(_objectSpread$x(_objectSpread$x({}, data), {}, {
|
|
20623
20662
|
state: toSwitch
|
|
20624
20663
|
}), data);
|
|
20625
20664
|
case 19:
|
|
@@ -20776,14 +20815,14 @@ function _simpleChangeValue() {
|
|
|
20776
20815
|
break;
|
|
20777
20816
|
}
|
|
20778
20817
|
for (i = 0; i < action.newValues.length; i++) {
|
|
20779
|
-
fieldsToUpdate = _objectSpread$
|
|
20818
|
+
fieldsToUpdate = _objectSpread$x(_objectSpread$x({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
|
20780
20819
|
}
|
|
20781
20820
|
if (!apiInterface.canUpdate) {
|
|
20782
20821
|
_context2.next = 9;
|
|
20783
20822
|
break;
|
|
20784
20823
|
}
|
|
20785
20824
|
_context2.next = 7;
|
|
20786
|
-
return apiInterface.update(_objectSpread$
|
|
20825
|
+
return apiInterface.update(_objectSpread$x({}, fieldsToUpdate), data);
|
|
20787
20826
|
case 7:
|
|
20788
20827
|
response = _context2.sent;
|
|
20789
20828
|
return _context2.abrupt("return", response);
|
|
@@ -20798,7 +20837,7 @@ function _simpleChangeValue() {
|
|
|
20798
20837
|
return _simpleChangeValue.apply(this, arguments);
|
|
20799
20838
|
}
|
|
20800
20839
|
function A(props) {
|
|
20801
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
|
20840
|
+
return /*#__PURE__*/jsx("a", _objectSpread$x({}, props));
|
|
20802
20841
|
}
|
|
20803
20842
|
|
|
20804
20843
|
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; } } }; }
|
|
@@ -20936,8 +20975,8 @@ var itemDesc = "item-desc-DBiiF";
|
|
|
20936
20975
|
var css_248z$h = ".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";
|
|
20937
20976
|
styleInject(css_248z$h);
|
|
20938
20977
|
|
|
20939
|
-
function ownKeys$
|
|
20940
|
-
function _objectSpread$
|
|
20978
|
+
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; }
|
|
20979
|
+
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; }
|
|
20941
20980
|
var DropDown = function DropDown(_ref) {
|
|
20942
20981
|
var _curItem$data$length;
|
|
20943
20982
|
var split = _ref.split,
|
|
@@ -20969,7 +21008,7 @@ var DropDown = function DropDown(_ref) {
|
|
|
20969
21008
|
});
|
|
20970
21009
|
return /*#__PURE__*/jsx(Collapse, {
|
|
20971
21010
|
onChange: function onChange() {
|
|
20972
|
-
return getSplittedItems(_objectSpread$
|
|
21011
|
+
return getSplittedItems(_objectSpread$w(_objectSpread$w({}, item.item), {}, {
|
|
20973
21012
|
parentId: item.parentId
|
|
20974
21013
|
}), 0);
|
|
20975
21014
|
},
|
|
@@ -21227,8 +21266,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
|
21227
21266
|
};
|
|
21228
21267
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
|
21229
21268
|
|
|
21230
|
-
function ownKeys$
|
|
21231
|
-
function _objectSpread$
|
|
21269
|
+
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; }
|
|
21270
|
+
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; }
|
|
21232
21271
|
function useFormListData (_ref) {
|
|
21233
21272
|
var _configuration$defaul;
|
|
21234
21273
|
var id = _ref.id,
|
|
@@ -21308,7 +21347,7 @@ function useFormListData (_ref) {
|
|
|
21308
21347
|
if (updated.length == state.length) {
|
|
21309
21348
|
newState = state.map(function (s, i) {
|
|
21310
21349
|
var _updated$find;
|
|
21311
|
-
return _objectSpread$
|
|
21350
|
+
return _objectSpread$v(_objectSpread$v({}, s), {}, {
|
|
21312
21351
|
data: (_updated$find = updated.find(function (u) {
|
|
21313
21352
|
return u.index == i;
|
|
21314
21353
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
|
@@ -21445,8 +21484,8 @@ var FormList = function FormList(_ref, ref) {
|
|
|
21445
21484
|
};
|
|
21446
21485
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
|
21447
21486
|
|
|
21448
|
-
function ownKeys$
|
|
21449
|
-
function _objectSpread$
|
|
21487
|
+
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; }
|
|
21488
|
+
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; }
|
|
21450
21489
|
var LOG$6 = getLogger('Backoffice', 'SelectOrCreate');
|
|
21451
21490
|
function useSelectOrCreateData (_ref) {
|
|
21452
21491
|
var id = _ref.id,
|
|
@@ -21543,7 +21582,7 @@ function useSelectOrCreateData (_ref) {
|
|
|
21543
21582
|
_context.next = 7;
|
|
21544
21583
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
|
21545
21584
|
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) {
|
|
21546
|
-
return _objectSpread$
|
|
21585
|
+
return _objectSpread$u(_objectSpread$u({}, filter), {}, _defineProperty({}, field.field, [value, field.filter, true]));
|
|
21547
21586
|
}, {}) : {
|
|
21548
21587
|
_id: [value, 'contains']
|
|
21549
21588
|
},
|
|
@@ -21854,8 +21893,8 @@ var Multiple = function Multiple(_ref3) {
|
|
|
21854
21893
|
});
|
|
21855
21894
|
};
|
|
21856
21895
|
|
|
21857
|
-
function ownKeys$
|
|
21858
|
-
function _objectSpread$
|
|
21896
|
+
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; }
|
|
21897
|
+
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; }
|
|
21859
21898
|
function useListData (_ref) {
|
|
21860
21899
|
var id = _ref.id,
|
|
21861
21900
|
data = _ref.data;
|
|
@@ -21898,7 +21937,7 @@ function useListData (_ref) {
|
|
|
21898
21937
|
case 3:
|
|
21899
21938
|
result = _context.sent;
|
|
21900
21939
|
setListData(result.data.map(parseField));
|
|
21901
|
-
initData = _objectSpread$
|
|
21940
|
+
initData = _objectSpread$t({}, data);
|
|
21902
21941
|
setUpdatedObject(initData);
|
|
21903
21942
|
setLoading(false);
|
|
21904
21943
|
case 8:
|
|
@@ -21939,7 +21978,7 @@ function useListData (_ref) {
|
|
|
21939
21978
|
});
|
|
21940
21979
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
|
21941
21980
|
var parsedField = field.field.split('.');
|
|
21942
|
-
item.itemUpdate = _objectSpread$
|
|
21981
|
+
item.itemUpdate = _objectSpread$t(_objectSpread$t({}, field), {}, {
|
|
21943
21982
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
|
21944
21983
|
});
|
|
21945
21984
|
});
|
|
@@ -21970,16 +22009,16 @@ function useListData (_ref) {
|
|
|
21970
22009
|
console.error('field with more than 2 parts not allowed');
|
|
21971
22010
|
return;
|
|
21972
22011
|
}
|
|
21973
|
-
var updObj = _objectSpread$
|
|
22012
|
+
var updObj = _objectSpread$t({}, updatedObject);
|
|
21974
22013
|
if (fields.length === 1) {
|
|
21975
|
-
updObj = _objectSpread$
|
|
22014
|
+
updObj = _objectSpread$t(_objectSpread$t({}, updObj), {}, _defineProperty({}, fields[0], value));
|
|
21976
22015
|
} else if (fields.length === 2) {
|
|
21977
22016
|
var updatedField = updObj[fields[0]].find(function (v) {
|
|
21978
22017
|
return v.id === item.id.trim();
|
|
21979
22018
|
});
|
|
21980
22019
|
if (updatedField) {
|
|
21981
|
-
var updatedFieldCopy = _objectSpread$
|
|
21982
|
-
updObj = _objectSpread$
|
|
22020
|
+
var updatedFieldCopy = _objectSpread$t(_objectSpread$t({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
|
22021
|
+
updObj = _objectSpread$t(_objectSpread$t({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
|
21983
22022
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
|
21984
22023
|
})));
|
|
21985
22024
|
}
|
|
@@ -21988,11 +22027,11 @@ function useListData (_ref) {
|
|
|
21988
22027
|
var acItems = listData;
|
|
21989
22028
|
for (var i = 0; i < acItems.length; i++) {
|
|
21990
22029
|
if (i == index) {
|
|
21991
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
22030
|
+
acItems[i].itemUpdate = _objectSpread$t(_objectSpread$t({}, acItems[i].itemUpdate), {}, {
|
|
21992
22031
|
value: value
|
|
21993
22032
|
});
|
|
21994
22033
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
|
21995
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
22034
|
+
acItems[i].itemUpdate = _objectSpread$t(_objectSpread$t({}, acItems[i].itemUpdate), {}, {
|
|
21996
22035
|
value: !value
|
|
21997
22036
|
});
|
|
21998
22037
|
}
|
|
@@ -22506,8 +22545,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
|
22506
22545
|
};
|
|
22507
22546
|
}
|
|
22508
22547
|
|
|
22509
|
-
function ownKeys$
|
|
22510
|
-
function _objectSpread$
|
|
22548
|
+
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; }
|
|
22549
|
+
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; }
|
|
22511
22550
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
|
22512
22551
|
var id = _ref.id,
|
|
22513
22552
|
data = _ref.data,
|
|
@@ -22615,12 +22654,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
|
22615
22654
|
}
|
|
22616
22655
|
function onEnter(e) {
|
|
22617
22656
|
if (e.key != 'Enter') return;
|
|
22618
|
-
setCrop(_objectSpread$
|
|
22657
|
+
setCrop(_objectSpread$s(_objectSpread$s({}, crop), {}, {
|
|
22619
22658
|
unit: 'px',
|
|
22620
22659
|
width: Number(widthInputElement.current.value),
|
|
22621
22660
|
height: Number(heightInputElement.current.value)
|
|
22622
22661
|
}));
|
|
22623
|
-
setCompletedCrop(_objectSpread$
|
|
22662
|
+
setCompletedCrop(_objectSpread$s(_objectSpread$s({}, crop), {}, {
|
|
22624
22663
|
unit: 'px',
|
|
22625
22664
|
width: Number(widthInputElement.current.value),
|
|
22626
22665
|
height: Number(heightInputElement.current.value)
|
|
@@ -22698,8 +22737,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
|
22698
22737
|
function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(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; } } }; }
|
|
22699
22738
|
function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(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$9(r, a) : void 0; } }
|
|
22700
22739
|
function _arrayLikeToArray$9(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; }
|
|
22701
|
-
function ownKeys$
|
|
22702
|
-
function _objectSpread$
|
|
22740
|
+
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; }
|
|
22741
|
+
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; }
|
|
22703
22742
|
function useDescriptions (_ref) {
|
|
22704
22743
|
var id = _ref.id;
|
|
22705
22744
|
var root = useStore();
|
|
@@ -22792,7 +22831,7 @@ function _getDisplayData() {
|
|
|
22792
22831
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
22793
22832
|
while (1) switch (_context4.prev = _context4.next) {
|
|
22794
22833
|
case 0:
|
|
22795
|
-
displayData = _objectSpread$
|
|
22834
|
+
displayData = _objectSpread$r({}, data);
|
|
22796
22835
|
_iterator = _createForOfIteratorHelper$9(items);
|
|
22797
22836
|
_context4.prev = 2;
|
|
22798
22837
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
@@ -23068,8 +23107,8 @@ var FileUploadWrapper = function FileUploadWrapper(_ref) {
|
|
|
23068
23107
|
};
|
|
23069
23108
|
var FileUploadBeta = observer(FileUploadWrapper);
|
|
23070
23109
|
|
|
23071
|
-
function ownKeys$
|
|
23072
|
-
function _objectSpread$
|
|
23110
|
+
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; }
|
|
23111
|
+
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; }
|
|
23073
23112
|
function useGridData (_ref) {
|
|
23074
23113
|
var id = _ref.id,
|
|
23075
23114
|
data = _ref.data;
|
|
@@ -23112,11 +23151,11 @@ function useGridData (_ref) {
|
|
|
23112
23151
|
function reducer(state, action) {
|
|
23113
23152
|
switch (action.type) {
|
|
23114
23153
|
case 'update':
|
|
23115
|
-
return _objectSpread$
|
|
23154
|
+
return _objectSpread$q(_objectSpread$q({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$q(_objectSpread$q({}, action.data), {}, {
|
|
23116
23155
|
buffer: Buffer.from(action.data.buffer)
|
|
23117
23156
|
})));
|
|
23118
23157
|
case 'delete':
|
|
23119
|
-
var newState = _objectSpread$
|
|
23158
|
+
var newState = _objectSpread$q({}, state);
|
|
23120
23159
|
delete newState[action.data.divaNr];
|
|
23121
23160
|
return newState;
|
|
23122
23161
|
default:
|
|
@@ -23203,8 +23242,8 @@ var Grid = function Grid(_ref) {
|
|
|
23203
23242
|
});
|
|
23204
23243
|
};
|
|
23205
23244
|
|
|
23206
|
-
function ownKeys$
|
|
23207
|
-
function _objectSpread$
|
|
23245
|
+
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; }
|
|
23246
|
+
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; }
|
|
23208
23247
|
var useMediaUpload = function useMediaUpload(_ref) {
|
|
23209
23248
|
var id = _ref.id;
|
|
23210
23249
|
var root = useStore();
|
|
@@ -23323,7 +23362,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
23323
23362
|
onRemove: onRemove,
|
|
23324
23363
|
customRequest: customRequest,
|
|
23325
23364
|
fileList: fileList.map(function (f) {
|
|
23326
|
-
return _objectSpread$
|
|
23365
|
+
return _objectSpread$p(_objectSpread$p({}, f), {}, {
|
|
23327
23366
|
url: f.url
|
|
23328
23367
|
});
|
|
23329
23368
|
}),
|
|
@@ -24080,8 +24119,8 @@ function LinkCell (_ref) {
|
|
|
24080
24119
|
|
|
24081
24120
|
var _excluded$1 = ["index"],
|
|
24082
24121
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
|
24083
|
-
function ownKeys$
|
|
24084
|
-
function _objectSpread$
|
|
24122
|
+
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; }
|
|
24123
|
+
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; }
|
|
24085
24124
|
var LOG$4 = getLogger('Backoffice', 'CellRenderer');
|
|
24086
24125
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
|
24087
24126
|
var CustomRow = function CustomRow(_ref) {
|
|
@@ -24095,7 +24134,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
|
24095
24134
|
component: false,
|
|
24096
24135
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
|
24097
24136
|
value: form,
|
|
24098
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
|
24137
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$o({}, props))
|
|
24099
24138
|
})
|
|
24100
24139
|
});
|
|
24101
24140
|
};
|
|
@@ -24148,7 +24187,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
24148
24187
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
|
24149
24188
|
longDescriptionType = 'text';
|
|
24150
24189
|
}
|
|
24151
|
-
var modifiedColumn = _objectSpread$
|
|
24190
|
+
var modifiedColumn = _objectSpread$o(_objectSpread$o({}, column), {}, {
|
|
24152
24191
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
|
24153
24192
|
});
|
|
24154
24193
|
if (column) {
|
|
@@ -24161,40 +24200,40 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
24161
24200
|
};
|
|
24162
24201
|
switch (modifiedColumn.type) {
|
|
24163
24202
|
case 'boolean':
|
|
24164
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
|
24203
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$o({}, cellProps));
|
|
24165
24204
|
break;
|
|
24166
24205
|
case 'text':
|
|
24167
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
|
24206
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$o({}, cellProps));
|
|
24168
24207
|
break;
|
|
24169
24208
|
case 'select':
|
|
24170
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
|
24209
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$o({}, cellProps));
|
|
24171
24210
|
case 'media':
|
|
24172
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
|
24211
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$o({}, cellProps));
|
|
24173
24212
|
break;
|
|
24174
24213
|
case 'mediaItem':
|
|
24175
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
|
24214
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$o({}, cellProps));
|
|
24176
24215
|
break;
|
|
24177
24216
|
case 'unixTimeStamp':
|
|
24178
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
|
24217
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$o({}, cellProps));
|
|
24179
24218
|
break;
|
|
24180
24219
|
case 'unixTimeStampCheck':
|
|
24181
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
|
24220
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$o({}, cellProps));
|
|
24182
24221
|
break;
|
|
24183
24222
|
case 'icon':
|
|
24184
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
|
24223
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$o({}, cellProps));
|
|
24185
24224
|
break;
|
|
24186
24225
|
case 'progress':
|
|
24187
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
|
24226
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$o({}, cellProps));
|
|
24188
24227
|
break;
|
|
24189
24228
|
case 'link':
|
|
24190
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
|
24229
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$o({}, cellProps));
|
|
24191
24230
|
break;
|
|
24192
24231
|
default:
|
|
24193
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
|
24232
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$o({}, cellProps));
|
|
24194
24233
|
break;
|
|
24195
24234
|
}
|
|
24196
24235
|
}
|
|
24197
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
|
24236
|
+
return /*#__PURE__*/jsx("td", _objectSpread$o(_objectSpread$o({}, restProps), {}, {
|
|
24198
24237
|
children: childNode
|
|
24199
24238
|
}));
|
|
24200
24239
|
};
|
|
@@ -24546,8 +24585,8 @@ var SMChart = function SMChart(props) {
|
|
|
24546
24585
|
}) : /*#__PURE__*/jsx(Fragment, {});
|
|
24547
24586
|
};
|
|
24548
24587
|
|
|
24549
|
-
function ownKeys$
|
|
24550
|
-
function _objectSpread$
|
|
24588
|
+
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; }
|
|
24589
|
+
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; }
|
|
24551
24590
|
function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(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; } } }; }
|
|
24552
24591
|
function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(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$4(r, a) : void 0; } }
|
|
24553
24592
|
function _arrayLikeToArray$4(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; }
|
|
@@ -24742,7 +24781,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
24742
24781
|
// Convert to Dayjs
|
|
24743
24782
|
(_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
|
|
24744
24783
|
]
|
|
24745
|
-
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
24784
|
+
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$n(_objectSpread$n({}, (_state$configuration$5 = state.configuration.filter) === null || _state$configuration$5 === void 0 ? void 0 : _state$configuration$5.select.settings), {}, {
|
|
24746
24785
|
style: {
|
|
24747
24786
|
minWidth: '200px'
|
|
24748
24787
|
},
|
|
@@ -24847,7 +24886,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
24847
24886
|
},
|
|
24848
24887
|
dataSource: data,
|
|
24849
24888
|
loading: state.loading,
|
|
24850
|
-
pagination: _objectSpread$
|
|
24889
|
+
pagination: _objectSpread$n(_objectSpread$n({}, state.pagination), {}, {
|
|
24851
24890
|
showTotal: function showTotal(total, range) {
|
|
24852
24891
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
|
24853
24892
|
},
|
|
@@ -25154,7 +25193,7 @@ function BulkAction(_ref6) {
|
|
|
25154
25193
|
}
|
|
25155
25194
|
_context4.t0 = data;
|
|
25156
25195
|
_context4.next = 11;
|
|
25157
|
-
return apiInterface.update(_objectSpread$
|
|
25196
|
+
return apiInterface.update(_objectSpread$n(_objectSpread$n({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
|
25158
25197
|
case 11:
|
|
25159
25198
|
_context4.t1 = _context4.sent;
|
|
25160
25199
|
_context4.t0.push.call(_context4.t0, _context4.t1);
|
|
@@ -25267,8 +25306,8 @@ function SelectionText(_ref8) {
|
|
|
25267
25306
|
});
|
|
25268
25307
|
}
|
|
25269
25308
|
|
|
25270
|
-
function ownKeys$
|
|
25271
|
-
function _objectSpread$
|
|
25309
|
+
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; }
|
|
25310
|
+
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; }
|
|
25272
25311
|
function getColumnFilterProps (_ref) {
|
|
25273
25312
|
var filter = _ref.filter,
|
|
25274
25313
|
title = _ref.title;
|
|
@@ -25631,7 +25670,7 @@ var selectProps = function selectProps(title, filter) {
|
|
|
25631
25670
|
});
|
|
25632
25671
|
},
|
|
25633
25672
|
options: filter.map(function (f) {
|
|
25634
|
-
return _objectSpread$
|
|
25673
|
+
return _objectSpread$m(_objectSpread$m({}, f), {}, {
|
|
25635
25674
|
label: t(f.label)
|
|
25636
25675
|
});
|
|
25637
25676
|
})
|
|
@@ -25680,7 +25719,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
25680
25719
|
setDisplaySelectedvalues = _useState4[1];
|
|
25681
25720
|
var options = [];
|
|
25682
25721
|
options = filter.map(function (f) {
|
|
25683
|
-
return _objectSpread$
|
|
25722
|
+
return _objectSpread$m(_objectSpread$m({}, f), {}, {
|
|
25684
25723
|
label: t(f.label)
|
|
25685
25724
|
});
|
|
25686
25725
|
});
|
|
@@ -25754,8 +25793,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
25754
25793
|
};
|
|
25755
25794
|
};
|
|
25756
25795
|
|
|
25757
|
-
function ownKeys$
|
|
25758
|
-
function _objectSpread$
|
|
25796
|
+
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; }
|
|
25797
|
+
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; }
|
|
25759
25798
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
|
|
25760
25799
|
var columns = configuration.columns.filter(function (c) {
|
|
25761
25800
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
|
@@ -25808,7 +25847,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
|
25808
25847
|
}
|
|
25809
25848
|
function mapColumn(column, onUpdate) {
|
|
25810
25849
|
var _column$field, _column$children;
|
|
25811
|
-
return _objectSpread$
|
|
25850
|
+
return _objectSpread$l(_objectSpread$l(_objectSpread$l({}, column), {}, {
|
|
25812
25851
|
hidden: false,
|
|
25813
25852
|
width: column.width || 100,
|
|
25814
25853
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
|
@@ -25858,8 +25897,8 @@ function updateData (_ref) {
|
|
|
25858
25897
|
};
|
|
25859
25898
|
}
|
|
25860
25899
|
|
|
25861
|
-
function ownKeys$
|
|
25862
|
-
function _objectSpread$
|
|
25900
|
+
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; }
|
|
25901
|
+
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; }
|
|
25863
25902
|
function applyFilterAndSortation (_ref) {
|
|
25864
25903
|
var data = _ref.data,
|
|
25865
25904
|
filters = _ref.filters,
|
|
@@ -25874,7 +25913,7 @@ function applyFilterAndSortation (_ref) {
|
|
|
25874
25913
|
processedData = sort(sorter || [], processedData);
|
|
25875
25914
|
return {
|
|
25876
25915
|
data: processedData,
|
|
25877
|
-
pagination: _objectSpread$
|
|
25916
|
+
pagination: _objectSpread$k(_objectSpread$k({}, pagination), {}, {
|
|
25878
25917
|
total: processedData.length
|
|
25879
25918
|
})
|
|
25880
25919
|
};
|
|
@@ -25959,8 +25998,8 @@ function filter(f, data) {
|
|
|
25959
25998
|
}
|
|
25960
25999
|
|
|
25961
26000
|
var _excluded = ["_id"];
|
|
25962
|
-
function ownKeys$
|
|
25963
|
-
function _objectSpread$
|
|
26001
|
+
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; }
|
|
26002
|
+
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; }
|
|
25964
26003
|
function useTableData$1 (_ref) {
|
|
25965
26004
|
var _configuration$apiInt;
|
|
25966
26005
|
var id = _ref.id;
|
|
@@ -26015,7 +26054,7 @@ function useTableData$1 (_ref) {
|
|
|
26015
26054
|
var _configuration$create;
|
|
26016
26055
|
if (!dataRow) return;
|
|
26017
26056
|
var id = v4();
|
|
26018
|
-
var processedDataRow = unflatten(_objectSpread$
|
|
26057
|
+
var processedDataRow = unflatten(_objectSpread$j({
|
|
26019
26058
|
_id: id,
|
|
26020
26059
|
ID: id
|
|
26021
26060
|
}, dataRow));
|
|
@@ -26027,11 +26066,11 @@ function useTableData$1 (_ref) {
|
|
|
26027
26066
|
newData = _updateData.data;
|
|
26028
26067
|
_updateData.prevDataRow;
|
|
26029
26068
|
_updateData.index;
|
|
26030
|
-
var newState = _objectSpread$
|
|
26069
|
+
var newState = _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
26031
26070
|
data: newData
|
|
26032
26071
|
});
|
|
26033
26072
|
if (!filterServerSide) {
|
|
26034
|
-
var res = applyFilterAndSortation(_objectSpread$
|
|
26073
|
+
var res = applyFilterAndSortation(_objectSpread$j(_objectSpread$j({}, filterData), {}, {
|
|
26035
26074
|
data: newData
|
|
26036
26075
|
}));
|
|
26037
26076
|
newState.data = res.data;
|
|
@@ -26043,33 +26082,33 @@ function useTableData$1 (_ref) {
|
|
|
26043
26082
|
var formData = new FormData();
|
|
26044
26083
|
processedDataRow._id;
|
|
26045
26084
|
var value = _objectWithoutProperties(processedDataRow, _excluded);
|
|
26046
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
|
26085
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$j(_objectSpread$j({}, catalogItem), {}, {
|
|
26047
26086
|
filterContex: filterContex,
|
|
26048
26087
|
value: JSON.stringify([value])
|
|
26049
26088
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
|
26050
26089
|
if (d && d.Result && d.Result == 'Success') return;
|
|
26051
|
-
setState(_objectSpread$
|
|
26090
|
+
setState(_objectSpread$j({}, oldState));
|
|
26052
26091
|
});
|
|
26053
26092
|
}, [state, catalogItem, filterData]);
|
|
26054
26093
|
useEffect(function () {
|
|
26055
26094
|
if (!catalogItem) return;
|
|
26056
|
-
setState(_objectSpread$
|
|
26095
|
+
setState(_objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
26057
26096
|
loading: true,
|
|
26058
|
-
mappingData: _objectSpread$
|
|
26097
|
+
mappingData: _objectSpread$j(_objectSpread$j({}, catalogItem), {}, {
|
|
26059
26098
|
filterContex: filterContex
|
|
26060
26099
|
})
|
|
26061
26100
|
}));
|
|
26062
26101
|
if (!filterServerSide) {
|
|
26063
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
26102
|
+
apiHandler.readList(configuration.mapping, _objectSpread$j(_objectSpread$j({}, catalogItem), {}, {
|
|
26064
26103
|
filterContex: filterContex
|
|
26065
26104
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
|
26066
26105
|
var newData = data.data.map(function (d) {
|
|
26067
|
-
return _objectSpread$
|
|
26106
|
+
return _objectSpread$j(_objectSpread$j({}, d), {}, {
|
|
26068
26107
|
_id: d._id || d.ID || nanoid()
|
|
26069
26108
|
});
|
|
26070
26109
|
});
|
|
26071
26110
|
onChange({
|
|
26072
|
-
pagination: _objectSpread$
|
|
26111
|
+
pagination: _objectSpread$j({}, state.pagination),
|
|
26073
26112
|
filters: {},
|
|
26074
26113
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
26075
26114
|
return c.defaultSortOrder;
|
|
@@ -26085,7 +26124,7 @@ function useTableData$1 (_ref) {
|
|
|
26085
26124
|
});
|
|
26086
26125
|
} else {
|
|
26087
26126
|
onChange({
|
|
26088
|
-
pagination: _objectSpread$
|
|
26127
|
+
pagination: _objectSpread$j({}, state.pagination),
|
|
26089
26128
|
filters: {},
|
|
26090
26129
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
26091
26130
|
return c.defaultSortOrder;
|
|
@@ -26101,17 +26140,17 @@ function useTableData$1 (_ref) {
|
|
|
26101
26140
|
}
|
|
26102
26141
|
}, [filterContex, catalogItem]);
|
|
26103
26142
|
var onChange = function onChange(p, dataParam) {
|
|
26104
|
-
setState(_objectSpread$
|
|
26143
|
+
setState(_objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
26105
26144
|
loading: true
|
|
26106
26145
|
}));
|
|
26107
26146
|
if (!filterServerSide) {
|
|
26108
26147
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
|
26109
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
26148
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$j(_objectSpread$j({}, p), {}, {
|
|
26110
26149
|
data: unfilteredData
|
|
26111
26150
|
})),
|
|
26112
26151
|
data = _applyFilterAndSortat.data,
|
|
26113
26152
|
pagination = _applyFilterAndSortat.pagination;
|
|
26114
|
-
setState(_objectSpread$
|
|
26153
|
+
setState(_objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
26115
26154
|
data: data,
|
|
26116
26155
|
pagination: pagination,
|
|
26117
26156
|
loading: false,
|
|
@@ -26122,20 +26161,20 @@ function useTableData$1 (_ref) {
|
|
|
26122
26161
|
sorter: p.sorter
|
|
26123
26162
|
});
|
|
26124
26163
|
} else {
|
|
26125
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
26164
|
+
apiHandler.readList(configuration.mapping, _objectSpread$j(_objectSpread$j({}, catalogItem), {}, {
|
|
26126
26165
|
filterContex: filterContex
|
|
26127
26166
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
|
26128
|
-
setState(_objectSpread$
|
|
26167
|
+
setState(_objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
26129
26168
|
data: data.data.map(function (dt) {
|
|
26130
|
-
return _objectSpread$
|
|
26169
|
+
return _objectSpread$j(_objectSpread$j({}, dt), {}, {
|
|
26131
26170
|
_id: dt._id || dt.ID || nanoid()
|
|
26132
26171
|
});
|
|
26133
26172
|
}),
|
|
26134
|
-
pagination: _objectSpread$
|
|
26173
|
+
pagination: _objectSpread$j(_objectSpread$j({}, p.pagination), {}, {
|
|
26135
26174
|
total: data.total
|
|
26136
26175
|
}),
|
|
26137
26176
|
loading: false,
|
|
26138
|
-
mappingData: _objectSpread$
|
|
26177
|
+
mappingData: _objectSpread$j(_objectSpread$j({}, catalogItem), {}, {
|
|
26139
26178
|
filterContex: filterContex
|
|
26140
26179
|
})
|
|
26141
26180
|
}));
|
|
@@ -26156,7 +26195,7 @@ function useTableData$1 (_ref) {
|
|
|
26156
26195
|
filters['_id'] = [id, 'eq', false];
|
|
26157
26196
|
_context.next = 4;
|
|
26158
26197
|
return apiHandler.readList(configuration.mapping, {
|
|
26159
|
-
pagination: _objectSpread$
|
|
26198
|
+
pagination: _objectSpread$j({}, state.pagination),
|
|
26160
26199
|
columns: configuration.columns,
|
|
26161
26200
|
filters: filters,
|
|
26162
26201
|
sorter: filterData.sorter
|
|
@@ -26175,7 +26214,7 @@ function useTableData$1 (_ref) {
|
|
|
26175
26214
|
};
|
|
26176
26215
|
}();
|
|
26177
26216
|
var onSelect = function onSelect(keys) {
|
|
26178
|
-
setState(_objectSpread$
|
|
26217
|
+
setState(_objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
26179
26218
|
selected: keys
|
|
26180
26219
|
}));
|
|
26181
26220
|
};
|
|
@@ -26185,7 +26224,7 @@ function useTableData$1 (_ref) {
|
|
|
26185
26224
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
26186
26225
|
while (1) switch (_context3.prev = _context3.next) {
|
|
26187
26226
|
case 0:
|
|
26188
|
-
setState(_objectSpread$
|
|
26227
|
+
setState(_objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
26189
26228
|
deleting: true
|
|
26190
26229
|
}));
|
|
26191
26230
|
newData = _toConsumableArray(state.data);
|
|
@@ -26200,7 +26239,7 @@ function useTableData$1 (_ref) {
|
|
|
26200
26239
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
|
26201
26240
|
return nd._id === state.selected[index];
|
|
26202
26241
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
|
26203
|
-
mappingData = _objectSpread$
|
|
26242
|
+
mappingData = _objectSpread$j(_objectSpread$j({}, mappingData), state.mappingData);
|
|
26204
26243
|
_context2.next = 5;
|
|
26205
26244
|
return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData, true);
|
|
26206
26245
|
case 5:
|
|
@@ -26250,7 +26289,7 @@ function useTableData$1 (_ref) {
|
|
|
26250
26289
|
}
|
|
26251
26290
|
_context3.next = 18;
|
|
26252
26291
|
return apiHandler.readList(configuration.mapping, {
|
|
26253
|
-
pagination: _objectSpread$
|
|
26292
|
+
pagination: _objectSpread$j(_objectSpread$j({}, state.pagination), {}, {
|
|
26254
26293
|
current: current
|
|
26255
26294
|
}),
|
|
26256
26295
|
columns: configuration.columns,
|
|
@@ -26262,11 +26301,11 @@ function useTableData$1 (_ref) {
|
|
|
26262
26301
|
newData = data.data;
|
|
26263
26302
|
total = data.total;
|
|
26264
26303
|
case 21:
|
|
26265
|
-
setState(_objectSpread$
|
|
26304
|
+
setState(_objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
26266
26305
|
selected: [],
|
|
26267
26306
|
deleting: false,
|
|
26268
26307
|
data: newData,
|
|
26269
|
-
pagination: _objectSpread$
|
|
26308
|
+
pagination: _objectSpread$j(_objectSpread$j({}, state.pagination), {}, {
|
|
26270
26309
|
current: current,
|
|
26271
26310
|
total: total
|
|
26272
26311
|
})
|
|
@@ -26282,12 +26321,12 @@ function useTableData$1 (_ref) {
|
|
|
26282
26321
|
};
|
|
26283
26322
|
}();
|
|
26284
26323
|
function setLoading() {
|
|
26285
|
-
setState(_objectSpread$
|
|
26324
|
+
setState(_objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
26286
26325
|
loading: true
|
|
26287
26326
|
}));
|
|
26288
26327
|
}
|
|
26289
|
-
return _objectSpread$
|
|
26290
|
-
configuration: _objectSpread$
|
|
26328
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
26329
|
+
configuration: _objectSpread$j(_objectSpread$j({}, configuration), {}, {
|
|
26291
26330
|
title: undefined
|
|
26292
26331
|
}),
|
|
26293
26332
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
|
@@ -26399,8 +26438,8 @@ function objectHash (obj) {
|
|
|
26399
26438
|
function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(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; } } }; }
|
|
26400
26439
|
function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(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$3(r, a) : void 0; } }
|
|
26401
26440
|
function _arrayLikeToArray$3(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; }
|
|
26402
|
-
function ownKeys$
|
|
26403
|
-
function _objectSpread$
|
|
26441
|
+
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; }
|
|
26442
|
+
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; }
|
|
26404
26443
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
|
26405
26444
|
function useTableData (_ref) {
|
|
26406
26445
|
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$bulkAc, _configuration$apiInt;
|
|
@@ -26436,8 +26475,7 @@ function useTableData (_ref) {
|
|
|
26436
26475
|
var toggleConfig = (_configuration$filter = configuration.filter) === null || _configuration$filter === void 0 ? void 0 : _configuration$filter.toggle;
|
|
26437
26476
|
var toggleFilter = {};
|
|
26438
26477
|
toggleConfig === null || toggleConfig === void 0 || toggleConfig.fields.forEach(function (f) {
|
|
26439
|
-
|
|
26440
|
-
return toggleFilter[f] = [toggleConfig.globalValue ? root.getGlobalValue(toggleConfig.globalValue) : true, 'eq', ((_toggleConfig$isAnd = toggleConfig.isAnd) !== null && _toggleConfig$isAnd !== void 0 ? _toggleConfig$isAnd : false) ? 0 : 1];
|
|
26478
|
+
return toggleFilter[f] = [toggleConfig.globalValue ? root.getGlobalValue(toggleConfig.globalValue) : true, 'eq', !toggleConfig.isAnd];
|
|
26441
26479
|
});
|
|
26442
26480
|
var defaultFilter = {};
|
|
26443
26481
|
(_configuration$filter2 = configuration.filter) === null || _configuration$filter2 === void 0 || (_configuration$filter2 = _configuration$filter2["default"]) === null || _configuration$filter2 === void 0 || _configuration$filter2.fields.forEach(function (f) {
|
|
@@ -26459,7 +26497,7 @@ function useTableData (_ref) {
|
|
|
26459
26497
|
var _useState13 = useState({
|
|
26460
26498
|
loading: true,
|
|
26461
26499
|
deleting: false,
|
|
26462
|
-
pagination: _objectSpread$
|
|
26500
|
+
pagination: _objectSpread$i({
|
|
26463
26501
|
current: 1,
|
|
26464
26502
|
pageSize: 20,
|
|
26465
26503
|
total: 0,
|
|
@@ -26468,7 +26506,7 @@ function useTableData (_ref) {
|
|
|
26468
26506
|
selected: [],
|
|
26469
26507
|
canDelete: !!apiHandler.canDelete,
|
|
26470
26508
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
|
26471
|
-
mappingData: _objectSpread$
|
|
26509
|
+
mappingData: _objectSpread$i(_objectSpread$i({}, parentData), {}, {
|
|
26472
26510
|
prefilter: {
|
|
26473
26511
|
select: globalFilter.select
|
|
26474
26512
|
}
|
|
@@ -26477,7 +26515,7 @@ function useTableData (_ref) {
|
|
|
26477
26515
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
26478
26516
|
state = _useState14[0],
|
|
26479
26517
|
setState = _useState14[1];
|
|
26480
|
-
var mapping = _objectSpread$
|
|
26518
|
+
var mapping = _objectSpread$i(_objectSpread$i({}, parentData), {}, {
|
|
26481
26519
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
|
26482
26520
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
|
26483
26521
|
});
|
|
@@ -26516,14 +26554,14 @@ function useTableData (_ref) {
|
|
|
26516
26554
|
}
|
|
26517
26555
|
var dataArray = Array.isArray(data) ? data : [data];
|
|
26518
26556
|
var newInitData = initData;
|
|
26519
|
-
var newState = _objectSpread$
|
|
26557
|
+
var newState = _objectSpread$i({}, state);
|
|
26520
26558
|
var selected = [];
|
|
26521
26559
|
if (configuration.deselectOnUpdate == false) {
|
|
26522
26560
|
selected = state.selected;
|
|
26523
26561
|
}
|
|
26524
26562
|
var pagination = undefined;
|
|
26525
26563
|
if (state.pagination.total !== state.data.length + dataArray.length) {
|
|
26526
|
-
pagination = _objectSpread$
|
|
26564
|
+
pagination = _objectSpread$i(_objectSpread$i({}, state.pagination), {}, {
|
|
26527
26565
|
total: state.data.length + dataArray.length
|
|
26528
26566
|
});
|
|
26529
26567
|
}
|
|
@@ -26540,7 +26578,7 @@ function useTableData (_ref) {
|
|
|
26540
26578
|
dataRow: dataRow
|
|
26541
26579
|
}),
|
|
26542
26580
|
_data = _updateData.data;
|
|
26543
|
-
newState = _objectSpread$
|
|
26581
|
+
newState = _objectSpread$i(_objectSpread$i({}, newState), {}, {
|
|
26544
26582
|
pagination: (_pagination = pagination) !== null && _pagination !== void 0 ? _pagination : newState.pagination,
|
|
26545
26583
|
data: _data,
|
|
26546
26584
|
selected: selected
|
|
@@ -26553,8 +26591,8 @@ function useTableData (_ref) {
|
|
|
26553
26591
|
dataRow: dataRow
|
|
26554
26592
|
}),
|
|
26555
26593
|
nextInitData = _updateData2.data;
|
|
26556
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
26557
|
-
filters: _objectSpread$
|
|
26594
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$i(_objectSpread$i(_objectSpread$i({}, filterData), {}, {
|
|
26595
|
+
filters: _objectSpread$i(_objectSpread$i(_objectSpread$i(_objectSpread$i(_objectSpread$i(_objectSpread$i({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter5 = configuration.filter) !== null && _configuration$filter5 !== void 0 && (_configuration$filter5 = _configuration$filter5.toggle) !== null && _configuration$filter5 !== void 0 && _configuration$filter5.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
|
|
26558
26596
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter6 = configuration.filter) !== null && _configuration$filter6 !== void 0 && (_configuration$filter6 = _configuration$filter6.toggle) !== null && _configuration$filter6 !== void 0 && _configuration$filter6.inQuery ? {
|
|
26559
26597
|
genericProps: globalFilter.toggle
|
|
26560
26598
|
} : undefined), {}, {
|
|
@@ -26564,7 +26602,7 @@ function useTableData (_ref) {
|
|
|
26564
26602
|
_data2 = _applyFilterAndSortat.data,
|
|
26565
26603
|
_pagination2 = _applyFilterAndSortat.pagination;
|
|
26566
26604
|
newInitData = nextInitData;
|
|
26567
|
-
newState = _objectSpread$
|
|
26605
|
+
newState = _objectSpread$i(_objectSpread$i({}, newState), {}, {
|
|
26568
26606
|
pagination: _pagination2,
|
|
26569
26607
|
data: _data2,
|
|
26570
26608
|
selected: selected
|
|
@@ -26574,8 +26612,8 @@ function useTableData (_ref) {
|
|
|
26574
26612
|
if (apiHandler.canCreate) {
|
|
26575
26613
|
apiCreate(data).then(function (res) {
|
|
26576
26614
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
|
26577
|
-
initData && setInitData(_objectSpread$
|
|
26578
|
-
setState(_objectSpread$
|
|
26615
|
+
initData && setInitData(_objectSpread$i({}, initData));
|
|
26616
|
+
setState(_objectSpread$i({}, state));
|
|
26579
26617
|
}
|
|
26580
26618
|
});
|
|
26581
26619
|
}
|
|
@@ -26588,7 +26626,7 @@ function useTableData (_ref) {
|
|
|
26588
26626
|
var triggerRefresh = function triggerRefresh() {
|
|
26589
26627
|
var _configuration$filter7;
|
|
26590
26628
|
setError(undefined);
|
|
26591
|
-
var newGlobalFilter = _objectSpread$
|
|
26629
|
+
var newGlobalFilter = _objectSpread$i({}, globalFilter);
|
|
26592
26630
|
//on refresh update default filter, since global value can change
|
|
26593
26631
|
if ((_configuration$filter7 = configuration.filter) !== null && _configuration$filter7 !== void 0 && _configuration$filter7["default"]) {
|
|
26594
26632
|
var _configuration$filter8;
|
|
@@ -26599,7 +26637,7 @@ function useTableData (_ref) {
|
|
|
26599
26637
|
newGlobalFilter["default"] = _defaultFilter;
|
|
26600
26638
|
setGlobaFilter(newGlobalFilter);
|
|
26601
26639
|
}
|
|
26602
|
-
onChange(_objectSpread$
|
|
26640
|
+
onChange(_objectSpread$i({
|
|
26603
26641
|
pagination: state.pagination
|
|
26604
26642
|
}, filterData), newGlobalFilter, true);
|
|
26605
26643
|
};
|
|
@@ -26617,7 +26655,7 @@ function useTableData (_ref) {
|
|
|
26617
26655
|
order: c.defaultSortOrder
|
|
26618
26656
|
};
|
|
26619
26657
|
});
|
|
26620
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
|
26658
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26621
26659
|
loading: false
|
|
26622
26660
|
}));else {
|
|
26623
26661
|
onChange({
|
|
@@ -26660,7 +26698,7 @@ function useTableData (_ref) {
|
|
|
26660
26698
|
case 0:
|
|
26661
26699
|
filters = {};
|
|
26662
26700
|
filters['_id'] = [id, 'eq', false];
|
|
26663
|
-
ssf = _objectSpread$
|
|
26701
|
+
ssf = _objectSpread$i({
|
|
26664
26702
|
pagination: {
|
|
26665
26703
|
current: 1,
|
|
26666
26704
|
pageSize: 1
|
|
@@ -26713,11 +26751,11 @@ function useTableData (_ref) {
|
|
|
26713
26751
|
prefilter = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : globalFilter;
|
|
26714
26752
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
|
26715
26753
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
|
26716
|
-
setState(_objectSpread$
|
|
26754
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26717
26755
|
loading: true
|
|
26718
26756
|
}));
|
|
26719
26757
|
currentData = initData;
|
|
26720
|
-
filterData = _objectSpread$
|
|
26758
|
+
filterData = _objectSpread$i(_objectSpread$i(_objectSpread$i(_objectSpread$i({}, prefilter.search), ((_configuration$filter10 = configuration.filter) === null || _configuration$filter10 === void 0 || (_configuration$filter10 = _configuration$filter10.select) === null || _configuration$filter10 === void 0 ? void 0 : _configuration$filter10.applyDefaultValue) !== false || ((_configuration$filter11 = configuration.filter) === null || _configuration$filter11 === void 0 || (_configuration$filter11 = _configuration$filter11.select) === null || _configuration$filter11 === void 0 ? void 0 : _configuration$filter11.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter12 = (_configuration$filter13 = configuration.filter) === null || _configuration$filter13 === void 0 || (_configuration$filter13 = _configuration$filter13.select) === null || _configuration$filter13 === void 0 ? void 0 : _configuration$filter13.filterField) !== null && _configuration$filter12 !== void 0 ? _configuration$filter12 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
|
|
26721
26759
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
|
|
26722
26760
|
var _ref7 = _slicedToArray(_ref6, 2);
|
|
26723
26761
|
_ref7[0];
|
|
@@ -26725,7 +26763,7 @@ function useTableData (_ref) {
|
|
|
26725
26763
|
return v != null;
|
|
26726
26764
|
}));
|
|
26727
26765
|
currentFilterHash = objectHash(filterData);
|
|
26728
|
-
currentPagination = _objectSpread$
|
|
26766
|
+
currentPagination = _objectSpread$i(_objectSpread$i({}, p.pagination), {}, {
|
|
26729
26767
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
|
26730
26768
|
});
|
|
26731
26769
|
filterHash.current = currentFilterHash;
|
|
@@ -26733,7 +26771,7 @@ function useTableData (_ref) {
|
|
|
26733
26771
|
_context3.next = 20;
|
|
26734
26772
|
break;
|
|
26735
26773
|
}
|
|
26736
|
-
ssf = _objectSpread$
|
|
26774
|
+
ssf = _objectSpread$i({
|
|
26737
26775
|
pagination: currentPagination,
|
|
26738
26776
|
columns: configuration.columns,
|
|
26739
26777
|
filters: filterData,
|
|
@@ -26747,7 +26785,7 @@ function useTableData (_ref) {
|
|
|
26747
26785
|
data = _context3.sent;
|
|
26748
26786
|
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, mapping, ssf);
|
|
26749
26787
|
currentData = data.data;
|
|
26750
|
-
currentPagination = _objectSpread$
|
|
26788
|
+
currentPagination = _objectSpread$i(_objectSpread$i({}, currentPagination), {}, {
|
|
26751
26789
|
total: data.total
|
|
26752
26790
|
});
|
|
26753
26791
|
_context3.next = 29;
|
|
@@ -26764,7 +26802,7 @@ function useTableData (_ref) {
|
|
|
26764
26802
|
currentData = _data3.data;
|
|
26765
26803
|
setInitData(currentData);
|
|
26766
26804
|
case 26:
|
|
26767
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
|
26805
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$i(_objectSpread$i({}, p), {}, {
|
|
26768
26806
|
pagination: currentPagination,
|
|
26769
26807
|
filters: filterData,
|
|
26770
26808
|
data: currentData,
|
|
@@ -26773,11 +26811,11 @@ function useTableData (_ref) {
|
|
|
26773
26811
|
currentData = _data4;
|
|
26774
26812
|
currentPagination = pagination;
|
|
26775
26813
|
case 29:
|
|
26776
|
-
setState(_objectSpread$
|
|
26814
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26777
26815
|
loading: false,
|
|
26778
26816
|
data: currentData,
|
|
26779
26817
|
pagination: currentPagination,
|
|
26780
|
-
mappingData: _objectSpread$
|
|
26818
|
+
mappingData: _objectSpread$i(_objectSpread$i({}, parentData), {}, {
|
|
26781
26819
|
prefilter: prefilter
|
|
26782
26820
|
}),
|
|
26783
26821
|
currentFetchUrl: currentUrl
|
|
@@ -26799,7 +26837,7 @@ function useTableData (_ref) {
|
|
|
26799
26837
|
};
|
|
26800
26838
|
}();
|
|
26801
26839
|
var onSelect = function onSelect(keys) {
|
|
26802
|
-
setState(_objectSpread$
|
|
26840
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26803
26841
|
selected: keys
|
|
26804
26842
|
}));
|
|
26805
26843
|
};
|
|
@@ -26810,7 +26848,7 @@ function useTableData (_ref) {
|
|
|
26810
26848
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
26811
26849
|
while (1) switch (_context5.prev = _context5.next) {
|
|
26812
26850
|
case 0:
|
|
26813
|
-
setState(_objectSpread$
|
|
26851
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26814
26852
|
deleting: true
|
|
26815
26853
|
}));
|
|
26816
26854
|
newData = _toConsumableArray(state.data);
|
|
@@ -26850,7 +26888,7 @@ function useTableData (_ref) {
|
|
|
26850
26888
|
} finally {
|
|
26851
26889
|
_iterator.f();
|
|
26852
26890
|
}
|
|
26853
|
-
mappingData = _objectSpread$
|
|
26891
|
+
mappingData = _objectSpread$i(_objectSpread$i(_objectSpread$i({}, mappingData), state.mappingData), mapToggle);
|
|
26854
26892
|
deleteResult = undefined;
|
|
26855
26893
|
_context4.prev = 7;
|
|
26856
26894
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
|
@@ -26940,12 +26978,12 @@ function useTableData (_ref) {
|
|
|
26940
26978
|
break;
|
|
26941
26979
|
}
|
|
26942
26980
|
_context5.next = 25;
|
|
26943
|
-
return apiHandler.readList(parentMapping || configuration.mapping, mapping, _objectSpread$
|
|
26944
|
-
pagination: _objectSpread$
|
|
26981
|
+
return apiHandler.readList(parentMapping || configuration.mapping, mapping, _objectSpread$i({
|
|
26982
|
+
pagination: _objectSpread$i(_objectSpread$i({}, state.pagination), {}, {
|
|
26945
26983
|
current: current
|
|
26946
26984
|
}),
|
|
26947
26985
|
columns: configuration.columns,
|
|
26948
|
-
filters: _objectSpread$
|
|
26986
|
+
filters: _objectSpread$i(_objectSpread$i(_objectSpread$i(_objectSpread$i(_objectSpread$i(_objectSpread$i({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter16 = configuration.filter) !== null && _configuration$filter16 !== void 0 && (_configuration$filter16 = _configuration$filter16.toggle) !== null && _configuration$filter16 !== void 0 && _configuration$filter16.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
|
|
26949
26987
|
sorter: filterData.sorter
|
|
26950
26988
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter17 = configuration.filter) !== null && _configuration$filter17 !== void 0 && (_configuration$filter17 = _configuration$filter17.toggle) !== null && _configuration$filter17 !== void 0 && _configuration$filter17.inQuery ? {
|
|
26951
26989
|
genericProps: globalFilter.toggle
|
|
@@ -26956,11 +26994,11 @@ function useTableData (_ref) {
|
|
|
26956
26994
|
total = data.total;
|
|
26957
26995
|
case 28:
|
|
26958
26996
|
setInitData(newInitData);
|
|
26959
|
-
setState(_objectSpread$
|
|
26997
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26960
26998
|
selected: [],
|
|
26961
26999
|
deleting: false,
|
|
26962
27000
|
data: newData,
|
|
26963
|
-
pagination: _objectSpread$
|
|
27001
|
+
pagination: _objectSpread$i(_objectSpread$i({}, state.pagination), {}, {
|
|
26964
27002
|
current: current === 0 ? 1 : current,
|
|
26965
27003
|
total: total
|
|
26966
27004
|
})
|
|
@@ -26981,14 +27019,14 @@ function useTableData (_ref) {
|
|
|
26981
27019
|
LOG$2.error(new DivaError('No global select filter defiend'));
|
|
26982
27020
|
return;
|
|
26983
27021
|
}
|
|
26984
|
-
var newGlobalFilter = _objectSpread$
|
|
27022
|
+
var newGlobalFilter = _objectSpread$i({}, globalFilter);
|
|
26985
27023
|
if (value !== null && value !== void 0 && value.length) {
|
|
26986
27024
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
|
|
26987
27025
|
} else {
|
|
26988
27026
|
newGlobalFilter.select = {};
|
|
26989
27027
|
}
|
|
26990
27028
|
setGlobaFilter(newGlobalFilter);
|
|
26991
|
-
onChange(_objectSpread$
|
|
27029
|
+
onChange(_objectSpread$i({
|
|
26992
27030
|
pagination: state.pagination
|
|
26993
27031
|
}, filterData), newGlobalFilter);
|
|
26994
27032
|
};
|
|
@@ -27000,13 +27038,13 @@ function useTableData (_ref) {
|
|
|
27000
27038
|
}
|
|
27001
27039
|
var toggleFilter = {};
|
|
27002
27040
|
configuration.filter.toggle.fields.forEach(function (f) {
|
|
27003
|
-
return toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', configuration.filter.toggle.isAnd
|
|
27041
|
+
return toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
|
27004
27042
|
});
|
|
27005
|
-
var newGlobalFilter = _objectSpread$
|
|
27043
|
+
var newGlobalFilter = _objectSpread$i(_objectSpread$i({}, globalFilter), {}, {
|
|
27006
27044
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
|
27007
27045
|
});
|
|
27008
27046
|
setGlobaFilter(newGlobalFilter);
|
|
27009
|
-
onChange(_objectSpread$
|
|
27047
|
+
onChange(_objectSpread$i({
|
|
27010
27048
|
pagination: state.pagination
|
|
27011
27049
|
}, filterData), newGlobalFilter, undefined, true);
|
|
27012
27050
|
};
|
|
@@ -27019,7 +27057,7 @@ function useTableData (_ref) {
|
|
|
27019
27057
|
LOG$2.error(new DivaError('No global search filter defiend'));
|
|
27020
27058
|
return;
|
|
27021
27059
|
}
|
|
27022
|
-
var newGlobalFilter = _objectSpread$
|
|
27060
|
+
var newGlobalFilter = _objectSpread$i(_objectSpread$i({}, globalFilter), {}, {
|
|
27023
27061
|
search: {}
|
|
27024
27062
|
});
|
|
27025
27063
|
if (value) {
|
|
@@ -27033,7 +27071,7 @@ function useTableData (_ref) {
|
|
|
27033
27071
|
});
|
|
27034
27072
|
}
|
|
27035
27073
|
setGlobaFilter(newGlobalFilter);
|
|
27036
|
-
onChange(_objectSpread$
|
|
27074
|
+
onChange(_objectSpread$i({
|
|
27037
27075
|
pagination: state.pagination
|
|
27038
27076
|
}, filterData), newGlobalFilter);
|
|
27039
27077
|
};
|
|
@@ -27043,17 +27081,17 @@ function useTableData (_ref) {
|
|
|
27043
27081
|
LOG$2.error(new DivaError('No global period filter defiend'));
|
|
27044
27082
|
return;
|
|
27045
27083
|
}
|
|
27046
|
-
var newGlobalFilter = _objectSpread$
|
|
27084
|
+
var newGlobalFilter = _objectSpread$i({}, globalFilter);
|
|
27047
27085
|
newGlobalFilter.timeStamp = {
|
|
27048
27086
|
fromTimeStamp: [from],
|
|
27049
27087
|
toTimeStamp: [to]
|
|
27050
27088
|
};
|
|
27051
27089
|
setGlobaFilter(newGlobalFilter);
|
|
27052
|
-
onChange(_objectSpread$
|
|
27090
|
+
onChange(_objectSpread$i({
|
|
27053
27091
|
pagination: state.pagination
|
|
27054
27092
|
}, filterData), newGlobalFilter);
|
|
27055
27093
|
};
|
|
27056
|
-
return _objectSpread$
|
|
27094
|
+
return _objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
27057
27095
|
title: title,
|
|
27058
27096
|
configuration: configuration,
|
|
27059
27097
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
|
|
@@ -27095,8 +27133,8 @@ function StandardTable (_ref) {
|
|
|
27095
27133
|
});
|
|
27096
27134
|
}
|
|
27097
27135
|
|
|
27098
|
-
function ownKeys$
|
|
27099
|
-
function _objectSpread$
|
|
27136
|
+
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; }
|
|
27137
|
+
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; }
|
|
27100
27138
|
function Table (props) {
|
|
27101
27139
|
var root = useStore();
|
|
27102
27140
|
var variant = useMemo(function () {
|
|
@@ -27104,15 +27142,15 @@ function Table (props) {
|
|
|
27104
27142
|
return config.variant;
|
|
27105
27143
|
}, [props.id]);
|
|
27106
27144
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
27107
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
|
27145
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$h({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$h({}, props))]
|
|
27108
27146
|
});
|
|
27109
27147
|
}
|
|
27110
27148
|
|
|
27111
27149
|
function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(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; } } }; }
|
|
27112
27150
|
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(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$2(r, a) : void 0; } }
|
|
27113
27151
|
function _arrayLikeToArray$2(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; }
|
|
27114
|
-
function ownKeys$
|
|
27115
|
-
function _objectSpread$
|
|
27152
|
+
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; }
|
|
27153
|
+
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; }
|
|
27116
27154
|
function useAGGrid (_ref) {
|
|
27117
27155
|
var id = _ref.id,
|
|
27118
27156
|
filter = _ref.filter,
|
|
@@ -27206,7 +27244,7 @@ function useAGGrid (_ref) {
|
|
|
27206
27244
|
value = _ref3[1];
|
|
27207
27245
|
if (_idx == 0) {
|
|
27208
27246
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
|
27209
|
-
rdat.push(_objectSpread$
|
|
27247
|
+
rdat.push(_objectSpread$g(_objectSpread$g({}, rd), {}, {
|
|
27210
27248
|
grouping: [idx.toString()]
|
|
27211
27249
|
}));
|
|
27212
27250
|
var sp = key.split(':');
|
|
@@ -27349,8 +27387,8 @@ var value = "value-FCA-6";
|
|
|
27349
27387
|
var css_248z$a = ".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";
|
|
27350
27388
|
styleInject(css_248z$a);
|
|
27351
27389
|
|
|
27352
|
-
function ownKeys$
|
|
27353
|
-
function _objectSpread$
|
|
27390
|
+
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; }
|
|
27391
|
+
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; }
|
|
27354
27392
|
var AGChart = function AGChart(_ref) {
|
|
27355
27393
|
var data = _ref.data;
|
|
27356
27394
|
var groupedData = [];
|
|
@@ -27358,11 +27396,11 @@ var AGChart = function AGChart(_ref) {
|
|
|
27358
27396
|
data.forEach(function (dt) {
|
|
27359
27397
|
if (dt.count == 0) return;
|
|
27360
27398
|
if (groupedData.length > dt.grouping[0]) {
|
|
27361
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
|
27399
|
+
groupedData[dt.grouping[0]].push(_objectSpread$f(_objectSpread$f({}, dt), {}, {
|
|
27362
27400
|
count: Number(dt.count)
|
|
27363
27401
|
}));
|
|
27364
27402
|
} else {
|
|
27365
|
-
groupedData.push([_objectSpread$
|
|
27403
|
+
groupedData.push([_objectSpread$f(_objectSpread$f({}, dt), {}, {
|
|
27366
27404
|
count: Number(dt.count)
|
|
27367
27405
|
})]);
|
|
27368
27406
|
}
|
|
@@ -27403,8 +27441,8 @@ var AGChart = function AGChart(_ref) {
|
|
|
27403
27441
|
});
|
|
27404
27442
|
};
|
|
27405
27443
|
|
|
27406
|
-
function ownKeys$
|
|
27407
|
-
function _objectSpread$
|
|
27444
|
+
function ownKeys$e(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; }
|
|
27445
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27408
27446
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
27409
27447
|
var id = _ref.id,
|
|
27410
27448
|
filter = _ref.filter,
|
|
@@ -27497,7 +27535,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
27497
27535
|
});
|
|
27498
27536
|
});
|
|
27499
27537
|
}
|
|
27500
|
-
return _objectSpread$
|
|
27538
|
+
return _objectSpread$e(_objectSpread$e({}, column), {}, {
|
|
27501
27539
|
cellRenderer: renderer
|
|
27502
27540
|
});
|
|
27503
27541
|
});
|
|
@@ -27767,8 +27805,8 @@ var CustomText = function CustomText(_ref) {
|
|
|
27767
27805
|
};
|
|
27768
27806
|
var CustomText$1 = observer(CustomText);
|
|
27769
27807
|
|
|
27770
|
-
function ownKeys$
|
|
27771
|
-
function _objectSpread$
|
|
27808
|
+
function ownKeys$d(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; }
|
|
27809
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27772
27810
|
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(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; } } }; }
|
|
27773
27811
|
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(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$1(r, a) : void 0; } }
|
|
27774
27812
|
function _arrayLikeToArray$1(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; }
|
|
@@ -27831,7 +27869,7 @@ function useFilterBoxData (id) {
|
|
|
27831
27869
|
} finally {
|
|
27832
27870
|
_iterator.f();
|
|
27833
27871
|
}
|
|
27834
|
-
return _objectSpread$
|
|
27872
|
+
return _objectSpread$d(_objectSpread$d({}, state), ob);
|
|
27835
27873
|
}
|
|
27836
27874
|
return {
|
|
27837
27875
|
configuration: configuration,
|
|
@@ -27845,8 +27883,8 @@ function useFilterBoxData (id) {
|
|
|
27845
27883
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(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; } } }; }
|
|
27846
27884
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(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(r, a) : void 0; } }
|
|
27847
27885
|
function _arrayLikeToArray(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; }
|
|
27848
|
-
function ownKeys$
|
|
27849
|
-
function _objectSpread$
|
|
27886
|
+
function ownKeys$c(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; }
|
|
27887
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27850
27888
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
27851
27889
|
var id = _ref.id,
|
|
27852
27890
|
onChangeFilter = _ref.onChangeFilter,
|
|
@@ -27874,7 +27912,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
27874
27912
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
|
|
27875
27913
|
mode: "single",
|
|
27876
27914
|
apiInterface: filter.requestOptions,
|
|
27877
|
-
wholeData: _objectSpread$
|
|
27915
|
+
wholeData: _objectSpread$c(_objectSpread$c({}, state.filter), {}, {
|
|
27878
27916
|
tab: tab
|
|
27879
27917
|
}),
|
|
27880
27918
|
mapping: filter.requestMapping,
|
|
@@ -28106,8 +28144,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
28106
28144
|
return false;
|
|
28107
28145
|
});
|
|
28108
28146
|
|
|
28109
|
-
function ownKeys$
|
|
28110
|
-
function _objectSpread$
|
|
28147
|
+
function ownKeys$b(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; }
|
|
28148
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28111
28149
|
function useUIBuilderData (id) {
|
|
28112
28150
|
var save = undefined;
|
|
28113
28151
|
var root = useStore();
|
|
@@ -28139,7 +28177,7 @@ function useUIBuilderData (id) {
|
|
|
28139
28177
|
var configuration = _useMemo.configuration;
|
|
28140
28178
|
useEffect(function () {
|
|
28141
28179
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
|
28142
|
-
return setFilter(_objectSpread$
|
|
28180
|
+
return setFilter(_objectSpread$b(_objectSpread$b({}, filter), {}, {
|
|
28143
28181
|
sessionGuid: res
|
|
28144
28182
|
}));
|
|
28145
28183
|
});
|
|
@@ -28162,8 +28200,8 @@ function useUIBuilderData (id) {
|
|
|
28162
28200
|
};
|
|
28163
28201
|
}
|
|
28164
28202
|
|
|
28165
|
-
function ownKeys$
|
|
28166
|
-
function _objectSpread$
|
|
28203
|
+
function ownKeys$a(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; }
|
|
28204
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28167
28205
|
function UIBuilder(_ref) {
|
|
28168
28206
|
var id = _ref.id;
|
|
28169
28207
|
var state = useUIBuilderData(id);
|
|
@@ -28190,7 +28228,7 @@ function UIBuilder(_ref) {
|
|
|
28190
28228
|
override = {
|
|
28191
28229
|
value: newFilter[item.field],
|
|
28192
28230
|
setValue: function setValue(newVal) {
|
|
28193
|
-
var newFilter = _objectSpread$
|
|
28231
|
+
var newFilter = _objectSpread$a({}, state.filter);
|
|
28194
28232
|
newFilter[item.field] = newVal;
|
|
28195
28233
|
state.setFilter(newFilter);
|
|
28196
28234
|
}
|
|
@@ -28238,7 +28276,7 @@ function UIBuilder(_ref) {
|
|
|
28238
28276
|
case 'AGGrid':
|
|
28239
28277
|
return /*#__PURE__*/jsx(AGGrid, {
|
|
28240
28278
|
id: item.id,
|
|
28241
|
-
filter: _objectSpread$
|
|
28279
|
+
filter: _objectSpread$a({
|
|
28242
28280
|
optionCodices: JSON.stringify(state.data)
|
|
28243
28281
|
}, state.filter),
|
|
28244
28282
|
override: item.id == 'AGGridTopOptionValues' ? {
|
|
@@ -28398,8 +28436,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
|
28398
28436
|
};
|
|
28399
28437
|
var OrgItem$1 = observer(OrgItem);
|
|
28400
28438
|
|
|
28401
|
-
function ownKeys$
|
|
28402
|
-
function _objectSpread$
|
|
28439
|
+
function ownKeys$9(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; }
|
|
28440
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28403
28441
|
function useTransformJson (_ref) {
|
|
28404
28442
|
var id = _ref.id;
|
|
28405
28443
|
var _useState = useState(),
|
|
@@ -28465,7 +28503,7 @@ function useTransformJson (_ref) {
|
|
|
28465
28503
|
}();
|
|
28466
28504
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
|
28467
28505
|
var _data$children;
|
|
28468
|
-
return _objectSpread$
|
|
28506
|
+
return _objectSpread$9(_objectSpread$9({}, data), {}, {
|
|
28469
28507
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
|
28470
28508
|
data: data,
|
|
28471
28509
|
configuration: configuration,
|
|
@@ -28545,7 +28583,7 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
|
28545
28583
|
items: breadcrumbs.map(function (data) {
|
|
28546
28584
|
return {
|
|
28547
28585
|
key: data.id,
|
|
28548
|
-
|
|
28586
|
+
title: data.displayName,
|
|
28549
28587
|
onClick: function onClick() {
|
|
28550
28588
|
var _root$dataStore;
|
|
28551
28589
|
return root === null || root === void 0 || (_root$dataStore = root.dataStore) === null || _root$dataStore === void 0 ? void 0 : _root$dataStore.setSelectedOrganizationId(data.id);
|
|
@@ -29126,8 +29164,8 @@ function useCatalogEditor (id) {
|
|
|
29126
29164
|
};
|
|
29127
29165
|
}
|
|
29128
29166
|
|
|
29129
|
-
function ownKeys$
|
|
29130
|
-
function _objectSpread$
|
|
29167
|
+
function ownKeys$8(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; }
|
|
29168
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29131
29169
|
function DragDropUpload(_ref) {
|
|
29132
29170
|
var api2Params = _ref.api2Params,
|
|
29133
29171
|
catalogId = _ref.catalogId,
|
|
@@ -29232,7 +29270,7 @@ function DragDropUpload(_ref) {
|
|
|
29232
29270
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
|
29233
29271
|
children: t('backoffice.catalogeditor.classimportstarted')
|
|
29234
29272
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
|
29235
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
|
29273
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$8(_objectSpread$8({}, props), {}, {
|
|
29236
29274
|
children: [/*#__PURE__*/jsx("p", {
|
|
29237
29275
|
className: "ant-upload-drag-icon",
|
|
29238
29276
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
|
@@ -29449,17 +29487,17 @@ function CatalogEditor(_ref) {
|
|
|
29449
29487
|
}
|
|
29450
29488
|
var CatalogEditor$1 = observer(CatalogEditor);
|
|
29451
29489
|
|
|
29452
|
-
function ownKeys$
|
|
29453
|
-
function _objectSpread$
|
|
29454
|
-
function Spreadsheet (props) {
|
|
29490
|
+
function ownKeys$7(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; }
|
|
29491
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29492
|
+
function Spreadsheet$1 (props) {
|
|
29455
29493
|
var root = useStore();
|
|
29456
|
-
return /*#__PURE__*/jsx(Spreadsheet$
|
|
29494
|
+
return /*#__PURE__*/jsx(Spreadsheet$2, _objectSpread$7(_objectSpread$7({}, props), {}, {
|
|
29457
29495
|
darkMode: root.contentStore.theme == 'darkmode',
|
|
29458
29496
|
jwt: root.dataStore.jwt
|
|
29459
29497
|
}));
|
|
29460
29498
|
}
|
|
29461
29499
|
|
|
29462
|
-
function useNavigation () {
|
|
29500
|
+
function useNavigation$1 () {
|
|
29463
29501
|
var root = useStore();
|
|
29464
29502
|
var _useSearchParams = useSearchParams(),
|
|
29465
29503
|
_useSearchParams2 = _slicedToArray(_useSearchParams, 1),
|
|
@@ -29577,7 +29615,7 @@ function TablePackages () {
|
|
|
29577
29615
|
var root = useStore();
|
|
29578
29616
|
var _useTranslation = useTranslation(),
|
|
29579
29617
|
t = _useTranslation.t;
|
|
29580
|
-
var _useNavigation = useNavigation(),
|
|
29618
|
+
var _useNavigation = useNavigation$1(),
|
|
29581
29619
|
organizationId = _useNavigation.organizationId,
|
|
29582
29620
|
apiConfig = _useNavigation.apiConfig,
|
|
29583
29621
|
updateNavigation = _useNavigation.updateNavigation;
|
|
@@ -29588,12 +29626,12 @@ function TablePackages () {
|
|
|
29588
29626
|
}, [organizationId]);
|
|
29589
29627
|
useEffect(function () {
|
|
29590
29628
|
//remove the packages submenu when opening this module
|
|
29591
|
-
root.contentStore.removeAdditionalElement('
|
|
29629
|
+
root.contentStore.removeAdditionalElement('idmenricher');
|
|
29592
29630
|
}, []);
|
|
29593
29631
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
29594
29632
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
29595
29633
|
title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
|
|
29596
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
29634
|
+
}), /*#__PURE__*/jsx(Spreadsheet$1, {
|
|
29597
29635
|
gridId: 'packages-grid',
|
|
29598
29636
|
applicationData: applicationData,
|
|
29599
29637
|
rowActions: [{
|
|
@@ -29766,7 +29804,7 @@ function useModule (currentModules) {
|
|
|
29766
29804
|
var root = useStore();
|
|
29767
29805
|
var _useTranslation = useTranslation(),
|
|
29768
29806
|
t = _useTranslation.t;
|
|
29769
|
-
var _useNavigation = useNavigation(),
|
|
29807
|
+
var _useNavigation = useNavigation$1(),
|
|
29770
29808
|
updateNavigation = _useNavigation.updateNavigation,
|
|
29771
29809
|
organizationId = _useNavigation.organizationId,
|
|
29772
29810
|
apiConfig = _useNavigation.apiConfig,
|
|
@@ -29812,7 +29850,7 @@ function useModule (currentModules) {
|
|
|
29812
29850
|
},
|
|
29813
29851
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29814
29852
|
label: /*#__PURE__*/jsx(Link, {
|
|
29815
|
-
to: 'catalogs/packages/' + packageId + '/renaming/features' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29853
|
+
to: 'catalogs/idm/packages/' + packageId + '/renaming/features' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29816
29854
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
|
|
29817
29855
|
})
|
|
29818
29856
|
}, {
|
|
@@ -29822,7 +29860,7 @@ function useModule (currentModules) {
|
|
|
29822
29860
|
},
|
|
29823
29861
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29824
29862
|
label: /*#__PURE__*/jsx(Link, {
|
|
29825
|
-
to: 'catalogs/packages/' + packageId + '/renaming/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29863
|
+
to: 'catalogs/idm/packages/' + packageId + '/renaming/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29826
29864
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOption')
|
|
29827
29865
|
})
|
|
29828
29866
|
}, {
|
|
@@ -29832,7 +29870,7 @@ function useModule (currentModules) {
|
|
|
29832
29870
|
},
|
|
29833
29871
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29834
29872
|
label: /*#__PURE__*/jsx(Link, {
|
|
29835
|
-
to: 'catalogs/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29873
|
+
to: 'catalogs/idm/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29836
29874
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
|
|
29837
29875
|
})
|
|
29838
29876
|
}
|
|
@@ -29854,7 +29892,7 @@ function useModule (currentModules) {
|
|
|
29854
29892
|
},
|
|
29855
29893
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29856
29894
|
label: /*#__PURE__*/jsx(Link, {
|
|
29857
|
-
to: 'catalogs/packages/' + packageId + '/tabgroups' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29895
|
+
to: 'catalogs/idm/packages/' + packageId + '/tabgroups' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29858
29896
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups')
|
|
29859
29897
|
})
|
|
29860
29898
|
}, {
|
|
@@ -29884,7 +29922,7 @@ function useModule (currentModules) {
|
|
|
29884
29922
|
},
|
|
29885
29923
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29886
29924
|
label: /*#__PURE__*/jsx(Link, {
|
|
29887
|
-
to: 'catalogs/packages/' + packageId + '/exclusivity/efeature' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29925
|
+
to: 'catalogs/idm/packages/' + packageId + '/exclusivity/efeature' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29888
29926
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
|
|
29889
29927
|
})
|
|
29890
29928
|
}, {
|
|
@@ -29894,7 +29932,7 @@ function useModule (currentModules) {
|
|
|
29894
29932
|
},
|
|
29895
29933
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29896
29934
|
label: /*#__PURE__*/jsx(Link, {
|
|
29897
|
-
to: 'catalogs/packages/' + packageId + '/exclusivity/eoption' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29935
|
+
to: 'catalogs/idm/packages/' + packageId + '/exclusivity/eoption' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29898
29936
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOption')
|
|
29899
29937
|
})
|
|
29900
29938
|
}, {
|
|
@@ -29904,7 +29942,7 @@ function useModule (currentModules) {
|
|
|
29904
29942
|
},
|
|
29905
29943
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29906
29944
|
label: /*#__PURE__*/jsx(Link, {
|
|
29907
|
-
to: 'catalogs/packages/' + packageId + '/exclusivity/eitem' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29945
|
+
to: 'catalogs/idm/packages/' + packageId + '/exclusivity/eitem' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29908
29946
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
|
|
29909
29947
|
})
|
|
29910
29948
|
}
|
|
@@ -29926,7 +29964,7 @@ function useModule (currentModules) {
|
|
|
29926
29964
|
},
|
|
29927
29965
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29928
29966
|
label: /*#__PURE__*/jsx(Link, {
|
|
29929
|
-
to: 'catalogs/packages/' + packageId + '/properties' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29967
|
+
to: 'catalogs/idm/packages/' + packageId + '/properties' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29930
29968
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableProperties')
|
|
29931
29969
|
})
|
|
29932
29970
|
}];
|
|
@@ -29999,7 +30037,7 @@ function TableProperties () {
|
|
|
29999
30037
|
})
|
|
30000
30038
|
})]
|
|
30001
30039
|
})
|
|
30002
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
30040
|
+
}), /*#__PURE__*/jsx(Spreadsheet$1, {
|
|
30003
30041
|
gridId: 'crud-grid_properties',
|
|
30004
30042
|
applicationData: applicationData,
|
|
30005
30043
|
configuration: {
|
|
@@ -30676,7 +30714,7 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
30676
30714
|
})]
|
|
30677
30715
|
})]
|
|
30678
30716
|
})
|
|
30679
|
-
}), showTable() && /*#__PURE__*/jsx(Spreadsheet, {
|
|
30717
|
+
}), showTable() && /*#__PURE__*/jsx(Spreadsheet$1, {
|
|
30680
30718
|
gridId: 'renaming-grid_' + type + (type === 'options' ? '_' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo) : type === 'items' ? '_' + (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo) : ''),
|
|
30681
30719
|
applicationData: applicationData,
|
|
30682
30720
|
preFilter: type === 'options' && selectedFeature ? {
|
|
@@ -31152,7 +31190,7 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
|
31152
31190
|
})]
|
|
31153
31191
|
})]
|
|
31154
31192
|
})
|
|
31155
|
-
}), showTable() && /*#__PURE__*/jsx(Spreadsheet, {
|
|
31193
|
+
}), showTable() && /*#__PURE__*/jsx(Spreadsheet$1, {
|
|
31156
31194
|
gridId: 'crud-grid_exclusivity_' + type + ((_selectedSerie$series = selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.seriesName.DE) !== null && _selectedSerie$series !== void 0 ? _selectedSerie$series : ''),
|
|
31157
31195
|
applicationData: applicationData,
|
|
31158
31196
|
configuration: {
|
|
@@ -31214,7 +31252,7 @@ function TableTabGroups () {
|
|
|
31214
31252
|
})
|
|
31215
31253
|
})]
|
|
31216
31254
|
})
|
|
31217
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
31255
|
+
}), /*#__PURE__*/jsx(Spreadsheet$1, {
|
|
31218
31256
|
gridId: 'crud-grid_tabgroups',
|
|
31219
31257
|
applicationData: {
|
|
31220
31258
|
organizationId: organizationId,
|
|
@@ -31314,10 +31352,10 @@ function IDMEnricherEditor (_ref) {
|
|
|
31314
31352
|
display: 'flex',
|
|
31315
31353
|
flexDirection: 'column'
|
|
31316
31354
|
},
|
|
31317
|
-
children: /*#__PURE__*/jsx(Content$
|
|
31355
|
+
children: /*#__PURE__*/jsx(Content$2, {})
|
|
31318
31356
|
});
|
|
31319
31357
|
}
|
|
31320
|
-
function Content$
|
|
31358
|
+
function Content$2() {
|
|
31321
31359
|
return /*#__PURE__*/jsxs(Routes, {
|
|
31322
31360
|
children: [/*#__PURE__*/jsx(Route, {
|
|
31323
31361
|
index: true,
|
|
@@ -31351,6 +31389,583 @@ function Content$1() {
|
|
|
31351
31389
|
});
|
|
31352
31390
|
}
|
|
31353
31391
|
|
|
31392
|
+
function ownKeys$6(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; }
|
|
31393
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31394
|
+
function Spreadsheet (props) {
|
|
31395
|
+
var root = useStore();
|
|
31396
|
+
return /*#__PURE__*/jsx(Spreadsheet$2, _objectSpread$6(_objectSpread$6({}, props), {}, {
|
|
31397
|
+
darkMode: root.contentStore.theme == 'darkmode',
|
|
31398
|
+
jwt: root.dataStore.jwt
|
|
31399
|
+
}));
|
|
31400
|
+
}
|
|
31401
|
+
|
|
31402
|
+
function useNavigation () {
|
|
31403
|
+
var root = useStore();
|
|
31404
|
+
var _useSearchParams = useSearchParams(),
|
|
31405
|
+
_useSearchParams2 = _slicedToArray(_useSearchParams, 1),
|
|
31406
|
+
searchParams = _useSearchParams2[0];
|
|
31407
|
+
var navigate = useNavigate();
|
|
31408
|
+
var _useParams = useParams(),
|
|
31409
|
+
catalogId = _useParams.packageId;
|
|
31410
|
+
|
|
31411
|
+
/**
|
|
31412
|
+
*
|
|
31413
|
+
* @param currentCatalog the current catalog id to be updated in the url
|
|
31414
|
+
* @param module the current module to be updated in the url
|
|
31415
|
+
* @param path a path string to change the relative path position, ie: '../../' to go up two level
|
|
31416
|
+
*/
|
|
31417
|
+
var updateNavigation = useCallback(function (currentCatalog, modules) {
|
|
31418
|
+
var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
31419
|
+
navigate(path + currentCatalog + '/' + modules.join('/') + (searchParams ? '?' + searchParams.toString() : ''));
|
|
31420
|
+
}, [searchParams]);
|
|
31421
|
+
return {
|
|
31422
|
+
updateNavigation: updateNavigation,
|
|
31423
|
+
organizationId: root.dataStore.organizationId,
|
|
31424
|
+
apiConfig: root.configurationStore.apiConfig,
|
|
31425
|
+
catalogId: catalogId
|
|
31426
|
+
};
|
|
31427
|
+
}
|
|
31428
|
+
|
|
31429
|
+
function TableCatalogs () {
|
|
31430
|
+
var root = useStore();
|
|
31431
|
+
var _useTranslation = useTranslation(),
|
|
31432
|
+
t = _useTranslation.t;
|
|
31433
|
+
var _useNavigation = useNavigation(),
|
|
31434
|
+
organizationId = _useNavigation.organizationId,
|
|
31435
|
+
apiConfig = _useNavigation.apiConfig;
|
|
31436
|
+
var applicationData = useMemo(function () {
|
|
31437
|
+
return {
|
|
31438
|
+
organizationId: organizationId
|
|
31439
|
+
};
|
|
31440
|
+
}, [organizationId]);
|
|
31441
|
+
useEffect(function () {
|
|
31442
|
+
//remove the packages submenu when opening this module
|
|
31443
|
+
root.contentStore.removeAdditionalElement('idmenricher');
|
|
31444
|
+
}, []);
|
|
31445
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
31446
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
31447
|
+
title: t('backoffice.menu.items.label.IDMEditorTableCatalogs')
|
|
31448
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
31449
|
+
gridId: 'catalogs-grid',
|
|
31450
|
+
applicationData: applicationData,
|
|
31451
|
+
configuration: {
|
|
31452
|
+
type: 'dotnetSSM',
|
|
31453
|
+
apiInterface: {
|
|
31454
|
+
read: apiConfig.idmService + '/v3.0/catalogs?organizationId=${organizationId}',
|
|
31455
|
+
create: apiConfig.idmService + '/v3.0/catalogs',
|
|
31456
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${_id}',
|
|
31457
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${_id}',
|
|
31458
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${_id}'
|
|
31459
|
+
},
|
|
31460
|
+
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
|
31461
|
+
floatingFilter: true,
|
|
31462
|
+
colDef: [{
|
|
31463
|
+
headerName: 'backoffice.idmCatalog.packages.label.name',
|
|
31464
|
+
field: 'name',
|
|
31465
|
+
required: true
|
|
31466
|
+
}, {
|
|
31467
|
+
headerName: 'backoffice.idmCatalog.general.label.filename',
|
|
31468
|
+
field: 'filename',
|
|
31469
|
+
editable: false
|
|
31470
|
+
}, {
|
|
31471
|
+
headerName: 'backoffice.idmCatalog.general.label.filesize',
|
|
31472
|
+
field: 'size',
|
|
31473
|
+
cellDataType: 'number',
|
|
31474
|
+
editable: false
|
|
31475
|
+
}, {
|
|
31476
|
+
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
31477
|
+
field: '_id',
|
|
31478
|
+
editable: false,
|
|
31479
|
+
cellDataType: 'id'
|
|
31480
|
+
}, {
|
|
31481
|
+
headerName: 'backoffice.idmCatalog.general.label.hash',
|
|
31482
|
+
field: 'hash',
|
|
31483
|
+
editable: false
|
|
31484
|
+
}, {
|
|
31485
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
31486
|
+
field: 'lastUpdatedDate',
|
|
31487
|
+
cellDataType: 'dateString',
|
|
31488
|
+
editable: false
|
|
31489
|
+
}, {
|
|
31490
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
31491
|
+
field: 'lastUpdatedByDisplayText',
|
|
31492
|
+
editable: false
|
|
31493
|
+
}, {
|
|
31494
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
31495
|
+
field: 'createdDate',
|
|
31496
|
+
cellDataType: 'dateString',
|
|
31497
|
+
editable: false
|
|
31498
|
+
}, {
|
|
31499
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
31500
|
+
field: 'createdByDisplayText',
|
|
31501
|
+
editable: false
|
|
31502
|
+
}, {
|
|
31503
|
+
headerName: 'backoffice.idmCatalog.general.label.comment',
|
|
31504
|
+
field: 'comment'
|
|
31505
|
+
}, {
|
|
31506
|
+
headerName: 'backoffice.idmCatalog.general.label.version',
|
|
31507
|
+
children: [{
|
|
31508
|
+
headerName: 'backoffice.idmCatalog.general.label.major',
|
|
31509
|
+
field: 'major',
|
|
31510
|
+
cellDataType: 'number',
|
|
31511
|
+
editable: false
|
|
31512
|
+
}, {
|
|
31513
|
+
headerName: 'backoffice.idmCatalog.general.label.minor',
|
|
31514
|
+
field: 'minor',
|
|
31515
|
+
cellDataType: 'number',
|
|
31516
|
+
editable: false
|
|
31517
|
+
}, {
|
|
31518
|
+
headerName: 'backoffice.idmCatalog.general.label.revision',
|
|
31519
|
+
field: 'revision',
|
|
31520
|
+
cellDataType: 'number',
|
|
31521
|
+
editable: false
|
|
31522
|
+
}, {
|
|
31523
|
+
headerName: 'backoffice.idmCatalog.general.label.format',
|
|
31524
|
+
field: 'format',
|
|
31525
|
+
cellDataType: 'enum',
|
|
31526
|
+
customParams: {
|
|
31527
|
+
values: ['A', 'B', 'G', 'K', 'O', 'P', 'S', 'W', 'Z'],
|
|
31528
|
+
formatValue: function formatValue(value) {
|
|
31529
|
+
var displayNames = {
|
|
31530
|
+
A: 'Arbeitsplattenhersteller',
|
|
31531
|
+
B: 'Badmöbelhersteller',
|
|
31532
|
+
G: 'Gerätehersteller',
|
|
31533
|
+
K: 'Küchenmöbelhersteller',
|
|
31534
|
+
O: 'Büromöbelhersteller',
|
|
31535
|
+
P: 'Polstermöbelhersteller',
|
|
31536
|
+
S: 'Sanitärhersteller',
|
|
31537
|
+
W: 'Wohnmöbelhersteller',
|
|
31538
|
+
Z: 'Zubehörhersteller'
|
|
31539
|
+
};
|
|
31540
|
+
return value + ' - ' + displayNames[value];
|
|
31541
|
+
}
|
|
31542
|
+
}
|
|
31543
|
+
}]
|
|
31544
|
+
}, {
|
|
31545
|
+
headerName: 'backoffice.idmCatalog.general.label.catalog',
|
|
31546
|
+
children: [{
|
|
31547
|
+
field: 'isoLanguageIds',
|
|
31548
|
+
headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
|
|
31549
|
+
cellDataType: 'enum',
|
|
31550
|
+
editable: true,
|
|
31551
|
+
required: true,
|
|
31552
|
+
customParams: {
|
|
31553
|
+
values: ['DE', 'EN', 'FR', 'IT'],
|
|
31554
|
+
multiSelect: true
|
|
31555
|
+
}
|
|
31556
|
+
}, {
|
|
31557
|
+
headerName: 'backoffice.idmCatalog.general.label.currencyKey',
|
|
31558
|
+
field: 'currencyKey'
|
|
31559
|
+
}, {
|
|
31560
|
+
headerName: 'backoffice.idmCatalog.general.label.catalogNumber',
|
|
31561
|
+
field: 'catalogNumber'
|
|
31562
|
+
}, {
|
|
31563
|
+
headerName: 'backoffice.idmCatalog.general.label.catalogName',
|
|
31564
|
+
marryChildren: true,
|
|
31565
|
+
children: [{
|
|
31566
|
+
field: 'catalogName.DE',
|
|
31567
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31568
|
+
isDictionary: true
|
|
31569
|
+
}, {
|
|
31570
|
+
field: 'catalogName.EN',
|
|
31571
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
31572
|
+
isDictionary: true
|
|
31573
|
+
}, {
|
|
31574
|
+
field: 'catalogName.FR',
|
|
31575
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
31576
|
+
isDictionary: true
|
|
31577
|
+
}, {
|
|
31578
|
+
field: 'catalogName.IT',
|
|
31579
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
31580
|
+
isDictionary: true
|
|
31581
|
+
}]
|
|
31582
|
+
}, {
|
|
31583
|
+
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
|
31584
|
+
field: 'validFromDate',
|
|
31585
|
+
cellDataType: 'dateString'
|
|
31586
|
+
}, {
|
|
31587
|
+
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
|
31588
|
+
field: 'validUntilDate',
|
|
31589
|
+
cellDataType: 'dateString'
|
|
31590
|
+
}, {
|
|
31591
|
+
headerName: 'backoffice.idmCatalog.general.label.fileId',
|
|
31592
|
+
field: 'fileId',
|
|
31593
|
+
cellDataType: 'boolean'
|
|
31594
|
+
}, {
|
|
31595
|
+
headerName: 'backoffice.idmCatalog.general.label.catalogMark',
|
|
31596
|
+
field: 'catalogMark',
|
|
31597
|
+
cellDataType: 'enum',
|
|
31598
|
+
customParams: {
|
|
31599
|
+
values: ['K', 'B', 'V', 'G'],
|
|
31600
|
+
formatValue: function formatValue(value) {
|
|
31601
|
+
var displayNames = {
|
|
31602
|
+
K: 'Katalogdaten',
|
|
31603
|
+
B: 'Blockdaten mit Preisen',
|
|
31604
|
+
V: 'Blockdaten ohne (aber fiktiven) Preise',
|
|
31605
|
+
F: 'Korrekturupdate'
|
|
31606
|
+
};
|
|
31607
|
+
return value + ' - ' + displayNames[value];
|
|
31608
|
+
}
|
|
31609
|
+
}
|
|
31610
|
+
}, {
|
|
31611
|
+
headerName: 'backoffice.idmCatalog.general.label.catalogMergeType',
|
|
31612
|
+
field: 'catalogMergeType',
|
|
31613
|
+
cellDataType: 'boolean'
|
|
31614
|
+
}, {
|
|
31615
|
+
headerName: 'backoffice.idmCatalog.general.label.catalogDataVersion',
|
|
31616
|
+
field: 'catalogDataVersion',
|
|
31617
|
+
cellDataType: 'dateString'
|
|
31618
|
+
}, {
|
|
31619
|
+
headerName: 'backoffice.idmCatalog.general.label.catalogInfo',
|
|
31620
|
+
marryChildren: true,
|
|
31621
|
+
children: [{
|
|
31622
|
+
field: 'catalogInfo.DE',
|
|
31623
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31624
|
+
isDictionary: true
|
|
31625
|
+
}, {
|
|
31626
|
+
field: 'catalogInfo.EN',
|
|
31627
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
31628
|
+
isDictionary: true
|
|
31629
|
+
}, {
|
|
31630
|
+
field: 'catalogInfo.FR',
|
|
31631
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
31632
|
+
isDictionary: true
|
|
31633
|
+
}, {
|
|
31634
|
+
field: 'catalogInfo.IT',
|
|
31635
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
31636
|
+
isDictionary: true
|
|
31637
|
+
}]
|
|
31638
|
+
}, {
|
|
31639
|
+
headerName: 'backoffice.idmCatalog.general.label.fallbackLanguage',
|
|
31640
|
+
field: 'fallbackLanguage'
|
|
31641
|
+
}]
|
|
31642
|
+
}, {
|
|
31643
|
+
headerName: 'backoffice.idmCatalog.general.label.identity',
|
|
31644
|
+
children: [{
|
|
31645
|
+
headerName: 'backoffice.idmCatalog.general.label.dataVersion',
|
|
31646
|
+
field: 'dataVersion',
|
|
31647
|
+
cellDataType: 'dateString'
|
|
31648
|
+
}, {
|
|
31649
|
+
field: 'catalogId',
|
|
31650
|
+
headerName: 'backoffice.idmCatalog.general.label.catalogId',
|
|
31651
|
+
required: true
|
|
31652
|
+
}, {
|
|
31653
|
+
field: 'catalogVersion',
|
|
31654
|
+
headerName: 'backoffice.idmCatalog.general.label.catalogVersion',
|
|
31655
|
+
cellDataType: 'number'
|
|
31656
|
+
}]
|
|
31657
|
+
}, {
|
|
31658
|
+
headerName: 'backoffice.idmCatalog.general.label.supplier',
|
|
31659
|
+
children: [{
|
|
31660
|
+
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
31661
|
+
field: 'isoCountryId'
|
|
31662
|
+
}, {
|
|
31663
|
+
field: 'glnNo',
|
|
31664
|
+
headerName: 'backoffice.idmCatalog.general.label.glnNo'
|
|
31665
|
+
}, {
|
|
31666
|
+
field: 'weeeNo',
|
|
31667
|
+
headerName: 'backoffice.idmCatalog.general.label.weeeNo'
|
|
31668
|
+
}, {
|
|
31669
|
+
headerName: 'backoffice.idmCatalog.general.label.manufacturerName1',
|
|
31670
|
+
field: 'manufacturerName1'
|
|
31671
|
+
}, {
|
|
31672
|
+
headerName: 'backoffice.idmCatalog.general.label.manufacturerName2',
|
|
31673
|
+
field: 'manufacturerName2'
|
|
31674
|
+
}, {
|
|
31675
|
+
headerName: 'backoffice.idmCatalog.general.label.email',
|
|
31676
|
+
field: 'email'
|
|
31677
|
+
}, {
|
|
31678
|
+
headerName: 'backoffice.idmCatalog.general.label.internetAddress',
|
|
31679
|
+
field: 'internetAddress'
|
|
31680
|
+
}, {
|
|
31681
|
+
headerName: 'backoffice.idmCatalog.general.label.street',
|
|
31682
|
+
field: 'street'
|
|
31683
|
+
}, {
|
|
31684
|
+
headerName: 'backoffice.idmCatalog.general.label.zipCodeStreet',
|
|
31685
|
+
field: 'zipCodeStreet'
|
|
31686
|
+
}, {
|
|
31687
|
+
headerName: 'backoffice.idmCatalog.general.label.city',
|
|
31688
|
+
field: 'city'
|
|
31689
|
+
}, {
|
|
31690
|
+
headerName: 'backoffice.idmCatalog.general.label.zipCodePostBox',
|
|
31691
|
+
field: 'zipCodePostBox'
|
|
31692
|
+
}, {
|
|
31693
|
+
headerName: 'backoffice.idmCatalog.general.label.postBox',
|
|
31694
|
+
field: 'postBox'
|
|
31695
|
+
}, {
|
|
31696
|
+
headerName: 'backoffice.idmCatalog.general.label.telephoneSwitchBoard',
|
|
31697
|
+
field: 'telephoneSwitchBoard'
|
|
31698
|
+
}, {
|
|
31699
|
+
headerName: 'backoffice.idmCatalog.general.label.faxSwitchBoard',
|
|
31700
|
+
field: 'faxSwitchBoard'
|
|
31701
|
+
}]
|
|
31702
|
+
}, {
|
|
31703
|
+
headerName: 'backoffice.idmCatalog.general.label.contact1',
|
|
31704
|
+
children: [{
|
|
31705
|
+
headerName: 'backoffice.idmCatalog.general.label.contactPersonNo',
|
|
31706
|
+
field: 'contactPersonNo1'
|
|
31707
|
+
}, {
|
|
31708
|
+
headerName: 'backoffice.idmCatalog.general.label.contactRole',
|
|
31709
|
+
field: 'contactRole1'
|
|
31710
|
+
}, {
|
|
31711
|
+
headerName: 'backoffice.idmCatalog.general.label.contactName',
|
|
31712
|
+
field: 'contactName1'
|
|
31713
|
+
}, {
|
|
31714
|
+
headerName: 'backoffice.idmCatalog.general.label.firstName',
|
|
31715
|
+
field: 'firstName1'
|
|
31716
|
+
}, {
|
|
31717
|
+
headerName: 'backoffice.idmCatalog.general.label.formOfAddress',
|
|
31718
|
+
field: 'formOfAddress1',
|
|
31719
|
+
cellDataType: 'enum',
|
|
31720
|
+
customParams: {
|
|
31721
|
+
values: [1, 2],
|
|
31722
|
+
formatValue: function formatValue(value) {
|
|
31723
|
+
var displayNames = {
|
|
31724
|
+
1: 'Frau',
|
|
31725
|
+
2: 'Herr'
|
|
31726
|
+
};
|
|
31727
|
+
return value + ' - ' + displayNames[value];
|
|
31728
|
+
}
|
|
31729
|
+
}
|
|
31730
|
+
}, {
|
|
31731
|
+
headerName: 'backoffice.idmCatalog.general.label.department',
|
|
31732
|
+
field: 'department1'
|
|
31733
|
+
}, {
|
|
31734
|
+
headerName: 'backoffice.idmCatalog.general.label.telephone',
|
|
31735
|
+
field: 'telephone1'
|
|
31736
|
+
}, {
|
|
31737
|
+
headerName: 'backoffice.idmCatalog.general.label.fax',
|
|
31738
|
+
field: 'fax1'
|
|
31739
|
+
}, {
|
|
31740
|
+
headerName: 'backoffice.idmCatalog.general.label.email',
|
|
31741
|
+
field: 'email1'
|
|
31742
|
+
}, {
|
|
31743
|
+
headerName: 'backoffice.idmCatalog.general.label.street',
|
|
31744
|
+
field: 'street1'
|
|
31745
|
+
}, {
|
|
31746
|
+
headerName: 'backoffice.idmCatalog.general.label.zipCodeStreet',
|
|
31747
|
+
field: 'zipCodeStreet1'
|
|
31748
|
+
}, {
|
|
31749
|
+
headerName: 'backoffice.idmCatalog.general.label.city',
|
|
31750
|
+
field: 'city1'
|
|
31751
|
+
}, {
|
|
31752
|
+
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
31753
|
+
field: 'isoCountryId1'
|
|
31754
|
+
}]
|
|
31755
|
+
}, {
|
|
31756
|
+
headerName: 'backoffice.idmCatalog.general.label.contact2',
|
|
31757
|
+
children: [{
|
|
31758
|
+
headerName: 'backoffice.idmCatalog.general.label.contactPersonNo',
|
|
31759
|
+
field: 'contactPersonNo1'
|
|
31760
|
+
}, {
|
|
31761
|
+
headerName: 'backoffice.idmCatalog.general.label.contactName',
|
|
31762
|
+
field: 'contactName2'
|
|
31763
|
+
}, {
|
|
31764
|
+
headerName: 'backoffice.idmCatalog.general.label.firstName',
|
|
31765
|
+
field: 'firstName2'
|
|
31766
|
+
}, {
|
|
31767
|
+
headerName: 'backoffice.idmCatalog.general.label.formOfAddress',
|
|
31768
|
+
field: 'formOfAddress2',
|
|
31769
|
+
cellDataType: 'enum',
|
|
31770
|
+
customParams: {
|
|
31771
|
+
values: [1, 2],
|
|
31772
|
+
formatValue: function formatValue(value) {
|
|
31773
|
+
var displayNames = {
|
|
31774
|
+
1: 'Frau',
|
|
31775
|
+
2: 'Herr'
|
|
31776
|
+
};
|
|
31777
|
+
return value + ' - ' + displayNames[value];
|
|
31778
|
+
}
|
|
31779
|
+
}
|
|
31780
|
+
}, {
|
|
31781
|
+
headerName: 'backoffice.idmCatalog.general.label.department',
|
|
31782
|
+
field: 'department2'
|
|
31783
|
+
}, {
|
|
31784
|
+
headerName: 'backoffice.idmCatalog.general.label.telephone',
|
|
31785
|
+
field: 'telephone2'
|
|
31786
|
+
}, {
|
|
31787
|
+
headerName: 'backoffice.idmCatalog.general.label.fax',
|
|
31788
|
+
field: 'fax2'
|
|
31789
|
+
}, {
|
|
31790
|
+
headerName: 'backoffice.idmCatalog.general.label.email',
|
|
31791
|
+
field: 'email2'
|
|
31792
|
+
}, {
|
|
31793
|
+
headerName: 'backoffice.idmCatalog.general.label.street',
|
|
31794
|
+
field: 'street2'
|
|
31795
|
+
}, {
|
|
31796
|
+
headerName: 'backoffice.idmCatalog.general.label.zipCodeStreet',
|
|
31797
|
+
field: 'zipCodeStreet2'
|
|
31798
|
+
}, {
|
|
31799
|
+
headerName: 'backoffice.idmCatalog.general.label.city',
|
|
31800
|
+
field: 'city2'
|
|
31801
|
+
}, {
|
|
31802
|
+
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
31803
|
+
field: 'isoCountryId2'
|
|
31804
|
+
}]
|
|
31805
|
+
}, {
|
|
31806
|
+
headerName: 'backoffice.idmCatalog.general.label.priceSettings',
|
|
31807
|
+
children: [{
|
|
31808
|
+
headerName: 'backoffice.idmCatalog.general.label.priceTypeNo',
|
|
31809
|
+
field: 'priceTypeNo',
|
|
31810
|
+
cellDataType: 'number'
|
|
31811
|
+
}, {
|
|
31812
|
+
headerName: 'backoffice.idmCatalog.general.label.widthX',
|
|
31813
|
+
field: 'widthX',
|
|
31814
|
+
cellDataType: 'enum',
|
|
31815
|
+
customParams: {
|
|
31816
|
+
values: [0, 1],
|
|
31817
|
+
formatValue: function formatValue(value) {
|
|
31818
|
+
var displayNames = {
|
|
31819
|
+
0: 'default',
|
|
31820
|
+
1: 'Preis abhängig von der Breite'
|
|
31821
|
+
};
|
|
31822
|
+
return value + ' - ' + displayNames[value];
|
|
31823
|
+
}
|
|
31824
|
+
}
|
|
31825
|
+
}, {
|
|
31826
|
+
headerName: 'backoffice.idmCatalog.general.label.depthY',
|
|
31827
|
+
field: 'depthY',
|
|
31828
|
+
cellDataType: 'enum',
|
|
31829
|
+
customParams: {
|
|
31830
|
+
values: [0, 1],
|
|
31831
|
+
formatValue: function formatValue(value) {
|
|
31832
|
+
var displayNames = {
|
|
31833
|
+
0: 'default',
|
|
31834
|
+
1: 'Preis abhängig von der Tiefe'
|
|
31835
|
+
};
|
|
31836
|
+
return value + ' - ' + displayNames[value];
|
|
31837
|
+
}
|
|
31838
|
+
}
|
|
31839
|
+
}, {
|
|
31840
|
+
headerName: 'backoffice.idmCatalog.general.label.heightZ',
|
|
31841
|
+
field: 'heightZ',
|
|
31842
|
+
cellDataType: 'enum',
|
|
31843
|
+
customParams: {
|
|
31844
|
+
values: [0, 1],
|
|
31845
|
+
formatValue: function formatValue(value) {
|
|
31846
|
+
var displayNames = {
|
|
31847
|
+
0: 'default',
|
|
31848
|
+
1: 'Preis abhängig von der Höhe'
|
|
31849
|
+
};
|
|
31850
|
+
return value + ' - ' + displayNames[value];
|
|
31851
|
+
}
|
|
31852
|
+
}
|
|
31853
|
+
}, {
|
|
31854
|
+
headerName: 'backoffice.idmCatalog.general.label.basicUnit',
|
|
31855
|
+
field: 'basicUnit',
|
|
31856
|
+
cellDataType: 'enum',
|
|
31857
|
+
customParams: {
|
|
31858
|
+
values: [0, 1, 10, 100, 1000, 1000000, 1000000000],
|
|
31859
|
+
formatValue: function formatValue(value) {
|
|
31860
|
+
var displayNames = {
|
|
31861
|
+
0: 'Stückpreis',
|
|
31862
|
+
1: 'mm',
|
|
31863
|
+
10: 'cm',
|
|
31864
|
+
100: 'cm²',
|
|
31865
|
+
1000: 'm oder cm³',
|
|
31866
|
+
1000000: 'm²',
|
|
31867
|
+
1000000000: 'm³'
|
|
31868
|
+
};
|
|
31869
|
+
return value + ' - ' + displayNames[value];
|
|
31870
|
+
}
|
|
31871
|
+
}
|
|
31872
|
+
}, {
|
|
31873
|
+
headerName: 'backoffice.idmCatalog.general.label.roundingUnit',
|
|
31874
|
+
field: 'roundingUnit',
|
|
31875
|
+
cellDataType: 'enum',
|
|
31876
|
+
customParams: {
|
|
31877
|
+
values: [0, 1, 10, 100, 1000, 1000000, 1000000000],
|
|
31878
|
+
formatValue: function formatValue(value) {
|
|
31879
|
+
var displayNames = {
|
|
31880
|
+
0: 'Stückpreis',
|
|
31881
|
+
1: 'mm',
|
|
31882
|
+
10: 'cm',
|
|
31883
|
+
100: 'cm²',
|
|
31884
|
+
1000: 'm oder cm³',
|
|
31885
|
+
1000000: 'm²',
|
|
31886
|
+
1000000000: 'm³'
|
|
31887
|
+
};
|
|
31888
|
+
return value + ' - ' + displayNames[value];
|
|
31889
|
+
}
|
|
31890
|
+
}
|
|
31891
|
+
}, {
|
|
31892
|
+
headerName: 'backoffice.idmCatalog.general.label.roundingType',
|
|
31893
|
+
field: 'roundingType',
|
|
31894
|
+
cellDataType: 'enum',
|
|
31895
|
+
customParams: {
|
|
31896
|
+
values: [1, 2, 3],
|
|
31897
|
+
formatValue: function formatValue(value) {
|
|
31898
|
+
var displayNames = {
|
|
31899
|
+
1: 'aufrunden',
|
|
31900
|
+
10: 'abrunden',
|
|
31901
|
+
100: 'kaufmännisches Runden'
|
|
31902
|
+
};
|
|
31903
|
+
return value + ' - ' + displayNames[value];
|
|
31904
|
+
}
|
|
31905
|
+
}
|
|
31906
|
+
}, {
|
|
31907
|
+
headerName: 'backoffice.idmCatalog.general.label.basicPriceDependent',
|
|
31908
|
+
field: 'basicPriceDependent',
|
|
31909
|
+
cellDataType: 'boolean'
|
|
31910
|
+
}, {
|
|
31911
|
+
headerName: 'backoffice.idmCatalog.general.label.priceTypeFormula',
|
|
31912
|
+
field: 'priceTypeFormula'
|
|
31913
|
+
}, {
|
|
31914
|
+
headerName: 'backoffice.idmCatalog.general.label.priceTypeName',
|
|
31915
|
+
marryChildren: true,
|
|
31916
|
+
children: [{
|
|
31917
|
+
field: 'priceTypeName.DE',
|
|
31918
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31919
|
+
isDictionary: true
|
|
31920
|
+
}, {
|
|
31921
|
+
field: 'priceTypeName.EN',
|
|
31922
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
31923
|
+
isDictionary: true
|
|
31924
|
+
}, {
|
|
31925
|
+
field: 'priceTypeName.FR',
|
|
31926
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
31927
|
+
isDictionary: true
|
|
31928
|
+
}, {
|
|
31929
|
+
field: 'priceTypeName.IT',
|
|
31930
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
31931
|
+
isDictionary: true
|
|
31932
|
+
}]
|
|
31933
|
+
}, {
|
|
31934
|
+
headerName: 'backoffice.idmCatalog.general.label.priceTypeRules',
|
|
31935
|
+
field: 'priceTypeRules',
|
|
31936
|
+
cellDataType: 'array',
|
|
31937
|
+
cellRenderer: function cellRenderer(params) {
|
|
31938
|
+
var _params$value;
|
|
31939
|
+
return Array.isArray(params.value) ? (_params$value = params.value) === null || _params$value === void 0 ? void 0 : _params$value.join('; ') : params.value;
|
|
31940
|
+
}
|
|
31941
|
+
}]
|
|
31942
|
+
}]
|
|
31943
|
+
}
|
|
31944
|
+
})]
|
|
31945
|
+
});
|
|
31946
|
+
}
|
|
31947
|
+
|
|
31948
|
+
function IDMCatalogEditor (_ref) {
|
|
31949
|
+
_objectDestructuringEmpty(_ref);
|
|
31950
|
+
return /*#__PURE__*/jsx("div", {
|
|
31951
|
+
style: {
|
|
31952
|
+
height: '85vh',
|
|
31953
|
+
display: 'flex',
|
|
31954
|
+
flexDirection: 'column'
|
|
31955
|
+
},
|
|
31956
|
+
children: /*#__PURE__*/jsx(Content$1, {})
|
|
31957
|
+
});
|
|
31958
|
+
}
|
|
31959
|
+
function Content$1() {
|
|
31960
|
+
return /*#__PURE__*/jsx(Routes, {
|
|
31961
|
+
children: /*#__PURE__*/jsx(Route, {
|
|
31962
|
+
index: true,
|
|
31963
|
+
path: "",
|
|
31964
|
+
element: /*#__PURE__*/jsx(TableCatalogs, {})
|
|
31965
|
+
})
|
|
31966
|
+
}) /*at the moment nothing else*/;
|
|
31967
|
+
}
|
|
31968
|
+
|
|
31354
31969
|
function ownKeys$5(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; }
|
|
31355
31970
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31356
31971
|
var ContentWrapper = function ContentWrapper(_ref) {
|
|
@@ -31461,6 +32076,9 @@ var ContentCard = observer(function (_ref3) {
|
|
|
31461
32076
|
}, configId), configuration.type == 'IDMEnricherEditor' && /*#__PURE__*/jsx(IDMEnricherEditor, {
|
|
31462
32077
|
configuration: configuration,
|
|
31463
32078
|
id: configId
|
|
32079
|
+
}, configId), configuration.type == 'IDMCatalogEditor' && /*#__PURE__*/jsx(IDMCatalogEditor, {
|
|
32080
|
+
configuration: configuration,
|
|
32081
|
+
id: configId
|
|
31464
32082
|
}, configId)]
|
|
31465
32083
|
});
|
|
31466
32084
|
});
|