@crystaldesign/diva-backoffice 25.7.0-beta.3 → 25.7.0-beta.30
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 +1207 -665
- package/build/types/backoffice/src/layout/Navigation/types.d.ts +1 -1
- package/build/types/backoffice/src/layout/Navigation/types.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/InformationWindow/index.d.ts +5 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/InformationWindow/index.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
- package/build/types/backoffice/src/store/DownloadStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ToolBarStore.d.ts +69 -3
- package/build/types/backoffice/src/store/ToolBarStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AGGrid/index.d.ts +0 -3
- package/build/types/backoffice/src/ui/AGGrid/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Form/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Form/useFormData.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.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/modules/TableCatalogs/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/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/TableItems/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptionGroups/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/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePrices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCollectionEditor/modules/TableCollections/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/InformationButton.d.ts +5 -0
- package/build/types/backoffice/src/ui/IDMCommonComponents/InformationButton.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts +13 -0
- package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/index.d.ts +4 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/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/tableConfiguration.d.ts +43 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/BaseTable/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
@@ -75,7 +75,7 @@ import DeleteOutlined from '@ant-design/icons/DeleteOutlined';
|
|
75
75
|
import JSONEditor from 'jsoneditor';
|
76
76
|
import 'jsoneditor/dist/jsoneditor.css';
|
77
77
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
78
|
-
import { MinusCircleOutlined, PlusOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, FileUnknownOutlined, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, UploadOutlined as UploadOutlined$1, ReloadOutlined as ReloadOutlined$1 } from '@ant-design/icons';
|
78
|
+
import { MinusCircleOutlined, PlusOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, FileUnknownOutlined, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, UploadOutlined as UploadOutlined$1, InfoCircleOutlined as InfoCircleOutlined$1, ReloadOutlined as ReloadOutlined$1 } from '@ant-design/icons';
|
79
79
|
import classnames from 'classnames';
|
80
80
|
import RTFEditor from '@crystaldesign/rtf-editor';
|
81
81
|
import debounce from 'lodash/debounce';
|
@@ -111,9 +111,6 @@ import { sort as sort$1 } from 'fast-sort';
|
|
111
111
|
import { v4 } from 'uuid';
|
112
112
|
import hash from 'object-hash';
|
113
113
|
import { AgGridReact } from 'ag-grid-react';
|
114
|
-
import 'ag-grid-community/styles/ag-grid.css';
|
115
|
-
import 'ag-grid-community/styles/ag-theme-alpine.css';
|
116
|
-
import 'ag-grid-enterprise';
|
117
114
|
import Collapsible from 'react-collapsible';
|
118
115
|
import QuestionOutlined from '@ant-design/icons/QuestionOutlined';
|
119
116
|
import { TransformWrapper, TransformComponent } from 'react-zoom-pan-pinch';
|
@@ -151,8 +148,8 @@ import PushpinOutlined from '@ant-design/icons/lib/icons/PushpinOutlined';
|
|
151
148
|
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
149
|
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
150
|
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
|
151
|
+
function ownKeys$$(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
152
|
+
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
156
153
|
var LOG$e = getLogger('Backoffice', 'ApplyMapping');
|
157
154
|
function applyMapping (_ref) {
|
158
155
|
var mappable = _ref.mappable,
|
@@ -173,10 +170,10 @@ function applyMapping (_ref) {
|
|
173
170
|
var newValue = {};
|
174
171
|
newValue[newKey] = valueToAdd;
|
175
172
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
176
|
-
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread
|
173
|
+
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$$(_objectSpread$$({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
177
174
|
return startValue;
|
178
175
|
}
|
179
|
-
if (newIdx == 1) return _objectSpread
|
176
|
+
if (newIdx == 1) return _objectSpread$$(_objectSpread$$({}, startValue), newValue);
|
180
177
|
return _getTarget(idx + 1, keys, startValue, newValue);
|
181
178
|
};
|
182
179
|
returnValue = _getTarget(0, key.split('.'), returnValue, value);
|
@@ -479,8 +476,8 @@ function getLeafColumns(columns) {
|
|
479
476
|
});
|
480
477
|
}
|
481
478
|
|
482
|
-
function ownKeys$
|
483
|
-
function _objectSpread$
|
479
|
+
function ownKeys$_(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
480
|
+
function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$_(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$_(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
484
481
|
var LOG$d = getLogger('Backoffice', 'ApiHandler');
|
485
482
|
var jp = require('jsonpath');
|
486
483
|
var _default$d = /*#__PURE__*/function () {
|
@@ -659,7 +656,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
659
656
|
_context2.next = 20;
|
660
657
|
return fetch(finalUrl, {
|
661
658
|
method: this._updateMethod,
|
662
|
-
headers: _objectSpread$
|
659
|
+
headers: _objectSpread$_(_objectSpread$_({}, jwt ? {
|
663
660
|
Authorization: 'Bearer ' + jwt
|
664
661
|
} : {}), {}, {
|
665
662
|
'Content-Type': 'application/json'
|
@@ -752,7 +749,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
752
749
|
rootStore: this._rootStore,
|
753
750
|
fallBackToParams: true
|
754
751
|
});
|
755
|
-
if (data) createData = _objectSpread$
|
752
|
+
if (data) createData = _objectSpread$_({}, data);
|
756
753
|
} else if (data !== undefined) {
|
757
754
|
createData = applyMapping({
|
758
755
|
mappable: data,
|
@@ -1014,7 +1011,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1014
1011
|
throw new Error('Read List endpoint is missing in configuration.');
|
1015
1012
|
case 2:
|
1016
1013
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
1017
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
1014
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$_(_objectSpread$_({}, filterServerSide), {}, {
|
1018
1015
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
1019
1016
|
baseUrl: this._readListUrl,
|
1020
1017
|
prefilter: prefilter
|
@@ -1034,7 +1031,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1034
1031
|
});
|
1035
1032
|
case 6:
|
1036
1033
|
response = _context8.sent;
|
1037
|
-
return _context8.abrupt("return", _objectSpread$
|
1034
|
+
return _context8.abrupt("return", _objectSpread$_(_objectSpread$_({}, response), {}, {
|
1038
1035
|
data: response.data.map(function (d) {
|
1039
1036
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
1040
1037
|
})
|
@@ -1058,7 +1055,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1058
1055
|
throw new Error('Read List endpoint is missing in configuration.');
|
1059
1056
|
}
|
1060
1057
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
1061
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
1058
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$_(_objectSpread$_({}, filterServerSide), {}, {
|
1062
1059
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
1063
1060
|
baseUrl: this._readListUrl,
|
1064
1061
|
prefilter: prefilter
|
@@ -1265,8 +1262,8 @@ var _default$c = /*#__PURE__*/function (_ApiHandler) {
|
|
1265
1262
|
}]);
|
1266
1263
|
}(_default$d);
|
1267
1264
|
|
1268
|
-
function ownKeys$
|
1269
|
-
function _objectSpread$
|
1265
|
+
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; }
|
1266
|
+
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; }
|
1270
1267
|
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
1268
|
function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() { return !!t; })(); }
|
1272
1269
|
var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
@@ -1365,7 +1362,7 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
1365
1362
|
_context2.next = 5;
|
1366
1363
|
return fetch(this._createUrl + '?ref=true', {
|
1367
1364
|
method: this._createMethod,
|
1368
|
-
headers: _objectSpread$
|
1365
|
+
headers: _objectSpread$Z({}, jwt ? {
|
1369
1366
|
Authorization: 'Bearer ' + jwt
|
1370
1367
|
} : {}),
|
1371
1368
|
body: data
|
@@ -1743,8 +1740,8 @@ var _default$8 = /*#__PURE__*/function (_ApiHandler) {
|
|
1743
1740
|
}]);
|
1744
1741
|
}(_default$d);
|
1745
1742
|
|
1746
|
-
function ownKeys$
|
1747
|
-
function _objectSpread$
|
1743
|
+
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; }
|
1744
|
+
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; }
|
1748
1745
|
var _default$7 = /*#__PURE__*/function () {
|
1749
1746
|
function _default(root) {
|
1750
1747
|
_classCallCheck(this, _default);
|
@@ -1780,7 +1777,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
1780
1777
|
var _i$permission;
|
1781
1778
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
1782
1779
|
});
|
1783
|
-
config = _objectSpread$
|
1780
|
+
config = _objectSpread$Y(_objectSpread$Y({}, config), {}, {
|
1784
1781
|
items: filteredItems
|
1785
1782
|
});
|
1786
1783
|
}
|
@@ -1837,7 +1834,7 @@ function runThroughObjectReqursive(obj, apiConfig) {
|
|
1837
1834
|
}
|
1838
1835
|
}
|
1839
1836
|
function loadConfiguration(t, root, config, lang, apiConfig) {
|
1840
|
-
var _organization$setting, _organization$setting2, _organization$setting3, _organization$setting4, _parentOrganizations, _parentOrganizations2, _parentOrganizations3, _parentOrganizations4, _parentOrganizations5, _parentOrganizations6, _parentOrganizations7, _parentOrganizations8, _parentOrganizations9, _parentOrganizations10, _parentOrganizations11, _parentOrganizations12, _parentOrganizations13, _parentOrganizations14, _parentOrganizations15, _parentOrganizations16
|
1837
|
+
var _organization$setting, _organization$setting2, _organization$setting3, _organization$setting4, _parentOrganizations, _parentOrganizations2, _parentOrganizations3, _parentOrganizations4, _parentOrganizations5, _parentOrganizations6, _parentOrganizations7, _parentOrganizations8, _parentOrganizations9, _parentOrganizations10, _parentOrganizations11, _parentOrganizations12, _parentOrganizations13, _parentOrganizations14, _parentOrganizations15, _parentOrganizations16;
|
1841
1838
|
var organization = toJS(root.dataStore.currentOrganization);
|
1842
1839
|
return {
|
1843
1840
|
TableApplicationLogs: {
|
@@ -2027,6 +2024,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
2027
2024
|
},
|
2028
2025
|
TableClientOEOverview: {
|
2029
2026
|
type: 'Table',
|
2027
|
+
canRefresh: true,
|
2030
2028
|
title: t('backoffice.table.roe.title'),
|
2031
2029
|
columns: [{
|
2032
2030
|
title: t('backoffice.table.roe.organizationId'),
|
@@ -2150,6 +2148,27 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
2150
2148
|
"default": 30,
|
2151
2149
|
onlyAsMappingData: true
|
2152
2150
|
}
|
2151
|
+
},
|
2152
|
+
downloadAction: {
|
2153
|
+
label: t('backoffice.table.roe.downloadAction.label'),
|
2154
|
+
actionType: 'Download',
|
2155
|
+
id: 'DownloadAction',
|
2156
|
+
icon: 'DownloadOutlined',
|
2157
|
+
download: [{
|
2158
|
+
type: 'request',
|
2159
|
+
request: '${mediaService}/renderjobs/overview/datafeed?from=${from}&to=${to}',
|
2160
|
+
mapping: {
|
2161
|
+
type: 'query',
|
2162
|
+
map: [{
|
2163
|
+
sourceField: 'from',
|
2164
|
+
targetField: 'from'
|
2165
|
+
}, {
|
2166
|
+
sourceField: 'to',
|
2167
|
+
targetField: 'to'
|
2168
|
+
}]
|
2169
|
+
},
|
2170
|
+
mediaType: 'file'
|
2171
|
+
}]
|
2153
2172
|
}
|
2154
2173
|
},
|
2155
2174
|
TableAllUsers: {
|
@@ -3230,7 +3249,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
3230
3249
|
},
|
3231
3250
|
apiInterface: {
|
3232
3251
|
read: {
|
3233
|
-
list: '${adminService}/taskStatus?filter=%5B%7BtaskType%2Cne%2CSAP_XML_IMPORT%7D%2C%7BtaskType%2Cne%2CSAP_DROPDOWNITEMS%7D%2C%7BtaskType%2Cne%2CSAP_TEMPLATEARTICLES%7D%2C%7BtaskType%2Cne%2CSAP_ARTICLE_IMPORT%7D%2C%7BtaskType%2Cne%2CSAP_SUPPLIERS%7D%2C%7BtaskType%2Cne%2CSAP_PRODUCTGROUPS%7D%2C%7BtaskType%2Cne%2CSAP_AUSP%7D%2C%7BtaskType%2Cne%2CPIM_SEND_CLASSIFICATION%7D%2C%7BtaskType%2Cne%2CSEND_SAP_ARTICLES%7D%2C%7BtaskType%2Cne%2CCRON%7D%2C%7BtaskType%2Cne%2CRETAIL_VERSIONING%7D%2C%7BtaskType%2Cne%2CSUPPLIER_VERSIONING%7D%2C%7BtaskType%2Cne%2CBACKOFFICE_CE_EXPORT%7D%2C%7BtaskType%2Cne%2CBACKOFFICE_CE_IMPORT%7D%2C%7BtaskType%2Cne%2CGET_PRODUCT_FEATURES_PIM%7D%5D',
|
3252
|
+
list: '${adminService}/taskStatus?filter=%5B%7BtaskType%2Cne%2CSAP_XML_IMPORT%7D%2C%7BtaskType%2Cne%2CSAP_DROPDOWNITEMS%7D%2C%7BtaskType%2Cne%2CSAP_TEMPLATEARTICLES%7D%2C%7BtaskType%2Cne%2CSAP_ARTICLE_IMPORT%7D%2C%7BtaskType%2Cne%2CSAP_SUPPLIERS%7D%2C%7BtaskType%2Cne%2CSAP_PRODUCTGROUPS%7D%2C%7BtaskType%2Cne%2CSAP_AUSP%7D%2C%7BtaskType%2Cne%2CPIM_SEND_CLASSIFICATION%7D%2C%7BtaskType%2Cne%2CSEND_SAP_ARTICLES%7D%2C%7BtaskType%2Cne%2CCRON%7D%2C%7BtaskType%2Cne%2CRETAIL_VERSIONING%7D%2C%7BtaskType%2Cne%2CSUPPLIER_VERSIONING%7D%2C%7BtaskType%2Cne%2CBACKOFFICE_CE_EXPORT%7D%2C%7BtaskType%2Cne%2CBACKOFFICE_CE_IMPORT%7D%2C%7BtaskType%2Cne%2CGET_PRODUCT_FEATURES_PIM%7D%2C%7BtaskType%2Cne%2CIDM_IMPORT%7D%2C%7BtaskType%2Cne%2CIDM_EXPORT%7D%5D',
|
3234
3253
|
fields: true,
|
3235
3254
|
filterServerSide: true
|
3236
3255
|
}
|
@@ -3990,7 +4009,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
3990
4009
|
}]
|
3991
4010
|
}
|
3992
4011
|
},
|
3993
|
-
|
4012
|
+
TableContentItems: {
|
3994
4013
|
title: t('backoffice.table.contentitems.title'),
|
3995
4014
|
type: 'Table',
|
3996
4015
|
canRefresh: true,
|
@@ -4066,6 +4085,12 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
4066
4085
|
sorter: 1,
|
4067
4086
|
filter: 'advanced',
|
4068
4087
|
width: 150
|
4088
|
+
}, {
|
4089
|
+
title: t('backoffice.table.contentitems.columns.codex'),
|
4090
|
+
field: 'codex',
|
4091
|
+
sorter: 1,
|
4092
|
+
filter: 'advanced',
|
4093
|
+
width: 150
|
4069
4094
|
}, {
|
4070
4095
|
title: t('backoffice._id'),
|
4071
4096
|
field: '_id',
|
@@ -4141,6 +4166,107 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
4141
4166
|
}]
|
4142
4167
|
}
|
4143
4168
|
},
|
4169
|
+
TableContentItemsGlobal: {
|
4170
|
+
title: t('backoffice.table.contentitemsglobal.title'),
|
4171
|
+
type: 'Table',
|
4172
|
+
canRefresh: true,
|
4173
|
+
pagination: {
|
4174
|
+
pageSize: 50
|
4175
|
+
},
|
4176
|
+
copyAction: {
|
4177
|
+
actionType: 'Detail',
|
4178
|
+
type: 'Form',
|
4179
|
+
id: 'FormEditContentItem',
|
4180
|
+
disableOnMultiselect: true,
|
4181
|
+
resetToggleAfter: true,
|
4182
|
+
title: t('backoffice.table.contentItem.copyAction.title'),
|
4183
|
+
label: t('backoffice.table.services.copyAction.label'),
|
4184
|
+
mapping: {
|
4185
|
+
type: 'body',
|
4186
|
+
map: [{
|
4187
|
+
targetField: 'content',
|
4188
|
+
sourceField: 'content'
|
4189
|
+
}, {
|
4190
|
+
targetField: 'catalogName',
|
4191
|
+
sourceField: 'catalogName'
|
4192
|
+
}, {
|
4193
|
+
targetField: 'supplierName',
|
4194
|
+
sourceField: 'supplierName'
|
4195
|
+
}, {
|
4196
|
+
targetField: 'description',
|
4197
|
+
sourceField: 'description'
|
4198
|
+
}]
|
4199
|
+
}
|
4200
|
+
},
|
4201
|
+
createAction: {
|
4202
|
+
actionType: 'Detail',
|
4203
|
+
type: 'JsonEditor',
|
4204
|
+
id: 'JsonEditorEditContentItem',
|
4205
|
+
title: t('backoffice.table.contentItem.label.create_global'),
|
4206
|
+
label: t('backoffice.table.contentItem.label.create_global'),
|
4207
|
+
permission: 'backoffice_create_contentitem_template'
|
4208
|
+
},
|
4209
|
+
columns: [{
|
4210
|
+
title: t('backoffice.table.roles.columns.description'),
|
4211
|
+
field: 'description',
|
4212
|
+
sorter: 1,
|
4213
|
+
filter: 'advanced',
|
4214
|
+
width: 500
|
4215
|
+
}, {
|
4216
|
+
title: t('backoffice.table.contentitems.columns.codex'),
|
4217
|
+
field: 'codex',
|
4218
|
+
sorter: 1,
|
4219
|
+
filter: 'advanced',
|
4220
|
+
width: 150
|
4221
|
+
}, {
|
4222
|
+
title: t('backoffice._id'),
|
4223
|
+
field: '_id',
|
4224
|
+
sorter: 1,
|
4225
|
+
filter: 'advanced',
|
4226
|
+
width: 100
|
4227
|
+
}, {
|
4228
|
+
title: t('backoffice.table.views.lastUpdated'),
|
4229
|
+
field: 'lastUpdated',
|
4230
|
+
defaultSortOrder: 'descend',
|
4231
|
+
type: 'unixTimeStamp',
|
4232
|
+
sorter: 1,
|
4233
|
+
filter: 'advanced',
|
4234
|
+
width: 200
|
4235
|
+
}, {
|
4236
|
+
title: t('backoffice.table.views.lastUpdatedBy'),
|
4237
|
+
field: 'lastUpdatedBy_displayText',
|
4238
|
+
sorter: 1,
|
4239
|
+
filter: 'advanced',
|
4240
|
+
width: 150
|
4241
|
+
}, {
|
4242
|
+
title: 'backoffice.content',
|
4243
|
+
field: 'content',
|
4244
|
+
hidden: true
|
4245
|
+
}],
|
4246
|
+
rowAction: [{
|
4247
|
+
actionType: 'Detail',
|
4248
|
+
disableOnMultiselect: true,
|
4249
|
+
type: 'Form',
|
4250
|
+
id: 'FormEditContentItem',
|
4251
|
+
title: t('backoffice.table.contentItem.edit'),
|
4252
|
+
label: t('backoffice.edit')
|
4253
|
+
}, {
|
4254
|
+
disableOnMultiselect: true,
|
4255
|
+
actionType: 'Detail',
|
4256
|
+
permission: 'backoffice_edit_contentitem_template',
|
4257
|
+
type: 'JsonEditor',
|
4258
|
+
label: t('backoffice.table.contentItem.editjson'),
|
4259
|
+
id: 'JsonEditorEditContentItem',
|
4260
|
+
title: t('backoffice.table.contentItem.edit')
|
4261
|
+
}],
|
4262
|
+
apiInterface: {
|
4263
|
+
read: {
|
4264
|
+
list: '${catalogService}/contentItems',
|
4265
|
+
filterServerSide: true
|
4266
|
+
},
|
4267
|
+
"delete": '${catalogService}/contentItems/${id}'
|
4268
|
+
}
|
4269
|
+
},
|
4144
4270
|
TableApplicationTranslations: {
|
4145
4271
|
title: t('backoffice.table.applicationtranslation.title'),
|
4146
4272
|
type: 'Table',
|
@@ -7138,11 +7264,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
7138
7264
|
JsonEditorCreateContentItem: {
|
7139
7265
|
type: 'JsonEditor',
|
7140
7266
|
apiInterface: {
|
7141
|
-
|
7142
|
-
url: '${catalogService}/contentItems',
|
7143
|
-
method: 'POST'
|
7144
|
-
},
|
7145
|
-
create: '${catalogService}/contentItems'
|
7267
|
+
create: '${catalogService}/contentItems?template=true'
|
7146
7268
|
}
|
7147
7269
|
},
|
7148
7270
|
JsonEditorEditContentItem: {
|
@@ -7792,6 +7914,27 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
7792
7914
|
{
|
7793
7915
|
name: ['defaultCatalog', 'catalogCodex'],
|
7794
7916
|
hidden: true
|
7917
|
+
}, {
|
7918
|
+
name: ['settings', 'sendOrders'],
|
7919
|
+
label: t('backoffice.form.organizationdetails.items.settings.sendOrders'),
|
7920
|
+
type: 'radio',
|
7921
|
+
optionType: 'button',
|
7922
|
+
options: [{
|
7923
|
+
label: t('backoffice.form.organizationdetails.items.vererbt'),
|
7924
|
+
value: undefined
|
7925
|
+
}, {
|
7926
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
7927
|
+
value: true
|
7928
|
+
}, {
|
7929
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
7930
|
+
value: false
|
7931
|
+
}],
|
7932
|
+
permission: 'backoffice_admin_organizations'
|
7933
|
+
}, {
|
7934
|
+
name: ['settings', 'sendOrdersEmail'],
|
7935
|
+
label: t('backoffice.form.organizationdetails.items.settings.sendOrdersEmail'),
|
7936
|
+
type: 'input',
|
7937
|
+
permission: 'backoffice_admin_organizations'
|
7795
7938
|
}, {
|
7796
7939
|
name: 'iwofurn',
|
7797
7940
|
label: t('backoffice.form.organizationdetails.items.iwofurn'),
|
@@ -7914,7 +8057,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
7914
8057
|
label: t('backoffice.form.organizationdetails.items.nein'),
|
7915
8058
|
value: false
|
7916
8059
|
}],
|
7917
|
-
permission: '
|
8060
|
+
permission: 'backoffice_admin_organizations'
|
7918
8061
|
}, {
|
7919
8062
|
name: ['settings', 'renderjobSeparateMaterials'],
|
7920
8063
|
label: t('backoffice.form.organizationdetails.items.settings.renderjobSeparateMaterials'),
|
@@ -8483,9 +8626,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
8483
8626
|
}],
|
8484
8627
|
itemsByData: function itemsByData(data, apiConfig) {
|
8485
8628
|
var result = [{
|
8629
|
+
name: 'codex',
|
8630
|
+
type: 'input',
|
8631
|
+
label: t('backoffice.table.contentitems.columns.codex')
|
8632
|
+
}, {
|
8486
8633
|
name: 'description',
|
8487
8634
|
type: 'input',
|
8488
|
-
label: t('description')
|
8635
|
+
label: t('backoffice.table.roles.columns.description')
|
8489
8636
|
}, {
|
8490
8637
|
name: 'supplierName',
|
8491
8638
|
type: 'input',
|
@@ -8763,9 +8910,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
8763
8910
|
items: [],
|
8764
8911
|
itemsByData: function itemsByData(data, apiConfig) {
|
8765
8912
|
var result = [{
|
8913
|
+
name: 'codex',
|
8914
|
+
type: 'input',
|
8915
|
+
label: t('backoffice.table.contentitems.columns.codex')
|
8916
|
+
}, {
|
8766
8917
|
name: 'description',
|
8767
8918
|
type: 'input',
|
8768
|
-
label: t('description')
|
8919
|
+
label: t('backoffice.table.roles.columns.description')
|
8769
8920
|
}, {
|
8770
8921
|
name: 'supplierName',
|
8771
8922
|
type: 'input',
|
@@ -11145,9 +11296,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11145
11296
|
mode: 'single',
|
11146
11297
|
label: t('backoffice.form.createclientrelation.externalCloudSource'),
|
11147
11298
|
name: 'externalCloudSource',
|
11148
|
-
disabled: function disabled(d) {
|
11149
|
-
return d && (d.externalCloudTarget && d.externalCloudTarget._id !== 'LOCAL' || !!(d !== null && d !== void 0 && d.organizationSource));
|
11150
|
-
},
|
11151
11299
|
required: true,
|
11152
11300
|
selectMapping: {
|
11153
11301
|
label: '${name}',
|
@@ -11195,25 +11343,15 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11195
11343
|
field: '_id',
|
11196
11344
|
filter: 'eq'
|
11197
11345
|
}],
|
11198
|
-
prefilter: '+[{type,eq,ASSOCIATION},{type,eq,RETAILER}]',
|
11199
11346
|
prefilterMapping: {
|
11200
11347
|
map: [{
|
11201
11348
|
sourceField: 'externalCloudSource._id',
|
11202
11349
|
targetField: 'cloudId'
|
11203
11350
|
}],
|
11204
11351
|
type: 'query'
|
11205
|
-
}
|
11352
|
+
},
|
11353
|
+
prefilter: '+[{type,eq,ASSOCIATION},{type,eq,RETAILER}]'
|
11206
11354
|
},
|
11207
|
-
defaultValue: [organization].concat(_toConsumableArray((_parentOrganizations14 = organization.parentOrganizations) !== null && _parentOrganizations14 !== void 0 ? _parentOrganizations14 : [])).find(function (o) {
|
11208
|
-
return o.type === 'ASSOCIATION';
|
11209
|
-
}) ? {
|
11210
|
-
_id: [organization].concat(_toConsumableArray((_parentOrganizations15 = organization.parentOrganizations) !== null && _parentOrganizations15 !== void 0 ? _parentOrganizations15 : [])).find(function (o) {
|
11211
|
-
return o.type === 'ASSOCIATION';
|
11212
|
-
})._id,
|
11213
|
-
label: [organization].concat(_toConsumableArray((_parentOrganizations16 = organization.parentOrganizations) !== null && _parentOrganizations16 !== void 0 ? _parentOrganizations16 : [])).find(function (o) {
|
11214
|
-
return o.type === 'ASSOCIATION';
|
11215
|
-
}).displayName
|
11216
|
-
} : undefined,
|
11217
11355
|
apiInterface: {
|
11218
11356
|
read: {
|
11219
11357
|
list: '${authService}/externalclouds/${cloudId}/organizations',
|
@@ -11288,13 +11426,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11288
11426
|
filterServerSide: true
|
11289
11427
|
}
|
11290
11428
|
},
|
11291
|
-
defaultValue: [organization].concat(_toConsumableArray((
|
11429
|
+
defaultValue: [organization].concat(_toConsumableArray((_parentOrganizations14 = organization.parentOrganizations) !== null && _parentOrganizations14 !== void 0 ? _parentOrganizations14 : [])).find(function (o) {
|
11292
11430
|
return ['RETAILER', 'ASSOCIATION'].includes(o.type);
|
11293
11431
|
}) ? {
|
11294
|
-
_id: [organization].concat(_toConsumableArray((
|
11432
|
+
_id: [organization].concat(_toConsumableArray((_parentOrganizations15 = organization.parentOrganizations) !== null && _parentOrganizations15 !== void 0 ? _parentOrganizations15 : [])).find(function (o) {
|
11295
11433
|
return ['RETAILER', 'ASSOCIATION'].includes(o.type);
|
11296
11434
|
})._id,
|
11297
|
-
label: [organization].concat(_toConsumableArray((
|
11435
|
+
label: [organization].concat(_toConsumableArray((_parentOrganizations16 = organization.parentOrganizations) !== null && _parentOrganizations16 !== void 0 ? _parentOrganizations16 : [])).find(function (o) {
|
11298
11436
|
return ['RETAILER', 'ASSOCIATION'].includes(o.type);
|
11299
11437
|
}).displayName
|
11300
11438
|
} : undefined,
|
@@ -11306,12 +11444,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11306
11444
|
required: false,
|
11307
11445
|
defaultValue: true
|
11308
11446
|
}, {
|
11309
|
-
label: '
|
11447
|
+
label: 'IDM/Enricher',
|
11310
11448
|
name: 'idmenricher',
|
11311
11449
|
type: 'checkbox',
|
11312
11450
|
required: false,
|
11313
11451
|
defaultValue: true,
|
11314
|
-
|
11452
|
+
readonly: true
|
11453
|
+
// hidden: true,
|
11315
11454
|
}]]
|
11316
11455
|
},
|
11317
11456
|
FormPartlistArticlePrefix: {
|
@@ -11612,6 +11751,17 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11612
11751
|
type: 'MediaUpload'
|
11613
11752
|
}]
|
11614
11753
|
},
|
11754
|
+
GroupContentItems: {
|
11755
|
+
type: 'Group',
|
11756
|
+
items: [{
|
11757
|
+
id: 'TableContentItems',
|
11758
|
+
type: 'Table'
|
11759
|
+
}, {
|
11760
|
+
id: 'TableContentItemsGlobal',
|
11761
|
+
type: 'Table',
|
11762
|
+
permission: 'backoffice_contentitems_global'
|
11763
|
+
}]
|
11764
|
+
},
|
11615
11765
|
SelectorPermissionRole: {
|
11616
11766
|
type: 'RelationSelector',
|
11617
11767
|
searchApiInterface: {
|
@@ -13130,8 +13280,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
13130
13280
|
var navOverlay = "nav-overlay-rKJNC";
|
13131
13281
|
var navSettings = "nav-settings-82cjv";
|
13132
13282
|
var menuLabel = "menu-label-4dXQk";
|
13133
|
-
var css_248z$
|
13134
|
-
styleInject(css_248z$
|
13283
|
+
var css_248z$x = ".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";
|
13284
|
+
styleInject(css_248z$x);
|
13135
13285
|
|
13136
13286
|
function MenuLabel (_ref) {
|
13137
13287
|
var disabled = _ref.disabled,
|
@@ -13348,14 +13498,23 @@ function getIcon(icon) {
|
|
13348
13498
|
}
|
13349
13499
|
|
13350
13500
|
var DEFAULT_WIDTH = 500;
|
13501
|
+
|
13502
|
+
/**
|
13503
|
+
* Store for managing the toolbar state and tools in the application.
|
13504
|
+
* Handles tool selection, visibility, loading states, and toolbar dimensions.
|
13505
|
+
*/
|
13351
13506
|
var ToolBarStore = /*#__PURE__*/function () {
|
13507
|
+
/**
|
13508
|
+
* Creates a new ToolBarStore instance.
|
13509
|
+
* @param defaultLanguage - The default language to use for tools
|
13510
|
+
*/
|
13352
13511
|
function ToolBarStore(defaultLanguage) {
|
13353
13512
|
_classCallCheck(this, ToolBarStore);
|
13354
13513
|
this.defaultLanguage = defaultLanguage;
|
13355
13514
|
_defineProperty(this, "_tools", []);
|
13356
13515
|
_defineProperty(this, "_hidden", true);
|
13357
13516
|
_defineProperty(this, "_pinned", false);
|
13358
|
-
_defineProperty(this, "
|
13517
|
+
_defineProperty(this, "_selectedToolId", void 0);
|
13359
13518
|
_defineProperty(this, "_loadingTools", new Map());
|
13360
13519
|
_defineProperty(this, "_currentLanguage", void 0);
|
13361
13520
|
_defineProperty(this, "_width", 0);
|
@@ -13365,31 +13524,95 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13365
13524
|
_toolbarElement: observable.ref
|
13366
13525
|
});
|
13367
13526
|
}
|
13527
|
+
|
13528
|
+
/**
|
13529
|
+
* The list of available tools in the toolbar
|
13530
|
+
*/
|
13368
13531
|
return _createClass(ToolBarStore, [{
|
13369
13532
|
key: "tools",
|
13370
13533
|
get: function get() {
|
13371
13534
|
return this._tools;
|
13372
13535
|
},
|
13373
13536
|
set: function set(tools) {
|
13374
|
-
var _this = this,
|
13375
|
-
_tools$,
|
13376
|
-
_tools$0$defaultPinne,
|
13377
|
-
_tools$2,
|
13378
|
-
_tools$3,
|
13379
|
-
_tools$0$startWidth,
|
13380
|
-
_tools$4;
|
13381
13537
|
this._tools = tools;
|
13382
|
-
|
13383
|
-
|
13384
|
-
|
13385
|
-
|
13538
|
+
this.updateToolState();
|
13539
|
+
}
|
13540
|
+
|
13541
|
+
/**
|
13542
|
+
* Adds or updates tools in the toolbar.
|
13543
|
+
*
|
13544
|
+
* If a tool with the same id already exists, it will be updated.
|
13545
|
+
* @param {...Tool} tools - Variable number of Tool objects to add
|
13546
|
+
*/
|
13547
|
+
}, {
|
13548
|
+
key: "addTools",
|
13549
|
+
value: function addTools() {
|
13550
|
+
var _this = this;
|
13551
|
+
for (var _len = arguments.length, tools = new Array(_len), _key = 0; _key < _len; _key++) {
|
13552
|
+
tools[_key] = arguments[_key];
|
13553
|
+
}
|
13554
|
+
tools.forEach(function (tool) {
|
13555
|
+
var index = _this._tools.findIndex(function (t) {
|
13556
|
+
return t.id === tool.id;
|
13557
|
+
});
|
13558
|
+
if (index === -1) {
|
13559
|
+
_this._tools.push(tool);
|
13560
|
+
} else {
|
13561
|
+
_this._tools[index] = tool;
|
13562
|
+
}
|
13563
|
+
});
|
13564
|
+
this.updateToolState();
|
13565
|
+
}
|
13566
|
+
|
13567
|
+
/**
|
13568
|
+
* Removes tools from the toolbar by their IDs.
|
13569
|
+
* @param {...string} toolIds - Variable number of tool IDs to remove
|
13570
|
+
*/
|
13571
|
+
}, {
|
13572
|
+
key: "removeTools",
|
13573
|
+
value: function removeTools() {
|
13574
|
+
for (var _len2 = arguments.length, toolIds = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
13575
|
+
toolIds[_key2] = arguments[_key2];
|
13576
|
+
}
|
13577
|
+
this._tools = this._tools.filter(function (t) {
|
13578
|
+
return !toolIds.includes(t.id);
|
13579
|
+
});
|
13580
|
+
this.updateToolState();
|
13581
|
+
}
|
13582
|
+
|
13583
|
+
/**
|
13584
|
+
* Updates the internal tool state based on available tools.
|
13585
|
+
* Sets default values for selected tool, pinned state, visibility and width.
|
13586
|
+
*/
|
13587
|
+
}, {
|
13588
|
+
key: "updateToolState",
|
13589
|
+
value: function updateToolState() {
|
13590
|
+
var _this2 = this,
|
13591
|
+
_this$_tools$,
|
13592
|
+
_this$_tools$0$defaul,
|
13593
|
+
_this$_tools$2,
|
13594
|
+
_this$_tools$3,
|
13595
|
+
_this$_tools$0$startW,
|
13596
|
+
_this$_tools$4;
|
13597
|
+
if (this._tools.length === 0) return;
|
13598
|
+
var newToolState = this._tools.find(function (t) {
|
13599
|
+
return t.id === _this2._selectedToolId;
|
13600
|
+
});
|
13601
|
+
if (newToolState || this._tools.length === 0) {
|
13602
|
+
//if current tool is in the new list or the list is empty, don't change the current state
|
13386
13603
|
return;
|
13387
13604
|
}
|
13388
|
-
this.
|
13389
|
-
this._pinned = (_tools$0$
|
13390
|
-
this._hidden = ((_tools$3 =
|
13391
|
-
this._width = (_tools$0$
|
13605
|
+
this._selectedToolId = (_this$_tools$ = this._tools[0]) === null || _this$_tools$ === void 0 ? void 0 : _this$_tools$.id;
|
13606
|
+
this._pinned = (_this$_tools$0$defaul = (_this$_tools$2 = this._tools[0]) === null || _this$_tools$2 === void 0 ? void 0 : _this$_tools$2.defaultPinned) !== null && _this$_tools$0$defaul !== void 0 ? _this$_tools$0$defaul : this._pinned;
|
13607
|
+
this._hidden = ((_this$_tools$3 = this._tools[0]) === null || _this$_tools$3 === void 0 ? void 0 : _this$_tools$3.defaultOpen) !== undefined ? !this._tools[0].defaultOpen : this._hidden;
|
13608
|
+
this._width = (_this$_tools$0$startW = (_this$_tools$4 = this._tools[0]) === null || _this$_tools$4 === void 0 ? void 0 : _this$_tools$4.startWidth) !== null && _this$_tools$0$startW !== void 0 ? _this$_tools$0$startW : this._width;
|
13392
13609
|
}
|
13610
|
+
|
13611
|
+
/**
|
13612
|
+
* Controls the visibility state of the toolbar
|
13613
|
+
*
|
13614
|
+
* If toolbar becomes visible and no width is set, sets also default width.
|
13615
|
+
*/
|
13393
13616
|
}, {
|
13394
13617
|
key: "hidden",
|
13395
13618
|
get: function get() {
|
@@ -13402,6 +13625,10 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13402
13625
|
this._width = (_this$currentOpenTool = (_this$currentOpenTool2 = this.currentOpenTool) === null || _this$currentOpenTool2 === void 0 ? void 0 : _this$currentOpenTool2.startWidth) !== null && _this$currentOpenTool !== void 0 ? _this$currentOpenTool : DEFAULT_WIDTH;
|
13403
13626
|
}
|
13404
13627
|
}
|
13628
|
+
|
13629
|
+
/**
|
13630
|
+
* Controls whether the toolbar is pinned in place
|
13631
|
+
*/
|
13405
13632
|
}, {
|
13406
13633
|
key: "pinned",
|
13407
13634
|
get: function get() {
|
@@ -13410,6 +13637,10 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13410
13637
|
set: function set(pinned) {
|
13411
13638
|
this._pinned = pinned;
|
13412
13639
|
}
|
13640
|
+
|
13641
|
+
/**
|
13642
|
+
* The current language setting for tools
|
13643
|
+
*/
|
13413
13644
|
}, {
|
13414
13645
|
key: "currentLanguage",
|
13415
13646
|
get: function get() {
|
@@ -13418,14 +13649,24 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13418
13649
|
set: function set(language) {
|
13419
13650
|
this._currentLanguage = language;
|
13420
13651
|
}
|
13652
|
+
|
13653
|
+
/**
|
13654
|
+
* The currently selected and open tool
|
13655
|
+
*/
|
13421
13656
|
}, {
|
13422
13657
|
key: "currentOpenTool",
|
13423
13658
|
get: function get() {
|
13424
|
-
var
|
13659
|
+
var _this3 = this;
|
13425
13660
|
return this._tools.find(function (t) {
|
13426
|
-
return t.id ===
|
13661
|
+
return t.id === _this3._selectedToolId;
|
13427
13662
|
});
|
13428
13663
|
}
|
13664
|
+
|
13665
|
+
/**
|
13666
|
+
* Controls the current width of the toolbar in pixels
|
13667
|
+
*
|
13668
|
+
* If toolbar is hidden, it is always 0.
|
13669
|
+
*/
|
13429
13670
|
}, {
|
13430
13671
|
key: "width",
|
13431
13672
|
get: function get() {
|
@@ -13441,6 +13682,10 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13441
13682
|
this._hidden = true;
|
13442
13683
|
}
|
13443
13684
|
}
|
13685
|
+
|
13686
|
+
/**
|
13687
|
+
* Controls the DOM element representing the toolbar
|
13688
|
+
*/
|
13444
13689
|
}, {
|
13445
13690
|
key: "toolbarElement",
|
13446
13691
|
get: function get() {
|
@@ -13449,9 +13694,19 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13449
13694
|
set: function set(element) {
|
13450
13695
|
this._toolbarElement = element;
|
13451
13696
|
}
|
13697
|
+
|
13698
|
+
/**
|
13699
|
+
* Selects a tool by its ID.
|
13700
|
+
* Updates toolbar state based on tool's default settings.
|
13701
|
+
* @param {string|undefined} toolId - ID of the tool to select, or undefined to deselect
|
13702
|
+
*/
|
13452
13703
|
}, {
|
13453
|
-
key: "
|
13454
|
-
value: function
|
13704
|
+
key: "selectTool",
|
13705
|
+
value: function selectTool(toolId) {
|
13706
|
+
// If the tool is already open, do nothing
|
13707
|
+
if (toolId === this._selectedToolId) {
|
13708
|
+
return;
|
13709
|
+
}
|
13455
13710
|
// Only allow opening enabled tools
|
13456
13711
|
var tool = this._tools.find(function (t) {
|
13457
13712
|
return t.id === toolId;
|
@@ -13459,19 +13714,34 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13459
13714
|
if (tool !== null && tool !== void 0 && tool.disabled) {
|
13460
13715
|
return;
|
13461
13716
|
}
|
13462
|
-
this.
|
13717
|
+
this._selectedToolId = toolId;
|
13463
13718
|
this._currentLanguage = this.defaultLanguage;
|
13464
13719
|
if (tool) {
|
13465
|
-
var _tool$startWidth;
|
13720
|
+
var _tool$startWidth, _tool$defaultPinned;
|
13466
13721
|
this._width = Math.max((_tool$startWidth = tool.startWidth) !== null && _tool$startWidth !== void 0 ? _tool$startWidth : DEFAULT_WIDTH, this._width);
|
13722
|
+
this._hidden = tool.defaultOpen !== undefined ? !tool.defaultOpen : this._hidden;
|
13723
|
+
this._pinned = (_tool$defaultPinned = tool.defaultPinned) !== null && _tool$defaultPinned !== void 0 ? _tool$defaultPinned : this._pinned;
|
13467
13724
|
}
|
13468
13725
|
}
|
13726
|
+
|
13727
|
+
/**
|
13728
|
+
* Checks if a tool is currently in a loading state.
|
13729
|
+
* @param {string} toolId - ID of the tool to check
|
13730
|
+
* @returns {boolean} True if tool is loading, false otherwise
|
13731
|
+
*/
|
13469
13732
|
}, {
|
13470
13733
|
key: "isLoading",
|
13471
13734
|
value: function isLoading(toolId) {
|
13472
13735
|
var loading = this._loadingTools.get(toolId);
|
13473
13736
|
return loading !== undefined && loading.length > 0;
|
13474
13737
|
}
|
13738
|
+
|
13739
|
+
/**
|
13740
|
+
* Toggles or sets the loading state for a tool or its sub-components.
|
13741
|
+
* @param {string} toolId - ID of the tool to update
|
13742
|
+
* @param {string} [subId] - Optional ID of sub-component to update
|
13743
|
+
* @param {boolean} [toggle] - Optional boolean to explicitly set loading state
|
13744
|
+
*/
|
13475
13745
|
}, {
|
13476
13746
|
key: "toggleLoading",
|
13477
13747
|
value: function toggleLoading(toolId, subId, toggle) {
|
@@ -13530,8 +13800,8 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13530
13800
|
}]);
|
13531
13801
|
}();
|
13532
13802
|
|
13533
|
-
function ownKeys$
|
13534
|
-
function _objectSpread$
|
13803
|
+
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; }
|
13804
|
+
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; }
|
13535
13805
|
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; } } }; }
|
13536
13806
|
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; } }
|
13537
13807
|
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; }
|
@@ -13642,7 +13912,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13642
13912
|
if (index >= 0) {
|
13643
13913
|
this._additionalMenuElements[index] = {
|
13644
13914
|
key: key,
|
13645
|
-
element: _objectSpread$
|
13915
|
+
element: _objectSpread$X(_objectSpread$X({}, this._additionalMenuElements[index].element), {}, {
|
13646
13916
|
items: items,
|
13647
13917
|
selected: selected
|
13648
13918
|
})
|
@@ -13693,7 +13963,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13693
13963
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
13694
13964
|
this.root.navigate('/' + path);
|
13695
13965
|
}
|
13696
|
-
this._menuElement1 = _objectSpread$
|
13966
|
+
this._menuElement1 = _objectSpread$X(_objectSpread$X({}, this.menuElement1), {}, {
|
13697
13967
|
selected: this._selectedMenuKeys[0]
|
13698
13968
|
});
|
13699
13969
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
@@ -13949,7 +14219,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13949
14219
|
return items.filter(function (item) {
|
13950
14220
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
13951
14221
|
}).map(function (item) {
|
13952
|
-
return _objectSpread$
|
14222
|
+
return _objectSpread$X(_objectSpread$X({}, item), {}, {
|
13953
14223
|
items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
|
13954
14224
|
subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
13955
14225
|
});
|
@@ -14040,7 +14310,7 @@ var menu = [{
|
|
14040
14310
|
disabledLabel: 'backoffice.menu.item.label.disabled.retailer'
|
14041
14311
|
}]
|
14042
14312
|
}, {
|
14043
|
-
id: '
|
14313
|
+
id: 'GroupContentItems',
|
14044
14314
|
path: 'contentitems',
|
14045
14315
|
label: 'backoffice.menu.items.label.ContentItems',
|
14046
14316
|
icon: 'OrderedListOutlined'
|
@@ -14909,7 +15179,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
14909
15179
|
value: function () {
|
14910
15180
|
var _downloadRequest = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(download, data) {
|
14911
15181
|
var _this$_rootStore2;
|
14912
|
-
var url, result, base64File, a, mimeType, res;
|
15182
|
+
var url, result, contentType, contentDisposition, fileName, fileNameMatch, blob, base64File, a, mimeType, res;
|
14913
15183
|
return _regeneratorRuntime.wrap(function _callee5$(_context6) {
|
14914
15184
|
while (1) switch (_context6.prev = _context6.next) {
|
14915
15185
|
case 0:
|
@@ -14925,33 +15195,56 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
14925
15195
|
method: 'GET',
|
14926
15196
|
headers: {
|
14927
15197
|
authorization: "Bearer ".concat((_this$_rootStore2 = this._rootStore) === null || _this$_rootStore2 === void 0 ? void 0 : _this$_rootStore2.dataStore.jwt),
|
14928
|
-
'content-type': 'application/json'
|
15198
|
+
'content-type': 'application/json',
|
15199
|
+
Accept: 'application/json, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, */*'
|
14929
15200
|
}
|
14930
15201
|
});
|
14931
15202
|
case 3:
|
14932
15203
|
result = _context6.sent;
|
15204
|
+
contentType = result.headers.get('Content-Type');
|
15205
|
+
contentDisposition = result.headers.get('Content-Disposition');
|
15206
|
+
fileName = 'download'; // Extract filename from Content-Disposition header if available
|
15207
|
+
if (contentDisposition) {
|
15208
|
+
fileNameMatch = contentDisposition.match(/filename="?([^"]+)"?/i);
|
15209
|
+
if (fileNameMatch && fileNameMatch[1]) {
|
15210
|
+
fileName = fileNameMatch[1];
|
15211
|
+
}
|
15212
|
+
}
|
14933
15213
|
_context6.t0 = download.mediaType;
|
14934
|
-
_context6.next = _context6.t0 === 'file' ?
|
15214
|
+
_context6.next = _context6.t0 === 'file' ? 11 : _context6.t0 === 'json' ? 27 : 32;
|
14935
15215
|
break;
|
14936
|
-
case
|
14937
|
-
|
15216
|
+
case 11:
|
15217
|
+
if (!(contentType === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' || contentType === 'application/vnd.ms-excel')) {
|
15218
|
+
_context6.next = 18;
|
15219
|
+
break;
|
15220
|
+
}
|
15221
|
+
_context6.next = 14;
|
15222
|
+
return result.blob();
|
15223
|
+
case 14:
|
15224
|
+
blob = _context6.sent;
|
15225
|
+
DownloadStore.downloadBlob(blob, fileName);
|
15226
|
+
_context6.next = 26;
|
15227
|
+
break;
|
15228
|
+
case 18:
|
15229
|
+
_context6.next = 20;
|
14938
15230
|
return result.json();
|
14939
|
-
case
|
15231
|
+
case 20:
|
14940
15232
|
base64File = _context6.sent;
|
14941
15233
|
a = document.createElement('a'); //Create <a>
|
14942
15234
|
mimeType = (data === null || data === void 0 ? void 0 : data['fileFormat']) == 'glb' ? 'model/gltf-binary' : (data === null || data === void 0 ? void 0 : data['fileFormat']) == 'jpg' ? 'image/jpeg' : 'image/png';
|
14943
15235
|
a.href = 'data:' + mimeType + ';base64,' + base64File; //Image Base64 Goes here
|
14944
15236
|
a.download = (data === null || data === void 0 ? void 0 : data['fileName']) + '.' + (data === null || data === void 0 ? void 0 : data['fileFormat']); //File name Here
|
14945
15237
|
a.click();
|
14946
|
-
|
14947
|
-
|
14948
|
-
|
15238
|
+
case 26:
|
15239
|
+
return _context6.abrupt("break", 32);
|
15240
|
+
case 27:
|
15241
|
+
_context6.next = 29;
|
14949
15242
|
return result.json();
|
14950
|
-
case
|
15243
|
+
case 29:
|
14951
15244
|
res = _context6.sent;
|
14952
15245
|
DownloadStore.downloadText('hqRenderScript_' + (data === null || data === void 0 ? void 0 : data['fileName']) + '.json', JSON.stringify(res), 'application/json');
|
14953
|
-
return _context6.abrupt("break",
|
14954
|
-
case
|
15246
|
+
return _context6.abrupt("break", 32);
|
15247
|
+
case 32:
|
14955
15248
|
case "end":
|
14956
15249
|
return _context6.stop();
|
14957
15250
|
}
|
@@ -15099,8 +15392,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
15099
15392
|
return _createClass(_default);
|
15100
15393
|
}(_default$d);
|
15101
15394
|
|
15102
|
-
function ownKeys$
|
15103
|
-
function _objectSpread$
|
15395
|
+
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; }
|
15396
|
+
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; }
|
15104
15397
|
/**
|
15105
15398
|
* ContextStore is a store that manages the contexts of the application.
|
15106
15399
|
*/
|
@@ -15133,7 +15426,7 @@ var ContextStore = /*#__PURE__*/function () {
|
|
15133
15426
|
key: "updateContext",
|
15134
15427
|
value: function updateContext(contextId, updates) {
|
15135
15428
|
var currentState = this.contexts.get(contextId) || {};
|
15136
|
-
this.contexts.set(contextId, _objectSpread$
|
15429
|
+
this.contexts.set(contextId, _objectSpread$W(_objectSpread$W({}, currentState), updates));
|
15137
15430
|
}
|
15138
15431
|
|
15139
15432
|
// Clear a context
|
@@ -15763,8 +16056,8 @@ var MediaItem = /*#__PURE__*/function () {
|
|
15763
16056
|
}]);
|
15764
16057
|
}();
|
15765
16058
|
|
15766
|
-
function ownKeys$
|
15767
|
-
function _objectSpread$
|
16059
|
+
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; }
|
16060
|
+
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; }
|
15768
16061
|
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; } } }; }
|
15769
16062
|
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; } }
|
15770
16063
|
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; }
|
@@ -15825,8 +16118,20 @@ function useFormData (_ref) {
|
|
15825
16118
|
useEffect(function () {
|
15826
16119
|
if (configuration.disableSave) setCanSave === null || setCanSave === void 0 || setCanSave(false);
|
15827
16120
|
}, [configuration]);
|
16121
|
+
var selectedItemsInitValues;
|
16122
|
+
if (!Array.isArray(configuration.items[0])) {
|
16123
|
+
selectedItemsInitValues = configuration.items;
|
16124
|
+
} else if (configuration.itemSelector && configuration.itemSelectorDefautIndex !== undefined) {
|
16125
|
+
selectedItemsInitValues = filterItems(configuration.items[configuration.itemSelectorDefautIndex], userHasPermission);
|
16126
|
+
} else {
|
16127
|
+
selectedItemsInitValues = configuration.items[0];
|
16128
|
+
}
|
16129
|
+
var _useState13 = useState(filterItems(selectedItemsInitValues, userHasPermission)),
|
16130
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
16131
|
+
selectedItems = _useState14[0],
|
16132
|
+
setSelectedItems = _useState14[1];
|
15828
16133
|
var _onLoadFields = function onLoadFields(data) {
|
15829
|
-
var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
16134
|
+
var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : selectedItems;
|
15830
16135
|
var _iterator = _createForOfIteratorHelper$j(items),
|
15831
16136
|
_step;
|
15832
16137
|
try {
|
@@ -15886,13 +16191,13 @@ function useFormData (_ref) {
|
|
15886
16191
|
multipleEditingData = inboundData;
|
15887
16192
|
}
|
15888
16193
|
return {
|
15889
|
-
loadedData: _onLoadFields(_objectSpread$
|
16194
|
+
loadedData: _onLoadFields(_objectSpread$V({}, dt)),
|
15890
16195
|
multipleEditingData: multipleEditingData
|
15891
16196
|
};
|
15892
16197
|
}, [inboundData, selectedItemsIndex]),
|
15893
16198
|
loadedData = _useMemo2.loadedData,
|
15894
16199
|
multipleEditingData = _useMemo2.multipleEditingData;
|
15895
|
-
var
|
16200
|
+
var _useState15 = useState({
|
15896
16201
|
loading: false,
|
15897
16202
|
data: loadedData,
|
15898
16203
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
@@ -15900,19 +16205,9 @@ function useFormData (_ref) {
|
|
15900
16205
|
update: !!((_loadedData$_id = loadedData === null || loadedData === void 0 ? void 0 : loadedData._id) !== null && _loadedData$_id !== void 0 ? _loadedData$_id : loadedData === null || loadedData === void 0 ? void 0 : loadedData.ID),
|
15901
16206
|
form: form
|
15902
16207
|
}),
|
15903
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
15904
|
-
state = _useState14[0],
|
15905
|
-
setState = _useState14[1];
|
15906
|
-
var selectedItemsInitValues = undefined;
|
15907
|
-
if (!Array.isArray(configuration.items[0])) {
|
15908
|
-
selectedItemsInitValues = configuration.items;
|
15909
|
-
} else if (configuration.itemSelector && configuration.itemSelectorDefautIndex !== undefined) {
|
15910
|
-
selectedItemsInitValues = filterItems(configuration.items[configuration.itemSelectorDefautIndex], userHasPermission);
|
15911
|
-
}
|
15912
|
-
var _useState15 = useState(selectedItemsInitValues ? filterItems(selectedItemsInitValues, userHasPermission) : undefined),
|
15913
16208
|
_useState16 = _slicedToArray(_useState15, 2),
|
15914
|
-
|
15915
|
-
|
16209
|
+
state = _useState16[0],
|
16210
|
+
setState = _useState16[1];
|
15916
16211
|
var _useState17 = useState(getHiddenRequredDisabled(loadedData, selectedItems !== null && selectedItems !== void 0 ? selectedItems : [])),
|
15917
16212
|
_useState18 = _slicedToArray(_useState17, 2),
|
15918
16213
|
hiddenRequiredDisabled = _useState18[0],
|
@@ -15923,7 +16218,7 @@ function useFormData (_ref) {
|
|
15923
16218
|
setFieldErrors = _useState20[1];
|
15924
16219
|
useEffect(function () {
|
15925
16220
|
var _loadedData$_id2;
|
15926
|
-
setState(_objectSpread$
|
16221
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
15927
16222
|
data: loadedData,
|
15928
16223
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
15929
16224
|
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),
|
@@ -16025,7 +16320,7 @@ function useFormData (_ref) {
|
|
16025
16320
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
16026
16321
|
while (1) switch (_context2.prev = _context2.next) {
|
16027
16322
|
case 0:
|
16028
|
-
newData = merge(_objectSpread$
|
16323
|
+
newData = merge(_objectSpread$V({}, state.data), values);
|
16029
16324
|
if (!skipApi) {
|
16030
16325
|
_context2.next = 3;
|
16031
16326
|
break;
|
@@ -16035,7 +16330,7 @@ function useFormData (_ref) {
|
|
16035
16330
|
root.actions.toggleLoading('saving_form');
|
16036
16331
|
_context2.prev = 4;
|
16037
16332
|
_context2.next = 7;
|
16038
|
-
return setDynamicFields(_objectSpread$
|
16333
|
+
return setDynamicFields(_objectSpread$V({}, state.data), newData);
|
16039
16334
|
case 7:
|
16040
16335
|
newData = _context2.sent;
|
16041
16336
|
_context2.next = 10;
|
@@ -16050,7 +16345,7 @@ function useFormData (_ref) {
|
|
16050
16345
|
root.actions.toggleLoading('saving_form');
|
16051
16346
|
throw _context2.t0;
|
16052
16347
|
case 17:
|
16053
|
-
setState(_objectSpread$
|
16348
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16054
16349
|
loading: true
|
16055
16350
|
}));
|
16056
16351
|
finalData = state.data;
|
@@ -16103,14 +16398,14 @@ function useFormData (_ref) {
|
|
16103
16398
|
_context2.next = 47;
|
16104
16399
|
break;
|
16105
16400
|
}
|
16106
|
-
setFieldErrors(_objectSpread$
|
16401
|
+
setFieldErrors(_objectSpread$V(_objectSpread$V({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
16107
16402
|
return _context2.abrupt("return", undefined);
|
16108
16403
|
case 47:
|
16109
16404
|
throw _context2.t1;
|
16110
16405
|
case 48:
|
16111
16406
|
_context2.prev = 48;
|
16112
16407
|
root.actions.toggleLoading('saving_form');
|
16113
|
-
setState(_objectSpread$
|
16408
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16114
16409
|
data: finalData,
|
16115
16410
|
loading: false
|
16116
16411
|
}));
|
@@ -16140,7 +16435,7 @@ function useFormData (_ref) {
|
|
16140
16435
|
}
|
16141
16436
|
var updateHiddenRequiredDisabled = function updateHiddenRequiredDisabled(data, changedFields) {
|
16142
16437
|
if (!(selectedItems !== null && selectedItems !== void 0 && selectedItems.length)) return;
|
16143
|
-
var wholeData = Object.assign(_objectSpread$
|
16438
|
+
var wholeData = Object.assign(_objectSpread$V({}, state.data), _objectSpread$V({}, changedFields !== null && changedFields !== void 0 ? changedFields : data));
|
16144
16439
|
var newState = getHiddenRequredDisabled(wholeData, selectedItems);
|
16145
16440
|
if (JSON.stringify(newState) !== JSON.stringify(hiddenRequiredDisabled)) {
|
16146
16441
|
setHiddenRequiredDisabled(newState);
|
@@ -16153,14 +16448,14 @@ function useFormData (_ref) {
|
|
16153
16448
|
}
|
16154
16449
|
};
|
16155
16450
|
var onInputChanged = function onInputChanged(id, value, d) {
|
16156
|
-
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$
|
16451
|
+
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$V({}, state.data), state.form.getFieldsValue(), mergeCustomizer);
|
16157
16452
|
if (id) {
|
16158
16453
|
setFieldInObject(id, data, value);
|
16159
|
-
var newFieldErrors = _objectSpread$
|
16454
|
+
var newFieldErrors = _objectSpread$V({}, fieldErrors);
|
16160
16455
|
delete newFieldErrors[id.toString()];
|
16161
16456
|
setFieldErrors(newFieldErrors);
|
16162
16457
|
}
|
16163
|
-
setState(_objectSpread$
|
16458
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16164
16459
|
data: data
|
16165
16460
|
}));
|
16166
16461
|
return data;
|
@@ -16192,37 +16487,35 @@ function useFormData (_ref) {
|
|
16192
16487
|
var _value$value;
|
16193
16488
|
if (((_value$value = value === null || value === void 0 ? void 0 : value.value) !== null && _value$value !== void 0 ? _value$value : value) === val) {
|
16194
16489
|
if (configuration.itemSelectorReset) {
|
16195
|
-
setState(_objectSpread$
|
16490
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16196
16491
|
data: _defineProperty({}, name, val)
|
16197
16492
|
}));
|
16198
16493
|
} else {
|
16199
|
-
setState(_objectSpread$
|
16200
|
-
data: _objectSpread$
|
16494
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16495
|
+
data: _objectSpread$V(_objectSpread$V({}, state.data), {}, _defineProperty({}, name, val))
|
16201
16496
|
}));
|
16202
16497
|
}
|
16203
16498
|
setSelectedItemsIndex(idx);
|
16499
|
+
setSelectedItems(filterItems(configuration.items[idx], userHasPermission));
|
16204
16500
|
}
|
16205
16501
|
});
|
16206
16502
|
if (configuration.itemSelector.type == 'radio') configuration.itemSelector.options.forEach(function (_ref6, idx) {
|
16207
16503
|
var val = _ref6.value;
|
16208
16504
|
if (value === val) {
|
16209
16505
|
if (configuration.itemSelectorReset) {
|
16210
|
-
setState(_objectSpread$
|
16506
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16211
16507
|
data: _defineProperty({}, name, val)
|
16212
16508
|
}));
|
16213
16509
|
} else {
|
16214
|
-
setState(_objectSpread$
|
16215
|
-
data: _objectSpread$
|
16510
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16511
|
+
data: _objectSpread$V(_objectSpread$V({}, state.data), {}, _defineProperty({}, name, val))
|
16216
16512
|
}));
|
16217
16513
|
}
|
16218
16514
|
setSelectedItemsIndex(idx);
|
16515
|
+
setSelectedItems(filterItems(configuration.items[idx], userHasPermission));
|
16219
16516
|
}
|
16220
16517
|
});
|
16221
16518
|
};
|
16222
|
-
useEffect(function () {
|
16223
|
-
if (!Array.isArray(configuration.items[0])) return;
|
16224
|
-
setSelectedItems(filterItems(configuration.items[selectedItemsIndex], userHasPermission));
|
16225
|
-
}, [selectedItemsIndex]);
|
16226
16519
|
useEffect(function () {
|
16227
16520
|
updateHiddenRequiredDisabled(state.data);
|
16228
16521
|
}, [selectedItems]);
|
@@ -16493,7 +16786,7 @@ function useFormData (_ref) {
|
|
16493
16786
|
for (var i = 0; i < configuration.tools.length; i++) {
|
16494
16787
|
var _tool$defaultOpen;
|
16495
16788
|
var tool = configuration.tools[i];
|
16496
|
-
tools.push(_objectSpread$
|
16789
|
+
tools.push(_objectSpread$V(_objectSpread$V({}, tool), {}, {
|
16497
16790
|
parameters: {
|
16498
16791
|
data: state.data
|
16499
16792
|
},
|
@@ -16595,7 +16888,7 @@ function useFormData (_ref) {
|
|
16595
16888
|
})) return;
|
16596
16889
|
setRemovedMedias([].concat(_toConsumableArray(removedMedias), [media]));
|
16597
16890
|
};
|
16598
|
-
return _objectSpread$
|
16891
|
+
return _objectSpread$V(_objectSpread$V({}, state), {}, {
|
16599
16892
|
getIsHidden: getIsHidden,
|
16600
16893
|
setUsedPreset: setUsedPreset,
|
16601
16894
|
configuration: configuration,
|
@@ -16712,8 +17005,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
16712
17005
|
};
|
16713
17006
|
|
16714
17007
|
var _excluded$3 = ["key", "name"];
|
16715
|
-
function ownKeys$
|
16716
|
-
function _objectSpread$
|
17008
|
+
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; }
|
17009
|
+
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; }
|
16717
17010
|
var FormList$2 = function FormList(_ref) {
|
16718
17011
|
var _item$initialValue;
|
16719
17012
|
var value = _ref.value,
|
@@ -16766,7 +17059,7 @@ var FormList$2 = function FormList(_ref) {
|
|
16766
17059
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
16767
17060
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
16768
17061
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
16769
|
-
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$
|
17062
|
+
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$U(_objectSpread$U({}, restField), {}, {
|
16770
17063
|
id: n.join(),
|
16771
17064
|
key: n.join(),
|
16772
17065
|
name: n,
|
@@ -16778,7 +17071,7 @@ var FormList$2 = function FormList(_ref) {
|
|
16778
17071
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
16779
17072
|
help: state.fieldErrors[n.toString()],
|
16780
17073
|
hidden: hidden
|
16781
|
-
}), getElement(_objectSpread$
|
17074
|
+
}), getElement(_objectSpread$U(_objectSpread$U({}, i), {}, {
|
16782
17075
|
name: n
|
16783
17076
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
16784
17077
|
})
|
@@ -16943,8 +17236,8 @@ var Result = function Result(_ref) {
|
|
16943
17236
|
|
16944
17237
|
var success = "success-tRJ7j";
|
16945
17238
|
var error = "error-MtAFB";
|
16946
|
-
var css_248z$
|
16947
|
-
styleInject(css_248z$
|
17239
|
+
var css_248z$w = ".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";
|
17240
|
+
styleInject(css_248z$w);
|
16948
17241
|
|
16949
17242
|
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";
|
16950
17243
|
|
@@ -17008,11 +17301,11 @@ var CustomButton$1 = observer(CustomButton);
|
|
17008
17301
|
|
17009
17302
|
var wrapper$7 = "wrapper-GVe2h";
|
17010
17303
|
var buttonGroup = "button-group-GYt-T";
|
17011
|
-
var css_248z$
|
17012
|
-
styleInject(css_248z$
|
17304
|
+
var css_248z$v = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
|
17305
|
+
styleInject(css_248z$v);
|
17013
17306
|
|
17014
|
-
function ownKeys$
|
17015
|
-
function _objectSpread$
|
17307
|
+
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; }
|
17308
|
+
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; }
|
17016
17309
|
var SubTitle = function SubTitle(_ref) {
|
17017
17310
|
var _item$orientation, _item$buttonIds;
|
17018
17311
|
var item = _ref.item,
|
@@ -17021,7 +17314,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
17021
17314
|
t = _useTranslation.t;
|
17022
17315
|
return /*#__PURE__*/jsx(Divider, {
|
17023
17316
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
17024
|
-
style: _objectSpread$
|
17317
|
+
style: _objectSpread$T({}, item.style),
|
17025
17318
|
children: /*#__PURE__*/jsxs("div", {
|
17026
17319
|
className: wrapper$7,
|
17027
17320
|
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) {
|
@@ -17285,12 +17578,12 @@ function parseReturnData(options, selectMapping) {
|
|
17285
17578
|
}
|
17286
17579
|
|
17287
17580
|
var wrapper$6 = "wrapper-4xyke";
|
17288
|
-
var css_248z$
|
17289
|
-
styleInject(css_248z$
|
17581
|
+
var css_248z$u = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
|
17582
|
+
styleInject(css_248z$u);
|
17290
17583
|
|
17291
17584
|
var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
17292
|
-
function ownKeys$
|
17293
|
-
function _objectSpread$
|
17585
|
+
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; }
|
17586
|
+
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; }
|
17294
17587
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
17295
17588
|
var apiInterface = _ref.apiInterface,
|
17296
17589
|
selectMapping = _ref.selectMapping,
|
@@ -17317,7 +17610,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
17317
17610
|
return /*#__PURE__*/jsxs("div", {
|
17318
17611
|
ref: ref,
|
17319
17612
|
className: classnames(title ? wrapper$6 : undefined),
|
17320
|
-
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$
|
17613
|
+
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
|
17321
17614
|
showSearch: search,
|
17322
17615
|
loading: state.loading,
|
17323
17616
|
options: state.options,
|
@@ -17934,8 +18227,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
17934
18227
|
}]);
|
17935
18228
|
}(_default$d);
|
17936
18229
|
|
17937
|
-
function ownKeys$
|
17938
|
-
function _objectSpread$
|
18230
|
+
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; }
|
18231
|
+
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; }
|
17939
18232
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
17940
18233
|
function useSelectClientRelationCatalog (_ref) {
|
17941
18234
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
@@ -18104,7 +18397,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
18104
18397
|
case 22:
|
18105
18398
|
supplierData = _context2.sent;
|
18106
18399
|
case 23:
|
18107
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
18400
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$R(_objectSpread$R({}, _selectedSupplier), {}, {
|
18108
18401
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
18109
18402
|
}), supplierData);
|
18110
18403
|
if (catalogId && catalogList.find(function (c) {
|
@@ -18170,8 +18463,8 @@ var customSelect = "custom-select-ESUJX";
|
|
18170
18463
|
var customSelectOption = "custom-select-option-dUA7N";
|
18171
18464
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
18172
18465
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
18173
|
-
var css_248z$
|
18174
|
-
styleInject(css_248z$
|
18466
|
+
var css_248z$t = ".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";
|
18467
|
+
styleInject(css_248z$t);
|
18175
18468
|
|
18176
18469
|
var Selector = function Selector(_ref) {
|
18177
18470
|
var items = _ref.items,
|
@@ -18325,8 +18618,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
18325
18618
|
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; } } }; }
|
18326
18619
|
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; } }
|
18327
18620
|
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; }
|
18328
|
-
function ownKeys$
|
18329
|
-
function _objectSpread$
|
18621
|
+
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; }
|
18622
|
+
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; }
|
18330
18623
|
function useSelectData (_ref) {
|
18331
18624
|
var data = _ref.data,
|
18332
18625
|
onChange = _ref.onChange,
|
@@ -18509,7 +18802,7 @@ function useSelectData (_ref) {
|
|
18509
18802
|
setFetching(true);
|
18510
18803
|
serverSideParams = {
|
18511
18804
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.searchField.reduce(function (filter, field) {
|
18512
|
-
return _objectSpread$
|
18805
|
+
return _objectSpread$Q(_objectSpread$Q({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
18513
18806
|
}, {}) : {
|
18514
18807
|
_id: [value, 'contains']
|
18515
18808
|
},
|
@@ -18715,8 +19008,8 @@ function useSelectData (_ref) {
|
|
18715
19008
|
};
|
18716
19009
|
}
|
18717
19010
|
|
18718
|
-
var css_248z$
|
18719
|
-
styleInject(css_248z$
|
19011
|
+
var css_248z$s = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
19012
|
+
styleInject(css_248z$s);
|
18720
19013
|
|
18721
19014
|
var SelectWrapper = function SelectWrapper(_ref) {
|
18722
19015
|
var onChange = _ref.onChange,
|
@@ -18798,11 +19091,11 @@ var Select = observer(SelectWrapper);
|
|
18798
19091
|
var wrapper$5 = "wrapper-WStAk";
|
18799
19092
|
var headerWrapper = "header-wrapper-gWQuH";
|
18800
19093
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
18801
|
-
var css_248z$
|
18802
|
-
styleInject(css_248z$
|
19094
|
+
var css_248z$r = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
|
19095
|
+
styleInject(css_248z$r);
|
18803
19096
|
|
18804
|
-
function ownKeys$
|
18805
|
-
function _objectSpread$
|
19097
|
+
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; }
|
19098
|
+
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; }
|
18806
19099
|
var LOG$9 = getLogger('Backoffice', 'Translation Form');
|
18807
19100
|
function useTranslationHook (item, state) {
|
18808
19101
|
var root = useStore();
|
@@ -18935,7 +19228,7 @@ function useTranslationHook (item, state) {
|
|
18935
19228
|
case 0:
|
18936
19229
|
_context2.next = 2;
|
18937
19230
|
return apiHandler.create({
|
18938
|
-
locales: _objectSpread$
|
19231
|
+
locales: _objectSpread$P({
|
18939
19232
|
de: {},
|
18940
19233
|
it: {},
|
18941
19234
|
fr: {},
|
@@ -18984,8 +19277,8 @@ function useTranslationHook (item, state) {
|
|
18984
19277
|
};
|
18985
19278
|
}
|
18986
19279
|
|
18987
|
-
function ownKeys$
|
18988
|
-
function _objectSpread$
|
19280
|
+
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; }
|
19281
|
+
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; }
|
18989
19282
|
var Translation = function Translation(_ref) {
|
18990
19283
|
var item = _ref.item,
|
18991
19284
|
state = _ref.state,
|
@@ -19035,7 +19328,7 @@ var Translation = function Translation(_ref) {
|
|
19035
19328
|
var hidden = state.getIsHidden(i, data);
|
19036
19329
|
var newAbsoluteName = absoluteName !== '' ? [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n)) : n;
|
19037
19330
|
return /*#__PURE__*/jsx(React.Fragment, {
|
19038
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
19331
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$O(_objectSpread$O({}, i), {}, {
|
19039
19332
|
name: n
|
19040
19333
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang) : /*#__PURE__*/jsx(Form$1.Item, {
|
19041
19334
|
id: idx.toString(),
|
@@ -19048,7 +19341,7 @@ var Translation = function Translation(_ref) {
|
|
19048
19341
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
19049
19342
|
help: state.fieldErrors[n.toString()],
|
19050
19343
|
hidden: hidden,
|
19051
|
-
children: getElement(_objectSpread$
|
19344
|
+
children: getElement(_objectSpread$O(_objectSpread$O({}, i), {}, {
|
19052
19345
|
name: n
|
19053
19346
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
19054
19347
|
})
|
@@ -19383,8 +19676,8 @@ var Text$1 = observer(Text);
|
|
19383
19676
|
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; } } }; }
|
19384
19677
|
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; } }
|
19385
19678
|
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; }
|
19386
|
-
function ownKeys$
|
19387
|
-
function _objectSpread$
|
19679
|
+
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; }
|
19680
|
+
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; }
|
19388
19681
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName) {
|
19389
19682
|
var _isReadonly, _state$hiddenRequired;
|
19390
19683
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
@@ -19419,7 +19712,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19419
19712
|
}
|
19420
19713
|
});
|
19421
19714
|
case 'selectSimple':
|
19422
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
19715
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$N(_objectSpread$N({}, item), {}, {
|
19423
19716
|
disabled: disabled,
|
19424
19717
|
onChange: function onChange(value) {
|
19425
19718
|
_onChange(absoluteName, value);
|
@@ -19623,7 +19916,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19623
19916
|
value: item.value,
|
19624
19917
|
options: item.options.map(function (o) {
|
19625
19918
|
var _o$disabled;
|
19626
|
-
return _objectSpread$
|
19919
|
+
return _objectSpread$N(_objectSpread$N({}, o), {}, {
|
19627
19920
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
|
19628
19921
|
});
|
19629
19922
|
}),
|
@@ -19644,7 +19937,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19644
19937
|
},
|
19645
19938
|
icon: item.icon,
|
19646
19939
|
callback: function callback(data) {
|
19647
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
19940
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$N(_objectSpread$N({}, state.data), data));
|
19648
19941
|
}
|
19649
19942
|
});
|
19650
19943
|
case 'media':
|
@@ -19665,7 +19958,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19665
19958
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
19666
19959
|
var _useTranslation = useTranslation(),
|
19667
19960
|
t = _useTranslation.t;
|
19668
|
-
return /*#__PURE__*/jsx(Input, _objectSpread$
|
19961
|
+
return /*#__PURE__*/jsx(Input, _objectSpread$N(_objectSpread$N({}, props), {}, {
|
19669
19962
|
ref: ref,
|
19670
19963
|
disabled: true,
|
19671
19964
|
value: t(props.translationPrefix + '.' + props.value)
|
@@ -19684,8 +19977,8 @@ function isReadonly(item, data) {
|
|
19684
19977
|
return false;
|
19685
19978
|
}
|
19686
19979
|
|
19687
|
-
function ownKeys$
|
19688
|
-
function _objectSpread$
|
19980
|
+
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; }
|
19981
|
+
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; }
|
19689
19982
|
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; } } }; }
|
19690
19983
|
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; } }
|
19691
19984
|
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; }
|
@@ -19735,13 +20028,13 @@ var Presets = function Presets(_ref) {
|
|
19735
20028
|
} finally {
|
19736
20029
|
_iterator.f();
|
19737
20030
|
}
|
19738
|
-
var data = _objectSpread$
|
20031
|
+
var data = _objectSpread$M(_objectSpread$M({}, form.getFieldsValue(names)), {}, {
|
19739
20032
|
newPresetName: newPresetName
|
19740
20033
|
});
|
19741
20034
|
data.dpi = parseInt(data.dpi);
|
19742
20035
|
data.organization = root.getGlobalValue('organizationId');
|
19743
20036
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
19744
|
-
var dt = _objectSpread$
|
20037
|
+
var dt = _objectSpread$M(_objectSpread$M({}, form.getFieldsValue(names)), {}, {
|
19745
20038
|
name: newPresetName
|
19746
20039
|
});
|
19747
20040
|
setPresets({
|
@@ -20070,7 +20363,7 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
|
|
20070
20363
|
}, Array.isArray(item.name) ? item.name.join('.') : item.name)]
|
20071
20364
|
}, item.name.toString());
|
20072
20365
|
})]
|
20073
|
-
})]
|
20366
|
+
}, state.selectedItemsIndex.toString())]
|
20074
20367
|
}), state.configuration.showProgressBar && /*#__PURE__*/jsx(ModalProgressBar, {
|
20075
20368
|
isOpen: state.progressBarOpen,
|
20076
20369
|
percent: state.progressBarPercentage
|
@@ -20083,8 +20376,8 @@ function getLabel(item, t) {
|
|
20083
20376
|
}
|
20084
20377
|
var Form = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
20085
20378
|
|
20086
|
-
function ownKeys$
|
20087
|
-
function _objectSpread$
|
20379
|
+
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; }
|
20380
|
+
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; }
|
20088
20381
|
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; } } }; }
|
20089
20382
|
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; } }
|
20090
20383
|
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; }
|
@@ -20286,7 +20579,7 @@ function useRoleSelectorData (_ref) {
|
|
20286
20579
|
roles.forEach(function (r) {
|
20287
20580
|
//check if after the changes the role is selected
|
20288
20581
|
if (value.includes(r._id)) {
|
20289
|
-
var newValue = _objectSpread$
|
20582
|
+
var newValue = _objectSpread$L(_objectSpread$L({}, r), {}, {
|
20290
20583
|
selected: true
|
20291
20584
|
});
|
20292
20585
|
//add it to the new list as selected role
|
@@ -20322,7 +20615,7 @@ function useRoleSelectorData (_ref) {
|
|
20322
20615
|
}
|
20323
20616
|
}
|
20324
20617
|
} else {
|
20325
|
-
var _newValue = _objectSpread$
|
20618
|
+
var _newValue = _objectSpread$L(_objectSpread$L({}, r), {}, {
|
20326
20619
|
selected: false
|
20327
20620
|
});
|
20328
20621
|
//add it to the new list as unselected role
|
@@ -20526,7 +20819,7 @@ function _updateRoles() {
|
|
20526
20819
|
userRole = userRoles.find(function (r) {
|
20527
20820
|
return r._id == role._id;
|
20528
20821
|
});
|
20529
|
-
newRole = _objectSpread$
|
20822
|
+
newRole = _objectSpread$L({}, role);
|
20530
20823
|
if (userRole) {
|
20531
20824
|
newRole.selected = true;
|
20532
20825
|
newRole.inherited = userRole.inherited;
|
@@ -20746,7 +21039,7 @@ function _fetchOptions() {
|
|
20746
21039
|
case 4:
|
20747
21040
|
result = _context11.sent;
|
20748
21041
|
options = result.data.map(function (d) {
|
20749
|
-
return _objectSpread$
|
21042
|
+
return _objectSpread$L(_objectSpread$L({}, d), {}, {
|
20750
21043
|
label: d.displayName,
|
20751
21044
|
value: d._id,
|
20752
21045
|
isLeaf: !d.hasChildren
|
@@ -20845,11 +21138,11 @@ var skeleton = "skeleton--xCI0";
|
|
20845
21138
|
var filterField = "filterField-1kU1O";
|
20846
21139
|
var parentScroll = "parent-scroll-GmaL9";
|
20847
21140
|
var parent = "parent-NZJ3S";
|
20848
|
-
var css_248z$
|
20849
|
-
styleInject(css_248z$
|
21141
|
+
var css_248z$q = ".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";
|
21142
|
+
styleInject(css_248z$q);
|
20850
21143
|
|
20851
|
-
function ownKeys$
|
20852
|
-
function _objectSpread$
|
21144
|
+
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; }
|
21145
|
+
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; }
|
20853
21146
|
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; } } }; }
|
20854
21147
|
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; } }
|
20855
21148
|
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; }
|
@@ -20909,8 +21202,8 @@ function _generateCSV() {
|
|
20909
21202
|
break;
|
20910
21203
|
}
|
20911
21204
|
_context2.next = 21;
|
20912
|
-
return generateCSV(_objectSpread$
|
20913
|
-
mappingData: _objectSpread$
|
21205
|
+
return generateCSV(_objectSpread$K(_objectSpread$K({}, exportParams.children), {}, {
|
21206
|
+
mappingData: _objectSpread$K(_objectSpread$K({}, parent), {}, {
|
20914
21207
|
parentId: exportParams.mappingData._id
|
20915
21208
|
})
|
20916
21209
|
}), csvData);
|
@@ -21018,8 +21311,8 @@ function _downloadFile() {
|
|
21018
21311
|
return _downloadFile.apply(this, arguments);
|
21019
21312
|
}
|
21020
21313
|
|
21021
|
-
function ownKeys$
|
21022
|
-
function _objectSpread$
|
21314
|
+
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; }
|
21315
|
+
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; }
|
21023
21316
|
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; } } }; }
|
21024
21317
|
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; } }
|
21025
21318
|
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; }
|
@@ -21438,7 +21731,7 @@ function useRelationSelectorData (_ref) {
|
|
21438
21731
|
var activeItem = _step.value;
|
21439
21732
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
21440
21733
|
addedObjects.push(addedData);
|
21441
|
-
getSplittedItems(_objectSpread$
|
21734
|
+
getSplittedItems(_objectSpread$J(_objectSpread$J({}, activeItem), {}, {
|
21442
21735
|
userId: data === null || data === void 0 ? void 0 : data._id
|
21443
21736
|
}));
|
21444
21737
|
ret = true;
|
@@ -21643,8 +21936,8 @@ function useRelationSelectorData (_ref) {
|
|
21643
21936
|
};
|
21644
21937
|
}
|
21645
21938
|
|
21646
|
-
function ownKeys$
|
21647
|
-
function _objectSpread$
|
21939
|
+
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; }
|
21940
|
+
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; }
|
21648
21941
|
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; } } }; }
|
21649
21942
|
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; } }
|
21650
21943
|
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; }
|
@@ -21777,7 +22070,7 @@ function ActionButton (_ref) {
|
|
21777
22070
|
_iterator2.f();
|
21778
22071
|
}
|
21779
22072
|
_context.next = 19;
|
21780
|
-
return apiInterface.update(_objectSpread$
|
22073
|
+
return apiInterface.update(_objectSpread$I(_objectSpread$I({}, data), {}, {
|
21781
22074
|
state: toSwitch
|
21782
22075
|
}), data);
|
21783
22076
|
case 19:
|
@@ -21934,14 +22227,14 @@ function _simpleChangeValue() {
|
|
21934
22227
|
break;
|
21935
22228
|
}
|
21936
22229
|
for (i = 0; i < action.newValues.length; i++) {
|
21937
|
-
fieldsToUpdate = _objectSpread$
|
22230
|
+
fieldsToUpdate = _objectSpread$I(_objectSpread$I({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
21938
22231
|
}
|
21939
22232
|
if (!apiInterface.canUpdate) {
|
21940
22233
|
_context2.next = 9;
|
21941
22234
|
break;
|
21942
22235
|
}
|
21943
22236
|
_context2.next = 7;
|
21944
|
-
return apiInterface.update(_objectSpread$
|
22237
|
+
return apiInterface.update(_objectSpread$I({}, fieldsToUpdate), data);
|
21945
22238
|
case 7:
|
21946
22239
|
response = _context2.sent;
|
21947
22240
|
return _context2.abrupt("return", response);
|
@@ -21956,7 +22249,7 @@ function _simpleChangeValue() {
|
|
21956
22249
|
return _simpleChangeValue.apply(this, arguments);
|
21957
22250
|
}
|
21958
22251
|
function A(props) {
|
21959
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
22252
|
+
return /*#__PURE__*/jsx("a", _objectSpread$I({}, props));
|
21960
22253
|
}
|
21961
22254
|
|
21962
22255
|
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; } } }; }
|
@@ -22091,11 +22384,11 @@ var newscroller = "newscroller-INKeD";
|
|
22091
22384
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
22092
22385
|
var itemTitle = "item-title--BTvC";
|
22093
22386
|
var itemDesc = "item-desc-DBiiF";
|
22094
|
-
var css_248z$
|
22095
|
-
styleInject(css_248z$
|
22387
|
+
var css_248z$p = ".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";
|
22388
|
+
styleInject(css_248z$p);
|
22096
22389
|
|
22097
|
-
function ownKeys$
|
22098
|
-
function _objectSpread$
|
22390
|
+
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; }
|
22391
|
+
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; }
|
22099
22392
|
var DropDown = function DropDown(_ref) {
|
22100
22393
|
var _curItem$data$length;
|
22101
22394
|
var split = _ref.split,
|
@@ -22127,7 +22420,7 @@ var DropDown = function DropDown(_ref) {
|
|
22127
22420
|
});
|
22128
22421
|
return /*#__PURE__*/jsx(Collapse, {
|
22129
22422
|
onChange: function onChange() {
|
22130
|
-
return getSplittedItems(_objectSpread$
|
22423
|
+
return getSplittedItems(_objectSpread$H(_objectSpread$H({}, item.item), {}, {
|
22131
22424
|
parentId: item.parentId
|
22132
22425
|
}), 0);
|
22133
22426
|
},
|
@@ -22385,8 +22678,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
22385
22678
|
};
|
22386
22679
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
22387
22680
|
|
22388
|
-
function ownKeys$
|
22389
|
-
function _objectSpread$
|
22681
|
+
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; }
|
22682
|
+
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; }
|
22390
22683
|
function useFormListData (_ref) {
|
22391
22684
|
var _configuration$defaul;
|
22392
22685
|
var id = _ref.id,
|
@@ -22466,7 +22759,7 @@ function useFormListData (_ref) {
|
|
22466
22759
|
if (updated.length == state.length) {
|
22467
22760
|
newState = state.map(function (s, i) {
|
22468
22761
|
var _updated$find;
|
22469
|
-
return _objectSpread$
|
22762
|
+
return _objectSpread$G(_objectSpread$G({}, s), {}, {
|
22470
22763
|
data: (_updated$find = updated.find(function (u) {
|
22471
22764
|
return u.index == i;
|
22472
22765
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
@@ -22603,8 +22896,8 @@ var FormList = function FormList(_ref, ref) {
|
|
22603
22896
|
};
|
22604
22897
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
22605
22898
|
|
22606
|
-
function ownKeys$
|
22607
|
-
function _objectSpread$
|
22899
|
+
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; }
|
22900
|
+
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; }
|
22608
22901
|
var LOG$6 = getLogger('Backoffice', 'SelectOrCreate');
|
22609
22902
|
function useSelectOrCreateData (_ref) {
|
22610
22903
|
var id = _ref.id,
|
@@ -22701,7 +22994,7 @@ function useSelectOrCreateData (_ref) {
|
|
22701
22994
|
_context.next = 7;
|
22702
22995
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
22703
22996
|
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) {
|
22704
|
-
return _objectSpread$
|
22997
|
+
return _objectSpread$F(_objectSpread$F({}, filter), {}, _defineProperty({}, field.field, [value, field.filter, true]));
|
22705
22998
|
}, {}) : {
|
22706
22999
|
_id: [value, 'contains']
|
22707
23000
|
},
|
@@ -23012,8 +23305,8 @@ var Multiple = function Multiple(_ref3) {
|
|
23012
23305
|
});
|
23013
23306
|
};
|
23014
23307
|
|
23015
|
-
function ownKeys$
|
23016
|
-
function _objectSpread$
|
23308
|
+
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; }
|
23309
|
+
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; }
|
23017
23310
|
function useListData (_ref) {
|
23018
23311
|
var id = _ref.id,
|
23019
23312
|
data = _ref.data;
|
@@ -23056,7 +23349,7 @@ function useListData (_ref) {
|
|
23056
23349
|
case 3:
|
23057
23350
|
result = _context.sent;
|
23058
23351
|
setListData(result.data.map(parseField));
|
23059
|
-
initData = _objectSpread$
|
23352
|
+
initData = _objectSpread$E({}, data);
|
23060
23353
|
setUpdatedObject(initData);
|
23061
23354
|
setLoading(false);
|
23062
23355
|
case 8:
|
@@ -23097,7 +23390,7 @@ function useListData (_ref) {
|
|
23097
23390
|
});
|
23098
23391
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
23099
23392
|
var parsedField = field.field.split('.');
|
23100
|
-
item.itemUpdate = _objectSpread$
|
23393
|
+
item.itemUpdate = _objectSpread$E(_objectSpread$E({}, field), {}, {
|
23101
23394
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
23102
23395
|
});
|
23103
23396
|
});
|
@@ -23128,16 +23421,16 @@ function useListData (_ref) {
|
|
23128
23421
|
console.error('field with more than 2 parts not allowed');
|
23129
23422
|
return;
|
23130
23423
|
}
|
23131
|
-
var updObj = _objectSpread$
|
23424
|
+
var updObj = _objectSpread$E({}, updatedObject);
|
23132
23425
|
if (fields.length === 1) {
|
23133
|
-
updObj = _objectSpread$
|
23426
|
+
updObj = _objectSpread$E(_objectSpread$E({}, updObj), {}, _defineProperty({}, fields[0], value));
|
23134
23427
|
} else if (fields.length === 2) {
|
23135
23428
|
var updatedField = updObj[fields[0]].find(function (v) {
|
23136
23429
|
return v.id === item.id.trim();
|
23137
23430
|
});
|
23138
23431
|
if (updatedField) {
|
23139
|
-
var updatedFieldCopy = _objectSpread$
|
23140
|
-
updObj = _objectSpread$
|
23432
|
+
var updatedFieldCopy = _objectSpread$E(_objectSpread$E({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
23433
|
+
updObj = _objectSpread$E(_objectSpread$E({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
23141
23434
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
23142
23435
|
})));
|
23143
23436
|
}
|
@@ -23146,11 +23439,11 @@ function useListData (_ref) {
|
|
23146
23439
|
var acItems = listData;
|
23147
23440
|
for (var i = 0; i < acItems.length; i++) {
|
23148
23441
|
if (i == index) {
|
23149
|
-
acItems[i].itemUpdate = _objectSpread$
|
23442
|
+
acItems[i].itemUpdate = _objectSpread$E(_objectSpread$E({}, acItems[i].itemUpdate), {}, {
|
23150
23443
|
value: value
|
23151
23444
|
});
|
23152
23445
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
23153
|
-
acItems[i].itemUpdate = _objectSpread$
|
23446
|
+
acItems[i].itemUpdate = _objectSpread$E(_objectSpread$E({}, acItems[i].itemUpdate), {}, {
|
23154
23447
|
value: !value
|
23155
23448
|
});
|
23156
23449
|
}
|
@@ -23504,8 +23797,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
23504
23797
|
var preview = "preview-9wK81";
|
23505
23798
|
var previewButton = "preview-button-vupuG";
|
23506
23799
|
var editButton = "edit-button-m6r3M";
|
23507
|
-
var css_248z$
|
23508
|
-
styleInject(css_248z$
|
23800
|
+
var css_248z$o = ".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";
|
23801
|
+
styleInject(css_248z$o);
|
23509
23802
|
|
23510
23803
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
23511
23804
|
var id = _ref.id,
|
@@ -23664,8 +23957,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
23664
23957
|
};
|
23665
23958
|
}
|
23666
23959
|
|
23667
|
-
function ownKeys$
|
23668
|
-
function _objectSpread$
|
23960
|
+
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; }
|
23961
|
+
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; }
|
23669
23962
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
23670
23963
|
var id = _ref.id,
|
23671
23964
|
data = _ref.data,
|
@@ -23773,12 +24066,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
23773
24066
|
}
|
23774
24067
|
function onEnter(e) {
|
23775
24068
|
if (e.key != 'Enter') return;
|
23776
|
-
setCrop(_objectSpread$
|
24069
|
+
setCrop(_objectSpread$D(_objectSpread$D({}, crop), {}, {
|
23777
24070
|
unit: 'px',
|
23778
24071
|
width: Number(widthInputElement.current.value),
|
23779
24072
|
height: Number(heightInputElement.current.value)
|
23780
24073
|
}));
|
23781
|
-
setCompletedCrop(_objectSpread$
|
24074
|
+
setCompletedCrop(_objectSpread$D(_objectSpread$D({}, crop), {}, {
|
23782
24075
|
unit: 'px',
|
23783
24076
|
width: Number(widthInputElement.current.value),
|
23784
24077
|
height: Number(heightInputElement.current.value)
|
@@ -23856,8 +24149,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
23856
24149
|
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; } } }; }
|
23857
24150
|
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; } }
|
23858
24151
|
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; }
|
23859
|
-
function ownKeys$
|
23860
|
-
function _objectSpread$
|
24152
|
+
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; }
|
24153
|
+
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; }
|
23861
24154
|
function useDescriptions (_ref) {
|
23862
24155
|
var id = _ref.id;
|
23863
24156
|
var root = useStore();
|
@@ -23950,7 +24243,7 @@ function _getDisplayData() {
|
|
23950
24243
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
23951
24244
|
while (1) switch (_context4.prev = _context4.next) {
|
23952
24245
|
case 0:
|
23953
|
-
displayData = _objectSpread$
|
24246
|
+
displayData = _objectSpread$C({}, data);
|
23954
24247
|
_iterator = _createForOfIteratorHelper$9(items);
|
23955
24248
|
_context4.prev = 2;
|
23956
24249
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
@@ -24226,8 +24519,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
24226
24519
|
};
|
24227
24520
|
var FileUploadBeta = observer(FileUploadWrapper$1);
|
24228
24521
|
|
24229
|
-
function ownKeys$
|
24230
|
-
function _objectSpread$
|
24522
|
+
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; }
|
24523
|
+
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; }
|
24231
24524
|
function useGridData (_ref) {
|
24232
24525
|
var id = _ref.id,
|
24233
24526
|
data = _ref.data;
|
@@ -24270,11 +24563,11 @@ function useGridData (_ref) {
|
|
24270
24563
|
function reducer(state, action) {
|
24271
24564
|
switch (action.type) {
|
24272
24565
|
case 'update':
|
24273
|
-
return _objectSpread$
|
24566
|
+
return _objectSpread$B(_objectSpread$B({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$B(_objectSpread$B({}, action.data), {}, {
|
24274
24567
|
buffer: Buffer.from(action.data.buffer)
|
24275
24568
|
})));
|
24276
24569
|
case 'delete':
|
24277
|
-
var newState = _objectSpread$
|
24570
|
+
var newState = _objectSpread$B({}, state);
|
24278
24571
|
delete newState[action.data.divaNr];
|
24279
24572
|
return newState;
|
24280
24573
|
default:
|
@@ -24284,13 +24577,13 @@ function reducer(state, action) {
|
|
24284
24577
|
|
24285
24578
|
var grid = "grid-sGemi";
|
24286
24579
|
var textWrapper = "text-wrapper-xsPXE";
|
24287
|
-
var css_248z$
|
24288
|
-
styleInject(css_248z$
|
24580
|
+
var css_248z$n = ".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";
|
24581
|
+
styleInject(css_248z$n);
|
24289
24582
|
|
24290
24583
|
var wrapper$4 = "wrapper-p-gR3";
|
24291
|
-
var container$
|
24292
|
-
var css_248z$
|
24293
|
-
styleInject(css_248z$
|
24584
|
+
var container$6 = "container-DoZqe";
|
24585
|
+
var css_248z$m = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
|
24586
|
+
styleInject(css_248z$m);
|
24294
24587
|
|
24295
24588
|
var ToolTipInfo = function ToolTipInfo(props) {
|
24296
24589
|
var _useTranslation = useTranslation(),
|
@@ -24309,7 +24602,7 @@ var ToolTipInfo = function ToolTipInfo(props) {
|
|
24309
24602
|
width: 230
|
24310
24603
|
},
|
24311
24604
|
children: /*#__PURE__*/jsx("div", {
|
24312
|
-
className: container$
|
24605
|
+
className: container$6
|
24313
24606
|
})
|
24314
24607
|
})
|
24315
24608
|
});
|
@@ -24361,8 +24654,8 @@ var Grid = function Grid(_ref) {
|
|
24361
24654
|
});
|
24362
24655
|
};
|
24363
24656
|
|
24364
|
-
function ownKeys$
|
24365
|
-
function _objectSpread$
|
24657
|
+
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; }
|
24658
|
+
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; }
|
24366
24659
|
var useMediaUpload = function useMediaUpload(_ref) {
|
24367
24660
|
var id = _ref.id;
|
24368
24661
|
var root = useStore();
|
@@ -24481,7 +24774,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24481
24774
|
onRemove: onRemove,
|
24482
24775
|
customRequest: customRequest,
|
24483
24776
|
fileList: fileList.map(function (f) {
|
24484
|
-
return _objectSpread$
|
24777
|
+
return _objectSpread$A(_objectSpread$A({}, f), {}, {
|
24485
24778
|
url: f.url
|
24486
24779
|
});
|
24487
24780
|
}),
|
@@ -24493,8 +24786,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24493
24786
|
var small = "small-NY1-k";
|
24494
24787
|
var medium = "medium---QcO";
|
24495
24788
|
var big = "big--E39S";
|
24496
|
-
var css_248z$
|
24497
|
-
styleInject(css_248z$
|
24789
|
+
var css_248z$l = ".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";
|
24790
|
+
styleInject(css_248z$l);
|
24498
24791
|
|
24499
24792
|
var MediaUpload = observer(function (_ref) {
|
24500
24793
|
var id = _ref.id;
|
@@ -24569,8 +24862,8 @@ var TableSummary = function TableSummary(_ref) {
|
|
24569
24862
|
});
|
24570
24863
|
};
|
24571
24864
|
|
24572
|
-
function ownKeys$
|
24573
|
-
function _objectSpread$
|
24865
|
+
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; }
|
24866
|
+
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; }
|
24574
24867
|
function getExpandedRowRenderer (config, root) {
|
24575
24868
|
return function (record) {
|
24576
24869
|
var data = record;
|
@@ -24592,7 +24885,7 @@ function customSubTable(columns, datasource) {
|
|
24592
24885
|
// map custom columns to antd columns
|
24593
24886
|
var antcols = columns.map(function (col) {
|
24594
24887
|
var _col$width;
|
24595
|
-
return _objectSpread$
|
24888
|
+
return _objectSpread$z(_objectSpread$z({}, col), {}, {
|
24596
24889
|
title: col.title,
|
24597
24890
|
dataIndex: col.field,
|
24598
24891
|
key: col.field,
|
@@ -24620,8 +24913,8 @@ var editableRow = "editable-row-9BEHi";
|
|
24620
24913
|
var checkbox = "checkbox-H7R-w";
|
24621
24914
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
24622
24915
|
var contentWidth = "content-width-hGyVI";
|
24623
|
-
var css_248z$
|
24624
|
-
styleInject(css_248z$
|
24916
|
+
var css_248z$k = ".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";
|
24917
|
+
styleInject(css_248z$k);
|
24625
24918
|
|
24626
24919
|
function BooleanCell (_ref) {
|
24627
24920
|
var children = _ref.children,
|
@@ -25304,8 +25597,8 @@ function LinkCell (_ref) {
|
|
25304
25597
|
|
25305
25598
|
var _excluded$1 = ["index"],
|
25306
25599
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
25307
|
-
function ownKeys$
|
25308
|
-
function _objectSpread$
|
25600
|
+
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; }
|
25601
|
+
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; }
|
25309
25602
|
var LOG$4 = getLogger('Backoffice', 'CellRenderer');
|
25310
25603
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
25311
25604
|
var CustomRow = function CustomRow(_ref) {
|
@@ -25319,7 +25612,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
25319
25612
|
component: false,
|
25320
25613
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
25321
25614
|
value: form,
|
25322
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
25615
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$y({}, props))
|
25323
25616
|
})
|
25324
25617
|
});
|
25325
25618
|
};
|
@@ -25372,7 +25665,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
25372
25665
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
25373
25666
|
longDescriptionType = 'text';
|
25374
25667
|
}
|
25375
|
-
var modifiedColumn = _objectSpread$
|
25668
|
+
var modifiedColumn = _objectSpread$y(_objectSpread$y({}, column), {}, {
|
25376
25669
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
25377
25670
|
});
|
25378
25671
|
if (column) {
|
@@ -25385,40 +25678,40 @@ var CustomCell = function CustomCell(_ref2) {
|
|
25385
25678
|
};
|
25386
25679
|
switch (modifiedColumn.type) {
|
25387
25680
|
case 'boolean':
|
25388
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
25681
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$y({}, cellProps));
|
25389
25682
|
break;
|
25390
25683
|
case 'text':
|
25391
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
25684
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$y({}, cellProps));
|
25392
25685
|
break;
|
25393
25686
|
case 'select':
|
25394
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
25687
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$y({}, cellProps));
|
25395
25688
|
case 'media':
|
25396
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
25689
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$y({}, cellProps));
|
25397
25690
|
break;
|
25398
25691
|
case 'mediaItem':
|
25399
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
25692
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$y({}, cellProps));
|
25400
25693
|
break;
|
25401
25694
|
case 'unixTimeStamp':
|
25402
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
25695
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$y({}, cellProps));
|
25403
25696
|
break;
|
25404
25697
|
case 'unixTimeStampCheck':
|
25405
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
25698
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$y({}, cellProps));
|
25406
25699
|
break;
|
25407
25700
|
case 'icon':
|
25408
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
25701
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$y({}, cellProps));
|
25409
25702
|
break;
|
25410
25703
|
case 'progress':
|
25411
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
25704
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$y({}, cellProps));
|
25412
25705
|
break;
|
25413
25706
|
case 'link':
|
25414
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
25707
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$y({}, cellProps));
|
25415
25708
|
break;
|
25416
25709
|
default:
|
25417
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
25710
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$y({}, cellProps));
|
25418
25711
|
break;
|
25419
25712
|
}
|
25420
25713
|
}
|
25421
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
25714
|
+
return /*#__PURE__*/jsx("td", _objectSpread$y(_objectSpread$y({}, restProps), {}, {
|
25422
25715
|
children: childNode
|
25423
25716
|
}));
|
25424
25717
|
};
|
@@ -25607,11 +25900,11 @@ function useAGHistogram (_ref) {
|
|
25607
25900
|
};
|
25608
25901
|
}
|
25609
25902
|
|
25610
|
-
var container$
|
25903
|
+
var container$5 = "container-2r-OJ";
|
25611
25904
|
var column1 = "column1-9viTK";
|
25612
25905
|
var spinner = "spinner-00VcK";
|
25613
|
-
var css_248z$
|
25614
|
-
styleInject(css_248z$
|
25906
|
+
var css_248z$j = ".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";
|
25907
|
+
styleInject(css_248z$j);
|
25615
25908
|
|
25616
25909
|
var Panel = Collapse.Panel;
|
25617
25910
|
function AGHistogram (_ref) {
|
@@ -25724,7 +26017,7 @@ function AGHistogram (_ref) {
|
|
25724
26017
|
children: /*#__PURE__*/jsx(Panel, {
|
25725
26018
|
header: headerText,
|
25726
26019
|
children: /*#__PURE__*/jsxs("div", {
|
25727
|
-
className: container$
|
26020
|
+
className: container$5,
|
25728
26021
|
children: [!loadingHistogram && /*#__PURE__*/jsx("div", {
|
25729
26022
|
className: classnames(column1, 'ag-theme-alpine'),
|
25730
26023
|
style: {
|
@@ -25770,8 +26063,8 @@ var SMChart = function SMChart(props) {
|
|
25770
26063
|
}) : /*#__PURE__*/jsx(Fragment, {});
|
25771
26064
|
};
|
25772
26065
|
|
25773
|
-
function ownKeys$
|
25774
|
-
function _objectSpread$
|
26066
|
+
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; }
|
26067
|
+
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; }
|
25775
26068
|
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; } } }; }
|
25776
26069
|
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; } }
|
25777
26070
|
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; }
|
@@ -25924,7 +26217,11 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25924
26217
|
return state.selected.find(function (sel) {
|
25925
26218
|
return sel == dt._id;
|
25926
26219
|
});
|
25927
|
-
})
|
26220
|
+
}).length ? state.data.filter(function (dt) {
|
26221
|
+
return state.selected.find(function (sel) {
|
26222
|
+
return sel == dt._id;
|
26223
|
+
});
|
26224
|
+
}) : state.mappingData,
|
25928
26225
|
action: state.configuration.downloadAction,
|
25929
26226
|
catalogCodex: (_state$catalogItem = state.catalogItem) === null || _state$catalogItem === void 0 ? void 0 : _state$catalogItem.codex,
|
25930
26227
|
dealerId: (_state$catalogItem2 = state.catalogItem) === null || _state$catalogItem2 === void 0 ? void 0 : _state$catalogItem2.dealerId,
|
@@ -25966,7 +26263,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25966
26263
|
// Convert to Dayjs
|
25967
26264
|
(_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
|
25968
26265
|
]
|
25969
|
-
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
26266
|
+
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$x(_objectSpread$x({}, (_state$configuration$5 = state.configuration.filter) === null || _state$configuration$5 === void 0 ? void 0 : _state$configuration$5.select.settings), {}, {
|
25970
26267
|
style: {
|
25971
26268
|
minWidth: '200px'
|
25972
26269
|
},
|
@@ -26071,7 +26368,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
26071
26368
|
},
|
26072
26369
|
dataSource: data,
|
26073
26370
|
loading: state.loading,
|
26074
|
-
pagination: _objectSpread$
|
26371
|
+
pagination: _objectSpread$x(_objectSpread$x({}, state.pagination), {}, {
|
26075
26372
|
showTotal: function showTotal(total, range) {
|
26076
26373
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
26077
26374
|
},
|
@@ -26391,7 +26688,7 @@ function BulkAction(_ref6) {
|
|
26391
26688
|
}
|
26392
26689
|
_context4.t0 = data;
|
26393
26690
|
_context4.next = 11;
|
26394
|
-
return apiInterface.update(_objectSpread$
|
26691
|
+
return apiInterface.update(_objectSpread$x(_objectSpread$x({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
26395
26692
|
case 11:
|
26396
26693
|
_context4.t1 = _context4.sent;
|
26397
26694
|
_context4.t0.push.call(_context4.t0, _context4.t1);
|
@@ -26504,8 +26801,8 @@ function SelectionText(_ref8) {
|
|
26504
26801
|
});
|
26505
26802
|
}
|
26506
26803
|
|
26507
|
-
function ownKeys$
|
26508
|
-
function _objectSpread$
|
26804
|
+
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; }
|
26805
|
+
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; }
|
26509
26806
|
function getColumnFilterProps (_ref) {
|
26510
26807
|
var filter = _ref.filter,
|
26511
26808
|
title = _ref.title;
|
@@ -26868,7 +27165,7 @@ var selectProps = function selectProps(title, filter) {
|
|
26868
27165
|
});
|
26869
27166
|
},
|
26870
27167
|
options: filter.map(function (f) {
|
26871
|
-
return _objectSpread$
|
27168
|
+
return _objectSpread$w(_objectSpread$w({}, f), {}, {
|
26872
27169
|
label: t(f.label)
|
26873
27170
|
});
|
26874
27171
|
})
|
@@ -26917,7 +27214,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
26917
27214
|
setDisplaySelectedvalues = _useState4[1];
|
26918
27215
|
var options = [];
|
26919
27216
|
options = filter.map(function (f) {
|
26920
|
-
return _objectSpread$
|
27217
|
+
return _objectSpread$w(_objectSpread$w({}, f), {}, {
|
26921
27218
|
label: t(f.label)
|
26922
27219
|
});
|
26923
27220
|
});
|
@@ -26991,8 +27288,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
26991
27288
|
};
|
26992
27289
|
};
|
26993
27290
|
|
26994
|
-
function ownKeys$
|
26995
|
-
function _objectSpread$
|
27291
|
+
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; }
|
27292
|
+
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; }
|
26996
27293
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
|
26997
27294
|
var columns = configuration.columns.filter(function (c) {
|
26998
27295
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
@@ -27045,7 +27342,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
27045
27342
|
}
|
27046
27343
|
function mapColumn(column, onUpdate) {
|
27047
27344
|
var _column$field, _column$children;
|
27048
|
-
return _objectSpread$
|
27345
|
+
return _objectSpread$v(_objectSpread$v(_objectSpread$v({}, column), {}, {
|
27049
27346
|
hidden: false,
|
27050
27347
|
width: column.width || 100,
|
27051
27348
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
@@ -27095,8 +27392,8 @@ function updateData (_ref) {
|
|
27095
27392
|
};
|
27096
27393
|
}
|
27097
27394
|
|
27098
|
-
function ownKeys$
|
27099
|
-
function _objectSpread$
|
27395
|
+
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; }
|
27396
|
+
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; }
|
27100
27397
|
function applyFilterAndSortation (_ref) {
|
27101
27398
|
var data = _ref.data,
|
27102
27399
|
filters = _ref.filters,
|
@@ -27111,7 +27408,7 @@ function applyFilterAndSortation (_ref) {
|
|
27111
27408
|
processedData = sort(sorter || [], processedData);
|
27112
27409
|
return {
|
27113
27410
|
data: processedData,
|
27114
|
-
pagination: _objectSpread$
|
27411
|
+
pagination: _objectSpread$u(_objectSpread$u({}, pagination), {}, {
|
27115
27412
|
total: processedData.length
|
27116
27413
|
})
|
27117
27414
|
};
|
@@ -27196,8 +27493,8 @@ function filter(f, data) {
|
|
27196
27493
|
}
|
27197
27494
|
|
27198
27495
|
var _excluded = ["_id"];
|
27199
|
-
function ownKeys$
|
27200
|
-
function _objectSpread$
|
27496
|
+
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; }
|
27497
|
+
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; }
|
27201
27498
|
function useTableData$1 (_ref) {
|
27202
27499
|
var _configuration$apiInt;
|
27203
27500
|
var id = _ref.id;
|
@@ -27252,7 +27549,7 @@ function useTableData$1 (_ref) {
|
|
27252
27549
|
var _configuration$create;
|
27253
27550
|
if (!dataRow) return;
|
27254
27551
|
var id = v4();
|
27255
|
-
var processedDataRow = unflatten(_objectSpread$
|
27552
|
+
var processedDataRow = unflatten(_objectSpread$t({
|
27256
27553
|
_id: id,
|
27257
27554
|
ID: id
|
27258
27555
|
}, dataRow));
|
@@ -27264,11 +27561,11 @@ function useTableData$1 (_ref) {
|
|
27264
27561
|
newData = _updateData.data;
|
27265
27562
|
_updateData.prevDataRow;
|
27266
27563
|
_updateData.index;
|
27267
|
-
var newState = _objectSpread$
|
27564
|
+
var newState = _objectSpread$t(_objectSpread$t({}, state), {}, {
|
27268
27565
|
data: newData
|
27269
27566
|
});
|
27270
27567
|
if (!filterServerSide) {
|
27271
|
-
var res = applyFilterAndSortation(_objectSpread$
|
27568
|
+
var res = applyFilterAndSortation(_objectSpread$t(_objectSpread$t({}, filterData), {}, {
|
27272
27569
|
data: newData
|
27273
27570
|
}));
|
27274
27571
|
newState.data = res.data;
|
@@ -27280,33 +27577,33 @@ function useTableData$1 (_ref) {
|
|
27280
27577
|
var formData = new FormData();
|
27281
27578
|
processedDataRow._id;
|
27282
27579
|
var value = _objectWithoutProperties(processedDataRow, _excluded);
|
27283
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
27580
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27284
27581
|
filterContex: filterContex,
|
27285
27582
|
value: JSON.stringify([value])
|
27286
27583
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
27287
27584
|
if (d && d.Result && d.Result == 'Success') return;
|
27288
|
-
setState(_objectSpread$
|
27585
|
+
setState(_objectSpread$t({}, oldState));
|
27289
27586
|
});
|
27290
27587
|
}, [state, catalogItem, filterData]);
|
27291
27588
|
useEffect(function () {
|
27292
27589
|
if (!catalogItem) return;
|
27293
|
-
setState(_objectSpread$
|
27590
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27294
27591
|
loading: true,
|
27295
|
-
mappingData: _objectSpread$
|
27592
|
+
mappingData: _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27296
27593
|
filterContex: filterContex
|
27297
27594
|
})
|
27298
27595
|
}));
|
27299
27596
|
if (!filterServerSide) {
|
27300
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
27597
|
+
apiHandler.readList(configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27301
27598
|
filterContex: filterContex
|
27302
27599
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
27303
27600
|
var newData = data.data.map(function (d) {
|
27304
|
-
return _objectSpread$
|
27601
|
+
return _objectSpread$t(_objectSpread$t({}, d), {}, {
|
27305
27602
|
_id: d._id || d.ID || nanoid()
|
27306
27603
|
});
|
27307
27604
|
});
|
27308
27605
|
onChange({
|
27309
|
-
pagination: _objectSpread$
|
27606
|
+
pagination: _objectSpread$t({}, state.pagination),
|
27310
27607
|
filters: {},
|
27311
27608
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
27312
27609
|
return c.defaultSortOrder;
|
@@ -27322,7 +27619,7 @@ function useTableData$1 (_ref) {
|
|
27322
27619
|
});
|
27323
27620
|
} else {
|
27324
27621
|
onChange({
|
27325
|
-
pagination: _objectSpread$
|
27622
|
+
pagination: _objectSpread$t({}, state.pagination),
|
27326
27623
|
filters: {},
|
27327
27624
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
27328
27625
|
return c.defaultSortOrder;
|
@@ -27338,17 +27635,17 @@ function useTableData$1 (_ref) {
|
|
27338
27635
|
}
|
27339
27636
|
}, [filterContex, catalogItem]);
|
27340
27637
|
var onChange = function onChange(p, dataParam) {
|
27341
|
-
setState(_objectSpread$
|
27638
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27342
27639
|
loading: true
|
27343
27640
|
}));
|
27344
27641
|
if (!filterServerSide) {
|
27345
27642
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
27346
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
27643
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$t(_objectSpread$t({}, p), {}, {
|
27347
27644
|
data: unfilteredData
|
27348
27645
|
})),
|
27349
27646
|
data = _applyFilterAndSortat.data,
|
27350
27647
|
pagination = _applyFilterAndSortat.pagination;
|
27351
|
-
setState(_objectSpread$
|
27648
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27352
27649
|
data: data,
|
27353
27650
|
pagination: pagination,
|
27354
27651
|
loading: false,
|
@@ -27359,20 +27656,20 @@ function useTableData$1 (_ref) {
|
|
27359
27656
|
sorter: p.sorter
|
27360
27657
|
});
|
27361
27658
|
} else {
|
27362
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
27659
|
+
apiHandler.readList(configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27363
27660
|
filterContex: filterContex
|
27364
27661
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
27365
|
-
setState(_objectSpread$
|
27662
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27366
27663
|
data: data.data.map(function (dt) {
|
27367
|
-
return _objectSpread$
|
27664
|
+
return _objectSpread$t(_objectSpread$t({}, dt), {}, {
|
27368
27665
|
_id: dt._id || dt.ID || nanoid()
|
27369
27666
|
});
|
27370
27667
|
}),
|
27371
|
-
pagination: _objectSpread$
|
27668
|
+
pagination: _objectSpread$t(_objectSpread$t({}, p.pagination), {}, {
|
27372
27669
|
total: data.total
|
27373
27670
|
}),
|
27374
27671
|
loading: false,
|
27375
|
-
mappingData: _objectSpread$
|
27672
|
+
mappingData: _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27376
27673
|
filterContex: filterContex
|
27377
27674
|
})
|
27378
27675
|
}));
|
@@ -27393,7 +27690,7 @@ function useTableData$1 (_ref) {
|
|
27393
27690
|
filters['_id'] = [id, 'eq', false];
|
27394
27691
|
_context.next = 4;
|
27395
27692
|
return apiHandler.readList(configuration.mapping, {
|
27396
|
-
pagination: _objectSpread$
|
27693
|
+
pagination: _objectSpread$t({}, state.pagination),
|
27397
27694
|
columns: configuration.columns,
|
27398
27695
|
filters: filters,
|
27399
27696
|
sorter: filterData.sorter
|
@@ -27412,7 +27709,7 @@ function useTableData$1 (_ref) {
|
|
27412
27709
|
};
|
27413
27710
|
}();
|
27414
27711
|
var onSelect = function onSelect(keys) {
|
27415
|
-
setState(_objectSpread$
|
27712
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27416
27713
|
selected: keys
|
27417
27714
|
}));
|
27418
27715
|
};
|
@@ -27422,7 +27719,7 @@ function useTableData$1 (_ref) {
|
|
27422
27719
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
27423
27720
|
while (1) switch (_context3.prev = _context3.next) {
|
27424
27721
|
case 0:
|
27425
|
-
setState(_objectSpread$
|
27722
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27426
27723
|
deleting: true
|
27427
27724
|
}));
|
27428
27725
|
newData = _toConsumableArray(state.data);
|
@@ -27437,7 +27734,7 @@ function useTableData$1 (_ref) {
|
|
27437
27734
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
27438
27735
|
return nd._id === state.selected[index];
|
27439
27736
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
27440
|
-
mappingData = _objectSpread$
|
27737
|
+
mappingData = _objectSpread$t(_objectSpread$t({}, mappingData), state.mappingData);
|
27441
27738
|
_context2.next = 5;
|
27442
27739
|
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);
|
27443
27740
|
case 5:
|
@@ -27487,7 +27784,7 @@ function useTableData$1 (_ref) {
|
|
27487
27784
|
}
|
27488
27785
|
_context3.next = 18;
|
27489
27786
|
return apiHandler.readList(configuration.mapping, {
|
27490
|
-
pagination: _objectSpread$
|
27787
|
+
pagination: _objectSpread$t(_objectSpread$t({}, state.pagination), {}, {
|
27491
27788
|
current: current
|
27492
27789
|
}),
|
27493
27790
|
columns: configuration.columns,
|
@@ -27499,11 +27796,11 @@ function useTableData$1 (_ref) {
|
|
27499
27796
|
newData = data.data;
|
27500
27797
|
total = data.total;
|
27501
27798
|
case 21:
|
27502
|
-
setState(_objectSpread$
|
27799
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27503
27800
|
selected: [],
|
27504
27801
|
deleting: false,
|
27505
27802
|
data: newData,
|
27506
|
-
pagination: _objectSpread$
|
27803
|
+
pagination: _objectSpread$t(_objectSpread$t({}, state.pagination), {}, {
|
27507
27804
|
current: current,
|
27508
27805
|
total: total
|
27509
27806
|
})
|
@@ -27519,12 +27816,12 @@ function useTableData$1 (_ref) {
|
|
27519
27816
|
};
|
27520
27817
|
}();
|
27521
27818
|
function setLoading() {
|
27522
|
-
setState(_objectSpread$
|
27819
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27523
27820
|
loading: true
|
27524
27821
|
}));
|
27525
27822
|
}
|
27526
|
-
return _objectSpread$
|
27527
|
-
configuration: _objectSpread$
|
27823
|
+
return _objectSpread$t(_objectSpread$t({}, state), {}, {
|
27824
|
+
configuration: _objectSpread$t(_objectSpread$t({}, configuration), {}, {
|
27528
27825
|
title: undefined
|
27529
27826
|
}),
|
27530
27827
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
@@ -27636,8 +27933,8 @@ function objectHash (obj) {
|
|
27636
27933
|
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; } } }; }
|
27637
27934
|
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; } }
|
27638
27935
|
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; }
|
27639
|
-
function ownKeys$
|
27640
|
-
function _objectSpread$
|
27936
|
+
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; }
|
27937
|
+
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; }
|
27641
27938
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
27642
27939
|
function useTableData (_ref) {
|
27643
27940
|
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$filter4, _configuration$bulkAc, _configuration$apiInt;
|
@@ -27696,7 +27993,7 @@ function useTableData (_ref) {
|
|
27696
27993
|
var _useState13 = useState({
|
27697
27994
|
loading: true,
|
27698
27995
|
deleting: false,
|
27699
|
-
pagination: _objectSpread$
|
27996
|
+
pagination: _objectSpread$s({
|
27700
27997
|
current: 1,
|
27701
27998
|
pageSize: 20,
|
27702
27999
|
total: 0,
|
@@ -27705,7 +28002,7 @@ function useTableData (_ref) {
|
|
27705
28002
|
selected: [],
|
27706
28003
|
canDelete: !!apiHandler.canDelete,
|
27707
28004
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
27708
|
-
mappingData: _objectSpread$
|
28005
|
+
mappingData: _objectSpread$s(_objectSpread$s({}, parentData), {}, {
|
27709
28006
|
prefilter: {
|
27710
28007
|
select: globalFilter.select
|
27711
28008
|
},
|
@@ -27716,7 +28013,7 @@ function useTableData (_ref) {
|
|
27716
28013
|
_useState14 = _slicedToArray(_useState13, 2),
|
27717
28014
|
state = _useState14[0],
|
27718
28015
|
setState = _useState14[1];
|
27719
|
-
var mappingData = _objectSpread$
|
28016
|
+
var mappingData = _objectSpread$s(_objectSpread$s(_objectSpread$s({}, parentData), state.data), {}, {
|
27720
28017
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
27721
28018
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
27722
28019
|
});
|
@@ -27755,7 +28052,7 @@ function useTableData (_ref) {
|
|
27755
28052
|
}
|
27756
28053
|
var dataArray = Array.isArray(data) ? data : [data];
|
27757
28054
|
var newInitData = initData;
|
27758
|
-
var newState = _objectSpread$
|
28055
|
+
var newState = _objectSpread$s({}, state);
|
27759
28056
|
var selected = [];
|
27760
28057
|
if (configuration.deselectOnUpdate == false) {
|
27761
28058
|
selected = state.selected;
|
@@ -27772,7 +28069,7 @@ function useTableData (_ref) {
|
|
27772
28069
|
dataRow: dataRow
|
27773
28070
|
}),
|
27774
28071
|
_data = _updateData.data;
|
27775
|
-
newState = _objectSpread$
|
28072
|
+
newState = _objectSpread$s(_objectSpread$s({}, newState), {}, {
|
27776
28073
|
data: _data,
|
27777
28074
|
selected: selected
|
27778
28075
|
});
|
@@ -27784,8 +28081,8 @@ function useTableData (_ref) {
|
|
27784
28081
|
dataRow: dataRow
|
27785
28082
|
}),
|
27786
28083
|
nextInitData = _updateData2.data;
|
27787
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
27788
|
-
filters: _objectSpread$
|
28084
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$s(_objectSpread$s(_objectSpread$s({}, filterData), {}, {
|
28085
|
+
filters: _objectSpread$s(_objectSpread$s(_objectSpread$s(_objectSpread$s(_objectSpread$s(_objectSpread$s({}, 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"])
|
27789
28086
|
}, 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 ? {
|
27790
28087
|
genericProps: globalFilter.toggle
|
27791
28088
|
} : undefined), {}, {
|
@@ -27795,7 +28092,7 @@ function useTableData (_ref) {
|
|
27795
28092
|
_data2 = _applyFilterAndSortat.data,
|
27796
28093
|
pagination = _applyFilterAndSortat.pagination;
|
27797
28094
|
newInitData = nextInitData;
|
27798
|
-
newState = _objectSpread$
|
28095
|
+
newState = _objectSpread$s(_objectSpread$s({}, newState), {}, {
|
27799
28096
|
pagination: pagination,
|
27800
28097
|
data: _data2,
|
27801
28098
|
selected: selected
|
@@ -27805,8 +28102,8 @@ function useTableData (_ref) {
|
|
27805
28102
|
if (apiHandler.canCreate) {
|
27806
28103
|
apiCreate(data).then(function (res) {
|
27807
28104
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
27808
|
-
initData && setInitData(_objectSpread$
|
27809
|
-
setState(_objectSpread$
|
28105
|
+
initData && setInitData(_objectSpread$s({}, initData));
|
28106
|
+
setState(_objectSpread$s({}, state));
|
27810
28107
|
}
|
27811
28108
|
});
|
27812
28109
|
}
|
@@ -27819,7 +28116,7 @@ function useTableData (_ref) {
|
|
27819
28116
|
var triggerRefresh = function triggerRefresh() {
|
27820
28117
|
var _configuration$filter8;
|
27821
28118
|
setError(undefined);
|
27822
|
-
var newGlobalFilter = _objectSpread$
|
28119
|
+
var newGlobalFilter = _objectSpread$s({}, globalFilter);
|
27823
28120
|
//on refresh update default filter, since global value can change
|
27824
28121
|
if ((_configuration$filter8 = configuration.filter) !== null && _configuration$filter8 !== void 0 && _configuration$filter8["default"]) {
|
27825
28122
|
var _configuration$filter9;
|
@@ -27830,7 +28127,7 @@ function useTableData (_ref) {
|
|
27830
28127
|
newGlobalFilter["default"] = _defaultFilter;
|
27831
28128
|
setGlobaFilter(newGlobalFilter);
|
27832
28129
|
}
|
27833
|
-
onChange(_objectSpread$
|
28130
|
+
onChange(_objectSpread$s({
|
27834
28131
|
pagination: state.pagination
|
27835
28132
|
}, filterData), newGlobalFilter, true);
|
27836
28133
|
};
|
@@ -27848,7 +28145,7 @@ function useTableData (_ref) {
|
|
27848
28145
|
order: c.defaultSortOrder
|
27849
28146
|
};
|
27850
28147
|
});
|
27851
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
28148
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27852
28149
|
loading: false
|
27853
28150
|
}));else {
|
27854
28151
|
onChange({
|
@@ -27891,7 +28188,7 @@ function useTableData (_ref) {
|
|
27891
28188
|
case 0:
|
27892
28189
|
filters = {};
|
27893
28190
|
filters['_id'] = [id, 'eq', false];
|
27894
|
-
ssf = _objectSpread$
|
28191
|
+
ssf = _objectSpread$s({
|
27895
28192
|
pagination: {
|
27896
28193
|
current: 1,
|
27897
28194
|
pageSize: 1
|
@@ -27902,7 +28199,7 @@ function useTableData (_ref) {
|
|
27902
28199
|
genericProps: globalFilter.toggle
|
27903
28200
|
} : undefined);
|
27904
28201
|
_context2.next = 5;
|
27905
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
28202
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), ssf);
|
27906
28203
|
case 5:
|
27907
28204
|
data = _context2.sent;
|
27908
28205
|
return _context2.abrupt("return", data);
|
@@ -27946,12 +28243,12 @@ function useTableData (_ref) {
|
|
27946
28243
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
27947
28244
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
27948
28245
|
overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
|
27949
|
-
setState(_objectSpread$
|
28246
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27950
28247
|
mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
|
27951
28248
|
loading: true
|
27952
28249
|
}));
|
27953
28250
|
currentData = initData;
|
27954
|
-
filterData = _objectSpread$
|
28251
|
+
filterData = _objectSpread$s(_objectSpread$s(_objectSpread$s(_objectSpread$s({}, 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
|
27955
28252
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
|
27956
28253
|
var _ref7 = _slicedToArray(_ref6, 2);
|
27957
28254
|
_ref7[0];
|
@@ -27959,7 +28256,7 @@ function useTableData (_ref) {
|
|
27959
28256
|
return v != null;
|
27960
28257
|
}));
|
27961
28258
|
currentFilterHash = objectHash(filterData);
|
27962
|
-
currentPagination = _objectSpread$
|
28259
|
+
currentPagination = _objectSpread$s(_objectSpread$s({}, p.pagination), {}, {
|
27963
28260
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
27964
28261
|
});
|
27965
28262
|
filterHash.current = currentFilterHash;
|
@@ -27967,7 +28264,7 @@ function useTableData (_ref) {
|
|
27967
28264
|
_context3.next = 21;
|
27968
28265
|
break;
|
27969
28266
|
}
|
27970
|
-
ssf = _objectSpread$
|
28267
|
+
ssf = _objectSpread$s({
|
27971
28268
|
pagination: currentPagination,
|
27972
28269
|
columns: configuration.columns,
|
27973
28270
|
filters: filterData,
|
@@ -27976,12 +28273,12 @@ function useTableData (_ref) {
|
|
27976
28273
|
genericProps: prefilter.toggle
|
27977
28274
|
} : undefined);
|
27978
28275
|
_context3.next = 15;
|
27979
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
28276
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$s(_objectSpread$s({}, 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)));
|
27980
28277
|
case 15:
|
27981
28278
|
data = _context3.sent;
|
27982
|
-
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$
|
28279
|
+
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), ssf);
|
27983
28280
|
currentData = data.data;
|
27984
|
-
currentPagination = _objectSpread$
|
28281
|
+
currentPagination = _objectSpread$s(_objectSpread$s({}, currentPagination), {}, {
|
27985
28282
|
total: data.total
|
27986
28283
|
});
|
27987
28284
|
_context3.next = 30;
|
@@ -27998,7 +28295,7 @@ function useTableData (_ref) {
|
|
27998
28295
|
currentData = _data3.data;
|
27999
28296
|
setInitData(currentData);
|
28000
28297
|
case 27:
|
28001
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
28298
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$s(_objectSpread$s({}, p), {}, {
|
28002
28299
|
pagination: currentPagination,
|
28003
28300
|
filters: filterData,
|
28004
28301
|
data: currentData,
|
@@ -28007,11 +28304,11 @@ function useTableData (_ref) {
|
|
28007
28304
|
currentData = _data4;
|
28008
28305
|
currentPagination = pagination;
|
28009
28306
|
case 30:
|
28010
|
-
setState(_objectSpread$
|
28307
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28011
28308
|
loading: false,
|
28012
28309
|
data: currentData,
|
28013
28310
|
pagination: currentPagination,
|
28014
|
-
mappingData: _objectSpread$
|
28311
|
+
mappingData: _objectSpread$s(_objectSpread$s(_objectSpread$s(_objectSpread$s({}, parentData), state.mappingData), overwriteMappingData), {}, {
|
28015
28312
|
prefilter: prefilter
|
28016
28313
|
}),
|
28017
28314
|
currentFetchUrl: currentUrl
|
@@ -28033,7 +28330,7 @@ function useTableData (_ref) {
|
|
28033
28330
|
};
|
28034
28331
|
}();
|
28035
28332
|
var onSelect = function onSelect(keys) {
|
28036
|
-
setState(_objectSpread$
|
28333
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28037
28334
|
selected: keys
|
28038
28335
|
}));
|
28039
28336
|
};
|
@@ -28044,7 +28341,7 @@ function useTableData (_ref) {
|
|
28044
28341
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
28045
28342
|
while (1) switch (_context5.prev = _context5.next) {
|
28046
28343
|
case 0:
|
28047
|
-
setState(_objectSpread$
|
28344
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28048
28345
|
deleting: true
|
28049
28346
|
}));
|
28050
28347
|
newData = _toConsumableArray(state.data);
|
@@ -28084,7 +28381,7 @@ function useTableData (_ref) {
|
|
28084
28381
|
} finally {
|
28085
28382
|
_iterator.f();
|
28086
28383
|
}
|
28087
|
-
mappingData = _objectSpread$
|
28384
|
+
mappingData = _objectSpread$s(_objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), mapToggle);
|
28088
28385
|
deleteResult = undefined;
|
28089
28386
|
_context4.prev = 7;
|
28090
28387
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
@@ -28174,12 +28471,12 @@ function useTableData (_ref) {
|
|
28174
28471
|
break;
|
28175
28472
|
}
|
28176
28473
|
_context5.next = 25;
|
28177
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
28178
|
-
pagination: _objectSpread$
|
28474
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), _objectSpread$s({
|
28475
|
+
pagination: _objectSpread$s(_objectSpread$s({}, state.pagination), {}, {
|
28179
28476
|
current: current
|
28180
28477
|
}),
|
28181
28478
|
columns: configuration.columns,
|
28182
|
-
filters: _objectSpread$
|
28479
|
+
filters: _objectSpread$s(_objectSpread$s(_objectSpread$s(_objectSpread$s(_objectSpread$s(_objectSpread$s({}, 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"]),
|
28183
28480
|
sorter: filterData.sorter
|
28184
28481
|
}, 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 ? {
|
28185
28482
|
genericProps: globalFilter.toggle
|
@@ -28190,11 +28487,11 @@ function useTableData (_ref) {
|
|
28190
28487
|
total = data.total;
|
28191
28488
|
case 28:
|
28192
28489
|
setInitData(newInitData);
|
28193
|
-
setState(_objectSpread$
|
28490
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28194
28491
|
selected: [],
|
28195
28492
|
deleting: false,
|
28196
28493
|
data: newData,
|
28197
|
-
pagination: _objectSpread$
|
28494
|
+
pagination: _objectSpread$s(_objectSpread$s({}, state.pagination), {}, {
|
28198
28495
|
current: current === 0 ? 1 : current,
|
28199
28496
|
total: total
|
28200
28497
|
})
|
@@ -28215,14 +28512,14 @@ function useTableData (_ref) {
|
|
28215
28512
|
LOG$2.error(new DivaError('No global select filter defiend'));
|
28216
28513
|
return;
|
28217
28514
|
}
|
28218
|
-
var newGlobalFilter = _objectSpread$
|
28515
|
+
var newGlobalFilter = _objectSpread$s({}, globalFilter);
|
28219
28516
|
if (value !== null && value !== void 0 && value.length) {
|
28220
28517
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
|
28221
28518
|
} else {
|
28222
28519
|
newGlobalFilter.select = {};
|
28223
28520
|
}
|
28224
28521
|
setGlobaFilter(newGlobalFilter);
|
28225
|
-
onChange(_objectSpread$
|
28522
|
+
onChange(_objectSpread$s({
|
28226
28523
|
pagination: state.pagination
|
28227
28524
|
}, filterData), newGlobalFilter);
|
28228
28525
|
};
|
@@ -28233,16 +28530,16 @@ function useTableData (_ref) {
|
|
28233
28530
|
return;
|
28234
28531
|
}
|
28235
28532
|
var toggleFilter = {};
|
28236
|
-
var mappingData = _objectSpread$
|
28533
|
+
var mappingData = _objectSpread$s({}, state.mappingData);
|
28237
28534
|
configuration.filter.toggle.fields.forEach(function (f) {
|
28238
28535
|
mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
|
28239
28536
|
toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
28240
28537
|
});
|
28241
|
-
var newGlobalFilter = _objectSpread$
|
28538
|
+
var newGlobalFilter = _objectSpread$s(_objectSpread$s({}, globalFilter), {}, {
|
28242
28539
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
28243
28540
|
});
|
28244
28541
|
setGlobaFilter(newGlobalFilter);
|
28245
|
-
onChange(_objectSpread$
|
28542
|
+
onChange(_objectSpread$s({
|
28246
28543
|
pagination: state.pagination
|
28247
28544
|
}, filterData), newGlobalFilter, true, true, mappingData);
|
28248
28545
|
};
|
@@ -28255,7 +28552,7 @@ function useTableData (_ref) {
|
|
28255
28552
|
LOG$2.error(new DivaError('No global search filter defiend'));
|
28256
28553
|
return;
|
28257
28554
|
}
|
28258
|
-
var newGlobalFilter = _objectSpread$
|
28555
|
+
var newGlobalFilter = _objectSpread$s(_objectSpread$s({}, globalFilter), {}, {
|
28259
28556
|
search: {}
|
28260
28557
|
});
|
28261
28558
|
if (value) {
|
@@ -28269,7 +28566,7 @@ function useTableData (_ref) {
|
|
28269
28566
|
});
|
28270
28567
|
}
|
28271
28568
|
setGlobaFilter(newGlobalFilter);
|
28272
|
-
onChange(_objectSpread$
|
28569
|
+
onChange(_objectSpread$s({
|
28273
28570
|
pagination: state.pagination
|
28274
28571
|
}, filterData), newGlobalFilter);
|
28275
28572
|
};
|
@@ -28279,20 +28576,20 @@ function useTableData (_ref) {
|
|
28279
28576
|
LOG$2.error(new DivaError('No global period filter defiend'));
|
28280
28577
|
return;
|
28281
28578
|
}
|
28282
|
-
var newGlobalFilter = _objectSpread$
|
28579
|
+
var newGlobalFilter = _objectSpread$s({}, globalFilter);
|
28283
28580
|
newGlobalFilter.timeStamp = {
|
28284
28581
|
fromTimeStamp: [from],
|
28285
28582
|
toTimeStamp: [to]
|
28286
28583
|
};
|
28287
28584
|
if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
|
28288
|
-
onChange(_objectSpread$
|
28585
|
+
onChange(_objectSpread$s({
|
28289
28586
|
pagination: state.pagination
|
28290
|
-
}, filterData), undefined, true, undefined, _objectSpread$
|
28587
|
+
}, filterData), undefined, true, undefined, _objectSpread$s(_objectSpread$s({}, state.mappingData), {}, {
|
28291
28588
|
from: from,
|
28292
28589
|
to: to
|
28293
28590
|
}));
|
28294
28591
|
};
|
28295
|
-
return _objectSpread$
|
28592
|
+
return _objectSpread$s(_objectSpread$s({}, state), {}, {
|
28296
28593
|
title: title,
|
28297
28594
|
configuration: configuration,
|
28298
28595
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
|
@@ -28334,8 +28631,8 @@ function StandardTable (_ref) {
|
|
28334
28631
|
});
|
28335
28632
|
}
|
28336
28633
|
|
28337
|
-
function ownKeys$
|
28338
|
-
function _objectSpread$
|
28634
|
+
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; }
|
28635
|
+
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; }
|
28339
28636
|
function Table (props) {
|
28340
28637
|
var root = useStore();
|
28341
28638
|
var variant = useMemo(function () {
|
@@ -28343,15 +28640,15 @@ function Table (props) {
|
|
28343
28640
|
return config.variant;
|
28344
28641
|
}, [props.id]);
|
28345
28642
|
return /*#__PURE__*/jsxs(Fragment, {
|
28346
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
28643
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$r({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$r({}, props))]
|
28347
28644
|
});
|
28348
28645
|
}
|
28349
28646
|
|
28350
28647
|
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; } } }; }
|
28351
28648
|
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; } }
|
28352
28649
|
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; }
|
28353
|
-
function ownKeys$
|
28354
|
-
function _objectSpread$
|
28650
|
+
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; }
|
28651
|
+
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; }
|
28355
28652
|
function useAGGrid (_ref) {
|
28356
28653
|
var id = _ref.id,
|
28357
28654
|
filter = _ref.filter,
|
@@ -28445,7 +28742,7 @@ function useAGGrid (_ref) {
|
|
28445
28742
|
value = _ref3[1];
|
28446
28743
|
if (_idx == 0) {
|
28447
28744
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
28448
|
-
rdat.push(_objectSpread$
|
28745
|
+
rdat.push(_objectSpread$q(_objectSpread$q({}, rd), {}, {
|
28449
28746
|
grouping: [idx.toString()]
|
28450
28747
|
}));
|
28451
28748
|
var sp = key.split(':');
|
@@ -28585,11 +28882,11 @@ var loader = "loader-LaXZy";
|
|
28585
28882
|
var flex = "flex-yQdda";
|
28586
28883
|
var bar = "bar-Y663f";
|
28587
28884
|
var value = "value-FCA-6";
|
28588
|
-
var css_248z$
|
28589
|
-
styleInject(css_248z$
|
28885
|
+
var css_248z$i = ".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";
|
28886
|
+
styleInject(css_248z$i);
|
28590
28887
|
|
28591
|
-
function ownKeys$
|
28592
|
-
function _objectSpread$
|
28888
|
+
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; }
|
28889
|
+
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; }
|
28593
28890
|
var AGChart = function AGChart(_ref) {
|
28594
28891
|
var data = _ref.data;
|
28595
28892
|
var groupedData = [];
|
@@ -28597,11 +28894,11 @@ var AGChart = function AGChart(_ref) {
|
|
28597
28894
|
data.forEach(function (dt) {
|
28598
28895
|
if (dt.count == 0) return;
|
28599
28896
|
if (groupedData.length > dt.grouping[0]) {
|
28600
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
28897
|
+
groupedData[dt.grouping[0]].push(_objectSpread$p(_objectSpread$p({}, dt), {}, {
|
28601
28898
|
count: Number(dt.count)
|
28602
28899
|
}));
|
28603
28900
|
} else {
|
28604
|
-
groupedData.push([_objectSpread$
|
28901
|
+
groupedData.push([_objectSpread$p(_objectSpread$p({}, dt), {}, {
|
28605
28902
|
count: Number(dt.count)
|
28606
28903
|
})]);
|
28607
28904
|
}
|
@@ -28642,8 +28939,8 @@ var AGChart = function AGChart(_ref) {
|
|
28642
28939
|
});
|
28643
28940
|
};
|
28644
28941
|
|
28645
|
-
function ownKeys$
|
28646
|
-
function _objectSpread$
|
28942
|
+
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; }
|
28943
|
+
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; }
|
28647
28944
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
28648
28945
|
var id = _ref.id,
|
28649
28946
|
filter = _ref.filter,
|
@@ -28736,7 +29033,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
28736
29033
|
});
|
28737
29034
|
});
|
28738
29035
|
}
|
28739
|
-
return _objectSpread$
|
29036
|
+
return _objectSpread$o(_objectSpread$o({}, column), {}, {
|
28740
29037
|
cellRenderer: renderer
|
28741
29038
|
});
|
28742
29039
|
});
|
@@ -29006,8 +29303,8 @@ var CustomText = function CustomText(_ref) {
|
|
29006
29303
|
};
|
29007
29304
|
var CustomText$1 = observer(CustomText);
|
29008
29305
|
|
29009
|
-
function ownKeys$
|
29010
|
-
function _objectSpread$
|
29306
|
+
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; }
|
29307
|
+
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; }
|
29011
29308
|
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; } } }; }
|
29012
29309
|
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; } }
|
29013
29310
|
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; }
|
@@ -29070,7 +29367,7 @@ function useFilterBoxData (id) {
|
|
29070
29367
|
} finally {
|
29071
29368
|
_iterator.f();
|
29072
29369
|
}
|
29073
|
-
return _objectSpread$
|
29370
|
+
return _objectSpread$n(_objectSpread$n({}, state), ob);
|
29074
29371
|
}
|
29075
29372
|
return {
|
29076
29373
|
configuration: configuration,
|
@@ -29084,8 +29381,8 @@ function useFilterBoxData (id) {
|
|
29084
29381
|
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; } } }; }
|
29085
29382
|
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; } }
|
29086
29383
|
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; }
|
29087
|
-
function ownKeys$
|
29088
|
-
function _objectSpread$
|
29384
|
+
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; }
|
29385
|
+
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; }
|
29089
29386
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
29090
29387
|
var id = _ref.id,
|
29091
29388
|
onChangeFilter = _ref.onChangeFilter,
|
@@ -29113,7 +29410,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
29113
29410
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
|
29114
29411
|
mode: "single",
|
29115
29412
|
apiInterface: filter.requestOptions,
|
29116
|
-
wholeData: _objectSpread$
|
29413
|
+
wholeData: _objectSpread$m(_objectSpread$m({}, state.filter), {}, {
|
29117
29414
|
tab: tab
|
29118
29415
|
}),
|
29119
29416
|
mapping: filter.requestMapping,
|
@@ -29345,8 +29642,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
29345
29642
|
return false;
|
29346
29643
|
});
|
29347
29644
|
|
29348
|
-
function ownKeys$
|
29349
|
-
function _objectSpread$
|
29645
|
+
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; }
|
29646
|
+
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; }
|
29350
29647
|
function useUIBuilderData (id) {
|
29351
29648
|
var save = undefined;
|
29352
29649
|
var root = useStore();
|
@@ -29378,7 +29675,7 @@ function useUIBuilderData (id) {
|
|
29378
29675
|
var configuration = _useMemo.configuration;
|
29379
29676
|
useEffect(function () {
|
29380
29677
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
29381
|
-
return setFilter(_objectSpread$
|
29678
|
+
return setFilter(_objectSpread$l(_objectSpread$l({}, filter), {}, {
|
29382
29679
|
sessionGuid: res
|
29383
29680
|
}));
|
29384
29681
|
});
|
@@ -29401,8 +29698,8 @@ function useUIBuilderData (id) {
|
|
29401
29698
|
};
|
29402
29699
|
}
|
29403
29700
|
|
29404
|
-
function ownKeys$
|
29405
|
-
function _objectSpread$
|
29701
|
+
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; }
|
29702
|
+
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; }
|
29406
29703
|
function UIBuilder(_ref) {
|
29407
29704
|
var id = _ref.id;
|
29408
29705
|
var state = useUIBuilderData(id);
|
@@ -29429,7 +29726,7 @@ function UIBuilder(_ref) {
|
|
29429
29726
|
override = {
|
29430
29727
|
value: newFilter[item.field],
|
29431
29728
|
setValue: function setValue(newVal) {
|
29432
|
-
var newFilter = _objectSpread$
|
29729
|
+
var newFilter = _objectSpread$k({}, state.filter);
|
29433
29730
|
newFilter[item.field] = newVal;
|
29434
29731
|
state.setFilter(newFilter);
|
29435
29732
|
}
|
@@ -29477,7 +29774,7 @@ function UIBuilder(_ref) {
|
|
29477
29774
|
case 'AGGrid':
|
29478
29775
|
return /*#__PURE__*/jsx(AGGrid, {
|
29479
29776
|
id: item.id,
|
29480
|
-
filter: _objectSpread$
|
29777
|
+
filter: _objectSpread$k({
|
29481
29778
|
optionCodices: JSON.stringify(state.data)
|
29482
29779
|
}, state.filter),
|
29483
29780
|
override: item.id == 'AGGridTopOptionValues' ? {
|
@@ -29531,8 +29828,8 @@ var retailerChild = "retailer-child-5ll0K";
|
|
29531
29828
|
var supplier = "supplier-8sm0I";
|
29532
29829
|
var dealer = "dealer-xgnku";
|
29533
29830
|
var association = "association-b8uVW";
|
29534
|
-
var css_248z$
|
29535
|
-
styleInject(css_248z$
|
29831
|
+
var css_248z$h = ".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";
|
29832
|
+
styleInject(css_248z$h);
|
29536
29833
|
|
29537
29834
|
function getColorClass(data) {
|
29538
29835
|
switch (data.type) {
|
@@ -29637,8 +29934,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
29637
29934
|
};
|
29638
29935
|
var OrgItem$1 = observer(OrgItem);
|
29639
29936
|
|
29640
|
-
function ownKeys$
|
29641
|
-
function _objectSpread$
|
29937
|
+
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; }
|
29938
|
+
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; }
|
29642
29939
|
function useTransformJson (_ref) {
|
29643
29940
|
var id = _ref.id;
|
29644
29941
|
var _useState = useState(),
|
@@ -29704,7 +30001,7 @@ function useTransformJson (_ref) {
|
|
29704
30001
|
}();
|
29705
30002
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
29706
30003
|
var _data$children;
|
29707
|
-
return _objectSpread$
|
30004
|
+
return _objectSpread$j(_objectSpread$j({}, data), {}, {
|
29708
30005
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
29709
30006
|
data: data,
|
29710
30007
|
configuration: configuration,
|
@@ -29765,8 +30062,8 @@ var openClass = "open-class--gGXs";
|
|
29765
30062
|
var breadcrumb = "breadcrumb-Z0VvH";
|
29766
30063
|
var selected = "selected-w-sfW";
|
29767
30064
|
var disabled$2 = "disabled-0nado";
|
29768
|
-
var css_248z$
|
29769
|
-
styleInject(css_248z$
|
30065
|
+
var css_248z$g = ".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";
|
30066
|
+
styleInject(css_248z$g);
|
29770
30067
|
|
29771
30068
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
29772
30069
|
var open = _ref.open,
|
@@ -29799,8 +30096,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
29799
30096
|
|
29800
30097
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
29801
30098
|
var toolbarLeft = "toolbar-left-X9WRo";
|
29802
|
-
var css_248z$
|
29803
|
-
styleInject(css_248z$
|
30099
|
+
var css_248z$f = ".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";
|
30100
|
+
styleInject(css_248z$f);
|
29804
30101
|
|
29805
30102
|
var Legend = function Legend(props) {
|
29806
30103
|
return /*#__PURE__*/jsx(List$1, {
|
@@ -29854,8 +30151,8 @@ var Legend = function Legend(props) {
|
|
29854
30151
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
29855
30152
|
var mask = "mask-ssagp";
|
29856
30153
|
var transformWrapper = "transform-wrapper--8t0v";
|
29857
|
-
var css_248z$
|
29858
|
-
styleInject(css_248z$
|
30154
|
+
var css_248z$e = ".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";
|
30155
|
+
styleInject(css_248z$e);
|
29859
30156
|
|
29860
30157
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
29861
30158
|
var _children = _ref.children,
|
@@ -30365,8 +30662,8 @@ function useCatalogEditor (id) {
|
|
30365
30662
|
};
|
30366
30663
|
}
|
30367
30664
|
|
30368
|
-
function ownKeys$
|
30369
|
-
function _objectSpread$
|
30665
|
+
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; }
|
30666
|
+
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; }
|
30370
30667
|
function DragDropUpload(_ref) {
|
30371
30668
|
var api2Params = _ref.api2Params,
|
30372
30669
|
catalogId = _ref.catalogId,
|
@@ -30474,7 +30771,7 @@ function DragDropUpload(_ref) {
|
|
30474
30771
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
30475
30772
|
children: t('backoffice.catalogeditor.classimportstarted')
|
30476
30773
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
30477
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
30774
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$i(_objectSpread$i({}, props), {}, {
|
30478
30775
|
children: [/*#__PURE__*/jsx("p", {
|
30479
30776
|
className: "ant-upload-drag-icon",
|
30480
30777
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
@@ -30691,12 +30988,12 @@ function CatalogEditor(_ref) {
|
|
30691
30988
|
}
|
30692
30989
|
var CatalogEditor$1 = observer(CatalogEditor);
|
30693
30990
|
|
30694
|
-
function ownKeys$
|
30695
|
-
function _objectSpread$
|
30991
|
+
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; }
|
30992
|
+
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; }
|
30696
30993
|
var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
|
30697
30994
|
var _root$contentStore$bo, _root$contentStore$ri;
|
30698
30995
|
var root = useStore();
|
30699
|
-
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$
|
30996
|
+
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$h(_objectSpread$h({}, props), {}, {
|
30700
30997
|
ref: ref,
|
30701
30998
|
darkMode: root.contentStore.theme == 'darkmode',
|
30702
30999
|
jwt: root.dataStore.jwt,
|
@@ -30707,8 +31004,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
30707
31004
|
});
|
30708
31005
|
var Spreadsheet = observer(SpreadsheetWrapper);
|
30709
31006
|
|
30710
|
-
function ownKeys$
|
30711
|
-
function _objectSpread$
|
31007
|
+
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; }
|
31008
|
+
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; }
|
30712
31009
|
|
30713
31010
|
// Type definition for the context state
|
30714
31011
|
|
@@ -30730,14 +31027,14 @@ var useEnricherContext = function useEnricherContext() {
|
|
30730
31027
|
loading: loading,
|
30731
31028
|
setOptions: function setOptions(options) {
|
30732
31029
|
var state = root.contextStore.getContext('enricher');
|
30733
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
31030
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$g(_objectSpread$g({}, state[stateKey]), {}, {
|
30734
31031
|
options: options,
|
30735
31032
|
loading: false
|
30736
31033
|
})));
|
30737
31034
|
},
|
30738
31035
|
setLoading: function setLoading(loading) {
|
30739
31036
|
var state = root.contextStore.getContext('enricher');
|
30740
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
31037
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$g(_objectSpread$g({}, state[stateKey]), {}, {
|
30741
31038
|
loading: loading
|
30742
31039
|
})));
|
30743
31040
|
}
|
@@ -30833,7 +31130,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
30833
31130
|
}, [urlPackageId, getContext().packageId, setSelectedPackage]);
|
30834
31131
|
|
30835
31132
|
// Return context + handlers
|
30836
|
-
return _objectSpread$
|
31133
|
+
return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
|
30837
31134
|
setSelectedSerie: setSelectedSerie,
|
30838
31135
|
setSelectedFeature: setSelectedFeature,
|
30839
31136
|
setSelectedPackage: setSelectedPackage
|
@@ -31094,51 +31391,6 @@ function useModule$1 (currentModules) {
|
|
31094
31391
|
//update the navigation supmenu for the packages module to include the current package id
|
31095
31392
|
root.contentStore.updateAdditionalElement('packages', menuItems, currentModules);
|
31096
31393
|
}, [menuItems, location.pathname]);
|
31097
|
-
|
31098
|
-
//updating tools
|
31099
|
-
|
31100
|
-
useEffect(function () {
|
31101
|
-
var tools = [];
|
31102
|
-
if (selectedPackage !== null && selectedPackage !== void 0 && selectedPackage._id) {
|
31103
|
-
if (selectedPackage.isApi) {
|
31104
|
-
tools.push({
|
31105
|
-
name: 'Konfigurator',
|
31106
|
-
parameters: {
|
31107
|
-
packageId: selectedPackage._id
|
31108
|
-
},
|
31109
|
-
type: 'Configurator',
|
31110
|
-
id: 'WYSIWYG',
|
31111
|
-
startWidth: 600,
|
31112
|
-
elementProps: {
|
31113
|
-
loadMask: true
|
31114
|
-
},
|
31115
|
-
defaultPinned: true
|
31116
|
-
});
|
31117
|
-
} else {
|
31118
|
-
tools.push({
|
31119
|
-
name: 'Konfigurator',
|
31120
|
-
parameters: {
|
31121
|
-
packageId: selectedPackage._id,
|
31122
|
-
isIDMData: '1'
|
31123
|
-
},
|
31124
|
-
type: 'Configurator',
|
31125
|
-
id: 'WYSIWYG',
|
31126
|
-
startWidth: 600,
|
31127
|
-
elementProps: {
|
31128
|
-
useEnricherService: true,
|
31129
|
-
loadPackage: true,
|
31130
|
-
packageId: selectedPackage._id,
|
31131
|
-
showCatalogSelection: true
|
31132
|
-
},
|
31133
|
-
defaultPinned: true
|
31134
|
-
});
|
31135
|
-
}
|
31136
|
-
}
|
31137
|
-
root.contentStore.rightToolBar.tools = tools;
|
31138
|
-
return function () {
|
31139
|
-
root.contentStore.rightToolBar.tools = [];
|
31140
|
-
};
|
31141
|
-
}, [selectedPackage]);
|
31142
31394
|
return {
|
31143
31395
|
selectedPackage: selectedPackage,
|
31144
31396
|
packageId: packageId,
|
@@ -31197,6 +31449,117 @@ function createTranslatedColumnConfig(field, headerName, languages) {
|
|
31197
31449
|
};
|
31198
31450
|
}
|
31199
31451
|
|
31452
|
+
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; }
|
31453
|
+
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; }
|
31454
|
+
var useTools = function useTools(_ref) {
|
31455
|
+
var catalogId = _ref.catalogId,
|
31456
|
+
packageId = _ref.packageId,
|
31457
|
+
isApi2 = _ref.isApi2,
|
31458
|
+
mainInformationWindowCodex = _ref.mainInformationWindowCodex;
|
31459
|
+
var root = useStore();
|
31460
|
+
var _useState = useState([]),
|
31461
|
+
_useState2 = _slicedToArray(_useState, 2),
|
31462
|
+
secondaryTables = _useState2[0],
|
31463
|
+
setSecondaryTables = _useState2[1];
|
31464
|
+
var openInformationWindow = useCallback(function (codex, open) {
|
31465
|
+
root.contentStore.rightToolBar.addTools({
|
31466
|
+
id: 'info',
|
31467
|
+
name: 'Information',
|
31468
|
+
type: 'InformationWindow',
|
31469
|
+
parameters: {
|
31470
|
+
contentItemCodex: codex
|
31471
|
+
},
|
31472
|
+
defaultOpen: open
|
31473
|
+
});
|
31474
|
+
if (open) {
|
31475
|
+
root.contentStore.rightToolBar.selectTool('info');
|
31476
|
+
root.contentStore.rightToolBar.hidden = false;
|
31477
|
+
}
|
31478
|
+
}, [root.contentStore.rightToolBar]);
|
31479
|
+
var addSecondaryTables = useCallback(function () {
|
31480
|
+
var _root$contentStore$bo;
|
31481
|
+
for (var _len = arguments.length, tools = new Array(_len), _key = 0; _key < _len; _key++) {
|
31482
|
+
tools[_key] = arguments[_key];
|
31483
|
+
}
|
31484
|
+
var newSecondaryTables = tools.map(function (tool) {
|
31485
|
+
return _objectSpread$f({
|
31486
|
+
startWidth: 300,
|
31487
|
+
defaultPinned: false,
|
31488
|
+
defaultOpen: false
|
31489
|
+
}, tool);
|
31490
|
+
});
|
31491
|
+
(_root$contentStore$bo = root.contentStore.bottomToolBar).addTools.apply(_root$contentStore$bo, _toConsumableArray(newSecondaryTables));
|
31492
|
+
setSecondaryTables([].concat(_toConsumableArray(secondaryTables), _toConsumableArray(newSecondaryTables)));
|
31493
|
+
}, [root.contentStore.bottomToolBar]);
|
31494
|
+
var removeSecondaryTables = useCallback(function () {
|
31495
|
+
var _root$contentStore$bo2;
|
31496
|
+
for (var _len2 = arguments.length, ids = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
31497
|
+
ids[_key2] = arguments[_key2];
|
31498
|
+
}
|
31499
|
+
(_root$contentStore$bo2 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo2, ids);
|
31500
|
+
setSecondaryTables(secondaryTables.filter(function (table) {
|
31501
|
+
return !ids.includes(table.id);
|
31502
|
+
}));
|
31503
|
+
}, [root.contentStore.bottomToolBar, secondaryTables]);
|
31504
|
+
useEffect(function () {
|
31505
|
+
var _root$contentStore$ri;
|
31506
|
+
var tools = [];
|
31507
|
+
if (catalogId || packageId) {
|
31508
|
+
tools.push({
|
31509
|
+
id: 'WYSIWYG',
|
31510
|
+
name: 'Konfigurator',
|
31511
|
+
type: 'Configurator',
|
31512
|
+
parameters: {
|
31513
|
+
catalogId: catalogId,
|
31514
|
+
packageId: packageId,
|
31515
|
+
isIDMData: !isApi2 ? '1' : undefined
|
31516
|
+
},
|
31517
|
+
startWidth: 600,
|
31518
|
+
defaultPinned: true,
|
31519
|
+
elementProps: catalogId ? {
|
31520
|
+
// open configurator for idm catalog
|
31521
|
+
useIDMService: true,
|
31522
|
+
catalogId: catalogId,
|
31523
|
+
showCatalogSelection: true
|
31524
|
+
} : isApi2 ? {
|
31525
|
+
// open configurator for api2 package (configurator light)
|
31526
|
+
loadMask: true
|
31527
|
+
} : {
|
31528
|
+
// open configurator for idm package
|
31529
|
+
useEnricherService: true,
|
31530
|
+
loadPackage: true,
|
31531
|
+
packageId: packageId,
|
31532
|
+
showCatalogSelection: true
|
31533
|
+
}
|
31534
|
+
});
|
31535
|
+
}
|
31536
|
+
if (mainInformationWindowCodex) {
|
31537
|
+
tools.push({
|
31538
|
+
id: 'info',
|
31539
|
+
name: 'Information',
|
31540
|
+
type: 'InformationWindow',
|
31541
|
+
parameters: {
|
31542
|
+
contentItemCodex: mainInformationWindowCodex
|
31543
|
+
},
|
31544
|
+
defaultOpen: false
|
31545
|
+
});
|
31546
|
+
}
|
31547
|
+
(_root$contentStore$ri = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri, tools);
|
31548
|
+
return function () {
|
31549
|
+
var _root$contentStore$bo3;
|
31550
|
+
root.contentStore.rightToolBar.removeTools('WYSIWYG', 'info');
|
31551
|
+
(_root$contentStore$bo3 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo3, _toConsumableArray(secondaryTables.map(function (table) {
|
31552
|
+
return table.id;
|
31553
|
+
})));
|
31554
|
+
};
|
31555
|
+
}, []);
|
31556
|
+
return {
|
31557
|
+
openInformationWindow: openInformationWindow,
|
31558
|
+
addSecondaryTables: addSecondaryTables,
|
31559
|
+
removeSecondaryTables: removeSecondaryTables
|
31560
|
+
};
|
31561
|
+
};
|
31562
|
+
|
31200
31563
|
var TableGroups = observer(function () {
|
31201
31564
|
var _useTranslation = useTranslation(),
|
31202
31565
|
t = _useTranslation.t;
|
@@ -31205,6 +31568,10 @@ var TableGroups = observer(function () {
|
|
31205
31568
|
organizationId = _useModule.organizationId,
|
31206
31569
|
apiConfig = _useModule.apiConfig,
|
31207
31570
|
selectedPackage = _useModule.selectedPackage;
|
31571
|
+
useTools({
|
31572
|
+
packageId: packageId,
|
31573
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
31574
|
+
});
|
31208
31575
|
var applicationData = useMemo(function () {
|
31209
31576
|
return {
|
31210
31577
|
packageId: packageId,
|
@@ -31776,6 +32143,7 @@ var TablePackages = observer(function () {
|
|
31776
32143
|
contextHolder = modalState.contextHolder;
|
31777
32144
|
var _useEnricherContext = useEnricherContext([]),
|
31778
32145
|
setSelectedPackage = _useEnricherContext.setSelectedPackage;
|
32146
|
+
useTools({});
|
31779
32147
|
var organizationId = root.dataStore.organizationId;
|
31780
32148
|
var apiConfig = root.configurationStore.apiConfig;
|
31781
32149
|
var applicationData = useMemo(function () {
|
@@ -32028,6 +32396,10 @@ var TableProperties = observer(function () {
|
|
32028
32396
|
organizationId = _useModule.organizationId,
|
32029
32397
|
apiConfig = _useModule.apiConfig,
|
32030
32398
|
selectedPackage = _useModule.selectedPackage;
|
32399
|
+
useTools({
|
32400
|
+
packageId: packageId,
|
32401
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
32402
|
+
});
|
32031
32403
|
var applicationData = useMemo(function () {
|
32032
32404
|
return {
|
32033
32405
|
packageId: packageId,
|
@@ -32814,6 +33186,10 @@ var RenamingTable = observer(function (_ref) {
|
|
32814
33186
|
apiConfig = _useModule.apiConfig,
|
32815
33187
|
selectedPackage = _useModule.selectedPackage,
|
32816
33188
|
selectedSerie = _useModule.selectedSerie;
|
33189
|
+
useTools({
|
33190
|
+
packageId: packageId,
|
33191
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33192
|
+
});
|
32817
33193
|
var baseConfiguration = useMemo(function () {
|
32818
33194
|
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
|
32819
33195
|
}, [selectedPackage, i18n.language]);
|
@@ -33073,12 +33449,18 @@ function getConfig(t) {
|
|
33073
33449
|
headerName: 'backoffice.idmEnricher.exclusivity.label.validFrom',
|
33074
33450
|
field: 'validFromDate',
|
33075
33451
|
cellDataType: 'dateString',
|
33076
|
-
editable: false
|
33452
|
+
editable: false,
|
33453
|
+
customParams: {
|
33454
|
+
dateFormat: 'DD.MM.YYYY'
|
33455
|
+
}
|
33077
33456
|
}, {
|
33078
33457
|
field: 'validUntilDate',
|
33079
33458
|
headerName: 'backoffice.idmEnricher.exclusivity.label.validUntil',
|
33080
33459
|
cellDataType: 'dateString',
|
33081
|
-
editable: false
|
33460
|
+
editable: false,
|
33461
|
+
customParams: {
|
33462
|
+
dateFormat: 'DD.MM.YYYY'
|
33463
|
+
}
|
33082
33464
|
}]
|
33083
33465
|
},
|
33084
33466
|
item: {
|
@@ -33118,12 +33500,18 @@ function getConfig(t) {
|
|
33118
33500
|
headerName: 'backoffice.idmEnricher.exclusivity.label.validFrom',
|
33119
33501
|
field: 'validFromDate',
|
33120
33502
|
cellDataType: 'dateString',
|
33121
|
-
editable: false
|
33503
|
+
editable: false,
|
33504
|
+
customParams: {
|
33505
|
+
dateFormat: 'DD.MM.YYYY'
|
33506
|
+
}
|
33122
33507
|
}, {
|
33123
33508
|
headerName: 'backoffice.idmEnricher.exclusivity.label.validUntil',
|
33124
33509
|
field: 'validUntilDate',
|
33125
33510
|
cellDataType: 'dateString',
|
33126
|
-
editable: false
|
33511
|
+
editable: false,
|
33512
|
+
customParams: {
|
33513
|
+
dateFormat: 'DD.MM.YYYY'
|
33514
|
+
}
|
33127
33515
|
}, {
|
33128
33516
|
headerName: 'backoffice.idmEnricher.exclusivity.label.weightBrutto',
|
33129
33517
|
field: 'weightBrutto',
|
@@ -33232,12 +33620,18 @@ function getConfig(t) {
|
|
33232
33620
|
headerName: 'backoffice.idmEnricher.exclusivity.label.validFrom',
|
33233
33621
|
field: 'validFromDate',
|
33234
33622
|
cellDataType: 'dateString',
|
33235
|
-
editable: false
|
33623
|
+
editable: false,
|
33624
|
+
customParams: {
|
33625
|
+
dateFormat: 'DD.MM.YYYY'
|
33626
|
+
}
|
33236
33627
|
}, {
|
33237
33628
|
headerName: 'backoffice.idmEnricher.exclusivity.label.validUntil',
|
33238
33629
|
field: 'validUntilDate',
|
33239
33630
|
cellDataType: 'dateString',
|
33240
|
-
editable: false
|
33631
|
+
editable: false,
|
33632
|
+
customParams: {
|
33633
|
+
dateFormat: 'DD.MM.YYYY'
|
33634
|
+
}
|
33241
33635
|
}, {
|
33242
33636
|
field: 'materialId',
|
33243
33637
|
headerName: 'backoffice.idmEnricher.exclusivity.label.materialId',
|
@@ -33356,6 +33750,10 @@ var ExclusivityTable = observer(function (_ref) {
|
|
33356
33750
|
organizationId = _useModule.organizationId,
|
33357
33751
|
selectedPackage = _useModule.selectedPackage,
|
33358
33752
|
selectedSerie = _useModule.selectedSerie;
|
33753
|
+
useTools({
|
33754
|
+
packageId: packageId,
|
33755
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33756
|
+
});
|
33359
33757
|
var apiInterface = useMemo(function () {
|
33360
33758
|
var patchId = '${_id}';
|
33361
33759
|
if (type === 'eitems') patchId = '${typeNo}';
|
@@ -33450,6 +33848,10 @@ var TableTabGroups = observer(function () {
|
|
33450
33848
|
organizationId = _useModule.organizationId,
|
33451
33849
|
apiConfig = _useModule.apiConfig,
|
33452
33850
|
selectedPackage = _useModule.selectedPackage;
|
33851
|
+
useTools({
|
33852
|
+
packageId: packageId,
|
33853
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33854
|
+
});
|
33453
33855
|
var applicationData = useMemo(function () {
|
33454
33856
|
return {
|
33455
33857
|
packageId: packageId,
|
@@ -33550,6 +33952,10 @@ var TablePartlistPos = observer(function () {
|
|
33550
33952
|
organizationId = _useModule.organizationId,
|
33551
33953
|
apiConfig = _useModule.apiConfig,
|
33552
33954
|
selectedPackage = _useModule.selectedPackage;
|
33955
|
+
useTools({
|
33956
|
+
packageId: packageId,
|
33957
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33958
|
+
});
|
33553
33959
|
var posInvisibility = useMemo(function () {
|
33554
33960
|
return [{
|
33555
33961
|
name: t('backoffice.idmCatalogEditor.partlistpos.label.pi0'),
|
@@ -33995,8 +34401,8 @@ var space = "space-T5Mkd";
|
|
33995
34401
|
var input$1 = "input-SK-Fo";
|
33996
34402
|
var addButton$1 = "addButton-AVN8Y";
|
33997
34403
|
var helpText = "helpText-QYQQF";
|
33998
|
-
var css_248z$
|
33999
|
-
styleInject(css_248z$
|
34404
|
+
var css_248z$d = ".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";
|
34405
|
+
styleInject(css_248z$d);
|
34000
34406
|
|
34001
34407
|
function PriceFactorCellRenderer(props) {
|
34002
34408
|
var data = props.data,
|
@@ -34006,11 +34412,12 @@ function PriceFactorCellRenderer(props) {
|
|
34006
34412
|
column = props.column,
|
34007
34413
|
onSave = props.onSave,
|
34008
34414
|
api = props.api,
|
34009
|
-
|
34415
|
+
isNotInAGGrid = props.isNotInAGGrid;
|
34010
34416
|
var _useTranslation = useTranslation(),
|
34011
34417
|
t = _useTranslation.t,
|
34012
34418
|
i18n = _useTranslation.i18n;
|
34013
|
-
var
|
34419
|
+
var clickTimer = useRef(null);
|
34420
|
+
var applySave = useCallback(/*#__PURE__*/function () {
|
34014
34421
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data, value) {
|
34015
34422
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
34016
34423
|
while (1) switch (_context.prev = _context.next) {
|
@@ -34032,10 +34439,10 @@ function PriceFactorCellRenderer(props) {
|
|
34032
34439
|
}
|
34033
34440
|
}, _callee);
|
34034
34441
|
}));
|
34035
|
-
return function
|
34442
|
+
return function (_x, _x2) {
|
34036
34443
|
return _ref.apply(this, arguments);
|
34037
34444
|
};
|
34038
|
-
}();
|
34445
|
+
}(), [onSave, node, colDef === null || colDef === void 0 ? void 0 : colDef.field]);
|
34039
34446
|
var _usePriceFactor = usePriceFactor({
|
34040
34447
|
data: data,
|
34041
34448
|
initialValue: value,
|
@@ -34058,6 +34465,63 @@ function PriceFactorCellRenderer(props) {
|
|
34058
34465
|
handleRemoveEntry = _usePriceFactor.handleRemoveEntry,
|
34059
34466
|
handleEntryValueChange = _usePriceFactor.handleEntryValueChange,
|
34060
34467
|
handleSave = _usePriceFactor.handleSave;
|
34468
|
+
var handleOpenModal = useCallback(function () {
|
34469
|
+
handleModalOpen();
|
34470
|
+
api === null || api === void 0 || api.stopEditing();
|
34471
|
+
}, [handleModalOpen, api]);
|
34472
|
+
useEffect(function () {
|
34473
|
+
//
|
34474
|
+
// This is a workaround to prevent the row to go into edit mode when the cell is clicked.
|
34475
|
+
// Ag-grid intercepts dom events on a higher level, so normal event handler on the cell element do not work.
|
34476
|
+
// We have to intercept the event at a even higher level and already during the capture phase.
|
34477
|
+
//
|
34478
|
+
var handleClick = function handleClick(e) {
|
34479
|
+
// Get the cell element from the event target
|
34480
|
+
var cellElement = e.target.closest('.ag-cell');
|
34481
|
+
var rowElement = e.target.closest('.ag-row');
|
34482
|
+
|
34483
|
+
// Check if this is our cell by comparing the cell's data
|
34484
|
+
if (rowElement && cellElement && rowElement.getAttribute('row-id') === (node === null || node === void 0 ? void 0 : node.id) && cellElement.getAttribute('col-id') === (colDef === null || colDef === void 0 ? void 0 : colDef.field)) {
|
34485
|
+
e.preventDefault();
|
34486
|
+
e.stopPropagation();
|
34487
|
+
handleOpenModal();
|
34488
|
+
return false;
|
34489
|
+
}
|
34490
|
+
return true;
|
34491
|
+
};
|
34492
|
+
if (!isNotInAGGrid) {
|
34493
|
+
document.addEventListener('dblclick', handleClick, true);
|
34494
|
+
}
|
34495
|
+
return function () {
|
34496
|
+
if (!isNotInAGGrid) {
|
34497
|
+
document.removeEventListener('dblclick', handleClick, true);
|
34498
|
+
}
|
34499
|
+
};
|
34500
|
+
}, [api, node === null || node === void 0 ? void 0 : node.id, colDef === null || colDef === void 0 ? void 0 : colDef.field, isNotInAGGrid, handleOpenModal]);
|
34501
|
+
|
34502
|
+
/*
|
34503
|
+
* if the component is used outside of an ag-grid cell, we have to handle the click event differently
|
34504
|
+
* we debounce the click event to prevent multiple clicks from opening and immediately closing the modal
|
34505
|
+
*/
|
34506
|
+
var onClick = useCallback(function () {
|
34507
|
+
if (isNotInAGGrid) {
|
34508
|
+
if (clickTimer.current) clearTimeout(clickTimer.current);
|
34509
|
+
clickTimer.current = setTimeout(function () {
|
34510
|
+
handleOpenModal();
|
34511
|
+
}, 200);
|
34512
|
+
}
|
34513
|
+
}, [isNotInAGGrid, handleOpenModal]);
|
34514
|
+
var onDoubleClick = useCallback(function () {
|
34515
|
+
if (isNotInAGGrid) {
|
34516
|
+
if (clickTimer.current) clearTimeout(clickTimer.current);
|
34517
|
+
handleOpenModal();
|
34518
|
+
}
|
34519
|
+
}, [isNotInAGGrid, handleOpenModal]);
|
34520
|
+
useEffect(function () {
|
34521
|
+
return function () {
|
34522
|
+
if (clickTimer.current) clearTimeout(clickTimer.current);
|
34523
|
+
};
|
34524
|
+
}, []);
|
34061
34525
|
var isDiscount = type === 'discount';
|
34062
34526
|
var isSingleDefaultEntry = entries.length === 1 && isDefaultValue(entries[0].value, type);
|
34063
34527
|
var hasInvalidEntries = entries.some(function (entry) {
|
@@ -34065,19 +34529,9 @@ function PriceFactorCellRenderer(props) {
|
|
34065
34529
|
});
|
34066
34530
|
return /*#__PURE__*/jsxs(Fragment, {
|
34067
34531
|
children: [/*#__PURE__*/jsx("div", {
|
34068
|
-
onDoubleClick: function onDoubleClick(e) {
|
34069
|
-
e.stopPropagation();
|
34070
|
-
if (!singleClick) {
|
34071
|
-
handleModalOpen();
|
34072
|
-
}
|
34073
|
-
},
|
34074
34532
|
className: cell,
|
34075
|
-
onClick:
|
34076
|
-
|
34077
|
-
if (singleClick) {
|
34078
|
-
handleModalOpen();
|
34079
|
-
}
|
34080
|
-
},
|
34533
|
+
onClick: onClick,
|
34534
|
+
onDoubleClick: onDoubleClick,
|
34081
34535
|
children: formatListValue(value || [], type, i18n.language)
|
34082
34536
|
}), /*#__PURE__*/jsxs(Modal$2, {
|
34083
34537
|
title: colDef === null || colDef === void 0 ? void 0 : colDef.headerName,
|
@@ -34156,7 +34610,7 @@ function PriceFactorCellRenderer(props) {
|
|
34156
34610
|
});
|
34157
34611
|
}
|
34158
34612
|
|
34159
|
-
var container$
|
34613
|
+
var container$4 = "container-T4Tzz";
|
34160
34614
|
var price = "price-NjOOy";
|
34161
34615
|
var priceManual = "priceManual-i7wtQ";
|
34162
34616
|
var originalPrice = "originalPrice-V8MP5";
|
@@ -34164,8 +34618,8 @@ var difference = "difference-xT9ZP";
|
|
34164
34618
|
var differencePositive = "differencePositive-hGhZO";
|
34165
34619
|
var differenceNegative = "differenceNegative-3CEZA";
|
34166
34620
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
34167
|
-
var css_248z$
|
34168
|
-
styleInject(css_248z$
|
34621
|
+
var css_248z$c = ".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";
|
34622
|
+
styleInject(css_248z$c);
|
34169
34623
|
|
34170
34624
|
function PriceDisplayCellRenderer(props) {
|
34171
34625
|
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
@@ -34203,7 +34657,7 @@ function PriceDisplayCellRenderer(props) {
|
|
34203
34657
|
};
|
34204
34658
|
}, []);
|
34205
34659
|
return /*#__PURE__*/jsxs("div", {
|
34206
|
-
className: container$
|
34660
|
+
className: container$4,
|
34207
34661
|
children: [/*#__PURE__*/jsxs("span", {
|
34208
34662
|
className: classnames(price, _defineProperty({}, priceManual, isManualPrice)),
|
34209
34663
|
children: [(_currentPrice$toFixed = currentPrice === null || currentPrice === void 0 ? void 0 : currentPrice.toFixed(commas !== null && commas !== void 0 ? commas : 2)) !== null && _currentPrice$toFixed !== void 0 ? _currentPrice$toFixed : '-', isManualPrice && ' *']
|
@@ -34258,8 +34712,8 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
34258
34712
|
var wrapper$3 = "wrapper-5t6RT";
|
34259
34713
|
var input = "input-leHam";
|
34260
34714
|
var disabled$1 = "disabled-Llkqu";
|
34261
|
-
var css_248z$
|
34262
|
-
styleInject(css_248z$
|
34715
|
+
var css_248z$b = ".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";
|
34716
|
+
styleInject(css_248z$b);
|
34263
34717
|
|
34264
34718
|
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; }
|
34265
34719
|
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; }
|
@@ -34272,7 +34726,7 @@ function PriceFactorInput(props) {
|
|
34272
34726
|
id: "price-factor-input",
|
34273
34727
|
className: classnames(input, _defineProperty({}, disabled$1, props.disabled)),
|
34274
34728
|
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
|
34275
|
-
|
34729
|
+
isNotInAGGrid: true
|
34276
34730
|
}))
|
34277
34731
|
})
|
34278
34732
|
})]
|
@@ -34281,8 +34735,8 @@ function PriceFactorInput(props) {
|
|
34281
34735
|
|
34282
34736
|
var inputHeader = "input-header--4KDP";
|
34283
34737
|
var factorInput = "factor-input-MX85Z";
|
34284
|
-
var css_248z$
|
34285
|
-
styleInject(css_248z$
|
34738
|
+
var css_248z$a = ".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";
|
34739
|
+
styleInject(css_248z$a);
|
34286
34740
|
|
34287
34741
|
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; }
|
34288
34742
|
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; }
|
@@ -34685,8 +35139,13 @@ var TablePriceList = observer(function () {
|
|
34685
35139
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
34686
35140
|
selectedNodeId = _React$useState4[0],
|
34687
35141
|
setSelectedNodeId = _React$useState4[1];
|
35142
|
+
useTools({
|
35143
|
+
packageId: packageId,
|
35144
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
35145
|
+
});
|
34688
35146
|
var setNodeDataValue = useCallback(function (data) {
|
34689
35147
|
spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
|
35148
|
+
//TODO franz do this the same way with communication fro configurator to spreadsheet
|
34690
35149
|
}, [selectedNodeId]);
|
34691
35150
|
useEffect(function () {
|
34692
35151
|
if (selectedPriceList !== null && selectedPriceList !== void 0 && selectedPriceList._id) {
|
@@ -34833,12 +35292,18 @@ var TablePriceList = observer(function () {
|
|
34833
35292
|
headerName: 'backoffice.idmEnricher.pricelists.label.validFrom',
|
34834
35293
|
field: 'validFrom',
|
34835
35294
|
editable: true,
|
34836
|
-
cellDataType: 'dateString'
|
35295
|
+
cellDataType: 'dateString',
|
35296
|
+
customParams: {
|
35297
|
+
dateFormat: 'DD.MM.YYYY'
|
35298
|
+
}
|
34837
35299
|
}, {
|
34838
35300
|
headerName: 'backoffice.idmEnricher.pricelists.label.validTo',
|
34839
35301
|
field: 'validTo',
|
34840
35302
|
editable: true,
|
34841
|
-
cellDataType: 'dateString'
|
35303
|
+
cellDataType: 'dateString',
|
35304
|
+
customParams: {
|
35305
|
+
dateFormat: 'DD.MM.YYYY'
|
35306
|
+
}
|
34842
35307
|
}, {
|
34843
35308
|
field: 'packageId',
|
34844
35309
|
editable: false,
|
@@ -35143,8 +35608,8 @@ function UploadButton (_ref) {
|
|
35143
35608
|
}
|
35144
35609
|
|
35145
35610
|
var errorDescription = "error-description-VE3n0";
|
35146
|
-
var css_248z$
|
35147
|
-
styleInject(css_248z$
|
35611
|
+
var css_248z$9 = ".error-description-VE3n0 {\n max-height: 100px;\n overflow: auto;\n scrollbar-width: thin;\n}\n";
|
35612
|
+
styleInject(css_248z$9);
|
35148
35613
|
|
35149
35614
|
function IDMImportForm (_ref) {
|
35150
35615
|
var idmService = _ref.idmService,
|
@@ -35415,6 +35880,20 @@ var useCatalogContext = function useCatalogContext() {
|
|
35415
35880
|
});
|
35416
35881
|
};
|
35417
35882
|
|
35883
|
+
function InformationButton(_ref) {
|
35884
|
+
var codex = _ref.codex;
|
35885
|
+
var _useTools = useTools({}),
|
35886
|
+
openInformationWindow = _useTools.openInformationWindow;
|
35887
|
+
return /*#__PURE__*/jsx(Button, {
|
35888
|
+
type: "text",
|
35889
|
+
icon: /*#__PURE__*/jsx(InfoCircleOutlined$1, {}),
|
35890
|
+
onClick: function onClick(e) {
|
35891
|
+
e.stopPropagation();
|
35892
|
+
openInformationWindow(codex, true);
|
35893
|
+
}
|
35894
|
+
});
|
35895
|
+
}
|
35896
|
+
|
35418
35897
|
var TableCatalogs = observer(function () {
|
35419
35898
|
var root = useStore();
|
35420
35899
|
var _useTranslation = useTranslation(),
|
@@ -35434,6 +35913,9 @@ var TableCatalogs = observer(function () {
|
|
35434
35913
|
setShowApi2 = _React$useState2[1];
|
35435
35914
|
var _useCatalogContext = useCatalogContext([]),
|
35436
35915
|
setSelectedCatalog = _useCatalogContext.setSelectedCatalog;
|
35916
|
+
useTools({
|
35917
|
+
mainInformationWindowCodex: 'IDM_CATALOG_TABLE_INFO'
|
35918
|
+
});
|
35437
35919
|
var organizationId = root.dataStore.organizationId;
|
35438
35920
|
var apiConfig = root.configurationStore.apiConfig;
|
35439
35921
|
var applicationData = useMemo(function () {
|
@@ -35611,7 +36093,12 @@ var TableCatalogs = observer(function () {
|
|
35611
36093
|
}] : []), [{
|
35612
36094
|
headerName: 'backoffice.idmCatalog.packages.label.name',
|
35613
36095
|
field: 'name',
|
35614
|
-
required: true
|
36096
|
+
required: true,
|
36097
|
+
headerComponentParams: {
|
36098
|
+
additionalElement: /*#__PURE__*/jsx(InformationButton, {
|
36099
|
+
codex: "IDM_CATALOG_TABLE_NAME_FIELD_INFO"
|
36100
|
+
})
|
36101
|
+
}
|
35615
36102
|
}, {
|
35616
36103
|
headerName: 'backoffice.idmCatalog.general.label.filename',
|
35617
36104
|
field: 'filename',
|
@@ -35673,12 +36160,18 @@ var TableCatalogs = observer(function () {
|
|
35673
36160
|
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
35674
36161
|
field: 'validFromDate',
|
35675
36162
|
cellDataType: 'dateString',
|
35676
|
-
required: true
|
36163
|
+
required: true,
|
36164
|
+
customParams: {
|
36165
|
+
dateFormat: 'DD.MM.YYYY'
|
36166
|
+
}
|
35677
36167
|
}, {
|
35678
36168
|
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
35679
36169
|
field: 'validUntilDate',
|
35680
36170
|
cellDataType: 'dateString',
|
35681
|
-
required: true
|
36171
|
+
required: true,
|
36172
|
+
customParams: {
|
36173
|
+
dateFormat: 'DD.MM.YYYY'
|
36174
|
+
}
|
35682
36175
|
}, {
|
35683
36176
|
field: 'isoLanguageIds',
|
35684
36177
|
headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
|
@@ -35723,7 +36216,10 @@ var TableCatalogs = observer(function () {
|
|
35723
36216
|
}, {
|
35724
36217
|
headerName: 'backoffice.idmCatalog.general.label.catalogDataVersion',
|
35725
36218
|
field: 'catalogDataVersion',
|
35726
|
-
cellDataType: 'dateString'
|
36219
|
+
cellDataType: 'dateString',
|
36220
|
+
customParams: {
|
36221
|
+
dateFormat: 'DD.MM.YYYY'
|
36222
|
+
}
|
35727
36223
|
}, {
|
35728
36224
|
headerName: 'backoffice.idmCatalog.general.label.catalogInfo',
|
35729
36225
|
marryChildren: true,
|
@@ -35762,7 +36258,10 @@ var TableCatalogs = observer(function () {
|
|
35762
36258
|
headerName: 'backoffice.idmCatalog.general.label.dataVersion',
|
35763
36259
|
field: 'dataVersion',
|
35764
36260
|
cellDataType: 'dateString',
|
35765
|
-
required: true
|
36261
|
+
required: true,
|
36262
|
+
customParams: {
|
36263
|
+
dateFormat: 'DD.MM.YYYY'
|
36264
|
+
}
|
35766
36265
|
}, {
|
35767
36266
|
field: 'catalogId',
|
35768
36267
|
headerName: 'backoffice.idmCatalog.general.label.catalogId',
|
@@ -36096,7 +36595,11 @@ var TableCatalogs = observer(function () {
|
|
36096
36595
|
return /*#__PURE__*/jsxs(Fragment, {
|
36097
36596
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36098
36597
|
title: /*#__PURE__*/jsxs("div", {
|
36099
|
-
children: [
|
36598
|
+
children: [/*#__PURE__*/jsxs(Space$1, {
|
36599
|
+
children: [t('backoffice.menu.items.label.IDMEditorTableCatalogs'), /*#__PURE__*/jsx(InformationButton, {
|
36600
|
+
codex: "IDM_CATALOG_TABLE_INFO"
|
36601
|
+
})]
|
36602
|
+
}), /*#__PURE__*/jsxs(Space$1, {
|
36100
36603
|
style: {
|
36101
36604
|
"float": 'right'
|
36102
36605
|
},
|
@@ -36350,32 +36853,6 @@ function useModule (currentModules) {
|
|
36350
36853
|
useEffect(function () {
|
36351
36854
|
root.contentStore.updateAdditionalElement('catalogs', menuItems, currentModules);
|
36352
36855
|
}, [menuItems, location.pathname]);
|
36353
|
-
|
36354
|
-
//updating tools
|
36355
|
-
|
36356
|
-
useEffect(function () {
|
36357
|
-
var tools = [];
|
36358
|
-
if (catalogId) tools.push({
|
36359
|
-
name: 'Konfigurator',
|
36360
|
-
parameters: {
|
36361
|
-
catalogId: catalogId,
|
36362
|
-
isIDMData: '1'
|
36363
|
-
},
|
36364
|
-
type: 'Configurator',
|
36365
|
-
id: 'WYSIWYG',
|
36366
|
-
startWidth: 600,
|
36367
|
-
defaultPinned: true,
|
36368
|
-
elementProps: {
|
36369
|
-
useIDMService: true,
|
36370
|
-
catalogId: catalogId,
|
36371
|
-
showCatalogSelection: true
|
36372
|
-
}
|
36373
|
-
});
|
36374
|
-
root.contentStore.rightToolBar.tools = tools;
|
36375
|
-
return function () {
|
36376
|
-
root.contentStore.rightToolBar.tools = [];
|
36377
|
-
};
|
36378
|
-
}, [catalogId, selectedCatalog, currentModules]);
|
36379
36856
|
return {
|
36380
36857
|
organizationId: organizationId,
|
36381
36858
|
apiConfig: root.configurationStore.apiConfig,
|
@@ -36546,11 +37023,17 @@ function Items$1(_ref) {
|
|
36546
37023
|
children: [{
|
36547
37024
|
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
36548
37025
|
field: 'validFromDate',
|
36549
|
-
cellDataType: 'dateString'
|
37026
|
+
cellDataType: 'dateString',
|
37027
|
+
customParams: {
|
37028
|
+
dateFormat: 'DD.MM.YYYY'
|
37029
|
+
}
|
36550
37030
|
}, {
|
36551
37031
|
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
36552
37032
|
field: 'validUntilDate',
|
36553
|
-
cellDataType: 'dateString'
|
37033
|
+
cellDataType: 'dateString',
|
37034
|
+
customParams: {
|
37035
|
+
dateFormat: 'DD.MM.YYYY'
|
37036
|
+
}
|
36554
37037
|
}]
|
36555
37038
|
}, {
|
36556
37039
|
headerName: 'backoffice.idmCatalog.items.label.measurements',
|
@@ -36660,9 +37143,13 @@ var TableItems = observer(function () {
|
|
36660
37143
|
t = _useTranslation.t;
|
36661
37144
|
var _useModule = useModule(['items']),
|
36662
37145
|
selectedCatalog = _useModule.selectedCatalog,
|
37146
|
+
catalogId = _useModule.catalogId,
|
36663
37147
|
selectedSerie = _useModule.selectedSerie,
|
36664
37148
|
apiConfig = _useModule.apiConfig,
|
36665
37149
|
organizationId = _useModule.organizationId;
|
37150
|
+
useTools({
|
37151
|
+
catalogId: catalogId
|
37152
|
+
});
|
36666
37153
|
return /*#__PURE__*/jsxs(Fragment, {
|
36667
37154
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36668
37155
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -36689,7 +37176,6 @@ var TableItems = observer(function () {
|
|
36689
37176
|
var TableSeries = observer(function () {
|
36690
37177
|
var _useTranslation = useTranslation(),
|
36691
37178
|
t = _useTranslation.t;
|
36692
|
-
var root = useStore();
|
36693
37179
|
var _useModule = useModule(['series']),
|
36694
37180
|
selectedCatalog = _useModule.selectedCatalog,
|
36695
37181
|
catalogId = _useModule.catalogId,
|
@@ -36699,9 +37185,15 @@ var TableSeries = observer(function () {
|
|
36699
37185
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
36700
37186
|
selectedSerie = _React$useState2[0],
|
36701
37187
|
setSelectedSerie = _React$useState2[1];
|
37188
|
+
var _useTools = useTools({
|
37189
|
+
mainInformationWindowCodex: 'IDM_SERIES_TABLE_INFO',
|
37190
|
+
catalogId: catalogId
|
37191
|
+
}),
|
37192
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
37193
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
36702
37194
|
useEffect(function () {
|
36703
37195
|
if (selectedSerie !== null && selectedSerie !== void 0 && selectedSerie._id) {
|
36704
|
-
|
37196
|
+
addSecondaryTables({
|
36705
37197
|
id: 'items',
|
36706
37198
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableItems'),
|
36707
37199
|
elementComponent: Items$1,
|
@@ -36710,21 +37202,12 @@ var TableSeries = observer(function () {
|
|
36710
37202
|
selectedCatalog: selectedCatalog,
|
36711
37203
|
selectedSerie: selectedSerie._id,
|
36712
37204
|
apiConfig: apiConfig
|
36713
|
-
}
|
36714
|
-
|
36715
|
-
defaultPinned: false,
|
36716
|
-
defaultOpen: false
|
36717
|
-
}];
|
37205
|
+
}
|
37206
|
+
});
|
36718
37207
|
} else {
|
36719
|
-
|
37208
|
+
removeSecondaryTables('items');
|
36720
37209
|
}
|
36721
37210
|
}, [selectedSerie, t, organizationId, catalogId, apiConfig]);
|
36722
|
-
useEffect(function () {
|
36723
|
-
//remove items table, when series are unmounted
|
36724
|
-
return function () {
|
36725
|
-
root.contentStore.bottomToolBar.tools = [];
|
36726
|
-
};
|
36727
|
-
}, [root.contentStore.bottomToolBar]);
|
36728
37211
|
var applicationData = useMemo(function () {
|
36729
37212
|
return {
|
36730
37213
|
catalogId: catalogId,
|
@@ -36812,11 +37295,17 @@ var TableSeries = observer(function () {
|
|
36812
37295
|
}, {
|
36813
37296
|
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
36814
37297
|
field: 'validFromDate',
|
36815
|
-
cellDataType: 'dateString'
|
37298
|
+
cellDataType: 'dateString',
|
37299
|
+
customParams: {
|
37300
|
+
dateFormat: 'DD.MM.YYYY'
|
37301
|
+
}
|
36816
37302
|
}, {
|
36817
37303
|
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
36818
37304
|
field: 'validUntilDate',
|
36819
|
-
cellDataType: 'dateString'
|
37305
|
+
cellDataType: 'dateString',
|
37306
|
+
customParams: {
|
37307
|
+
dateFormat: 'DD.MM.YYYY'
|
37308
|
+
}
|
36820
37309
|
}, {
|
36821
37310
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
36822
37311
|
field: 'lastUpdatedDate',
|
@@ -36860,7 +37349,11 @@ var TableSeries = observer(function () {
|
|
36860
37349
|
return /*#__PURE__*/jsxs(Fragment, {
|
36861
37350
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36862
37351
|
title: /*#__PURE__*/jsxs("div", {
|
36863
|
-
children: [
|
37352
|
+
children: [/*#__PURE__*/jsxs(Space$1, {
|
37353
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableSeries'), /*#__PURE__*/jsx(InformationButton, {
|
37354
|
+
codex: "IDM_SERIES_TABLE_INFO"
|
37355
|
+
})]
|
37356
|
+
}), /*#__PURE__*/jsx(Space$1, {
|
36864
37357
|
style: {
|
36865
37358
|
"float": 'right'
|
36866
37359
|
},
|
@@ -37045,8 +37538,12 @@ var TableFeatures = observer(function () {
|
|
37045
37538
|
t = _useTranslation.t;
|
37046
37539
|
var _useModule = useModule(['features']),
|
37047
37540
|
selectedCatalog = _useModule.selectedCatalog,
|
37541
|
+
catalogId = _useModule.catalogId,
|
37048
37542
|
organizationId = _useModule.organizationId,
|
37049
37543
|
apiConfig = _useModule.apiConfig;
|
37544
|
+
useTools({
|
37545
|
+
catalogId: catalogId
|
37546
|
+
});
|
37050
37547
|
return /*#__PURE__*/jsxs(Fragment, {
|
37051
37548
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
37052
37549
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -37131,11 +37628,17 @@ function Options(_ref) {
|
|
37131
37628
|
children: [{
|
37132
37629
|
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
37133
37630
|
field: 'validFromDate',
|
37134
|
-
cellDataType: 'dateString'
|
37631
|
+
cellDataType: 'dateString',
|
37632
|
+
customParams: {
|
37633
|
+
dateFormat: 'DD.MM.YYYY'
|
37634
|
+
}
|
37135
37635
|
}, {
|
37136
37636
|
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
37137
37637
|
field: 'validUntilDate',
|
37138
|
-
cellDataType: 'dateString'
|
37638
|
+
cellDataType: 'dateString',
|
37639
|
+
customParams: {
|
37640
|
+
dateFormat: 'DD.MM.YYYY'
|
37641
|
+
}
|
37139
37642
|
}]
|
37140
37643
|
}, {
|
37141
37644
|
headerName: 'backoffice.idmCatalog.options.label.material',
|
@@ -37223,8 +37726,12 @@ var TableOptions = observer(function () {
|
|
37223
37726
|
t = _useTranslation.t;
|
37224
37727
|
var _useModule = useModule(['options']),
|
37225
37728
|
selectedCatalog = _useModule.selectedCatalog,
|
37729
|
+
catalogId = _useModule.catalogId,
|
37226
37730
|
apiConfig = _useModule.apiConfig,
|
37227
37731
|
organizationId = _useModule.organizationId;
|
37732
|
+
useTools({
|
37733
|
+
catalogId: catalogId
|
37734
|
+
});
|
37228
37735
|
return /*#__PURE__*/jsxs(Fragment, {
|
37229
37736
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
37230
37737
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -37248,7 +37755,6 @@ var TableOptions = observer(function () {
|
|
37248
37755
|
var TableFeatureClasses = observer(function () {
|
37249
37756
|
var _useTranslation = useTranslation(),
|
37250
37757
|
t = _useTranslation.t;
|
37251
|
-
var root = useStore();
|
37252
37758
|
var _useModule = useModule(['featureclasses']),
|
37253
37759
|
selectedCatalog = _useModule.selectedCatalog,
|
37254
37760
|
catalogId = _useModule.catalogId,
|
@@ -37258,9 +37764,14 @@ var TableFeatureClasses = observer(function () {
|
|
37258
37764
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
37259
37765
|
selectedFeatureClass = _React$useState2[0],
|
37260
37766
|
setSelectedFeatureClass = _React$useState2[1];
|
37767
|
+
var _useTools = useTools({
|
37768
|
+
catalogId: catalogId
|
37769
|
+
}),
|
37770
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
37771
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
37261
37772
|
useEffect(function () {
|
37262
37773
|
if (selectedFeatureClass !== null && selectedFeatureClass !== void 0 && selectedFeatureClass._id) {
|
37263
|
-
|
37774
|
+
addSecondaryTables({
|
37264
37775
|
id: 'features',
|
37265
37776
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
37266
37777
|
elementComponent: Features,
|
@@ -37269,21 +37780,12 @@ var TableFeatureClasses = observer(function () {
|
|
37269
37780
|
selectedCatalog: selectedCatalog,
|
37270
37781
|
apiConfig: apiConfig,
|
37271
37782
|
featureClassId: selectedFeatureClass._id
|
37272
|
-
}
|
37273
|
-
|
37274
|
-
defaultPinned: false,
|
37275
|
-
defaultOpen: false
|
37276
|
-
}];
|
37783
|
+
}
|
37784
|
+
});
|
37277
37785
|
} else {
|
37278
|
-
|
37786
|
+
removeSecondaryTables('features');
|
37279
37787
|
}
|
37280
37788
|
}, [selectedFeatureClass, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id]);
|
37281
|
-
useEffect(function () {
|
37282
|
-
//remove features table, when featureclasses are unmounted
|
37283
|
-
return function () {
|
37284
|
-
root.contentStore.bottomToolBar.tools = [];
|
37285
|
-
};
|
37286
|
-
}, []);
|
37287
37789
|
var applicationData = useMemo(function () {
|
37288
37790
|
return {
|
37289
37791
|
catalogId: catalogId,
|
@@ -37386,7 +37888,7 @@ var TableFeatureClasses = observer(function () {
|
|
37386
37888
|
});
|
37387
37889
|
});
|
37388
37890
|
|
37389
|
-
var container$
|
37891
|
+
var container$3 = "container-wGptw";
|
37390
37892
|
var scrollableContent = "scrollable-content-zRBJy";
|
37391
37893
|
var sectionTitle = "section-title-s2qIs";
|
37392
37894
|
var actionItem = "action-item-LjQVf";
|
@@ -37397,8 +37899,8 @@ var formContent = "form-content-H-AkE";
|
|
37397
37899
|
var footerButtons = "footer-buttons-4cwcu";
|
37398
37900
|
var addButton = "add-button-w-6Lk";
|
37399
37901
|
var footerContent = "footer-content-sOrT1";
|
37400
|
-
var css_248z$
|
37401
|
-
styleInject(css_248z$
|
37902
|
+
var css_248z$8 = ".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";
|
37903
|
+
styleInject(css_248z$8);
|
37402
37904
|
|
37403
37905
|
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; }
|
37404
37906
|
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; }
|
@@ -37802,7 +38304,7 @@ function OptionCombinationsExpandedEditor(_ref) {
|
|
37802
38304
|
});
|
37803
38305
|
}, [showForm, editingIndex, t]);
|
37804
38306
|
return /*#__PURE__*/jsx("div", {
|
37805
|
-
className: container$
|
38307
|
+
className: container$3,
|
37806
38308
|
children: !showForm ? /*#__PURE__*/jsxs(Fragment, {
|
37807
38309
|
children: [/*#__PURE__*/jsx(Typography.Title, {
|
37808
38310
|
level: 5,
|
@@ -38047,7 +38549,6 @@ function OptionCombinations(_ref) {
|
|
38047
38549
|
var TableDecisions = observer(function () {
|
38048
38550
|
var _useTranslation = useTranslation(),
|
38049
38551
|
t = _useTranslation.t;
|
38050
|
-
var root = useStore();
|
38051
38552
|
var spreadsheetRef = useRef(null);
|
38052
38553
|
var _useModule = useModule(['decisions']),
|
38053
38554
|
selectedCatalog = _useModule.selectedCatalog,
|
@@ -38062,12 +38563,17 @@ var TableDecisions = observer(function () {
|
|
38062
38563
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
38063
38564
|
selectedNodeId = _React$useState4[0],
|
38064
38565
|
setSelectedNodeId = _React$useState4[1];
|
38566
|
+
var _useTools = useTools({
|
38567
|
+
catalogId: catalogId
|
38568
|
+
}),
|
38569
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
38570
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
38065
38571
|
var setNodeDataValue = useCallback(function (data) {
|
38066
38572
|
spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
|
38067
38573
|
}, [selectedNodeId]);
|
38068
38574
|
useEffect(function () {
|
38069
38575
|
if (selectedDecision !== null && selectedDecision !== void 0 && selectedDecision._id) {
|
38070
|
-
|
38576
|
+
addSecondaryTables({
|
38071
38577
|
id: 'optionCombinations',
|
38072
38578
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionCombinations'),
|
38073
38579
|
elementComponent: OptionCombinations,
|
@@ -38076,21 +38582,15 @@ var TableDecisions = observer(function () {
|
|
38076
38582
|
catalogId: catalogId,
|
38077
38583
|
apiConfig: apiConfig,
|
38078
38584
|
setNodeDataValue: setNodeDataValue
|
38079
|
-
}
|
38080
|
-
|
38081
|
-
defaultPinned: false,
|
38082
|
-
defaultOpen: false
|
38083
|
-
}];
|
38585
|
+
}
|
38586
|
+
});
|
38084
38587
|
} else {
|
38085
|
-
|
38588
|
+
removeSecondaryTables('optionCombinations');
|
38086
38589
|
}
|
38087
|
-
}, [selectedDecision, setNodeDataValue]);
|
38088
|
-
useEffect(function () {
|
38089
|
-
//remove optionCombinations table, when decisions are unmounted
|
38090
38590
|
return function () {
|
38091
|
-
|
38591
|
+
removeSecondaryTables('optionCombinations');
|
38092
38592
|
};
|
38093
|
-
}, []);
|
38593
|
+
}, [selectedDecision, setNodeDataValue, addSecondaryTables, removeSecondaryTables]);
|
38094
38594
|
var applicationData = useMemo(function () {
|
38095
38595
|
return {
|
38096
38596
|
catalogId: catalogId,
|
@@ -38196,12 +38696,18 @@ var TableDecisions = observer(function () {
|
|
38196
38696
|
field: 'validFromDate',
|
38197
38697
|
headerName: 'backoffice.idmCatalog.decisions.label.validFromDate',
|
38198
38698
|
cellDataType: 'dateString',
|
38199
|
-
editable: true
|
38699
|
+
editable: true,
|
38700
|
+
customParams: {
|
38701
|
+
dateFormat: 'DD.MM.YYYY'
|
38702
|
+
}
|
38200
38703
|
}, {
|
38201
38704
|
field: 'validUntilDate',
|
38202
38705
|
headerName: 'backoffice.idmCatalog.decisions.label.validUntilDate',
|
38203
38706
|
cellDataType: 'dateString',
|
38204
|
-
editable: true
|
38707
|
+
editable: true,
|
38708
|
+
customParams: {
|
38709
|
+
dateFormat: 'DD.MM.YYYY'
|
38710
|
+
}
|
38205
38711
|
}, {
|
38206
38712
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
38207
38713
|
field: 'lastUpdatedDate',
|
@@ -38273,6 +38779,9 @@ var TableDetailInfos = observer(function () {
|
|
38273
38779
|
catalogId = _useModule.catalogId,
|
38274
38780
|
organizationId = _useModule.organizationId,
|
38275
38781
|
apiConfig = _useModule.apiConfig;
|
38782
|
+
useTools({
|
38783
|
+
catalogId: catalogId
|
38784
|
+
});
|
38276
38785
|
var applicationData = useMemo(function () {
|
38277
38786
|
return {
|
38278
38787
|
catalogId: catalogId,
|
@@ -38616,7 +39125,6 @@ function PartlistPos(_ref) {
|
|
38616
39125
|
var TablePartlists = observer(function () {
|
38617
39126
|
var _useTranslation = useTranslation(),
|
38618
39127
|
t = _useTranslation.t;
|
38619
|
-
var root = useStore();
|
38620
39128
|
var _useModule = useModule(['partlists']),
|
38621
39129
|
selectedCatalog = _useModule.selectedCatalog,
|
38622
39130
|
catalogId = _useModule.catalogId,
|
@@ -38626,9 +39134,14 @@ var TablePartlists = observer(function () {
|
|
38626
39134
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
38627
39135
|
selectedPartlist = _React$useState2[0],
|
38628
39136
|
setSelectedPartlist = _React$useState2[1];
|
39137
|
+
var _useTools = useTools({
|
39138
|
+
catalogId: catalogId
|
39139
|
+
}),
|
39140
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
39141
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
38629
39142
|
useEffect(function () {
|
38630
39143
|
if (selectedPartlist !== null && selectedPartlist !== void 0 && selectedPartlist._id) {
|
38631
|
-
|
39144
|
+
addSecondaryTables({
|
38632
39145
|
id: 'partlistpos',
|
38633
39146
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlistpos'),
|
38634
39147
|
elementComponent: PartlistPos,
|
@@ -38637,21 +39150,12 @@ var TablePartlists = observer(function () {
|
|
38637
39150
|
catalogId: catalogId,
|
38638
39151
|
apiConfig: apiConfig,
|
38639
39152
|
partlistId: selectedPartlist._id
|
38640
|
-
}
|
38641
|
-
|
38642
|
-
defaultPinned: false,
|
38643
|
-
defaultOpen: false
|
38644
|
-
}];
|
39153
|
+
}
|
39154
|
+
});
|
38645
39155
|
} else {
|
38646
|
-
|
39156
|
+
removeSecondaryTables('partlistpos');
|
38647
39157
|
}
|
38648
39158
|
}, [selectedPartlist, catalogId, organizationId]);
|
38649
|
-
useEffect(function () {
|
38650
|
-
//remove partilstpos table, when partlists are unmounted
|
38651
|
-
return function () {
|
38652
|
-
root.contentStore.bottomToolBar.tools = [];
|
38653
|
-
};
|
38654
|
-
}, []);
|
38655
39159
|
var applicationData = useMemo(function () {
|
38656
39160
|
return {
|
38657
39161
|
organizationId: organizationId,
|
@@ -38888,11 +39392,17 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
38888
39392
|
}, {
|
38889
39393
|
headerName: 'backoffice.idmCatalog.priceGroupFinishes.label.validFromDate',
|
38890
39394
|
field: 'validFromDate',
|
38891
|
-
cellDataType: 'dateString'
|
39395
|
+
cellDataType: 'dateString',
|
39396
|
+
customParams: {
|
39397
|
+
dateFormat: 'DD.MM.YYYY'
|
39398
|
+
}
|
38892
39399
|
}, {
|
38893
39400
|
headerName: 'backoffice.idmCatalog.priceGroupFinishes.label.validUntilDate',
|
38894
39401
|
field: 'validUntilDate',
|
38895
|
-
cellDataType: 'dateString'
|
39402
|
+
cellDataType: 'dateString',
|
39403
|
+
customParams: {
|
39404
|
+
dateFormat: 'DD.MM.YYYY'
|
39405
|
+
}
|
38896
39406
|
}, {
|
38897
39407
|
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
38898
39408
|
field: 'createdDate',
|
@@ -39069,11 +39579,17 @@ function PriceFeatureGroupFinishes(_ref) {
|
|
39069
39579
|
}, {
|
39070
39580
|
headerName: 'backoffice.idmCatalog.priceGroupFinishes.label.validFromDate',
|
39071
39581
|
field: 'validFromDate',
|
39072
|
-
cellDataType: 'dateString'
|
39582
|
+
cellDataType: 'dateString',
|
39583
|
+
customParams: {
|
39584
|
+
dateFormat: 'DD.MM.YYYY'
|
39585
|
+
}
|
39073
39586
|
}, {
|
39074
39587
|
headerName: 'backoffice.idmCatalog.priceGroupFinishes.label.validUntilDate',
|
39075
39588
|
field: 'validUntilDate',
|
39076
|
-
cellDataType: 'dateString'
|
39589
|
+
cellDataType: 'dateString',
|
39590
|
+
customParams: {
|
39591
|
+
dateFormat: 'DD.MM.YYYY'
|
39592
|
+
}
|
39077
39593
|
}, {
|
39078
39594
|
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
39079
39595
|
field: 'createdDate',
|
@@ -39146,6 +39662,11 @@ var TablePriceFeatureGroups = observer(function () {
|
|
39146
39662
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
39147
39663
|
isPercentage = _React$useState6[0],
|
39148
39664
|
setIsPercentage = _React$useState6[1];
|
39665
|
+
var _useTools = useTools({
|
39666
|
+
catalogId: catalogId
|
39667
|
+
}),
|
39668
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
39669
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
39149
39670
|
var setNodeDataValue = useCallback(function (data) {
|
39150
39671
|
var _spreadsheetRef$curre;
|
39151
39672
|
return (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 ? void 0 : _spreadsheetRef$curre.setNodeDataValue(selectedNodeId, data);
|
@@ -39153,7 +39674,7 @@ var TablePriceFeatureGroups = observer(function () {
|
|
39153
39674
|
useEffect(function () {
|
39154
39675
|
if (selectedPriceFeatureGroup !== null && selectedPriceFeatureGroup !== void 0 && selectedPriceFeatureGroup._id) {
|
39155
39676
|
var _root$contentStore$bo;
|
39156
|
-
|
39677
|
+
addSecondaryTables({
|
39157
39678
|
id: 'priceFeatureGroupFinishes',
|
39158
39679
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroupFinishes'),
|
39159
39680
|
elementComponent: PriceFeatureGroupFinishes,
|
@@ -39176,23 +39697,14 @@ var TablePriceFeatureGroups = observer(function () {
|
|
39176
39697
|
setNodeDataValue: setNodeDataValue,
|
39177
39698
|
setIsPercentage: setIsPercentage
|
39178
39699
|
},
|
39179
|
-
startWidth: 300,
|
39180
|
-
defaultPinned: false,
|
39181
|
-
defaultOpen: false,
|
39182
39700
|
disabled: isPercentage === false
|
39183
|
-
}
|
39701
|
+
});
|
39184
39702
|
var openTool = (_root$contentStore$bo = root.contentStore.bottomToolBar.currentOpenTool) === null || _root$contentStore$bo === void 0 ? void 0 : _root$contentStore$bo.id;
|
39185
|
-
root.contentStore.bottomToolBar.
|
39703
|
+
root.contentStore.bottomToolBar.selectTool(isPercentage === true ? 'priceFeatureGroupPercentageSurcharge' : isPercentage === false ? 'priceFeatureGroupFinishes' : openTool !== null && openTool !== void 0 ? openTool : 'priceFeatureGroupFinishes');
|
39186
39704
|
} else {
|
39187
|
-
|
39705
|
+
removeSecondaryTables('priceFeatureGroupFinishes', 'priceFeatureGroupPercentageSurcharge');
|
39188
39706
|
}
|
39189
39707
|
}, [selectedPriceFeatureGroup, setNodeDataValue, isPercentage]);
|
39190
|
-
useEffect(function () {
|
39191
|
-
//remove secondary table, when pricefeaturegroups are unmounted
|
39192
|
-
return function () {
|
39193
|
-
root.contentStore.bottomToolBar.tools = [];
|
39194
|
-
};
|
39195
|
-
}, []);
|
39196
39708
|
var applicationData = useMemo(function () {
|
39197
39709
|
return {
|
39198
39710
|
catalogId: catalogId,
|
@@ -39334,6 +39846,9 @@ var TablePrices = observer(function () {
|
|
39334
39846
|
catalogId = _useModule.catalogId,
|
39335
39847
|
apiConfig = _useModule.apiConfig,
|
39336
39848
|
organizationId = _useModule.organizationId;
|
39849
|
+
useTools({
|
39850
|
+
catalogId: catalogId
|
39851
|
+
});
|
39337
39852
|
var applicationData = useMemo(function () {
|
39338
39853
|
return {
|
39339
39854
|
organizationId: organizationId,
|
@@ -39509,7 +40024,6 @@ function Items(_ref) {
|
|
39509
40024
|
var TableOptionGroups = observer(function () {
|
39510
40025
|
var _useTranslation = useTranslation(),
|
39511
40026
|
t = _useTranslation.t;
|
39512
|
-
var root = useStore();
|
39513
40027
|
var _useModule = useModule(['optiongroups']),
|
39514
40028
|
selectedCatalog = _useModule.selectedCatalog,
|
39515
40029
|
catalogId = _useModule.catalogId,
|
@@ -39519,9 +40033,14 @@ var TableOptionGroups = observer(function () {
|
|
39519
40033
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
39520
40034
|
selectedOptionGroup = _React$useState2[0],
|
39521
40035
|
setSelectedOptionGroup = _React$useState2[1];
|
40036
|
+
var _useTools = useTools({
|
40037
|
+
catalogId: catalogId
|
40038
|
+
}),
|
40039
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
40040
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
39522
40041
|
useEffect(function () {
|
39523
40042
|
if (selectedOptionGroup !== null && selectedOptionGroup !== void 0 && selectedOptionGroup.optionGroupKey) {
|
39524
|
-
|
40043
|
+
addSecondaryTables({
|
39525
40044
|
id: 'optionGroupOptions',
|
39526
40045
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroupOptions'),
|
39527
40046
|
elementComponent: Items,
|
@@ -39530,21 +40049,12 @@ var TableOptionGroups = observer(function () {
|
|
39530
40049
|
selectedCatalog: selectedCatalog,
|
39531
40050
|
selectedOptionGroup: selectedOptionGroup.optionGroupKey,
|
39532
40051
|
apiConfig: apiConfig
|
39533
|
-
}
|
39534
|
-
|
39535
|
-
defaultPinned: false,
|
39536
|
-
defaultOpen: false
|
39537
|
-
}];
|
40052
|
+
}
|
40053
|
+
});
|
39538
40054
|
} else {
|
39539
|
-
|
40055
|
+
removeSecondaryTables('optionGroupOptions');
|
39540
40056
|
}
|
39541
40057
|
}, [selectedOptionGroup, t, organizationId, catalogId, apiConfig]);
|
39542
|
-
useEffect(function () {
|
39543
|
-
//remove items table, when series are unmounted
|
39544
|
-
return function () {
|
39545
|
-
root.contentStore.bottomToolBar.tools = [];
|
39546
|
-
};
|
39547
|
-
}, [root.contentStore.bottomToolBar]);
|
39548
40058
|
var applicationData = useMemo(function () {
|
39549
40059
|
return {
|
39550
40060
|
catalogId: catalogId,
|
@@ -39775,11 +40285,14 @@ function TableCollections () {
|
|
39775
40285
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
39776
40286
|
selectedNodeId = _React$useState4[0],
|
39777
40287
|
setSelectedNodeId = _React$useState4[1];
|
40288
|
+
var _useTools = useTools({}),
|
40289
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
40290
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
39778
40291
|
var organizationId = root.dataStore.organizationId;
|
39779
40292
|
var apiConfig = root.configurationStore.apiConfig;
|
39780
40293
|
useEffect(function () {
|
39781
40294
|
if (selectedCollection !== null && selectedCollection !== void 0 && selectedCollection._id) {
|
39782
|
-
|
40295
|
+
addSecondaryTables({
|
39783
40296
|
id: 'collectionMembers',
|
39784
40297
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableCollectionmembers'),
|
39785
40298
|
elementComponent: CollectionMembers,
|
@@ -39787,20 +40300,12 @@ function TableCollections () {
|
|
39787
40300
|
collection: selectedCollection,
|
39788
40301
|
organizationId: organizationId,
|
39789
40302
|
apiConfig: apiConfig
|
39790
|
-
}
|
39791
|
-
|
39792
|
-
defaultPinned: false,
|
39793
|
-
defaultOpen: false
|
39794
|
-
}];
|
40303
|
+
}
|
40304
|
+
});
|
39795
40305
|
} else {
|
39796
|
-
|
40306
|
+
removeSecondaryTables('collectionMembers');
|
39797
40307
|
}
|
39798
40308
|
}, [selectedCollection]);
|
39799
|
-
useEffect(function () {
|
39800
|
-
return function () {
|
39801
|
-
root.contentStore.bottomToolBar.tools = [];
|
39802
|
-
};
|
39803
|
-
}, []);
|
39804
40309
|
var applicationData = useMemo(function () {
|
39805
40310
|
return {
|
39806
40311
|
organizationId: organizationId
|
@@ -39888,11 +40393,17 @@ function TableCollections () {
|
|
39888
40393
|
children: [{
|
39889
40394
|
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
39890
40395
|
field: 'validFromDate',
|
39891
|
-
cellDataType: 'dateString'
|
40396
|
+
cellDataType: 'dateString',
|
40397
|
+
customParams: {
|
40398
|
+
dateFormat: 'DD.MM.YYYY'
|
40399
|
+
}
|
39892
40400
|
}, {
|
39893
40401
|
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
39894
40402
|
field: 'validUntilDate',
|
39895
|
-
cellDataType: 'dateString'
|
40403
|
+
cellDataType: 'dateString',
|
40404
|
+
customParams: {
|
40405
|
+
dateFormat: 'DD.MM.YYYY'
|
40406
|
+
}
|
39896
40407
|
}]
|
39897
40408
|
}, {
|
39898
40409
|
headerName: 'backoffice.idmEnricher.general.label.lastUpdatedDate',
|
@@ -40289,8 +40800,8 @@ var Content = observer(ContentWrapper);
|
|
40289
40800
|
var layout = "layout-gqKsp";
|
40290
40801
|
var contentWrapper = "content-wrapper-mQSc0";
|
40291
40802
|
var detail = "detail-WeK8Q";
|
40292
|
-
var css_248z$
|
40293
|
-
styleInject(css_248z$
|
40803
|
+
var css_248z$7 = ".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";
|
40804
|
+
styleInject(css_248z$7);
|
40294
40805
|
|
40295
40806
|
function Detail(_ref) {
|
40296
40807
|
var _info$description, _container$current, _info$width, _info$submitButtonTex, _info$data;
|
@@ -40632,8 +41143,8 @@ var Modal$1 = observer(Modal);
|
|
40632
41143
|
|
40633
41144
|
var snow = "snow-14T01";
|
40634
41145
|
var sun = "sun-ijIPS";
|
40635
|
-
var css_248z$
|
40636
|
-
styleInject(css_248z$
|
41146
|
+
var css_248z$6 = ".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";
|
41147
|
+
styleInject(css_248z$6);
|
40637
41148
|
|
40638
41149
|
var SnowAnimation = function SnowAnimation(props) {
|
40639
41150
|
var _useState = useState(),
|
@@ -40785,7 +41296,7 @@ var MenuWrapper = function MenuWrapper() {
|
|
40785
41296
|
};
|
40786
41297
|
var Navigation = observer(MenuWrapper);
|
40787
41298
|
|
40788
|
-
var container$
|
41299
|
+
var container$2 = "container-BucHG";
|
40789
41300
|
var right = "right--XETU";
|
40790
41301
|
var unpinnedRight = "unpinned-right-tbnNb";
|
40791
41302
|
var draghandle = "draghandle-f5b0N";
|
@@ -40798,18 +41309,18 @@ var sel = "sel-iUm8X";
|
|
40798
41309
|
var button = "button-K-0KR";
|
40799
41310
|
var toolbarLayout = "toolbar-layout-DUuBn";
|
40800
41311
|
var toolbarContent = "toolbar-content-GxyU6";
|
40801
|
-
var css_248z$
|
40802
|
-
styleInject(css_248z$
|
41312
|
+
var css_248z$5 = ".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";
|
41313
|
+
styleInject(css_248z$5);
|
40803
41314
|
|
40804
41315
|
var wrapper$2 = "wrapper-Q13-g";
|
40805
41316
|
var confContainer = "conf-container-Sm5LL";
|
40806
|
-
var css_248z$
|
40807
|
-
styleInject(css_248z$
|
41317
|
+
var css_248z$4 = ".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";
|
41318
|
+
styleInject(css_248z$4);
|
40808
41319
|
|
40809
41320
|
var wrapper$1 = "wrapper-IcNC5";
|
40810
41321
|
var select$1 = "select-jVMz-";
|
40811
|
-
var css_248z$
|
40812
|
-
styleInject(css_248z$
|
41322
|
+
var css_248z$3 = ".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";
|
41323
|
+
styleInject(css_248z$3);
|
40813
41324
|
|
40814
41325
|
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; }
|
40815
41326
|
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; }
|
@@ -41134,7 +41645,7 @@ function useWysiwyg$1(_ref) {
|
|
41134
41645
|
hideFirstStepWhenSingleOPVOnly: false,
|
41135
41646
|
hideMeasureUnit: true,
|
41136
41647
|
dontShowOrbitInMobile: false,
|
41137
|
-
hideSingleOPVOnlyAlways:
|
41648
|
+
hideSingleOPVOnlyAlways: false,
|
41138
41649
|
hideElementInfo: true,
|
41139
41650
|
hideConfigSingle: true,
|
41140
41651
|
plannerType: 'NONE',
|
@@ -41260,8 +41771,8 @@ var FallbackComponent = function FallbackComponent(_ref2) {
|
|
41260
41771
|
|
41261
41772
|
var wrapper = "wrapper-NYRLn";
|
41262
41773
|
var select = "select-K2SWc";
|
41263
|
-
var css_248z$
|
41264
|
-
styleInject(css_248z$
|
41774
|
+
var css_248z$2 = ".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";
|
41775
|
+
styleInject(css_248z$2);
|
41265
41776
|
|
41266
41777
|
var CatalogSelection = function CatalogSelection(_ref) {
|
41267
41778
|
var _ref$state = _ref.state,
|
@@ -41433,9 +41944,9 @@ var getTranslation = function getTranslation(text, lang) {
|
|
41433
41944
|
}
|
41434
41945
|
};
|
41435
41946
|
|
41436
|
-
var container = "container-Xbv0B";
|
41437
|
-
var css_248z = ".container-Xbv0B {\n background: white;\n color: black;\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: auto;\n}\n\n.darkmode .container-Xbv0B {\n border-color: #424242;\n}\n";
|
41438
|
-
styleInject(css_248z);
|
41947
|
+
var container$1 = "container-Xbv0B";
|
41948
|
+
var css_248z$1 = ".container-Xbv0B {\n background: white;\n color: black;\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: auto;\n}\n\n.darkmode .container-Xbv0B {\n border-color: #424242;\n}\n";
|
41949
|
+
styleInject(css_248z$1);
|
41439
41950
|
|
41440
41951
|
var WsyiwygContentItem = function WsyiwygContentItem(_ref) {
|
41441
41952
|
var tool = _ref.tool,
|
@@ -41449,16 +41960,41 @@ var WsyiwygContentItem = function WsyiwygContentItem(_ref) {
|
|
41449
41960
|
errorCode: "BACKO_0004",
|
41450
41961
|
addToErrorLog: data,
|
41451
41962
|
children: /*#__PURE__*/jsx("div", {
|
41452
|
-
className: container,
|
41963
|
+
className: container$1,
|
41453
41964
|
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
41454
|
-
|
41455
|
-
|
41965
|
+
configuration: {
|
41966
|
+
content: data !== null && data !== void 0 ? data : []
|
41456
41967
|
}
|
41457
41968
|
})
|
41458
41969
|
})
|
41459
41970
|
});
|
41460
41971
|
};
|
41461
41972
|
|
41973
|
+
var container = "container-babS2";
|
41974
|
+
var css_248z = ".container-babS2 {\n background: white;\n color: black;\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: auto;\n}\n\n.darkmode .container-babS2 {\n border-color: #424242;\n}\n";
|
41975
|
+
styleInject(css_248z);
|
41976
|
+
|
41977
|
+
var InformationWindow = function InformationWindow(_ref) {
|
41978
|
+
var _tool$parameters;
|
41979
|
+
var tool = _ref.tool;
|
41980
|
+
var root = useStore();
|
41981
|
+
var codex = (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.contentItemCodex;
|
41982
|
+
useEffect(function () {
|
41983
|
+
var _root$resetErrorBound;
|
41984
|
+
(_root$resetErrorBound = root.resetErrorBoundary) === null || _root$resetErrorBound === void 0 || _root$resetErrorBound.call(root);
|
41985
|
+
}, [tool.parameters]);
|
41986
|
+
return /*#__PURE__*/jsx(ErrorBoundary, {
|
41987
|
+
errorCode: "BACKO_0004",
|
41988
|
+
addToErrorLog: codex,
|
41989
|
+
children: /*#__PURE__*/jsx("div", {
|
41990
|
+
className: container,
|
41991
|
+
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
41992
|
+
contentItemCodex: codex
|
41993
|
+
})
|
41994
|
+
})
|
41995
|
+
});
|
41996
|
+
};
|
41997
|
+
|
41462
41998
|
function ownKeys$2(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; }
|
41463
41999
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
41464
42000
|
var Toolbar = function Toolbar(_ref) {
|
@@ -41510,7 +42046,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
41510
42046
|
className: midHandle
|
41511
42047
|
})
|
41512
42048
|
}), !toolBar.hidden && toolBar.currentOpenTool && /*#__PURE__*/jsx("div", {
|
41513
|
-
className: classnames(container$
|
42049
|
+
className: classnames(container$2, _defineProperty({}, unpinnedRight, !toolBar.pinned && position === 'right')),
|
41514
42050
|
style: {
|
41515
42051
|
width: position === 'right' ? toolBar.width : undefined,
|
41516
42052
|
minWidth: position === 'right' ? toolBar.width : undefined,
|
@@ -41545,7 +42081,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
41545
42081
|
var _toolBar$currentOpenT2;
|
41546
42082
|
if (t.disabled) return;
|
41547
42083
|
if (((_toolBar$currentOpenT2 = toolBar.currentOpenTool) === null || _toolBar$currentOpenT2 === void 0 ? void 0 : _toolBar$currentOpenT2.id) != t.id) {
|
41548
|
-
toolBar.
|
42084
|
+
toolBar.selectTool(t.id);
|
41549
42085
|
toolBar.hidden = false;
|
41550
42086
|
} else {
|
41551
42087
|
toolBar.hidden = !toolBar.hidden;
|
@@ -41576,6 +42112,12 @@ function ToolElement(_ref2) {
|
|
41576
42112
|
toolbar: toolbar
|
41577
42113
|
});
|
41578
42114
|
break;
|
42115
|
+
case 'InformationWindow':
|
42116
|
+
Tool = /*#__PURE__*/jsx(InformationWindow, {
|
42117
|
+
tool: tool,
|
42118
|
+
toolbar: toolbar
|
42119
|
+
});
|
42120
|
+
break;
|
41579
42121
|
}
|
41580
42122
|
var C = useMemo(function () {
|
41581
42123
|
return tool.elementComponent;
|