@crystaldesign/diva-backoffice 25.7.0-beta.2 → 25.7.0-beta.21
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 +959 -625
- 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 +3 -0
- package/build/types/backoffice/src/store/ToolBarStore.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/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.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/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';
|
@@ -151,8 +151,8 @@ import PushpinOutlined from '@ant-design/icons/lib/icons/PushpinOutlined';
|
|
151
151
|
function _createForOfIteratorHelper$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
152
152
|
function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
|
153
153
|
function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
154
|
-
function ownKeys
|
155
|
-
function _objectSpread
|
154
|
+
function ownKeys$$(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
155
|
+
function _objectSpread$$(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
156
|
var LOG$e = getLogger('Backoffice', 'ApplyMapping');
|
157
157
|
function applyMapping (_ref) {
|
158
158
|
var mappable = _ref.mappable,
|
@@ -173,10 +173,10 @@ function applyMapping (_ref) {
|
|
173
173
|
var newValue = {};
|
174
174
|
newValue[newKey] = valueToAdd;
|
175
175
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
176
|
-
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread
|
176
|
+
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$$(_objectSpread$$({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
177
177
|
return startValue;
|
178
178
|
}
|
179
|
-
if (newIdx == 1) return _objectSpread
|
179
|
+
if (newIdx == 1) return _objectSpread$$(_objectSpread$$({}, startValue), newValue);
|
180
180
|
return _getTarget(idx + 1, keys, startValue, newValue);
|
181
181
|
};
|
182
182
|
returnValue = _getTarget(0, key.split('.'), returnValue, value);
|
@@ -479,8 +479,8 @@ function getLeafColumns(columns) {
|
|
479
479
|
});
|
480
480
|
}
|
481
481
|
|
482
|
-
function ownKeys$
|
483
|
-
function _objectSpread$
|
482
|
+
function ownKeys$_(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
483
|
+
function _objectSpread$_(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
484
|
var LOG$d = getLogger('Backoffice', 'ApiHandler');
|
485
485
|
var jp = require('jsonpath');
|
486
486
|
var _default$d = /*#__PURE__*/function () {
|
@@ -659,7 +659,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
659
659
|
_context2.next = 20;
|
660
660
|
return fetch(finalUrl, {
|
661
661
|
method: this._updateMethod,
|
662
|
-
headers: _objectSpread$
|
662
|
+
headers: _objectSpread$_(_objectSpread$_({}, jwt ? {
|
663
663
|
Authorization: 'Bearer ' + jwt
|
664
664
|
} : {}), {}, {
|
665
665
|
'Content-Type': 'application/json'
|
@@ -752,7 +752,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
752
752
|
rootStore: this._rootStore,
|
753
753
|
fallBackToParams: true
|
754
754
|
});
|
755
|
-
if (data) createData = _objectSpread$
|
755
|
+
if (data) createData = _objectSpread$_({}, data);
|
756
756
|
} else if (data !== undefined) {
|
757
757
|
createData = applyMapping({
|
758
758
|
mappable: data,
|
@@ -1014,7 +1014,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1014
1014
|
throw new Error('Read List endpoint is missing in configuration.');
|
1015
1015
|
case 2:
|
1016
1016
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
1017
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
1017
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$_(_objectSpread$_({}, filterServerSide), {}, {
|
1018
1018
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
1019
1019
|
baseUrl: this._readListUrl,
|
1020
1020
|
prefilter: prefilter
|
@@ -1034,7 +1034,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1034
1034
|
});
|
1035
1035
|
case 6:
|
1036
1036
|
response = _context8.sent;
|
1037
|
-
return _context8.abrupt("return", _objectSpread$
|
1037
|
+
return _context8.abrupt("return", _objectSpread$_(_objectSpread$_({}, response), {}, {
|
1038
1038
|
data: response.data.map(function (d) {
|
1039
1039
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
1040
1040
|
})
|
@@ -1058,7 +1058,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1058
1058
|
throw new Error('Read List endpoint is missing in configuration.');
|
1059
1059
|
}
|
1060
1060
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
1061
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
1061
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$_(_objectSpread$_({}, filterServerSide), {}, {
|
1062
1062
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
1063
1063
|
baseUrl: this._readListUrl,
|
1064
1064
|
prefilter: prefilter
|
@@ -1265,8 +1265,8 @@ var _default$c = /*#__PURE__*/function (_ApiHandler) {
|
|
1265
1265
|
}]);
|
1266
1266
|
}(_default$d);
|
1267
1267
|
|
1268
|
-
function ownKeys$
|
1269
|
-
function _objectSpread$
|
1268
|
+
function ownKeys$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; }
|
1269
|
+
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
1270
|
function _callSuper$5(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
1271
1271
|
function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() { return !!t; })(); }
|
1272
1272
|
var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
@@ -1365,7 +1365,7 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
1365
1365
|
_context2.next = 5;
|
1366
1366
|
return fetch(this._createUrl + '?ref=true', {
|
1367
1367
|
method: this._createMethod,
|
1368
|
-
headers: _objectSpread$
|
1368
|
+
headers: _objectSpread$Z({}, jwt ? {
|
1369
1369
|
Authorization: 'Bearer ' + jwt
|
1370
1370
|
} : {}),
|
1371
1371
|
body: data
|
@@ -1743,8 +1743,8 @@ var _default$8 = /*#__PURE__*/function (_ApiHandler) {
|
|
1743
1743
|
}]);
|
1744
1744
|
}(_default$d);
|
1745
1745
|
|
1746
|
-
function ownKeys$
|
1747
|
-
function _objectSpread$
|
1746
|
+
function ownKeys$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; }
|
1747
|
+
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
1748
|
var _default$7 = /*#__PURE__*/function () {
|
1749
1749
|
function _default(root) {
|
1750
1750
|
_classCallCheck(this, _default);
|
@@ -1780,7 +1780,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
1780
1780
|
var _i$permission;
|
1781
1781
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
1782
1782
|
});
|
1783
|
-
config = _objectSpread$
|
1783
|
+
config = _objectSpread$Y(_objectSpread$Y({}, config), {}, {
|
1784
1784
|
items: filteredItems
|
1785
1785
|
});
|
1786
1786
|
}
|
@@ -1837,7 +1837,7 @@ function runThroughObjectReqursive(obj, apiConfig) {
|
|
1837
1837
|
}
|
1838
1838
|
}
|
1839
1839
|
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
|
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;
|
1841
1841
|
var organization = toJS(root.dataStore.currentOrganization);
|
1842
1842
|
return {
|
1843
1843
|
TableApplicationLogs: {
|
@@ -2027,6 +2027,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
2027
2027
|
},
|
2028
2028
|
TableClientOEOverview: {
|
2029
2029
|
type: 'Table',
|
2030
|
+
canRefresh: true,
|
2030
2031
|
title: t('backoffice.table.roe.title'),
|
2031
2032
|
columns: [{
|
2032
2033
|
title: t('backoffice.table.roe.organizationId'),
|
@@ -2150,6 +2151,27 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
2150
2151
|
"default": 30,
|
2151
2152
|
onlyAsMappingData: true
|
2152
2153
|
}
|
2154
|
+
},
|
2155
|
+
downloadAction: {
|
2156
|
+
label: t('backoffice.table.roe.downloadAction.label'),
|
2157
|
+
actionType: 'Download',
|
2158
|
+
id: 'DownloadAction',
|
2159
|
+
icon: 'DownloadOutlined',
|
2160
|
+
download: [{
|
2161
|
+
type: 'request',
|
2162
|
+
request: '${mediaService}/renderjobs/overview/datafeed?from=${from}&to=${to}',
|
2163
|
+
mapping: {
|
2164
|
+
type: 'query',
|
2165
|
+
map: [{
|
2166
|
+
sourceField: 'from',
|
2167
|
+
targetField: 'from'
|
2168
|
+
}, {
|
2169
|
+
sourceField: 'to',
|
2170
|
+
targetField: 'to'
|
2171
|
+
}]
|
2172
|
+
},
|
2173
|
+
mediaType: 'file'
|
2174
|
+
}]
|
2153
2175
|
}
|
2154
2176
|
},
|
2155
2177
|
TableAllUsers: {
|
@@ -3230,7 +3252,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
3230
3252
|
},
|
3231
3253
|
apiInterface: {
|
3232
3254
|
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',
|
3255
|
+
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
3256
|
fields: true,
|
3235
3257
|
filterServerSide: true
|
3236
3258
|
}
|
@@ -3990,7 +4012,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
3990
4012
|
}]
|
3991
4013
|
}
|
3992
4014
|
},
|
3993
|
-
|
4015
|
+
TableContentItems: {
|
3994
4016
|
title: t('backoffice.table.contentitems.title'),
|
3995
4017
|
type: 'Table',
|
3996
4018
|
canRefresh: true,
|
@@ -4066,6 +4088,12 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
4066
4088
|
sorter: 1,
|
4067
4089
|
filter: 'advanced',
|
4068
4090
|
width: 150
|
4091
|
+
}, {
|
4092
|
+
title: t('backoffice.table.contentitems.columns.codex'),
|
4093
|
+
field: 'codex',
|
4094
|
+
sorter: 1,
|
4095
|
+
filter: 'advanced',
|
4096
|
+
width: 150
|
4069
4097
|
}, {
|
4070
4098
|
title: t('backoffice._id'),
|
4071
4099
|
field: '_id',
|
@@ -4141,6 +4169,107 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
4141
4169
|
}]
|
4142
4170
|
}
|
4143
4171
|
},
|
4172
|
+
TableContentItemsGlobal: {
|
4173
|
+
title: t('backoffice.table.contentitemsglobal.title'),
|
4174
|
+
type: 'Table',
|
4175
|
+
canRefresh: true,
|
4176
|
+
pagination: {
|
4177
|
+
pageSize: 50
|
4178
|
+
},
|
4179
|
+
copyAction: {
|
4180
|
+
actionType: 'Detail',
|
4181
|
+
type: 'Form',
|
4182
|
+
id: 'FormEditContentItem',
|
4183
|
+
disableOnMultiselect: true,
|
4184
|
+
resetToggleAfter: true,
|
4185
|
+
title: t('backoffice.table.contentItem.copyAction.title'),
|
4186
|
+
label: t('backoffice.table.services.copyAction.label'),
|
4187
|
+
mapping: {
|
4188
|
+
type: 'body',
|
4189
|
+
map: [{
|
4190
|
+
targetField: 'content',
|
4191
|
+
sourceField: 'content'
|
4192
|
+
}, {
|
4193
|
+
targetField: 'catalogName',
|
4194
|
+
sourceField: 'catalogName'
|
4195
|
+
}, {
|
4196
|
+
targetField: 'supplierName',
|
4197
|
+
sourceField: 'supplierName'
|
4198
|
+
}, {
|
4199
|
+
targetField: 'description',
|
4200
|
+
sourceField: 'description'
|
4201
|
+
}]
|
4202
|
+
}
|
4203
|
+
},
|
4204
|
+
createAction: {
|
4205
|
+
actionType: 'Detail',
|
4206
|
+
type: 'JsonEditor',
|
4207
|
+
id: 'JsonEditorEditContentItem',
|
4208
|
+
title: t('backoffice.table.contentItem.label.create_global'),
|
4209
|
+
label: t('backoffice.table.contentItem.label.create_global'),
|
4210
|
+
permission: 'backoffice_create_contentitem_template'
|
4211
|
+
},
|
4212
|
+
columns: [{
|
4213
|
+
title: t('backoffice.table.roles.columns.description'),
|
4214
|
+
field: 'description',
|
4215
|
+
sorter: 1,
|
4216
|
+
filter: 'advanced',
|
4217
|
+
width: 500
|
4218
|
+
}, {
|
4219
|
+
title: t('backoffice.table.contentitems.columns.codex'),
|
4220
|
+
field: 'codex',
|
4221
|
+
sorter: 1,
|
4222
|
+
filter: 'advanced',
|
4223
|
+
width: 150
|
4224
|
+
}, {
|
4225
|
+
title: t('backoffice._id'),
|
4226
|
+
field: '_id',
|
4227
|
+
sorter: 1,
|
4228
|
+
filter: 'advanced',
|
4229
|
+
width: 100
|
4230
|
+
}, {
|
4231
|
+
title: t('backoffice.table.views.lastUpdated'),
|
4232
|
+
field: 'lastUpdated',
|
4233
|
+
defaultSortOrder: 'descend',
|
4234
|
+
type: 'unixTimeStamp',
|
4235
|
+
sorter: 1,
|
4236
|
+
filter: 'advanced',
|
4237
|
+
width: 200
|
4238
|
+
}, {
|
4239
|
+
title: t('backoffice.table.views.lastUpdatedBy'),
|
4240
|
+
field: 'lastUpdatedBy_displayText',
|
4241
|
+
sorter: 1,
|
4242
|
+
filter: 'advanced',
|
4243
|
+
width: 150
|
4244
|
+
}, {
|
4245
|
+
title: 'backoffice.content',
|
4246
|
+
field: 'content',
|
4247
|
+
hidden: true
|
4248
|
+
}],
|
4249
|
+
rowAction: [{
|
4250
|
+
actionType: 'Detail',
|
4251
|
+
disableOnMultiselect: true,
|
4252
|
+
type: 'Form',
|
4253
|
+
id: 'FormEditContentItem',
|
4254
|
+
title: t('backoffice.table.contentItem.edit'),
|
4255
|
+
label: t('backoffice.edit')
|
4256
|
+
}, {
|
4257
|
+
disableOnMultiselect: true,
|
4258
|
+
actionType: 'Detail',
|
4259
|
+
permission: 'backoffice_edit_contentitem_template',
|
4260
|
+
type: 'JsonEditor',
|
4261
|
+
label: t('backoffice.table.contentItem.editjson'),
|
4262
|
+
id: 'JsonEditorEditContentItem',
|
4263
|
+
title: t('backoffice.table.contentItem.edit')
|
4264
|
+
}],
|
4265
|
+
apiInterface: {
|
4266
|
+
read: {
|
4267
|
+
list: '${catalogService}/contentItems',
|
4268
|
+
filterServerSide: true
|
4269
|
+
},
|
4270
|
+
"delete": '${catalogService}/contentItems/${id}'
|
4271
|
+
}
|
4272
|
+
},
|
4144
4273
|
TableApplicationTranslations: {
|
4145
4274
|
title: t('backoffice.table.applicationtranslation.title'),
|
4146
4275
|
type: 'Table',
|
@@ -7138,11 +7267,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
7138
7267
|
JsonEditorCreateContentItem: {
|
7139
7268
|
type: 'JsonEditor',
|
7140
7269
|
apiInterface: {
|
7141
|
-
|
7142
|
-
url: '${catalogService}/contentItems',
|
7143
|
-
method: 'POST'
|
7144
|
-
},
|
7145
|
-
create: '${catalogService}/contentItems'
|
7270
|
+
create: '${catalogService}/contentItems?template=true'
|
7146
7271
|
}
|
7147
7272
|
},
|
7148
7273
|
JsonEditorEditContentItem: {
|
@@ -8483,9 +8608,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
8483
8608
|
}],
|
8484
8609
|
itemsByData: function itemsByData(data, apiConfig) {
|
8485
8610
|
var result = [{
|
8611
|
+
name: 'codex',
|
8612
|
+
type: 'input',
|
8613
|
+
label: t('backoffice.table.contentitems.columns.codex')
|
8614
|
+
}, {
|
8486
8615
|
name: 'description',
|
8487
8616
|
type: 'input',
|
8488
|
-
label: t('description')
|
8617
|
+
label: t('backoffice.table.roles.columns.description')
|
8489
8618
|
}, {
|
8490
8619
|
name: 'supplierName',
|
8491
8620
|
type: 'input',
|
@@ -8763,9 +8892,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
8763
8892
|
items: [],
|
8764
8893
|
itemsByData: function itemsByData(data, apiConfig) {
|
8765
8894
|
var result = [{
|
8895
|
+
name: 'codex',
|
8896
|
+
type: 'input',
|
8897
|
+
label: t('backoffice.table.contentitems.columns.codex')
|
8898
|
+
}, {
|
8766
8899
|
name: 'description',
|
8767
8900
|
type: 'input',
|
8768
|
-
label: t('description')
|
8901
|
+
label: t('backoffice.table.roles.columns.description')
|
8769
8902
|
}, {
|
8770
8903
|
name: 'supplierName',
|
8771
8904
|
type: 'input',
|
@@ -11145,9 +11278,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11145
11278
|
mode: 'single',
|
11146
11279
|
label: t('backoffice.form.createclientrelation.externalCloudSource'),
|
11147
11280
|
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
11281
|
required: true,
|
11152
11282
|
selectMapping: {
|
11153
11283
|
label: '${name}',
|
@@ -11195,25 +11325,15 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11195
11325
|
field: '_id',
|
11196
11326
|
filter: 'eq'
|
11197
11327
|
}],
|
11198
|
-
prefilter: '+[{type,eq,ASSOCIATION},{type,eq,RETAILER}]',
|
11199
11328
|
prefilterMapping: {
|
11200
11329
|
map: [{
|
11201
11330
|
sourceField: 'externalCloudSource._id',
|
11202
11331
|
targetField: 'cloudId'
|
11203
11332
|
}],
|
11204
11333
|
type: 'query'
|
11205
|
-
}
|
11334
|
+
},
|
11335
|
+
prefilter: '+[{type,eq,ASSOCIATION},{type,eq,RETAILER}]'
|
11206
11336
|
},
|
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
11337
|
apiInterface: {
|
11218
11338
|
read: {
|
11219
11339
|
list: '${authService}/externalclouds/${cloudId}/organizations',
|
@@ -11288,13 +11408,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11288
11408
|
filterServerSide: true
|
11289
11409
|
}
|
11290
11410
|
},
|
11291
|
-
defaultValue: [organization].concat(_toConsumableArray((
|
11411
|
+
defaultValue: [organization].concat(_toConsumableArray((_parentOrganizations14 = organization.parentOrganizations) !== null && _parentOrganizations14 !== void 0 ? _parentOrganizations14 : [])).find(function (o) {
|
11292
11412
|
return ['RETAILER', 'ASSOCIATION'].includes(o.type);
|
11293
11413
|
}) ? {
|
11294
|
-
_id: [organization].concat(_toConsumableArray((
|
11414
|
+
_id: [organization].concat(_toConsumableArray((_parentOrganizations15 = organization.parentOrganizations) !== null && _parentOrganizations15 !== void 0 ? _parentOrganizations15 : [])).find(function (o) {
|
11295
11415
|
return ['RETAILER', 'ASSOCIATION'].includes(o.type);
|
11296
11416
|
})._id,
|
11297
|
-
label: [organization].concat(_toConsumableArray((
|
11417
|
+
label: [organization].concat(_toConsumableArray((_parentOrganizations16 = organization.parentOrganizations) !== null && _parentOrganizations16 !== void 0 ? _parentOrganizations16 : [])).find(function (o) {
|
11298
11418
|
return ['RETAILER', 'ASSOCIATION'].includes(o.type);
|
11299
11419
|
}).displayName
|
11300
11420
|
} : undefined,
|
@@ -11306,12 +11426,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11306
11426
|
required: false,
|
11307
11427
|
defaultValue: true
|
11308
11428
|
}, {
|
11309
|
-
label: '
|
11429
|
+
label: 'IDM/Enricher',
|
11310
11430
|
name: 'idmenricher',
|
11311
11431
|
type: 'checkbox',
|
11312
11432
|
required: false,
|
11313
11433
|
defaultValue: true,
|
11314
|
-
|
11434
|
+
readonly: true
|
11435
|
+
// hidden: true,
|
11315
11436
|
}]]
|
11316
11437
|
},
|
11317
11438
|
FormPartlistArticlePrefix: {
|
@@ -11612,6 +11733,17 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11612
11733
|
type: 'MediaUpload'
|
11613
11734
|
}]
|
11614
11735
|
},
|
11736
|
+
GroupContentItems: {
|
11737
|
+
type: 'Group',
|
11738
|
+
items: [{
|
11739
|
+
id: 'TableContentItems',
|
11740
|
+
type: 'Table'
|
11741
|
+
}, {
|
11742
|
+
id: 'TableContentItemsGlobal',
|
11743
|
+
type: 'Table',
|
11744
|
+
permission: 'backoffice_contentitems_global'
|
11745
|
+
}]
|
11746
|
+
},
|
11615
11747
|
SelectorPermissionRole: {
|
11616
11748
|
type: 'RelationSelector',
|
11617
11749
|
searchApiInterface: {
|
@@ -13130,8 +13262,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
13130
13262
|
var navOverlay = "nav-overlay-rKJNC";
|
13131
13263
|
var navSettings = "nav-settings-82cjv";
|
13132
13264
|
var menuLabel = "menu-label-4dXQk";
|
13133
|
-
var css_248z$
|
13134
|
-
styleInject(css_248z$
|
13265
|
+
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";
|
13266
|
+
styleInject(css_248z$x);
|
13135
13267
|
|
13136
13268
|
function MenuLabel (_ref) {
|
13137
13269
|
var disabled = _ref.disabled,
|
@@ -13371,24 +13503,61 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13371
13503
|
return this._tools;
|
13372
13504
|
},
|
13373
13505
|
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
13506
|
this._tools = tools;
|
13382
|
-
|
13383
|
-
|
13384
|
-
|
13385
|
-
|
13507
|
+
this.updateToolState();
|
13508
|
+
}
|
13509
|
+
}, {
|
13510
|
+
key: "addTools",
|
13511
|
+
value: function addTools() {
|
13512
|
+
var _this = this;
|
13513
|
+
for (var _len = arguments.length, tools = new Array(_len), _key = 0; _key < _len; _key++) {
|
13514
|
+
tools[_key] = arguments[_key];
|
13515
|
+
}
|
13516
|
+
tools.forEach(function (tool) {
|
13517
|
+
var index = _this._tools.findIndex(function (t) {
|
13518
|
+
return t.id === tool.id;
|
13519
|
+
});
|
13520
|
+
if (index === -1) {
|
13521
|
+
_this._tools.push(tool);
|
13522
|
+
} else {
|
13523
|
+
_this._tools[index] = tool;
|
13524
|
+
}
|
13525
|
+
});
|
13526
|
+
this.updateToolState();
|
13527
|
+
}
|
13528
|
+
}, {
|
13529
|
+
key: "removeTools",
|
13530
|
+
value: function removeTools() {
|
13531
|
+
for (var _len2 = arguments.length, toolIds = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
13532
|
+
toolIds[_key2] = arguments[_key2];
|
13533
|
+
}
|
13534
|
+
this._tools = this._tools.filter(function (t) {
|
13535
|
+
return !toolIds.includes(t.id);
|
13536
|
+
});
|
13537
|
+
this.updateToolState();
|
13538
|
+
}
|
13539
|
+
}, {
|
13540
|
+
key: "updateToolState",
|
13541
|
+
value: function updateToolState() {
|
13542
|
+
var _this2 = this,
|
13543
|
+
_this$_tools$,
|
13544
|
+
_this$_tools$0$defaul,
|
13545
|
+
_this$_tools$2,
|
13546
|
+
_this$_tools$3,
|
13547
|
+
_this$_tools$0$startW,
|
13548
|
+
_this$_tools$4;
|
13549
|
+
if (this._tools.length === 0) return;
|
13550
|
+
var newToolState = this._tools.find(function (t) {
|
13551
|
+
return t.id === _this2._openedToolId;
|
13552
|
+
});
|
13553
|
+
if (newToolState || this._tools.length === 0) {
|
13554
|
+
//if current tool is in the new list or the list is empty, don't change the current state
|
13386
13555
|
return;
|
13387
13556
|
}
|
13388
|
-
this._openedToolId = (_tools$ =
|
13389
|
-
this._pinned = (_tools$0$
|
13390
|
-
this._hidden = ((_tools$3 =
|
13391
|
-
this._width = (_tools$0$
|
13557
|
+
this._openedToolId = (_this$_tools$ = this._tools[0]) === null || _this$_tools$ === void 0 ? void 0 : _this$_tools$.id;
|
13558
|
+
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;
|
13559
|
+
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;
|
13560
|
+
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
13561
|
}
|
13393
13562
|
}, {
|
13394
13563
|
key: "hidden",
|
@@ -13421,9 +13590,9 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13421
13590
|
}, {
|
13422
13591
|
key: "currentOpenTool",
|
13423
13592
|
get: function get() {
|
13424
|
-
var
|
13593
|
+
var _this3 = this;
|
13425
13594
|
return this._tools.find(function (t) {
|
13426
|
-
return t.id ===
|
13595
|
+
return t.id === _this3._openedToolId;
|
13427
13596
|
});
|
13428
13597
|
}
|
13429
13598
|
}, {
|
@@ -13462,8 +13631,10 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13462
13631
|
this._openedToolId = toolId;
|
13463
13632
|
this._currentLanguage = this.defaultLanguage;
|
13464
13633
|
if (tool) {
|
13465
|
-
var _tool$startWidth;
|
13634
|
+
var _tool$startWidth, _tool$defaultPinned;
|
13466
13635
|
this._width = Math.max((_tool$startWidth = tool.startWidth) !== null && _tool$startWidth !== void 0 ? _tool$startWidth : DEFAULT_WIDTH, this._width);
|
13636
|
+
this._hidden = tool.defaultOpen !== undefined ? !tool.defaultOpen : this._hidden;
|
13637
|
+
this._pinned = (_tool$defaultPinned = tool.defaultPinned) !== null && _tool$defaultPinned !== void 0 ? _tool$defaultPinned : this._pinned;
|
13467
13638
|
}
|
13468
13639
|
}
|
13469
13640
|
}, {
|
@@ -13530,8 +13701,8 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13530
13701
|
}]);
|
13531
13702
|
}();
|
13532
13703
|
|
13533
|
-
function ownKeys$
|
13534
|
-
function _objectSpread$
|
13704
|
+
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; }
|
13705
|
+
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
13706
|
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
13707
|
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
13708
|
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 +13813,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13642
13813
|
if (index >= 0) {
|
13643
13814
|
this._additionalMenuElements[index] = {
|
13644
13815
|
key: key,
|
13645
|
-
element: _objectSpread$
|
13816
|
+
element: _objectSpread$X(_objectSpread$X({}, this._additionalMenuElements[index].element), {}, {
|
13646
13817
|
items: items,
|
13647
13818
|
selected: selected
|
13648
13819
|
})
|
@@ -13693,7 +13864,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13693
13864
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
13694
13865
|
this.root.navigate('/' + path);
|
13695
13866
|
}
|
13696
|
-
this._menuElement1 = _objectSpread$
|
13867
|
+
this._menuElement1 = _objectSpread$X(_objectSpread$X({}, this.menuElement1), {}, {
|
13697
13868
|
selected: this._selectedMenuKeys[0]
|
13698
13869
|
});
|
13699
13870
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
@@ -13949,7 +14120,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13949
14120
|
return items.filter(function (item) {
|
13950
14121
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
13951
14122
|
}).map(function (item) {
|
13952
|
-
return _objectSpread$
|
14123
|
+
return _objectSpread$X(_objectSpread$X({}, item), {}, {
|
13953
14124
|
items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
|
13954
14125
|
subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
13955
14126
|
});
|
@@ -14040,7 +14211,7 @@ var menu = [{
|
|
14040
14211
|
disabledLabel: 'backoffice.menu.item.label.disabled.retailer'
|
14041
14212
|
}]
|
14042
14213
|
}, {
|
14043
|
-
id: '
|
14214
|
+
id: 'GroupContentItems',
|
14044
14215
|
path: 'contentitems',
|
14045
14216
|
label: 'backoffice.menu.items.label.ContentItems',
|
14046
14217
|
icon: 'OrderedListOutlined'
|
@@ -14909,7 +15080,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
14909
15080
|
value: function () {
|
14910
15081
|
var _downloadRequest = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(download, data) {
|
14911
15082
|
var _this$_rootStore2;
|
14912
|
-
var url, result, base64File, a, mimeType, res;
|
15083
|
+
var url, result, contentType, contentDisposition, fileName, fileNameMatch, blob, base64File, a, mimeType, res;
|
14913
15084
|
return _regeneratorRuntime.wrap(function _callee5$(_context6) {
|
14914
15085
|
while (1) switch (_context6.prev = _context6.next) {
|
14915
15086
|
case 0:
|
@@ -14925,33 +15096,56 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
14925
15096
|
method: 'GET',
|
14926
15097
|
headers: {
|
14927
15098
|
authorization: "Bearer ".concat((_this$_rootStore2 = this._rootStore) === null || _this$_rootStore2 === void 0 ? void 0 : _this$_rootStore2.dataStore.jwt),
|
14928
|
-
'content-type': 'application/json'
|
15099
|
+
'content-type': 'application/json',
|
15100
|
+
Accept: 'application/json, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, */*'
|
14929
15101
|
}
|
14930
15102
|
});
|
14931
15103
|
case 3:
|
14932
15104
|
result = _context6.sent;
|
15105
|
+
contentType = result.headers.get('Content-Type');
|
15106
|
+
contentDisposition = result.headers.get('Content-Disposition');
|
15107
|
+
fileName = 'download'; // Extract filename from Content-Disposition header if available
|
15108
|
+
if (contentDisposition) {
|
15109
|
+
fileNameMatch = contentDisposition.match(/filename="?([^"]+)"?/i);
|
15110
|
+
if (fileNameMatch && fileNameMatch[1]) {
|
15111
|
+
fileName = fileNameMatch[1];
|
15112
|
+
}
|
15113
|
+
}
|
14933
15114
|
_context6.t0 = download.mediaType;
|
14934
|
-
_context6.next = _context6.t0 === 'file' ?
|
15115
|
+
_context6.next = _context6.t0 === 'file' ? 11 : _context6.t0 === 'json' ? 27 : 32;
|
14935
15116
|
break;
|
14936
|
-
case
|
14937
|
-
|
15117
|
+
case 11:
|
15118
|
+
if (!(contentType === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' || contentType === 'application/vnd.ms-excel')) {
|
15119
|
+
_context6.next = 18;
|
15120
|
+
break;
|
15121
|
+
}
|
15122
|
+
_context6.next = 14;
|
15123
|
+
return result.blob();
|
15124
|
+
case 14:
|
15125
|
+
blob = _context6.sent;
|
15126
|
+
DownloadStore.downloadBlob(blob, fileName);
|
15127
|
+
_context6.next = 26;
|
15128
|
+
break;
|
15129
|
+
case 18:
|
15130
|
+
_context6.next = 20;
|
14938
15131
|
return result.json();
|
14939
|
-
case
|
15132
|
+
case 20:
|
14940
15133
|
base64File = _context6.sent;
|
14941
15134
|
a = document.createElement('a'); //Create <a>
|
14942
15135
|
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
15136
|
a.href = 'data:' + mimeType + ';base64,' + base64File; //Image Base64 Goes here
|
14944
15137
|
a.download = (data === null || data === void 0 ? void 0 : data['fileName']) + '.' + (data === null || data === void 0 ? void 0 : data['fileFormat']); //File name Here
|
14945
15138
|
a.click();
|
14946
|
-
|
14947
|
-
|
14948
|
-
|
15139
|
+
case 26:
|
15140
|
+
return _context6.abrupt("break", 32);
|
15141
|
+
case 27:
|
15142
|
+
_context6.next = 29;
|
14949
15143
|
return result.json();
|
14950
|
-
case
|
15144
|
+
case 29:
|
14951
15145
|
res = _context6.sent;
|
14952
15146
|
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
|
15147
|
+
return _context6.abrupt("break", 32);
|
15148
|
+
case 32:
|
14955
15149
|
case "end":
|
14956
15150
|
return _context6.stop();
|
14957
15151
|
}
|
@@ -15099,8 +15293,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
15099
15293
|
return _createClass(_default);
|
15100
15294
|
}(_default$d);
|
15101
15295
|
|
15102
|
-
function ownKeys$
|
15103
|
-
function _objectSpread$
|
15296
|
+
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; }
|
15297
|
+
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
15298
|
/**
|
15105
15299
|
* ContextStore is a store that manages the contexts of the application.
|
15106
15300
|
*/
|
@@ -15133,7 +15327,7 @@ var ContextStore = /*#__PURE__*/function () {
|
|
15133
15327
|
key: "updateContext",
|
15134
15328
|
value: function updateContext(contextId, updates) {
|
15135
15329
|
var currentState = this.contexts.get(contextId) || {};
|
15136
|
-
this.contexts.set(contextId, _objectSpread$
|
15330
|
+
this.contexts.set(contextId, _objectSpread$W(_objectSpread$W({}, currentState), updates));
|
15137
15331
|
}
|
15138
15332
|
|
15139
15333
|
// Clear a context
|
@@ -15763,8 +15957,8 @@ var MediaItem = /*#__PURE__*/function () {
|
|
15763
15957
|
}]);
|
15764
15958
|
}();
|
15765
15959
|
|
15766
|
-
function ownKeys$
|
15767
|
-
function _objectSpread$
|
15960
|
+
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; }
|
15961
|
+
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
15962
|
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
15963
|
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
15964
|
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 +16019,20 @@ function useFormData (_ref) {
|
|
15825
16019
|
useEffect(function () {
|
15826
16020
|
if (configuration.disableSave) setCanSave === null || setCanSave === void 0 || setCanSave(false);
|
15827
16021
|
}, [configuration]);
|
16022
|
+
var selectedItemsInitValues;
|
16023
|
+
if (!Array.isArray(configuration.items[0])) {
|
16024
|
+
selectedItemsInitValues = configuration.items;
|
16025
|
+
} else if (configuration.itemSelector && configuration.itemSelectorDefautIndex !== undefined) {
|
16026
|
+
selectedItemsInitValues = filterItems(configuration.items[configuration.itemSelectorDefautIndex], userHasPermission);
|
16027
|
+
} else {
|
16028
|
+
selectedItemsInitValues = configuration.items[0];
|
16029
|
+
}
|
16030
|
+
var _useState13 = useState(filterItems(selectedItemsInitValues, userHasPermission)),
|
16031
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
16032
|
+
selectedItems = _useState14[0],
|
16033
|
+
setSelectedItems = _useState14[1];
|
15828
16034
|
var _onLoadFields = function onLoadFields(data) {
|
15829
|
-
var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
16035
|
+
var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : selectedItems;
|
15830
16036
|
var _iterator = _createForOfIteratorHelper$j(items),
|
15831
16037
|
_step;
|
15832
16038
|
try {
|
@@ -15886,13 +16092,13 @@ function useFormData (_ref) {
|
|
15886
16092
|
multipleEditingData = inboundData;
|
15887
16093
|
}
|
15888
16094
|
return {
|
15889
|
-
loadedData: _onLoadFields(_objectSpread$
|
16095
|
+
loadedData: _onLoadFields(_objectSpread$V({}, dt)),
|
15890
16096
|
multipleEditingData: multipleEditingData
|
15891
16097
|
};
|
15892
16098
|
}, [inboundData, selectedItemsIndex]),
|
15893
16099
|
loadedData = _useMemo2.loadedData,
|
15894
16100
|
multipleEditingData = _useMemo2.multipleEditingData;
|
15895
|
-
var
|
16101
|
+
var _useState15 = useState({
|
15896
16102
|
loading: false,
|
15897
16103
|
data: loadedData,
|
15898
16104
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
@@ -15900,19 +16106,9 @@ function useFormData (_ref) {
|
|
15900
16106
|
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
16107
|
form: form
|
15902
16108
|
}),
|
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
16109
|
_useState16 = _slicedToArray(_useState15, 2),
|
15914
|
-
|
15915
|
-
|
16110
|
+
state = _useState16[0],
|
16111
|
+
setState = _useState16[1];
|
15916
16112
|
var _useState17 = useState(getHiddenRequredDisabled(loadedData, selectedItems !== null && selectedItems !== void 0 ? selectedItems : [])),
|
15917
16113
|
_useState18 = _slicedToArray(_useState17, 2),
|
15918
16114
|
hiddenRequiredDisabled = _useState18[0],
|
@@ -15923,7 +16119,7 @@ function useFormData (_ref) {
|
|
15923
16119
|
setFieldErrors = _useState20[1];
|
15924
16120
|
useEffect(function () {
|
15925
16121
|
var _loadedData$_id2;
|
15926
|
-
setState(_objectSpread$
|
16122
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
15927
16123
|
data: loadedData,
|
15928
16124
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
15929
16125
|
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 +16221,7 @@ function useFormData (_ref) {
|
|
16025
16221
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
16026
16222
|
while (1) switch (_context2.prev = _context2.next) {
|
16027
16223
|
case 0:
|
16028
|
-
newData = merge(_objectSpread$
|
16224
|
+
newData = merge(_objectSpread$V({}, state.data), values);
|
16029
16225
|
if (!skipApi) {
|
16030
16226
|
_context2.next = 3;
|
16031
16227
|
break;
|
@@ -16035,7 +16231,7 @@ function useFormData (_ref) {
|
|
16035
16231
|
root.actions.toggleLoading('saving_form');
|
16036
16232
|
_context2.prev = 4;
|
16037
16233
|
_context2.next = 7;
|
16038
|
-
return setDynamicFields(_objectSpread$
|
16234
|
+
return setDynamicFields(_objectSpread$V({}, state.data), newData);
|
16039
16235
|
case 7:
|
16040
16236
|
newData = _context2.sent;
|
16041
16237
|
_context2.next = 10;
|
@@ -16050,7 +16246,7 @@ function useFormData (_ref) {
|
|
16050
16246
|
root.actions.toggleLoading('saving_form');
|
16051
16247
|
throw _context2.t0;
|
16052
16248
|
case 17:
|
16053
|
-
setState(_objectSpread$
|
16249
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16054
16250
|
loading: true
|
16055
16251
|
}));
|
16056
16252
|
finalData = state.data;
|
@@ -16103,14 +16299,14 @@ function useFormData (_ref) {
|
|
16103
16299
|
_context2.next = 47;
|
16104
16300
|
break;
|
16105
16301
|
}
|
16106
|
-
setFieldErrors(_objectSpread$
|
16302
|
+
setFieldErrors(_objectSpread$V(_objectSpread$V({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
16107
16303
|
return _context2.abrupt("return", undefined);
|
16108
16304
|
case 47:
|
16109
16305
|
throw _context2.t1;
|
16110
16306
|
case 48:
|
16111
16307
|
_context2.prev = 48;
|
16112
16308
|
root.actions.toggleLoading('saving_form');
|
16113
|
-
setState(_objectSpread$
|
16309
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16114
16310
|
data: finalData,
|
16115
16311
|
loading: false
|
16116
16312
|
}));
|
@@ -16140,7 +16336,7 @@ function useFormData (_ref) {
|
|
16140
16336
|
}
|
16141
16337
|
var updateHiddenRequiredDisabled = function updateHiddenRequiredDisabled(data, changedFields) {
|
16142
16338
|
if (!(selectedItems !== null && selectedItems !== void 0 && selectedItems.length)) return;
|
16143
|
-
var wholeData = Object.assign(_objectSpread$
|
16339
|
+
var wholeData = Object.assign(_objectSpread$V({}, state.data), _objectSpread$V({}, changedFields !== null && changedFields !== void 0 ? changedFields : data));
|
16144
16340
|
var newState = getHiddenRequredDisabled(wholeData, selectedItems);
|
16145
16341
|
if (JSON.stringify(newState) !== JSON.stringify(hiddenRequiredDisabled)) {
|
16146
16342
|
setHiddenRequiredDisabled(newState);
|
@@ -16153,14 +16349,14 @@ function useFormData (_ref) {
|
|
16153
16349
|
}
|
16154
16350
|
};
|
16155
16351
|
var onInputChanged = function onInputChanged(id, value, d) {
|
16156
|
-
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$
|
16352
|
+
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$V({}, state.data), state.form.getFieldsValue(), mergeCustomizer);
|
16157
16353
|
if (id) {
|
16158
16354
|
setFieldInObject(id, data, value);
|
16159
|
-
var newFieldErrors = _objectSpread$
|
16355
|
+
var newFieldErrors = _objectSpread$V({}, fieldErrors);
|
16160
16356
|
delete newFieldErrors[id.toString()];
|
16161
16357
|
setFieldErrors(newFieldErrors);
|
16162
16358
|
}
|
16163
|
-
setState(_objectSpread$
|
16359
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16164
16360
|
data: data
|
16165
16361
|
}));
|
16166
16362
|
return data;
|
@@ -16192,37 +16388,35 @@ function useFormData (_ref) {
|
|
16192
16388
|
var _value$value;
|
16193
16389
|
if (((_value$value = value === null || value === void 0 ? void 0 : value.value) !== null && _value$value !== void 0 ? _value$value : value) === val) {
|
16194
16390
|
if (configuration.itemSelectorReset) {
|
16195
|
-
setState(_objectSpread$
|
16391
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16196
16392
|
data: _defineProperty({}, name, val)
|
16197
16393
|
}));
|
16198
16394
|
} else {
|
16199
|
-
setState(_objectSpread$
|
16200
|
-
data: _objectSpread$
|
16395
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16396
|
+
data: _objectSpread$V(_objectSpread$V({}, state.data), {}, _defineProperty({}, name, val))
|
16201
16397
|
}));
|
16202
16398
|
}
|
16203
16399
|
setSelectedItemsIndex(idx);
|
16400
|
+
setSelectedItems(filterItems(configuration.items[idx], userHasPermission));
|
16204
16401
|
}
|
16205
16402
|
});
|
16206
16403
|
if (configuration.itemSelector.type == 'radio') configuration.itemSelector.options.forEach(function (_ref6, idx) {
|
16207
16404
|
var val = _ref6.value;
|
16208
16405
|
if (value === val) {
|
16209
16406
|
if (configuration.itemSelectorReset) {
|
16210
|
-
setState(_objectSpread$
|
16407
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16211
16408
|
data: _defineProperty({}, name, val)
|
16212
16409
|
}));
|
16213
16410
|
} else {
|
16214
|
-
setState(_objectSpread$
|
16215
|
-
data: _objectSpread$
|
16411
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16412
|
+
data: _objectSpread$V(_objectSpread$V({}, state.data), {}, _defineProperty({}, name, val))
|
16216
16413
|
}));
|
16217
16414
|
}
|
16218
16415
|
setSelectedItemsIndex(idx);
|
16416
|
+
setSelectedItems(filterItems(configuration.items[idx], userHasPermission));
|
16219
16417
|
}
|
16220
16418
|
});
|
16221
16419
|
};
|
16222
|
-
useEffect(function () {
|
16223
|
-
if (!Array.isArray(configuration.items[0])) return;
|
16224
|
-
setSelectedItems(filterItems(configuration.items[selectedItemsIndex], userHasPermission));
|
16225
|
-
}, [selectedItemsIndex]);
|
16226
16420
|
useEffect(function () {
|
16227
16421
|
updateHiddenRequiredDisabled(state.data);
|
16228
16422
|
}, [selectedItems]);
|
@@ -16493,7 +16687,7 @@ function useFormData (_ref) {
|
|
16493
16687
|
for (var i = 0; i < configuration.tools.length; i++) {
|
16494
16688
|
var _tool$defaultOpen;
|
16495
16689
|
var tool = configuration.tools[i];
|
16496
|
-
tools.push(_objectSpread$
|
16690
|
+
tools.push(_objectSpread$V(_objectSpread$V({}, tool), {}, {
|
16497
16691
|
parameters: {
|
16498
16692
|
data: state.data
|
16499
16693
|
},
|
@@ -16595,7 +16789,7 @@ function useFormData (_ref) {
|
|
16595
16789
|
})) return;
|
16596
16790
|
setRemovedMedias([].concat(_toConsumableArray(removedMedias), [media]));
|
16597
16791
|
};
|
16598
|
-
return _objectSpread$
|
16792
|
+
return _objectSpread$V(_objectSpread$V({}, state), {}, {
|
16599
16793
|
getIsHidden: getIsHidden,
|
16600
16794
|
setUsedPreset: setUsedPreset,
|
16601
16795
|
configuration: configuration,
|
@@ -16712,8 +16906,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
16712
16906
|
};
|
16713
16907
|
|
16714
16908
|
var _excluded$3 = ["key", "name"];
|
16715
|
-
function ownKeys$
|
16716
|
-
function _objectSpread$
|
16909
|
+
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; }
|
16910
|
+
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
16911
|
var FormList$2 = function FormList(_ref) {
|
16718
16912
|
var _item$initialValue;
|
16719
16913
|
var value = _ref.value,
|
@@ -16766,7 +16960,7 @@ var FormList$2 = function FormList(_ref) {
|
|
16766
16960
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
16767
16961
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
16768
16962
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
16769
|
-
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$
|
16963
|
+
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$U(_objectSpread$U({}, restField), {}, {
|
16770
16964
|
id: n.join(),
|
16771
16965
|
key: n.join(),
|
16772
16966
|
name: n,
|
@@ -16778,7 +16972,7 @@ var FormList$2 = function FormList(_ref) {
|
|
16778
16972
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
16779
16973
|
help: state.fieldErrors[n.toString()],
|
16780
16974
|
hidden: hidden
|
16781
|
-
}), getElement(_objectSpread$
|
16975
|
+
}), getElement(_objectSpread$U(_objectSpread$U({}, i), {}, {
|
16782
16976
|
name: n
|
16783
16977
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
16784
16978
|
})
|
@@ -16943,8 +17137,8 @@ var Result = function Result(_ref) {
|
|
16943
17137
|
|
16944
17138
|
var success = "success-tRJ7j";
|
16945
17139
|
var error = "error-MtAFB";
|
16946
|
-
var css_248z$
|
16947
|
-
styleInject(css_248z$
|
17140
|
+
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";
|
17141
|
+
styleInject(css_248z$w);
|
16948
17142
|
|
16949
17143
|
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
17144
|
|
@@ -17008,11 +17202,11 @@ var CustomButton$1 = observer(CustomButton);
|
|
17008
17202
|
|
17009
17203
|
var wrapper$7 = "wrapper-GVe2h";
|
17010
17204
|
var buttonGroup = "button-group-GYt-T";
|
17011
|
-
var css_248z$
|
17012
|
-
styleInject(css_248z$
|
17205
|
+
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";
|
17206
|
+
styleInject(css_248z$v);
|
17013
17207
|
|
17014
|
-
function ownKeys$
|
17015
|
-
function _objectSpread$
|
17208
|
+
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; }
|
17209
|
+
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
17210
|
var SubTitle = function SubTitle(_ref) {
|
17017
17211
|
var _item$orientation, _item$buttonIds;
|
17018
17212
|
var item = _ref.item,
|
@@ -17021,7 +17215,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
17021
17215
|
t = _useTranslation.t;
|
17022
17216
|
return /*#__PURE__*/jsx(Divider, {
|
17023
17217
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
17024
|
-
style: _objectSpread$
|
17218
|
+
style: _objectSpread$T({}, item.style),
|
17025
17219
|
children: /*#__PURE__*/jsxs("div", {
|
17026
17220
|
className: wrapper$7,
|
17027
17221
|
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 +17479,12 @@ function parseReturnData(options, selectMapping) {
|
|
17285
17479
|
}
|
17286
17480
|
|
17287
17481
|
var wrapper$6 = "wrapper-4xyke";
|
17288
|
-
var css_248z$
|
17289
|
-
styleInject(css_248z$
|
17482
|
+
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";
|
17483
|
+
styleInject(css_248z$u);
|
17290
17484
|
|
17291
17485
|
var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
17292
|
-
function ownKeys$
|
17293
|
-
function _objectSpread$
|
17486
|
+
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; }
|
17487
|
+
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
17488
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
17295
17489
|
var apiInterface = _ref.apiInterface,
|
17296
17490
|
selectMapping = _ref.selectMapping,
|
@@ -17317,7 +17511,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
17317
17511
|
return /*#__PURE__*/jsxs("div", {
|
17318
17512
|
ref: ref,
|
17319
17513
|
className: classnames(title ? wrapper$6 : undefined),
|
17320
|
-
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$
|
17514
|
+
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
|
17321
17515
|
showSearch: search,
|
17322
17516
|
loading: state.loading,
|
17323
17517
|
options: state.options,
|
@@ -17934,8 +18128,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
17934
18128
|
}]);
|
17935
18129
|
}(_default$d);
|
17936
18130
|
|
17937
|
-
function ownKeys$
|
17938
|
-
function _objectSpread$
|
18131
|
+
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; }
|
18132
|
+
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
18133
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
17940
18134
|
function useSelectClientRelationCatalog (_ref) {
|
17941
18135
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
@@ -18104,7 +18298,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
18104
18298
|
case 22:
|
18105
18299
|
supplierData = _context2.sent;
|
18106
18300
|
case 23:
|
18107
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
18301
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$R(_objectSpread$R({}, _selectedSupplier), {}, {
|
18108
18302
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
18109
18303
|
}), supplierData);
|
18110
18304
|
if (catalogId && catalogList.find(function (c) {
|
@@ -18170,8 +18364,8 @@ var customSelect = "custom-select-ESUJX";
|
|
18170
18364
|
var customSelectOption = "custom-select-option-dUA7N";
|
18171
18365
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
18172
18366
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
18173
|
-
var css_248z$
|
18174
|
-
styleInject(css_248z$
|
18367
|
+
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";
|
18368
|
+
styleInject(css_248z$t);
|
18175
18369
|
|
18176
18370
|
var Selector = function Selector(_ref) {
|
18177
18371
|
var items = _ref.items,
|
@@ -18325,8 +18519,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
18325
18519
|
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
18520
|
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
18521
|
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$
|
18522
|
+
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; }
|
18523
|
+
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
18524
|
function useSelectData (_ref) {
|
18331
18525
|
var data = _ref.data,
|
18332
18526
|
onChange = _ref.onChange,
|
@@ -18509,7 +18703,7 @@ function useSelectData (_ref) {
|
|
18509
18703
|
setFetching(true);
|
18510
18704
|
serverSideParams = {
|
18511
18705
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.searchField.reduce(function (filter, field) {
|
18512
|
-
return _objectSpread$
|
18706
|
+
return _objectSpread$Q(_objectSpread$Q({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
18513
18707
|
}, {}) : {
|
18514
18708
|
_id: [value, 'contains']
|
18515
18709
|
},
|
@@ -18715,8 +18909,8 @@ function useSelectData (_ref) {
|
|
18715
18909
|
};
|
18716
18910
|
}
|
18717
18911
|
|
18718
|
-
var css_248z$
|
18719
|
-
styleInject(css_248z$
|
18912
|
+
var css_248z$s = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
18913
|
+
styleInject(css_248z$s);
|
18720
18914
|
|
18721
18915
|
var SelectWrapper = function SelectWrapper(_ref) {
|
18722
18916
|
var onChange = _ref.onChange,
|
@@ -18798,11 +18992,11 @@ var Select = observer(SelectWrapper);
|
|
18798
18992
|
var wrapper$5 = "wrapper-WStAk";
|
18799
18993
|
var headerWrapper = "header-wrapper-gWQuH";
|
18800
18994
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
18801
|
-
var css_248z$
|
18802
|
-
styleInject(css_248z$
|
18995
|
+
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";
|
18996
|
+
styleInject(css_248z$r);
|
18803
18997
|
|
18804
|
-
function ownKeys$
|
18805
|
-
function _objectSpread$
|
18998
|
+
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; }
|
18999
|
+
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
19000
|
var LOG$9 = getLogger('Backoffice', 'Translation Form');
|
18807
19001
|
function useTranslationHook (item, state) {
|
18808
19002
|
var root = useStore();
|
@@ -18935,7 +19129,7 @@ function useTranslationHook (item, state) {
|
|
18935
19129
|
case 0:
|
18936
19130
|
_context2.next = 2;
|
18937
19131
|
return apiHandler.create({
|
18938
|
-
locales: _objectSpread$
|
19132
|
+
locales: _objectSpread$P({
|
18939
19133
|
de: {},
|
18940
19134
|
it: {},
|
18941
19135
|
fr: {},
|
@@ -18984,8 +19178,8 @@ function useTranslationHook (item, state) {
|
|
18984
19178
|
};
|
18985
19179
|
}
|
18986
19180
|
|
18987
|
-
function ownKeys$
|
18988
|
-
function _objectSpread$
|
19181
|
+
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; }
|
19182
|
+
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
19183
|
var Translation = function Translation(_ref) {
|
18990
19184
|
var item = _ref.item,
|
18991
19185
|
state = _ref.state,
|
@@ -19035,7 +19229,7 @@ var Translation = function Translation(_ref) {
|
|
19035
19229
|
var hidden = state.getIsHidden(i, data);
|
19036
19230
|
var newAbsoluteName = absoluteName !== '' ? [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n)) : n;
|
19037
19231
|
return /*#__PURE__*/jsx(React.Fragment, {
|
19038
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
19232
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$O(_objectSpread$O({}, i), {}, {
|
19039
19233
|
name: n
|
19040
19234
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang) : /*#__PURE__*/jsx(Form$1.Item, {
|
19041
19235
|
id: idx.toString(),
|
@@ -19048,7 +19242,7 @@ var Translation = function Translation(_ref) {
|
|
19048
19242
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
19049
19243
|
help: state.fieldErrors[n.toString()],
|
19050
19244
|
hidden: hidden,
|
19051
|
-
children: getElement(_objectSpread$
|
19245
|
+
children: getElement(_objectSpread$O(_objectSpread$O({}, i), {}, {
|
19052
19246
|
name: n
|
19053
19247
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
19054
19248
|
})
|
@@ -19383,8 +19577,8 @@ var Text$1 = observer(Text);
|
|
19383
19577
|
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
19578
|
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
19579
|
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$
|
19580
|
+
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; }
|
19581
|
+
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
19582
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName) {
|
19389
19583
|
var _isReadonly, _state$hiddenRequired;
|
19390
19584
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
@@ -19419,7 +19613,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19419
19613
|
}
|
19420
19614
|
});
|
19421
19615
|
case 'selectSimple':
|
19422
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
19616
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$N(_objectSpread$N({}, item), {}, {
|
19423
19617
|
disabled: disabled,
|
19424
19618
|
onChange: function onChange(value) {
|
19425
19619
|
_onChange(absoluteName, value);
|
@@ -19623,7 +19817,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19623
19817
|
value: item.value,
|
19624
19818
|
options: item.options.map(function (o) {
|
19625
19819
|
var _o$disabled;
|
19626
|
-
return _objectSpread$
|
19820
|
+
return _objectSpread$N(_objectSpread$N({}, o), {}, {
|
19627
19821
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
|
19628
19822
|
});
|
19629
19823
|
}),
|
@@ -19644,7 +19838,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19644
19838
|
},
|
19645
19839
|
icon: item.icon,
|
19646
19840
|
callback: function callback(data) {
|
19647
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
19841
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$N(_objectSpread$N({}, state.data), data));
|
19648
19842
|
}
|
19649
19843
|
});
|
19650
19844
|
case 'media':
|
@@ -19665,7 +19859,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19665
19859
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
19666
19860
|
var _useTranslation = useTranslation(),
|
19667
19861
|
t = _useTranslation.t;
|
19668
|
-
return /*#__PURE__*/jsx(Input, _objectSpread$
|
19862
|
+
return /*#__PURE__*/jsx(Input, _objectSpread$N(_objectSpread$N({}, props), {}, {
|
19669
19863
|
ref: ref,
|
19670
19864
|
disabled: true,
|
19671
19865
|
value: t(props.translationPrefix + '.' + props.value)
|
@@ -19684,8 +19878,8 @@ function isReadonly(item, data) {
|
|
19684
19878
|
return false;
|
19685
19879
|
}
|
19686
19880
|
|
19687
|
-
function ownKeys$
|
19688
|
-
function _objectSpread$
|
19881
|
+
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; }
|
19882
|
+
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
19883
|
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
19884
|
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
19885
|
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 +19929,13 @@ var Presets = function Presets(_ref) {
|
|
19735
19929
|
} finally {
|
19736
19930
|
_iterator.f();
|
19737
19931
|
}
|
19738
|
-
var data = _objectSpread$
|
19932
|
+
var data = _objectSpread$M(_objectSpread$M({}, form.getFieldsValue(names)), {}, {
|
19739
19933
|
newPresetName: newPresetName
|
19740
19934
|
});
|
19741
19935
|
data.dpi = parseInt(data.dpi);
|
19742
19936
|
data.organization = root.getGlobalValue('organizationId');
|
19743
19937
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
19744
|
-
var dt = _objectSpread$
|
19938
|
+
var dt = _objectSpread$M(_objectSpread$M({}, form.getFieldsValue(names)), {}, {
|
19745
19939
|
name: newPresetName
|
19746
19940
|
});
|
19747
19941
|
setPresets({
|
@@ -20070,7 +20264,7 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
|
|
20070
20264
|
}, Array.isArray(item.name) ? item.name.join('.') : item.name)]
|
20071
20265
|
}, item.name.toString());
|
20072
20266
|
})]
|
20073
|
-
})]
|
20267
|
+
}, state.selectedItemsIndex.toString())]
|
20074
20268
|
}), state.configuration.showProgressBar && /*#__PURE__*/jsx(ModalProgressBar, {
|
20075
20269
|
isOpen: state.progressBarOpen,
|
20076
20270
|
percent: state.progressBarPercentage
|
@@ -20083,8 +20277,8 @@ function getLabel(item, t) {
|
|
20083
20277
|
}
|
20084
20278
|
var Form = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
20085
20279
|
|
20086
|
-
function ownKeys$
|
20087
|
-
function _objectSpread$
|
20280
|
+
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; }
|
20281
|
+
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
20282
|
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
20283
|
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
20284
|
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 +20480,7 @@ function useRoleSelectorData (_ref) {
|
|
20286
20480
|
roles.forEach(function (r) {
|
20287
20481
|
//check if after the changes the role is selected
|
20288
20482
|
if (value.includes(r._id)) {
|
20289
|
-
var newValue = _objectSpread$
|
20483
|
+
var newValue = _objectSpread$L(_objectSpread$L({}, r), {}, {
|
20290
20484
|
selected: true
|
20291
20485
|
});
|
20292
20486
|
//add it to the new list as selected role
|
@@ -20322,7 +20516,7 @@ function useRoleSelectorData (_ref) {
|
|
20322
20516
|
}
|
20323
20517
|
}
|
20324
20518
|
} else {
|
20325
|
-
var _newValue = _objectSpread$
|
20519
|
+
var _newValue = _objectSpread$L(_objectSpread$L({}, r), {}, {
|
20326
20520
|
selected: false
|
20327
20521
|
});
|
20328
20522
|
//add it to the new list as unselected role
|
@@ -20526,7 +20720,7 @@ function _updateRoles() {
|
|
20526
20720
|
userRole = userRoles.find(function (r) {
|
20527
20721
|
return r._id == role._id;
|
20528
20722
|
});
|
20529
|
-
newRole = _objectSpread$
|
20723
|
+
newRole = _objectSpread$L({}, role);
|
20530
20724
|
if (userRole) {
|
20531
20725
|
newRole.selected = true;
|
20532
20726
|
newRole.inherited = userRole.inherited;
|
@@ -20746,7 +20940,7 @@ function _fetchOptions() {
|
|
20746
20940
|
case 4:
|
20747
20941
|
result = _context11.sent;
|
20748
20942
|
options = result.data.map(function (d) {
|
20749
|
-
return _objectSpread$
|
20943
|
+
return _objectSpread$L(_objectSpread$L({}, d), {}, {
|
20750
20944
|
label: d.displayName,
|
20751
20945
|
value: d._id,
|
20752
20946
|
isLeaf: !d.hasChildren
|
@@ -20845,11 +21039,11 @@ var skeleton = "skeleton--xCI0";
|
|
20845
21039
|
var filterField = "filterField-1kU1O";
|
20846
21040
|
var parentScroll = "parent-scroll-GmaL9";
|
20847
21041
|
var parent = "parent-NZJ3S";
|
20848
|
-
var css_248z$
|
20849
|
-
styleInject(css_248z$
|
21042
|
+
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";
|
21043
|
+
styleInject(css_248z$q);
|
20850
21044
|
|
20851
|
-
function ownKeys$
|
20852
|
-
function _objectSpread$
|
21045
|
+
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; }
|
21046
|
+
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
21047
|
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
21048
|
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
21049
|
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 +21103,8 @@ function _generateCSV() {
|
|
20909
21103
|
break;
|
20910
21104
|
}
|
20911
21105
|
_context2.next = 21;
|
20912
|
-
return generateCSV(_objectSpread$
|
20913
|
-
mappingData: _objectSpread$
|
21106
|
+
return generateCSV(_objectSpread$K(_objectSpread$K({}, exportParams.children), {}, {
|
21107
|
+
mappingData: _objectSpread$K(_objectSpread$K({}, parent), {}, {
|
20914
21108
|
parentId: exportParams.mappingData._id
|
20915
21109
|
})
|
20916
21110
|
}), csvData);
|
@@ -21018,8 +21212,8 @@ function _downloadFile() {
|
|
21018
21212
|
return _downloadFile.apply(this, arguments);
|
21019
21213
|
}
|
21020
21214
|
|
21021
|
-
function ownKeys$
|
21022
|
-
function _objectSpread$
|
21215
|
+
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; }
|
21216
|
+
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
21217
|
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
21218
|
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
21219
|
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 +21632,7 @@ function useRelationSelectorData (_ref) {
|
|
21438
21632
|
var activeItem = _step.value;
|
21439
21633
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
21440
21634
|
addedObjects.push(addedData);
|
21441
|
-
getSplittedItems(_objectSpread$
|
21635
|
+
getSplittedItems(_objectSpread$J(_objectSpread$J({}, activeItem), {}, {
|
21442
21636
|
userId: data === null || data === void 0 ? void 0 : data._id
|
21443
21637
|
}));
|
21444
21638
|
ret = true;
|
@@ -21643,8 +21837,8 @@ function useRelationSelectorData (_ref) {
|
|
21643
21837
|
};
|
21644
21838
|
}
|
21645
21839
|
|
21646
|
-
function ownKeys$
|
21647
|
-
function _objectSpread$
|
21840
|
+
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; }
|
21841
|
+
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
21842
|
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
21843
|
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
21844
|
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 +21971,7 @@ function ActionButton (_ref) {
|
|
21777
21971
|
_iterator2.f();
|
21778
21972
|
}
|
21779
21973
|
_context.next = 19;
|
21780
|
-
return apiInterface.update(_objectSpread$
|
21974
|
+
return apiInterface.update(_objectSpread$I(_objectSpread$I({}, data), {}, {
|
21781
21975
|
state: toSwitch
|
21782
21976
|
}), data);
|
21783
21977
|
case 19:
|
@@ -21934,14 +22128,14 @@ function _simpleChangeValue() {
|
|
21934
22128
|
break;
|
21935
22129
|
}
|
21936
22130
|
for (i = 0; i < action.newValues.length; i++) {
|
21937
|
-
fieldsToUpdate = _objectSpread$
|
22131
|
+
fieldsToUpdate = _objectSpread$I(_objectSpread$I({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
21938
22132
|
}
|
21939
22133
|
if (!apiInterface.canUpdate) {
|
21940
22134
|
_context2.next = 9;
|
21941
22135
|
break;
|
21942
22136
|
}
|
21943
22137
|
_context2.next = 7;
|
21944
|
-
return apiInterface.update(_objectSpread$
|
22138
|
+
return apiInterface.update(_objectSpread$I({}, fieldsToUpdate), data);
|
21945
22139
|
case 7:
|
21946
22140
|
response = _context2.sent;
|
21947
22141
|
return _context2.abrupt("return", response);
|
@@ -21956,7 +22150,7 @@ function _simpleChangeValue() {
|
|
21956
22150
|
return _simpleChangeValue.apply(this, arguments);
|
21957
22151
|
}
|
21958
22152
|
function A(props) {
|
21959
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
22153
|
+
return /*#__PURE__*/jsx("a", _objectSpread$I({}, props));
|
21960
22154
|
}
|
21961
22155
|
|
21962
22156
|
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 +22285,11 @@ var newscroller = "newscroller-INKeD";
|
|
22091
22285
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
22092
22286
|
var itemTitle = "item-title--BTvC";
|
22093
22287
|
var itemDesc = "item-desc-DBiiF";
|
22094
|
-
var css_248z$
|
22095
|
-
styleInject(css_248z$
|
22288
|
+
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";
|
22289
|
+
styleInject(css_248z$p);
|
22096
22290
|
|
22097
|
-
function ownKeys$
|
22098
|
-
function _objectSpread$
|
22291
|
+
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; }
|
22292
|
+
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
22293
|
var DropDown = function DropDown(_ref) {
|
22100
22294
|
var _curItem$data$length;
|
22101
22295
|
var split = _ref.split,
|
@@ -22127,7 +22321,7 @@ var DropDown = function DropDown(_ref) {
|
|
22127
22321
|
});
|
22128
22322
|
return /*#__PURE__*/jsx(Collapse, {
|
22129
22323
|
onChange: function onChange() {
|
22130
|
-
return getSplittedItems(_objectSpread$
|
22324
|
+
return getSplittedItems(_objectSpread$H(_objectSpread$H({}, item.item), {}, {
|
22131
22325
|
parentId: item.parentId
|
22132
22326
|
}), 0);
|
22133
22327
|
},
|
@@ -22385,8 +22579,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
22385
22579
|
};
|
22386
22580
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
22387
22581
|
|
22388
|
-
function ownKeys$
|
22389
|
-
function _objectSpread$
|
22582
|
+
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; }
|
22583
|
+
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
22584
|
function useFormListData (_ref) {
|
22391
22585
|
var _configuration$defaul;
|
22392
22586
|
var id = _ref.id,
|
@@ -22466,7 +22660,7 @@ function useFormListData (_ref) {
|
|
22466
22660
|
if (updated.length == state.length) {
|
22467
22661
|
newState = state.map(function (s, i) {
|
22468
22662
|
var _updated$find;
|
22469
|
-
return _objectSpread$
|
22663
|
+
return _objectSpread$G(_objectSpread$G({}, s), {}, {
|
22470
22664
|
data: (_updated$find = updated.find(function (u) {
|
22471
22665
|
return u.index == i;
|
22472
22666
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
@@ -22603,8 +22797,8 @@ var FormList = function FormList(_ref, ref) {
|
|
22603
22797
|
};
|
22604
22798
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
22605
22799
|
|
22606
|
-
function ownKeys$
|
22607
|
-
function _objectSpread$
|
22800
|
+
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; }
|
22801
|
+
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
22802
|
var LOG$6 = getLogger('Backoffice', 'SelectOrCreate');
|
22609
22803
|
function useSelectOrCreateData (_ref) {
|
22610
22804
|
var id = _ref.id,
|
@@ -22701,7 +22895,7 @@ function useSelectOrCreateData (_ref) {
|
|
22701
22895
|
_context.next = 7;
|
22702
22896
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
22703
22897
|
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$
|
22898
|
+
return _objectSpread$F(_objectSpread$F({}, filter), {}, _defineProperty({}, field.field, [value, field.filter, true]));
|
22705
22899
|
}, {}) : {
|
22706
22900
|
_id: [value, 'contains']
|
22707
22901
|
},
|
@@ -23012,8 +23206,8 @@ var Multiple = function Multiple(_ref3) {
|
|
23012
23206
|
});
|
23013
23207
|
};
|
23014
23208
|
|
23015
|
-
function ownKeys$
|
23016
|
-
function _objectSpread$
|
23209
|
+
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; }
|
23210
|
+
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
23211
|
function useListData (_ref) {
|
23018
23212
|
var id = _ref.id,
|
23019
23213
|
data = _ref.data;
|
@@ -23056,7 +23250,7 @@ function useListData (_ref) {
|
|
23056
23250
|
case 3:
|
23057
23251
|
result = _context.sent;
|
23058
23252
|
setListData(result.data.map(parseField));
|
23059
|
-
initData = _objectSpread$
|
23253
|
+
initData = _objectSpread$E({}, data);
|
23060
23254
|
setUpdatedObject(initData);
|
23061
23255
|
setLoading(false);
|
23062
23256
|
case 8:
|
@@ -23097,7 +23291,7 @@ function useListData (_ref) {
|
|
23097
23291
|
});
|
23098
23292
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
23099
23293
|
var parsedField = field.field.split('.');
|
23100
|
-
item.itemUpdate = _objectSpread$
|
23294
|
+
item.itemUpdate = _objectSpread$E(_objectSpread$E({}, field), {}, {
|
23101
23295
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
23102
23296
|
});
|
23103
23297
|
});
|
@@ -23128,16 +23322,16 @@ function useListData (_ref) {
|
|
23128
23322
|
console.error('field with more than 2 parts not allowed');
|
23129
23323
|
return;
|
23130
23324
|
}
|
23131
|
-
var updObj = _objectSpread$
|
23325
|
+
var updObj = _objectSpread$E({}, updatedObject);
|
23132
23326
|
if (fields.length === 1) {
|
23133
|
-
updObj = _objectSpread$
|
23327
|
+
updObj = _objectSpread$E(_objectSpread$E({}, updObj), {}, _defineProperty({}, fields[0], value));
|
23134
23328
|
} else if (fields.length === 2) {
|
23135
23329
|
var updatedField = updObj[fields[0]].find(function (v) {
|
23136
23330
|
return v.id === item.id.trim();
|
23137
23331
|
});
|
23138
23332
|
if (updatedField) {
|
23139
|
-
var updatedFieldCopy = _objectSpread$
|
23140
|
-
updObj = _objectSpread$
|
23333
|
+
var updatedFieldCopy = _objectSpread$E(_objectSpread$E({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
23334
|
+
updObj = _objectSpread$E(_objectSpread$E({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
23141
23335
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
23142
23336
|
})));
|
23143
23337
|
}
|
@@ -23146,11 +23340,11 @@ function useListData (_ref) {
|
|
23146
23340
|
var acItems = listData;
|
23147
23341
|
for (var i = 0; i < acItems.length; i++) {
|
23148
23342
|
if (i == index) {
|
23149
|
-
acItems[i].itemUpdate = _objectSpread$
|
23343
|
+
acItems[i].itemUpdate = _objectSpread$E(_objectSpread$E({}, acItems[i].itemUpdate), {}, {
|
23150
23344
|
value: value
|
23151
23345
|
});
|
23152
23346
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
23153
|
-
acItems[i].itemUpdate = _objectSpread$
|
23347
|
+
acItems[i].itemUpdate = _objectSpread$E(_objectSpread$E({}, acItems[i].itemUpdate), {}, {
|
23154
23348
|
value: !value
|
23155
23349
|
});
|
23156
23350
|
}
|
@@ -23504,8 +23698,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
23504
23698
|
var preview = "preview-9wK81";
|
23505
23699
|
var previewButton = "preview-button-vupuG";
|
23506
23700
|
var editButton = "edit-button-m6r3M";
|
23507
|
-
var css_248z$
|
23508
|
-
styleInject(css_248z$
|
23701
|
+
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";
|
23702
|
+
styleInject(css_248z$o);
|
23509
23703
|
|
23510
23704
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
23511
23705
|
var id = _ref.id,
|
@@ -23664,8 +23858,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
23664
23858
|
};
|
23665
23859
|
}
|
23666
23860
|
|
23667
|
-
function ownKeys$
|
23668
|
-
function _objectSpread$
|
23861
|
+
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; }
|
23862
|
+
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
23863
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
23670
23864
|
var id = _ref.id,
|
23671
23865
|
data = _ref.data,
|
@@ -23773,12 +23967,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
23773
23967
|
}
|
23774
23968
|
function onEnter(e) {
|
23775
23969
|
if (e.key != 'Enter') return;
|
23776
|
-
setCrop(_objectSpread$
|
23970
|
+
setCrop(_objectSpread$D(_objectSpread$D({}, crop), {}, {
|
23777
23971
|
unit: 'px',
|
23778
23972
|
width: Number(widthInputElement.current.value),
|
23779
23973
|
height: Number(heightInputElement.current.value)
|
23780
23974
|
}));
|
23781
|
-
setCompletedCrop(_objectSpread$
|
23975
|
+
setCompletedCrop(_objectSpread$D(_objectSpread$D({}, crop), {}, {
|
23782
23976
|
unit: 'px',
|
23783
23977
|
width: Number(widthInputElement.current.value),
|
23784
23978
|
height: Number(heightInputElement.current.value)
|
@@ -23856,8 +24050,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
23856
24050
|
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
24051
|
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
24052
|
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$
|
24053
|
+
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; }
|
24054
|
+
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
24055
|
function useDescriptions (_ref) {
|
23862
24056
|
var id = _ref.id;
|
23863
24057
|
var root = useStore();
|
@@ -23950,7 +24144,7 @@ function _getDisplayData() {
|
|
23950
24144
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
23951
24145
|
while (1) switch (_context4.prev = _context4.next) {
|
23952
24146
|
case 0:
|
23953
|
-
displayData = _objectSpread$
|
24147
|
+
displayData = _objectSpread$C({}, data);
|
23954
24148
|
_iterator = _createForOfIteratorHelper$9(items);
|
23955
24149
|
_context4.prev = 2;
|
23956
24150
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
@@ -24226,8 +24420,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
24226
24420
|
};
|
24227
24421
|
var FileUploadBeta = observer(FileUploadWrapper$1);
|
24228
24422
|
|
24229
|
-
function ownKeys$
|
24230
|
-
function _objectSpread$
|
24423
|
+
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; }
|
24424
|
+
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
24425
|
function useGridData (_ref) {
|
24232
24426
|
var id = _ref.id,
|
24233
24427
|
data = _ref.data;
|
@@ -24270,11 +24464,11 @@ function useGridData (_ref) {
|
|
24270
24464
|
function reducer(state, action) {
|
24271
24465
|
switch (action.type) {
|
24272
24466
|
case 'update':
|
24273
|
-
return _objectSpread$
|
24467
|
+
return _objectSpread$B(_objectSpread$B({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$B(_objectSpread$B({}, action.data), {}, {
|
24274
24468
|
buffer: Buffer.from(action.data.buffer)
|
24275
24469
|
})));
|
24276
24470
|
case 'delete':
|
24277
|
-
var newState = _objectSpread$
|
24471
|
+
var newState = _objectSpread$B({}, state);
|
24278
24472
|
delete newState[action.data.divaNr];
|
24279
24473
|
return newState;
|
24280
24474
|
default:
|
@@ -24284,13 +24478,13 @@ function reducer(state, action) {
|
|
24284
24478
|
|
24285
24479
|
var grid = "grid-sGemi";
|
24286
24480
|
var textWrapper = "text-wrapper-xsPXE";
|
24287
|
-
var css_248z$
|
24288
|
-
styleInject(css_248z$
|
24481
|
+
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";
|
24482
|
+
styleInject(css_248z$n);
|
24289
24483
|
|
24290
24484
|
var wrapper$4 = "wrapper-p-gR3";
|
24291
|
-
var container$
|
24292
|
-
var css_248z$
|
24293
|
-
styleInject(css_248z$
|
24485
|
+
var container$6 = "container-DoZqe";
|
24486
|
+
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";
|
24487
|
+
styleInject(css_248z$m);
|
24294
24488
|
|
24295
24489
|
var ToolTipInfo = function ToolTipInfo(props) {
|
24296
24490
|
var _useTranslation = useTranslation(),
|
@@ -24309,7 +24503,7 @@ var ToolTipInfo = function ToolTipInfo(props) {
|
|
24309
24503
|
width: 230
|
24310
24504
|
},
|
24311
24505
|
children: /*#__PURE__*/jsx("div", {
|
24312
|
-
className: container$
|
24506
|
+
className: container$6
|
24313
24507
|
})
|
24314
24508
|
})
|
24315
24509
|
});
|
@@ -24361,8 +24555,8 @@ var Grid = function Grid(_ref) {
|
|
24361
24555
|
});
|
24362
24556
|
};
|
24363
24557
|
|
24364
|
-
function ownKeys$
|
24365
|
-
function _objectSpread$
|
24558
|
+
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; }
|
24559
|
+
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
24560
|
var useMediaUpload = function useMediaUpload(_ref) {
|
24367
24561
|
var id = _ref.id;
|
24368
24562
|
var root = useStore();
|
@@ -24481,7 +24675,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24481
24675
|
onRemove: onRemove,
|
24482
24676
|
customRequest: customRequest,
|
24483
24677
|
fileList: fileList.map(function (f) {
|
24484
|
-
return _objectSpread$
|
24678
|
+
return _objectSpread$A(_objectSpread$A({}, f), {}, {
|
24485
24679
|
url: f.url
|
24486
24680
|
});
|
24487
24681
|
}),
|
@@ -24493,8 +24687,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24493
24687
|
var small = "small-NY1-k";
|
24494
24688
|
var medium = "medium---QcO";
|
24495
24689
|
var big = "big--E39S";
|
24496
|
-
var css_248z$
|
24497
|
-
styleInject(css_248z$
|
24690
|
+
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";
|
24691
|
+
styleInject(css_248z$l);
|
24498
24692
|
|
24499
24693
|
var MediaUpload = observer(function (_ref) {
|
24500
24694
|
var id = _ref.id;
|
@@ -24569,8 +24763,8 @@ var TableSummary = function TableSummary(_ref) {
|
|
24569
24763
|
});
|
24570
24764
|
};
|
24571
24765
|
|
24572
|
-
function ownKeys$
|
24573
|
-
function _objectSpread$
|
24766
|
+
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; }
|
24767
|
+
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
24768
|
function getExpandedRowRenderer (config, root) {
|
24575
24769
|
return function (record) {
|
24576
24770
|
var data = record;
|
@@ -24592,7 +24786,7 @@ function customSubTable(columns, datasource) {
|
|
24592
24786
|
// map custom columns to antd columns
|
24593
24787
|
var antcols = columns.map(function (col) {
|
24594
24788
|
var _col$width;
|
24595
|
-
return _objectSpread$
|
24789
|
+
return _objectSpread$z(_objectSpread$z({}, col), {}, {
|
24596
24790
|
title: col.title,
|
24597
24791
|
dataIndex: col.field,
|
24598
24792
|
key: col.field,
|
@@ -24620,8 +24814,8 @@ var editableRow = "editable-row-9BEHi";
|
|
24620
24814
|
var checkbox = "checkbox-H7R-w";
|
24621
24815
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
24622
24816
|
var contentWidth = "content-width-hGyVI";
|
24623
|
-
var css_248z$
|
24624
|
-
styleInject(css_248z$
|
24817
|
+
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";
|
24818
|
+
styleInject(css_248z$k);
|
24625
24819
|
|
24626
24820
|
function BooleanCell (_ref) {
|
24627
24821
|
var children = _ref.children,
|
@@ -25304,8 +25498,8 @@ function LinkCell (_ref) {
|
|
25304
25498
|
|
25305
25499
|
var _excluded$1 = ["index"],
|
25306
25500
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
25307
|
-
function ownKeys$
|
25308
|
-
function _objectSpread$
|
25501
|
+
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; }
|
25502
|
+
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
25503
|
var LOG$4 = getLogger('Backoffice', 'CellRenderer');
|
25310
25504
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
25311
25505
|
var CustomRow = function CustomRow(_ref) {
|
@@ -25319,7 +25513,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
25319
25513
|
component: false,
|
25320
25514
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
25321
25515
|
value: form,
|
25322
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
25516
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$y({}, props))
|
25323
25517
|
})
|
25324
25518
|
});
|
25325
25519
|
};
|
@@ -25372,7 +25566,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
25372
25566
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
25373
25567
|
longDescriptionType = 'text';
|
25374
25568
|
}
|
25375
|
-
var modifiedColumn = _objectSpread$
|
25569
|
+
var modifiedColumn = _objectSpread$y(_objectSpread$y({}, column), {}, {
|
25376
25570
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
25377
25571
|
});
|
25378
25572
|
if (column) {
|
@@ -25385,40 +25579,40 @@ var CustomCell = function CustomCell(_ref2) {
|
|
25385
25579
|
};
|
25386
25580
|
switch (modifiedColumn.type) {
|
25387
25581
|
case 'boolean':
|
25388
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
25582
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$y({}, cellProps));
|
25389
25583
|
break;
|
25390
25584
|
case 'text':
|
25391
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
25585
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$y({}, cellProps));
|
25392
25586
|
break;
|
25393
25587
|
case 'select':
|
25394
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
25588
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$y({}, cellProps));
|
25395
25589
|
case 'media':
|
25396
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
25590
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$y({}, cellProps));
|
25397
25591
|
break;
|
25398
25592
|
case 'mediaItem':
|
25399
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
25593
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$y({}, cellProps));
|
25400
25594
|
break;
|
25401
25595
|
case 'unixTimeStamp':
|
25402
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
25596
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$y({}, cellProps));
|
25403
25597
|
break;
|
25404
25598
|
case 'unixTimeStampCheck':
|
25405
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
25599
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$y({}, cellProps));
|
25406
25600
|
break;
|
25407
25601
|
case 'icon':
|
25408
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
25602
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$y({}, cellProps));
|
25409
25603
|
break;
|
25410
25604
|
case 'progress':
|
25411
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
25605
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$y({}, cellProps));
|
25412
25606
|
break;
|
25413
25607
|
case 'link':
|
25414
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
25608
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$y({}, cellProps));
|
25415
25609
|
break;
|
25416
25610
|
default:
|
25417
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
25611
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$y({}, cellProps));
|
25418
25612
|
break;
|
25419
25613
|
}
|
25420
25614
|
}
|
25421
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
25615
|
+
return /*#__PURE__*/jsx("td", _objectSpread$y(_objectSpread$y({}, restProps), {}, {
|
25422
25616
|
children: childNode
|
25423
25617
|
}));
|
25424
25618
|
};
|
@@ -25607,11 +25801,11 @@ function useAGHistogram (_ref) {
|
|
25607
25801
|
};
|
25608
25802
|
}
|
25609
25803
|
|
25610
|
-
var container$
|
25804
|
+
var container$5 = "container-2r-OJ";
|
25611
25805
|
var column1 = "column1-9viTK";
|
25612
25806
|
var spinner = "spinner-00VcK";
|
25613
|
-
var css_248z$
|
25614
|
-
styleInject(css_248z$
|
25807
|
+
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";
|
25808
|
+
styleInject(css_248z$j);
|
25615
25809
|
|
25616
25810
|
var Panel = Collapse.Panel;
|
25617
25811
|
function AGHistogram (_ref) {
|
@@ -25724,7 +25918,7 @@ function AGHistogram (_ref) {
|
|
25724
25918
|
children: /*#__PURE__*/jsx(Panel, {
|
25725
25919
|
header: headerText,
|
25726
25920
|
children: /*#__PURE__*/jsxs("div", {
|
25727
|
-
className: container$
|
25921
|
+
className: container$5,
|
25728
25922
|
children: [!loadingHistogram && /*#__PURE__*/jsx("div", {
|
25729
25923
|
className: classnames(column1, 'ag-theme-alpine'),
|
25730
25924
|
style: {
|
@@ -25770,8 +25964,8 @@ var SMChart = function SMChart(props) {
|
|
25770
25964
|
}) : /*#__PURE__*/jsx(Fragment, {});
|
25771
25965
|
};
|
25772
25966
|
|
25773
|
-
function ownKeys$
|
25774
|
-
function _objectSpread$
|
25967
|
+
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; }
|
25968
|
+
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
25969
|
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
25970
|
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
25971
|
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 +26118,11 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25924
26118
|
return state.selected.find(function (sel) {
|
25925
26119
|
return sel == dt._id;
|
25926
26120
|
});
|
25927
|
-
})
|
26121
|
+
}).length ? state.data.filter(function (dt) {
|
26122
|
+
return state.selected.find(function (sel) {
|
26123
|
+
return sel == dt._id;
|
26124
|
+
});
|
26125
|
+
}) : state.mappingData,
|
25928
26126
|
action: state.configuration.downloadAction,
|
25929
26127
|
catalogCodex: (_state$catalogItem = state.catalogItem) === null || _state$catalogItem === void 0 ? void 0 : _state$catalogItem.codex,
|
25930
26128
|
dealerId: (_state$catalogItem2 = state.catalogItem) === null || _state$catalogItem2 === void 0 ? void 0 : _state$catalogItem2.dealerId,
|
@@ -25966,7 +26164,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25966
26164
|
// Convert to Dayjs
|
25967
26165
|
(_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
26166
|
]
|
25969
|
-
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
26167
|
+
}), ((_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
26168
|
style: {
|
25971
26169
|
minWidth: '200px'
|
25972
26170
|
},
|
@@ -26071,7 +26269,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
26071
26269
|
},
|
26072
26270
|
dataSource: data,
|
26073
26271
|
loading: state.loading,
|
26074
|
-
pagination: _objectSpread$
|
26272
|
+
pagination: _objectSpread$x(_objectSpread$x({}, state.pagination), {}, {
|
26075
26273
|
showTotal: function showTotal(total, range) {
|
26076
26274
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
26077
26275
|
},
|
@@ -26391,7 +26589,7 @@ function BulkAction(_ref6) {
|
|
26391
26589
|
}
|
26392
26590
|
_context4.t0 = data;
|
26393
26591
|
_context4.next = 11;
|
26394
|
-
return apiInterface.update(_objectSpread$
|
26592
|
+
return apiInterface.update(_objectSpread$x(_objectSpread$x({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
26395
26593
|
case 11:
|
26396
26594
|
_context4.t1 = _context4.sent;
|
26397
26595
|
_context4.t0.push.call(_context4.t0, _context4.t1);
|
@@ -26504,8 +26702,8 @@ function SelectionText(_ref8) {
|
|
26504
26702
|
});
|
26505
26703
|
}
|
26506
26704
|
|
26507
|
-
function ownKeys$
|
26508
|
-
function _objectSpread$
|
26705
|
+
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; }
|
26706
|
+
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
26707
|
function getColumnFilterProps (_ref) {
|
26510
26708
|
var filter = _ref.filter,
|
26511
26709
|
title = _ref.title;
|
@@ -26868,7 +27066,7 @@ var selectProps = function selectProps(title, filter) {
|
|
26868
27066
|
});
|
26869
27067
|
},
|
26870
27068
|
options: filter.map(function (f) {
|
26871
|
-
return _objectSpread$
|
27069
|
+
return _objectSpread$w(_objectSpread$w({}, f), {}, {
|
26872
27070
|
label: t(f.label)
|
26873
27071
|
});
|
26874
27072
|
})
|
@@ -26917,7 +27115,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
26917
27115
|
setDisplaySelectedvalues = _useState4[1];
|
26918
27116
|
var options = [];
|
26919
27117
|
options = filter.map(function (f) {
|
26920
|
-
return _objectSpread$
|
27118
|
+
return _objectSpread$w(_objectSpread$w({}, f), {}, {
|
26921
27119
|
label: t(f.label)
|
26922
27120
|
});
|
26923
27121
|
});
|
@@ -26991,8 +27189,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
26991
27189
|
};
|
26992
27190
|
};
|
26993
27191
|
|
26994
|
-
function ownKeys$
|
26995
|
-
function _objectSpread$
|
27192
|
+
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; }
|
27193
|
+
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
27194
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
|
26997
27195
|
var columns = configuration.columns.filter(function (c) {
|
26998
27196
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
@@ -27045,7 +27243,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
27045
27243
|
}
|
27046
27244
|
function mapColumn(column, onUpdate) {
|
27047
27245
|
var _column$field, _column$children;
|
27048
|
-
return _objectSpread$
|
27246
|
+
return _objectSpread$v(_objectSpread$v(_objectSpread$v({}, column), {}, {
|
27049
27247
|
hidden: false,
|
27050
27248
|
width: column.width || 100,
|
27051
27249
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
@@ -27095,8 +27293,8 @@ function updateData (_ref) {
|
|
27095
27293
|
};
|
27096
27294
|
}
|
27097
27295
|
|
27098
|
-
function ownKeys$
|
27099
|
-
function _objectSpread$
|
27296
|
+
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; }
|
27297
|
+
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
27298
|
function applyFilterAndSortation (_ref) {
|
27101
27299
|
var data = _ref.data,
|
27102
27300
|
filters = _ref.filters,
|
@@ -27111,7 +27309,7 @@ function applyFilterAndSortation (_ref) {
|
|
27111
27309
|
processedData = sort(sorter || [], processedData);
|
27112
27310
|
return {
|
27113
27311
|
data: processedData,
|
27114
|
-
pagination: _objectSpread$
|
27312
|
+
pagination: _objectSpread$u(_objectSpread$u({}, pagination), {}, {
|
27115
27313
|
total: processedData.length
|
27116
27314
|
})
|
27117
27315
|
};
|
@@ -27196,8 +27394,8 @@ function filter(f, data) {
|
|
27196
27394
|
}
|
27197
27395
|
|
27198
27396
|
var _excluded = ["_id"];
|
27199
|
-
function ownKeys$
|
27200
|
-
function _objectSpread$
|
27397
|
+
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; }
|
27398
|
+
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
27399
|
function useTableData$1 (_ref) {
|
27202
27400
|
var _configuration$apiInt;
|
27203
27401
|
var id = _ref.id;
|
@@ -27252,7 +27450,7 @@ function useTableData$1 (_ref) {
|
|
27252
27450
|
var _configuration$create;
|
27253
27451
|
if (!dataRow) return;
|
27254
27452
|
var id = v4();
|
27255
|
-
var processedDataRow = unflatten(_objectSpread$
|
27453
|
+
var processedDataRow = unflatten(_objectSpread$t({
|
27256
27454
|
_id: id,
|
27257
27455
|
ID: id
|
27258
27456
|
}, dataRow));
|
@@ -27264,11 +27462,11 @@ function useTableData$1 (_ref) {
|
|
27264
27462
|
newData = _updateData.data;
|
27265
27463
|
_updateData.prevDataRow;
|
27266
27464
|
_updateData.index;
|
27267
|
-
var newState = _objectSpread$
|
27465
|
+
var newState = _objectSpread$t(_objectSpread$t({}, state), {}, {
|
27268
27466
|
data: newData
|
27269
27467
|
});
|
27270
27468
|
if (!filterServerSide) {
|
27271
|
-
var res = applyFilterAndSortation(_objectSpread$
|
27469
|
+
var res = applyFilterAndSortation(_objectSpread$t(_objectSpread$t({}, filterData), {}, {
|
27272
27470
|
data: newData
|
27273
27471
|
}));
|
27274
27472
|
newState.data = res.data;
|
@@ -27280,33 +27478,33 @@ function useTableData$1 (_ref) {
|
|
27280
27478
|
var formData = new FormData();
|
27281
27479
|
processedDataRow._id;
|
27282
27480
|
var value = _objectWithoutProperties(processedDataRow, _excluded);
|
27283
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
27481
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27284
27482
|
filterContex: filterContex,
|
27285
27483
|
value: JSON.stringify([value])
|
27286
27484
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
27287
27485
|
if (d && d.Result && d.Result == 'Success') return;
|
27288
|
-
setState(_objectSpread$
|
27486
|
+
setState(_objectSpread$t({}, oldState));
|
27289
27487
|
});
|
27290
27488
|
}, [state, catalogItem, filterData]);
|
27291
27489
|
useEffect(function () {
|
27292
27490
|
if (!catalogItem) return;
|
27293
|
-
setState(_objectSpread$
|
27491
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27294
27492
|
loading: true,
|
27295
|
-
mappingData: _objectSpread$
|
27493
|
+
mappingData: _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27296
27494
|
filterContex: filterContex
|
27297
27495
|
})
|
27298
27496
|
}));
|
27299
27497
|
if (!filterServerSide) {
|
27300
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
27498
|
+
apiHandler.readList(configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27301
27499
|
filterContex: filterContex
|
27302
27500
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
27303
27501
|
var newData = data.data.map(function (d) {
|
27304
|
-
return _objectSpread$
|
27502
|
+
return _objectSpread$t(_objectSpread$t({}, d), {}, {
|
27305
27503
|
_id: d._id || d.ID || nanoid()
|
27306
27504
|
});
|
27307
27505
|
});
|
27308
27506
|
onChange({
|
27309
|
-
pagination: _objectSpread$
|
27507
|
+
pagination: _objectSpread$t({}, state.pagination),
|
27310
27508
|
filters: {},
|
27311
27509
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
27312
27510
|
return c.defaultSortOrder;
|
@@ -27322,7 +27520,7 @@ function useTableData$1 (_ref) {
|
|
27322
27520
|
});
|
27323
27521
|
} else {
|
27324
27522
|
onChange({
|
27325
|
-
pagination: _objectSpread$
|
27523
|
+
pagination: _objectSpread$t({}, state.pagination),
|
27326
27524
|
filters: {},
|
27327
27525
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
27328
27526
|
return c.defaultSortOrder;
|
@@ -27338,17 +27536,17 @@ function useTableData$1 (_ref) {
|
|
27338
27536
|
}
|
27339
27537
|
}, [filterContex, catalogItem]);
|
27340
27538
|
var onChange = function onChange(p, dataParam) {
|
27341
|
-
setState(_objectSpread$
|
27539
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27342
27540
|
loading: true
|
27343
27541
|
}));
|
27344
27542
|
if (!filterServerSide) {
|
27345
27543
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
27346
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
27544
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$t(_objectSpread$t({}, p), {}, {
|
27347
27545
|
data: unfilteredData
|
27348
27546
|
})),
|
27349
27547
|
data = _applyFilterAndSortat.data,
|
27350
27548
|
pagination = _applyFilterAndSortat.pagination;
|
27351
|
-
setState(_objectSpread$
|
27549
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27352
27550
|
data: data,
|
27353
27551
|
pagination: pagination,
|
27354
27552
|
loading: false,
|
@@ -27359,20 +27557,20 @@ function useTableData$1 (_ref) {
|
|
27359
27557
|
sorter: p.sorter
|
27360
27558
|
});
|
27361
27559
|
} else {
|
27362
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
27560
|
+
apiHandler.readList(configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27363
27561
|
filterContex: filterContex
|
27364
27562
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
27365
|
-
setState(_objectSpread$
|
27563
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27366
27564
|
data: data.data.map(function (dt) {
|
27367
|
-
return _objectSpread$
|
27565
|
+
return _objectSpread$t(_objectSpread$t({}, dt), {}, {
|
27368
27566
|
_id: dt._id || dt.ID || nanoid()
|
27369
27567
|
});
|
27370
27568
|
}),
|
27371
|
-
pagination: _objectSpread$
|
27569
|
+
pagination: _objectSpread$t(_objectSpread$t({}, p.pagination), {}, {
|
27372
27570
|
total: data.total
|
27373
27571
|
}),
|
27374
27572
|
loading: false,
|
27375
|
-
mappingData: _objectSpread$
|
27573
|
+
mappingData: _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27376
27574
|
filterContex: filterContex
|
27377
27575
|
})
|
27378
27576
|
}));
|
@@ -27393,7 +27591,7 @@ function useTableData$1 (_ref) {
|
|
27393
27591
|
filters['_id'] = [id, 'eq', false];
|
27394
27592
|
_context.next = 4;
|
27395
27593
|
return apiHandler.readList(configuration.mapping, {
|
27396
|
-
pagination: _objectSpread$
|
27594
|
+
pagination: _objectSpread$t({}, state.pagination),
|
27397
27595
|
columns: configuration.columns,
|
27398
27596
|
filters: filters,
|
27399
27597
|
sorter: filterData.sorter
|
@@ -27412,7 +27610,7 @@ function useTableData$1 (_ref) {
|
|
27412
27610
|
};
|
27413
27611
|
}();
|
27414
27612
|
var onSelect = function onSelect(keys) {
|
27415
|
-
setState(_objectSpread$
|
27613
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27416
27614
|
selected: keys
|
27417
27615
|
}));
|
27418
27616
|
};
|
@@ -27422,7 +27620,7 @@ function useTableData$1 (_ref) {
|
|
27422
27620
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
27423
27621
|
while (1) switch (_context3.prev = _context3.next) {
|
27424
27622
|
case 0:
|
27425
|
-
setState(_objectSpread$
|
27623
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27426
27624
|
deleting: true
|
27427
27625
|
}));
|
27428
27626
|
newData = _toConsumableArray(state.data);
|
@@ -27437,7 +27635,7 @@ function useTableData$1 (_ref) {
|
|
27437
27635
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
27438
27636
|
return nd._id === state.selected[index];
|
27439
27637
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
27440
|
-
mappingData = _objectSpread$
|
27638
|
+
mappingData = _objectSpread$t(_objectSpread$t({}, mappingData), state.mappingData);
|
27441
27639
|
_context2.next = 5;
|
27442
27640
|
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
27641
|
case 5:
|
@@ -27487,7 +27685,7 @@ function useTableData$1 (_ref) {
|
|
27487
27685
|
}
|
27488
27686
|
_context3.next = 18;
|
27489
27687
|
return apiHandler.readList(configuration.mapping, {
|
27490
|
-
pagination: _objectSpread$
|
27688
|
+
pagination: _objectSpread$t(_objectSpread$t({}, state.pagination), {}, {
|
27491
27689
|
current: current
|
27492
27690
|
}),
|
27493
27691
|
columns: configuration.columns,
|
@@ -27499,11 +27697,11 @@ function useTableData$1 (_ref) {
|
|
27499
27697
|
newData = data.data;
|
27500
27698
|
total = data.total;
|
27501
27699
|
case 21:
|
27502
|
-
setState(_objectSpread$
|
27700
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27503
27701
|
selected: [],
|
27504
27702
|
deleting: false,
|
27505
27703
|
data: newData,
|
27506
|
-
pagination: _objectSpread$
|
27704
|
+
pagination: _objectSpread$t(_objectSpread$t({}, state.pagination), {}, {
|
27507
27705
|
current: current,
|
27508
27706
|
total: total
|
27509
27707
|
})
|
@@ -27519,12 +27717,12 @@ function useTableData$1 (_ref) {
|
|
27519
27717
|
};
|
27520
27718
|
}();
|
27521
27719
|
function setLoading() {
|
27522
|
-
setState(_objectSpread$
|
27720
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27523
27721
|
loading: true
|
27524
27722
|
}));
|
27525
27723
|
}
|
27526
|
-
return _objectSpread$
|
27527
|
-
configuration: _objectSpread$
|
27724
|
+
return _objectSpread$t(_objectSpread$t({}, state), {}, {
|
27725
|
+
configuration: _objectSpread$t(_objectSpread$t({}, configuration), {}, {
|
27528
27726
|
title: undefined
|
27529
27727
|
}),
|
27530
27728
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
@@ -27636,8 +27834,8 @@ function objectHash (obj) {
|
|
27636
27834
|
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
27835
|
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
27836
|
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$
|
27837
|
+
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; }
|
27838
|
+
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
27839
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
27642
27840
|
function useTableData (_ref) {
|
27643
27841
|
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$filter4, _configuration$bulkAc, _configuration$apiInt;
|
@@ -27696,7 +27894,7 @@ function useTableData (_ref) {
|
|
27696
27894
|
var _useState13 = useState({
|
27697
27895
|
loading: true,
|
27698
27896
|
deleting: false,
|
27699
|
-
pagination: _objectSpread$
|
27897
|
+
pagination: _objectSpread$s({
|
27700
27898
|
current: 1,
|
27701
27899
|
pageSize: 20,
|
27702
27900
|
total: 0,
|
@@ -27705,7 +27903,7 @@ function useTableData (_ref) {
|
|
27705
27903
|
selected: [],
|
27706
27904
|
canDelete: !!apiHandler.canDelete,
|
27707
27905
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
27708
|
-
mappingData: _objectSpread$
|
27906
|
+
mappingData: _objectSpread$s(_objectSpread$s({}, parentData), {}, {
|
27709
27907
|
prefilter: {
|
27710
27908
|
select: globalFilter.select
|
27711
27909
|
},
|
@@ -27716,7 +27914,7 @@ function useTableData (_ref) {
|
|
27716
27914
|
_useState14 = _slicedToArray(_useState13, 2),
|
27717
27915
|
state = _useState14[0],
|
27718
27916
|
setState = _useState14[1];
|
27719
|
-
var mappingData = _objectSpread$
|
27917
|
+
var mappingData = _objectSpread$s(_objectSpread$s(_objectSpread$s({}, parentData), state.data), {}, {
|
27720
27918
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
27721
27919
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
27722
27920
|
});
|
@@ -27755,7 +27953,7 @@ function useTableData (_ref) {
|
|
27755
27953
|
}
|
27756
27954
|
var dataArray = Array.isArray(data) ? data : [data];
|
27757
27955
|
var newInitData = initData;
|
27758
|
-
var newState = _objectSpread$
|
27956
|
+
var newState = _objectSpread$s({}, state);
|
27759
27957
|
var selected = [];
|
27760
27958
|
if (configuration.deselectOnUpdate == false) {
|
27761
27959
|
selected = state.selected;
|
@@ -27772,7 +27970,7 @@ function useTableData (_ref) {
|
|
27772
27970
|
dataRow: dataRow
|
27773
27971
|
}),
|
27774
27972
|
_data = _updateData.data;
|
27775
|
-
newState = _objectSpread$
|
27973
|
+
newState = _objectSpread$s(_objectSpread$s({}, newState), {}, {
|
27776
27974
|
data: _data,
|
27777
27975
|
selected: selected
|
27778
27976
|
});
|
@@ -27784,8 +27982,8 @@ function useTableData (_ref) {
|
|
27784
27982
|
dataRow: dataRow
|
27785
27983
|
}),
|
27786
27984
|
nextInitData = _updateData2.data;
|
27787
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
27788
|
-
filters: _objectSpread$
|
27985
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$s(_objectSpread$s(_objectSpread$s({}, filterData), {}, {
|
27986
|
+
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
27987
|
}, 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
27988
|
genericProps: globalFilter.toggle
|
27791
27989
|
} : undefined), {}, {
|
@@ -27795,7 +27993,7 @@ function useTableData (_ref) {
|
|
27795
27993
|
_data2 = _applyFilterAndSortat.data,
|
27796
27994
|
pagination = _applyFilterAndSortat.pagination;
|
27797
27995
|
newInitData = nextInitData;
|
27798
|
-
newState = _objectSpread$
|
27996
|
+
newState = _objectSpread$s(_objectSpread$s({}, newState), {}, {
|
27799
27997
|
pagination: pagination,
|
27800
27998
|
data: _data2,
|
27801
27999
|
selected: selected
|
@@ -27805,8 +28003,8 @@ function useTableData (_ref) {
|
|
27805
28003
|
if (apiHandler.canCreate) {
|
27806
28004
|
apiCreate(data).then(function (res) {
|
27807
28005
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
27808
|
-
initData && setInitData(_objectSpread$
|
27809
|
-
setState(_objectSpread$
|
28006
|
+
initData && setInitData(_objectSpread$s({}, initData));
|
28007
|
+
setState(_objectSpread$s({}, state));
|
27810
28008
|
}
|
27811
28009
|
});
|
27812
28010
|
}
|
@@ -27819,7 +28017,7 @@ function useTableData (_ref) {
|
|
27819
28017
|
var triggerRefresh = function triggerRefresh() {
|
27820
28018
|
var _configuration$filter8;
|
27821
28019
|
setError(undefined);
|
27822
|
-
var newGlobalFilter = _objectSpread$
|
28020
|
+
var newGlobalFilter = _objectSpread$s({}, globalFilter);
|
27823
28021
|
//on refresh update default filter, since global value can change
|
27824
28022
|
if ((_configuration$filter8 = configuration.filter) !== null && _configuration$filter8 !== void 0 && _configuration$filter8["default"]) {
|
27825
28023
|
var _configuration$filter9;
|
@@ -27830,7 +28028,7 @@ function useTableData (_ref) {
|
|
27830
28028
|
newGlobalFilter["default"] = _defaultFilter;
|
27831
28029
|
setGlobaFilter(newGlobalFilter);
|
27832
28030
|
}
|
27833
|
-
onChange(_objectSpread$
|
28031
|
+
onChange(_objectSpread$s({
|
27834
28032
|
pagination: state.pagination
|
27835
28033
|
}, filterData), newGlobalFilter, true);
|
27836
28034
|
};
|
@@ -27848,7 +28046,7 @@ function useTableData (_ref) {
|
|
27848
28046
|
order: c.defaultSortOrder
|
27849
28047
|
};
|
27850
28048
|
});
|
27851
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
28049
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27852
28050
|
loading: false
|
27853
28051
|
}));else {
|
27854
28052
|
onChange({
|
@@ -27891,7 +28089,7 @@ function useTableData (_ref) {
|
|
27891
28089
|
case 0:
|
27892
28090
|
filters = {};
|
27893
28091
|
filters['_id'] = [id, 'eq', false];
|
27894
|
-
ssf = _objectSpread$
|
28092
|
+
ssf = _objectSpread$s({
|
27895
28093
|
pagination: {
|
27896
28094
|
current: 1,
|
27897
28095
|
pageSize: 1
|
@@ -27902,7 +28100,7 @@ function useTableData (_ref) {
|
|
27902
28100
|
genericProps: globalFilter.toggle
|
27903
28101
|
} : undefined);
|
27904
28102
|
_context2.next = 5;
|
27905
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
28103
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), ssf);
|
27906
28104
|
case 5:
|
27907
28105
|
data = _context2.sent;
|
27908
28106
|
return _context2.abrupt("return", data);
|
@@ -27946,12 +28144,12 @@ function useTableData (_ref) {
|
|
27946
28144
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
27947
28145
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
27948
28146
|
overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
|
27949
|
-
setState(_objectSpread$
|
28147
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27950
28148
|
mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
|
27951
28149
|
loading: true
|
27952
28150
|
}));
|
27953
28151
|
currentData = initData;
|
27954
|
-
filterData = _objectSpread$
|
28152
|
+
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
28153
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
|
27956
28154
|
var _ref7 = _slicedToArray(_ref6, 2);
|
27957
28155
|
_ref7[0];
|
@@ -27959,7 +28157,7 @@ function useTableData (_ref) {
|
|
27959
28157
|
return v != null;
|
27960
28158
|
}));
|
27961
28159
|
currentFilterHash = objectHash(filterData);
|
27962
|
-
currentPagination = _objectSpread$
|
28160
|
+
currentPagination = _objectSpread$s(_objectSpread$s({}, p.pagination), {}, {
|
27963
28161
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
27964
28162
|
});
|
27965
28163
|
filterHash.current = currentFilterHash;
|
@@ -27967,7 +28165,7 @@ function useTableData (_ref) {
|
|
27967
28165
|
_context3.next = 21;
|
27968
28166
|
break;
|
27969
28167
|
}
|
27970
|
-
ssf = _objectSpread$
|
28168
|
+
ssf = _objectSpread$s({
|
27971
28169
|
pagination: currentPagination,
|
27972
28170
|
columns: configuration.columns,
|
27973
28171
|
filters: filterData,
|
@@ -27976,12 +28174,12 @@ function useTableData (_ref) {
|
|
27976
28174
|
genericProps: prefilter.toggle
|
27977
28175
|
} : undefined);
|
27978
28176
|
_context3.next = 15;
|
27979
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
28177
|
+
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
28178
|
case 15:
|
27981
28179
|
data = _context3.sent;
|
27982
|
-
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$
|
28180
|
+
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), ssf);
|
27983
28181
|
currentData = data.data;
|
27984
|
-
currentPagination = _objectSpread$
|
28182
|
+
currentPagination = _objectSpread$s(_objectSpread$s({}, currentPagination), {}, {
|
27985
28183
|
total: data.total
|
27986
28184
|
});
|
27987
28185
|
_context3.next = 30;
|
@@ -27998,7 +28196,7 @@ function useTableData (_ref) {
|
|
27998
28196
|
currentData = _data3.data;
|
27999
28197
|
setInitData(currentData);
|
28000
28198
|
case 27:
|
28001
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
28199
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$s(_objectSpread$s({}, p), {}, {
|
28002
28200
|
pagination: currentPagination,
|
28003
28201
|
filters: filterData,
|
28004
28202
|
data: currentData,
|
@@ -28007,11 +28205,11 @@ function useTableData (_ref) {
|
|
28007
28205
|
currentData = _data4;
|
28008
28206
|
currentPagination = pagination;
|
28009
28207
|
case 30:
|
28010
|
-
setState(_objectSpread$
|
28208
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28011
28209
|
loading: false,
|
28012
28210
|
data: currentData,
|
28013
28211
|
pagination: currentPagination,
|
28014
|
-
mappingData: _objectSpread$
|
28212
|
+
mappingData: _objectSpread$s(_objectSpread$s(_objectSpread$s(_objectSpread$s({}, parentData), state.mappingData), overwriteMappingData), {}, {
|
28015
28213
|
prefilter: prefilter
|
28016
28214
|
}),
|
28017
28215
|
currentFetchUrl: currentUrl
|
@@ -28033,7 +28231,7 @@ function useTableData (_ref) {
|
|
28033
28231
|
};
|
28034
28232
|
}();
|
28035
28233
|
var onSelect = function onSelect(keys) {
|
28036
|
-
setState(_objectSpread$
|
28234
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28037
28235
|
selected: keys
|
28038
28236
|
}));
|
28039
28237
|
};
|
@@ -28044,7 +28242,7 @@ function useTableData (_ref) {
|
|
28044
28242
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
28045
28243
|
while (1) switch (_context5.prev = _context5.next) {
|
28046
28244
|
case 0:
|
28047
|
-
setState(_objectSpread$
|
28245
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28048
28246
|
deleting: true
|
28049
28247
|
}));
|
28050
28248
|
newData = _toConsumableArray(state.data);
|
@@ -28084,7 +28282,7 @@ function useTableData (_ref) {
|
|
28084
28282
|
} finally {
|
28085
28283
|
_iterator.f();
|
28086
28284
|
}
|
28087
|
-
mappingData = _objectSpread$
|
28285
|
+
mappingData = _objectSpread$s(_objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), mapToggle);
|
28088
28286
|
deleteResult = undefined;
|
28089
28287
|
_context4.prev = 7;
|
28090
28288
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
@@ -28174,12 +28372,12 @@ function useTableData (_ref) {
|
|
28174
28372
|
break;
|
28175
28373
|
}
|
28176
28374
|
_context5.next = 25;
|
28177
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
28178
|
-
pagination: _objectSpread$
|
28375
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), _objectSpread$s({
|
28376
|
+
pagination: _objectSpread$s(_objectSpread$s({}, state.pagination), {}, {
|
28179
28377
|
current: current
|
28180
28378
|
}),
|
28181
28379
|
columns: configuration.columns,
|
28182
|
-
filters: _objectSpread$
|
28380
|
+
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
28381
|
sorter: filterData.sorter
|
28184
28382
|
}, 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
28383
|
genericProps: globalFilter.toggle
|
@@ -28190,11 +28388,11 @@ function useTableData (_ref) {
|
|
28190
28388
|
total = data.total;
|
28191
28389
|
case 28:
|
28192
28390
|
setInitData(newInitData);
|
28193
|
-
setState(_objectSpread$
|
28391
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28194
28392
|
selected: [],
|
28195
28393
|
deleting: false,
|
28196
28394
|
data: newData,
|
28197
|
-
pagination: _objectSpread$
|
28395
|
+
pagination: _objectSpread$s(_objectSpread$s({}, state.pagination), {}, {
|
28198
28396
|
current: current === 0 ? 1 : current,
|
28199
28397
|
total: total
|
28200
28398
|
})
|
@@ -28215,14 +28413,14 @@ function useTableData (_ref) {
|
|
28215
28413
|
LOG$2.error(new DivaError('No global select filter defiend'));
|
28216
28414
|
return;
|
28217
28415
|
}
|
28218
|
-
var newGlobalFilter = _objectSpread$
|
28416
|
+
var newGlobalFilter = _objectSpread$s({}, globalFilter);
|
28219
28417
|
if (value !== null && value !== void 0 && value.length) {
|
28220
28418
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
|
28221
28419
|
} else {
|
28222
28420
|
newGlobalFilter.select = {};
|
28223
28421
|
}
|
28224
28422
|
setGlobaFilter(newGlobalFilter);
|
28225
|
-
onChange(_objectSpread$
|
28423
|
+
onChange(_objectSpread$s({
|
28226
28424
|
pagination: state.pagination
|
28227
28425
|
}, filterData), newGlobalFilter);
|
28228
28426
|
};
|
@@ -28233,16 +28431,16 @@ function useTableData (_ref) {
|
|
28233
28431
|
return;
|
28234
28432
|
}
|
28235
28433
|
var toggleFilter = {};
|
28236
|
-
var mappingData = _objectSpread$
|
28434
|
+
var mappingData = _objectSpread$s({}, state.mappingData);
|
28237
28435
|
configuration.filter.toggle.fields.forEach(function (f) {
|
28238
28436
|
mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
|
28239
28437
|
toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
28240
28438
|
});
|
28241
|
-
var newGlobalFilter = _objectSpread$
|
28439
|
+
var newGlobalFilter = _objectSpread$s(_objectSpread$s({}, globalFilter), {}, {
|
28242
28440
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
28243
28441
|
});
|
28244
28442
|
setGlobaFilter(newGlobalFilter);
|
28245
|
-
onChange(_objectSpread$
|
28443
|
+
onChange(_objectSpread$s({
|
28246
28444
|
pagination: state.pagination
|
28247
28445
|
}, filterData), newGlobalFilter, true, true, mappingData);
|
28248
28446
|
};
|
@@ -28255,7 +28453,7 @@ function useTableData (_ref) {
|
|
28255
28453
|
LOG$2.error(new DivaError('No global search filter defiend'));
|
28256
28454
|
return;
|
28257
28455
|
}
|
28258
|
-
var newGlobalFilter = _objectSpread$
|
28456
|
+
var newGlobalFilter = _objectSpread$s(_objectSpread$s({}, globalFilter), {}, {
|
28259
28457
|
search: {}
|
28260
28458
|
});
|
28261
28459
|
if (value) {
|
@@ -28269,7 +28467,7 @@ function useTableData (_ref) {
|
|
28269
28467
|
});
|
28270
28468
|
}
|
28271
28469
|
setGlobaFilter(newGlobalFilter);
|
28272
|
-
onChange(_objectSpread$
|
28470
|
+
onChange(_objectSpread$s({
|
28273
28471
|
pagination: state.pagination
|
28274
28472
|
}, filterData), newGlobalFilter);
|
28275
28473
|
};
|
@@ -28279,20 +28477,20 @@ function useTableData (_ref) {
|
|
28279
28477
|
LOG$2.error(new DivaError('No global period filter defiend'));
|
28280
28478
|
return;
|
28281
28479
|
}
|
28282
|
-
var newGlobalFilter = _objectSpread$
|
28480
|
+
var newGlobalFilter = _objectSpread$s({}, globalFilter);
|
28283
28481
|
newGlobalFilter.timeStamp = {
|
28284
28482
|
fromTimeStamp: [from],
|
28285
28483
|
toTimeStamp: [to]
|
28286
28484
|
};
|
28287
28485
|
if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
|
28288
|
-
onChange(_objectSpread$
|
28486
|
+
onChange(_objectSpread$s({
|
28289
28487
|
pagination: state.pagination
|
28290
|
-
}, filterData), undefined, true, undefined, _objectSpread$
|
28488
|
+
}, filterData), undefined, true, undefined, _objectSpread$s(_objectSpread$s({}, state.mappingData), {}, {
|
28291
28489
|
from: from,
|
28292
28490
|
to: to
|
28293
28491
|
}));
|
28294
28492
|
};
|
28295
|
-
return _objectSpread$
|
28493
|
+
return _objectSpread$s(_objectSpread$s({}, state), {}, {
|
28296
28494
|
title: title,
|
28297
28495
|
configuration: configuration,
|
28298
28496
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
|
@@ -28334,8 +28532,8 @@ function StandardTable (_ref) {
|
|
28334
28532
|
});
|
28335
28533
|
}
|
28336
28534
|
|
28337
|
-
function ownKeys$
|
28338
|
-
function _objectSpread$
|
28535
|
+
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; }
|
28536
|
+
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
28537
|
function Table (props) {
|
28340
28538
|
var root = useStore();
|
28341
28539
|
var variant = useMemo(function () {
|
@@ -28343,15 +28541,15 @@ function Table (props) {
|
|
28343
28541
|
return config.variant;
|
28344
28542
|
}, [props.id]);
|
28345
28543
|
return /*#__PURE__*/jsxs(Fragment, {
|
28346
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
28544
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$r({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$r({}, props))]
|
28347
28545
|
});
|
28348
28546
|
}
|
28349
28547
|
|
28350
28548
|
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
28549
|
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
28550
|
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$
|
28551
|
+
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; }
|
28552
|
+
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
28553
|
function useAGGrid (_ref) {
|
28356
28554
|
var id = _ref.id,
|
28357
28555
|
filter = _ref.filter,
|
@@ -28445,7 +28643,7 @@ function useAGGrid (_ref) {
|
|
28445
28643
|
value = _ref3[1];
|
28446
28644
|
if (_idx == 0) {
|
28447
28645
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
28448
|
-
rdat.push(_objectSpread$
|
28646
|
+
rdat.push(_objectSpread$q(_objectSpread$q({}, rd), {}, {
|
28449
28647
|
grouping: [idx.toString()]
|
28450
28648
|
}));
|
28451
28649
|
var sp = key.split(':');
|
@@ -28585,11 +28783,11 @@ var loader = "loader-LaXZy";
|
|
28585
28783
|
var flex = "flex-yQdda";
|
28586
28784
|
var bar = "bar-Y663f";
|
28587
28785
|
var value = "value-FCA-6";
|
28588
|
-
var css_248z$
|
28589
|
-
styleInject(css_248z$
|
28786
|
+
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";
|
28787
|
+
styleInject(css_248z$i);
|
28590
28788
|
|
28591
|
-
function ownKeys$
|
28592
|
-
function _objectSpread$
|
28789
|
+
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; }
|
28790
|
+
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
28791
|
var AGChart = function AGChart(_ref) {
|
28594
28792
|
var data = _ref.data;
|
28595
28793
|
var groupedData = [];
|
@@ -28597,11 +28795,11 @@ var AGChart = function AGChart(_ref) {
|
|
28597
28795
|
data.forEach(function (dt) {
|
28598
28796
|
if (dt.count == 0) return;
|
28599
28797
|
if (groupedData.length > dt.grouping[0]) {
|
28600
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
28798
|
+
groupedData[dt.grouping[0]].push(_objectSpread$p(_objectSpread$p({}, dt), {}, {
|
28601
28799
|
count: Number(dt.count)
|
28602
28800
|
}));
|
28603
28801
|
} else {
|
28604
|
-
groupedData.push([_objectSpread$
|
28802
|
+
groupedData.push([_objectSpread$p(_objectSpread$p({}, dt), {}, {
|
28605
28803
|
count: Number(dt.count)
|
28606
28804
|
})]);
|
28607
28805
|
}
|
@@ -28642,8 +28840,8 @@ var AGChart = function AGChart(_ref) {
|
|
28642
28840
|
});
|
28643
28841
|
};
|
28644
28842
|
|
28645
|
-
function ownKeys$
|
28646
|
-
function _objectSpread$
|
28843
|
+
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; }
|
28844
|
+
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
28845
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
28648
28846
|
var id = _ref.id,
|
28649
28847
|
filter = _ref.filter,
|
@@ -28736,7 +28934,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
28736
28934
|
});
|
28737
28935
|
});
|
28738
28936
|
}
|
28739
|
-
return _objectSpread$
|
28937
|
+
return _objectSpread$o(_objectSpread$o({}, column), {}, {
|
28740
28938
|
cellRenderer: renderer
|
28741
28939
|
});
|
28742
28940
|
});
|
@@ -29006,8 +29204,8 @@ var CustomText = function CustomText(_ref) {
|
|
29006
29204
|
};
|
29007
29205
|
var CustomText$1 = observer(CustomText);
|
29008
29206
|
|
29009
|
-
function ownKeys$
|
29010
|
-
function _objectSpread$
|
29207
|
+
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; }
|
29208
|
+
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
29209
|
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
29210
|
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
29211
|
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 +29268,7 @@ function useFilterBoxData (id) {
|
|
29070
29268
|
} finally {
|
29071
29269
|
_iterator.f();
|
29072
29270
|
}
|
29073
|
-
return _objectSpread$
|
29271
|
+
return _objectSpread$n(_objectSpread$n({}, state), ob);
|
29074
29272
|
}
|
29075
29273
|
return {
|
29076
29274
|
configuration: configuration,
|
@@ -29084,8 +29282,8 @@ function useFilterBoxData (id) {
|
|
29084
29282
|
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
29283
|
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
29284
|
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$
|
29285
|
+
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; }
|
29286
|
+
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
29287
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
29090
29288
|
var id = _ref.id,
|
29091
29289
|
onChangeFilter = _ref.onChangeFilter,
|
@@ -29113,7 +29311,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
29113
29311
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
|
29114
29312
|
mode: "single",
|
29115
29313
|
apiInterface: filter.requestOptions,
|
29116
|
-
wholeData: _objectSpread$
|
29314
|
+
wholeData: _objectSpread$m(_objectSpread$m({}, state.filter), {}, {
|
29117
29315
|
tab: tab
|
29118
29316
|
}),
|
29119
29317
|
mapping: filter.requestMapping,
|
@@ -29345,8 +29543,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
29345
29543
|
return false;
|
29346
29544
|
});
|
29347
29545
|
|
29348
|
-
function ownKeys$
|
29349
|
-
function _objectSpread$
|
29546
|
+
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; }
|
29547
|
+
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
29548
|
function useUIBuilderData (id) {
|
29351
29549
|
var save = undefined;
|
29352
29550
|
var root = useStore();
|
@@ -29378,7 +29576,7 @@ function useUIBuilderData (id) {
|
|
29378
29576
|
var configuration = _useMemo.configuration;
|
29379
29577
|
useEffect(function () {
|
29380
29578
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
29381
|
-
return setFilter(_objectSpread$
|
29579
|
+
return setFilter(_objectSpread$l(_objectSpread$l({}, filter), {}, {
|
29382
29580
|
sessionGuid: res
|
29383
29581
|
}));
|
29384
29582
|
});
|
@@ -29401,8 +29599,8 @@ function useUIBuilderData (id) {
|
|
29401
29599
|
};
|
29402
29600
|
}
|
29403
29601
|
|
29404
|
-
function ownKeys$
|
29405
|
-
function _objectSpread$
|
29602
|
+
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; }
|
29603
|
+
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
29604
|
function UIBuilder(_ref) {
|
29407
29605
|
var id = _ref.id;
|
29408
29606
|
var state = useUIBuilderData(id);
|
@@ -29429,7 +29627,7 @@ function UIBuilder(_ref) {
|
|
29429
29627
|
override = {
|
29430
29628
|
value: newFilter[item.field],
|
29431
29629
|
setValue: function setValue(newVal) {
|
29432
|
-
var newFilter = _objectSpread$
|
29630
|
+
var newFilter = _objectSpread$k({}, state.filter);
|
29433
29631
|
newFilter[item.field] = newVal;
|
29434
29632
|
state.setFilter(newFilter);
|
29435
29633
|
}
|
@@ -29477,7 +29675,7 @@ function UIBuilder(_ref) {
|
|
29477
29675
|
case 'AGGrid':
|
29478
29676
|
return /*#__PURE__*/jsx(AGGrid, {
|
29479
29677
|
id: item.id,
|
29480
|
-
filter: _objectSpread$
|
29678
|
+
filter: _objectSpread$k({
|
29481
29679
|
optionCodices: JSON.stringify(state.data)
|
29482
29680
|
}, state.filter),
|
29483
29681
|
override: item.id == 'AGGridTopOptionValues' ? {
|
@@ -29531,8 +29729,8 @@ var retailerChild = "retailer-child-5ll0K";
|
|
29531
29729
|
var supplier = "supplier-8sm0I";
|
29532
29730
|
var dealer = "dealer-xgnku";
|
29533
29731
|
var association = "association-b8uVW";
|
29534
|
-
var css_248z$
|
29535
|
-
styleInject(css_248z$
|
29732
|
+
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";
|
29733
|
+
styleInject(css_248z$h);
|
29536
29734
|
|
29537
29735
|
function getColorClass(data) {
|
29538
29736
|
switch (data.type) {
|
@@ -29637,8 +29835,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
29637
29835
|
};
|
29638
29836
|
var OrgItem$1 = observer(OrgItem);
|
29639
29837
|
|
29640
|
-
function ownKeys$
|
29641
|
-
function _objectSpread$
|
29838
|
+
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; }
|
29839
|
+
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
29840
|
function useTransformJson (_ref) {
|
29643
29841
|
var id = _ref.id;
|
29644
29842
|
var _useState = useState(),
|
@@ -29704,7 +29902,7 @@ function useTransformJson (_ref) {
|
|
29704
29902
|
}();
|
29705
29903
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
29706
29904
|
var _data$children;
|
29707
|
-
return _objectSpread$
|
29905
|
+
return _objectSpread$j(_objectSpread$j({}, data), {}, {
|
29708
29906
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
29709
29907
|
data: data,
|
29710
29908
|
configuration: configuration,
|
@@ -29765,8 +29963,8 @@ var openClass = "open-class--gGXs";
|
|
29765
29963
|
var breadcrumb = "breadcrumb-Z0VvH";
|
29766
29964
|
var selected = "selected-w-sfW";
|
29767
29965
|
var disabled$2 = "disabled-0nado";
|
29768
|
-
var css_248z$
|
29769
|
-
styleInject(css_248z$
|
29966
|
+
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";
|
29967
|
+
styleInject(css_248z$g);
|
29770
29968
|
|
29771
29969
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
29772
29970
|
var open = _ref.open,
|
@@ -29799,8 +29997,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
29799
29997
|
|
29800
29998
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
29801
29999
|
var toolbarLeft = "toolbar-left-X9WRo";
|
29802
|
-
var css_248z$
|
29803
|
-
styleInject(css_248z$
|
30000
|
+
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";
|
30001
|
+
styleInject(css_248z$f);
|
29804
30002
|
|
29805
30003
|
var Legend = function Legend(props) {
|
29806
30004
|
return /*#__PURE__*/jsx(List$1, {
|
@@ -29854,8 +30052,8 @@ var Legend = function Legend(props) {
|
|
29854
30052
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
29855
30053
|
var mask = "mask-ssagp";
|
29856
30054
|
var transformWrapper = "transform-wrapper--8t0v";
|
29857
|
-
var css_248z$
|
29858
|
-
styleInject(css_248z$
|
30055
|
+
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";
|
30056
|
+
styleInject(css_248z$e);
|
29859
30057
|
|
29860
30058
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
29861
30059
|
var _children = _ref.children,
|
@@ -30365,8 +30563,8 @@ function useCatalogEditor (id) {
|
|
30365
30563
|
};
|
30366
30564
|
}
|
30367
30565
|
|
30368
|
-
function ownKeys$
|
30369
|
-
function _objectSpread$
|
30566
|
+
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; }
|
30567
|
+
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
30568
|
function DragDropUpload(_ref) {
|
30371
30569
|
var api2Params = _ref.api2Params,
|
30372
30570
|
catalogId = _ref.catalogId,
|
@@ -30474,7 +30672,7 @@ function DragDropUpload(_ref) {
|
|
30474
30672
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
30475
30673
|
children: t('backoffice.catalogeditor.classimportstarted')
|
30476
30674
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
30477
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
30675
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$i(_objectSpread$i({}, props), {}, {
|
30478
30676
|
children: [/*#__PURE__*/jsx("p", {
|
30479
30677
|
className: "ant-upload-drag-icon",
|
30480
30678
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
@@ -30691,12 +30889,12 @@ function CatalogEditor(_ref) {
|
|
30691
30889
|
}
|
30692
30890
|
var CatalogEditor$1 = observer(CatalogEditor);
|
30693
30891
|
|
30694
|
-
function ownKeys$
|
30695
|
-
function _objectSpread$
|
30892
|
+
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; }
|
30893
|
+
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
30894
|
var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
|
30697
30895
|
var _root$contentStore$bo, _root$contentStore$ri;
|
30698
30896
|
var root = useStore();
|
30699
|
-
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$
|
30897
|
+
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$h(_objectSpread$h({}, props), {}, {
|
30700
30898
|
ref: ref,
|
30701
30899
|
darkMode: root.contentStore.theme == 'darkmode',
|
30702
30900
|
jwt: root.dataStore.jwt,
|
@@ -30707,8 +30905,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
30707
30905
|
});
|
30708
30906
|
var Spreadsheet = observer(SpreadsheetWrapper);
|
30709
30907
|
|
30710
|
-
function ownKeys$
|
30711
|
-
function _objectSpread$
|
30908
|
+
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; }
|
30909
|
+
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
30910
|
|
30713
30911
|
// Type definition for the context state
|
30714
30912
|
|
@@ -30730,14 +30928,14 @@ var useEnricherContext = function useEnricherContext() {
|
|
30730
30928
|
loading: loading,
|
30731
30929
|
setOptions: function setOptions(options) {
|
30732
30930
|
var state = root.contextStore.getContext('enricher');
|
30733
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
30931
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$g(_objectSpread$g({}, state[stateKey]), {}, {
|
30734
30932
|
options: options,
|
30735
30933
|
loading: false
|
30736
30934
|
})));
|
30737
30935
|
},
|
30738
30936
|
setLoading: function setLoading(loading) {
|
30739
30937
|
var state = root.contextStore.getContext('enricher');
|
30740
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
30938
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$g(_objectSpread$g({}, state[stateKey]), {}, {
|
30741
30939
|
loading: loading
|
30742
30940
|
})));
|
30743
30941
|
}
|
@@ -30833,7 +31031,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
30833
31031
|
}, [urlPackageId, getContext().packageId, setSelectedPackage]);
|
30834
31032
|
|
30835
31033
|
// Return context + handlers
|
30836
|
-
return _objectSpread$
|
31034
|
+
return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
|
30837
31035
|
setSelectedSerie: setSelectedSerie,
|
30838
31036
|
setSelectedFeature: setSelectedFeature,
|
30839
31037
|
setSelectedPackage: setSelectedPackage
|
@@ -31094,51 +31292,6 @@ function useModule$1 (currentModules) {
|
|
31094
31292
|
//update the navigation supmenu for the packages module to include the current package id
|
31095
31293
|
root.contentStore.updateAdditionalElement('packages', menuItems, currentModules);
|
31096
31294
|
}, [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
31295
|
return {
|
31143
31296
|
selectedPackage: selectedPackage,
|
31144
31297
|
packageId: packageId,
|
@@ -31197,6 +31350,116 @@ function createTranslatedColumnConfig(field, headerName, languages) {
|
|
31197
31350
|
};
|
31198
31351
|
}
|
31199
31352
|
|
31353
|
+
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; }
|
31354
|
+
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; }
|
31355
|
+
var useTools = function useTools(_ref) {
|
31356
|
+
var catalogId = _ref.catalogId,
|
31357
|
+
packageId = _ref.packageId,
|
31358
|
+
isApi2 = _ref.isApi2,
|
31359
|
+
mainInformationWindowCodex = _ref.mainInformationWindowCodex;
|
31360
|
+
var root = useStore();
|
31361
|
+
var _useState = useState([]),
|
31362
|
+
_useState2 = _slicedToArray(_useState, 2),
|
31363
|
+
secondaryTables = _useState2[0],
|
31364
|
+
setSecondaryTables = _useState2[1];
|
31365
|
+
var openInformationWindow = useCallback(function (codex, open) {
|
31366
|
+
root.contentStore.rightToolBar.addTools({
|
31367
|
+
id: 'info',
|
31368
|
+
name: 'Information',
|
31369
|
+
type: 'InformationWindow',
|
31370
|
+
parameters: {
|
31371
|
+
contentItemCodex: codex
|
31372
|
+
},
|
31373
|
+
defaultOpen: open
|
31374
|
+
});
|
31375
|
+
if (open) {
|
31376
|
+
root.contentStore.rightToolBar.openTool('info');
|
31377
|
+
}
|
31378
|
+
}, [root.contentStore.rightToolBar]);
|
31379
|
+
var addSecondaryTables = useCallback(function () {
|
31380
|
+
var _root$contentStore$bo;
|
31381
|
+
for (var _len = arguments.length, tools = new Array(_len), _key = 0; _key < _len; _key++) {
|
31382
|
+
tools[_key] = arguments[_key];
|
31383
|
+
}
|
31384
|
+
var newSecondaryTables = tools.map(function (tool) {
|
31385
|
+
return _objectSpread$f({
|
31386
|
+
startWidth: 300,
|
31387
|
+
defaultPinned: false,
|
31388
|
+
defaultOpen: false
|
31389
|
+
}, tool);
|
31390
|
+
});
|
31391
|
+
(_root$contentStore$bo = root.contentStore.bottomToolBar).addTools.apply(_root$contentStore$bo, _toConsumableArray(newSecondaryTables));
|
31392
|
+
setSecondaryTables([].concat(_toConsumableArray(secondaryTables), _toConsumableArray(newSecondaryTables)));
|
31393
|
+
}, [root.contentStore.bottomToolBar]);
|
31394
|
+
var removeSecondaryTables = useCallback(function () {
|
31395
|
+
var _root$contentStore$bo2;
|
31396
|
+
for (var _len2 = arguments.length, ids = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
31397
|
+
ids[_key2] = arguments[_key2];
|
31398
|
+
}
|
31399
|
+
(_root$contentStore$bo2 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo2, ids);
|
31400
|
+
setSecondaryTables(secondaryTables.filter(function (table) {
|
31401
|
+
return !ids.includes(table.id);
|
31402
|
+
}));
|
31403
|
+
}, [root.contentStore.bottomToolBar, secondaryTables]);
|
31404
|
+
useEffect(function () {
|
31405
|
+
var _root$contentStore$ri;
|
31406
|
+
var tools = [];
|
31407
|
+
if (catalogId || packageId) {
|
31408
|
+
tools.push({
|
31409
|
+
id: 'WYSIWYG',
|
31410
|
+
name: 'Konfigurator',
|
31411
|
+
type: 'Configurator',
|
31412
|
+
parameters: {
|
31413
|
+
catalogId: catalogId,
|
31414
|
+
packageId: packageId,
|
31415
|
+
isIDMData: !isApi2 ? '1' : undefined
|
31416
|
+
},
|
31417
|
+
startWidth: 600,
|
31418
|
+
defaultPinned: true,
|
31419
|
+
elementProps: catalogId ? {
|
31420
|
+
// open configurator for idm catalog
|
31421
|
+
useIDMService: true,
|
31422
|
+
catalogId: catalogId,
|
31423
|
+
showCatalogSelection: true
|
31424
|
+
} : isApi2 ? {
|
31425
|
+
// open configurator for api2 package (configurator light)
|
31426
|
+
loadMask: true
|
31427
|
+
} : {
|
31428
|
+
// open configurator for idm package
|
31429
|
+
useEnricherService: true,
|
31430
|
+
loadPackage: true,
|
31431
|
+
packageId: packageId,
|
31432
|
+
showCatalogSelection: true
|
31433
|
+
}
|
31434
|
+
});
|
31435
|
+
}
|
31436
|
+
if (mainInformationWindowCodex) {
|
31437
|
+
tools.push({
|
31438
|
+
id: 'info',
|
31439
|
+
name: 'Information',
|
31440
|
+
type: 'InformationWindow',
|
31441
|
+
parameters: {
|
31442
|
+
contentItemCodex: mainInformationWindowCodex
|
31443
|
+
},
|
31444
|
+
defaultOpen: false
|
31445
|
+
});
|
31446
|
+
}
|
31447
|
+
(_root$contentStore$ri = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri, tools);
|
31448
|
+
return function () {
|
31449
|
+
var _root$contentStore$bo3;
|
31450
|
+
root.contentStore.rightToolBar.removeTools('WYSIWYG', 'info');
|
31451
|
+
(_root$contentStore$bo3 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo3, _toConsumableArray(secondaryTables.map(function (table) {
|
31452
|
+
return table.id;
|
31453
|
+
})));
|
31454
|
+
};
|
31455
|
+
}, []);
|
31456
|
+
return {
|
31457
|
+
openInformationWindow: openInformationWindow,
|
31458
|
+
addSecondaryTables: addSecondaryTables,
|
31459
|
+
removeSecondaryTables: removeSecondaryTables
|
31460
|
+
};
|
31461
|
+
};
|
31462
|
+
|
31200
31463
|
var TableGroups = observer(function () {
|
31201
31464
|
var _useTranslation = useTranslation(),
|
31202
31465
|
t = _useTranslation.t;
|
@@ -31205,6 +31468,10 @@ var TableGroups = observer(function () {
|
|
31205
31468
|
organizationId = _useModule.organizationId,
|
31206
31469
|
apiConfig = _useModule.apiConfig,
|
31207
31470
|
selectedPackage = _useModule.selectedPackage;
|
31471
|
+
useTools({
|
31472
|
+
packageId: packageId,
|
31473
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
31474
|
+
});
|
31208
31475
|
var applicationData = useMemo(function () {
|
31209
31476
|
return {
|
31210
31477
|
packageId: packageId,
|
@@ -31776,6 +32043,7 @@ var TablePackages = observer(function () {
|
|
31776
32043
|
contextHolder = modalState.contextHolder;
|
31777
32044
|
var _useEnricherContext = useEnricherContext([]),
|
31778
32045
|
setSelectedPackage = _useEnricherContext.setSelectedPackage;
|
32046
|
+
useTools({});
|
31779
32047
|
var organizationId = root.dataStore.organizationId;
|
31780
32048
|
var apiConfig = root.configurationStore.apiConfig;
|
31781
32049
|
var applicationData = useMemo(function () {
|
@@ -32028,6 +32296,10 @@ var TableProperties = observer(function () {
|
|
32028
32296
|
organizationId = _useModule.organizationId,
|
32029
32297
|
apiConfig = _useModule.apiConfig,
|
32030
32298
|
selectedPackage = _useModule.selectedPackage;
|
32299
|
+
useTools({
|
32300
|
+
packageId: packageId,
|
32301
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
32302
|
+
});
|
32031
32303
|
var applicationData = useMemo(function () {
|
32032
32304
|
return {
|
32033
32305
|
packageId: packageId,
|
@@ -32814,6 +33086,10 @@ var RenamingTable = observer(function (_ref) {
|
|
32814
33086
|
apiConfig = _useModule.apiConfig,
|
32815
33087
|
selectedPackage = _useModule.selectedPackage,
|
32816
33088
|
selectedSerie = _useModule.selectedSerie;
|
33089
|
+
useTools({
|
33090
|
+
packageId: packageId,
|
33091
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33092
|
+
});
|
32817
33093
|
var baseConfiguration = useMemo(function () {
|
32818
33094
|
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
|
32819
33095
|
}, [selectedPackage, i18n.language]);
|
@@ -33356,6 +33632,10 @@ var ExclusivityTable = observer(function (_ref) {
|
|
33356
33632
|
organizationId = _useModule.organizationId,
|
33357
33633
|
selectedPackage = _useModule.selectedPackage,
|
33358
33634
|
selectedSerie = _useModule.selectedSerie;
|
33635
|
+
useTools({
|
33636
|
+
packageId: packageId,
|
33637
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33638
|
+
});
|
33359
33639
|
var apiInterface = useMemo(function () {
|
33360
33640
|
var patchId = '${_id}';
|
33361
33641
|
if (type === 'eitems') patchId = '${typeNo}';
|
@@ -33450,6 +33730,10 @@ var TableTabGroups = observer(function () {
|
|
33450
33730
|
organizationId = _useModule.organizationId,
|
33451
33731
|
apiConfig = _useModule.apiConfig,
|
33452
33732
|
selectedPackage = _useModule.selectedPackage;
|
33733
|
+
useTools({
|
33734
|
+
packageId: packageId,
|
33735
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33736
|
+
});
|
33453
33737
|
var applicationData = useMemo(function () {
|
33454
33738
|
return {
|
33455
33739
|
packageId: packageId,
|
@@ -33550,6 +33834,10 @@ var TablePartlistPos = observer(function () {
|
|
33550
33834
|
organizationId = _useModule.organizationId,
|
33551
33835
|
apiConfig = _useModule.apiConfig,
|
33552
33836
|
selectedPackage = _useModule.selectedPackage;
|
33837
|
+
useTools({
|
33838
|
+
packageId: packageId,
|
33839
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33840
|
+
});
|
33553
33841
|
var posInvisibility = useMemo(function () {
|
33554
33842
|
return [{
|
33555
33843
|
name: t('backoffice.idmCatalogEditor.partlistpos.label.pi0'),
|
@@ -33995,8 +34283,8 @@ var space = "space-T5Mkd";
|
|
33995
34283
|
var input$1 = "input-SK-Fo";
|
33996
34284
|
var addButton$1 = "addButton-AVN8Y";
|
33997
34285
|
var helpText = "helpText-QYQQF";
|
33998
|
-
var css_248z$
|
33999
|
-
styleInject(css_248z$
|
34286
|
+
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";
|
34287
|
+
styleInject(css_248z$d);
|
34000
34288
|
|
34001
34289
|
function PriceFactorCellRenderer(props) {
|
34002
34290
|
var data = props.data,
|
@@ -34036,6 +34324,40 @@ function PriceFactorCellRenderer(props) {
|
|
34036
34324
|
return _ref.apply(this, arguments);
|
34037
34325
|
};
|
34038
34326
|
}();
|
34327
|
+
useEffect(function () {
|
34328
|
+
//
|
34329
|
+
// This is a workaround to prevent the row to go into edit mode when the cell is clicked.
|
34330
|
+
// Ag-grid intercepts dom events on a higher level, so normal event handler on the cell element do not work.
|
34331
|
+
// We have to intercept the event at a even higher level and already during the capture phase.
|
34332
|
+
//
|
34333
|
+
var handleClick = function handleClick(e) {
|
34334
|
+
// Get the cell element from the event target
|
34335
|
+
var cellElement = e.target.closest('.ag-cell');
|
34336
|
+
var rowElement = e.target.closest('.ag-row');
|
34337
|
+
|
34338
|
+
// Check if this is our cell by comparing the cell's data
|
34339
|
+
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)) {
|
34340
|
+
e.preventDefault();
|
34341
|
+
e.stopPropagation();
|
34342
|
+
handleModalOpen();
|
34343
|
+
api === null || api === void 0 || api.stopEditing();
|
34344
|
+
return false;
|
34345
|
+
}
|
34346
|
+
return true;
|
34347
|
+
};
|
34348
|
+
if (singleClick) {
|
34349
|
+
document.addEventListener('click', handleClick, true);
|
34350
|
+
} else {
|
34351
|
+
document.addEventListener('dblclick', handleClick, true);
|
34352
|
+
}
|
34353
|
+
return function () {
|
34354
|
+
if (singleClick) {
|
34355
|
+
document.removeEventListener('click', handleClick, true);
|
34356
|
+
} else {
|
34357
|
+
document.removeEventListener('dblclick', handleClick, true);
|
34358
|
+
}
|
34359
|
+
};
|
34360
|
+
}, [api, node === null || node === void 0 ? void 0 : node.id, colDef === null || colDef === void 0 ? void 0 : colDef.field, singleClick]);
|
34039
34361
|
var _usePriceFactor = usePriceFactor({
|
34040
34362
|
data: data,
|
34041
34363
|
initialValue: value,
|
@@ -34065,19 +34387,7 @@ function PriceFactorCellRenderer(props) {
|
|
34065
34387
|
});
|
34066
34388
|
return /*#__PURE__*/jsxs(Fragment, {
|
34067
34389
|
children: [/*#__PURE__*/jsx("div", {
|
34068
|
-
onDoubleClick: function onDoubleClick(e) {
|
34069
|
-
e.stopPropagation();
|
34070
|
-
if (!singleClick) {
|
34071
|
-
handleModalOpen();
|
34072
|
-
}
|
34073
|
-
},
|
34074
34390
|
className: cell,
|
34075
|
-
onClick: function onClick(e) {
|
34076
|
-
e.stopPropagation();
|
34077
|
-
if (singleClick) {
|
34078
|
-
handleModalOpen();
|
34079
|
-
}
|
34080
|
-
},
|
34081
34391
|
children: formatListValue(value || [], type, i18n.language)
|
34082
34392
|
}), /*#__PURE__*/jsxs(Modal$2, {
|
34083
34393
|
title: colDef === null || colDef === void 0 ? void 0 : colDef.headerName,
|
@@ -34156,7 +34466,7 @@ function PriceFactorCellRenderer(props) {
|
|
34156
34466
|
});
|
34157
34467
|
}
|
34158
34468
|
|
34159
|
-
var container$
|
34469
|
+
var container$4 = "container-T4Tzz";
|
34160
34470
|
var price = "price-NjOOy";
|
34161
34471
|
var priceManual = "priceManual-i7wtQ";
|
34162
34472
|
var originalPrice = "originalPrice-V8MP5";
|
@@ -34164,8 +34474,8 @@ var difference = "difference-xT9ZP";
|
|
34164
34474
|
var differencePositive = "differencePositive-hGhZO";
|
34165
34475
|
var differenceNegative = "differenceNegative-3CEZA";
|
34166
34476
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
34167
|
-
var css_248z$
|
34168
|
-
styleInject(css_248z$
|
34477
|
+
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";
|
34478
|
+
styleInject(css_248z$c);
|
34169
34479
|
|
34170
34480
|
function PriceDisplayCellRenderer(props) {
|
34171
34481
|
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
@@ -34203,7 +34513,7 @@ function PriceDisplayCellRenderer(props) {
|
|
34203
34513
|
};
|
34204
34514
|
}, []);
|
34205
34515
|
return /*#__PURE__*/jsxs("div", {
|
34206
|
-
className: container$
|
34516
|
+
className: container$4,
|
34207
34517
|
children: [/*#__PURE__*/jsxs("span", {
|
34208
34518
|
className: classnames(price, _defineProperty({}, priceManual, isManualPrice)),
|
34209
34519
|
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 +34568,8 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
34258
34568
|
var wrapper$3 = "wrapper-5t6RT";
|
34259
34569
|
var input = "input-leHam";
|
34260
34570
|
var disabled$1 = "disabled-Llkqu";
|
34261
|
-
var css_248z$
|
34262
|
-
styleInject(css_248z$
|
34571
|
+
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";
|
34572
|
+
styleInject(css_248z$b);
|
34263
34573
|
|
34264
34574
|
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
34575
|
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; }
|
@@ -34281,8 +34591,8 @@ function PriceFactorInput(props) {
|
|
34281
34591
|
|
34282
34592
|
var inputHeader = "input-header--4KDP";
|
34283
34593
|
var factorInput = "factor-input-MX85Z";
|
34284
|
-
var css_248z$
|
34285
|
-
styleInject(css_248z$
|
34594
|
+
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";
|
34595
|
+
styleInject(css_248z$a);
|
34286
34596
|
|
34287
34597
|
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
34598
|
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,6 +34995,10 @@ var TablePriceList = observer(function () {
|
|
34685
34995
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
34686
34996
|
selectedNodeId = _React$useState4[0],
|
34687
34997
|
setSelectedNodeId = _React$useState4[1];
|
34998
|
+
useTools({
|
34999
|
+
packageId: packageId,
|
35000
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
35001
|
+
});
|
34688
35002
|
var setNodeDataValue = useCallback(function (data) {
|
34689
35003
|
spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
|
34690
35004
|
}, [selectedNodeId]);
|
@@ -35143,8 +35457,8 @@ function UploadButton (_ref) {
|
|
35143
35457
|
}
|
35144
35458
|
|
35145
35459
|
var errorDescription = "error-description-VE3n0";
|
35146
|
-
var css_248z$
|
35147
|
-
styleInject(css_248z$
|
35460
|
+
var css_248z$9 = ".error-description-VE3n0 {\n max-height: 100px;\n overflow: auto;\n scrollbar-width: thin;\n}\n";
|
35461
|
+
styleInject(css_248z$9);
|
35148
35462
|
|
35149
35463
|
function IDMImportForm (_ref) {
|
35150
35464
|
var idmService = _ref.idmService,
|
@@ -35415,6 +35729,20 @@ var useCatalogContext = function useCatalogContext() {
|
|
35415
35729
|
});
|
35416
35730
|
};
|
35417
35731
|
|
35732
|
+
function InformationButton(_ref) {
|
35733
|
+
var codex = _ref.codex;
|
35734
|
+
var _useTools = useTools({}),
|
35735
|
+
openInformationWindow = _useTools.openInformationWindow;
|
35736
|
+
return /*#__PURE__*/jsx(Button, {
|
35737
|
+
type: "text",
|
35738
|
+
icon: /*#__PURE__*/jsx(InfoCircleOutlined$1, {}),
|
35739
|
+
onClick: function onClick(e) {
|
35740
|
+
e.stopPropagation();
|
35741
|
+
openInformationWindow(codex, true);
|
35742
|
+
}
|
35743
|
+
});
|
35744
|
+
}
|
35745
|
+
|
35418
35746
|
var TableCatalogs = observer(function () {
|
35419
35747
|
var root = useStore();
|
35420
35748
|
var _useTranslation = useTranslation(),
|
@@ -35434,6 +35762,9 @@ var TableCatalogs = observer(function () {
|
|
35434
35762
|
setShowApi2 = _React$useState2[1];
|
35435
35763
|
var _useCatalogContext = useCatalogContext([]),
|
35436
35764
|
setSelectedCatalog = _useCatalogContext.setSelectedCatalog;
|
35765
|
+
useTools({
|
35766
|
+
mainInformationWindowCodex: 'IDM_CATALOG_TABLE_INFO'
|
35767
|
+
});
|
35437
35768
|
var organizationId = root.dataStore.organizationId;
|
35438
35769
|
var apiConfig = root.configurationStore.apiConfig;
|
35439
35770
|
var applicationData = useMemo(function () {
|
@@ -35611,7 +35942,12 @@ var TableCatalogs = observer(function () {
|
|
35611
35942
|
}] : []), [{
|
35612
35943
|
headerName: 'backoffice.idmCatalog.packages.label.name',
|
35613
35944
|
field: 'name',
|
35614
|
-
required: true
|
35945
|
+
required: true,
|
35946
|
+
headerComponentParams: {
|
35947
|
+
additionalElement: /*#__PURE__*/jsx(InformationButton, {
|
35948
|
+
codex: "IDM_CATALOG_TABLE_NAME_FIELD_INFO"
|
35949
|
+
})
|
35950
|
+
}
|
35615
35951
|
}, {
|
35616
35952
|
headerName: 'backoffice.idmCatalog.general.label.filename',
|
35617
35953
|
field: 'filename',
|
@@ -36096,7 +36432,11 @@ var TableCatalogs = observer(function () {
|
|
36096
36432
|
return /*#__PURE__*/jsxs(Fragment, {
|
36097
36433
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36098
36434
|
title: /*#__PURE__*/jsxs("div", {
|
36099
|
-
children: [
|
36435
|
+
children: [/*#__PURE__*/jsxs(Space$1, {
|
36436
|
+
children: [t('backoffice.menu.items.label.IDMEditorTableCatalogs'), /*#__PURE__*/jsx(InformationButton, {
|
36437
|
+
codex: "IDM_CATALOG_TABLE_INFO"
|
36438
|
+
})]
|
36439
|
+
}), /*#__PURE__*/jsxs(Space$1, {
|
36100
36440
|
style: {
|
36101
36441
|
"float": 'right'
|
36102
36442
|
},
|
@@ -36350,32 +36690,6 @@ function useModule (currentModules) {
|
|
36350
36690
|
useEffect(function () {
|
36351
36691
|
root.contentStore.updateAdditionalElement('catalogs', menuItems, currentModules);
|
36352
36692
|
}, [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
36693
|
return {
|
36380
36694
|
organizationId: organizationId,
|
36381
36695
|
apiConfig: root.configurationStore.apiConfig,
|
@@ -36660,9 +36974,13 @@ var TableItems = observer(function () {
|
|
36660
36974
|
t = _useTranslation.t;
|
36661
36975
|
var _useModule = useModule(['items']),
|
36662
36976
|
selectedCatalog = _useModule.selectedCatalog,
|
36977
|
+
catalogId = _useModule.catalogId,
|
36663
36978
|
selectedSerie = _useModule.selectedSerie,
|
36664
36979
|
apiConfig = _useModule.apiConfig,
|
36665
36980
|
organizationId = _useModule.organizationId;
|
36981
|
+
useTools({
|
36982
|
+
catalogId: catalogId
|
36983
|
+
});
|
36666
36984
|
return /*#__PURE__*/jsxs(Fragment, {
|
36667
36985
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36668
36986
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -36689,7 +37007,6 @@ var TableItems = observer(function () {
|
|
36689
37007
|
var TableSeries = observer(function () {
|
36690
37008
|
var _useTranslation = useTranslation(),
|
36691
37009
|
t = _useTranslation.t;
|
36692
|
-
var root = useStore();
|
36693
37010
|
var _useModule = useModule(['series']),
|
36694
37011
|
selectedCatalog = _useModule.selectedCatalog,
|
36695
37012
|
catalogId = _useModule.catalogId,
|
@@ -36699,9 +37016,15 @@ var TableSeries = observer(function () {
|
|
36699
37016
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
36700
37017
|
selectedSerie = _React$useState2[0],
|
36701
37018
|
setSelectedSerie = _React$useState2[1];
|
37019
|
+
var _useTools = useTools({
|
37020
|
+
mainInformationWindowCodex: 'IDM_SERIES_TABLE_INFO',
|
37021
|
+
catalogId: catalogId
|
37022
|
+
}),
|
37023
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
37024
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
36702
37025
|
useEffect(function () {
|
36703
37026
|
if (selectedSerie !== null && selectedSerie !== void 0 && selectedSerie._id) {
|
36704
|
-
|
37027
|
+
addSecondaryTables({
|
36705
37028
|
id: 'items',
|
36706
37029
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableItems'),
|
36707
37030
|
elementComponent: Items$1,
|
@@ -36710,21 +37033,12 @@ var TableSeries = observer(function () {
|
|
36710
37033
|
selectedCatalog: selectedCatalog,
|
36711
37034
|
selectedSerie: selectedSerie._id,
|
36712
37035
|
apiConfig: apiConfig
|
36713
|
-
}
|
36714
|
-
|
36715
|
-
defaultPinned: false,
|
36716
|
-
defaultOpen: false
|
36717
|
-
}];
|
37036
|
+
}
|
37037
|
+
});
|
36718
37038
|
} else {
|
36719
|
-
|
37039
|
+
removeSecondaryTables('items');
|
36720
37040
|
}
|
36721
37041
|
}, [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
37042
|
var applicationData = useMemo(function () {
|
36729
37043
|
return {
|
36730
37044
|
catalogId: catalogId,
|
@@ -36860,7 +37174,11 @@ var TableSeries = observer(function () {
|
|
36860
37174
|
return /*#__PURE__*/jsxs(Fragment, {
|
36861
37175
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36862
37176
|
title: /*#__PURE__*/jsxs("div", {
|
36863
|
-
children: [
|
37177
|
+
children: [/*#__PURE__*/jsxs(Space$1, {
|
37178
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableSeries'), /*#__PURE__*/jsx(InformationButton, {
|
37179
|
+
codex: "IDM_SERIES_TABLE_INFO"
|
37180
|
+
})]
|
37181
|
+
}), /*#__PURE__*/jsx(Space$1, {
|
36864
37182
|
style: {
|
36865
37183
|
"float": 'right'
|
36866
37184
|
},
|
@@ -37045,8 +37363,12 @@ var TableFeatures = observer(function () {
|
|
37045
37363
|
t = _useTranslation.t;
|
37046
37364
|
var _useModule = useModule(['features']),
|
37047
37365
|
selectedCatalog = _useModule.selectedCatalog,
|
37366
|
+
catalogId = _useModule.catalogId,
|
37048
37367
|
organizationId = _useModule.organizationId,
|
37049
37368
|
apiConfig = _useModule.apiConfig;
|
37369
|
+
useTools({
|
37370
|
+
catalogId: catalogId
|
37371
|
+
});
|
37050
37372
|
return /*#__PURE__*/jsxs(Fragment, {
|
37051
37373
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
37052
37374
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -37223,8 +37545,12 @@ var TableOptions = observer(function () {
|
|
37223
37545
|
t = _useTranslation.t;
|
37224
37546
|
var _useModule = useModule(['options']),
|
37225
37547
|
selectedCatalog = _useModule.selectedCatalog,
|
37548
|
+
catalogId = _useModule.catalogId,
|
37226
37549
|
apiConfig = _useModule.apiConfig,
|
37227
37550
|
organizationId = _useModule.organizationId;
|
37551
|
+
useTools({
|
37552
|
+
catalogId: catalogId
|
37553
|
+
});
|
37228
37554
|
return /*#__PURE__*/jsxs(Fragment, {
|
37229
37555
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
37230
37556
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -37248,7 +37574,6 @@ var TableOptions = observer(function () {
|
|
37248
37574
|
var TableFeatureClasses = observer(function () {
|
37249
37575
|
var _useTranslation = useTranslation(),
|
37250
37576
|
t = _useTranslation.t;
|
37251
|
-
var root = useStore();
|
37252
37577
|
var _useModule = useModule(['featureclasses']),
|
37253
37578
|
selectedCatalog = _useModule.selectedCatalog,
|
37254
37579
|
catalogId = _useModule.catalogId,
|
@@ -37258,9 +37583,14 @@ var TableFeatureClasses = observer(function () {
|
|
37258
37583
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
37259
37584
|
selectedFeatureClass = _React$useState2[0],
|
37260
37585
|
setSelectedFeatureClass = _React$useState2[1];
|
37586
|
+
var _useTools = useTools({
|
37587
|
+
catalogId: catalogId
|
37588
|
+
}),
|
37589
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
37590
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
37261
37591
|
useEffect(function () {
|
37262
37592
|
if (selectedFeatureClass !== null && selectedFeatureClass !== void 0 && selectedFeatureClass._id) {
|
37263
|
-
|
37593
|
+
addSecondaryTables({
|
37264
37594
|
id: 'features',
|
37265
37595
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
37266
37596
|
elementComponent: Features,
|
@@ -37269,21 +37599,12 @@ var TableFeatureClasses = observer(function () {
|
|
37269
37599
|
selectedCatalog: selectedCatalog,
|
37270
37600
|
apiConfig: apiConfig,
|
37271
37601
|
featureClassId: selectedFeatureClass._id
|
37272
|
-
}
|
37273
|
-
|
37274
|
-
defaultPinned: false,
|
37275
|
-
defaultOpen: false
|
37276
|
-
}];
|
37602
|
+
}
|
37603
|
+
});
|
37277
37604
|
} else {
|
37278
|
-
|
37605
|
+
removeSecondaryTables('features');
|
37279
37606
|
}
|
37280
37607
|
}, [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
37608
|
var applicationData = useMemo(function () {
|
37288
37609
|
return {
|
37289
37610
|
catalogId: catalogId,
|
@@ -37386,7 +37707,7 @@ var TableFeatureClasses = observer(function () {
|
|
37386
37707
|
});
|
37387
37708
|
});
|
37388
37709
|
|
37389
|
-
var container$
|
37710
|
+
var container$3 = "container-wGptw";
|
37390
37711
|
var scrollableContent = "scrollable-content-zRBJy";
|
37391
37712
|
var sectionTitle = "section-title-s2qIs";
|
37392
37713
|
var actionItem = "action-item-LjQVf";
|
@@ -37397,8 +37718,8 @@ var formContent = "form-content-H-AkE";
|
|
37397
37718
|
var footerButtons = "footer-buttons-4cwcu";
|
37398
37719
|
var addButton = "add-button-w-6Lk";
|
37399
37720
|
var footerContent = "footer-content-sOrT1";
|
37400
|
-
var css_248z$
|
37401
|
-
styleInject(css_248z$
|
37721
|
+
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";
|
37722
|
+
styleInject(css_248z$8);
|
37402
37723
|
|
37403
37724
|
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
37725
|
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 +38123,7 @@ function OptionCombinationsExpandedEditor(_ref) {
|
|
37802
38123
|
});
|
37803
38124
|
}, [showForm, editingIndex, t]);
|
37804
38125
|
return /*#__PURE__*/jsx("div", {
|
37805
|
-
className: container$
|
38126
|
+
className: container$3,
|
37806
38127
|
children: !showForm ? /*#__PURE__*/jsxs(Fragment, {
|
37807
38128
|
children: [/*#__PURE__*/jsx(Typography.Title, {
|
37808
38129
|
level: 5,
|
@@ -38047,7 +38368,6 @@ function OptionCombinations(_ref) {
|
|
38047
38368
|
var TableDecisions = observer(function () {
|
38048
38369
|
var _useTranslation = useTranslation(),
|
38049
38370
|
t = _useTranslation.t;
|
38050
|
-
var root = useStore();
|
38051
38371
|
var spreadsheetRef = useRef(null);
|
38052
38372
|
var _useModule = useModule(['decisions']),
|
38053
38373
|
selectedCatalog = _useModule.selectedCatalog,
|
@@ -38062,12 +38382,17 @@ var TableDecisions = observer(function () {
|
|
38062
38382
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
38063
38383
|
selectedNodeId = _React$useState4[0],
|
38064
38384
|
setSelectedNodeId = _React$useState4[1];
|
38385
|
+
var _useTools = useTools({
|
38386
|
+
catalogId: catalogId
|
38387
|
+
}),
|
38388
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
38389
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
38065
38390
|
var setNodeDataValue = useCallback(function (data) {
|
38066
38391
|
spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
|
38067
38392
|
}, [selectedNodeId]);
|
38068
38393
|
useEffect(function () {
|
38069
38394
|
if (selectedDecision !== null && selectedDecision !== void 0 && selectedDecision._id) {
|
38070
|
-
|
38395
|
+
addSecondaryTables({
|
38071
38396
|
id: 'optionCombinations',
|
38072
38397
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionCombinations'),
|
38073
38398
|
elementComponent: OptionCombinations,
|
@@ -38076,21 +38401,12 @@ var TableDecisions = observer(function () {
|
|
38076
38401
|
catalogId: catalogId,
|
38077
38402
|
apiConfig: apiConfig,
|
38078
38403
|
setNodeDataValue: setNodeDataValue
|
38079
|
-
}
|
38080
|
-
|
38081
|
-
defaultPinned: false,
|
38082
|
-
defaultOpen: false
|
38083
|
-
}];
|
38404
|
+
}
|
38405
|
+
});
|
38084
38406
|
} else {
|
38085
|
-
|
38407
|
+
removeSecondaryTables('optionCombinations');
|
38086
38408
|
}
|
38087
38409
|
}, [selectedDecision, setNodeDataValue]);
|
38088
|
-
useEffect(function () {
|
38089
|
-
//remove optionCombinations table, when decisions are unmounted
|
38090
|
-
return function () {
|
38091
|
-
root.contentStore.bottomToolBar.tools = [];
|
38092
|
-
};
|
38093
|
-
}, []);
|
38094
38410
|
var applicationData = useMemo(function () {
|
38095
38411
|
return {
|
38096
38412
|
catalogId: catalogId,
|
@@ -38273,6 +38589,9 @@ var TableDetailInfos = observer(function () {
|
|
38273
38589
|
catalogId = _useModule.catalogId,
|
38274
38590
|
organizationId = _useModule.organizationId,
|
38275
38591
|
apiConfig = _useModule.apiConfig;
|
38592
|
+
useTools({
|
38593
|
+
catalogId: catalogId
|
38594
|
+
});
|
38276
38595
|
var applicationData = useMemo(function () {
|
38277
38596
|
return {
|
38278
38597
|
catalogId: catalogId,
|
@@ -38616,7 +38935,6 @@ function PartlistPos(_ref) {
|
|
38616
38935
|
var TablePartlists = observer(function () {
|
38617
38936
|
var _useTranslation = useTranslation(),
|
38618
38937
|
t = _useTranslation.t;
|
38619
|
-
var root = useStore();
|
38620
38938
|
var _useModule = useModule(['partlists']),
|
38621
38939
|
selectedCatalog = _useModule.selectedCatalog,
|
38622
38940
|
catalogId = _useModule.catalogId,
|
@@ -38626,9 +38944,14 @@ var TablePartlists = observer(function () {
|
|
38626
38944
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
38627
38945
|
selectedPartlist = _React$useState2[0],
|
38628
38946
|
setSelectedPartlist = _React$useState2[1];
|
38947
|
+
var _useTools = useTools({
|
38948
|
+
catalogId: catalogId
|
38949
|
+
}),
|
38950
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
38951
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
38629
38952
|
useEffect(function () {
|
38630
38953
|
if (selectedPartlist !== null && selectedPartlist !== void 0 && selectedPartlist._id) {
|
38631
|
-
|
38954
|
+
addSecondaryTables({
|
38632
38955
|
id: 'partlistpos',
|
38633
38956
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlistpos'),
|
38634
38957
|
elementComponent: PartlistPos,
|
@@ -38637,21 +38960,12 @@ var TablePartlists = observer(function () {
|
|
38637
38960
|
catalogId: catalogId,
|
38638
38961
|
apiConfig: apiConfig,
|
38639
38962
|
partlistId: selectedPartlist._id
|
38640
|
-
}
|
38641
|
-
|
38642
|
-
defaultPinned: false,
|
38643
|
-
defaultOpen: false
|
38644
|
-
}];
|
38963
|
+
}
|
38964
|
+
});
|
38645
38965
|
} else {
|
38646
|
-
|
38966
|
+
removeSecondaryTables('partlistpos');
|
38647
38967
|
}
|
38648
38968
|
}, [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
38969
|
var applicationData = useMemo(function () {
|
38656
38970
|
return {
|
38657
38971
|
organizationId: organizationId,
|
@@ -39146,6 +39460,11 @@ var TablePriceFeatureGroups = observer(function () {
|
|
39146
39460
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
39147
39461
|
isPercentage = _React$useState6[0],
|
39148
39462
|
setIsPercentage = _React$useState6[1];
|
39463
|
+
var _useTools = useTools({
|
39464
|
+
catalogId: catalogId
|
39465
|
+
}),
|
39466
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
39467
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
39149
39468
|
var setNodeDataValue = useCallback(function (data) {
|
39150
39469
|
var _spreadsheetRef$curre;
|
39151
39470
|
return (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 ? void 0 : _spreadsheetRef$curre.setNodeDataValue(selectedNodeId, data);
|
@@ -39153,7 +39472,7 @@ var TablePriceFeatureGroups = observer(function () {
|
|
39153
39472
|
useEffect(function () {
|
39154
39473
|
if (selectedPriceFeatureGroup !== null && selectedPriceFeatureGroup !== void 0 && selectedPriceFeatureGroup._id) {
|
39155
39474
|
var _root$contentStore$bo;
|
39156
|
-
|
39475
|
+
addSecondaryTables({
|
39157
39476
|
id: 'priceFeatureGroupFinishes',
|
39158
39477
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroupFinishes'),
|
39159
39478
|
elementComponent: PriceFeatureGroupFinishes,
|
@@ -39176,23 +39495,14 @@ var TablePriceFeatureGroups = observer(function () {
|
|
39176
39495
|
setNodeDataValue: setNodeDataValue,
|
39177
39496
|
setIsPercentage: setIsPercentage
|
39178
39497
|
},
|
39179
|
-
startWidth: 300,
|
39180
|
-
defaultPinned: false,
|
39181
|
-
defaultOpen: false,
|
39182
39498
|
disabled: isPercentage === false
|
39183
|
-
}
|
39499
|
+
});
|
39184
39500
|
var openTool = (_root$contentStore$bo = root.contentStore.bottomToolBar.currentOpenTool) === null || _root$contentStore$bo === void 0 ? void 0 : _root$contentStore$bo.id;
|
39185
39501
|
root.contentStore.bottomToolBar.openTool(isPercentage === true ? 'priceFeatureGroupPercentageSurcharge' : isPercentage === false ? 'priceFeatureGroupFinishes' : openTool !== null && openTool !== void 0 ? openTool : 'priceFeatureGroupFinishes');
|
39186
39502
|
} else {
|
39187
|
-
|
39503
|
+
removeSecondaryTables('priceFeatureGroupFinishes', 'priceFeatureGroupPercentageSurcharge');
|
39188
39504
|
}
|
39189
39505
|
}, [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
39506
|
var applicationData = useMemo(function () {
|
39197
39507
|
return {
|
39198
39508
|
catalogId: catalogId,
|
@@ -39334,6 +39644,9 @@ var TablePrices = observer(function () {
|
|
39334
39644
|
catalogId = _useModule.catalogId,
|
39335
39645
|
apiConfig = _useModule.apiConfig,
|
39336
39646
|
organizationId = _useModule.organizationId;
|
39647
|
+
useTools({
|
39648
|
+
catalogId: catalogId
|
39649
|
+
});
|
39337
39650
|
var applicationData = useMemo(function () {
|
39338
39651
|
return {
|
39339
39652
|
organizationId: organizationId,
|
@@ -39509,7 +39822,6 @@ function Items(_ref) {
|
|
39509
39822
|
var TableOptionGroups = observer(function () {
|
39510
39823
|
var _useTranslation = useTranslation(),
|
39511
39824
|
t = _useTranslation.t;
|
39512
|
-
var root = useStore();
|
39513
39825
|
var _useModule = useModule(['optiongroups']),
|
39514
39826
|
selectedCatalog = _useModule.selectedCatalog,
|
39515
39827
|
catalogId = _useModule.catalogId,
|
@@ -39519,9 +39831,14 @@ var TableOptionGroups = observer(function () {
|
|
39519
39831
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
39520
39832
|
selectedOptionGroup = _React$useState2[0],
|
39521
39833
|
setSelectedOptionGroup = _React$useState2[1];
|
39834
|
+
var _useTools = useTools({
|
39835
|
+
catalogId: catalogId
|
39836
|
+
}),
|
39837
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
39838
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
39522
39839
|
useEffect(function () {
|
39523
39840
|
if (selectedOptionGroup !== null && selectedOptionGroup !== void 0 && selectedOptionGroup.optionGroupKey) {
|
39524
|
-
|
39841
|
+
addSecondaryTables({
|
39525
39842
|
id: 'optionGroupOptions',
|
39526
39843
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroupOptions'),
|
39527
39844
|
elementComponent: Items,
|
@@ -39530,21 +39847,12 @@ var TableOptionGroups = observer(function () {
|
|
39530
39847
|
selectedCatalog: selectedCatalog,
|
39531
39848
|
selectedOptionGroup: selectedOptionGroup.optionGroupKey,
|
39532
39849
|
apiConfig: apiConfig
|
39533
|
-
}
|
39534
|
-
|
39535
|
-
defaultPinned: false,
|
39536
|
-
defaultOpen: false
|
39537
|
-
}];
|
39850
|
+
}
|
39851
|
+
});
|
39538
39852
|
} else {
|
39539
|
-
|
39853
|
+
removeSecondaryTables('optionGroupOptions');
|
39540
39854
|
}
|
39541
39855
|
}, [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
39856
|
var applicationData = useMemo(function () {
|
39549
39857
|
return {
|
39550
39858
|
catalogId: catalogId,
|
@@ -39775,11 +40083,14 @@ function TableCollections () {
|
|
39775
40083
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
39776
40084
|
selectedNodeId = _React$useState4[0],
|
39777
40085
|
setSelectedNodeId = _React$useState4[1];
|
40086
|
+
var _useTools = useTools({}),
|
40087
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
40088
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
39778
40089
|
var organizationId = root.dataStore.organizationId;
|
39779
40090
|
var apiConfig = root.configurationStore.apiConfig;
|
39780
40091
|
useEffect(function () {
|
39781
40092
|
if (selectedCollection !== null && selectedCollection !== void 0 && selectedCollection._id) {
|
39782
|
-
|
40093
|
+
addSecondaryTables({
|
39783
40094
|
id: 'collectionMembers',
|
39784
40095
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableCollectionmembers'),
|
39785
40096
|
elementComponent: CollectionMembers,
|
@@ -39787,20 +40098,12 @@ function TableCollections () {
|
|
39787
40098
|
collection: selectedCollection,
|
39788
40099
|
organizationId: organizationId,
|
39789
40100
|
apiConfig: apiConfig
|
39790
|
-
}
|
39791
|
-
|
39792
|
-
defaultPinned: false,
|
39793
|
-
defaultOpen: false
|
39794
|
-
}];
|
40101
|
+
}
|
40102
|
+
});
|
39795
40103
|
} else {
|
39796
|
-
|
40104
|
+
removeSecondaryTables('collectionMembers');
|
39797
40105
|
}
|
39798
40106
|
}, [selectedCollection]);
|
39799
|
-
useEffect(function () {
|
39800
|
-
return function () {
|
39801
|
-
root.contentStore.bottomToolBar.tools = [];
|
39802
|
-
};
|
39803
|
-
}, []);
|
39804
40107
|
var applicationData = useMemo(function () {
|
39805
40108
|
return {
|
39806
40109
|
organizationId: organizationId
|
@@ -40289,8 +40592,8 @@ var Content = observer(ContentWrapper);
|
|
40289
40592
|
var layout = "layout-gqKsp";
|
40290
40593
|
var contentWrapper = "content-wrapper-mQSc0";
|
40291
40594
|
var detail = "detail-WeK8Q";
|
40292
|
-
var css_248z$
|
40293
|
-
styleInject(css_248z$
|
40595
|
+
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";
|
40596
|
+
styleInject(css_248z$7);
|
40294
40597
|
|
40295
40598
|
function Detail(_ref) {
|
40296
40599
|
var _info$description, _container$current, _info$width, _info$submitButtonTex, _info$data;
|
@@ -40632,8 +40935,8 @@ var Modal$1 = observer(Modal);
|
|
40632
40935
|
|
40633
40936
|
var snow = "snow-14T01";
|
40634
40937
|
var sun = "sun-ijIPS";
|
40635
|
-
var css_248z$
|
40636
|
-
styleInject(css_248z$
|
40938
|
+
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";
|
40939
|
+
styleInject(css_248z$6);
|
40637
40940
|
|
40638
40941
|
var SnowAnimation = function SnowAnimation(props) {
|
40639
40942
|
var _useState = useState(),
|
@@ -40785,7 +41088,7 @@ var MenuWrapper = function MenuWrapper() {
|
|
40785
41088
|
};
|
40786
41089
|
var Navigation = observer(MenuWrapper);
|
40787
41090
|
|
40788
|
-
var container$
|
41091
|
+
var container$2 = "container-BucHG";
|
40789
41092
|
var right = "right--XETU";
|
40790
41093
|
var unpinnedRight = "unpinned-right-tbnNb";
|
40791
41094
|
var draghandle = "draghandle-f5b0N";
|
@@ -40798,18 +41101,18 @@ var sel = "sel-iUm8X";
|
|
40798
41101
|
var button = "button-K-0KR";
|
40799
41102
|
var toolbarLayout = "toolbar-layout-DUuBn";
|
40800
41103
|
var toolbarContent = "toolbar-content-GxyU6";
|
40801
|
-
var css_248z$
|
40802
|
-
styleInject(css_248z$
|
41104
|
+
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";
|
41105
|
+
styleInject(css_248z$5);
|
40803
41106
|
|
40804
41107
|
var wrapper$2 = "wrapper-Q13-g";
|
40805
41108
|
var confContainer = "conf-container-Sm5LL";
|
40806
|
-
var css_248z$
|
40807
|
-
styleInject(css_248z$
|
41109
|
+
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";
|
41110
|
+
styleInject(css_248z$4);
|
40808
41111
|
|
40809
41112
|
var wrapper$1 = "wrapper-IcNC5";
|
40810
41113
|
var select$1 = "select-jVMz-";
|
40811
|
-
var css_248z$
|
40812
|
-
styleInject(css_248z$
|
41114
|
+
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";
|
41115
|
+
styleInject(css_248z$3);
|
40813
41116
|
|
40814
41117
|
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
41118
|
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 +41437,7 @@ function useWysiwyg$1(_ref) {
|
|
41134
41437
|
hideFirstStepWhenSingleOPVOnly: false,
|
41135
41438
|
hideMeasureUnit: true,
|
41136
41439
|
dontShowOrbitInMobile: false,
|
41137
|
-
hideSingleOPVOnlyAlways:
|
41440
|
+
hideSingleOPVOnlyAlways: false,
|
41138
41441
|
hideElementInfo: true,
|
41139
41442
|
hideConfigSingle: true,
|
41140
41443
|
plannerType: 'NONE',
|
@@ -41260,8 +41563,8 @@ var FallbackComponent = function FallbackComponent(_ref2) {
|
|
41260
41563
|
|
41261
41564
|
var wrapper = "wrapper-NYRLn";
|
41262
41565
|
var select = "select-K2SWc";
|
41263
|
-
var css_248z$
|
41264
|
-
styleInject(css_248z$
|
41566
|
+
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";
|
41567
|
+
styleInject(css_248z$2);
|
41265
41568
|
|
41266
41569
|
var CatalogSelection = function CatalogSelection(_ref) {
|
41267
41570
|
var _ref$state = _ref.state,
|
@@ -41433,9 +41736,9 @@ var getTranslation = function getTranslation(text, lang) {
|
|
41433
41736
|
}
|
41434
41737
|
};
|
41435
41738
|
|
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);
|
41739
|
+
var container$1 = "container-Xbv0B";
|
41740
|
+
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";
|
41741
|
+
styleInject(css_248z$1);
|
41439
41742
|
|
41440
41743
|
var WsyiwygContentItem = function WsyiwygContentItem(_ref) {
|
41441
41744
|
var tool = _ref.tool,
|
@@ -41449,16 +41752,41 @@ var WsyiwygContentItem = function WsyiwygContentItem(_ref) {
|
|
41449
41752
|
errorCode: "BACKO_0004",
|
41450
41753
|
addToErrorLog: data,
|
41451
41754
|
children: /*#__PURE__*/jsx("div", {
|
41452
|
-
className: container,
|
41755
|
+
className: container$1,
|
41453
41756
|
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
41454
|
-
|
41455
|
-
|
41757
|
+
configuration: {
|
41758
|
+
content: data !== null && data !== void 0 ? data : []
|
41456
41759
|
}
|
41457
41760
|
})
|
41458
41761
|
})
|
41459
41762
|
});
|
41460
41763
|
};
|
41461
41764
|
|
41765
|
+
var container = "container-babS2";
|
41766
|
+
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";
|
41767
|
+
styleInject(css_248z);
|
41768
|
+
|
41769
|
+
var InformationWindow = function InformationWindow(_ref) {
|
41770
|
+
var _tool$parameters;
|
41771
|
+
var tool = _ref.tool;
|
41772
|
+
var root = useStore();
|
41773
|
+
var codex = (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.contentItemCodex;
|
41774
|
+
useEffect(function () {
|
41775
|
+
var _root$resetErrorBound;
|
41776
|
+
(_root$resetErrorBound = root.resetErrorBoundary) === null || _root$resetErrorBound === void 0 || _root$resetErrorBound.call(root);
|
41777
|
+
}, [tool.parameters]);
|
41778
|
+
return /*#__PURE__*/jsx(ErrorBoundary, {
|
41779
|
+
errorCode: "BACKO_0004",
|
41780
|
+
addToErrorLog: codex,
|
41781
|
+
children: /*#__PURE__*/jsx("div", {
|
41782
|
+
className: container,
|
41783
|
+
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
41784
|
+
contentItemCodex: codex
|
41785
|
+
})
|
41786
|
+
})
|
41787
|
+
});
|
41788
|
+
};
|
41789
|
+
|
41462
41790
|
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
41791
|
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
41792
|
var Toolbar = function Toolbar(_ref) {
|
@@ -41510,7 +41838,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
41510
41838
|
className: midHandle
|
41511
41839
|
})
|
41512
41840
|
}), !toolBar.hidden && toolBar.currentOpenTool && /*#__PURE__*/jsx("div", {
|
41513
|
-
className: classnames(container$
|
41841
|
+
className: classnames(container$2, _defineProperty({}, unpinnedRight, !toolBar.pinned && position === 'right')),
|
41514
41842
|
style: {
|
41515
41843
|
width: position === 'right' ? toolBar.width : undefined,
|
41516
41844
|
minWidth: position === 'right' ? toolBar.width : undefined,
|
@@ -41576,6 +41904,12 @@ function ToolElement(_ref2) {
|
|
41576
41904
|
toolbar: toolbar
|
41577
41905
|
});
|
41578
41906
|
break;
|
41907
|
+
case 'InformationWindow':
|
41908
|
+
Tool = /*#__PURE__*/jsx(InformationWindow, {
|
41909
|
+
tool: tool,
|
41910
|
+
toolbar: toolbar
|
41911
|
+
});
|
41912
|
+
break;
|
41579
41913
|
}
|
41580
41914
|
var C = useMemo(function () {
|
41581
41915
|
return tool.elementComponent;
|