@crystaldesign/diva-backoffice 25.5.0-beta.3 → 25.5.0-beta.31
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 +1026 -846
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts +14 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts +20 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CatalogEditor/DragDropUpload/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts +1 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatures/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts +30 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/JsonEditor/index.d.ts +1 -1
- package/build/types/backoffice/src/ui/JsonEditor/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/BaseTable/index.d.ts.map +1 -1
- package/package.json +10 -10
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogOptions.d.ts +0 -9
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogOptions.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogOptions/index.d.ts +0 -5
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogOptions/index.d.ts.map +0 -1
package/build/esm/index.js
CHANGED
@@ -151,8 +151,8 @@ import PushpinOutlined from '@ant-design/icons/lib/icons/PushpinOutlined';
|
|
151
151
|
function _createForOfIteratorHelper$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
152
152
|
function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
|
153
153
|
function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
154
|
-
function ownKeys$
|
155
|
-
function _objectSpread$
|
154
|
+
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; }
|
155
|
+
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; }
|
156
156
|
var LOG$e = getLogger('Backoffice', 'ApplyMapping');
|
157
157
|
function applyMapping (_ref) {
|
158
158
|
var mappable = _ref.mappable,
|
@@ -173,10 +173,10 @@ function applyMapping (_ref) {
|
|
173
173
|
var newValue = {};
|
174
174
|
newValue[newKey] = valueToAdd;
|
175
175
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
176
|
-
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$
|
176
|
+
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$Z(_objectSpread$Z({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
177
177
|
return startValue;
|
178
178
|
}
|
179
|
-
if (newIdx == 1) return _objectSpread$
|
179
|
+
if (newIdx == 1) return _objectSpread$Z(_objectSpread$Z({}, startValue), newValue);
|
180
180
|
return _getTarget(idx + 1, keys, startValue, newValue);
|
181
181
|
};
|
182
182
|
returnValue = _getTarget(0, key.split('.'), returnValue, value);
|
@@ -479,8 +479,8 @@ function getLeafColumns(columns) {
|
|
479
479
|
});
|
480
480
|
}
|
481
481
|
|
482
|
-
function ownKeys$
|
483
|
-
function _objectSpread$
|
482
|
+
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; }
|
483
|
+
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; }
|
484
484
|
var LOG$d = getLogger('Backoffice', 'ApiHandler');
|
485
485
|
var jp = require('jsonpath');
|
486
486
|
var _default$d = /*#__PURE__*/function () {
|
@@ -659,7 +659,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
659
659
|
_context2.next = 20;
|
660
660
|
return fetch(finalUrl, {
|
661
661
|
method: this._updateMethod,
|
662
|
-
headers: _objectSpread$
|
662
|
+
headers: _objectSpread$Y(_objectSpread$Y({}, jwt ? {
|
663
663
|
Authorization: 'Bearer ' + jwt
|
664
664
|
} : {}), {}, {
|
665
665
|
'Content-Type': 'application/json'
|
@@ -752,7 +752,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
752
752
|
rootStore: this._rootStore,
|
753
753
|
fallBackToParams: true
|
754
754
|
});
|
755
|
-
if (data) createData = _objectSpread$
|
755
|
+
if (data) createData = _objectSpread$Y({}, data);
|
756
756
|
} else if (data !== undefined) {
|
757
757
|
createData = applyMapping({
|
758
758
|
mappable: data,
|
@@ -1014,7 +1014,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1014
1014
|
throw new Error('Read List endpoint is missing in configuration.');
|
1015
1015
|
case 2:
|
1016
1016
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
1017
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
1017
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$Y(_objectSpread$Y({}, filterServerSide), {}, {
|
1018
1018
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
1019
1019
|
baseUrl: this._readListUrl,
|
1020
1020
|
prefilter: prefilter
|
@@ -1034,7 +1034,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1034
1034
|
});
|
1035
1035
|
case 6:
|
1036
1036
|
response = _context8.sent;
|
1037
|
-
return _context8.abrupt("return", _objectSpread$
|
1037
|
+
return _context8.abrupt("return", _objectSpread$Y(_objectSpread$Y({}, response), {}, {
|
1038
1038
|
data: response.data.map(function (d) {
|
1039
1039
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
1040
1040
|
})
|
@@ -1058,7 +1058,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1058
1058
|
throw new Error('Read List endpoint is missing in configuration.');
|
1059
1059
|
}
|
1060
1060
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
1061
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
1061
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$Y(_objectSpread$Y({}, filterServerSide), {}, {
|
1062
1062
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
1063
1063
|
baseUrl: this._readListUrl,
|
1064
1064
|
prefilter: prefilter
|
@@ -1265,8 +1265,8 @@ var _default$c = /*#__PURE__*/function (_ApiHandler) {
|
|
1265
1265
|
}]);
|
1266
1266
|
}(_default$d);
|
1267
1267
|
|
1268
|
-
function ownKeys$
|
1269
|
-
function _objectSpread$
|
1268
|
+
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; }
|
1269
|
+
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; }
|
1270
1270
|
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)); }
|
1271
1271
|
function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() { return !!t; })(); }
|
1272
1272
|
var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
@@ -1365,7 +1365,7 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
1365
1365
|
_context2.next = 5;
|
1366
1366
|
return fetch(this._createUrl + '?ref=true', {
|
1367
1367
|
method: this._createMethod,
|
1368
|
-
headers: _objectSpread$
|
1368
|
+
headers: _objectSpread$X({}, jwt ? {
|
1369
1369
|
Authorization: 'Bearer ' + jwt
|
1370
1370
|
} : {}),
|
1371
1371
|
body: data
|
@@ -1743,8 +1743,8 @@ var _default$8 = /*#__PURE__*/function (_ApiHandler) {
|
|
1743
1743
|
}]);
|
1744
1744
|
}(_default$d);
|
1745
1745
|
|
1746
|
-
function ownKeys$
|
1747
|
-
function _objectSpread$
|
1746
|
+
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; }
|
1747
|
+
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; }
|
1748
1748
|
var _default$7 = /*#__PURE__*/function () {
|
1749
1749
|
function _default(root) {
|
1750
1750
|
_classCallCheck(this, _default);
|
@@ -1780,7 +1780,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
1780
1780
|
var _i$permission;
|
1781
1781
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
1782
1782
|
});
|
1783
|
-
config = _objectSpread$
|
1783
|
+
config = _objectSpread$W(_objectSpread$W({}, config), {}, {
|
1784
1784
|
items: filteredItems
|
1785
1785
|
});
|
1786
1786
|
}
|
@@ -1790,7 +1790,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
1790
1790
|
key: "setConfiguration",
|
1791
1791
|
value: function setConfiguration(config, apiConfig, t, lang) {
|
1792
1792
|
this._apiConfig = apiConfig;
|
1793
|
-
var configuration = loadConfiguration(t, this.root, config, lang);
|
1793
|
+
var configuration = loadConfiguration(t, this.root, config, lang, apiConfig);
|
1794
1794
|
|
1795
1795
|
//merge with configuration so everything can changed by config
|
1796
1796
|
if (config.configuration) {
|
@@ -1836,7 +1836,7 @@ function runThroughObjectReqursive(obj, apiConfig) {
|
|
1836
1836
|
}
|
1837
1837
|
}
|
1838
1838
|
}
|
1839
|
-
function loadConfiguration(t, root, config, lang) {
|
1839
|
+
function loadConfiguration(t, root, config, lang, apiConfig) {
|
1840
1840
|
var _organization$setting, _organization$setting2, _organization$setting3, _organization$setting4, _parentOrganizations, _parentOrganizations2, _parentOrganizations3, _parentOrganizations4, _parentOrganizations5, _parentOrganizations6, _parentOrganizations7, _parentOrganizations8, _parentOrganizations9, _parentOrganizations10, _parentOrganizations11, _parentOrganizations12, _parentOrganizations13;
|
1841
1841
|
var organization = toJS(root.dataStore.currentOrganization);
|
1842
1842
|
return {
|
@@ -2566,6 +2566,169 @@ function loadConfiguration(t, root, config, lang) {
|
|
2566
2566
|
}
|
2567
2567
|
}]
|
2568
2568
|
},
|
2569
|
+
TableTaskStatusIdm: {
|
2570
|
+
type: 'Table',
|
2571
|
+
canRefresh: true,
|
2572
|
+
autoRefresh: 60000,
|
2573
|
+
title: t('backoffice.table.taskstatusversioning.title.taskstatusidm'),
|
2574
|
+
columns: [{
|
2575
|
+
title: 'ID',
|
2576
|
+
field: '_id',
|
2577
|
+
sorter: 2,
|
2578
|
+
filter: 'advanced',
|
2579
|
+
width: 200,
|
2580
|
+
hidden: true
|
2581
|
+
}, {
|
2582
|
+
title: t('backoffice.table.taskstatusversioning.columns.model'),
|
2583
|
+
field: 'warning',
|
2584
|
+
hidden: true
|
2585
|
+
}, {
|
2586
|
+
title: t('backoffice.table.taskstatusversioning.columns.model'),
|
2587
|
+
field: 'error',
|
2588
|
+
hidden: true
|
2589
|
+
}, {
|
2590
|
+
title: t('backoffice.table.taskstatusversioning.columns.taskname'),
|
2591
|
+
field: 'taskName',
|
2592
|
+
sorter: 2,
|
2593
|
+
filter: 'advanced',
|
2594
|
+
width: 400
|
2595
|
+
}, {
|
2596
|
+
title: t('backoffice.table.taskstatusversioning.columns.fileName'),
|
2597
|
+
field: 'fileName',
|
2598
|
+
sorter: 2,
|
2599
|
+
filter: 'advanced',
|
2600
|
+
width: 400
|
2601
|
+
}, {
|
2602
|
+
title: t('backoffice.table.taskstatusversioning.columns.organisationid'),
|
2603
|
+
field: 'organizationId',
|
2604
|
+
hidden: true
|
2605
|
+
}, {
|
2606
|
+
title: t('backoffice.table.taskstatusversioning.columns.organisation'),
|
2607
|
+
field: 'organizationDisplayName',
|
2608
|
+
field2: 'organizationId',
|
2609
|
+
type: 'link',
|
2610
|
+
link: '/backoffice?lang=de&organizationId={field2}&module=Collections',
|
2611
|
+
sorter: 200,
|
2612
|
+
filter: 'advanced',
|
2613
|
+
width: 200
|
2614
|
+
}, {
|
2615
|
+
title: t('backoffice.table.taskstatusversioning.columns.user'),
|
2616
|
+
field: 'user.fullName',
|
2617
|
+
sorter: 3,
|
2618
|
+
filter: 'advanced',
|
2619
|
+
width: 200
|
2620
|
+
}, {
|
2621
|
+
title: t('backoffice.table.taskstatusversioning.columns.user'),
|
2622
|
+
field: 'cancelledByUser.fullName',
|
2623
|
+
sorter: 3,
|
2624
|
+
filter: 'advanced',
|
2625
|
+
width: 200,
|
2626
|
+
hidden: true
|
2627
|
+
}, {
|
2628
|
+
title: t('backoffice.table.taskstatusversioning.columns.status'),
|
2629
|
+
field: 'progress.status',
|
2630
|
+
color: [{
|
2631
|
+
color: 'blue',
|
2632
|
+
onValues: ['InProgress', 'Waiting', 'Created', 'Started'],
|
2633
|
+
operations: ['eq']
|
2634
|
+
}, {
|
2635
|
+
color: 'green',
|
2636
|
+
onValues: ['Done'],
|
2637
|
+
operations: ['eq']
|
2638
|
+
}, {
|
2639
|
+
color: 'orange',
|
2640
|
+
onValues: ['DoneWithWarning', 'Cancel', 'Cancelled'],
|
2641
|
+
operations: ['eq']
|
2642
|
+
}, {
|
2643
|
+
color: 'red',
|
2644
|
+
onValues: ['Error'],
|
2645
|
+
operations: ['eq']
|
2646
|
+
}],
|
2647
|
+
filter: 'advanced',
|
2648
|
+
width: 200
|
2649
|
+
}, {
|
2650
|
+
title: t('backoffice.table.taskstatusversioning.columns.status'),
|
2651
|
+
field: 'progress.step',
|
2652
|
+
filter: 'advanced',
|
2653
|
+
width: 200,
|
2654
|
+
hidden: true
|
2655
|
+
}, {
|
2656
|
+
title: t('backoffice.table.taskstatusversioning.columns.status'),
|
2657
|
+
field: 'progress.percentage',
|
2658
|
+
field2: 'progress.step',
|
2659
|
+
width: 400,
|
2660
|
+
type: 'progress'
|
2661
|
+
}, {
|
2662
|
+
title: t('backoffice.table.taskstatusversioning.columns.created'),
|
2663
|
+
field: 'created',
|
2664
|
+
sorter: 1,
|
2665
|
+
defaultSortOrder: 'descend',
|
2666
|
+
type: 'unixTimeStamp',
|
2667
|
+
width: 200
|
2668
|
+
}, {
|
2669
|
+
title: t('backoffice.table.taskstatusversioning.columns.lastUpdated'),
|
2670
|
+
field: 'lastUpdated',
|
2671
|
+
type: 'unixTimeStamp',
|
2672
|
+
width: 200
|
2673
|
+
}, {
|
2674
|
+
title: t('backoffice.table.taskstatusversioning.columns.lastUpdated'),
|
2675
|
+
field: 'startTime',
|
2676
|
+
type: 'unixTimeStamp',
|
2677
|
+
width: 200,
|
2678
|
+
hidden: true
|
2679
|
+
}, {
|
2680
|
+
title: t('backoffice.table.taskstatusversioning.columns.finished'),
|
2681
|
+
field: 'endTime',
|
2682
|
+
type: 'unixTimeStamp',
|
2683
|
+
width: 200
|
2684
|
+
}, {
|
2685
|
+
title: t('backoffice.table.taskstatusversioning.columns.server'),
|
2686
|
+
field: 'serverName',
|
2687
|
+
filter: 'advanced',
|
2688
|
+
width: 200
|
2689
|
+
}, {
|
2690
|
+
title: t('backoffice.table.taskstatusversioning.columns.type'),
|
2691
|
+
field: 'taskType',
|
2692
|
+
filter: 'advanced',
|
2693
|
+
width: 200
|
2694
|
+
}],
|
2695
|
+
filter: {
|
2696
|
+
toggle: {
|
2697
|
+
globalValue: 'organizationId',
|
2698
|
+
fields: ['organizationId'],
|
2699
|
+
label: t('backoffice.table.taskstatusversioning.filter.label.allorgs'),
|
2700
|
+
labelOff: t('backoffice.table.taskstatusversioning.filter.label.allorgs'),
|
2701
|
+
inverted: true,
|
2702
|
+
permission: 'backoffice_taskstatus_allorgs',
|
2703
|
+
isAnd: true
|
2704
|
+
},
|
2705
|
+
search: {
|
2706
|
+
fields: ['_id', 'progress.dataItems', 'taskName', 'organizationId', 'user.fullName', 'status', 'serverName', 'taskType']
|
2707
|
+
}
|
2708
|
+
},
|
2709
|
+
apiInterface: {
|
2710
|
+
read: {
|
2711
|
+
list: '${adminService}/taskStatus?filter=%5B%2B%5B%7BtaskType%2Ceq%2CIDM_IMPORT%7D%2C%7BtaskType%2Ceq%2CIDM_EXPORT%7D%5D%5D',
|
2712
|
+
fields: true,
|
2713
|
+
filterServerSide: true
|
2714
|
+
}
|
2715
|
+
},
|
2716
|
+
mapping: {
|
2717
|
+
type: 'query',
|
2718
|
+
map: [{
|
2719
|
+
globalValue: 'selectedOrganizationId',
|
2720
|
+
targetField: 'organizationId'
|
2721
|
+
}]
|
2722
|
+
},
|
2723
|
+
rowAction: [{
|
2724
|
+
actionType: 'Detail',
|
2725
|
+
type: 'Form',
|
2726
|
+
id: 'FormTaskStatusDetails',
|
2727
|
+
title: function title(data) {
|
2728
|
+
return t('backoffice.table.taskstatusversioning.rowAction.title') + ': ' + data.taskName;
|
2729
|
+
}
|
2730
|
+
}]
|
2731
|
+
},
|
2569
2732
|
TableTaskStatusCustom: {
|
2570
2733
|
type: 'Table',
|
2571
2734
|
canRefresh: true,
|
@@ -3501,7 +3664,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
3501
3664
|
url: 'https://gwc-app-p-app-api3.azurewebsites.net/odataretail'
|
3502
3665
|
}, {
|
3503
3666
|
type: 'url',
|
3504
|
-
url: '
|
3667
|
+
url: apiConfig.baseCdnUrl + '/static/xlsx/RETAIL-p.xlsx'
|
3505
3668
|
}]
|
3506
3669
|
},
|
3507
3670
|
apiInterface: {
|
@@ -3766,7 +3929,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
3766
3929
|
url: 'https://gwc-app-p-app-api3.azurewebsites.net/odataretail'
|
3767
3930
|
}, {
|
3768
3931
|
type: 'url',
|
3769
|
-
url: '
|
3932
|
+
url: apiConfig.baseCdnUrl + '/static/xlsx/RETAIL-p.xlsx'
|
3770
3933
|
}]
|
3771
3934
|
}
|
3772
3935
|
},
|
@@ -7846,7 +8009,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
7846
8009
|
}, {
|
7847
8010
|
name: ['settings', 'versioningToIDMService'],
|
7848
8011
|
label: t('backoffice.form.organizationdetails.items.versioningToIDMService'),
|
7849
|
-
permission: '
|
8012
|
+
permission: 'backoffice_admin_organizations',
|
7850
8013
|
hidden: function hidden(data) {
|
7851
8014
|
return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'ASSOCIATION';
|
7852
8015
|
},
|
@@ -12677,7 +12840,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
12677
12840
|
label: t('backoffice.iframece.download'),
|
12678
12841
|
download: [{
|
12679
12842
|
type: 'url',
|
12680
|
-
url: '
|
12843
|
+
url: apiConfig.baseCdnUrl + '/static/xlsx/CE-p.xlsx'
|
12681
12844
|
}, {
|
12682
12845
|
type: 'prefab',
|
12683
12846
|
prefab: 'connectionFileCE',
|
@@ -12734,8 +12897,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
12734
12897
|
var navOverlay = "nav-overlay-rKJNC";
|
12735
12898
|
var navSettings = "nav-settings-82cjv";
|
12736
12899
|
var menuLabel = "menu-label-4dXQk";
|
12737
|
-
var css_248z$
|
12738
|
-
styleInject(css_248z$
|
12900
|
+
var css_248z$w = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
|
12901
|
+
styleInject(css_248z$w);
|
12739
12902
|
|
12740
12903
|
function MenuLabel (_ref) {
|
12741
12904
|
var disabled = _ref.disabled,
|
@@ -13134,8 +13297,8 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13134
13297
|
}]);
|
13135
13298
|
}();
|
13136
13299
|
|
13137
|
-
function ownKeys$
|
13138
|
-
function _objectSpread$
|
13300
|
+
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; }
|
13301
|
+
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; }
|
13139
13302
|
function _createForOfIteratorHelper$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
13140
13303
|
function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
|
13141
13304
|
function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
@@ -13246,7 +13409,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13246
13409
|
if (index >= 0) {
|
13247
13410
|
this._additionalMenuElements[index] = {
|
13248
13411
|
key: key,
|
13249
|
-
element: _objectSpread$
|
13412
|
+
element: _objectSpread$V(_objectSpread$V({}, this._additionalMenuElements[index].element), {}, {
|
13250
13413
|
items: items,
|
13251
13414
|
selected: selected
|
13252
13415
|
})
|
@@ -13297,7 +13460,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13297
13460
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
13298
13461
|
this.root.navigate('/' + path);
|
13299
13462
|
}
|
13300
|
-
this._menuElement1 = _objectSpread$
|
13463
|
+
this._menuElement1 = _objectSpread$V(_objectSpread$V({}, this.menuElement1), {}, {
|
13301
13464
|
selected: this._selectedMenuKeys[0]
|
13302
13465
|
});
|
13303
13466
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
@@ -13553,7 +13716,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13553
13716
|
return items.filter(function (item) {
|
13554
13717
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
13555
13718
|
}).map(function (item) {
|
13556
|
-
return _objectSpread$
|
13719
|
+
return _objectSpread$V(_objectSpread$V({}, item), {}, {
|
13557
13720
|
items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
|
13558
13721
|
subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
13559
13722
|
});
|
@@ -13773,6 +13936,12 @@ var menu = [{
|
|
13773
13936
|
label: 'backoffice.menu.items.label.taskStatusAdminVersioning',
|
13774
13937
|
icon: 'FileZipOutlined',
|
13775
13938
|
permission: 'backoffice_admin_taskstatus_versioning'
|
13939
|
+
}, {
|
13940
|
+
id: 'TableTaskStatusIdm',
|
13941
|
+
path: 'taskstatusidm',
|
13942
|
+
label: 'backoffice.table.taskstatusversioning.title.taskstatusidm',
|
13943
|
+
icon: 'SwapOutlined',
|
13944
|
+
permission: 'backoffice_admin_taskstatus_idm'
|
13776
13945
|
}, {
|
13777
13946
|
id: 'TableTaskStatusCustom',
|
13778
13947
|
path: 'taskstatuscustom',
|
@@ -14697,8 +14866,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
14697
14866
|
return _createClass(_default);
|
14698
14867
|
}(_default$d);
|
14699
14868
|
|
14700
|
-
function ownKeys$
|
14701
|
-
function _objectSpread$
|
14869
|
+
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; }
|
14870
|
+
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; }
|
14702
14871
|
/**
|
14703
14872
|
* ContextStore is a store that manages the contexts of the application.
|
14704
14873
|
*/
|
@@ -14731,7 +14900,7 @@ var ContextStore = /*#__PURE__*/function () {
|
|
14731
14900
|
key: "updateContext",
|
14732
14901
|
value: function updateContext(contextId, updates) {
|
14733
14902
|
var currentState = this.contexts.get(contextId) || {};
|
14734
|
-
this.contexts.set(contextId, _objectSpread$
|
14903
|
+
this.contexts.set(contextId, _objectSpread$U(_objectSpread$U({}, currentState), updates));
|
14735
14904
|
}
|
14736
14905
|
|
14737
14906
|
// Clear a context
|
@@ -15361,8 +15530,8 @@ var MediaItem = /*#__PURE__*/function () {
|
|
15361
15530
|
}]);
|
15362
15531
|
}();
|
15363
15532
|
|
15364
|
-
function ownKeys$
|
15365
|
-
function _objectSpread$
|
15533
|
+
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; }
|
15534
|
+
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; }
|
15366
15535
|
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; } } }; }
|
15367
15536
|
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; } }
|
15368
15537
|
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; }
|
@@ -15484,7 +15653,7 @@ function useFormData (_ref) {
|
|
15484
15653
|
multipleEditingData = inboundData;
|
15485
15654
|
}
|
15486
15655
|
return {
|
15487
|
-
loadedData: _onLoadFields(_objectSpread$
|
15656
|
+
loadedData: _onLoadFields(_objectSpread$T({}, dt)),
|
15488
15657
|
multipleEditingData: multipleEditingData
|
15489
15658
|
};
|
15490
15659
|
}, [inboundData, selectedItemsIndex]),
|
@@ -15521,7 +15690,7 @@ function useFormData (_ref) {
|
|
15521
15690
|
setFieldErrors = _useState20[1];
|
15522
15691
|
useEffect(function () {
|
15523
15692
|
var _loadedData$_id2;
|
15524
|
-
setState(_objectSpread$
|
15693
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15525
15694
|
data: loadedData,
|
15526
15695
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
15527
15696
|
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),
|
@@ -15623,7 +15792,7 @@ function useFormData (_ref) {
|
|
15623
15792
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
15624
15793
|
while (1) switch (_context2.prev = _context2.next) {
|
15625
15794
|
case 0:
|
15626
|
-
newData = merge(_objectSpread$
|
15795
|
+
newData = merge(_objectSpread$T({}, state.data), values);
|
15627
15796
|
if (!skipApi) {
|
15628
15797
|
_context2.next = 3;
|
15629
15798
|
break;
|
@@ -15633,7 +15802,7 @@ function useFormData (_ref) {
|
|
15633
15802
|
root.actions.toggleLoading('saving_form');
|
15634
15803
|
_context2.prev = 4;
|
15635
15804
|
_context2.next = 7;
|
15636
|
-
return setDynamicFields(_objectSpread$
|
15805
|
+
return setDynamicFields(_objectSpread$T({}, state.data), newData);
|
15637
15806
|
case 7:
|
15638
15807
|
newData = _context2.sent;
|
15639
15808
|
_context2.next = 10;
|
@@ -15648,7 +15817,7 @@ function useFormData (_ref) {
|
|
15648
15817
|
root.actions.toggleLoading('saving_form');
|
15649
15818
|
throw _context2.t0;
|
15650
15819
|
case 17:
|
15651
|
-
setState(_objectSpread$
|
15820
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15652
15821
|
loading: true
|
15653
15822
|
}));
|
15654
15823
|
finalData = state.data;
|
@@ -15701,14 +15870,14 @@ function useFormData (_ref) {
|
|
15701
15870
|
_context2.next = 47;
|
15702
15871
|
break;
|
15703
15872
|
}
|
15704
|
-
setFieldErrors(_objectSpread$
|
15873
|
+
setFieldErrors(_objectSpread$T(_objectSpread$T({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
15705
15874
|
return _context2.abrupt("return", undefined);
|
15706
15875
|
case 47:
|
15707
15876
|
throw _context2.t1;
|
15708
15877
|
case 48:
|
15709
15878
|
_context2.prev = 48;
|
15710
15879
|
root.actions.toggleLoading('saving_form');
|
15711
|
-
setState(_objectSpread$
|
15880
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15712
15881
|
data: finalData,
|
15713
15882
|
loading: false
|
15714
15883
|
}));
|
@@ -15738,7 +15907,7 @@ function useFormData (_ref) {
|
|
15738
15907
|
}
|
15739
15908
|
var updateHiddenRequiredDisabled = function updateHiddenRequiredDisabled(data, changedFields) {
|
15740
15909
|
if (!(selectedItems !== null && selectedItems !== void 0 && selectedItems.length)) return;
|
15741
|
-
var wholeData = Object.assign(_objectSpread$
|
15910
|
+
var wholeData = Object.assign(_objectSpread$T({}, state.data), _objectSpread$T({}, changedFields !== null && changedFields !== void 0 ? changedFields : data));
|
15742
15911
|
var newState = getHiddenRequredDisabled(wholeData, selectedItems);
|
15743
15912
|
if (JSON.stringify(newState) !== JSON.stringify(hiddenRequiredDisabled)) {
|
15744
15913
|
setHiddenRequiredDisabled(newState);
|
@@ -15751,14 +15920,14 @@ function useFormData (_ref) {
|
|
15751
15920
|
}
|
15752
15921
|
};
|
15753
15922
|
var onInputChanged = function onInputChanged(id, value, d) {
|
15754
|
-
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$
|
15923
|
+
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$T({}, state.data), state.form.getFieldsValue(), mergeCustomizer);
|
15755
15924
|
if (id) {
|
15756
15925
|
setFieldInObject(id, data, value);
|
15757
|
-
var newFieldErrors = _objectSpread$
|
15926
|
+
var newFieldErrors = _objectSpread$T({}, fieldErrors);
|
15758
15927
|
delete newFieldErrors[id.toString()];
|
15759
15928
|
setFieldErrors(newFieldErrors);
|
15760
15929
|
}
|
15761
|
-
setState(_objectSpread$
|
15930
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15762
15931
|
data: data
|
15763
15932
|
}));
|
15764
15933
|
return data;
|
@@ -15790,12 +15959,12 @@ function useFormData (_ref) {
|
|
15790
15959
|
var _value$value;
|
15791
15960
|
if (((_value$value = value === null || value === void 0 ? void 0 : value.value) !== null && _value$value !== void 0 ? _value$value : value) === val) {
|
15792
15961
|
if (configuration.itemSelectorReset) {
|
15793
|
-
setState(_objectSpread$
|
15962
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15794
15963
|
data: _defineProperty({}, name, val)
|
15795
15964
|
}));
|
15796
15965
|
} else {
|
15797
|
-
setState(_objectSpread$
|
15798
|
-
data: _objectSpread$
|
15966
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15967
|
+
data: _objectSpread$T(_objectSpread$T({}, state.data), {}, _defineProperty({}, name, val))
|
15799
15968
|
}));
|
15800
15969
|
}
|
15801
15970
|
setSelectedItemsIndex(idx);
|
@@ -15805,12 +15974,12 @@ function useFormData (_ref) {
|
|
15805
15974
|
var val = _ref6.value;
|
15806
15975
|
if (value === val) {
|
15807
15976
|
if (configuration.itemSelectorReset) {
|
15808
|
-
setState(_objectSpread$
|
15977
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15809
15978
|
data: _defineProperty({}, name, val)
|
15810
15979
|
}));
|
15811
15980
|
} else {
|
15812
|
-
setState(_objectSpread$
|
15813
|
-
data: _objectSpread$
|
15981
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15982
|
+
data: _objectSpread$T(_objectSpread$T({}, state.data), {}, _defineProperty({}, name, val))
|
15814
15983
|
}));
|
15815
15984
|
}
|
15816
15985
|
setSelectedItemsIndex(idx);
|
@@ -16091,7 +16260,7 @@ function useFormData (_ref) {
|
|
16091
16260
|
for (var i = 0; i < configuration.tools.length; i++) {
|
16092
16261
|
var _tool$defaultOpen;
|
16093
16262
|
var tool = configuration.tools[i];
|
16094
|
-
tools.push(_objectSpread$
|
16263
|
+
tools.push(_objectSpread$T(_objectSpread$T({}, tool), {}, {
|
16095
16264
|
parameters: {
|
16096
16265
|
data: state.data
|
16097
16266
|
},
|
@@ -16193,7 +16362,7 @@ function useFormData (_ref) {
|
|
16193
16362
|
})) return;
|
16194
16363
|
setRemovedMedias([].concat(_toConsumableArray(removedMedias), [media]));
|
16195
16364
|
};
|
16196
|
-
return _objectSpread$
|
16365
|
+
return _objectSpread$T(_objectSpread$T({}, state), {}, {
|
16197
16366
|
getIsHidden: getIsHidden,
|
16198
16367
|
setUsedPreset: setUsedPreset,
|
16199
16368
|
configuration: configuration,
|
@@ -16310,8 +16479,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
16310
16479
|
};
|
16311
16480
|
|
16312
16481
|
var _excluded$3 = ["key", "name"];
|
16313
|
-
function ownKeys$
|
16314
|
-
function _objectSpread$
|
16482
|
+
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; }
|
16483
|
+
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; }
|
16315
16484
|
var FormList$2 = function FormList(_ref) {
|
16316
16485
|
var _item$initialValue;
|
16317
16486
|
var value = _ref.value,
|
@@ -16364,7 +16533,7 @@ var FormList$2 = function FormList(_ref) {
|
|
16364
16533
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
16365
16534
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
16366
16535
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
16367
|
-
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$
|
16536
|
+
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$S(_objectSpread$S({}, restField), {}, {
|
16368
16537
|
id: n.join(),
|
16369
16538
|
key: n.join(),
|
16370
16539
|
name: n,
|
@@ -16376,7 +16545,7 @@ var FormList$2 = function FormList(_ref) {
|
|
16376
16545
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
16377
16546
|
help: state.fieldErrors[n.toString()],
|
16378
16547
|
hidden: hidden
|
16379
|
-
}), getElement(_objectSpread$
|
16548
|
+
}), getElement(_objectSpread$S(_objectSpread$S({}, i), {}, {
|
16380
16549
|
name: n
|
16381
16550
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
16382
16551
|
})
|
@@ -16541,8 +16710,8 @@ var Result = function Result(_ref) {
|
|
16541
16710
|
|
16542
16711
|
var success = "success-tRJ7j";
|
16543
16712
|
var error = "error-MtAFB";
|
16544
|
-
var css_248z$
|
16545
|
-
styleInject(css_248z$
|
16713
|
+
var css_248z$v = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
|
16714
|
+
styleInject(css_248z$v);
|
16546
16715
|
|
16547
16716
|
var azureIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248px%22%20height%3D%2248px%22%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6a%22%20x1%3D%22-1254.397%22%20x2%3D%22-1261.911%22%20y1%3D%22877.268%22%20y2%3D%22899.466%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23114a8b%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230669bc%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6a%29%22%20d%3D%22M17.634%2C6h11.305L17.203%2C40.773c-0.247%2C0.733-0.934%2C1.226-1.708%2C1.226H6.697%20c-0.994%2C0-1.8-0.806-1.8-1.8c0-0.196%2C0.032-0.39%2C0.094-0.576L15.926%2C7.227C16.173%2C6.494%2C16.86%2C6%2C17.634%2C6L17.634%2C6z%22%2F%3E%20%3Cpath%20fill%3D%22%230078d4%22%20d%3D%22M34.062%2C29.324H16.135c-0.458-0.001-0.83%2C0.371-0.831%2C0.829c0%2C0.231%2C0.095%2C0.451%2C0.264%2C0.608%20l11.52%2C10.752C27.423%2C41.826%2C27.865%2C42%2C28.324%2C42h10.151L34.062%2C29.324z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6b%22%20x1%3D%22-1252.05%22%20x2%3D%22-1253.788%22%20y1%3D%22887.612%22%20y2%3D%22888.2%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-opacity%3D%22.3%22%2F%3E%20%20%3Cstop%20offset%3D%22.071%22%20stop-opacity%3D%22.2%22%2F%3E%20%20%3Cstop%20offset%3D%22.321%22%20stop-opacity%3D%22.1%22%2F%3E%20%20%3Cstop%20offset%3D%22.623%22%20stop-opacity%3D%22.05%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6b%29%22%20d%3D%22M17.634%2C6c-0.783-0.003-1.476%2C0.504-1.712%2C1.25L5.005%2C39.595%20c-0.335%2C0.934%2C0.151%2C1.964%2C1.085%2C2.299C6.286%2C41.964%2C6.493%2C42%2C6.702%2C42h9.026c0.684-0.122%2C1.25-0.603%2C1.481-1.259l2.177-6.416%20l7.776%2C7.253c0.326%2C0.27%2C0.735%2C0.419%2C1.158%2C0.422h10.114l-4.436-12.676l-12.931%2C0.003L28.98%2C6H17.634z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6c%22%20x1%3D%22-1252.952%22%20x2%3D%22-1244.704%22%20y1%3D%22876.6%22%20y2%3D%22898.575%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233ccbf4%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%232892df%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6c%29%22%20d%3D%22M32.074%2C7.225C31.827%2C6.493%2C31.141%2C6%2C30.368%2C6h-12.6c0.772%2C0%2C1.459%2C0.493%2C1.705%2C1.224%20l10.935%2C32.399c0.318%2C0.942-0.188%2C1.963-1.13%2C2.281C29.093%2C41.968%2C28.899%2C42%2C28.703%2C42h12.6c0.994%2C0%2C1.8-0.806%2C1.8-1.801%20c0-0.196-0.032-0.39-0.095-0.575L32.074%2C7.225z%22%2F%3E%3C%2Fsvg%3E";
|
16548
16717
|
|
@@ -16604,13 +16773,13 @@ var CustomButton = function CustomButton(_ref) {
|
|
16604
16773
|
};
|
16605
16774
|
var CustomButton$1 = observer(CustomButton);
|
16606
16775
|
|
16607
|
-
var wrapper$
|
16776
|
+
var wrapper$7 = "wrapper-GVe2h";
|
16608
16777
|
var buttonGroup = "button-group-GYt-T";
|
16609
|
-
var css_248z$
|
16610
|
-
styleInject(css_248z$
|
16778
|
+
var css_248z$u = ".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";
|
16779
|
+
styleInject(css_248z$u);
|
16611
16780
|
|
16612
|
-
function ownKeys$
|
16613
|
-
function _objectSpread$
|
16781
|
+
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; }
|
16782
|
+
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; }
|
16614
16783
|
var SubTitle = function SubTitle(_ref) {
|
16615
16784
|
var _item$orientation, _item$buttonIds;
|
16616
16785
|
var item = _ref.item,
|
@@ -16619,9 +16788,9 @@ var SubTitle = function SubTitle(_ref) {
|
|
16619
16788
|
t = _useTranslation.t;
|
16620
16789
|
return /*#__PURE__*/jsx(Divider, {
|
16621
16790
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
16622
|
-
style: _objectSpread$
|
16791
|
+
style: _objectSpread$R({}, item.style),
|
16623
16792
|
children: /*#__PURE__*/jsxs("div", {
|
16624
|
-
className: wrapper$
|
16793
|
+
className: wrapper$7,
|
16625
16794
|
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) {
|
16626
16795
|
return /*#__PURE__*/jsx("div", {
|
16627
16796
|
className: buttonGroup,
|
@@ -16882,13 +17051,13 @@ function parseReturnData(options, selectMapping) {
|
|
16882
17051
|
return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? options.value : options.data;
|
16883
17052
|
}
|
16884
17053
|
|
16885
|
-
var wrapper$
|
16886
|
-
var css_248z$
|
16887
|
-
styleInject(css_248z$
|
17054
|
+
var wrapper$6 = "wrapper-4xyke";
|
17055
|
+
var css_248z$t = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
|
17056
|
+
styleInject(css_248z$t);
|
16888
17057
|
|
16889
17058
|
var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
16890
|
-
function ownKeys$
|
16891
|
-
function _objectSpread$
|
17059
|
+
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; }
|
17060
|
+
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; }
|
16892
17061
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
16893
17062
|
var apiInterface = _ref.apiInterface,
|
16894
17063
|
selectMapping = _ref.selectMapping,
|
@@ -16914,8 +17083,8 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
16914
17083
|
});
|
16915
17084
|
return /*#__PURE__*/jsxs("div", {
|
16916
17085
|
ref: ref,
|
16917
|
-
className: classnames(title ? wrapper$
|
16918
|
-
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$
|
17086
|
+
className: classnames(title ? wrapper$6 : undefined),
|
17087
|
+
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$Q(_objectSpread$Q({}, selectProps), {}, {
|
16919
17088
|
showSearch: search,
|
16920
17089
|
loading: state.loading,
|
16921
17090
|
options: state.options,
|
@@ -17532,8 +17701,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
17532
17701
|
}]);
|
17533
17702
|
}(_default$d);
|
17534
17703
|
|
17535
|
-
function ownKeys$
|
17536
|
-
function _objectSpread$
|
17704
|
+
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; }
|
17705
|
+
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; }
|
17537
17706
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
17538
17707
|
function useSelectClientRelationCatalog (_ref) {
|
17539
17708
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
@@ -17702,7 +17871,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
17702
17871
|
case 22:
|
17703
17872
|
supplierData = _context2.sent;
|
17704
17873
|
case 23:
|
17705
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
17874
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$P(_objectSpread$P({}, _selectedSupplier), {}, {
|
17706
17875
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
17707
17876
|
}), supplierData);
|
17708
17877
|
if (catalogId && catalogList.find(function (c) {
|
@@ -17768,8 +17937,8 @@ var customSelect = "custom-select-ESUJX";
|
|
17768
17937
|
var customSelectOption = "custom-select-option-dUA7N";
|
17769
17938
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
17770
17939
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
17771
|
-
var css_248z$
|
17772
|
-
styleInject(css_248z$
|
17940
|
+
var css_248z$s = ".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";
|
17941
|
+
styleInject(css_248z$s);
|
17773
17942
|
|
17774
17943
|
var Selector = function Selector(_ref) {
|
17775
17944
|
var items = _ref.items,
|
@@ -17923,8 +18092,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
17923
18092
|
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; } } }; }
|
17924
18093
|
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; } }
|
17925
18094
|
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; }
|
17926
|
-
function ownKeys$
|
17927
|
-
function _objectSpread$
|
18095
|
+
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; }
|
18096
|
+
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; }
|
17928
18097
|
function useSelectData (_ref) {
|
17929
18098
|
var data = _ref.data,
|
17930
18099
|
onChange = _ref.onChange,
|
@@ -18107,7 +18276,7 @@ function useSelectData (_ref) {
|
|
18107
18276
|
setFetching(true);
|
18108
18277
|
serverSideParams = {
|
18109
18278
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.searchField.reduce(function (filter, field) {
|
18110
|
-
return _objectSpread$
|
18279
|
+
return _objectSpread$O(_objectSpread$O({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
18111
18280
|
}, {}) : {
|
18112
18281
|
_id: [value, 'contains']
|
18113
18282
|
},
|
@@ -18313,8 +18482,8 @@ function useSelectData (_ref) {
|
|
18313
18482
|
};
|
18314
18483
|
}
|
18315
18484
|
|
18316
|
-
var css_248z$
|
18317
|
-
styleInject(css_248z$
|
18485
|
+
var css_248z$r = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
18486
|
+
styleInject(css_248z$r);
|
18318
18487
|
|
18319
18488
|
var SelectWrapper = function SelectWrapper(_ref) {
|
18320
18489
|
var onChange = _ref.onChange,
|
@@ -18393,14 +18562,14 @@ var SelectWrapper = function SelectWrapper(_ref) {
|
|
18393
18562
|
};
|
18394
18563
|
var Select = observer(SelectWrapper);
|
18395
18564
|
|
18396
|
-
var wrapper$
|
18565
|
+
var wrapper$5 = "wrapper-WStAk";
|
18397
18566
|
var headerWrapper = "header-wrapper-gWQuH";
|
18398
18567
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
18399
|
-
var css_248z$
|
18400
|
-
styleInject(css_248z$
|
18568
|
+
var css_248z$q = ".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";
|
18569
|
+
styleInject(css_248z$q);
|
18401
18570
|
|
18402
|
-
function ownKeys$
|
18403
|
-
function _objectSpread$
|
18571
|
+
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; }
|
18572
|
+
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; }
|
18404
18573
|
var LOG$9 = getLogger('Backoffice', 'Translation Form');
|
18405
18574
|
function useTranslationHook (item, state) {
|
18406
18575
|
var root = useStore();
|
@@ -18533,7 +18702,7 @@ function useTranslationHook (item, state) {
|
|
18533
18702
|
case 0:
|
18534
18703
|
_context2.next = 2;
|
18535
18704
|
return apiHandler.create({
|
18536
|
-
locales: _objectSpread$
|
18705
|
+
locales: _objectSpread$N({
|
18537
18706
|
de: {},
|
18538
18707
|
it: {},
|
18539
18708
|
fr: {},
|
@@ -18582,8 +18751,8 @@ function useTranslationHook (item, state) {
|
|
18582
18751
|
};
|
18583
18752
|
}
|
18584
18753
|
|
18585
|
-
function ownKeys$
|
18586
|
-
function _objectSpread$
|
18754
|
+
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; }
|
18755
|
+
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; }
|
18587
18756
|
var Translation = function Translation(_ref) {
|
18588
18757
|
var item = _ref.item,
|
18589
18758
|
state = _ref.state,
|
@@ -18601,7 +18770,7 @@ var Translation = function Translation(_ref) {
|
|
18601
18770
|
_onChange = _useTranslationHook.onChange,
|
18602
18771
|
autoTranslate = _useTranslationHook.autoTranslate;
|
18603
18772
|
return /*#__PURE__*/jsxs("div", {
|
18604
|
-
className: wrapper$
|
18773
|
+
className: wrapper$5,
|
18605
18774
|
children: [/*#__PURE__*/jsxs("div", {
|
18606
18775
|
className: headerWrapper,
|
18607
18776
|
children: [/*#__PURE__*/jsx("div", {
|
@@ -18633,7 +18802,7 @@ var Translation = function Translation(_ref) {
|
|
18633
18802
|
var hidden = state.getIsHidden(i, data);
|
18634
18803
|
var newAbsoluteName = absoluteName !== '' ? [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n)) : n;
|
18635
18804
|
return /*#__PURE__*/jsx(React.Fragment, {
|
18636
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
18805
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$M(_objectSpread$M({}, i), {}, {
|
18637
18806
|
name: n
|
18638
18807
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang) : /*#__PURE__*/jsx(Form$1.Item, {
|
18639
18808
|
id: idx.toString(),
|
@@ -18646,7 +18815,7 @@ var Translation = function Translation(_ref) {
|
|
18646
18815
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
18647
18816
|
help: state.fieldErrors[n.toString()],
|
18648
18817
|
hidden: hidden,
|
18649
|
-
children: getElement(_objectSpread$
|
18818
|
+
children: getElement(_objectSpread$M(_objectSpread$M({}, i), {}, {
|
18650
18819
|
name: n
|
18651
18820
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
18652
18821
|
})
|
@@ -18981,8 +19150,8 @@ var Text$1 = observer(Text);
|
|
18981
19150
|
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; } } }; }
|
18982
19151
|
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; } }
|
18983
19152
|
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; }
|
18984
|
-
function ownKeys$
|
18985
|
-
function _objectSpread$
|
19153
|
+
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; }
|
19154
|
+
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; }
|
18986
19155
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName) {
|
18987
19156
|
var _isReadonly, _state$hiddenRequired;
|
18988
19157
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
@@ -19017,7 +19186,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19017
19186
|
}
|
19018
19187
|
});
|
19019
19188
|
case 'selectSimple':
|
19020
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
19189
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$L(_objectSpread$L({}, item), {}, {
|
19021
19190
|
disabled: disabled,
|
19022
19191
|
onChange: function onChange(value) {
|
19023
19192
|
_onChange(absoluteName, value);
|
@@ -19221,7 +19390,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19221
19390
|
value: item.value,
|
19222
19391
|
options: item.options.map(function (o) {
|
19223
19392
|
var _o$disabled;
|
19224
|
-
return _objectSpread$
|
19393
|
+
return _objectSpread$L(_objectSpread$L({}, o), {}, {
|
19225
19394
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
|
19226
19395
|
});
|
19227
19396
|
}),
|
@@ -19242,7 +19411,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19242
19411
|
},
|
19243
19412
|
icon: item.icon,
|
19244
19413
|
callback: function callback(data) {
|
19245
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
19414
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$L(_objectSpread$L({}, state.data), data));
|
19246
19415
|
}
|
19247
19416
|
});
|
19248
19417
|
case 'media':
|
@@ -19263,7 +19432,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19263
19432
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
19264
19433
|
var _useTranslation = useTranslation(),
|
19265
19434
|
t = _useTranslation.t;
|
19266
|
-
return /*#__PURE__*/jsx(Input, _objectSpread$
|
19435
|
+
return /*#__PURE__*/jsx(Input, _objectSpread$L(_objectSpread$L({}, props), {}, {
|
19267
19436
|
ref: ref,
|
19268
19437
|
disabled: true,
|
19269
19438
|
value: t(props.translationPrefix + '.' + props.value)
|
@@ -19282,8 +19451,8 @@ function isReadonly(item, data) {
|
|
19282
19451
|
return false;
|
19283
19452
|
}
|
19284
19453
|
|
19285
|
-
function ownKeys$
|
19286
|
-
function _objectSpread$
|
19454
|
+
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; }
|
19455
|
+
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; }
|
19287
19456
|
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; } } }; }
|
19288
19457
|
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; } }
|
19289
19458
|
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; }
|
@@ -19333,13 +19502,13 @@ var Presets = function Presets(_ref) {
|
|
19333
19502
|
} finally {
|
19334
19503
|
_iterator.f();
|
19335
19504
|
}
|
19336
|
-
var data = _objectSpread$
|
19505
|
+
var data = _objectSpread$K(_objectSpread$K({}, form.getFieldsValue(names)), {}, {
|
19337
19506
|
newPresetName: newPresetName
|
19338
19507
|
});
|
19339
19508
|
data.dpi = parseInt(data.dpi);
|
19340
19509
|
data.organization = root.getGlobalValue('organizationId');
|
19341
19510
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
19342
|
-
var dt = _objectSpread$
|
19511
|
+
var dt = _objectSpread$K(_objectSpread$K({}, form.getFieldsValue(names)), {}, {
|
19343
19512
|
name: newPresetName
|
19344
19513
|
});
|
19345
19514
|
setPresets({
|
@@ -19681,8 +19850,8 @@ function getLabel(item, t) {
|
|
19681
19850
|
}
|
19682
19851
|
var Form = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
19683
19852
|
|
19684
|
-
function ownKeys$
|
19685
|
-
function _objectSpread$
|
19853
|
+
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; }
|
19854
|
+
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; }
|
19686
19855
|
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; } } }; }
|
19687
19856
|
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; } }
|
19688
19857
|
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; }
|
@@ -19884,7 +20053,7 @@ function useRoleSelectorData (_ref) {
|
|
19884
20053
|
roles.forEach(function (r) {
|
19885
20054
|
//check if after the changes the role is selected
|
19886
20055
|
if (value.includes(r._id)) {
|
19887
|
-
var newValue = _objectSpread$
|
20056
|
+
var newValue = _objectSpread$J(_objectSpread$J({}, r), {}, {
|
19888
20057
|
selected: true
|
19889
20058
|
});
|
19890
20059
|
//add it to the new list as selected role
|
@@ -19920,7 +20089,7 @@ function useRoleSelectorData (_ref) {
|
|
19920
20089
|
}
|
19921
20090
|
}
|
19922
20091
|
} else {
|
19923
|
-
var _newValue = _objectSpread$
|
20092
|
+
var _newValue = _objectSpread$J(_objectSpread$J({}, r), {}, {
|
19924
20093
|
selected: false
|
19925
20094
|
});
|
19926
20095
|
//add it to the new list as unselected role
|
@@ -20124,7 +20293,7 @@ function _updateRoles() {
|
|
20124
20293
|
userRole = userRoles.find(function (r) {
|
20125
20294
|
return r._id == role._id;
|
20126
20295
|
});
|
20127
|
-
newRole = _objectSpread$
|
20296
|
+
newRole = _objectSpread$J({}, role);
|
20128
20297
|
if (userRole) {
|
20129
20298
|
newRole.selected = true;
|
20130
20299
|
newRole.inherited = userRole.inherited;
|
@@ -20344,7 +20513,7 @@ function _fetchOptions() {
|
|
20344
20513
|
case 4:
|
20345
20514
|
result = _context11.sent;
|
20346
20515
|
options = result.data.map(function (d) {
|
20347
|
-
return _objectSpread$
|
20516
|
+
return _objectSpread$J(_objectSpread$J({}, d), {}, {
|
20348
20517
|
label: d.displayName,
|
20349
20518
|
value: d._id,
|
20350
20519
|
isLeaf: !d.hasChildren
|
@@ -20436,18 +20605,18 @@ var RoleSelector = function RoleSelector(_ref, ref) {
|
|
20436
20605
|
var RoleSelector$1 = observer(/*#__PURE__*/React.forwardRef(RoleSelector));
|
20437
20606
|
|
20438
20607
|
var permissionButton = "permission-Button-XctsZ";
|
20439
|
-
var select$
|
20608
|
+
var select$2 = "select-lzft-";
|
20440
20609
|
var loadingOption = "loadingOption-qCkRw";
|
20441
20610
|
var scroller = "scroller-lrdk9";
|
20442
20611
|
var skeleton = "skeleton--xCI0";
|
20443
20612
|
var filterField = "filterField-1kU1O";
|
20444
20613
|
var parentScroll = "parent-scroll-GmaL9";
|
20445
20614
|
var parent = "parent-NZJ3S";
|
20446
|
-
var css_248z$
|
20447
|
-
styleInject(css_248z$
|
20615
|
+
var css_248z$p = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n 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";
|
20616
|
+
styleInject(css_248z$p);
|
20448
20617
|
|
20449
|
-
function ownKeys$
|
20450
|
-
function _objectSpread$
|
20618
|
+
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; }
|
20619
|
+
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; }
|
20451
20620
|
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; } } }; }
|
20452
20621
|
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; } }
|
20453
20622
|
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; }
|
@@ -20507,8 +20676,8 @@ function _generateCSV() {
|
|
20507
20676
|
break;
|
20508
20677
|
}
|
20509
20678
|
_context2.next = 21;
|
20510
|
-
return generateCSV(_objectSpread$
|
20511
|
-
mappingData: _objectSpread$
|
20679
|
+
return generateCSV(_objectSpread$I(_objectSpread$I({}, exportParams.children), {}, {
|
20680
|
+
mappingData: _objectSpread$I(_objectSpread$I({}, parent), {}, {
|
20512
20681
|
parentId: exportParams.mappingData._id
|
20513
20682
|
})
|
20514
20683
|
}), csvData);
|
@@ -20616,8 +20785,8 @@ function _downloadFile() {
|
|
20616
20785
|
return _downloadFile.apply(this, arguments);
|
20617
20786
|
}
|
20618
20787
|
|
20619
|
-
function ownKeys$
|
20620
|
-
function _objectSpread$
|
20788
|
+
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; }
|
20789
|
+
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; }
|
20621
20790
|
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; } } }; }
|
20622
20791
|
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; } }
|
20623
20792
|
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; }
|
@@ -21036,7 +21205,7 @@ function useRelationSelectorData (_ref) {
|
|
21036
21205
|
var activeItem = _step.value;
|
21037
21206
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
21038
21207
|
addedObjects.push(addedData);
|
21039
|
-
getSplittedItems(_objectSpread$
|
21208
|
+
getSplittedItems(_objectSpread$H(_objectSpread$H({}, activeItem), {}, {
|
21040
21209
|
userId: data === null || data === void 0 ? void 0 : data._id
|
21041
21210
|
}));
|
21042
21211
|
ret = true;
|
@@ -21241,8 +21410,8 @@ function useRelationSelectorData (_ref) {
|
|
21241
21410
|
};
|
21242
21411
|
}
|
21243
21412
|
|
21244
|
-
function ownKeys$
|
21245
|
-
function _objectSpread$
|
21413
|
+
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; }
|
21414
|
+
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; }
|
21246
21415
|
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; } } }; }
|
21247
21416
|
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; } }
|
21248
21417
|
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; }
|
@@ -21375,7 +21544,7 @@ function ActionButton (_ref) {
|
|
21375
21544
|
_iterator2.f();
|
21376
21545
|
}
|
21377
21546
|
_context.next = 19;
|
21378
|
-
return apiInterface.update(_objectSpread$
|
21547
|
+
return apiInterface.update(_objectSpread$G(_objectSpread$G({}, data), {}, {
|
21379
21548
|
state: toSwitch
|
21380
21549
|
}), data);
|
21381
21550
|
case 19:
|
@@ -21532,14 +21701,14 @@ function _simpleChangeValue() {
|
|
21532
21701
|
break;
|
21533
21702
|
}
|
21534
21703
|
for (i = 0; i < action.newValues.length; i++) {
|
21535
|
-
fieldsToUpdate = _objectSpread$
|
21704
|
+
fieldsToUpdate = _objectSpread$G(_objectSpread$G({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
21536
21705
|
}
|
21537
21706
|
if (!apiInterface.canUpdate) {
|
21538
21707
|
_context2.next = 9;
|
21539
21708
|
break;
|
21540
21709
|
}
|
21541
21710
|
_context2.next = 7;
|
21542
|
-
return apiInterface.update(_objectSpread$
|
21711
|
+
return apiInterface.update(_objectSpread$G({}, fieldsToUpdate), data);
|
21543
21712
|
case 7:
|
21544
21713
|
response = _context2.sent;
|
21545
21714
|
return _context2.abrupt("return", response);
|
@@ -21554,7 +21723,7 @@ function _simpleChangeValue() {
|
|
21554
21723
|
return _simpleChangeValue.apply(this, arguments);
|
21555
21724
|
}
|
21556
21725
|
function A(props) {
|
21557
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
21726
|
+
return /*#__PURE__*/jsx("a", _objectSpread$G({}, props));
|
21558
21727
|
}
|
21559
21728
|
|
21560
21729
|
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; } } }; }
|
@@ -21689,11 +21858,11 @@ var newscroller = "newscroller-INKeD";
|
|
21689
21858
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
21690
21859
|
var itemTitle = "item-title--BTvC";
|
21691
21860
|
var itemDesc = "item-desc-DBiiF";
|
21692
|
-
var css_248z$
|
21693
|
-
styleInject(css_248z$
|
21861
|
+
var css_248z$o = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
|
21862
|
+
styleInject(css_248z$o);
|
21694
21863
|
|
21695
|
-
function ownKeys$
|
21696
|
-
function _objectSpread$
|
21864
|
+
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; }
|
21865
|
+
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; }
|
21697
21866
|
var DropDown = function DropDown(_ref) {
|
21698
21867
|
var _curItem$data$length;
|
21699
21868
|
var split = _ref.split,
|
@@ -21725,7 +21894,7 @@ var DropDown = function DropDown(_ref) {
|
|
21725
21894
|
});
|
21726
21895
|
return /*#__PURE__*/jsx(Collapse, {
|
21727
21896
|
onChange: function onChange() {
|
21728
|
-
return getSplittedItems(_objectSpread$
|
21897
|
+
return getSplittedItems(_objectSpread$F(_objectSpread$F({}, item.item), {}, {
|
21729
21898
|
parentId: item.parentId
|
21730
21899
|
}), 0);
|
21731
21900
|
},
|
@@ -21830,7 +21999,7 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
21830
21999
|
}, []);
|
21831
22000
|
return /*#__PURE__*/jsxs(Fragment, {
|
21832
22001
|
children: [relationState.configuration.search != undefined && (((_relationState$config = relationState.configuration.filter) === null || _relationState$config === void 0 ? void 0 : _relationState$config.type) === 'default' ? /*#__PURE__*/jsxs(Select$1, {
|
21833
|
-
className: select$
|
22002
|
+
className: select$2,
|
21834
22003
|
showSearch: true,
|
21835
22004
|
suffixIcon: /*#__PURE__*/jsx(PlusSquareOutlined, {}),
|
21836
22005
|
placeholder: (_relationState$config2 = (_relationState$config3 = relationState.configuration.filter) === null || _relationState$config3 === void 0 ? void 0 : _relationState$config3.searchPlaceholder) !== null && _relationState$config2 !== void 0 ? _relationState$config2 : t('backoffice.relationselector.add'),
|
@@ -21983,8 +22152,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
21983
22152
|
};
|
21984
22153
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
21985
22154
|
|
21986
|
-
function ownKeys$
|
21987
|
-
function _objectSpread$
|
22155
|
+
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; }
|
22156
|
+
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; }
|
21988
22157
|
function useFormListData (_ref) {
|
21989
22158
|
var _configuration$defaul;
|
21990
22159
|
var id = _ref.id,
|
@@ -22064,7 +22233,7 @@ function useFormListData (_ref) {
|
|
22064
22233
|
if (updated.length == state.length) {
|
22065
22234
|
newState = state.map(function (s, i) {
|
22066
22235
|
var _updated$find;
|
22067
|
-
return _objectSpread$
|
22236
|
+
return _objectSpread$E(_objectSpread$E({}, s), {}, {
|
22068
22237
|
data: (_updated$find = updated.find(function (u) {
|
22069
22238
|
return u.index == i;
|
22070
22239
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
@@ -22201,8 +22370,8 @@ var FormList = function FormList(_ref, ref) {
|
|
22201
22370
|
};
|
22202
22371
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
22203
22372
|
|
22204
|
-
function ownKeys$
|
22205
|
-
function _objectSpread$
|
22373
|
+
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; }
|
22374
|
+
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; }
|
22206
22375
|
var LOG$6 = getLogger('Backoffice', 'SelectOrCreate');
|
22207
22376
|
function useSelectOrCreateData (_ref) {
|
22208
22377
|
var id = _ref.id,
|
@@ -22299,7 +22468,7 @@ function useSelectOrCreateData (_ref) {
|
|
22299
22468
|
_context.next = 7;
|
22300
22469
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
22301
22470
|
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) {
|
22302
|
-
return _objectSpread$
|
22471
|
+
return _objectSpread$D(_objectSpread$D({}, filter), {}, _defineProperty({}, field.field, [value, field.filter, true]));
|
22303
22472
|
}, {}) : {
|
22304
22473
|
_id: [value, 'contains']
|
22305
22474
|
},
|
@@ -22610,8 +22779,8 @@ var Multiple = function Multiple(_ref3) {
|
|
22610
22779
|
});
|
22611
22780
|
};
|
22612
22781
|
|
22613
|
-
function ownKeys$
|
22614
|
-
function _objectSpread$
|
22782
|
+
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; }
|
22783
|
+
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; }
|
22615
22784
|
function useListData (_ref) {
|
22616
22785
|
var id = _ref.id,
|
22617
22786
|
data = _ref.data;
|
@@ -22654,7 +22823,7 @@ function useListData (_ref) {
|
|
22654
22823
|
case 3:
|
22655
22824
|
result = _context.sent;
|
22656
22825
|
setListData(result.data.map(parseField));
|
22657
|
-
initData = _objectSpread$
|
22826
|
+
initData = _objectSpread$C({}, data);
|
22658
22827
|
setUpdatedObject(initData);
|
22659
22828
|
setLoading(false);
|
22660
22829
|
case 8:
|
@@ -22695,7 +22864,7 @@ function useListData (_ref) {
|
|
22695
22864
|
});
|
22696
22865
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
22697
22866
|
var parsedField = field.field.split('.');
|
22698
|
-
item.itemUpdate = _objectSpread$
|
22867
|
+
item.itemUpdate = _objectSpread$C(_objectSpread$C({}, field), {}, {
|
22699
22868
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
22700
22869
|
});
|
22701
22870
|
});
|
@@ -22726,16 +22895,16 @@ function useListData (_ref) {
|
|
22726
22895
|
console.error('field with more than 2 parts not allowed');
|
22727
22896
|
return;
|
22728
22897
|
}
|
22729
|
-
var updObj = _objectSpread$
|
22898
|
+
var updObj = _objectSpread$C({}, updatedObject);
|
22730
22899
|
if (fields.length === 1) {
|
22731
|
-
updObj = _objectSpread$
|
22900
|
+
updObj = _objectSpread$C(_objectSpread$C({}, updObj), {}, _defineProperty({}, fields[0], value));
|
22732
22901
|
} else if (fields.length === 2) {
|
22733
22902
|
var updatedField = updObj[fields[0]].find(function (v) {
|
22734
22903
|
return v.id === item.id.trim();
|
22735
22904
|
});
|
22736
22905
|
if (updatedField) {
|
22737
|
-
var updatedFieldCopy = _objectSpread$
|
22738
|
-
updObj = _objectSpread$
|
22906
|
+
var updatedFieldCopy = _objectSpread$C(_objectSpread$C({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
22907
|
+
updObj = _objectSpread$C(_objectSpread$C({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
22739
22908
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
22740
22909
|
})));
|
22741
22910
|
}
|
@@ -22744,11 +22913,11 @@ function useListData (_ref) {
|
|
22744
22913
|
var acItems = listData;
|
22745
22914
|
for (var i = 0; i < acItems.length; i++) {
|
22746
22915
|
if (i == index) {
|
22747
|
-
acItems[i].itemUpdate = _objectSpread$
|
22916
|
+
acItems[i].itemUpdate = _objectSpread$C(_objectSpread$C({}, acItems[i].itemUpdate), {}, {
|
22748
22917
|
value: value
|
22749
22918
|
});
|
22750
22919
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
22751
|
-
acItems[i].itemUpdate = _objectSpread$
|
22920
|
+
acItems[i].itemUpdate = _objectSpread$C(_objectSpread$C({}, acItems[i].itemUpdate), {}, {
|
22752
22921
|
value: !value
|
22753
22922
|
});
|
22754
22923
|
}
|
@@ -23102,8 +23271,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
23102
23271
|
var preview = "preview-9wK81";
|
23103
23272
|
var previewButton = "preview-button-vupuG";
|
23104
23273
|
var editButton = "edit-button-m6r3M";
|
23105
|
-
var css_248z$
|
23106
|
-
styleInject(css_248z$
|
23274
|
+
var css_248z$n = ".jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-transform {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-repair {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-poweredBy {\n display: none;\n}\n.jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n";
|
23275
|
+
styleInject(css_248z$n);
|
23107
23276
|
|
23108
23277
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
23109
23278
|
var id = _ref.id,
|
@@ -23262,8 +23431,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
23262
23431
|
};
|
23263
23432
|
}
|
23264
23433
|
|
23265
|
-
function ownKeys$
|
23266
|
-
function _objectSpread$
|
23434
|
+
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; }
|
23435
|
+
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; }
|
23267
23436
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
23268
23437
|
var id = _ref.id,
|
23269
23438
|
data = _ref.data,
|
@@ -23371,12 +23540,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
23371
23540
|
}
|
23372
23541
|
function onEnter(e) {
|
23373
23542
|
if (e.key != 'Enter') return;
|
23374
|
-
setCrop(_objectSpread$
|
23543
|
+
setCrop(_objectSpread$B(_objectSpread$B({}, crop), {}, {
|
23375
23544
|
unit: 'px',
|
23376
23545
|
width: Number(widthInputElement.current.value),
|
23377
23546
|
height: Number(heightInputElement.current.value)
|
23378
23547
|
}));
|
23379
|
-
setCompletedCrop(_objectSpread$
|
23548
|
+
setCompletedCrop(_objectSpread$B(_objectSpread$B({}, crop), {}, {
|
23380
23549
|
unit: 'px',
|
23381
23550
|
width: Number(widthInputElement.current.value),
|
23382
23551
|
height: Number(heightInputElement.current.value)
|
@@ -23454,8 +23623,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
23454
23623
|
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; } } }; }
|
23455
23624
|
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; } }
|
23456
23625
|
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; }
|
23457
|
-
function ownKeys$
|
23458
|
-
function _objectSpread$
|
23626
|
+
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; }
|
23627
|
+
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; }
|
23459
23628
|
function useDescriptions (_ref) {
|
23460
23629
|
var id = _ref.id;
|
23461
23630
|
var root = useStore();
|
@@ -23548,7 +23717,7 @@ function _getDisplayData() {
|
|
23548
23717
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
23549
23718
|
while (1) switch (_context4.prev = _context4.next) {
|
23550
23719
|
case 0:
|
23551
|
-
displayData = _objectSpread$
|
23720
|
+
displayData = _objectSpread$A({}, data);
|
23552
23721
|
_iterator = _createForOfIteratorHelper$9(items);
|
23553
23722
|
_context4.prev = 2;
|
23554
23723
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
@@ -23824,8 +23993,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
23824
23993
|
};
|
23825
23994
|
var FileUploadBeta = observer(FileUploadWrapper$1);
|
23826
23995
|
|
23827
|
-
function ownKeys$
|
23828
|
-
function _objectSpread$
|
23996
|
+
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; }
|
23997
|
+
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; }
|
23829
23998
|
function useGridData (_ref) {
|
23830
23999
|
var id = _ref.id,
|
23831
24000
|
data = _ref.data;
|
@@ -23868,11 +24037,11 @@ function useGridData (_ref) {
|
|
23868
24037
|
function reducer(state, action) {
|
23869
24038
|
switch (action.type) {
|
23870
24039
|
case 'update':
|
23871
|
-
return _objectSpread$
|
24040
|
+
return _objectSpread$z(_objectSpread$z({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$z(_objectSpread$z({}, action.data), {}, {
|
23872
24041
|
buffer: Buffer.from(action.data.buffer)
|
23873
24042
|
})));
|
23874
24043
|
case 'delete':
|
23875
|
-
var newState = _objectSpread$
|
24044
|
+
var newState = _objectSpread$z({}, state);
|
23876
24045
|
delete newState[action.data.divaNr];
|
23877
24046
|
return newState;
|
23878
24047
|
default:
|
@@ -23882,19 +24051,19 @@ function reducer(state, action) {
|
|
23882
24051
|
|
23883
24052
|
var grid = "grid-sGemi";
|
23884
24053
|
var textWrapper = "text-wrapper-xsPXE";
|
23885
|
-
var css_248z$
|
23886
|
-
styleInject(css_248z$
|
24054
|
+
var css_248z$m = ".grid-sGemi {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n grid-auto-rows: min-content;\n grid-gap: 10px;\n}\n\n.text-wrapper-xsPXE {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n";
|
24055
|
+
styleInject(css_248z$m);
|
23887
24056
|
|
23888
|
-
var wrapper$
|
24057
|
+
var wrapper$4 = "wrapper-p-gR3";
|
23889
24058
|
var container$5 = "container-DoZqe";
|
23890
|
-
var css_248z$
|
23891
|
-
styleInject(css_248z$
|
24059
|
+
var css_248z$l = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
|
24060
|
+
styleInject(css_248z$l);
|
23892
24061
|
|
23893
24062
|
var ToolTipInfo = function ToolTipInfo(props) {
|
23894
24063
|
var _useTranslation = useTranslation(),
|
23895
24064
|
t = _useTranslation.t;
|
23896
24065
|
return /*#__PURE__*/jsx("div", {
|
23897
|
-
className: wrapper$
|
24066
|
+
className: wrapper$4,
|
23898
24067
|
children: /*#__PURE__*/jsx(Card, {
|
23899
24068
|
title: t('backoffice.tooltipinfo.useroverview'),
|
23900
24069
|
styles: {
|
@@ -23959,8 +24128,8 @@ var Grid = function Grid(_ref) {
|
|
23959
24128
|
});
|
23960
24129
|
};
|
23961
24130
|
|
23962
|
-
function ownKeys$
|
23963
|
-
function _objectSpread$
|
24131
|
+
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; }
|
24132
|
+
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; }
|
23964
24133
|
var useMediaUpload = function useMediaUpload(_ref) {
|
23965
24134
|
var id = _ref.id;
|
23966
24135
|
var root = useStore();
|
@@ -24079,7 +24248,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24079
24248
|
onRemove: onRemove,
|
24080
24249
|
customRequest: customRequest,
|
24081
24250
|
fileList: fileList.map(function (f) {
|
24082
|
-
return _objectSpread$
|
24251
|
+
return _objectSpread$y(_objectSpread$y({}, f), {}, {
|
24083
24252
|
url: f.url
|
24084
24253
|
});
|
24085
24254
|
}),
|
@@ -24091,8 +24260,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24091
24260
|
var small = "small-NY1-k";
|
24092
24261
|
var medium = "medium---QcO";
|
24093
24262
|
var big = "big--E39S";
|
24094
|
-
var css_248z$
|
24095
|
-
styleInject(css_248z$
|
24263
|
+
var css_248z$k = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-drawer-body .ant-spin-nested-loading {\n width: 100%;\n height: 80%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
|
24264
|
+
styleInject(css_248z$k);
|
24096
24265
|
|
24097
24266
|
var MediaUpload = observer(function (_ref) {
|
24098
24267
|
var id = _ref.id;
|
@@ -24152,8 +24321,8 @@ var editableRow = "editable-row-9BEHi";
|
|
24152
24321
|
var checkbox = "checkbox-H7R-w";
|
24153
24322
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
24154
24323
|
var contentWidth = "content-width-hGyVI";
|
24155
|
-
var css_248z$
|
24156
|
-
styleInject(css_248z$
|
24324
|
+
var css_248z$j = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n";
|
24325
|
+
styleInject(css_248z$j);
|
24157
24326
|
|
24158
24327
|
function BooleanCell (_ref) {
|
24159
24328
|
var children = _ref.children,
|
@@ -24836,8 +25005,8 @@ function LinkCell (_ref) {
|
|
24836
25005
|
|
24837
25006
|
var _excluded$1 = ["index"],
|
24838
25007
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
24839
|
-
function ownKeys$
|
24840
|
-
function _objectSpread$
|
25008
|
+
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; }
|
25009
|
+
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; }
|
24841
25010
|
var LOG$4 = getLogger('Backoffice', 'CellRenderer');
|
24842
25011
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
24843
25012
|
var CustomRow = function CustomRow(_ref) {
|
@@ -24851,7 +25020,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
24851
25020
|
component: false,
|
24852
25021
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
24853
25022
|
value: form,
|
24854
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
25023
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$x({}, props))
|
24855
25024
|
})
|
24856
25025
|
});
|
24857
25026
|
};
|
@@ -24904,7 +25073,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
24904
25073
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
24905
25074
|
longDescriptionType = 'text';
|
24906
25075
|
}
|
24907
|
-
var modifiedColumn = _objectSpread$
|
25076
|
+
var modifiedColumn = _objectSpread$x(_objectSpread$x({}, column), {}, {
|
24908
25077
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
24909
25078
|
});
|
24910
25079
|
if (column) {
|
@@ -24917,40 +25086,40 @@ var CustomCell = function CustomCell(_ref2) {
|
|
24917
25086
|
};
|
24918
25087
|
switch (modifiedColumn.type) {
|
24919
25088
|
case 'boolean':
|
24920
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
25089
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$x({}, cellProps));
|
24921
25090
|
break;
|
24922
25091
|
case 'text':
|
24923
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
25092
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$x({}, cellProps));
|
24924
25093
|
break;
|
24925
25094
|
case 'select':
|
24926
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
25095
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$x({}, cellProps));
|
24927
25096
|
case 'media':
|
24928
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
25097
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$x({}, cellProps));
|
24929
25098
|
break;
|
24930
25099
|
case 'mediaItem':
|
24931
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
25100
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$x({}, cellProps));
|
24932
25101
|
break;
|
24933
25102
|
case 'unixTimeStamp':
|
24934
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
25103
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$x({}, cellProps));
|
24935
25104
|
break;
|
24936
25105
|
case 'unixTimeStampCheck':
|
24937
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
25106
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$x({}, cellProps));
|
24938
25107
|
break;
|
24939
25108
|
case 'icon':
|
24940
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
25109
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$x({}, cellProps));
|
24941
25110
|
break;
|
24942
25111
|
case 'progress':
|
24943
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
25112
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$x({}, cellProps));
|
24944
25113
|
break;
|
24945
25114
|
case 'link':
|
24946
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
25115
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$x({}, cellProps));
|
24947
25116
|
break;
|
24948
25117
|
default:
|
24949
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
25118
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$x({}, cellProps));
|
24950
25119
|
break;
|
24951
25120
|
}
|
24952
25121
|
}
|
24953
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
25122
|
+
return /*#__PURE__*/jsx("td", _objectSpread$x(_objectSpread$x({}, restProps), {}, {
|
24954
25123
|
children: childNode
|
24955
25124
|
}));
|
24956
25125
|
};
|
@@ -25142,8 +25311,8 @@ function useAGHistogram (_ref) {
|
|
25142
25311
|
var container$4 = "container-2r-OJ";
|
25143
25312
|
var column1 = "column1-9viTK";
|
25144
25313
|
var spinner = "spinner-00VcK";
|
25145
|
-
var css_248z$
|
25146
|
-
styleInject(css_248z$
|
25314
|
+
var css_248z$i = ".container-2r-OJ {\n display: flex;\n gap: 40px; /* Distribute the columns evenly */\n}\n\n.column-yZ2Qc {\n padding: 10px;\n}\n\n.column1-9viTK .column-yZ2Qc {\n flex: 8;\n}\n\n.column2-pCnEz .column-yZ2Qc {\n flex: 1;\n}\n\n.column3-QZDVv .column-yZ2Qc {\n flex: 3;\n}\n\n.spinner-00VcK {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
|
25315
|
+
styleInject(css_248z$i);
|
25147
25316
|
|
25148
25317
|
var Panel = Collapse.Panel;
|
25149
25318
|
function AGHistogram (_ref) {
|
@@ -25302,8 +25471,8 @@ var SMChart = function SMChart(props) {
|
|
25302
25471
|
}) : /*#__PURE__*/jsx(Fragment, {});
|
25303
25472
|
};
|
25304
25473
|
|
25305
|
-
function ownKeys$
|
25306
|
-
function _objectSpread$
|
25474
|
+
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; }
|
25475
|
+
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; }
|
25307
25476
|
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; } } }; }
|
25308
25477
|
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; } }
|
25309
25478
|
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; }
|
@@ -25419,7 +25588,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25419
25588
|
style: {
|
25420
25589
|
"float": 'right'
|
25421
25590
|
},
|
25422
|
-
children: [state.configuration.histogram && state.configuration.histogram.type == 'default' && /*#__PURE__*/jsx(Button, {
|
25591
|
+
children: [state.configuration.histogram && state.configuration.histogram.type == 'default' && root.actions.userHasPermission(state.configuration.histogram.permission) && /*#__PURE__*/jsx(Button, {
|
25423
25592
|
type: "default",
|
25424
25593
|
size: 'middle',
|
25425
25594
|
onClick: function onClick() {
|
@@ -25498,7 +25667,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25498
25667
|
// Convert to Dayjs
|
25499
25668
|
(_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
|
25500
25669
|
]
|
25501
|
-
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
25670
|
+
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$w(_objectSpread$w({}, (_state$configuration$5 = state.configuration.filter) === null || _state$configuration$5 === void 0 ? void 0 : _state$configuration$5.select.settings), {}, {
|
25502
25671
|
style: {
|
25503
25672
|
minWidth: '200px'
|
25504
25673
|
},
|
@@ -25603,7 +25772,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25603
25772
|
},
|
25604
25773
|
dataSource: data,
|
25605
25774
|
loading: state.loading,
|
25606
|
-
pagination: _objectSpread$
|
25775
|
+
pagination: _objectSpread$w(_objectSpread$w({}, state.pagination), {}, {
|
25607
25776
|
showTotal: function showTotal(total, range) {
|
25608
25777
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
25609
25778
|
},
|
@@ -25910,7 +26079,7 @@ function BulkAction(_ref6) {
|
|
25910
26079
|
}
|
25911
26080
|
_context4.t0 = data;
|
25912
26081
|
_context4.next = 11;
|
25913
|
-
return apiInterface.update(_objectSpread$
|
26082
|
+
return apiInterface.update(_objectSpread$w(_objectSpread$w({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
25914
26083
|
case 11:
|
25915
26084
|
_context4.t1 = _context4.sent;
|
25916
26085
|
_context4.t0.push.call(_context4.t0, _context4.t1);
|
@@ -26023,8 +26192,8 @@ function SelectionText(_ref8) {
|
|
26023
26192
|
});
|
26024
26193
|
}
|
26025
26194
|
|
26026
|
-
function ownKeys$
|
26027
|
-
function _objectSpread$
|
26195
|
+
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; }
|
26196
|
+
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; }
|
26028
26197
|
function getColumnFilterProps (_ref) {
|
26029
26198
|
var filter = _ref.filter,
|
26030
26199
|
title = _ref.title;
|
@@ -26387,7 +26556,7 @@ var selectProps = function selectProps(title, filter) {
|
|
26387
26556
|
});
|
26388
26557
|
},
|
26389
26558
|
options: filter.map(function (f) {
|
26390
|
-
return _objectSpread$
|
26559
|
+
return _objectSpread$v(_objectSpread$v({}, f), {}, {
|
26391
26560
|
label: t(f.label)
|
26392
26561
|
});
|
26393
26562
|
})
|
@@ -26436,7 +26605,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
26436
26605
|
setDisplaySelectedvalues = _useState4[1];
|
26437
26606
|
var options = [];
|
26438
26607
|
options = filter.map(function (f) {
|
26439
|
-
return _objectSpread$
|
26608
|
+
return _objectSpread$v(_objectSpread$v({}, f), {}, {
|
26440
26609
|
label: t(f.label)
|
26441
26610
|
});
|
26442
26611
|
});
|
@@ -26510,8 +26679,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
26510
26679
|
};
|
26511
26680
|
};
|
26512
26681
|
|
26513
|
-
function ownKeys$
|
26514
|
-
function _objectSpread$
|
26682
|
+
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; }
|
26683
|
+
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; }
|
26515
26684
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
|
26516
26685
|
var columns = configuration.columns.filter(function (c) {
|
26517
26686
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
@@ -26564,7 +26733,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
26564
26733
|
}
|
26565
26734
|
function mapColumn(column, onUpdate) {
|
26566
26735
|
var _column$field, _column$children;
|
26567
|
-
return _objectSpread$
|
26736
|
+
return _objectSpread$u(_objectSpread$u(_objectSpread$u({}, column), {}, {
|
26568
26737
|
hidden: false,
|
26569
26738
|
width: column.width || 100,
|
26570
26739
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
@@ -26614,8 +26783,8 @@ function updateData (_ref) {
|
|
26614
26783
|
};
|
26615
26784
|
}
|
26616
26785
|
|
26617
|
-
function ownKeys$
|
26618
|
-
function _objectSpread$
|
26786
|
+
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; }
|
26787
|
+
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; }
|
26619
26788
|
function applyFilterAndSortation (_ref) {
|
26620
26789
|
var data = _ref.data,
|
26621
26790
|
filters = _ref.filters,
|
@@ -26630,7 +26799,7 @@ function applyFilterAndSortation (_ref) {
|
|
26630
26799
|
processedData = sort(sorter || [], processedData);
|
26631
26800
|
return {
|
26632
26801
|
data: processedData,
|
26633
|
-
pagination: _objectSpread$
|
26802
|
+
pagination: _objectSpread$t(_objectSpread$t({}, pagination), {}, {
|
26634
26803
|
total: processedData.length
|
26635
26804
|
})
|
26636
26805
|
};
|
@@ -26715,8 +26884,8 @@ function filter(f, data) {
|
|
26715
26884
|
}
|
26716
26885
|
|
26717
26886
|
var _excluded = ["_id"];
|
26718
|
-
function ownKeys$
|
26719
|
-
function _objectSpread$
|
26887
|
+
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; }
|
26888
|
+
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; }
|
26720
26889
|
function useTableData$1 (_ref) {
|
26721
26890
|
var _configuration$apiInt;
|
26722
26891
|
var id = _ref.id;
|
@@ -26771,7 +26940,7 @@ function useTableData$1 (_ref) {
|
|
26771
26940
|
var _configuration$create;
|
26772
26941
|
if (!dataRow) return;
|
26773
26942
|
var id = v4();
|
26774
|
-
var processedDataRow = unflatten(_objectSpread$
|
26943
|
+
var processedDataRow = unflatten(_objectSpread$s({
|
26775
26944
|
_id: id,
|
26776
26945
|
ID: id
|
26777
26946
|
}, dataRow));
|
@@ -26783,11 +26952,11 @@ function useTableData$1 (_ref) {
|
|
26783
26952
|
newData = _updateData.data;
|
26784
26953
|
_updateData.prevDataRow;
|
26785
26954
|
_updateData.index;
|
26786
|
-
var newState = _objectSpread$
|
26955
|
+
var newState = _objectSpread$s(_objectSpread$s({}, state), {}, {
|
26787
26956
|
data: newData
|
26788
26957
|
});
|
26789
26958
|
if (!filterServerSide) {
|
26790
|
-
var res = applyFilterAndSortation(_objectSpread$
|
26959
|
+
var res = applyFilterAndSortation(_objectSpread$s(_objectSpread$s({}, filterData), {}, {
|
26791
26960
|
data: newData
|
26792
26961
|
}));
|
26793
26962
|
newState.data = res.data;
|
@@ -26799,33 +26968,33 @@ function useTableData$1 (_ref) {
|
|
26799
26968
|
var formData = new FormData();
|
26800
26969
|
processedDataRow._id;
|
26801
26970
|
var value = _objectWithoutProperties(processedDataRow, _excluded);
|
26802
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
26971
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$s(_objectSpread$s({}, catalogItem), {}, {
|
26803
26972
|
filterContex: filterContex,
|
26804
26973
|
value: JSON.stringify([value])
|
26805
26974
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
26806
26975
|
if (d && d.Result && d.Result == 'Success') return;
|
26807
|
-
setState(_objectSpread$
|
26976
|
+
setState(_objectSpread$s({}, oldState));
|
26808
26977
|
});
|
26809
26978
|
}, [state, catalogItem, filterData]);
|
26810
26979
|
useEffect(function () {
|
26811
26980
|
if (!catalogItem) return;
|
26812
|
-
setState(_objectSpread$
|
26981
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
26813
26982
|
loading: true,
|
26814
|
-
mappingData: _objectSpread$
|
26983
|
+
mappingData: _objectSpread$s(_objectSpread$s({}, catalogItem), {}, {
|
26815
26984
|
filterContex: filterContex
|
26816
26985
|
})
|
26817
26986
|
}));
|
26818
26987
|
if (!filterServerSide) {
|
26819
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
26988
|
+
apiHandler.readList(configuration.mapping, _objectSpread$s(_objectSpread$s({}, catalogItem), {}, {
|
26820
26989
|
filterContex: filterContex
|
26821
26990
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
26822
26991
|
var newData = data.data.map(function (d) {
|
26823
|
-
return _objectSpread$
|
26992
|
+
return _objectSpread$s(_objectSpread$s({}, d), {}, {
|
26824
26993
|
_id: d._id || d.ID || nanoid()
|
26825
26994
|
});
|
26826
26995
|
});
|
26827
26996
|
onChange({
|
26828
|
-
pagination: _objectSpread$
|
26997
|
+
pagination: _objectSpread$s({}, state.pagination),
|
26829
26998
|
filters: {},
|
26830
26999
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
26831
27000
|
return c.defaultSortOrder;
|
@@ -26841,7 +27010,7 @@ function useTableData$1 (_ref) {
|
|
26841
27010
|
});
|
26842
27011
|
} else {
|
26843
27012
|
onChange({
|
26844
|
-
pagination: _objectSpread$
|
27013
|
+
pagination: _objectSpread$s({}, state.pagination),
|
26845
27014
|
filters: {},
|
26846
27015
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
26847
27016
|
return c.defaultSortOrder;
|
@@ -26857,17 +27026,17 @@ function useTableData$1 (_ref) {
|
|
26857
27026
|
}
|
26858
27027
|
}, [filterContex, catalogItem]);
|
26859
27028
|
var onChange = function onChange(p, dataParam) {
|
26860
|
-
setState(_objectSpread$
|
27029
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
26861
27030
|
loading: true
|
26862
27031
|
}));
|
26863
27032
|
if (!filterServerSide) {
|
26864
27033
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
26865
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
27034
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$s(_objectSpread$s({}, p), {}, {
|
26866
27035
|
data: unfilteredData
|
26867
27036
|
})),
|
26868
27037
|
data = _applyFilterAndSortat.data,
|
26869
27038
|
pagination = _applyFilterAndSortat.pagination;
|
26870
|
-
setState(_objectSpread$
|
27039
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
26871
27040
|
data: data,
|
26872
27041
|
pagination: pagination,
|
26873
27042
|
loading: false,
|
@@ -26878,20 +27047,20 @@ function useTableData$1 (_ref) {
|
|
26878
27047
|
sorter: p.sorter
|
26879
27048
|
});
|
26880
27049
|
} else {
|
26881
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
27050
|
+
apiHandler.readList(configuration.mapping, _objectSpread$s(_objectSpread$s({}, catalogItem), {}, {
|
26882
27051
|
filterContex: filterContex
|
26883
27052
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
26884
|
-
setState(_objectSpread$
|
27053
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
26885
27054
|
data: data.data.map(function (dt) {
|
26886
|
-
return _objectSpread$
|
27055
|
+
return _objectSpread$s(_objectSpread$s({}, dt), {}, {
|
26887
27056
|
_id: dt._id || dt.ID || nanoid()
|
26888
27057
|
});
|
26889
27058
|
}),
|
26890
|
-
pagination: _objectSpread$
|
27059
|
+
pagination: _objectSpread$s(_objectSpread$s({}, p.pagination), {}, {
|
26891
27060
|
total: data.total
|
26892
27061
|
}),
|
26893
27062
|
loading: false,
|
26894
|
-
mappingData: _objectSpread$
|
27063
|
+
mappingData: _objectSpread$s(_objectSpread$s({}, catalogItem), {}, {
|
26895
27064
|
filterContex: filterContex
|
26896
27065
|
})
|
26897
27066
|
}));
|
@@ -26912,7 +27081,7 @@ function useTableData$1 (_ref) {
|
|
26912
27081
|
filters['_id'] = [id, 'eq', false];
|
26913
27082
|
_context.next = 4;
|
26914
27083
|
return apiHandler.readList(configuration.mapping, {
|
26915
|
-
pagination: _objectSpread$
|
27084
|
+
pagination: _objectSpread$s({}, state.pagination),
|
26916
27085
|
columns: configuration.columns,
|
26917
27086
|
filters: filters,
|
26918
27087
|
sorter: filterData.sorter
|
@@ -26931,7 +27100,7 @@ function useTableData$1 (_ref) {
|
|
26931
27100
|
};
|
26932
27101
|
}();
|
26933
27102
|
var onSelect = function onSelect(keys) {
|
26934
|
-
setState(_objectSpread$
|
27103
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
26935
27104
|
selected: keys
|
26936
27105
|
}));
|
26937
27106
|
};
|
@@ -26941,7 +27110,7 @@ function useTableData$1 (_ref) {
|
|
26941
27110
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
26942
27111
|
while (1) switch (_context3.prev = _context3.next) {
|
26943
27112
|
case 0:
|
26944
|
-
setState(_objectSpread$
|
27113
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
26945
27114
|
deleting: true
|
26946
27115
|
}));
|
26947
27116
|
newData = _toConsumableArray(state.data);
|
@@ -26956,7 +27125,7 @@ function useTableData$1 (_ref) {
|
|
26956
27125
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
26957
27126
|
return nd._id === state.selected[index];
|
26958
27127
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
26959
|
-
mappingData = _objectSpread$
|
27128
|
+
mappingData = _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData);
|
26960
27129
|
_context2.next = 5;
|
26961
27130
|
return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData, true, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid);
|
26962
27131
|
case 5:
|
@@ -27006,7 +27175,7 @@ function useTableData$1 (_ref) {
|
|
27006
27175
|
}
|
27007
27176
|
_context3.next = 18;
|
27008
27177
|
return apiHandler.readList(configuration.mapping, {
|
27009
|
-
pagination: _objectSpread$
|
27178
|
+
pagination: _objectSpread$s(_objectSpread$s({}, state.pagination), {}, {
|
27010
27179
|
current: current
|
27011
27180
|
}),
|
27012
27181
|
columns: configuration.columns,
|
@@ -27018,11 +27187,11 @@ function useTableData$1 (_ref) {
|
|
27018
27187
|
newData = data.data;
|
27019
27188
|
total = data.total;
|
27020
27189
|
case 21:
|
27021
|
-
setState(_objectSpread$
|
27190
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27022
27191
|
selected: [],
|
27023
27192
|
deleting: false,
|
27024
27193
|
data: newData,
|
27025
|
-
pagination: _objectSpread$
|
27194
|
+
pagination: _objectSpread$s(_objectSpread$s({}, state.pagination), {}, {
|
27026
27195
|
current: current,
|
27027
27196
|
total: total
|
27028
27197
|
})
|
@@ -27038,12 +27207,12 @@ function useTableData$1 (_ref) {
|
|
27038
27207
|
};
|
27039
27208
|
}();
|
27040
27209
|
function setLoading() {
|
27041
|
-
setState(_objectSpread$
|
27210
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27042
27211
|
loading: true
|
27043
27212
|
}));
|
27044
27213
|
}
|
27045
|
-
return _objectSpread$
|
27046
|
-
configuration: _objectSpread$
|
27214
|
+
return _objectSpread$s(_objectSpread$s({}, state), {}, {
|
27215
|
+
configuration: _objectSpread$s(_objectSpread$s({}, configuration), {}, {
|
27047
27216
|
title: undefined
|
27048
27217
|
}),
|
27049
27218
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
@@ -27155,8 +27324,8 @@ function objectHash (obj) {
|
|
27155
27324
|
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; } } }; }
|
27156
27325
|
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; } }
|
27157
27326
|
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; }
|
27158
|
-
function ownKeys$
|
27159
|
-
function _objectSpread$
|
27327
|
+
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; }
|
27328
|
+
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; }
|
27160
27329
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
27161
27330
|
function useTableData (_ref) {
|
27162
27331
|
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$filter4, _configuration$bulkAc, _configuration$apiInt;
|
@@ -27215,7 +27384,7 @@ function useTableData (_ref) {
|
|
27215
27384
|
var _useState13 = useState({
|
27216
27385
|
loading: true,
|
27217
27386
|
deleting: false,
|
27218
|
-
pagination: _objectSpread$
|
27387
|
+
pagination: _objectSpread$r({
|
27219
27388
|
current: 1,
|
27220
27389
|
pageSize: 20,
|
27221
27390
|
total: 0,
|
@@ -27224,7 +27393,7 @@ function useTableData (_ref) {
|
|
27224
27393
|
selected: [],
|
27225
27394
|
canDelete: !!apiHandler.canDelete,
|
27226
27395
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
27227
|
-
mappingData: _objectSpread$
|
27396
|
+
mappingData: _objectSpread$r(_objectSpread$r({}, parentData), {}, {
|
27228
27397
|
prefilter: {
|
27229
27398
|
select: globalFilter.select
|
27230
27399
|
},
|
@@ -27235,7 +27404,7 @@ function useTableData (_ref) {
|
|
27235
27404
|
_useState14 = _slicedToArray(_useState13, 2),
|
27236
27405
|
state = _useState14[0],
|
27237
27406
|
setState = _useState14[1];
|
27238
|
-
var mappingData = _objectSpread$
|
27407
|
+
var mappingData = _objectSpread$r(_objectSpread$r(_objectSpread$r({}, parentData), state.data), {}, {
|
27239
27408
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
27240
27409
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
27241
27410
|
});
|
@@ -27274,7 +27443,7 @@ function useTableData (_ref) {
|
|
27274
27443
|
}
|
27275
27444
|
var dataArray = Array.isArray(data) ? data : [data];
|
27276
27445
|
var newInitData = initData;
|
27277
|
-
var newState = _objectSpread$
|
27446
|
+
var newState = _objectSpread$r({}, state);
|
27278
27447
|
var selected = [];
|
27279
27448
|
if (configuration.deselectOnUpdate == false) {
|
27280
27449
|
selected = state.selected;
|
@@ -27291,7 +27460,7 @@ function useTableData (_ref) {
|
|
27291
27460
|
dataRow: dataRow
|
27292
27461
|
}),
|
27293
27462
|
_data = _updateData.data;
|
27294
|
-
newState = _objectSpread$
|
27463
|
+
newState = _objectSpread$r(_objectSpread$r({}, newState), {}, {
|
27295
27464
|
data: _data,
|
27296
27465
|
selected: selected
|
27297
27466
|
});
|
@@ -27303,8 +27472,8 @@ function useTableData (_ref) {
|
|
27303
27472
|
dataRow: dataRow
|
27304
27473
|
}),
|
27305
27474
|
nextInitData = _updateData2.data;
|
27306
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
27307
|
-
filters: _objectSpread$
|
27475
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$r(_objectSpread$r(_objectSpread$r({}, filterData), {}, {
|
27476
|
+
filters: _objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r({}, filterData.filters), globalFilter.search), !(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) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
|
27308
27477
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter7 = configuration.filter) !== null && _configuration$filter7 !== void 0 && (_configuration$filter7 = _configuration$filter7.toggle) !== null && _configuration$filter7 !== void 0 && _configuration$filter7.inQuery ? {
|
27309
27478
|
genericProps: globalFilter.toggle
|
27310
27479
|
} : undefined), {}, {
|
@@ -27314,7 +27483,7 @@ function useTableData (_ref) {
|
|
27314
27483
|
_data2 = _applyFilterAndSortat.data,
|
27315
27484
|
pagination = _applyFilterAndSortat.pagination;
|
27316
27485
|
newInitData = nextInitData;
|
27317
|
-
newState = _objectSpread$
|
27486
|
+
newState = _objectSpread$r(_objectSpread$r({}, newState), {}, {
|
27318
27487
|
pagination: pagination,
|
27319
27488
|
data: _data2,
|
27320
27489
|
selected: selected
|
@@ -27324,8 +27493,8 @@ function useTableData (_ref) {
|
|
27324
27493
|
if (apiHandler.canCreate) {
|
27325
27494
|
apiCreate(data).then(function (res) {
|
27326
27495
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
27327
|
-
initData && setInitData(_objectSpread$
|
27328
|
-
setState(_objectSpread$
|
27496
|
+
initData && setInitData(_objectSpread$r({}, initData));
|
27497
|
+
setState(_objectSpread$r({}, state));
|
27329
27498
|
}
|
27330
27499
|
});
|
27331
27500
|
}
|
@@ -27338,7 +27507,7 @@ function useTableData (_ref) {
|
|
27338
27507
|
var triggerRefresh = function triggerRefresh() {
|
27339
27508
|
var _configuration$filter8;
|
27340
27509
|
setError(undefined);
|
27341
|
-
var newGlobalFilter = _objectSpread$
|
27510
|
+
var newGlobalFilter = _objectSpread$r({}, globalFilter);
|
27342
27511
|
//on refresh update default filter, since global value can change
|
27343
27512
|
if ((_configuration$filter8 = configuration.filter) !== null && _configuration$filter8 !== void 0 && _configuration$filter8["default"]) {
|
27344
27513
|
var _configuration$filter9;
|
@@ -27349,7 +27518,7 @@ function useTableData (_ref) {
|
|
27349
27518
|
newGlobalFilter["default"] = _defaultFilter;
|
27350
27519
|
setGlobaFilter(newGlobalFilter);
|
27351
27520
|
}
|
27352
|
-
onChange(_objectSpread$
|
27521
|
+
onChange(_objectSpread$r({
|
27353
27522
|
pagination: state.pagination
|
27354
27523
|
}, filterData), newGlobalFilter, true);
|
27355
27524
|
};
|
@@ -27367,7 +27536,7 @@ function useTableData (_ref) {
|
|
27367
27536
|
order: c.defaultSortOrder
|
27368
27537
|
};
|
27369
27538
|
});
|
27370
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
27539
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27371
27540
|
loading: false
|
27372
27541
|
}));else {
|
27373
27542
|
onChange({
|
@@ -27410,7 +27579,7 @@ function useTableData (_ref) {
|
|
27410
27579
|
case 0:
|
27411
27580
|
filters = {};
|
27412
27581
|
filters['_id'] = [id, 'eq', false];
|
27413
|
-
ssf = _objectSpread$
|
27582
|
+
ssf = _objectSpread$r({
|
27414
27583
|
pagination: {
|
27415
27584
|
current: 1,
|
27416
27585
|
pageSize: 1
|
@@ -27421,7 +27590,7 @@ function useTableData (_ref) {
|
|
27421
27590
|
genericProps: globalFilter.toggle
|
27422
27591
|
} : undefined);
|
27423
27592
|
_context2.next = 5;
|
27424
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
27593
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$r(_objectSpread$r({}, mappingData), state.mappingData), ssf);
|
27425
27594
|
case 5:
|
27426
27595
|
data = _context2.sent;
|
27427
27596
|
return _context2.abrupt("return", data);
|
@@ -27465,12 +27634,12 @@ function useTableData (_ref) {
|
|
27465
27634
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
27466
27635
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
27467
27636
|
overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
|
27468
|
-
setState(_objectSpread$
|
27637
|
+
setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27469
27638
|
mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
|
27470
27639
|
loading: true
|
27471
27640
|
}));
|
27472
27641
|
currentData = initData;
|
27473
|
-
filterData = _objectSpread$
|
27642
|
+
filterData = _objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r({}, prefilter.search), ((_configuration$filter11 = configuration.filter) === null || _configuration$filter11 === void 0 || (_configuration$filter11 = _configuration$filter11.select) === null || _configuration$filter11 === void 0 ? void 0 : _configuration$filter11.applyDefaultValue) !== false || ((_configuration$filter12 = configuration.filter) === null || _configuration$filter12 === void 0 || (_configuration$filter12 = _configuration$filter12.select) === null || _configuration$filter12 === void 0 ? void 0 : _configuration$filter12.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter13 = (_configuration$filter14 = configuration.filter) === null || _configuration$filter14 === void 0 || (_configuration$filter14 = _configuration$filter14.select) === null || _configuration$filter14 === void 0 ? void 0 : _configuration$filter14.filterField) !== null && _configuration$filter13 !== void 0 ? _configuration$filter13 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
|
27474
27643
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
|
27475
27644
|
var _ref7 = _slicedToArray(_ref6, 2);
|
27476
27645
|
_ref7[0];
|
@@ -27478,7 +27647,7 @@ function useTableData (_ref) {
|
|
27478
27647
|
return v != null;
|
27479
27648
|
}));
|
27480
27649
|
currentFilterHash = objectHash(filterData);
|
27481
|
-
currentPagination = _objectSpread$
|
27650
|
+
currentPagination = _objectSpread$r(_objectSpread$r({}, p.pagination), {}, {
|
27482
27651
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
27483
27652
|
});
|
27484
27653
|
filterHash.current = currentFilterHash;
|
@@ -27486,7 +27655,7 @@ function useTableData (_ref) {
|
|
27486
27655
|
_context3.next = 21;
|
27487
27656
|
break;
|
27488
27657
|
}
|
27489
|
-
ssf = _objectSpread$
|
27658
|
+
ssf = _objectSpread$r({
|
27490
27659
|
pagination: currentPagination,
|
27491
27660
|
columns: configuration.columns,
|
27492
27661
|
filters: filterData,
|
@@ -27495,12 +27664,12 @@ function useTableData (_ref) {
|
|
27495
27664
|
genericProps: prefilter.toggle
|
27496
27665
|
} : undefined);
|
27497
27666
|
_context3.next = 15;
|
27498
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
27667
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$r(_objectSpread$r({}, mappingData), overwriteMappingData), ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(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) ? (_prefilter$toggle = prefilter.toggle) !== null && _prefilter$toggle !== void 0 ? _prefilter$toggle : {} : {}, (_parseFilter = parseFilter(p.filters, undefined)) === null || _parseFilter === void 0 ? void 0 : _parseFilter.slice(1, -1)));
|
27499
27668
|
case 15:
|
27500
27669
|
data = _context3.sent;
|
27501
|
-
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$
|
27670
|
+
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$r(_objectSpread$r({}, mappingData), state.mappingData), ssf);
|
27502
27671
|
currentData = data.data;
|
27503
|
-
currentPagination = _objectSpread$
|
27672
|
+
currentPagination = _objectSpread$r(_objectSpread$r({}, currentPagination), {}, {
|
27504
27673
|
total: data.total
|
27505
27674
|
});
|
27506
27675
|
_context3.next = 30;
|
@@ -27517,7 +27686,7 @@ function useTableData (_ref) {
|
|
27517
27686
|
currentData = _data3.data;
|
27518
27687
|
setInitData(currentData);
|
27519
27688
|
case 27:
|
27520
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
27689
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$r(_objectSpread$r({}, p), {}, {
|
27521
27690
|
pagination: currentPagination,
|
27522
27691
|
filters: filterData,
|
27523
27692
|
data: currentData,
|
@@ -27526,11 +27695,11 @@ function useTableData (_ref) {
|
|
27526
27695
|
currentData = _data4;
|
27527
27696
|
currentPagination = pagination;
|
27528
27697
|
case 30:
|
27529
|
-
setState(_objectSpread$
|
27698
|
+
setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27530
27699
|
loading: false,
|
27531
27700
|
data: currentData,
|
27532
27701
|
pagination: currentPagination,
|
27533
|
-
mappingData: _objectSpread$
|
27702
|
+
mappingData: _objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r({}, parentData), state.mappingData), overwriteMappingData), {}, {
|
27534
27703
|
prefilter: prefilter
|
27535
27704
|
}),
|
27536
27705
|
currentFetchUrl: currentUrl
|
@@ -27552,7 +27721,7 @@ function useTableData (_ref) {
|
|
27552
27721
|
};
|
27553
27722
|
}();
|
27554
27723
|
var onSelect = function onSelect(keys) {
|
27555
|
-
setState(_objectSpread$
|
27724
|
+
setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27556
27725
|
selected: keys
|
27557
27726
|
}));
|
27558
27727
|
};
|
@@ -27563,7 +27732,7 @@ function useTableData (_ref) {
|
|
27563
27732
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
27564
27733
|
while (1) switch (_context5.prev = _context5.next) {
|
27565
27734
|
case 0:
|
27566
|
-
setState(_objectSpread$
|
27735
|
+
setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27567
27736
|
deleting: true
|
27568
27737
|
}));
|
27569
27738
|
newData = _toConsumableArray(state.data);
|
@@ -27603,7 +27772,7 @@ function useTableData (_ref) {
|
|
27603
27772
|
} finally {
|
27604
27773
|
_iterator.f();
|
27605
27774
|
}
|
27606
|
-
mappingData = _objectSpread$
|
27775
|
+
mappingData = _objectSpread$r(_objectSpread$r(_objectSpread$r({}, mappingData), state.mappingData), mapToggle);
|
27607
27776
|
deleteResult = undefined;
|
27608
27777
|
_context4.prev = 7;
|
27609
27778
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
@@ -27693,12 +27862,12 @@ function useTableData (_ref) {
|
|
27693
27862
|
break;
|
27694
27863
|
}
|
27695
27864
|
_context5.next = 25;
|
27696
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
27697
|
-
pagination: _objectSpread$
|
27865
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$r(_objectSpread$r({}, mappingData), state.mappingData), _objectSpread$r({
|
27866
|
+
pagination: _objectSpread$r(_objectSpread$r({}, state.pagination), {}, {
|
27698
27867
|
current: current
|
27699
27868
|
}),
|
27700
27869
|
columns: configuration.columns,
|
27701
|
-
filters: _objectSpread$
|
27870
|
+
filters: _objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r({}, filterData.filters), globalFilter.search), !(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) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
|
27702
27871
|
sorter: filterData.sorter
|
27703
27872
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter18 = configuration.filter) !== null && _configuration$filter18 !== void 0 && (_configuration$filter18 = _configuration$filter18.toggle) !== null && _configuration$filter18 !== void 0 && _configuration$filter18.inQuery ? {
|
27704
27873
|
genericProps: globalFilter.toggle
|
@@ -27709,11 +27878,11 @@ function useTableData (_ref) {
|
|
27709
27878
|
total = data.total;
|
27710
27879
|
case 28:
|
27711
27880
|
setInitData(newInitData);
|
27712
|
-
setState(_objectSpread$
|
27881
|
+
setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27713
27882
|
selected: [],
|
27714
27883
|
deleting: false,
|
27715
27884
|
data: newData,
|
27716
|
-
pagination: _objectSpread$
|
27885
|
+
pagination: _objectSpread$r(_objectSpread$r({}, state.pagination), {}, {
|
27717
27886
|
current: current === 0 ? 1 : current,
|
27718
27887
|
total: total
|
27719
27888
|
})
|
@@ -27734,14 +27903,14 @@ function useTableData (_ref) {
|
|
27734
27903
|
LOG$2.error(new DivaError('No global select filter defiend'));
|
27735
27904
|
return;
|
27736
27905
|
}
|
27737
|
-
var newGlobalFilter = _objectSpread$
|
27906
|
+
var newGlobalFilter = _objectSpread$r({}, globalFilter);
|
27738
27907
|
if (value !== null && value !== void 0 && value.length) {
|
27739
27908
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
|
27740
27909
|
} else {
|
27741
27910
|
newGlobalFilter.select = {};
|
27742
27911
|
}
|
27743
27912
|
setGlobaFilter(newGlobalFilter);
|
27744
|
-
onChange(_objectSpread$
|
27913
|
+
onChange(_objectSpread$r({
|
27745
27914
|
pagination: state.pagination
|
27746
27915
|
}, filterData), newGlobalFilter);
|
27747
27916
|
};
|
@@ -27752,16 +27921,16 @@ function useTableData (_ref) {
|
|
27752
27921
|
return;
|
27753
27922
|
}
|
27754
27923
|
var toggleFilter = {};
|
27755
|
-
var mappingData = _objectSpread$
|
27924
|
+
var mappingData = _objectSpread$r({}, state.mappingData);
|
27756
27925
|
configuration.filter.toggle.fields.forEach(function (f) {
|
27757
27926
|
mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
|
27758
27927
|
toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
27759
27928
|
});
|
27760
|
-
var newGlobalFilter = _objectSpread$
|
27929
|
+
var newGlobalFilter = _objectSpread$r(_objectSpread$r({}, globalFilter), {}, {
|
27761
27930
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
27762
27931
|
});
|
27763
27932
|
setGlobaFilter(newGlobalFilter);
|
27764
|
-
onChange(_objectSpread$
|
27933
|
+
onChange(_objectSpread$r({
|
27765
27934
|
pagination: state.pagination
|
27766
27935
|
}, filterData), newGlobalFilter, true, true, mappingData);
|
27767
27936
|
};
|
@@ -27774,7 +27943,7 @@ function useTableData (_ref) {
|
|
27774
27943
|
LOG$2.error(new DivaError('No global search filter defiend'));
|
27775
27944
|
return;
|
27776
27945
|
}
|
27777
|
-
var newGlobalFilter = _objectSpread$
|
27946
|
+
var newGlobalFilter = _objectSpread$r(_objectSpread$r({}, globalFilter), {}, {
|
27778
27947
|
search: {}
|
27779
27948
|
});
|
27780
27949
|
if (value) {
|
@@ -27788,7 +27957,7 @@ function useTableData (_ref) {
|
|
27788
27957
|
});
|
27789
27958
|
}
|
27790
27959
|
setGlobaFilter(newGlobalFilter);
|
27791
|
-
onChange(_objectSpread$
|
27960
|
+
onChange(_objectSpread$r({
|
27792
27961
|
pagination: state.pagination
|
27793
27962
|
}, filterData), newGlobalFilter);
|
27794
27963
|
};
|
@@ -27798,20 +27967,20 @@ function useTableData (_ref) {
|
|
27798
27967
|
LOG$2.error(new DivaError('No global period filter defiend'));
|
27799
27968
|
return;
|
27800
27969
|
}
|
27801
|
-
var newGlobalFilter = _objectSpread$
|
27970
|
+
var newGlobalFilter = _objectSpread$r({}, globalFilter);
|
27802
27971
|
newGlobalFilter.timeStamp = {
|
27803
27972
|
fromTimeStamp: [from],
|
27804
27973
|
toTimeStamp: [to]
|
27805
27974
|
};
|
27806
27975
|
if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
|
27807
|
-
onChange(_objectSpread$
|
27976
|
+
onChange(_objectSpread$r({
|
27808
27977
|
pagination: state.pagination
|
27809
|
-
}, filterData), undefined, true, undefined, _objectSpread$
|
27978
|
+
}, filterData), undefined, true, undefined, _objectSpread$r(_objectSpread$r({}, state.mappingData), {}, {
|
27810
27979
|
from: from,
|
27811
27980
|
to: to
|
27812
27981
|
}));
|
27813
27982
|
};
|
27814
|
-
return _objectSpread$
|
27983
|
+
return _objectSpread$r(_objectSpread$r({}, state), {}, {
|
27815
27984
|
title: title,
|
27816
27985
|
configuration: configuration,
|
27817
27986
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
|
@@ -27853,8 +28022,8 @@ function StandardTable (_ref) {
|
|
27853
28022
|
});
|
27854
28023
|
}
|
27855
28024
|
|
27856
|
-
function ownKeys$
|
27857
|
-
function _objectSpread$
|
28025
|
+
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; }
|
28026
|
+
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; }
|
27858
28027
|
function Table (props) {
|
27859
28028
|
var root = useStore();
|
27860
28029
|
var variant = useMemo(function () {
|
@@ -27862,15 +28031,15 @@ function Table (props) {
|
|
27862
28031
|
return config.variant;
|
27863
28032
|
}, [props.id]);
|
27864
28033
|
return /*#__PURE__*/jsxs(Fragment, {
|
27865
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
28034
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$q({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$q({}, props))]
|
27866
28035
|
});
|
27867
28036
|
}
|
27868
28037
|
|
27869
28038
|
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; } } }; }
|
27870
28039
|
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; } }
|
27871
28040
|
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; }
|
27872
|
-
function ownKeys$
|
27873
|
-
function _objectSpread$
|
28041
|
+
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; }
|
28042
|
+
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; }
|
27874
28043
|
function useAGGrid (_ref) {
|
27875
28044
|
var id = _ref.id,
|
27876
28045
|
filter = _ref.filter,
|
@@ -27964,7 +28133,7 @@ function useAGGrid (_ref) {
|
|
27964
28133
|
value = _ref3[1];
|
27965
28134
|
if (_idx == 0) {
|
27966
28135
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
27967
|
-
rdat.push(_objectSpread$
|
28136
|
+
rdat.push(_objectSpread$p(_objectSpread$p({}, rd), {}, {
|
27968
28137
|
grouping: [idx.toString()]
|
27969
28138
|
}));
|
27970
28139
|
var sp = key.split(':');
|
@@ -28104,11 +28273,11 @@ var loader = "loader-LaXZy";
|
|
28104
28273
|
var flex = "flex-yQdda";
|
28105
28274
|
var bar = "bar-Y663f";
|
28106
28275
|
var value = "value-FCA-6";
|
28107
|
-
var css_248z$
|
28108
|
-
styleInject(css_248z$
|
28276
|
+
var css_248z$h = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
|
28277
|
+
styleInject(css_248z$h);
|
28109
28278
|
|
28110
|
-
function ownKeys$
|
28111
|
-
function _objectSpread$
|
28279
|
+
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; }
|
28280
|
+
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; }
|
28112
28281
|
var AGChart = function AGChart(_ref) {
|
28113
28282
|
var data = _ref.data;
|
28114
28283
|
var groupedData = [];
|
@@ -28116,11 +28285,11 @@ var AGChart = function AGChart(_ref) {
|
|
28116
28285
|
data.forEach(function (dt) {
|
28117
28286
|
if (dt.count == 0) return;
|
28118
28287
|
if (groupedData.length > dt.grouping[0]) {
|
28119
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
28288
|
+
groupedData[dt.grouping[0]].push(_objectSpread$o(_objectSpread$o({}, dt), {}, {
|
28120
28289
|
count: Number(dt.count)
|
28121
28290
|
}));
|
28122
28291
|
} else {
|
28123
|
-
groupedData.push([_objectSpread$
|
28292
|
+
groupedData.push([_objectSpread$o(_objectSpread$o({}, dt), {}, {
|
28124
28293
|
count: Number(dt.count)
|
28125
28294
|
})]);
|
28126
28295
|
}
|
@@ -28161,8 +28330,8 @@ var AGChart = function AGChart(_ref) {
|
|
28161
28330
|
});
|
28162
28331
|
};
|
28163
28332
|
|
28164
|
-
function ownKeys$
|
28165
|
-
function _objectSpread$
|
28333
|
+
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; }
|
28334
|
+
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; }
|
28166
28335
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
28167
28336
|
var id = _ref.id,
|
28168
28337
|
filter = _ref.filter,
|
@@ -28255,7 +28424,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
28255
28424
|
});
|
28256
28425
|
});
|
28257
28426
|
}
|
28258
|
-
return _objectSpread$
|
28427
|
+
return _objectSpread$n(_objectSpread$n({}, column), {}, {
|
28259
28428
|
cellRenderer: renderer
|
28260
28429
|
});
|
28261
28430
|
});
|
@@ -28525,8 +28694,8 @@ var CustomText = function CustomText(_ref) {
|
|
28525
28694
|
};
|
28526
28695
|
var CustomText$1 = observer(CustomText);
|
28527
28696
|
|
28528
|
-
function ownKeys$
|
28529
|
-
function _objectSpread$
|
28697
|
+
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; }
|
28698
|
+
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; }
|
28530
28699
|
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; } } }; }
|
28531
28700
|
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; } }
|
28532
28701
|
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; }
|
@@ -28589,7 +28758,7 @@ function useFilterBoxData (id) {
|
|
28589
28758
|
} finally {
|
28590
28759
|
_iterator.f();
|
28591
28760
|
}
|
28592
|
-
return _objectSpread$
|
28761
|
+
return _objectSpread$m(_objectSpread$m({}, state), ob);
|
28593
28762
|
}
|
28594
28763
|
return {
|
28595
28764
|
configuration: configuration,
|
@@ -28603,8 +28772,8 @@ function useFilterBoxData (id) {
|
|
28603
28772
|
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; } } }; }
|
28604
28773
|
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; } }
|
28605
28774
|
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; }
|
28606
|
-
function ownKeys$
|
28607
|
-
function _objectSpread$
|
28775
|
+
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; }
|
28776
|
+
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; }
|
28608
28777
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
28609
28778
|
var id = _ref.id,
|
28610
28779
|
onChangeFilter = _ref.onChangeFilter,
|
@@ -28632,7 +28801,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
28632
28801
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
|
28633
28802
|
mode: "single",
|
28634
28803
|
apiInterface: filter.requestOptions,
|
28635
|
-
wholeData: _objectSpread$
|
28804
|
+
wholeData: _objectSpread$l(_objectSpread$l({}, state.filter), {}, {
|
28636
28805
|
tab: tab
|
28637
28806
|
}),
|
28638
28807
|
mapping: filter.requestMapping,
|
@@ -28864,8 +29033,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
28864
29033
|
return false;
|
28865
29034
|
});
|
28866
29035
|
|
28867
|
-
function ownKeys$
|
28868
|
-
function _objectSpread$
|
29036
|
+
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; }
|
29037
|
+
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; }
|
28869
29038
|
function useUIBuilderData (id) {
|
28870
29039
|
var save = undefined;
|
28871
29040
|
var root = useStore();
|
@@ -28897,7 +29066,7 @@ function useUIBuilderData (id) {
|
|
28897
29066
|
var configuration = _useMemo.configuration;
|
28898
29067
|
useEffect(function () {
|
28899
29068
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
28900
|
-
return setFilter(_objectSpread$
|
29069
|
+
return setFilter(_objectSpread$k(_objectSpread$k({}, filter), {}, {
|
28901
29070
|
sessionGuid: res
|
28902
29071
|
}));
|
28903
29072
|
});
|
@@ -28920,8 +29089,8 @@ function useUIBuilderData (id) {
|
|
28920
29089
|
};
|
28921
29090
|
}
|
28922
29091
|
|
28923
|
-
function ownKeys$
|
28924
|
-
function _objectSpread$
|
29092
|
+
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; }
|
29093
|
+
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; }
|
28925
29094
|
function UIBuilder(_ref) {
|
28926
29095
|
var id = _ref.id;
|
28927
29096
|
var state = useUIBuilderData(id);
|
@@ -28948,7 +29117,7 @@ function UIBuilder(_ref) {
|
|
28948
29117
|
override = {
|
28949
29118
|
value: newFilter[item.field],
|
28950
29119
|
setValue: function setValue(newVal) {
|
28951
|
-
var newFilter = _objectSpread$
|
29120
|
+
var newFilter = _objectSpread$j({}, state.filter);
|
28952
29121
|
newFilter[item.field] = newVal;
|
28953
29122
|
state.setFilter(newFilter);
|
28954
29123
|
}
|
@@ -28996,7 +29165,7 @@ function UIBuilder(_ref) {
|
|
28996
29165
|
case 'AGGrid':
|
28997
29166
|
return /*#__PURE__*/jsx(AGGrid, {
|
28998
29167
|
id: item.id,
|
28999
|
-
filter: _objectSpread$
|
29168
|
+
filter: _objectSpread$j({
|
29000
29169
|
optionCodices: JSON.stringify(state.data)
|
29001
29170
|
}, state.filter),
|
29002
29171
|
override: item.id == 'AGGridTopOptionValues' ? {
|
@@ -29050,8 +29219,8 @@ var retailerChild = "retailer-child-5ll0K";
|
|
29050
29219
|
var supplier = "supplier-8sm0I";
|
29051
29220
|
var dealer = "dealer-xgnku";
|
29052
29221
|
var association = "association-b8uVW";
|
29053
|
-
var css_248z$
|
29054
|
-
styleInject(css_248z$
|
29222
|
+
var css_248z$g = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n";
|
29223
|
+
styleInject(css_248z$g);
|
29055
29224
|
|
29056
29225
|
function getColorClass(data) {
|
29057
29226
|
switch (data.type) {
|
@@ -29156,8 +29325,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
29156
29325
|
};
|
29157
29326
|
var OrgItem$1 = observer(OrgItem);
|
29158
29327
|
|
29159
|
-
function ownKeys$
|
29160
|
-
function _objectSpread$
|
29328
|
+
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; }
|
29329
|
+
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; }
|
29161
29330
|
function useTransformJson (_ref) {
|
29162
29331
|
var id = _ref.id;
|
29163
29332
|
var _useState = useState(),
|
@@ -29223,7 +29392,7 @@ function useTransformJson (_ref) {
|
|
29223
29392
|
}();
|
29224
29393
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
29225
29394
|
var _data$children;
|
29226
|
-
return _objectSpread$
|
29395
|
+
return _objectSpread$i(_objectSpread$i({}, data), {}, {
|
29227
29396
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
29228
29397
|
data: data,
|
29229
29398
|
configuration: configuration,
|
@@ -29284,8 +29453,8 @@ var openClass = "open-class--gGXs";
|
|
29284
29453
|
var breadcrumb = "breadcrumb-Z0VvH";
|
29285
29454
|
var selected = "selected-w-sfW";
|
29286
29455
|
var disabled$2 = "disabled-0nado";
|
29287
|
-
var css_248z$
|
29288
|
-
styleInject(css_248z$
|
29456
|
+
var css_248z$f = ".trigger-wrapper-OkPRc {\n width: 100%;\n padding: 12px 0px;\n display: flex;\n gap: 32px;\n}\n\n.arrow-Rd0hp {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2213%22 viewBox%3D%220 0 8 13%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0.947266 1.14893L6.94727 6.29178L0.947266 11.9489%22 stroke%3D%22%236F6F6F%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E %3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n transform: rotateZ(0deg);\n transition: all 0.35s ease;\n width: 20.8px;\n height: 22.4px;\n cursor: pointer;\n}\n\n.open-class--gGXs {\n transform: rotateZ(90deg);\n}\n\n.breadcrumb-Z0VvH {\n transition: color 0.3s;\n}\n.breadcrumb-Z0VvH:hover:not(.selected-w-sfW) {\n cursor: pointer;\n color: #000;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.disabled-0nado {\n pointer-events: none;\n color: lightgray;\n}\n\n.darkmode .selected-w-sfW {\n color: #fff;\n font-weight: 400;\n}\n";
|
29457
|
+
styleInject(css_248z$f);
|
29289
29458
|
|
29290
29459
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
29291
29460
|
var open = _ref.open,
|
@@ -29318,8 +29487,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
29318
29487
|
|
29319
29488
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
29320
29489
|
var toolbarLeft = "toolbar-left-X9WRo";
|
29321
|
-
var css_248z$
|
29322
|
-
styleInject(css_248z$
|
29490
|
+
var css_248z$e = ".collapsible-inner-rI8kI {\n overflow: auto;\n padding: 32px 0;\n position: relative;\n}\n\n.toolbar-left-X9WRo {\n position: absolute;\n right: 22px;\n top: 10px;\n display: flex;\n gap: 10px;\n}\n";
|
29491
|
+
styleInject(css_248z$e);
|
29323
29492
|
|
29324
29493
|
var Legend = function Legend(props) {
|
29325
29494
|
return /*#__PURE__*/jsx(List$1, {
|
@@ -29373,8 +29542,8 @@ var Legend = function Legend(props) {
|
|
29373
29542
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
29374
29543
|
var mask = "mask-ssagp";
|
29375
29544
|
var transformWrapper = "transform-wrapper--8t0v";
|
29376
|
-
var css_248z$
|
29377
|
-
styleInject(css_248z$
|
29545
|
+
var css_248z$d = ".buttons-wrapper-Bubkr {\n display: flex;\n gap: 6px;\n}\n\n.buttons-wrapper-Bubkr button {\n min-width: 24px;\n}\n\n.mask-ssagp {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-backdrop-filter: blur(3px);\n backdrop-filter: blur(3px);\n}\n.mask-ssagp p {\n font-size: 18px;\n font-weight: bold;\n background: rgba(255, 255, 255, 0.4);\n padding: 10px;\n border-radius: 5px;\n}\n\n.transform-wrapper--8t0v .ant-modal-mask,\n.transform-wrapper--8t0v .ant-modal-wrap {\n position: absolute;\n}\n";
|
29546
|
+
styleInject(css_248z$d);
|
29378
29547
|
|
29379
29548
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
29380
29549
|
var _children = _ref.children,
|
@@ -29884,8 +30053,8 @@ function useCatalogEditor (id) {
|
|
29884
30053
|
};
|
29885
30054
|
}
|
29886
30055
|
|
29887
|
-
function ownKeys$
|
29888
|
-
function _objectSpread$
|
30056
|
+
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; }
|
30057
|
+
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; }
|
29889
30058
|
function DragDropUpload(_ref) {
|
29890
30059
|
var api2Params = _ref.api2Params,
|
29891
30060
|
catalogId = _ref.catalogId,
|
@@ -29916,7 +30085,10 @@ function DragDropUpload(_ref) {
|
|
29916
30085
|
var props = {
|
29917
30086
|
name: 'file',
|
29918
30087
|
multiple: false,
|
29919
|
-
action: api2Params.api2BaseUrl + '?function=upload&
|
30088
|
+
action: api2Params.api2BaseUrl + '?function=upload&filename=' + fileName,
|
30089
|
+
headers: {
|
30090
|
+
sessionguid: api2Params.api2SessionGuid
|
30091
|
+
},
|
29920
30092
|
accept: '.xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
29921
30093
|
onChange: function onChange(info) {
|
29922
30094
|
var status = info.file.status;
|
@@ -29990,7 +30162,7 @@ function DragDropUpload(_ref) {
|
|
29990
30162
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
29991
30163
|
children: t('backoffice.catalogeditor.classimportstarted')
|
29992
30164
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
29993
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
30165
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$h(_objectSpread$h({}, props), {}, {
|
29994
30166
|
children: [/*#__PURE__*/jsx("p", {
|
29995
30167
|
className: "ant-upload-drag-icon",
|
29996
30168
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
@@ -30207,12 +30379,12 @@ function CatalogEditor(_ref) {
|
|
30207
30379
|
}
|
30208
30380
|
var CatalogEditor$1 = observer(CatalogEditor);
|
30209
30381
|
|
30210
|
-
function ownKeys$
|
30211
|
-
function _objectSpread$
|
30382
|
+
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; }
|
30383
|
+
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; }
|
30212
30384
|
var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
|
30213
30385
|
var _root$contentStore$bo, _root$contentStore$ri;
|
30214
30386
|
var root = useStore();
|
30215
|
-
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$
|
30387
|
+
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$g(_objectSpread$g({}, props), {}, {
|
30216
30388
|
ref: ref,
|
30217
30389
|
darkMode: root.contentStore.theme == 'darkmode',
|
30218
30390
|
jwt: root.dataStore.jwt,
|
@@ -30223,8 +30395,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
30223
30395
|
});
|
30224
30396
|
var Spreadsheet = observer(SpreadsheetWrapper);
|
30225
30397
|
|
30226
|
-
function ownKeys$
|
30227
|
-
function _objectSpread$
|
30398
|
+
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; }
|
30399
|
+
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; }
|
30228
30400
|
|
30229
30401
|
// Type definition for the context state
|
30230
30402
|
|
@@ -30246,14 +30418,14 @@ var useEnricherContext = function useEnricherContext() {
|
|
30246
30418
|
loading: loading,
|
30247
30419
|
setOptions: function setOptions(options) {
|
30248
30420
|
var state = root.contextStore.getContext('enricher');
|
30249
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
30421
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$f(_objectSpread$f({}, state[stateKey]), {}, {
|
30250
30422
|
options: options,
|
30251
30423
|
loading: false
|
30252
30424
|
})));
|
30253
30425
|
},
|
30254
30426
|
setLoading: function setLoading(loading) {
|
30255
30427
|
var state = root.contextStore.getContext('enricher');
|
30256
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
30428
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$f(_objectSpread$f({}, state[stateKey]), {}, {
|
30257
30429
|
loading: loading
|
30258
30430
|
})));
|
30259
30431
|
}
|
@@ -30349,7 +30521,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
30349
30521
|
}, [urlPackageId, getContext().packageId, setSelectedPackage]);
|
30350
30522
|
|
30351
30523
|
// Return context + handlers
|
30352
|
-
return _objectSpread$
|
30524
|
+
return _objectSpread$f(_objectSpread$f({}, getContext()), {}, {
|
30353
30525
|
setSelectedSerie: setSelectedSerie,
|
30354
30526
|
setSelectedFeature: setSelectedFeature,
|
30355
30527
|
setSelectedPackage: setSelectedPackage
|
@@ -30427,8 +30599,9 @@ function useModule$1 (currentModules) {
|
|
30427
30599
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30428
30600
|
label: /*#__PURE__*/jsx(Link, {
|
30429
30601
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/catalogs' + (searchParams ? '?' + searchParams.toString() : ''),
|
30430
|
-
children: t('backoffice.menu.items.label.
|
30431
|
-
})
|
30602
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingCatalogs')
|
30603
|
+
}),
|
30604
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingCatalogs')
|
30432
30605
|
}, {
|
30433
30606
|
key: 'series',
|
30434
30607
|
style: {
|
@@ -30437,8 +30610,9 @@ function useModule$1 (currentModules) {
|
|
30437
30610
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30438
30611
|
label: /*#__PURE__*/jsx(Link, {
|
30439
30612
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/series' + (searchParams ? '?' + searchParams.toString() : ''),
|
30440
|
-
children: t('backoffice.menu.items.label.
|
30441
|
-
})
|
30613
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSeries')
|
30614
|
+
}),
|
30615
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSeries')
|
30442
30616
|
}]), [{
|
30443
30617
|
key: 'features',
|
30444
30618
|
style: {
|
@@ -30447,8 +30621,9 @@ function useModule$1 (currentModules) {
|
|
30447
30621
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30448
30622
|
label: /*#__PURE__*/jsx(Link, {
|
30449
30623
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/features' + (searchParams ? '?' + searchParams.toString() : ''),
|
30450
|
-
children: t('backoffice.menu.items.label.
|
30451
|
-
})
|
30624
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeatures')
|
30625
|
+
}),
|
30626
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeatures')
|
30452
30627
|
}, {
|
30453
30628
|
key: 'options',
|
30454
30629
|
style: {
|
@@ -30457,8 +30632,9 @@ function useModule$1 (currentModules) {
|
|
30457
30632
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30458
30633
|
label: /*#__PURE__*/jsx(Link, {
|
30459
30634
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
30460
|
-
children: t('backoffice.menu.items.label.
|
30461
|
-
})
|
30635
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOptions')
|
30636
|
+
}),
|
30637
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOptions')
|
30462
30638
|
}, {
|
30463
30639
|
key: 'items',
|
30464
30640
|
style: {
|
@@ -30467,8 +30643,9 @@ function useModule$1 (currentModules) {
|
|
30467
30643
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30468
30644
|
label: /*#__PURE__*/jsx(Link, {
|
30469
30645
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
30470
|
-
children: t('backoffice.menu.items.label.
|
30471
|
-
})
|
30646
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItems')
|
30647
|
+
}),
|
30648
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItems')
|
30472
30649
|
}], _toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
30473
30650
|
key: 'detailInfos',
|
30474
30651
|
style: {
|
@@ -30477,8 +30654,9 @@ function useModule$1 (currentModules) {
|
|
30477
30654
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30478
30655
|
label: /*#__PURE__*/jsx(Link, {
|
30479
30656
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/detailInfos' + (searchParams ? '?' + searchParams.toString() : ''),
|
30480
|
-
children: t('backoffice.menu.items.label.
|
30481
|
-
})
|
30657
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfos')
|
30658
|
+
}),
|
30659
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfos')
|
30482
30660
|
}]))
|
30483
30661
|
}, {
|
30484
30662
|
key: 'tabgroups',
|
@@ -30489,7 +30667,8 @@ function useModule$1 (currentModules) {
|
|
30489
30667
|
label: /*#__PURE__*/jsx(Link, {
|
30490
30668
|
to: 'catalogs/idmeditor/packages/' + packageId + '/tabgroups' + (searchParams ? '?' + searchParams.toString() : ''),
|
30491
30669
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups')
|
30492
|
-
})
|
30670
|
+
}),
|
30671
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups')
|
30493
30672
|
}, {
|
30494
30673
|
key: 'exclusivity',
|
30495
30674
|
style: {
|
@@ -30498,54 +30677,58 @@ function useModule$1 (currentModules) {
|
|
30498
30677
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30499
30678
|
label: t('backoffice.menu.items.label.IDMEnricherEditorTableExclusivity'),
|
30500
30679
|
children: [].concat(_toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
30501
|
-
key: '
|
30680
|
+
key: 'eseries',
|
30502
30681
|
style: {
|
30503
30682
|
margin: 0
|
30504
30683
|
},
|
30505
30684
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30506
30685
|
label: /*#__PURE__*/jsx(Link, {
|
30507
|
-
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/
|
30508
|
-
children: t('backoffice.menu.items.label.
|
30509
|
-
})
|
30686
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eseries' + (searchParams ? '?' + searchParams.toString() : ''),
|
30687
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSeries')
|
30688
|
+
}),
|
30689
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSeries')
|
30510
30690
|
}]), [{
|
30511
|
-
key: '
|
30691
|
+
key: 'efeatures',
|
30512
30692
|
style: {
|
30513
30693
|
margin: 0
|
30514
30694
|
},
|
30515
30695
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30516
30696
|
label: /*#__PURE__*/jsx(Link, {
|
30517
|
-
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/
|
30518
|
-
children: t('backoffice.menu.items.label.
|
30519
|
-
})
|
30697
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/efeatures' + (searchParams ? '?' + searchParams.toString() : ''),
|
30698
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeatures')
|
30699
|
+
}),
|
30700
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeatures')
|
30520
30701
|
}, {
|
30521
|
-
key: '
|
30702
|
+
key: 'eoptions',
|
30522
30703
|
style: {
|
30523
30704
|
margin: 0
|
30524
30705
|
},
|
30525
30706
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30526
30707
|
label: /*#__PURE__*/jsx(Link, {
|
30527
|
-
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/
|
30528
|
-
children: t('backoffice.menu.items.label.
|
30529
|
-
})
|
30708
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eoptions' + (searchParams ? '?' + searchParams.toString() : ''),
|
30709
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOptions')
|
30710
|
+
}),
|
30711
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOptions')
|
30530
30712
|
}, {
|
30531
|
-
key: '
|
30713
|
+
key: 'eitems',
|
30532
30714
|
style: {
|
30533
30715
|
margin: 0
|
30534
30716
|
},
|
30535
30717
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30536
30718
|
label: /*#__PURE__*/jsx(Link, {
|
30537
|
-
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/
|
30538
|
-
children: t('backoffice.menu.items.label.
|
30539
|
-
})
|
30719
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eitems' + (searchParams ? '?' + searchParams.toString() : ''),
|
30720
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItems')
|
30721
|
+
}),
|
30722
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItems')
|
30540
30723
|
}], _toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
30541
|
-
key: '
|
30724
|
+
key: 'edetailInfos',
|
30542
30725
|
style: {
|
30543
30726
|
margin: 0
|
30544
30727
|
},
|
30545
30728
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30546
30729
|
label: /*#__PURE__*/jsx(Link, {
|
30547
|
-
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/
|
30548
|
-
children: t('backoffice.menu.items.label.
|
30730
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/edetailInfos' + (searchParams ? '?' + searchParams.toString() : ''),
|
30731
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfos')
|
30549
30732
|
})
|
30550
30733
|
}]))
|
30551
30734
|
}, {
|
@@ -30557,7 +30740,8 @@ function useModule$1 (currentModules) {
|
|
30557
30740
|
label: /*#__PURE__*/jsx(Link, {
|
30558
30741
|
to: 'catalogs/idmeditor/packages/' + packageId + '/properties' + (searchParams ? '?' + searchParams.toString() : ''),
|
30559
30742
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableProperties')
|
30560
|
-
})
|
30743
|
+
}),
|
30744
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableProperties')
|
30561
30745
|
}].concat(_toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
30562
30746
|
key: 'partlistpos',
|
30563
30747
|
style: {
|
@@ -30567,7 +30751,8 @@ function useModule$1 (currentModules) {
|
|
30567
30751
|
label: /*#__PURE__*/jsx(Link, {
|
30568
30752
|
to: 'catalogs/idmeditor/packages/' + packageId + '/partlistpos' + (searchParams ? '?' + searchParams.toString() : ''),
|
30569
30753
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTablePartlistPos')
|
30570
|
-
})
|
30754
|
+
}),
|
30755
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTablePartlistPos')
|
30571
30756
|
}, {
|
30572
30757
|
key: 'groups',
|
30573
30758
|
style: {
|
@@ -30577,7 +30762,8 @@ function useModule$1 (currentModules) {
|
|
30577
30762
|
label: /*#__PURE__*/jsx(Link, {
|
30578
30763
|
to: 'catalogs/idmeditor/packages/' + packageId + '/groups' + (searchParams ? '?' + searchParams.toString() : ''),
|
30579
30764
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableGroups')
|
30580
|
-
})
|
30765
|
+
}),
|
30766
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableGroups')
|
30581
30767
|
}, {
|
30582
30768
|
key: 'pricelists',
|
30583
30769
|
style: {
|
@@ -30587,7 +30773,8 @@ function useModule$1 (currentModules) {
|
|
30587
30773
|
label: /*#__PURE__*/jsx(Link, {
|
30588
30774
|
to: 'catalogs/idmeditor/packages/' + packageId + '/pricelists' + (searchParams ? '?' + searchParams.toString() : ''),
|
30589
30775
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTablePriceLists')
|
30590
|
-
})
|
30776
|
+
}),
|
30777
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTablePriceLists')
|
30591
30778
|
}]));
|
30592
30779
|
}, [packageId, selectedPackage, searchParams]);
|
30593
30780
|
if (!packageId) throw new Error('packageId is required');
|
@@ -30600,21 +30787,46 @@ function useModule$1 (currentModules) {
|
|
30600
30787
|
|
30601
30788
|
useEffect(function () {
|
30602
30789
|
var tools = [];
|
30603
|
-
if (
|
30604
|
-
|
30605
|
-
|
30606
|
-
|
30607
|
-
|
30608
|
-
|
30609
|
-
|
30610
|
-
|
30611
|
-
|
30612
|
-
|
30790
|
+
if (selectedPackage !== null && selectedPackage !== void 0 && selectedPackage._id) {
|
30791
|
+
if (selectedPackage.isApi) {
|
30792
|
+
tools.push({
|
30793
|
+
name: 'Konfigurator',
|
30794
|
+
parameters: {
|
30795
|
+
packageId: selectedPackage._id
|
30796
|
+
},
|
30797
|
+
type: 'Configurator',
|
30798
|
+
id: 'WYSIWYG',
|
30799
|
+
startWidth: 600,
|
30800
|
+
elementProps: {
|
30801
|
+
loadMask: true
|
30802
|
+
},
|
30803
|
+
defaultPinned: true
|
30804
|
+
});
|
30805
|
+
} else {
|
30806
|
+
tools.push({
|
30807
|
+
name: 'Konfigurator',
|
30808
|
+
parameters: {
|
30809
|
+
packageId: selectedPackage._id,
|
30810
|
+
isIDMData: '1'
|
30811
|
+
},
|
30812
|
+
type: 'Configurator',
|
30813
|
+
id: 'WYSIWYG',
|
30814
|
+
startWidth: 600,
|
30815
|
+
elementProps: {
|
30816
|
+
useEnricherService: true,
|
30817
|
+
loadPackage: true,
|
30818
|
+
packageId: selectedPackage._id,
|
30819
|
+
showCatalogSelection: true
|
30820
|
+
},
|
30821
|
+
defaultPinned: true
|
30822
|
+
});
|
30823
|
+
}
|
30824
|
+
}
|
30613
30825
|
root.contentStore.rightToolBar.tools = tools;
|
30614
30826
|
return function () {
|
30615
30827
|
root.contentStore.rightToolBar.tools = [];
|
30616
30828
|
};
|
30617
|
-
}, [
|
30829
|
+
}, [selectedPackage]);
|
30618
30830
|
return {
|
30619
30831
|
selectedPackage: selectedPackage,
|
30620
30832
|
packageId: packageId,
|
@@ -32159,7 +32371,28 @@ var getConfig$2 = function getConfig(isoLanguageIds) {
|
|
32159
32371
|
}, ['origOptionText', 'optionText']), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, false, 'withPlaceholder', {
|
32160
32372
|
placeHolderField: 'origOptionCommentText',
|
32161
32373
|
combinedField: 'optionCommentText'
|
32162
|
-
}, ['origOptionCommentText', 'optionCommentText'])
|
32374
|
+
}, ['origOptionCommentText', 'optionCommentText']), {
|
32375
|
+
field: 'featureNos',
|
32376
|
+
headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
|
32377
|
+
cellDataType: 'lookup',
|
32378
|
+
editable: false,
|
32379
|
+
required: false,
|
32380
|
+
customParams: {
|
32381
|
+
nameField: 'featureNosDisplayTexts',
|
32382
|
+
filterCellType: 'objectId',
|
32383
|
+
displayLabelTemplate: '${name} (${value})',
|
32384
|
+
lookupValue: 'featureText',
|
32385
|
+
lookupKey: 'featureNo',
|
32386
|
+
lookupKeyFilterType: {
|
32387
|
+
type: 'equals',
|
32388
|
+
filterType: 'text'
|
32389
|
+
},
|
32390
|
+
multiple: true,
|
32391
|
+
translated: true
|
32392
|
+
},
|
32393
|
+
additionalFields: ['featureNosDisplayTexts'],
|
32394
|
+
isDictionary: true
|
32395
|
+
}]
|
32163
32396
|
};
|
32164
32397
|
};
|
32165
32398
|
|
@@ -32219,44 +32452,6 @@ var SeriesSelector$2 = function SeriesSelector(_ref) {
|
|
32219
32452
|
};
|
32220
32453
|
var SeriesSelector$3 = observer(SeriesSelector$2);
|
32221
32454
|
|
32222
|
-
var FeatureSelector$2 = function FeatureSelector(_ref) {
|
32223
|
-
var modules = _ref.modules,
|
32224
|
-
dataSet = _ref.dataSet;
|
32225
|
-
var _useTranslation = useTranslation(),
|
32226
|
-
t = _useTranslation.t,
|
32227
|
-
i18n = _useTranslation.i18n;
|
32228
|
-
var _useEnricherContext = useEnricherContext(modules),
|
32229
|
-
packageId = _useEnricherContext.packageId,
|
32230
|
-
enricherService = _useEnricherContext.enricherService,
|
32231
|
-
setSelectedFeature = _useEnricherContext.setSelectedFeature,
|
32232
|
-
lookupFeatureSelectorState = _useEnricherContext.lookupFeatureSelectorState,
|
32233
|
-
exclusivitiesFeatureSelectorState = _useEnricherContext.exclusivitiesFeatureSelectorState,
|
32234
|
-
selectedFeature = _useEnricherContext.selectedFeature;
|
32235
|
-
var state = dataSet === 'lookup' ? lookupFeatureSelectorState : exclusivitiesFeatureSelectorState;
|
32236
|
-
return /*#__PURE__*/jsx(SimpleSelect, {
|
32237
|
-
sharedState: state,
|
32238
|
-
apiInterface: {
|
32239
|
-
read: enricherService + '/packages/' + packageId + '/' + dataSet + "/features?fields=featureText[".concat(i18n.language.toLocaleUpperCase(), "];featureNo;_id")
|
32240
|
-
},
|
32241
|
-
selectMapping: {
|
32242
|
-
label: "${featureText.".concat(i18n.language.toLocaleUpperCase(), "} (${featureNo})"),
|
32243
|
-
value: '${featureNo}'
|
32244
|
-
},
|
32245
|
-
autoSelectFirst: true,
|
32246
|
-
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature'),
|
32247
|
-
value: selectedFeature,
|
32248
|
-
onChange: function onChange(value) {
|
32249
|
-
return setSelectedFeature(value);
|
32250
|
-
},
|
32251
|
-
search: true,
|
32252
|
-
style: {
|
32253
|
-
width: 200
|
32254
|
-
},
|
32255
|
-
popupClassName: 'ag-custom-component-popup'
|
32256
|
-
}, packageId);
|
32257
|
-
};
|
32258
|
-
var FeatureSelector$3 = observer(FeatureSelector$2);
|
32259
|
-
|
32260
32455
|
var RenamingCatalog = function RenamingCatalog() {
|
32261
32456
|
return /*#__PURE__*/jsx(RenamingTable, {
|
32262
32457
|
type: "catalogs",
|
@@ -32303,8 +32498,7 @@ var RenamingTable = observer(function (_ref) {
|
|
32303
32498
|
packageId = _useModule.packageId,
|
32304
32499
|
apiConfig = _useModule.apiConfig,
|
32305
32500
|
selectedPackage = _useModule.selectedPackage,
|
32306
|
-
selectedSerie = _useModule.selectedSerie
|
32307
|
-
selectedFeature = _useModule.selectedFeature;
|
32501
|
+
selectedSerie = _useModule.selectedSerie;
|
32308
32502
|
var baseConfiguration = useMemo(function () {
|
32309
32503
|
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
|
32310
32504
|
}, [selectedPackage, i18n.language]);
|
@@ -32315,32 +32509,21 @@ var RenamingTable = observer(function (_ref) {
|
|
32315
32509
|
}, [packageId]);
|
32316
32510
|
var prevPreFilter = useRef();
|
32317
32511
|
var preFilter = useMemo(function () {
|
32318
|
-
if (type === '
|
32319
|
-
return prevPreFilter.current;
|
32320
|
-
} else if (type === 'items' && selectedSerie) {
|
32512
|
+
if (type === 'items' && selectedSerie) {
|
32321
32513
|
var newFilter = {
|
32322
32514
|
filterType: 'text',
|
32323
32515
|
type: 'equals',
|
32324
|
-
colId: '
|
32325
|
-
filter:
|
32516
|
+
colId: 'serieNo',
|
32517
|
+
filter: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo
|
32326
32518
|
};
|
32327
32519
|
prevPreFilter.current = newFilter;
|
32328
32520
|
return newFilter;
|
32329
32521
|
}
|
32330
32522
|
if (type === 'items' && !selectedSerie) {
|
32331
32523
|
return prevPreFilter.current;
|
32332
|
-
} else if (type === 'options' && selectedFeature) {
|
32333
|
-
var _newFilter = {
|
32334
|
-
filterType: 'text',
|
32335
|
-
type: 'equals',
|
32336
|
-
colId: 'featureNo',
|
32337
|
-
filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
|
32338
|
-
};
|
32339
|
-
prevPreFilter.current = _newFilter;
|
32340
|
-
return _newFilter;
|
32341
32524
|
}
|
32342
32525
|
return undefined;
|
32343
|
-
}, [type, selectedSerie
|
32526
|
+
}, [type, selectedSerie]);
|
32344
32527
|
var apiInterface = useMemo(function () {
|
32345
32528
|
return {
|
32346
32529
|
read: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type,
|
@@ -32371,7 +32554,7 @@ var RenamingTable = observer(function (_ref) {
|
|
32371
32554
|
};
|
32372
32555
|
}, [apiInterface, baseConfiguration.colDef]);
|
32373
32556
|
var showTable = useMemo(function () {
|
32374
|
-
return selectedPackage && (!['items'
|
32557
|
+
return selectedPackage && (!['items'].includes(type) || type === 'items' && preFilter);
|
32375
32558
|
}, [type, preFilter, selectedPackage]);
|
32376
32559
|
return /*#__PURE__*/jsxs(Fragment, {
|
32377
32560
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
@@ -32385,9 +32568,6 @@ var RenamingTable = observer(function (_ref) {
|
|
32385
32568
|
}), type === 'items' && /*#__PURE__*/jsx(SeriesSelector$3, {
|
32386
32569
|
modules: ['renaming', type],
|
32387
32570
|
dataSet: 'lookup'
|
32388
|
-
}), type === 'options' && /*#__PURE__*/jsx(FeatureSelector$3, {
|
32389
|
-
modules: ['renaming', type],
|
32390
|
-
dataSet: 'lookup'
|
32391
32571
|
})]
|
32392
32572
|
})]
|
32393
32573
|
})
|
@@ -32687,6 +32867,27 @@ function getConfig(t) {
|
|
32687
32867
|
},
|
32688
32868
|
option: {
|
32689
32869
|
colDef: [{
|
32870
|
+
field: 'featureNos',
|
32871
|
+
headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
|
32872
|
+
cellDataType: 'lookup',
|
32873
|
+
editable: false,
|
32874
|
+
required: false,
|
32875
|
+
customParams: {
|
32876
|
+
nameField: 'featureIdsDisplayTexts',
|
32877
|
+
filterCellType: 'objectId',
|
32878
|
+
displayLabelTemplate: '${name} (${value})',
|
32879
|
+
lookupValue: 'featureText',
|
32880
|
+
lookupKey: 'featureNo',
|
32881
|
+
lookupKeyFilterType: {
|
32882
|
+
type: 'equals',
|
32883
|
+
filterType: 'text'
|
32884
|
+
},
|
32885
|
+
multiple: true,
|
32886
|
+
translated: true
|
32887
|
+
},
|
32888
|
+
additionalFields: ['featureIdsDisplayTexts'],
|
32889
|
+
isDictionary: true
|
32890
|
+
}, {
|
32690
32891
|
field: 'optionKey',
|
32691
32892
|
headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
|
32692
32893
|
editable: false
|
@@ -32776,7 +32977,7 @@ var ExclusivitySerie = function ExclusivitySerie() {
|
|
32776
32977
|
return getConfig(t);
|
32777
32978
|
}, [i18n.language]);
|
32778
32979
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
32779
|
-
type: "
|
32980
|
+
type: "eseries",
|
32780
32981
|
config: config['serie']
|
32781
32982
|
});
|
32782
32983
|
};
|
@@ -32788,7 +32989,7 @@ var ExclusivityFeature = function ExclusivityFeature() {
|
|
32788
32989
|
return getConfig(t);
|
32789
32990
|
}, [i18n.language]);
|
32790
32991
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
32791
|
-
type: "
|
32992
|
+
type: "efeatures",
|
32792
32993
|
config: config['feature']
|
32793
32994
|
});
|
32794
32995
|
};
|
@@ -32800,7 +33001,7 @@ var ExclusivityExclusivityDetailInfo = function ExclusivityExclusivityDetailInfo
|
|
32800
33001
|
return getConfig(t);
|
32801
33002
|
}, [i18n.language]);
|
32802
33003
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
32803
|
-
type: "
|
33004
|
+
type: "edetailInfos",
|
32804
33005
|
config: config['detailInfo']
|
32805
33006
|
});
|
32806
33007
|
};
|
@@ -32812,7 +33013,7 @@ var ExclusivitySerieItems = function ExclusivitySerieItems() {
|
|
32812
33013
|
return getConfig(t);
|
32813
33014
|
}, [i18n.language]);
|
32814
33015
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
32815
|
-
type: "
|
33016
|
+
type: "eitems",
|
32816
33017
|
config: config['item']
|
32817
33018
|
});
|
32818
33019
|
};
|
@@ -32824,7 +33025,7 @@ var ExclusivityFeatureOption = function ExclusivityFeatureOption() {
|
|
32824
33025
|
return getConfig(t);
|
32825
33026
|
}, [i18n.language]);
|
32826
33027
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
32827
|
-
type: "
|
33028
|
+
type: "eoptions",
|
32828
33029
|
config: config['option']
|
32829
33030
|
});
|
32830
33031
|
};
|
@@ -32838,46 +33039,45 @@ var ExclusivityTable = observer(function (_ref) {
|
|
32838
33039
|
apiConfig = _useModule.apiConfig,
|
32839
33040
|
organizationId = _useModule.organizationId,
|
32840
33041
|
selectedPackage = _useModule.selectedPackage,
|
32841
|
-
selectedSerie = _useModule.selectedSerie
|
32842
|
-
selectedFeature = _useModule.selectedFeature;
|
33042
|
+
selectedSerie = _useModule.selectedSerie;
|
32843
33043
|
var apiInterface = useMemo(function () {
|
32844
33044
|
var patchId = '${_id}';
|
32845
|
-
if (type === '
|
32846
|
-
if (type === '
|
33045
|
+
if (type === 'eitems') patchId = '${typeNo}';
|
33046
|
+
if (type === 'eoptions') patchId = '${optionKey}';
|
33047
|
+
var patchId2 = '${_id}';
|
33048
|
+
if (type === 'eoptions') patchId2 = '${featureNos}';
|
32847
33049
|
var subType = 'features';
|
32848
|
-
if (type === '
|
32849
|
-
if (type === '
|
32850
|
-
|
33050
|
+
if (type === 'eseries' || type === 'eitems') subType = 'series';
|
33051
|
+
if (type === 'edetailInfos') subType = 'detailInfos';
|
33052
|
+
if (type === 'eoptions') subType = 'options';
|
33053
|
+
var listType = type === 'eitems' ? 'items' : 'options';
|
32851
33054
|
return {
|
32852
|
-
read: !['
|
32853
|
-
update: !['
|
33055
|
+
read: !['eitems'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
|
33056
|
+
update: !['eitems', 'eoptions'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : type === 'eoptions' ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId + '?featureNos=' + patchId2 : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
|
32854
33057
|
};
|
32855
33058
|
}, [type]);
|
32856
33059
|
var oldDataRef = useRef();
|
32857
33060
|
var applicationData = useMemo(function () {
|
32858
|
-
if (type === '
|
32859
|
-
return oldDataRef.current;
|
32860
|
-
}
|
32861
|
-
if (type === 'eoption' && !selectedFeature) {
|
33061
|
+
if (type === 'eitems' && !selectedSerie) {
|
32862
33062
|
return oldDataRef.current;
|
32863
33063
|
}
|
32864
33064
|
var newData = {
|
32865
33065
|
type: type,
|
32866
33066
|
packageId: packageId,
|
32867
33067
|
organizationId: organizationId,
|
32868
|
-
subTypeId:
|
33068
|
+
subTypeId: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id
|
32869
33069
|
};
|
32870
33070
|
oldDataRef.current = newData;
|
32871
33071
|
return newData;
|
32872
|
-
}, [type, packageId, organizationId, selectedSerie
|
33072
|
+
}, [type, packageId, organizationId, selectedSerie]);
|
32873
33073
|
var showTable = useMemo(function () {
|
32874
|
-
return selectedPackage && (!['
|
33074
|
+
return selectedPackage && (!['eitems'].includes(type) || type === 'eitems' && applicationData);
|
32875
33075
|
}, [type, applicationData, selectedPackage]);
|
32876
33076
|
var configuration = useMemo(function () {
|
32877
33077
|
return {
|
32878
33078
|
type: 'dotnetSSM',
|
32879
33079
|
apiInterface: apiInterface,
|
32880
|
-
idCol: type === '
|
33080
|
+
idCol: type === 'eitems' ? 'typeNo' : type === 'eoptions' ? '_id' : undefined,
|
32881
33081
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
32882
33082
|
floatingFilter: true,
|
32883
33083
|
colDef: [{
|
@@ -32902,7 +33102,7 @@ var ExclusivityTable = observer(function (_ref) {
|
|
32902
33102
|
cellDataType: 'objectId'
|
32903
33103
|
}])
|
32904
33104
|
};
|
32905
|
-
}, [apiInterface, selectedSerie,
|
33105
|
+
}, [apiInterface, selectedSerie, config.colDef]);
|
32906
33106
|
return /*#__PURE__*/jsxs(Fragment, {
|
32907
33107
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
32908
33108
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -32912,10 +33112,7 @@ var ExclusivityTable = observer(function (_ref) {
|
|
32912
33112
|
},
|
32913
33113
|
children: [/*#__PURE__*/jsx(PackageSelector$1, {
|
32914
33114
|
modules: ['exclusivity', type]
|
32915
|
-
}), type === '
|
32916
|
-
modules: ['exclusivity', type],
|
32917
|
-
dataSet: 'exclusivities'
|
32918
|
-
}), type === 'eoption' && /*#__PURE__*/jsx(FeatureSelector$3, {
|
33115
|
+
}), type === 'eitems' && /*#__PURE__*/jsx(SeriesSelector$3, {
|
32919
33116
|
modules: ['exclusivity', type],
|
32920
33117
|
dataSet: 'exclusivities'
|
32921
33118
|
})]
|
@@ -33301,8 +33498,8 @@ var isDefaultValue = function isDefaultValue(value, type) {
|
|
33301
33498
|
return value === getDefaultValue(type);
|
33302
33499
|
};
|
33303
33500
|
|
33304
|
-
function ownKeys$
|
33305
|
-
function _objectSpread$
|
33501
|
+
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; }
|
33502
|
+
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; }
|
33306
33503
|
/**
|
33307
33504
|
* Custom hook to manage price factor state and logic
|
33308
33505
|
* @param props - Hook configuration
|
@@ -33339,7 +33536,7 @@ function usePriceFactor(_ref) {
|
|
33339
33536
|
var updateEntries = function updateEntries(newTypeEntries) {
|
33340
33537
|
setHasChangedCurrentType(true);
|
33341
33538
|
setEntries(function (prev) {
|
33342
|
-
return _objectSpread$
|
33539
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty(_defineProperty({}, type, newTypeEntries), type === 'factor' ? 'discount' : 'factor', []));
|
33343
33540
|
});
|
33344
33541
|
};
|
33345
33542
|
var handleModalOpen = useCallback(function () {
|
@@ -33376,7 +33573,7 @@ function usePriceFactor(_ref) {
|
|
33376
33573
|
// Always ensure at least one entry when switching types
|
33377
33574
|
var newEntries = hasChangedCurrentType ? [] : entries[newType];
|
33378
33575
|
setEntries(function (prev) {
|
33379
|
-
return _objectSpread$
|
33576
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, newType, newEntries.length > 0 ? newEntries : [{
|
33380
33577
|
value: getDefaultValue(newType),
|
33381
33578
|
isValid: true
|
33382
33579
|
}]));
|
@@ -33480,8 +33677,8 @@ var space = "space-T5Mkd";
|
|
33480
33677
|
var input$1 = "input-SK-Fo";
|
33481
33678
|
var addButton$1 = "addButton-AVN8Y";
|
33482
33679
|
var helpText = "helpText-QYQQF";
|
33483
|
-
var css_248z$
|
33484
|
-
styleInject(css_248z$
|
33680
|
+
var css_248z$c = ".cell-Noc7s {\n min-width: 50px;\n height: 100%;\n}\n\n.typeSelector-Y8Yly {\n margin-bottom: 16px;\n}\n\n.space-T5Mkd {\n width: 100%;\n}\n\n.input-SK-Fo {\n width: 120px;\n}\n\n.addButton-AVN8Y {\n margin-top: 16px;\n text-align: right;\n}\n\n.helpText-QYQQF {\n margin-top: 8px;\n font-size: 12px;\n color: #666;\n}\n";
|
33681
|
+
styleInject(css_248z$c);
|
33485
33682
|
|
33486
33683
|
function PriceFactorCellRenderer(props) {
|
33487
33684
|
var data = props.data,
|
@@ -33649,8 +33846,8 @@ var difference = "difference-xT9ZP";
|
|
33649
33846
|
var differencePositive = "differencePositive-hGhZO";
|
33650
33847
|
var differenceNegative = "differenceNegative-3CEZA";
|
33651
33848
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
33652
|
-
var css_248z$
|
33653
|
-
styleInject(css_248z$
|
33849
|
+
var css_248z$b = ".container-T4Tzz {\n display: flex;\n align-items: center;\n}\n\n.price-NjOOy {\n font-weight: normal;\n}\n\n.priceManual-i7wtQ {\n font-weight: bold;\n}\n\n.originalPrice-V8MP5 {\n color: #8c8c8c;\n margin: 0 8px;\n}\n\n.difference-xT9ZP {\n margin-left: 8px;\n}\n\n.differencePositive-hGhZO {\n color: #52c41a;\n}\n\n.differenceNegative-3CEZA {\n color: #ff4d4f;\n}\n\n.differenceNeutral-wx8oE {\n color: inherit;\n}\n";
|
33850
|
+
styleInject(css_248z$b);
|
33654
33851
|
|
33655
33852
|
function PriceDisplayCellRenderer(props) {
|
33656
33853
|
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
@@ -33740,23 +33937,23 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
33740
33937
|
return priceFeatureGroups;
|
33741
33938
|
}
|
33742
33939
|
|
33743
|
-
var wrapper$
|
33940
|
+
var wrapper$3 = "wrapper-5t6RT";
|
33744
33941
|
var input = "input-leHam";
|
33745
33942
|
var disabled$1 = "disabled-Llkqu";
|
33746
|
-
var css_248z$
|
33747
|
-
styleInject(css_248z$
|
33943
|
+
var css_248z$a = ".wrapper-5t6RT {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.input-leHam {\n position: relative;\n width: 200px;\n height: 32px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n padding: 0 11px;\n border-radius: 6px;\n font-size: 14px;\n line-height: 30px;\n cursor: pointer;\n}\n\n.darkmode .input-leHam {\n background: #141414;\n border: 1px solid #424242;\n}\n\n.input-leHam.disabled-Llkqu {\n cursor: default;\n color: rgba(0, 0, 0, 0.25);\n}\n\n.darkmode .input-leHam.disabled-Llkqu {\n color: rgba(255, 255, 255, 0.25);\n}\n\n.input-leHam:hover {\n border-color: #4096ff;\n}\n";
|
33944
|
+
styleInject(css_248z$a);
|
33748
33945
|
|
33749
|
-
function ownKeys$
|
33750
|
-
function _objectSpread$
|
33946
|
+
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; }
|
33947
|
+
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; }
|
33751
33948
|
function PriceFactorInput(props) {
|
33752
33949
|
return /*#__PURE__*/jsxs("div", {
|
33753
|
-
className: classnames(wrapper$
|
33950
|
+
className: classnames(wrapper$3, props.className),
|
33754
33951
|
children: [props.title, /*#__PURE__*/jsx(Tooltip$1, {
|
33755
33952
|
title: props.tooltip,
|
33756
33953
|
children: /*#__PURE__*/jsx("div", {
|
33757
33954
|
id: "price-factor-input",
|
33758
33955
|
className: classnames(input, _defineProperty({}, disabled$1, props.disabled)),
|
33759
|
-
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$
|
33956
|
+
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
|
33760
33957
|
singleClick: true
|
33761
33958
|
}))
|
33762
33959
|
})
|
@@ -33766,11 +33963,11 @@ function PriceFactorInput(props) {
|
|
33766
33963
|
|
33767
33964
|
var inputHeader = "input-header--4KDP";
|
33768
33965
|
var factorInput = "factor-input-MX85Z";
|
33769
|
-
var css_248z$
|
33770
|
-
styleInject(css_248z$
|
33966
|
+
var css_248z$9 = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.factor-input-MX85Z {\n min-height: 0;\n flex: 1;\n}\n\n.factor-input-MX85Z #price-factor-input {\n width: 100%;\n background-color: var(--ag-input-background-color);\n border: var(--ag-input-border);\n border-radius: var(--ag-input-border-radius);\n color: var(--ag-input-text-color);\n height: var(--ag-input-height);\n line-height: var(--ag-input-height);\n font-size: var(--ag-font-size);\n}\n\n.factor-input-MX85Z #price-factor-input:hover {\n border-color: #4096ff;\n}\n";
|
33967
|
+
styleInject(css_248z$9);
|
33771
33968
|
|
33772
|
-
function ownKeys$
|
33773
|
-
function _objectSpread$
|
33969
|
+
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; }
|
33970
|
+
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; }
|
33774
33971
|
var Prices = observer(function (_ref) {
|
33775
33972
|
var _pricelist$seriePrice;
|
33776
33973
|
var organizationId = _ref.organizationId,
|
@@ -33786,8 +33983,8 @@ var Prices = observer(function (_ref) {
|
|
33786
33983
|
if (!selectedSerie) return;
|
33787
33984
|
|
33788
33985
|
// Create copies of the objects to modify
|
33789
|
-
var newFactors = _objectSpread$
|
33790
|
-
var serieFactors = _objectSpread$
|
33986
|
+
var newFactors = _objectSpread$c({}, pricelist.pgPricefactors);
|
33987
|
+
var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
|
33791
33988
|
if (value.length === 0) {
|
33792
33989
|
// Remove the empty price feature group
|
33793
33990
|
delete serieFactors[priceFeatureGroupItem];
|
@@ -33819,8 +34016,8 @@ var Prices = observer(function (_ref) {
|
|
33819
34016
|
if (!selectedSerie) return;
|
33820
34017
|
|
33821
34018
|
// Create copies of the objects to modify
|
33822
|
-
var newFactors = _objectSpread$
|
33823
|
-
var serieFactors = _objectSpread$
|
34019
|
+
var newFactors = _objectSpread$c({}, pricelist.articlePricefactors);
|
34020
|
+
var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
|
33824
34021
|
if (value.length === 0) {
|
33825
34022
|
// Remove the empty article price factor
|
33826
34023
|
delete serieFactors[typeNo];
|
@@ -33852,8 +34049,8 @@ var Prices = observer(function (_ref) {
|
|
33852
34049
|
if (!selectedSerie) return;
|
33853
34050
|
|
33854
34051
|
// Create copies of the objects to modify
|
33855
|
-
var newFactors = _objectSpread$
|
33856
|
-
var serieFactors = _objectSpread$
|
34052
|
+
var newFactors = _objectSpread$c({}, pricelist.typeKeyPricefactors);
|
34053
|
+
var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
|
33857
34054
|
if (value.length === 0) {
|
33858
34055
|
// Remove the empty article price factor
|
33859
34056
|
delete serieFactors[typeKey];
|
@@ -33885,7 +34082,7 @@ var Prices = observer(function (_ref) {
|
|
33885
34082
|
if (!selectedSerie) return;
|
33886
34083
|
|
33887
34084
|
// Create a copy of the object to modify
|
33888
|
-
var newFactors = _objectSpread$
|
34085
|
+
var newFactors = _objectSpread$c({}, pricelist.seriePricefactors);
|
33889
34086
|
if (value.length === 0) {
|
33890
34087
|
// Remove the empty serie price factor
|
33891
34088
|
delete newFactors[selectedSerie.serieNo];
|
@@ -34441,19 +34638,19 @@ function Content$3() {
|
|
34441
34638
|
path: ":packageId/tabgroups",
|
34442
34639
|
element: /*#__PURE__*/jsx(TableTabGroups, {})
|
34443
34640
|
}), /*#__PURE__*/jsx(Route, {
|
34444
|
-
path: ":packageId/exclusivity/
|
34641
|
+
path: ":packageId/exclusivity/eseries",
|
34445
34642
|
element: /*#__PURE__*/jsx(ExclusivitySerie, {})
|
34446
34643
|
}), /*#__PURE__*/jsx(Route, {
|
34447
|
-
path: ":packageId/exclusivity/
|
34644
|
+
path: ":packageId/exclusivity/eitems",
|
34448
34645
|
element: /*#__PURE__*/jsx(ExclusivitySerieItems, {})
|
34449
34646
|
}), /*#__PURE__*/jsx(Route, {
|
34450
|
-
path: ":packageId/exclusivity/
|
34647
|
+
path: ":packageId/exclusivity/edetailInfos",
|
34451
34648
|
element: /*#__PURE__*/jsx(ExclusivityExclusivityDetailInfo, {})
|
34452
34649
|
}), /*#__PURE__*/jsx(Route, {
|
34453
|
-
path: ":packageId/exclusivity/
|
34650
|
+
path: ":packageId/exclusivity/efeatures",
|
34454
34651
|
element: /*#__PURE__*/jsx(ExclusivityFeature, {})
|
34455
34652
|
}), /*#__PURE__*/jsx(Route, {
|
34456
|
-
path: ":packageId/exclusivity/
|
34653
|
+
path: ":packageId/exclusivity/eoptions",
|
34457
34654
|
element: /*#__PURE__*/jsx(ExclusivityFeatureOption, {})
|
34458
34655
|
}), /*#__PURE__*/jsx(Route, {
|
34459
34656
|
path: ":packageId/properties",
|
@@ -34471,8 +34668,8 @@ function Content$3() {
|
|
34471
34668
|
});
|
34472
34669
|
}
|
34473
34670
|
|
34474
|
-
function ownKeys$
|
34475
|
-
function _objectSpread$
|
34671
|
+
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; }
|
34672
|
+
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; }
|
34476
34673
|
function UploadButton (_ref) {
|
34477
34674
|
var action = _ref.action,
|
34478
34675
|
title = _ref.title,
|
@@ -34617,7 +34814,7 @@ function UploadButton (_ref) {
|
|
34617
34814
|
}
|
34618
34815
|
};
|
34619
34816
|
return /*#__PURE__*/jsx(Fragment, {
|
34620
|
-
children: /*#__PURE__*/jsx(Upload$2, _objectSpread$
|
34817
|
+
children: /*#__PURE__*/jsx(Upload$2, _objectSpread$b(_objectSpread$b({}, props), {}, {
|
34621
34818
|
children: progress !== 'SUCCESS' && /*#__PURE__*/jsx(Button$1, {
|
34622
34819
|
icon: /*#__PURE__*/jsx(UploadOutlined$1, {}),
|
34623
34820
|
disabled: disabled,
|
@@ -34628,8 +34825,8 @@ function UploadButton (_ref) {
|
|
34628
34825
|
}
|
34629
34826
|
|
34630
34827
|
var errorDescription = "error-description-VE3n0";
|
34631
|
-
var css_248z$
|
34632
|
-
styleInject(css_248z$
|
34828
|
+
var css_248z$8 = ".error-description-VE3n0 {\n max-height: 100px;\n overflow: auto;\n scrollbar-width: thin;\n}\n";
|
34829
|
+
styleInject(css_248z$8);
|
34633
34830
|
|
34634
34831
|
function IDMImportForm (_ref) {
|
34635
34832
|
var idmService = _ref.idmService,
|
@@ -34776,8 +34973,8 @@ function OpenModalButton (_ref) {
|
|
34776
34973
|
});
|
34777
34974
|
}
|
34778
34975
|
|
34779
|
-
function ownKeys$
|
34780
|
-
function _objectSpread$
|
34976
|
+
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; }
|
34977
|
+
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; }
|
34781
34978
|
|
34782
34979
|
// Type definition for the context state
|
34783
34980
|
|
@@ -34799,14 +34996,14 @@ var useCatalogContext = function useCatalogContext() {
|
|
34799
34996
|
loading: loading,
|
34800
34997
|
setOptions: function setOptions(options) {
|
34801
34998
|
var state = root.contextStore.getContext('catalog');
|
34802
|
-
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$
|
34999
|
+
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$a(_objectSpread$a({}, state[stateKey]), {}, {
|
34803
35000
|
options: options,
|
34804
35001
|
loading: false
|
34805
35002
|
})));
|
34806
35003
|
},
|
34807
35004
|
setLoading: function setLoading(loading) {
|
34808
35005
|
var state = root.contextStore.getContext('catalog');
|
34809
|
-
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$
|
35006
|
+
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$a(_objectSpread$a({}, state[stateKey]), {}, {
|
34810
35007
|
loading: loading
|
34811
35008
|
})));
|
34812
35009
|
}
|
@@ -34893,7 +35090,7 @@ var useCatalogContext = function useCatalogContext() {
|
|
34893
35090
|
}, [urlCatalogId, getContext().catalogId, setSelectedCatalog]);
|
34894
35091
|
|
34895
35092
|
// Return context + handlers
|
34896
|
-
return _objectSpread$
|
35093
|
+
return _objectSpread$a(_objectSpread$a({}, getContext()), {}, {
|
34897
35094
|
setSelectedSerie: setSelectedSerie,
|
34898
35095
|
setSelectedFeature: setSelectedFeature,
|
34899
35096
|
setSelectedCatalog: setSelectedCatalog
|
@@ -35716,7 +35913,8 @@ function useModule (currentModules) {
|
|
35716
35913
|
label: /*#__PURE__*/jsx(Link, {
|
35717
35914
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/series' + (searchParams ? '?' + searchParams.toString() : ''),
|
35718
35915
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries')
|
35719
|
-
})
|
35916
|
+
}),
|
35917
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries')
|
35720
35918
|
}, {
|
35721
35919
|
key: 'features',
|
35722
35920
|
style: {
|
@@ -35726,7 +35924,8 @@ function useModule (currentModules) {
|
|
35726
35924
|
label: /*#__PURE__*/jsx(Link, {
|
35727
35925
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/features' + (searchParams ? '?' + searchParams.toString() : ''),
|
35728
35926
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures')
|
35729
|
-
})
|
35927
|
+
}),
|
35928
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures')
|
35730
35929
|
}, {
|
35731
35930
|
key: 'options',
|
35732
35931
|
style: {
|
@@ -35736,17 +35935,8 @@ function useModule (currentModules) {
|
|
35736
35935
|
label: /*#__PURE__*/jsx(Link, {
|
35737
35936
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
35738
35937
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions')
|
35739
|
-
})
|
35740
|
-
|
35741
|
-
key: 'catalogoptions',
|
35742
|
-
style: {
|
35743
|
-
margin: 0
|
35744
|
-
},
|
35745
|
-
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
35746
|
-
label: /*#__PURE__*/jsx(Link, {
|
35747
|
-
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/catalogoptions' + (searchParams ? '?' + searchParams.toString() : ''),
|
35748
|
-
children: t('backoffice.menu.items.label.IDMCatalogEditorTableCatalogOptions')
|
35749
|
-
})
|
35938
|
+
}),
|
35939
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions')
|
35750
35940
|
}, {
|
35751
35941
|
key: 'optiongroups',
|
35752
35942
|
style: {
|
@@ -35755,8 +35945,9 @@ function useModule (currentModules) {
|
|
35755
35945
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
35756
35946
|
label: /*#__PURE__*/jsx(Link, {
|
35757
35947
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/optiongroups' + (searchParams ? '?' + searchParams.toString() : ''),
|
35758
|
-
children: t('backoffice.menu.items.label.
|
35759
|
-
})
|
35948
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroups')
|
35949
|
+
}),
|
35950
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroups')
|
35760
35951
|
}, {
|
35761
35952
|
key: 'featureclasses',
|
35762
35953
|
style: {
|
@@ -35766,7 +35957,8 @@ function useModule (currentModules) {
|
|
35766
35957
|
label: /*#__PURE__*/jsx(Link, {
|
35767
35958
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/featureclasses' + (searchParams ? '?' + searchParams.toString() : ''),
|
35768
35959
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses')
|
35769
|
-
})
|
35960
|
+
}),
|
35961
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses')
|
35770
35962
|
}, {
|
35771
35963
|
key: 'items',
|
35772
35964
|
style: {
|
@@ -35776,7 +35968,8 @@ function useModule (currentModules) {
|
|
35776
35968
|
label: /*#__PURE__*/jsx(Link, {
|
35777
35969
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
35778
35970
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableItems')
|
35779
|
-
})
|
35971
|
+
}),
|
35972
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableItems')
|
35780
35973
|
}, {
|
35781
35974
|
key: 'decisions',
|
35782
35975
|
style: {
|
@@ -35786,7 +35979,8 @@ function useModule (currentModules) {
|
|
35786
35979
|
label: /*#__PURE__*/jsx(Link, {
|
35787
35980
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/decisions' + (searchParams ? '?' + searchParams.toString() : ''),
|
35788
35981
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions')
|
35789
|
-
})
|
35982
|
+
}),
|
35983
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions')
|
35790
35984
|
}, {
|
35791
35985
|
key: 'partlists',
|
35792
35986
|
style: {
|
@@ -35796,7 +35990,8 @@ function useModule (currentModules) {
|
|
35796
35990
|
label: /*#__PURE__*/jsx(Link, {
|
35797
35991
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/partlists' + (searchParams ? '?' + searchParams.toString() : ''),
|
35798
35992
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists')
|
35799
|
-
})
|
35993
|
+
}),
|
35994
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists')
|
35800
35995
|
}, {
|
35801
35996
|
key: 'detailinfos',
|
35802
35997
|
style: {
|
@@ -35806,7 +36001,8 @@ function useModule (currentModules) {
|
|
35806
36001
|
label: /*#__PURE__*/jsx(Link, {
|
35807
36002
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/detailinfos' + (searchParams ? '?' + searchParams.toString() : ''),
|
35808
36003
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos')
|
35809
|
-
})
|
36004
|
+
}),
|
36005
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos')
|
35810
36006
|
}, {
|
35811
36007
|
key: 'pricefeaturegroups',
|
35812
36008
|
style: {
|
@@ -35816,7 +36012,8 @@ function useModule (currentModules) {
|
|
35816
36012
|
label: /*#__PURE__*/jsx(Link, {
|
35817
36013
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/pricefeaturegroups' + (searchParams ? '?' + searchParams.toString() : ''),
|
35818
36014
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroups')
|
35819
|
-
})
|
36015
|
+
}),
|
36016
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroups')
|
35820
36017
|
}, {
|
35821
36018
|
key: 'prices',
|
35822
36019
|
style: {
|
@@ -35826,7 +36023,8 @@ function useModule (currentModules) {
|
|
35826
36023
|
label: /*#__PURE__*/jsx(Link, {
|
35827
36024
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/prices' + (searchParams ? '?' + searchParams.toString() : ''),
|
35828
36025
|
children: t('backoffice.menu.prices.label.IDMCatalogEditorTablePrices')
|
35829
|
-
})
|
36026
|
+
}),
|
36027
|
+
title: t('backoffice.menu.prices.label.IDMCatalogEditorTablePrices')
|
35830
36028
|
}];
|
35831
36029
|
}, [catalogId]);
|
35832
36030
|
if (!catalogId) throw new Error('catalogId is required');
|
@@ -35841,18 +36039,24 @@ function useModule (currentModules) {
|
|
35841
36039
|
if (catalogId) tools.push({
|
35842
36040
|
name: 'Konfigurator',
|
35843
36041
|
parameters: {
|
35844
|
-
|
36042
|
+
catalogId: catalogId,
|
36043
|
+
isIDMData: '1'
|
35845
36044
|
},
|
35846
36045
|
type: 'Configurator',
|
35847
36046
|
id: 'WYSIWYG',
|
35848
36047
|
startWidth: 600,
|
35849
|
-
defaultPinned: true
|
36048
|
+
defaultPinned: true,
|
36049
|
+
elementProps: {
|
36050
|
+
useIDMService: true,
|
36051
|
+
catalogId: catalogId,
|
36052
|
+
showCatalogSelection: true
|
36053
|
+
}
|
35850
36054
|
});
|
35851
36055
|
root.contentStore.rightToolBar.tools = tools;
|
35852
36056
|
return function () {
|
35853
36057
|
root.contentStore.rightToolBar.tools = [];
|
35854
36058
|
};
|
35855
|
-
}, [catalogId]);
|
36059
|
+
}, [catalogId, selectedCatalog, currentModules]);
|
35856
36060
|
return {
|
35857
36061
|
organizationId: organizationId,
|
35858
36062
|
apiConfig: root.configurationStore.apiConfig,
|
@@ -36353,114 +36557,6 @@ var TableSeries = observer(function () {
|
|
36353
36557
|
});
|
36354
36558
|
});
|
36355
36559
|
|
36356
|
-
function Options(_ref) {
|
36357
|
-
var organizationId = _ref.organizationId,
|
36358
|
-
selectedCatalog = _ref.selectedCatalog,
|
36359
|
-
selectedFeature = _ref.selectedFeature,
|
36360
|
-
apiConfig = _ref.apiConfig;
|
36361
|
-
var applicationData = useMemo(function () {
|
36362
|
-
return {
|
36363
|
-
organizationId: organizationId,
|
36364
|
-
catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
36365
|
-
selectedFeature: selectedFeature
|
36366
|
-
};
|
36367
|
-
}, [organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, selectedFeature]);
|
36368
|
-
var configuration = useMemo(function () {
|
36369
|
-
return {
|
36370
|
-
type: 'dotnetSSM',
|
36371
|
-
idCol: 'optionKey',
|
36372
|
-
apiInterface: {
|
36373
|
-
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options',
|
36374
|
-
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options',
|
36375
|
-
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}',
|
36376
|
-
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}',
|
36377
|
-
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}'
|
36378
|
-
},
|
36379
|
-
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
36380
|
-
floatingFilter: true,
|
36381
|
-
colDef: [{
|
36382
|
-
field: 'optionKey',
|
36383
|
-
required: true,
|
36384
|
-
unique: true
|
36385
|
-
}, {
|
36386
|
-
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
36387
|
-
field: 'sequenceNo',
|
36388
|
-
cellDataType: 'number'
|
36389
|
-
}, createTranslatedColumnConfig('optionText', 'backoffice.idmCatalog.options.label.optionText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, true), createTranslatedColumnConfig('optionCommentText', 'backoffice.idmCatalog.options.label.optionCommentText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds), {
|
36390
|
-
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
36391
|
-
field: 'optionFreeText',
|
36392
|
-
cellDataType: 'boolean'
|
36393
|
-
}, {
|
36394
|
-
headerName: 'backoffice.idmCatalog.items.label.validation',
|
36395
|
-
children: [{
|
36396
|
-
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
36397
|
-
field: 'validFromDate',
|
36398
|
-
cellDataType: 'dateString'
|
36399
|
-
}, {
|
36400
|
-
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
36401
|
-
field: 'validUntilDate',
|
36402
|
-
cellDataType: 'dateString'
|
36403
|
-
}]
|
36404
|
-
}, {
|
36405
|
-
headerName: 'backoffice.idmCatalog.options.label.material',
|
36406
|
-
children: [{
|
36407
|
-
headerName: 'backoffice.idmCatalog.options.label.materialNo',
|
36408
|
-
field: 'materialNo'
|
36409
|
-
}, {
|
36410
|
-
headerName: 'backoffice.idmCatalog.options.label.materialColorR',
|
36411
|
-
field: 'materialColorR',
|
36412
|
-
cellDataType: 'number'
|
36413
|
-
}, {
|
36414
|
-
headerName: 'backoffice.idmCatalog.options.label.materialColorG',
|
36415
|
-
field: 'materialColorG',
|
36416
|
-
cellDataType: 'number'
|
36417
|
-
}, {
|
36418
|
-
headerName: 'backoffice.idmCatalog.options.label.materialColorB',
|
36419
|
-
field: 'materialColorR',
|
36420
|
-
cellDataType: 'number'
|
36421
|
-
}]
|
36422
|
-
}, {
|
36423
|
-
headerName: 'backoffice.idmCatalog.options.label.measurement',
|
36424
|
-
children: [{
|
36425
|
-
headerName: 'backoffice.idmCatalog.options.label.measureNo',
|
36426
|
-
field: 'measureNo',
|
36427
|
-
cellDataType: 'number'
|
36428
|
-
}, {
|
36429
|
-
headerName: 'backoffice.idmCatalog.options.label.measureValue',
|
36430
|
-
field: 'measureValue',
|
36431
|
-
cellDataType: 'number'
|
36432
|
-
}, {
|
36433
|
-
headerName: 'backoffice.idmCatalog.options.label.measureUnit',
|
36434
|
-
field: 'measureUnit'
|
36435
|
-
}]
|
36436
|
-
}, {
|
36437
|
-
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
36438
|
-
field: 'lastUpdatedDate',
|
36439
|
-
cellDataType: 'dateString',
|
36440
|
-
editable: false
|
36441
|
-
}, {
|
36442
|
-
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
36443
|
-
field: 'lastUpdatedByDisplayText',
|
36444
|
-
editable: false
|
36445
|
-
}, {
|
36446
|
-
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
36447
|
-
field: 'createdDate',
|
36448
|
-
cellDataType: 'dateString',
|
36449
|
-
editable: false
|
36450
|
-
}, {
|
36451
|
-
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
36452
|
-
field: 'createdByDisplayText',
|
36453
|
-
editable: false
|
36454
|
-
}]
|
36455
|
-
};
|
36456
|
-
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
36457
|
-
return /*#__PURE__*/jsx(Spreadsheet, {
|
36458
|
-
gridId: 'crud-grid_options',
|
36459
|
-
applicationData: applicationData,
|
36460
|
-
configuration: configuration
|
36461
|
-
}, selectedFeature);
|
36462
|
-
}
|
36463
|
-
|
36464
36560
|
function Features(_ref) {
|
36465
36561
|
var organizationId = _ref.organizationId,
|
36466
36562
|
selectedCatalog = _ref.selectedCatalog,
|
@@ -36625,52 +36721,10 @@ function Features(_ref) {
|
|
36625
36721
|
var TableFeatures = observer(function () {
|
36626
36722
|
var _useTranslation = useTranslation(),
|
36627
36723
|
t = _useTranslation.t;
|
36628
|
-
var root = useStore();
|
36629
36724
|
var _useModule = useModule(['features']),
|
36630
36725
|
selectedCatalog = _useModule.selectedCatalog,
|
36631
36726
|
organizationId = _useModule.organizationId,
|
36632
36727
|
apiConfig = _useModule.apiConfig;
|
36633
|
-
var _React$useState = React.useState(),
|
36634
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
36635
|
-
selectedFeature = _React$useState2[0],
|
36636
|
-
setSelectedFeature = _React$useState2[1];
|
36637
|
-
useEffect(function () {
|
36638
|
-
if (selectedFeature !== null && selectedFeature !== void 0 && selectedFeature._id) {
|
36639
|
-
root.contentStore.bottomToolBar.tools = [{
|
36640
|
-
id: 'options',
|
36641
|
-
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'),
|
36642
|
-
elementComponent: Options,
|
36643
|
-
elementProps: {
|
36644
|
-
organizationId: organizationId,
|
36645
|
-
selectedCatalog: selectedCatalog,
|
36646
|
-
selectedFeature: selectedFeature._id,
|
36647
|
-
apiConfig: apiConfig
|
36648
|
-
},
|
36649
|
-
startWidth: 300,
|
36650
|
-
defaultPinned: false,
|
36651
|
-
defaultOpen: false
|
36652
|
-
}];
|
36653
|
-
} else {
|
36654
|
-
root.contentStore.bottomToolBar.tools = [];
|
36655
|
-
}
|
36656
|
-
}, [selectedFeature]);
|
36657
|
-
useEffect(function () {
|
36658
|
-
//remove options table, when features are unmounted
|
36659
|
-
return function () {
|
36660
|
-
root.contentStore.bottomToolBar.tools = [];
|
36661
|
-
};
|
36662
|
-
}, []);
|
36663
|
-
var hooks = useMemo(function () {
|
36664
|
-
return {
|
36665
|
-
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
36666
|
-
if (event.selection.length == 1) {
|
36667
|
-
setSelectedFeature(event.selection[0].node.data);
|
36668
|
-
} else {
|
36669
|
-
setSelectedFeature(null);
|
36670
|
-
}
|
36671
|
-
}
|
36672
|
-
};
|
36673
|
-
}, []);
|
36674
36728
|
return /*#__PURE__*/jsxs(Fragment, {
|
36675
36729
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36676
36730
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -36686,77 +36740,12 @@ var TableFeatures = observer(function () {
|
|
36686
36740
|
}), selectedCatalog && /*#__PURE__*/jsx(Features, {
|
36687
36741
|
organizationId: organizationId,
|
36688
36742
|
selectedCatalog: selectedCatalog,
|
36689
|
-
apiConfig: apiConfig,
|
36690
|
-
hooks: hooks
|
36691
|
-
})]
|
36692
|
-
});
|
36693
|
-
});
|
36694
|
-
|
36695
|
-
var FeatureSelector = function FeatureSelector(_ref) {
|
36696
|
-
var modules = _ref.modules;
|
36697
|
-
var _useTranslation = useTranslation(),
|
36698
|
-
t = _useTranslation.t,
|
36699
|
-
i18n = _useTranslation.i18n;
|
36700
|
-
var _useCatalogContext = useCatalogContext(modules),
|
36701
|
-
catalogId = _useCatalogContext.catalogId,
|
36702
|
-
idmService = _useCatalogContext.idmService,
|
36703
|
-
selectedFeature = _useCatalogContext.selectedFeature,
|
36704
|
-
setSelectedFeature = _useCatalogContext.setSelectedFeature,
|
36705
|
-
featureSelectorState = _useCatalogContext.featureSelectorState;
|
36706
|
-
return /*#__PURE__*/jsx(SimpleSelect, {
|
36707
|
-
sharedState: featureSelectorState,
|
36708
|
-
apiInterface: {
|
36709
|
-
read: idmService + '/v3.0/catalogs/' + catalogId + "/features?fields=featureText[".concat(i18n.language.toLocaleUpperCase(), "];featureNo;_id")
|
36710
|
-
},
|
36711
|
-
selectMapping: {
|
36712
|
-
label: "${featureText.".concat(i18n.language.toLocaleUpperCase(), "} (${featureNo})"),
|
36713
|
-
value: '${_id}'
|
36714
|
-
},
|
36715
|
-
autoSelectFirst: true,
|
36716
|
-
title: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
36717
|
-
value: selectedFeature,
|
36718
|
-
onChange: setSelectedFeature,
|
36719
|
-
search: true,
|
36720
|
-
style: {
|
36721
|
-
width: 200
|
36722
|
-
},
|
36723
|
-
popupClassName: 'ag-custom-component-popup'
|
36724
|
-
}, catalogId);
|
36725
|
-
};
|
36726
|
-
var FeatureSelector$1 = observer(FeatureSelector);
|
36727
|
-
|
36728
|
-
var TableOptions = observer(function () {
|
36729
|
-
var _useTranslation = useTranslation(),
|
36730
|
-
t = _useTranslation.t;
|
36731
|
-
var _useModule = useModule(['options']),
|
36732
|
-
selectedCatalog = _useModule.selectedCatalog,
|
36733
|
-
selectedFeature = _useModule.selectedFeature,
|
36734
|
-
apiConfig = _useModule.apiConfig,
|
36735
|
-
organizationId = _useModule.organizationId;
|
36736
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
36737
|
-
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36738
|
-
title: /*#__PURE__*/jsxs("div", {
|
36739
|
-
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsxs(Space$1, {
|
36740
|
-
style: {
|
36741
|
-
"float": 'right'
|
36742
|
-
},
|
36743
|
-
children: [/*#__PURE__*/jsx(CatalogSelector$1, {
|
36744
|
-
modules: ['options']
|
36745
|
-
}), /*#__PURE__*/jsx(FeatureSelector$1, {
|
36746
|
-
modules: ['options']
|
36747
|
-
})]
|
36748
|
-
})]
|
36749
|
-
})
|
36750
|
-
}), selectedFeature && selectedCatalog && /*#__PURE__*/jsx(Options, {
|
36751
|
-
organizationId: organizationId,
|
36752
|
-
selectedCatalog: selectedCatalog,
|
36753
|
-
selectedFeature: selectedFeature._id,
|
36754
36743
|
apiConfig: apiConfig
|
36755
36744
|
})]
|
36756
36745
|
});
|
36757
36746
|
});
|
36758
36747
|
|
36759
|
-
function
|
36748
|
+
function Options(_ref) {
|
36760
36749
|
var organizationId = _ref.organizationId,
|
36761
36750
|
selectedCatalog = _ref.selectedCatalog,
|
36762
36751
|
apiConfig = _ref.apiConfig;
|
@@ -36781,8 +36770,7 @@ function CatalogOptions(_ref) {
|
|
36781
36770
|
floatingFilter: true,
|
36782
36771
|
colDef: [{
|
36783
36772
|
field: 'optionKey',
|
36784
|
-
required: true
|
36785
|
-
unique: true
|
36773
|
+
required: true
|
36786
36774
|
}, {
|
36787
36775
|
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
36788
36776
|
field: 'sequenceNo',
|
@@ -36796,9 +36784,9 @@ function CatalogOptions(_ref) {
|
|
36796
36784
|
headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
|
36797
36785
|
cellDataType: 'lookup',
|
36798
36786
|
editable: true,
|
36799
|
-
required:
|
36787
|
+
required: false,
|
36800
36788
|
customParams: {
|
36801
|
-
nameField: '
|
36789
|
+
nameField: 'featureIdsDisplayTexts',
|
36802
36790
|
filterCellType: 'objectId',
|
36803
36791
|
displayLabelTemplate: '${name} (${value})',
|
36804
36792
|
apiInterface: {
|
@@ -36813,7 +36801,7 @@ function CatalogOptions(_ref) {
|
|
36813
36801
|
multiple: true,
|
36814
36802
|
translated: true
|
36815
36803
|
},
|
36816
|
-
additionalFields: ['
|
36804
|
+
additionalFields: ['featureIdsDisplayTexts'],
|
36817
36805
|
isDictionary: true
|
36818
36806
|
}, {
|
36819
36807
|
headerName: 'backoffice.idmCatalog.items.label.validation',
|
@@ -36830,7 +36818,8 @@ function CatalogOptions(_ref) {
|
|
36830
36818
|
headerName: 'backoffice.idmCatalog.options.label.material',
|
36831
36819
|
children: [{
|
36832
36820
|
headerName: 'backoffice.idmCatalog.options.label.materialNo',
|
36833
|
-
field: 'materialNo'
|
36821
|
+
field: 'materialNo',
|
36822
|
+
editable: false
|
36834
36823
|
}, {
|
36835
36824
|
headerName: 'backoffice.idmCatalog.options.label.materialColorR',
|
36836
36825
|
field: 'materialColorR',
|
@@ -36841,7 +36830,7 @@ function CatalogOptions(_ref) {
|
|
36841
36830
|
cellDataType: 'number'
|
36842
36831
|
}, {
|
36843
36832
|
headerName: 'backoffice.idmCatalog.options.label.materialColorB',
|
36844
|
-
field: '
|
36833
|
+
field: 'materialColorB',
|
36845
36834
|
cellDataType: 'number'
|
36846
36835
|
}]
|
36847
36836
|
}, {
|
@@ -36849,7 +36838,8 @@ function CatalogOptions(_ref) {
|
|
36849
36838
|
children: [{
|
36850
36839
|
headerName: 'backoffice.idmCatalog.options.label.measureNo',
|
36851
36840
|
field: 'measureNo',
|
36852
|
-
cellDataType: 'number'
|
36841
|
+
cellDataType: 'number',
|
36842
|
+
editable: false
|
36853
36843
|
}, {
|
36854
36844
|
headerName: 'backoffice.idmCatalog.options.label.measureValue',
|
36855
36845
|
field: 'measureValue',
|
@@ -36905,28 +36895,26 @@ function CatalogOptions(_ref) {
|
|
36905
36895
|
});
|
36906
36896
|
}
|
36907
36897
|
|
36908
|
-
var
|
36898
|
+
var TableOptions = observer(function () {
|
36909
36899
|
var _useTranslation = useTranslation(),
|
36910
36900
|
t = _useTranslation.t;
|
36911
|
-
var _useModule = useModule(['
|
36901
|
+
var _useModule = useModule(['options']),
|
36912
36902
|
selectedCatalog = _useModule.selectedCatalog,
|
36913
36903
|
apiConfig = _useModule.apiConfig,
|
36914
36904
|
organizationId = _useModule.organizationId;
|
36915
36905
|
return /*#__PURE__*/jsxs(Fragment, {
|
36916
36906
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36917
36907
|
title: /*#__PURE__*/jsxs("div", {
|
36918
|
-
children: [t('backoffice.menu.items.label.
|
36908
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsx(Space$1, {
|
36919
36909
|
style: {
|
36920
36910
|
"float": 'right'
|
36921
36911
|
},
|
36922
|
-
children:
|
36923
|
-
modules: ['options']
|
36924
|
-
}), /*#__PURE__*/jsx(FeatureSelector$1, {
|
36912
|
+
children: /*#__PURE__*/jsx(CatalogSelector$1, {
|
36925
36913
|
modules: ['options']
|
36926
|
-
})
|
36914
|
+
})
|
36927
36915
|
})]
|
36928
36916
|
})
|
36929
|
-
}), selectedCatalog && /*#__PURE__*/jsx(
|
36917
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Options, {
|
36930
36918
|
organizationId: organizationId,
|
36931
36919
|
selectedCatalog: selectedCatalog,
|
36932
36920
|
apiConfig: apiConfig
|
@@ -37085,11 +37073,11 @@ var formContent = "form-content-H-AkE";
|
|
37085
37073
|
var footerButtons = "footer-buttons-4cwcu";
|
37086
37074
|
var addButton = "add-button-w-6Lk";
|
37087
37075
|
var footerContent = "footer-content-sOrT1";
|
37088
|
-
var css_248z$
|
37089
|
-
styleInject(css_248z$
|
37076
|
+
var css_248z$7 = ".container-wGptw {\n display: flex;\n flex-direction: column;\n height: 500px;\n}\n\n.scrollable-content-zRBJy {\n flex-grow: 1;\n overflow: auto;\n margin-bottom: 16px;\n}\n\n.section-title-s2qIs {\n margin-bottom: 16px;\n}\n\n.action-item-LjQVf {\n width: 100%;\n}\n\n.action-item-highlighted-pjO7e {\n background-color: #e6f7ff;\n border: 1px solid #91d5ff;\n}\n\n.form-container-gF94J {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.form-layout-Ykach {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.form-content-H-AkE {\n flex-grow: 1;\n overflow: auto;\n}\n\n.footer-buttons-4cwcu {\n margin-top: auto;\n}\n\n.add-button-w-6Lk {\n width: 100%;\n}\n\n.footer-content-sOrT1 {\n text-align: center;\n padding: 8px 0;\n}\n";
|
37077
|
+
styleInject(css_248z$7);
|
37090
37078
|
|
37091
|
-
function ownKeys$
|
37092
|
-
function _objectSpread$
|
37079
|
+
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; }
|
37080
|
+
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; }
|
37093
37081
|
var ACTION_TYPES = {
|
37094
37082
|
SET_FEATURE_DEFAULT: 'SET_FEATURE_DEFAULT',
|
37095
37083
|
SET_FEATURE_FIXED: 'SET_FEATURE_FIXED',
|
@@ -37127,7 +37115,7 @@ function ActionForm(_ref) {
|
|
37127
37115
|
var _useTranslation = useTranslation(),
|
37128
37116
|
t = _useTranslation.t;
|
37129
37117
|
var defaultValues = useMemo(function () {
|
37130
|
-
return _objectSpread$
|
37118
|
+
return _objectSpread$9({
|
37131
37119
|
actionType: ACTION_TYPES.SET_FEATURE_DEFAULT,
|
37132
37120
|
referenceType: REFERENCE_TYPES.OPTION_REF
|
37133
37121
|
}, initialValues);
|
@@ -37579,7 +37567,8 @@ function OptionCombinations(_ref) {
|
|
37579
37567
|
});
|
37580
37568
|
}, [decision, setNodeDataValue]);
|
37581
37569
|
var removeFeature = useCallback(function (value) {
|
37582
|
-
var
|
37570
|
+
var _decision$featureRefs3;
|
37571
|
+
var index = (_decision$featureRefs3 = decision.featureRefs) === null || _decision$featureRefs3 === void 0 ? void 0 : _decision$featureRefs3.findIndex(function (featureRef) {
|
37583
37572
|
return featureRef === value;
|
37584
37573
|
});
|
37585
37574
|
var newRefs = _toConsumableArray(decision.featureRefs);
|
@@ -37607,15 +37596,15 @@ function OptionCombinations(_ref) {
|
|
37607
37596
|
};
|
37608
37597
|
}, []);
|
37609
37598
|
var configuration = useMemo(function () {
|
37610
|
-
var _decision$
|
37599
|
+
var _decision$featureRefs4, _decision$featureRefs5;
|
37611
37600
|
return {
|
37612
37601
|
type: 'dotnetSSM',
|
37613
37602
|
apiInterface: apiInterface,
|
37614
37603
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
37615
|
-
colDef: [].concat(_toConsumableArray((_decision$
|
37616
|
-
var _decision$
|
37604
|
+
colDef: [].concat(_toConsumableArray((_decision$featureRefs4 = (_decision$featureRefs5 = decision.featureRefs) === null || _decision$featureRefs5 === void 0 ? void 0 : _decision$featureRefs5.map(function (featureRef, i) {
|
37605
|
+
var _decision$featureRefs6, _decision$featureRefs7;
|
37617
37606
|
return {
|
37618
|
-
headerName: (_decision$
|
37607
|
+
headerName: (_decision$featureRefs6 = (_decision$featureRefs7 = decision.featureRefsDisplayTexts) === null || _decision$featureRefs7 === void 0 || (_decision$featureRefs7 = _decision$featureRefs7[i]) === null || _decision$featureRefs7 === void 0 ? void 0 : _decision$featureRefs7[i18n.language.toUpperCase()]) !== null && _decision$featureRefs6 !== void 0 ? _decision$featureRefs6 : featureRef,
|
37619
37608
|
field: "optionsSetRefs.".concat(featureRef),
|
37620
37609
|
editable: true,
|
37621
37610
|
isDictionary: true,
|
@@ -37632,7 +37621,7 @@ function OptionCombinations(_ref) {
|
|
37632
37621
|
})
|
37633
37622
|
}
|
37634
37623
|
};
|
37635
|
-
})) !== null && _decision$
|
37624
|
+
})) !== null && _decision$featureRefs4 !== void 0 ? _decision$featureRefs4 : []), [{
|
37636
37625
|
headerName: 'backoffice.idmCatalog.optionCombinations.label.newFeature',
|
37637
37626
|
field: 'featureRefs',
|
37638
37627
|
editable: false,
|
@@ -37647,8 +37636,8 @@ function OptionCombinations(_ref) {
|
|
37647
37636
|
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
|
37648
37637
|
},
|
37649
37638
|
filter: function filter(_, lookupData) {
|
37650
|
-
var _decision$
|
37651
|
-
return !((_decision$
|
37639
|
+
var _decision$featureRefs8;
|
37640
|
+
return !((_decision$featureRefs8 = decision.featureRefs) !== null && _decision$featureRefs8 !== void 0 && _decision$featureRefs8.includes(lookupData.featureNo));
|
37652
37641
|
},
|
37653
37642
|
lookupValue: 'featureText',
|
37654
37643
|
lookupKey: 'featureNo',
|
@@ -38435,8 +38424,8 @@ var TablePartlists = observer(function () {
|
|
38435
38424
|
});
|
38436
38425
|
});
|
38437
38426
|
|
38438
|
-
function ownKeys$
|
38439
|
-
function _objectSpread$
|
38427
|
+
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; }
|
38428
|
+
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; }
|
38440
38429
|
function PriceFeatureGroupPercentageSurcharge(_ref) {
|
38441
38430
|
var priceFeatureGroup = _ref.priceFeatureGroup,
|
38442
38431
|
catalogId = _ref.catalogId,
|
@@ -38463,7 +38452,7 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
38463
38452
|
var newRefsDisplayTexts = _toConsumableArray(priceFeatureGroup.featureNosDisplayTexts);
|
38464
38453
|
newRefs.splice(index, 1);
|
38465
38454
|
newRefsDisplayTexts.splice(index, 1);
|
38466
|
-
var updatedPriceFeatureGroup = _objectSpread$
|
38455
|
+
var updatedPriceFeatureGroup = _objectSpread$8(_objectSpread$8({}, priceFeatureGroup), {}, {
|
38467
38456
|
featureNos: newRefs,
|
38468
38457
|
featureNosDisplayTexts: newRefsDisplayTexts
|
38469
38458
|
});
|
@@ -38803,8 +38792,8 @@ function PriceFeatureGroupFinishes(_ref) {
|
|
38803
38792
|
}, priceFeatureGroup._id);
|
38804
38793
|
}
|
38805
38794
|
|
38806
|
-
function ownKeys$
|
38807
|
-
function _objectSpread$
|
38795
|
+
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; }
|
38796
|
+
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; }
|
38808
38797
|
var TablePriceFeatureGroups = observer(function () {
|
38809
38798
|
var _useTranslation = useTranslation(),
|
38810
38799
|
t = _useTranslation.t;
|
@@ -38899,7 +38888,7 @@ var TablePriceFeatureGroups = observer(function () {
|
|
38899
38888
|
return update.node.id == selectedNodeId;
|
38900
38889
|
});
|
38901
38890
|
if (current) {
|
38902
|
-
setSelectedPriceFeatureGroup(_objectSpread$
|
38891
|
+
setSelectedPriceFeatureGroup(_objectSpread$7({}, current.data));
|
38903
38892
|
}
|
38904
38893
|
}
|
38905
38894
|
};
|
@@ -39329,9 +39318,6 @@ function Content$2() {
|
|
39329
39318
|
}), /*#__PURE__*/jsx(Route, {
|
39330
39319
|
path: ":catalogId/options",
|
39331
39320
|
element: /*#__PURE__*/jsx(TableOptions, {})
|
39332
|
-
}), /*#__PURE__*/jsx(Route, {
|
39333
|
-
path: ":catalogId/catalogoptions",
|
39334
|
-
element: /*#__PURE__*/jsx(TableCatalogOptions, {})
|
39335
39321
|
}), /*#__PURE__*/jsx(Route, {
|
39336
39322
|
path: ":catalogId/optiongroups",
|
39337
39323
|
element: /*#__PURE__*/jsx(TableOptionGroups, {})
|
@@ -39844,8 +39830,8 @@ var FileUploadWrapper = function FileUploadWrapper(_ref) {
|
|
39844
39830
|
};
|
39845
39831
|
var FileUploadOrders = observer(FileUploadWrapper);
|
39846
39832
|
|
39847
|
-
function ownKeys$
|
39848
|
-
function _objectSpread$
|
39833
|
+
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; }
|
39834
|
+
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; }
|
39849
39835
|
var ContentWrapper = function ContentWrapper(_ref) {
|
39850
39836
|
var id = _ref.id;
|
39851
39837
|
var root = useStore();
|
@@ -39918,7 +39904,7 @@ var ContentCard = observer(function (_ref3) {
|
|
39918
39904
|
var root = useStore();
|
39919
39905
|
var configuration = root.configurationStore.getConfiguration(configId);
|
39920
39906
|
return /*#__PURE__*/jsxs("div", {
|
39921
|
-
style: _objectSpread$
|
39907
|
+
style: _objectSpread$6(_objectSpread$6({}, !inGroup ? {
|
39922
39908
|
height: '100%'
|
39923
39909
|
} : {
|
39924
39910
|
maxHeight: '60vh'
|
@@ -39969,8 +39955,8 @@ var Content = observer(ContentWrapper);
|
|
39969
39955
|
var layout = "layout-gqKsp";
|
39970
39956
|
var contentWrapper = "content-wrapper-mQSc0";
|
39971
39957
|
var detail = "detail-WeK8Q";
|
39972
|
-
var css_248z$
|
39973
|
-
styleInject(css_248z$
|
39958
|
+
var css_248z$6 = ".layout-gqKsp {\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n\n.content-wrapper-mQSc0 {\n overflow: auto;\n height: 100%;\n}\n\n.detail-WeK8Q .ant-drawer-content-wrapper {\n max-width: 100%;\n}\n\n.darkmode .ant-layout {\n background-color: rgb(20, 20, 20);\n}\n\n.lightmode .ant-layout {\n background-color: rgb(255, 255, 255);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode {\n background-color: #001529 !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode .arrows {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%2225%22 height%3D%2224%22 viewBox%3D%220 0 25 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M10.5 7L15.5 12L10.5 17%22 stroke%3D%22%23fff%22 stroke-width%3D%221.5%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\"), linear-gradient(270deg, rgba(0, 21, 41, 1) 0%, rgba(0, 21, 41, 1) 72%, rgba(0, 21, 41, 0) 100%) !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #Profile > div {\n border-left: 1px solid black;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #welcomeText {\n border-right: 1px solid black;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #Profile {\n background-color: #001529 !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.lightmode {\n background-color: #fff !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode * {\n color: rgb(255, 255, 255);\n}\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.lightmode * {\n color: rgb(0, 0, 0);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW ::-webkit-scrollbar {\n width: 10px;\n height: 10px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode ::-webkit-scrollbar-track {\n box-shadow: inset 0 0 10px 10px #021129;\n border: solid 3px transparent;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px rgb(130, 130, 130);\n border: solid 3px transparent;\n border-radius: 10px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .lightmode ::-webkit-scrollbar-track {\n box-shadow: inset 0 0 10px 10px #ffffff;\n border: solid 3px transparent;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .lightmode ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px #bdbdbd;\n border: solid 3px transparent;\n border-radius: 10px;\n}\n";
|
39959
|
+
styleInject(css_248z$6);
|
39974
39960
|
|
39975
39961
|
function Detail(_ref) {
|
39976
39962
|
var _info$description, _container$current, _info$width, _info$submitButtonTex, _info$data;
|
@@ -40192,7 +40178,7 @@ function Detail(_ref) {
|
|
40192
40178
|
setCanSave: setCanSave,
|
40193
40179
|
onChange: onChange,
|
40194
40180
|
onError: onError,
|
40195
|
-
height:
|
40181
|
+
height: '100%'
|
40196
40182
|
}), info.type == 'ImageCropper' && /*#__PURE__*/jsx(ImageCropper$1, {
|
40197
40183
|
ref: ref,
|
40198
40184
|
id: info.configurationId,
|
@@ -40312,8 +40298,8 @@ var Modal$1 = observer(Modal);
|
|
40312
40298
|
|
40313
40299
|
var snow = "snow-14T01";
|
40314
40300
|
var sun = "sun-ijIPS";
|
40315
|
-
var css_248z$
|
40316
|
-
styleInject(css_248z$
|
40301
|
+
var css_248z$5 = ".snow-14T01 {\n display: none;\n position: fixed;\n font-size: 1.5rem;\n top: -1vh;\n transform: translateY(0);\n animation: fall-XG-Wo 3s linear forwards;\n background: center / contain no-repeat url(\"data:image/svg+xml,%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 512 512%22 style%3D%22enable-background%3Anew 0 0 512 512%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cpath style%3D%22fill%3A%2399DDFF%3B%22 d%3D%22M512%2C256c0-9.217-7.479-16.696-16.696-16.696h-26.478l32.718-32.718%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-56.327%2C56.327h-83.813c-2.168-10.642-6.39-20.536-12.197-29.295%09l59.303-59.303h79.663c9.217%2C0%2C16.696-7.479%2C16.696-16.696s-7.479-16.696-16.696-16.696h-46.271l18.728-18.728%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-18.727%2C18.728V47.435c0-9.217-7.479-16.696-16.696-16.696%09c-9.217%2C0-16.696%2C7.479-16.696%2C16.696v79.663L301.991%2C186.4c-8.759-5.807-18.652-10.027-29.295-12.197V90.391l56.326-56.326%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-32.717%2C32.717V16.696C272.696%2C7.479%2C265.217%2C0%2C256%2C0%09s-16.696%2C7.479-16.696%2C16.696v26.478l-32.718-32.717c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609l56.327%2C56.326%09v83.813c-10.642%2C2.168-20.536%2C6.39-29.295%2C12.197l-59.303-59.303V47.435c0-9.217-7.479-16.696-16.696-16.696%09s-16.696%2C7.479-16.696%2C16.696v46.271L98.587%2C74.978c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609l18.728%2C18.728%09H47.435c-9.217%2C0-16.696%2C7.479-16.696%2C16.696c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696h79.663l59.303%2C59.303%09c-5.807%2C8.759-10.027%2C18.652-12.197%2C29.295H90.391l-56.326-56.326c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609%09l32.717%2C32.717H16.696C7.479%2C239.304%2C0%2C246.783%2C0%2C256s7.479%2C16.696%2C16.696%2C16.696h26.478l-32.717%2C32.718%09c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609c3.26%2C3.26%2C7.532%2C4.891%2C11.804%2C4.891s8.544-1.631%2C11.804-4.892l56.327-56.326h83.813%09c2.168%2C10.642%2C6.39%2C20.536%2C12.197%2C29.295l-59.303%2C59.303H47.435c-9.217%2C0-16.696%2C7.479-16.696%2C16.696%09c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696h46.271l-18.728%2C18.728c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609%09c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892l18.728-18.728v46.271c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09s16.696-7.479%2C16.696-16.696v-79.663l59.303-59.303c8.759%2C5.807%2C18.652%2C10.027%2C29.295%2C12.197v83.813l-56.326%2C56.326%09c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609s17.087%2C6.521%2C23.609%2C0l32.718-32.718v26.478c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09s16.696-7.479%2C16.696-16.696v-26.478l32.718%2C32.718c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-56.326-56.327v-83.813c10.642-2.168%2C20.536-6.39%2C29.295-12.197l59.303%2C59.303v79.663%09c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-46.271l18.728%2C18.728%09c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-18.727-18.727h46.271%09c9.217%2C0%2C16.696-7.479%2C16.696-16.696c0-9.217-7.479-16.696-16.696-16.696h-79.663L325.6%2C301.991%09c5.807-8.759%2C10.027-18.652%2C12.197-29.295h83.813l56.326%2C56.326c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-32.717-32.717h26.478C504.521%2C272.696%2C512%2C265.217%2C512%2C256z M256%2C306.087%09c-27.619%2C0-50.087-22.468-50.087-50.087s22.468-50.087%2C50.087-50.087s50.087%2C22.468%2C50.087%2C50.087S283.619%2C306.087%2C256%2C306.087z%22%2F%3E%3Cpath style%3D%22fill%3A%2373C0E6%3B%22 d%3D%22M306.087%2C256c0%2C27.619-22.468%2C50.087-50.087%2C50.087V512c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-26.478%09l32.718%2C32.718c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-56.326-56.327%09v-83.813c10.642-2.168%2C20.536-6.39%2C29.295-12.197l59.303%2C59.303v79.663c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-46.271l18.728%2C18.728c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-18.727-18.727h46.271c9.217%2C0%2C16.696-7.479%2C16.696-16.696c0-9.217-7.479-16.696-16.696-16.696%09h-79.663L325.6%2C301.991c5.807-8.759%2C10.027-18.652%2C12.197-29.295h83.813l56.326%2C56.326c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892%09s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-32.717-32.717h26.478c9.217%2C0%2C16.696-7.479%2C16.696-16.696%09s-7.479-16.696-16.696-16.696h-26.478l32.718-32.718c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-56.327%2C56.327%09h-83.813c-2.168-10.642-6.39-20.536-12.197-29.295l59.303-59.303h79.663c9.217%2C0%2C16.696-7.479%2C16.696-16.696%09s-7.479-16.696-16.696-16.696h-46.271l18.728-18.728c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-18.727%2C18.728%09V47.435c0-9.217-7.479-16.696-16.696-16.696c-9.217%2C0-16.696%2C7.479-16.696%2C16.696v79.663L301.991%2C186.4%09c-8.759-5.807-18.652-10.027-29.295-12.197V90.391l56.326-56.326c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0%09l-32.717%2C32.717V16.696C272.696%2C7.479%2C265.217%2C0%2C256%2C0v205.913C283.619%2C205.913%2C306.087%2C228.381%2C306.087%2C256z%22%2F%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n width: 20px;\n height: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .snow-14T01 {\n display: block;\n}\n\n@keyframes fall-XG-Wo {\n from {\n transform: translateY(0vh) translateX(-10vw);\n }\n to {\n transform: translateY(105vh) translateX(10vw);\n }\n}\n\n.sun-ijIPS {\n color: rgba(255, 255, 255, 0.65);\n line-height: 40px;\n margin-left: 10px;\n cursor: pointer;\n}\n";
|
40302
|
+
styleInject(css_248z$5);
|
40317
40303
|
|
40318
40304
|
var SnowAnimation = function SnowAnimation(props) {
|
40319
40305
|
var _useState = useState(),
|
@@ -40478,19 +40464,21 @@ var sel = "sel-iUm8X";
|
|
40478
40464
|
var button = "button-K-0KR";
|
40479
40465
|
var toolbarLayout = "toolbar-layout-DUuBn";
|
40480
40466
|
var toolbarContent = "toolbar-content-GxyU6";
|
40481
|
-
var css_248z$
|
40482
|
-
styleInject(css_248z$
|
40467
|
+
var css_248z$4 = ".container-BucHG {\n height: 100%;\n width: 100%;\n position: relative;\n z-index: 1001;\n overflow: auto;\n}\n\n.right--XETU .container-BucHG {\n z-index: 1003;\n}\n\n.unpinned-right-tbnNb.container-BucHG {\n right: 37px;\n position: absolute;\n}\n\n.draghandle-f5b0N {\n position: absolute;\n top: 0px;\n background-color: rgba(128, 128, 128, 0.3);\n z-index: 1002;\n}\n\n.right--XETU .draghandle-f5b0N {\n height: 100%;\n width: 2px;\n left: -1px;\n cursor: ew-resize;\n z-index: 1004;\n}\n\n.bottom-cqyfS .draghandle-f5b0N {\n height: 2px;\n width: 100%;\n cursor: ns-resize;\n}\n\n.mid-handle--qh50 {\n position: absolute;\n background-color: rgba(128, 128, 128, 0.3);\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.right--XETU .mid-handle--qh50 {\n width: 5px;\n height: 32px;\n border-left: 2px solid grey;\n border-right: 2px solid grey;\n}\n\n.bottom-cqyfS .mid-handle--qh50 {\n height: 5px;\n width: 32px;\n border-top: 2px solid gray;\n border-bottom: 2px solid gray;\n}\n\n.tools-selector-BHV3Z {\n z-index: 1000;\n display: flex;\n position: relative;\n gap: 16px;\n align-items: center;\n background-color: #f5f5f5;\n}\n\n.darkmode .tools-selector-BHV3Z {\n background-color: #001529;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.right--XETU .tools-selector-BHV3Z {\n width: 36px;\n height: 100%;\n padding-top: 16px;\n flex-direction: column;\n}\n\n.bottom-cqyfS .tools-selector-BHV3Z {\n width: 100%;\n height: 36px;\n padding-top: 0;\n flex-direction: row;\n}\n\n.tool-item-KyKgQ {\n padding: 10px;\n cursor: pointer;\n position: relative;\n}\n\n.tool-item-KyKgQ.disabled-6aIG9 {\n opacity: 0.5;\n cursor: default;\n}\n\n.right--XETU .tool-item-KyKgQ {\n writing-mode: vertical-lr;\n text-orientation: mixed;\n}\n\n.tool-item-KyKgQ::after {\n content: '';\n position: absolute;\n background-color: #0088ff;\n transition: all ease-in-out 0.2s;\n}\n\n.right--XETU .tool-item-KyKgQ::after {\n width: 3px;\n height: 0px;\n left: 1px;\n bottom: 50%;\n}\n\n.right--XETU .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.right--XETU .sel-iUm8X::after {\n height: 100%;\n bottom: 0;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ::after {\n width: 0px;\n height: 3px;\n bottom: 1px;\n left: 50%;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.bottom-cqyfS .sel-iUm8X::after {\n width: 100%;\n left: 0;\n}\n\n.button-K-0KR {\n width: 40px;\n justify-content: center;\n}\n\n.toolbar-layout-DUuBn {\n height: 100%;\n width: 100%;\n}\n\n.toolbar-content-GxyU6 {\n height: 100%;\n width: 100%;\n padding: 32px;\n display: flex;\n flex-direction: column;\n}\n";
|
40468
|
+
styleInject(css_248z$4);
|
40483
40469
|
|
40484
|
-
var wrapper$
|
40470
|
+
var wrapper$2 = "wrapper-Q13-g";
|
40485
40471
|
var confContainer = "conf-container-Sm5LL";
|
40486
|
-
var css_248z$
|
40487
|
-
styleInject(css_248z$
|
40472
|
+
var css_248z$3 = ".wrapper-Q13-g {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.conf-container-Sm5LL {\n padding-top: 10px;\n background: white;\n color: black;\n height: calc(100% - 40px);\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n}\n\n.darkmode .conf-container-Sm5LL {\n border-color: #424242;\n}\n";
|
40473
|
+
styleInject(css_248z$3);
|
40488
40474
|
|
40489
|
-
var wrapper = "wrapper-IcNC5";
|
40490
|
-
var select = "select-jVMz-";
|
40491
|
-
var css_248z$
|
40492
|
-
styleInject(css_248z$
|
40475
|
+
var wrapper$1 = "wrapper-IcNC5";
|
40476
|
+
var select$1 = "select-jVMz-";
|
40477
|
+
var css_248z$2 = ".wrapper-IcNC5 {\n display: flex;\n gap: 16px;\n justify-content: space-between;\n margin-bottom: 8px;\n}\n\n.select-jVMz- {\n z-index: 1000;\n flex: 1;\n max-width: 100% - 48px;\n}\n";
|
40478
|
+
styleInject(css_248z$2);
|
40493
40479
|
|
40480
|
+
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; }
|
40481
|
+
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; }
|
40494
40482
|
var ArticleSelection = function ArticleSelection(_ref) {
|
40495
40483
|
var _ref$state = _ref.state,
|
40496
40484
|
articleList = _ref$state.articleList,
|
@@ -40520,19 +40508,20 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
40520
40508
|
for (var i = 0; i < articleList.length; i++) {
|
40521
40509
|
_loop();
|
40522
40510
|
}
|
40523
|
-
return groups
|
40511
|
+
return groups.map(function (g) {
|
40512
|
+
return _objectSpread$5(_objectSpread$5({}, g), {}, {
|
40513
|
+
label: t('configuration.group.' + g.label, g.label)
|
40514
|
+
});
|
40515
|
+
});
|
40524
40516
|
}, [articleList]);
|
40525
40517
|
return /*#__PURE__*/jsxs("div", {
|
40526
|
-
className: wrapper,
|
40518
|
+
className: wrapper$1,
|
40527
40519
|
children: [/*#__PURE__*/jsx(Select$1, {
|
40528
|
-
style: {
|
40529
|
-
maxWidth: 'calc(100% - 48px)'
|
40530
|
-
},
|
40531
40520
|
placeholder: t('backoffice.configurator.article.placeholder'),
|
40532
40521
|
value: articleCodex,
|
40533
40522
|
options: groupedArticles,
|
40534
40523
|
onChange: setArticleCodex,
|
40535
|
-
className: select
|
40524
|
+
className: select$1
|
40536
40525
|
}), /*#__PURE__*/jsx(Button, {
|
40537
40526
|
icon: /*#__PURE__*/jsx(ReloadOutlined$1, {}),
|
40538
40527
|
onClick: function onClick() {
|
@@ -40546,6 +40535,7 @@ var ArticleSelection$1 = observer(ArticleSelection);
|
|
40546
40535
|
function ownKeys$4(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; }
|
40547
40536
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
40548
40537
|
function useWysiwyg$1(_ref) {
|
40538
|
+
var _tool$parameters;
|
40549
40539
|
var tool = _ref.tool,
|
40550
40540
|
toolbar = _ref.toolbar;
|
40551
40541
|
var _useDivaCore = useDivaCore(),
|
@@ -40559,8 +40549,8 @@ function useWysiwyg$1(_ref) {
|
|
40559
40549
|
setDoReset = _useState2[1];
|
40560
40550
|
var _useState3 = useState(),
|
40561
40551
|
_useState4 = _slicedToArray(_useState3, 2),
|
40562
|
-
|
40563
|
-
|
40552
|
+
mask = _useState4[0],
|
40553
|
+
setMask = _useState4[1];
|
40564
40554
|
var _useState5 = useState(),
|
40565
40555
|
_useState6 = _slicedToArray(_useState5, 2),
|
40566
40556
|
articleCodex = _useState6[0],
|
@@ -40569,14 +40559,24 @@ function useWysiwyg$1(_ref) {
|
|
40569
40559
|
_useState8 = _slicedToArray(_useState7, 2),
|
40570
40560
|
articleList = _useState8[0],
|
40571
40561
|
setArticleList = _useState8[1];
|
40572
|
-
var _useState9 = useState(
|
40562
|
+
var _useState9 = useState({
|
40563
|
+
catalogCodex: (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.catalogCodex
|
40564
|
+
}),
|
40573
40565
|
_useState10 = _slicedToArray(_useState9, 2),
|
40574
|
-
|
40575
|
-
|
40576
|
-
var _useState11 = useState(),
|
40566
|
+
catalog = _useState10[0],
|
40567
|
+
setCatalog = _useState10[1];
|
40568
|
+
var _useState11 = useState([]),
|
40577
40569
|
_useState12 = _slicedToArray(_useState11, 2),
|
40578
|
-
|
40579
|
-
|
40570
|
+
catalogList = _useState12[0],
|
40571
|
+
setCatalogList = _useState12[1];
|
40572
|
+
var _useState13 = useState(),
|
40573
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
40574
|
+
currentNav = _useState14[0],
|
40575
|
+
setCurrentNav = _useState14[1];
|
40576
|
+
var _useState15 = useState(),
|
40577
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
40578
|
+
doNavigate = _useState16[0],
|
40579
|
+
setDoNavigate = _useState16[1];
|
40580
40580
|
useEffect(function () {
|
40581
40581
|
if (!toolbar.hidden) setDoReset(true);
|
40582
40582
|
}, [toolbar.hidden]);
|
@@ -40604,7 +40604,7 @@ function useWysiwyg$1(_ref) {
|
|
40604
40604
|
});
|
40605
40605
|
case 3:
|
40606
40606
|
d = _context.sent;
|
40607
|
-
|
40607
|
+
setMask(d);
|
40608
40608
|
case 5:
|
40609
40609
|
case "end":
|
40610
40610
|
return _context.stop();
|
@@ -40615,14 +40615,124 @@ function useWysiwyg$1(_ref) {
|
|
40615
40615
|
return _ref2.apply(this, arguments);
|
40616
40616
|
};
|
40617
40617
|
}();
|
40618
|
+
var loadPackage = /*#__PURE__*/function () {
|
40619
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(id) {
|
40620
|
+
var jwt, d, s;
|
40621
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
40622
|
+
while (1) switch (_context2.prev = _context2.next) {
|
40623
|
+
case 0:
|
40624
|
+
jwt = root.dataStore.jwt;
|
40625
|
+
_context2.next = 3;
|
40626
|
+
return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs', {
|
40627
|
+
method: 'GET',
|
40628
|
+
headers: _objectSpread$4({}, jwt ? {
|
40629
|
+
Authorization: 'Bearer ' + jwt
|
40630
|
+
} : {})
|
40631
|
+
}).then(function (r) {
|
40632
|
+
return r.text();
|
40633
|
+
}).then(function (r) {
|
40634
|
+
try {
|
40635
|
+
return JSON.parse(r);
|
40636
|
+
} catch (_unused2) {
|
40637
|
+
return undefined;
|
40638
|
+
}
|
40639
|
+
});
|
40640
|
+
case 3:
|
40641
|
+
d = _context2.sent;
|
40642
|
+
_context2.next = 6;
|
40643
|
+
return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs/' + d._id + '/series', {
|
40644
|
+
method: 'GET',
|
40645
|
+
headers: _objectSpread$4({}, jwt ? {
|
40646
|
+
Authorization: 'Bearer ' + jwt
|
40647
|
+
} : {})
|
40648
|
+
}).then(function (r) {
|
40649
|
+
return r.text();
|
40650
|
+
}).then(function (r) {
|
40651
|
+
try {
|
40652
|
+
return JSON.parse(r);
|
40653
|
+
} catch (_unused3) {
|
40654
|
+
return undefined;
|
40655
|
+
}
|
40656
|
+
});
|
40657
|
+
case 6:
|
40658
|
+
s = _context2.sent;
|
40659
|
+
setCatalogList(s.data);
|
40660
|
+
case 8:
|
40661
|
+
case "end":
|
40662
|
+
return _context2.stop();
|
40663
|
+
}
|
40664
|
+
}, _callee2);
|
40665
|
+
}));
|
40666
|
+
return function loadPackage(_x2) {
|
40667
|
+
return _ref3.apply(this, arguments);
|
40668
|
+
};
|
40669
|
+
}();
|
40670
|
+
var loadCatalogs = /*#__PURE__*/function () {
|
40671
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(id) {
|
40672
|
+
var jwt, l;
|
40673
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
40674
|
+
while (1) switch (_context3.prev = _context3.next) {
|
40675
|
+
case 0:
|
40676
|
+
jwt = root.dataStore.jwt;
|
40677
|
+
_context3.next = 3;
|
40678
|
+
return fetch((tool.elementProps.useIDMService ? root.configurationStore.apiConfig.idmService : root.configurationStore.apiConfig.enricherService) + '/v3.0/catalogs/' + id + '/series', {
|
40679
|
+
method: 'GET',
|
40680
|
+
headers: _objectSpread$4({}, jwt ? {
|
40681
|
+
Authorization: 'Bearer ' + jwt
|
40682
|
+
} : {})
|
40683
|
+
}).then(function (r) {
|
40684
|
+
return r.text();
|
40685
|
+
}).then(function (r) {
|
40686
|
+
try {
|
40687
|
+
return JSON.parse(r);
|
40688
|
+
} catch (_unused4) {
|
40689
|
+
return undefined;
|
40690
|
+
}
|
40691
|
+
});
|
40692
|
+
case 3:
|
40693
|
+
l = _context3.sent;
|
40694
|
+
setCatalogList(l.data);
|
40695
|
+
case 5:
|
40696
|
+
case "end":
|
40697
|
+
return _context3.stop();
|
40698
|
+
}
|
40699
|
+
}, _callee3);
|
40700
|
+
}));
|
40701
|
+
return function loadCatalogs(_x3) {
|
40702
|
+
return _ref4.apply(this, arguments);
|
40703
|
+
};
|
40704
|
+
}();
|
40618
40705
|
useEffect(function () {
|
40619
40706
|
if (doReset) {
|
40707
|
+
var _tool$elementProps, _tool$elementProps3;
|
40620
40708
|
if (currentNav) setDoNavigate(currentNav);
|
40621
|
-
|
40622
|
-
|
40623
|
-
|
40709
|
+
if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !catalogList.length) {
|
40710
|
+
var _tool$elementProps2;
|
40711
|
+
if ((_tool$elementProps2 = tool.elementProps) !== null && _tool$elementProps2 !== void 0 && _tool$elementProps2.loadPackage) {
|
40712
|
+
loadPackage(tool.parameters.packageId);
|
40713
|
+
} else {
|
40714
|
+
loadCatalogs(tool.elementProps.catalogId);
|
40715
|
+
}
|
40716
|
+
}
|
40717
|
+
if ((_tool$elementProps3 = tool.elementProps) !== null && _tool$elementProps3 !== void 0 && _tool$elementProps3.loadMask) {
|
40718
|
+
loadMask(tool.parameters.packageId).then(function () {
|
40719
|
+
return setDoReset(false);
|
40720
|
+
});
|
40721
|
+
} else {
|
40722
|
+
setDoReset(false);
|
40723
|
+
}
|
40624
40724
|
}
|
40625
40725
|
}, [doReset]);
|
40726
|
+
useEffect(function () {
|
40727
|
+
setArticleCodex(undefined);
|
40728
|
+
if (catalog !== null && catalog !== void 0 && catalog.catalogCodex) {
|
40729
|
+
var _tool$parameters$pack;
|
40730
|
+
setMask({
|
40731
|
+
catalogCodex: catalog.catalogCodex,
|
40732
|
+
accountId: (_tool$parameters$pack = tool.parameters.packageId) !== null && _tool$parameters$pack !== void 0 ? _tool$parameters$pack : tool.parameters.catalogId
|
40733
|
+
});
|
40734
|
+
}
|
40735
|
+
}, [catalog]);
|
40626
40736
|
useEffect(function () {
|
40627
40737
|
if (articleCodex) {
|
40628
40738
|
setDoReset(true);
|
@@ -40630,10 +40740,10 @@ function useWysiwyg$1(_ref) {
|
|
40630
40740
|
}
|
40631
40741
|
}, [tool.parameters.packageId]);
|
40632
40742
|
var onEventCalled = /*#__PURE__*/function () {
|
40633
|
-
var
|
40743
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
|
40634
40744
|
var _articles$, catalogData, articles, key, article;
|
40635
|
-
return _regeneratorRuntime.wrap(function
|
40636
|
-
while (1) switch (
|
40745
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
40746
|
+
while (1) switch (_context4.prev = _context4.next) {
|
40637
40747
|
case 0:
|
40638
40748
|
if (e.type === 'onArticlesLoaded') {
|
40639
40749
|
catalogData = e.data.catalogData;
|
@@ -40654,12 +40764,12 @@ function useWysiwyg$1(_ref) {
|
|
40654
40764
|
}
|
40655
40765
|
case 2:
|
40656
40766
|
case "end":
|
40657
|
-
return
|
40767
|
+
return _context4.stop();
|
40658
40768
|
}
|
40659
|
-
},
|
40769
|
+
}, _callee4);
|
40660
40770
|
}));
|
40661
|
-
return function onEventCalled(
|
40662
|
-
return
|
40771
|
+
return function onEventCalled(_x4) {
|
40772
|
+
return _ref5.apply(this, arguments);
|
40663
40773
|
};
|
40664
40774
|
}();
|
40665
40775
|
useEffect(function () {
|
@@ -40669,6 +40779,7 @@ function useWysiwyg$1(_ref) {
|
|
40669
40779
|
};
|
40670
40780
|
}, [articleCodex]);
|
40671
40781
|
var settings = useMemo(function () {
|
40782
|
+
var _tool$elementProps4, _tool$elementProps5, _tool$elementProps6;
|
40672
40783
|
return {
|
40673
40784
|
language: 'DE',
|
40674
40785
|
showSelectionModeZero: true,
|
@@ -40677,6 +40788,7 @@ function useWysiwyg$1(_ref) {
|
|
40677
40788
|
hideErrorMsg: false,
|
40678
40789
|
errorMsg: 'WYSIWYG currently not working for this mask'
|
40679
40790
|
},
|
40791
|
+
applicationEnvironment: 'WYSIWYG',
|
40680
40792
|
viewConfig: {
|
40681
40793
|
allowComma: true,
|
40682
40794
|
tabOrientation: 'horizontal',
|
@@ -40718,13 +40830,16 @@ function useWysiwyg$1(_ref) {
|
|
40718
40830
|
disableLandscape: true,
|
40719
40831
|
settingsSizes: {
|
40720
40832
|
sizeGallery: '50px',
|
40721
|
-
sizeDefault: '
|
40833
|
+
sizeDefault: '240px'
|
40722
40834
|
},
|
40835
|
+
pricePreview: 'fromCurrentPrice',
|
40723
40836
|
hideConfigFoldArrow: true,
|
40724
40837
|
tooltipPosition: 'left-center',
|
40725
40838
|
clientEvents: ['onWebPlanerConfigChange', 'onArticlesLoaded']
|
40726
40839
|
},
|
40727
|
-
|
40840
|
+
useIDMService: (_tool$elementProps4 = tool.elementProps) === null || _tool$elementProps4 === void 0 ? void 0 : _tool$elementProps4.useIDMService,
|
40841
|
+
useEnricherService: (_tool$elementProps5 = tool.elementProps) === null || _tool$elementProps5 === void 0 ? void 0 : _tool$elementProps5.useEnricherService,
|
40842
|
+
useMask: (_tool$elementProps6 = tool.elementProps) === null || _tool$elementProps6 === void 0 ? void 0 : _tool$elementProps6.loadMask,
|
40728
40843
|
templateConfig: {
|
40729
40844
|
Layout: 'wysiwyg',
|
40730
40845
|
BasketButton: 'standard',
|
@@ -40753,8 +40868,12 @@ function useWysiwyg$1(_ref) {
|
|
40753
40868
|
setArticleList: setArticleList,
|
40754
40869
|
articleCodex: articleCodex,
|
40755
40870
|
setArticleCodex: setArticleCodex,
|
40871
|
+
catalogList: catalogList,
|
40872
|
+
setCatalogList: setCatalogList,
|
40873
|
+
catalog: catalog,
|
40874
|
+
setCatalog: setCatalog,
|
40756
40875
|
settings: settings,
|
40757
|
-
|
40876
|
+
mask: mask,
|
40758
40877
|
doReset: doReset,
|
40759
40878
|
setDoReset: setDoReset,
|
40760
40879
|
doNavigate: doNavigate
|
@@ -40802,10 +40921,58 @@ var FallbackComponent = function FallbackComponent(_ref2) {
|
|
40802
40921
|
});
|
40803
40922
|
};
|
40804
40923
|
|
40924
|
+
var wrapper = "wrapper-NYRLn";
|
40925
|
+
var select = "select-K2SWc";
|
40926
|
+
var css_248z$1 = ".wrapper-NYRLn {\n display: flex;\n gap: 16px;\n justify-content: space-between;\n margin-bottom: 8px;\n}\n\n.select-K2SWc {\n z-index: 1000;\n flex: 1;\n}\n";
|
40927
|
+
styleInject(css_248z$1);
|
40928
|
+
|
40929
|
+
var CatalogSelection = function CatalogSelection(_ref) {
|
40930
|
+
var _ref$state = _ref.state,
|
40931
|
+
catalogList = _ref$state.catalogList,
|
40932
|
+
catalog = _ref$state.catalog,
|
40933
|
+
setCatalog = _ref$state.setCatalog;
|
40934
|
+
var _useTranslation = useTranslation(),
|
40935
|
+
t = _useTranslation.t,
|
40936
|
+
language = _useTranslation.i18n.language;
|
40937
|
+
var options = useMemo(function () {
|
40938
|
+
var groups = [];
|
40939
|
+
for (var i = 0; i < catalogList.length; i++) {
|
40940
|
+
var c = catalogList[i];
|
40941
|
+
groups.push({
|
40942
|
+
value: c.serieNo.toString(),
|
40943
|
+
label: c.seriesName[language.toUpperCase()]
|
40944
|
+
});
|
40945
|
+
}
|
40946
|
+
return groups;
|
40947
|
+
}, [catalogList]);
|
40948
|
+
var onChange = function onChange(val) {
|
40949
|
+
var cat = catalogList.find(function (c) {
|
40950
|
+
return c.serieNo.toString() == val;
|
40951
|
+
});
|
40952
|
+
var catalog = cat ? {
|
40953
|
+
catalogCodex: cat.serieNo.toString(),
|
40954
|
+
serieId: cat._id,
|
40955
|
+
accountId: cat.catalogId
|
40956
|
+
} : undefined;
|
40957
|
+
setCatalog(catalog);
|
40958
|
+
};
|
40959
|
+
return /*#__PURE__*/jsx("div", {
|
40960
|
+
className: wrapper,
|
40961
|
+
children: /*#__PURE__*/jsx(Select$1, {
|
40962
|
+
placeholder: t('backoffice.configurator.serie.placeholder'),
|
40963
|
+
value: catalog === null || catalog === void 0 ? void 0 : catalog.catalogCodex,
|
40964
|
+
options: options,
|
40965
|
+
onChange: onChange,
|
40966
|
+
className: select
|
40967
|
+
})
|
40968
|
+
});
|
40969
|
+
};
|
40970
|
+
var CatalogSelection$1 = observer(CatalogSelection);
|
40971
|
+
|
40805
40972
|
function ownKeys$3(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; }
|
40806
40973
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
40807
40974
|
var Wsyiwyg = function Wsyiwyg(_ref) {
|
40808
|
-
var _state$articleCodex;
|
40975
|
+
var _state$catalog, _tool$parameters, _state$articleCodex, _state$catalog$catalo, _state$catalog2, _state$mask2, _state$catalog3, _state$catalog$accoun, _state$catalog4, _state$mask3;
|
40809
40976
|
var tool = _ref.tool,
|
40810
40977
|
toolbar = _ref.toolbar;
|
40811
40978
|
var _useDivaCore = useDivaCore(),
|
@@ -40816,23 +40983,33 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
40816
40983
|
});
|
40817
40984
|
var _useTranslation = useTranslation(),
|
40818
40985
|
t = _useTranslation.t;
|
40819
|
-
if (state !== null &&
|
40820
|
-
if (
|
40986
|
+
if (!((_state$catalog = state.catalog) !== null && _state$catalog !== void 0 && _state$catalog.catalogCodex)) {
|
40987
|
+
if (tool.elementProps.showCatalogSelection) {
|
40988
|
+
return /*#__PURE__*/jsx(CatalogSelection$1, {
|
40989
|
+
state: state
|
40990
|
+
});
|
40991
|
+
}
|
40992
|
+
}
|
40993
|
+
if (state !== null && state !== void 0 && state.mask) {
|
40994
|
+
var _state$mask;
|
40995
|
+
if (!((_state$mask = state.mask) !== null && _state$mask !== void 0 && _state$mask.catalogCodex) || !state.mask.accountId) return /*#__PURE__*/jsx(Fragment, {
|
40821
40996
|
children: t('backoffice.wysiwyg.configurator.error')
|
40822
40997
|
});
|
40823
40998
|
}
|
40824
40999
|
return /*#__PURE__*/jsx(ErrorBoundary, {
|
40825
41000
|
errorCode: "BACKO_0004",
|
40826
41001
|
children: /*#__PURE__*/jsxs("div", {
|
40827
|
-
className: wrapper$
|
40828
|
-
children: [/*#__PURE__*/jsx(
|
41002
|
+
className: wrapper$2,
|
41003
|
+
children: [!!tool.elementProps.showCatalogSelection && /*#__PURE__*/jsx(CatalogSelection$1, {
|
41004
|
+
state: state
|
41005
|
+
}), /*#__PURE__*/jsx(ArticleSelection$1, {
|
40829
41006
|
state: state
|
40830
|
-
}), state.
|
41007
|
+
}), state.mask && !state.doReset && /*#__PURE__*/jsx("div", {
|
40831
41008
|
hidden: !state.articleCodex,
|
40832
41009
|
className: confContainer,
|
40833
41010
|
children: /*#__PURE__*/jsx(WebPlannerReact, {
|
40834
41011
|
settings: state.settings,
|
40835
|
-
parameters: _objectSpread$3(_objectSpread$3({
|
41012
|
+
parameters: _objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3({}, (_tool$parameters = tool.parameters) !== null && _tool$parameters !== void 0 ? _tool$parameters : {}), {}, {
|
40836
41013
|
articleCodexes: (_state$articleCodex = state.articleCodex) !== null && _state$articleCodex !== void 0 ? _state$articleCodex : '',
|
40837
41014
|
variantValues: '',
|
40838
41015
|
resetArticle: '',
|
@@ -40842,14 +41019,17 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
40842
41019
|
initMode: 'OPENCONFIGTABGROUP',
|
40843
41020
|
opt: state.doNavigate
|
40844
41021
|
} : {}), {}, {
|
40845
|
-
catalogCodex: state.
|
40846
|
-
|
41022
|
+
catalogCodex: (_state$catalog$catalo = (_state$catalog2 = state.catalog) === null || _state$catalog2 === void 0 ? void 0 : _state$catalog2.catalogCodex) !== null && _state$catalog$catalo !== void 0 ? _state$catalog$catalo : (_state$mask2 = state.mask) === null || _state$mask2 === void 0 ? void 0 : _state$mask2.catalogCodex
|
41023
|
+
}, (_state$catalog3 = state.catalog) !== null && _state$catalog3 !== void 0 && _state$catalog3.serieId ? {
|
41024
|
+
serieId: state.catalog.serieId
|
41025
|
+
} : {}), {}, {
|
41026
|
+
accountGuid: (_state$catalog$accoun = (_state$catalog4 = state.catalog) === null || _state$catalog4 === void 0 ? void 0 : _state$catalog4.accountId) !== null && _state$catalog$accoun !== void 0 ? _state$catalog$accoun : (_state$mask3 = state.mask) === null || _state$mask3 === void 0 ? void 0 : _state$mask3.accountId,
|
40847
41027
|
returnTo: 'DONT_SAVE_BASKET',
|
40848
41028
|
organizationId: organizationId,
|
40849
41029
|
no3DConnection: 'true'
|
40850
41030
|
}),
|
40851
41031
|
internal: {
|
40852
|
-
catalogMask: state.
|
41032
|
+
catalogMask: state.mask,
|
40853
41033
|
actions: {
|
40854
41034
|
toggleLoading: function toggleLoading(subId, _, toggle) {
|
40855
41035
|
return toolbar.toggleLoading(tool.id, subId, toggle);
|