@crystaldesign/diva-backoffice 25.7.0-beta.17 → 25.7.0-beta.19
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 +833 -558
- 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/ToolBarStore.d.ts +3 -0
- package/build/types/backoffice/src/store/ToolBarStore.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/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/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
|
}
|
@@ -3990,7 +3990,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
3990
3990
|
}]
|
3991
3991
|
}
|
3992
3992
|
},
|
3993
|
-
|
3993
|
+
TableContentItems: {
|
3994
3994
|
title: t('backoffice.table.contentitems.title'),
|
3995
3995
|
type: 'Table',
|
3996
3996
|
canRefresh: true,
|
@@ -4066,6 +4066,12 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
4066
4066
|
sorter: 1,
|
4067
4067
|
filter: 'advanced',
|
4068
4068
|
width: 150
|
4069
|
+
}, {
|
4070
|
+
title: t('backoffice.table.contentitems.columns.codex'),
|
4071
|
+
field: 'codex',
|
4072
|
+
sorter: 1,
|
4073
|
+
filter: 'advanced',
|
4074
|
+
width: 150
|
4069
4075
|
}, {
|
4070
4076
|
title: t('backoffice._id'),
|
4071
4077
|
field: '_id',
|
@@ -4141,6 +4147,107 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
4141
4147
|
}]
|
4142
4148
|
}
|
4143
4149
|
},
|
4150
|
+
TableContentItemsGlobal: {
|
4151
|
+
title: t('backoffice.table.contentitemsglobal.title'),
|
4152
|
+
type: 'Table',
|
4153
|
+
canRefresh: true,
|
4154
|
+
pagination: {
|
4155
|
+
pageSize: 50
|
4156
|
+
},
|
4157
|
+
copyAction: {
|
4158
|
+
actionType: 'Detail',
|
4159
|
+
type: 'Form',
|
4160
|
+
id: 'FormEditContentItem',
|
4161
|
+
disableOnMultiselect: true,
|
4162
|
+
resetToggleAfter: true,
|
4163
|
+
title: t('backoffice.table.contentItem.copyAction.title'),
|
4164
|
+
label: t('backoffice.table.services.copyAction.label'),
|
4165
|
+
mapping: {
|
4166
|
+
type: 'body',
|
4167
|
+
map: [{
|
4168
|
+
targetField: 'content',
|
4169
|
+
sourceField: 'content'
|
4170
|
+
}, {
|
4171
|
+
targetField: 'catalogName',
|
4172
|
+
sourceField: 'catalogName'
|
4173
|
+
}, {
|
4174
|
+
targetField: 'supplierName',
|
4175
|
+
sourceField: 'supplierName'
|
4176
|
+
}, {
|
4177
|
+
targetField: 'description',
|
4178
|
+
sourceField: 'description'
|
4179
|
+
}]
|
4180
|
+
}
|
4181
|
+
},
|
4182
|
+
createAction: {
|
4183
|
+
actionType: 'Detail',
|
4184
|
+
type: 'JsonEditor',
|
4185
|
+
id: 'JsonEditorEditContentItem',
|
4186
|
+
title: t('backoffice.table.contentItem.label.create_global'),
|
4187
|
+
label: t('backoffice.table.contentItem.label.create_global'),
|
4188
|
+
permission: 'backoffice_create_contentitem_template'
|
4189
|
+
},
|
4190
|
+
columns: [{
|
4191
|
+
title: t('backoffice.table.roles.columns.description'),
|
4192
|
+
field: 'description',
|
4193
|
+
sorter: 1,
|
4194
|
+
filter: 'advanced',
|
4195
|
+
width: 500
|
4196
|
+
}, {
|
4197
|
+
title: t('backoffice.table.contentitems.columns.codex'),
|
4198
|
+
field: 'codex',
|
4199
|
+
sorter: 1,
|
4200
|
+
filter: 'advanced',
|
4201
|
+
width: 150
|
4202
|
+
}, {
|
4203
|
+
title: t('backoffice._id'),
|
4204
|
+
field: '_id',
|
4205
|
+
sorter: 1,
|
4206
|
+
filter: 'advanced',
|
4207
|
+
width: 100
|
4208
|
+
}, {
|
4209
|
+
title: t('backoffice.table.views.lastUpdated'),
|
4210
|
+
field: 'lastUpdated',
|
4211
|
+
defaultSortOrder: 'descend',
|
4212
|
+
type: 'unixTimeStamp',
|
4213
|
+
sorter: 1,
|
4214
|
+
filter: 'advanced',
|
4215
|
+
width: 200
|
4216
|
+
}, {
|
4217
|
+
title: t('backoffice.table.views.lastUpdatedBy'),
|
4218
|
+
field: 'lastUpdatedBy_displayText',
|
4219
|
+
sorter: 1,
|
4220
|
+
filter: 'advanced',
|
4221
|
+
width: 150
|
4222
|
+
}, {
|
4223
|
+
title: 'backoffice.content',
|
4224
|
+
field: 'content',
|
4225
|
+
hidden: true
|
4226
|
+
}],
|
4227
|
+
rowAction: [{
|
4228
|
+
actionType: 'Detail',
|
4229
|
+
disableOnMultiselect: true,
|
4230
|
+
type: 'Form',
|
4231
|
+
id: 'FormEditContentItem',
|
4232
|
+
title: t('backoffice.table.contentItem.edit'),
|
4233
|
+
label: t('backoffice.edit')
|
4234
|
+
}, {
|
4235
|
+
disableOnMultiselect: true,
|
4236
|
+
actionType: 'Detail',
|
4237
|
+
permission: 'backoffice_edit_contentitem_template',
|
4238
|
+
type: 'JsonEditor',
|
4239
|
+
label: t('backoffice.table.contentItem.editjson'),
|
4240
|
+
id: 'JsonEditorEditContentItem',
|
4241
|
+
title: t('backoffice.table.contentItem.edit')
|
4242
|
+
}],
|
4243
|
+
apiInterface: {
|
4244
|
+
read: {
|
4245
|
+
list: '${catalogService}/contentItems',
|
4246
|
+
filterServerSide: true
|
4247
|
+
},
|
4248
|
+
"delete": '${catalogService}/contentItems/${id}'
|
4249
|
+
}
|
4250
|
+
},
|
4144
4251
|
TableApplicationTranslations: {
|
4145
4252
|
title: t('backoffice.table.applicationtranslation.title'),
|
4146
4253
|
type: 'Table',
|
@@ -7138,11 +7245,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
7138
7245
|
JsonEditorCreateContentItem: {
|
7139
7246
|
type: 'JsonEditor',
|
7140
7247
|
apiInterface: {
|
7141
|
-
|
7142
|
-
url: '${catalogService}/contentItems',
|
7143
|
-
method: 'POST'
|
7144
|
-
},
|
7145
|
-
create: '${catalogService}/contentItems'
|
7248
|
+
create: '${catalogService}/contentItems?template=true'
|
7146
7249
|
}
|
7147
7250
|
},
|
7148
7251
|
JsonEditorEditContentItem: {
|
@@ -8483,9 +8586,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
8483
8586
|
}],
|
8484
8587
|
itemsByData: function itemsByData(data, apiConfig) {
|
8485
8588
|
var result = [{
|
8589
|
+
name: 'codex',
|
8590
|
+
type: 'input',
|
8591
|
+
label: t('backoffice.table.contentitems.columns.codex')
|
8592
|
+
}, {
|
8486
8593
|
name: 'description',
|
8487
8594
|
type: 'input',
|
8488
|
-
label: t('description')
|
8595
|
+
label: t('backoffice.table.roles.columns.description')
|
8489
8596
|
}, {
|
8490
8597
|
name: 'supplierName',
|
8491
8598
|
type: 'input',
|
@@ -8763,9 +8870,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
8763
8870
|
items: [],
|
8764
8871
|
itemsByData: function itemsByData(data, apiConfig) {
|
8765
8872
|
var result = [{
|
8873
|
+
name: 'codex',
|
8874
|
+
type: 'input',
|
8875
|
+
label: t('backoffice.table.contentitems.columns.codex')
|
8876
|
+
}, {
|
8766
8877
|
name: 'description',
|
8767
8878
|
type: 'input',
|
8768
|
-
label: t('description')
|
8879
|
+
label: t('backoffice.table.roles.columns.description')
|
8769
8880
|
}, {
|
8770
8881
|
name: 'supplierName',
|
8771
8882
|
type: 'input',
|
@@ -11600,6 +11711,17 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11600
11711
|
type: 'MediaUpload'
|
11601
11712
|
}]
|
11602
11713
|
},
|
11714
|
+
GroupContentItems: {
|
11715
|
+
type: 'Group',
|
11716
|
+
items: [{
|
11717
|
+
id: 'TableContentItems',
|
11718
|
+
type: 'Table'
|
11719
|
+
}, {
|
11720
|
+
id: 'TableContentItemsGlobal',
|
11721
|
+
type: 'Table',
|
11722
|
+
permission: 'backoffice_contentitems_global'
|
11723
|
+
}]
|
11724
|
+
},
|
11603
11725
|
SelectorPermissionRole: {
|
11604
11726
|
type: 'RelationSelector',
|
11605
11727
|
searchApiInterface: {
|
@@ -13118,8 +13240,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
13118
13240
|
var navOverlay = "nav-overlay-rKJNC";
|
13119
13241
|
var navSettings = "nav-settings-82cjv";
|
13120
13242
|
var menuLabel = "menu-label-4dXQk";
|
13121
|
-
var css_248z$
|
13122
|
-
styleInject(css_248z$
|
13243
|
+
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";
|
13244
|
+
styleInject(css_248z$x);
|
13123
13245
|
|
13124
13246
|
function MenuLabel (_ref) {
|
13125
13247
|
var disabled = _ref.disabled,
|
@@ -13359,24 +13481,61 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13359
13481
|
return this._tools;
|
13360
13482
|
},
|
13361
13483
|
set: function set(tools) {
|
13362
|
-
var _this = this,
|
13363
|
-
_tools$,
|
13364
|
-
_tools$0$defaultPinne,
|
13365
|
-
_tools$2,
|
13366
|
-
_tools$3,
|
13367
|
-
_tools$0$startWidth,
|
13368
|
-
_tools$4;
|
13369
13484
|
this._tools = tools;
|
13370
|
-
|
13371
|
-
|
13372
|
-
|
13373
|
-
|
13485
|
+
this.updateToolState();
|
13486
|
+
}
|
13487
|
+
}, {
|
13488
|
+
key: "addTools",
|
13489
|
+
value: function addTools() {
|
13490
|
+
var _this = this;
|
13491
|
+
for (var _len = arguments.length, tools = new Array(_len), _key = 0; _key < _len; _key++) {
|
13492
|
+
tools[_key] = arguments[_key];
|
13493
|
+
}
|
13494
|
+
tools.forEach(function (tool) {
|
13495
|
+
var index = _this._tools.findIndex(function (t) {
|
13496
|
+
return t.id === tool.id;
|
13497
|
+
});
|
13498
|
+
if (index === -1) {
|
13499
|
+
_this._tools.push(tool);
|
13500
|
+
} else {
|
13501
|
+
_this._tools[index] = tool;
|
13502
|
+
}
|
13503
|
+
});
|
13504
|
+
this.updateToolState();
|
13505
|
+
}
|
13506
|
+
}, {
|
13507
|
+
key: "removeTools",
|
13508
|
+
value: function removeTools() {
|
13509
|
+
for (var _len2 = arguments.length, toolIds = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
13510
|
+
toolIds[_key2] = arguments[_key2];
|
13511
|
+
}
|
13512
|
+
this._tools = this._tools.filter(function (t) {
|
13513
|
+
return !toolIds.includes(t.id);
|
13514
|
+
});
|
13515
|
+
this.updateToolState();
|
13516
|
+
}
|
13517
|
+
}, {
|
13518
|
+
key: "updateToolState",
|
13519
|
+
value: function updateToolState() {
|
13520
|
+
var _this2 = this,
|
13521
|
+
_this$_tools$,
|
13522
|
+
_this$_tools$0$defaul,
|
13523
|
+
_this$_tools$2,
|
13524
|
+
_this$_tools$3,
|
13525
|
+
_this$_tools$0$startW,
|
13526
|
+
_this$_tools$4;
|
13527
|
+
if (this._tools.length === 0) return;
|
13528
|
+
var newToolState = this._tools.find(function (t) {
|
13529
|
+
return t.id === _this2._openedToolId;
|
13530
|
+
});
|
13531
|
+
if (newToolState || this._tools.length === 0) {
|
13532
|
+
//if current tool is in the new list or the list is empty, don't change the current state
|
13374
13533
|
return;
|
13375
13534
|
}
|
13376
|
-
this._openedToolId = (_tools$ =
|
13377
|
-
this._pinned = (_tools$0$
|
13378
|
-
this._hidden = ((_tools$3 =
|
13379
|
-
this._width = (_tools$0$
|
13535
|
+
this._openedToolId = (_this$_tools$ = this._tools[0]) === null || _this$_tools$ === void 0 ? void 0 : _this$_tools$.id;
|
13536
|
+
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;
|
13537
|
+
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;
|
13538
|
+
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;
|
13380
13539
|
}
|
13381
13540
|
}, {
|
13382
13541
|
key: "hidden",
|
@@ -13409,9 +13568,9 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13409
13568
|
}, {
|
13410
13569
|
key: "currentOpenTool",
|
13411
13570
|
get: function get() {
|
13412
|
-
var
|
13571
|
+
var _this3 = this;
|
13413
13572
|
return this._tools.find(function (t) {
|
13414
|
-
return t.id ===
|
13573
|
+
return t.id === _this3._openedToolId;
|
13415
13574
|
});
|
13416
13575
|
}
|
13417
13576
|
}, {
|
@@ -13450,8 +13609,10 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13450
13609
|
this._openedToolId = toolId;
|
13451
13610
|
this._currentLanguage = this.defaultLanguage;
|
13452
13611
|
if (tool) {
|
13453
|
-
var _tool$startWidth;
|
13612
|
+
var _tool$startWidth, _tool$defaultPinned;
|
13454
13613
|
this._width = Math.max((_tool$startWidth = tool.startWidth) !== null && _tool$startWidth !== void 0 ? _tool$startWidth : DEFAULT_WIDTH, this._width);
|
13614
|
+
this._hidden = tool.defaultOpen !== undefined ? !tool.defaultOpen : this._hidden;
|
13615
|
+
this._pinned = (_tool$defaultPinned = tool.defaultPinned) !== null && _tool$defaultPinned !== void 0 ? _tool$defaultPinned : this._pinned;
|
13455
13616
|
}
|
13456
13617
|
}
|
13457
13618
|
}, {
|
@@ -13518,8 +13679,8 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13518
13679
|
}]);
|
13519
13680
|
}();
|
13520
13681
|
|
13521
|
-
function ownKeys$
|
13522
|
-
function _objectSpread$
|
13682
|
+
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; }
|
13683
|
+
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; }
|
13523
13684
|
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; } } }; }
|
13524
13685
|
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; } }
|
13525
13686
|
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; }
|
@@ -13630,7 +13791,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13630
13791
|
if (index >= 0) {
|
13631
13792
|
this._additionalMenuElements[index] = {
|
13632
13793
|
key: key,
|
13633
|
-
element: _objectSpread$
|
13794
|
+
element: _objectSpread$X(_objectSpread$X({}, this._additionalMenuElements[index].element), {}, {
|
13634
13795
|
items: items,
|
13635
13796
|
selected: selected
|
13636
13797
|
})
|
@@ -13681,7 +13842,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13681
13842
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
13682
13843
|
this.root.navigate('/' + path);
|
13683
13844
|
}
|
13684
|
-
this._menuElement1 = _objectSpread$
|
13845
|
+
this._menuElement1 = _objectSpread$X(_objectSpread$X({}, this.menuElement1), {}, {
|
13685
13846
|
selected: this._selectedMenuKeys[0]
|
13686
13847
|
});
|
13687
13848
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
@@ -13937,7 +14098,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13937
14098
|
return items.filter(function (item) {
|
13938
14099
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
13939
14100
|
}).map(function (item) {
|
13940
|
-
return _objectSpread$
|
14101
|
+
return _objectSpread$X(_objectSpread$X({}, item), {}, {
|
13941
14102
|
items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
|
13942
14103
|
subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
13943
14104
|
});
|
@@ -14028,7 +14189,7 @@ var menu = [{
|
|
14028
14189
|
disabledLabel: 'backoffice.menu.item.label.disabled.retailer'
|
14029
14190
|
}]
|
14030
14191
|
}, {
|
14031
|
-
id: '
|
14192
|
+
id: 'GroupContentItems',
|
14032
14193
|
path: 'contentitems',
|
14033
14194
|
label: 'backoffice.menu.items.label.ContentItems',
|
14034
14195
|
icon: 'OrderedListOutlined'
|
@@ -15087,8 +15248,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
15087
15248
|
return _createClass(_default);
|
15088
15249
|
}(_default$d);
|
15089
15250
|
|
15090
|
-
function ownKeys$
|
15091
|
-
function _objectSpread$
|
15251
|
+
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; }
|
15252
|
+
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; }
|
15092
15253
|
/**
|
15093
15254
|
* ContextStore is a store that manages the contexts of the application.
|
15094
15255
|
*/
|
@@ -15121,7 +15282,7 @@ var ContextStore = /*#__PURE__*/function () {
|
|
15121
15282
|
key: "updateContext",
|
15122
15283
|
value: function updateContext(contextId, updates) {
|
15123
15284
|
var currentState = this.contexts.get(contextId) || {};
|
15124
|
-
this.contexts.set(contextId, _objectSpread$
|
15285
|
+
this.contexts.set(contextId, _objectSpread$W(_objectSpread$W({}, currentState), updates));
|
15125
15286
|
}
|
15126
15287
|
|
15127
15288
|
// Clear a context
|
@@ -15751,8 +15912,8 @@ var MediaItem = /*#__PURE__*/function () {
|
|
15751
15912
|
}]);
|
15752
15913
|
}();
|
15753
15914
|
|
15754
|
-
function ownKeys$
|
15755
|
-
function _objectSpread$
|
15915
|
+
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; }
|
15916
|
+
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; }
|
15756
15917
|
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; } } }; }
|
15757
15918
|
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; } }
|
15758
15919
|
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; }
|
@@ -15886,7 +16047,7 @@ function useFormData (_ref) {
|
|
15886
16047
|
multipleEditingData = inboundData;
|
15887
16048
|
}
|
15888
16049
|
return {
|
15889
|
-
loadedData: _onLoadFields(_objectSpread$
|
16050
|
+
loadedData: _onLoadFields(_objectSpread$V({}, dt)),
|
15890
16051
|
multipleEditingData: multipleEditingData
|
15891
16052
|
};
|
15892
16053
|
}, [inboundData, selectedItemsIndex]),
|
@@ -15913,7 +16074,7 @@ function useFormData (_ref) {
|
|
15913
16074
|
setFieldErrors = _useState20[1];
|
15914
16075
|
useEffect(function () {
|
15915
16076
|
var _loadedData$_id2;
|
15916
|
-
setState(_objectSpread$
|
16077
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
15917
16078
|
data: loadedData,
|
15918
16079
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
15919
16080
|
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),
|
@@ -16015,7 +16176,7 @@ function useFormData (_ref) {
|
|
16015
16176
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
16016
16177
|
while (1) switch (_context2.prev = _context2.next) {
|
16017
16178
|
case 0:
|
16018
|
-
newData = merge(_objectSpread$
|
16179
|
+
newData = merge(_objectSpread$V({}, state.data), values);
|
16019
16180
|
if (!skipApi) {
|
16020
16181
|
_context2.next = 3;
|
16021
16182
|
break;
|
@@ -16025,7 +16186,7 @@ function useFormData (_ref) {
|
|
16025
16186
|
root.actions.toggleLoading('saving_form');
|
16026
16187
|
_context2.prev = 4;
|
16027
16188
|
_context2.next = 7;
|
16028
|
-
return setDynamicFields(_objectSpread$
|
16189
|
+
return setDynamicFields(_objectSpread$V({}, state.data), newData);
|
16029
16190
|
case 7:
|
16030
16191
|
newData = _context2.sent;
|
16031
16192
|
_context2.next = 10;
|
@@ -16040,7 +16201,7 @@ function useFormData (_ref) {
|
|
16040
16201
|
root.actions.toggleLoading('saving_form');
|
16041
16202
|
throw _context2.t0;
|
16042
16203
|
case 17:
|
16043
|
-
setState(_objectSpread$
|
16204
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16044
16205
|
loading: true
|
16045
16206
|
}));
|
16046
16207
|
finalData = state.data;
|
@@ -16093,14 +16254,14 @@ function useFormData (_ref) {
|
|
16093
16254
|
_context2.next = 47;
|
16094
16255
|
break;
|
16095
16256
|
}
|
16096
|
-
setFieldErrors(_objectSpread$
|
16257
|
+
setFieldErrors(_objectSpread$V(_objectSpread$V({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
16097
16258
|
return _context2.abrupt("return", undefined);
|
16098
16259
|
case 47:
|
16099
16260
|
throw _context2.t1;
|
16100
16261
|
case 48:
|
16101
16262
|
_context2.prev = 48;
|
16102
16263
|
root.actions.toggleLoading('saving_form');
|
16103
|
-
setState(_objectSpread$
|
16264
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16104
16265
|
data: finalData,
|
16105
16266
|
loading: false
|
16106
16267
|
}));
|
@@ -16130,7 +16291,7 @@ function useFormData (_ref) {
|
|
16130
16291
|
}
|
16131
16292
|
var updateHiddenRequiredDisabled = function updateHiddenRequiredDisabled(data, changedFields) {
|
16132
16293
|
if (!(selectedItems !== null && selectedItems !== void 0 && selectedItems.length)) return;
|
16133
|
-
var wholeData = Object.assign(_objectSpread$
|
16294
|
+
var wholeData = Object.assign(_objectSpread$V({}, state.data), _objectSpread$V({}, changedFields !== null && changedFields !== void 0 ? changedFields : data));
|
16134
16295
|
var newState = getHiddenRequredDisabled(wholeData, selectedItems);
|
16135
16296
|
if (JSON.stringify(newState) !== JSON.stringify(hiddenRequiredDisabled)) {
|
16136
16297
|
setHiddenRequiredDisabled(newState);
|
@@ -16143,14 +16304,14 @@ function useFormData (_ref) {
|
|
16143
16304
|
}
|
16144
16305
|
};
|
16145
16306
|
var onInputChanged = function onInputChanged(id, value, d) {
|
16146
|
-
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$
|
16307
|
+
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$V({}, state.data), state.form.getFieldsValue(), mergeCustomizer);
|
16147
16308
|
if (id) {
|
16148
16309
|
setFieldInObject(id, data, value);
|
16149
|
-
var newFieldErrors = _objectSpread$
|
16310
|
+
var newFieldErrors = _objectSpread$V({}, fieldErrors);
|
16150
16311
|
delete newFieldErrors[id.toString()];
|
16151
16312
|
setFieldErrors(newFieldErrors);
|
16152
16313
|
}
|
16153
|
-
setState(_objectSpread$
|
16314
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16154
16315
|
data: data
|
16155
16316
|
}));
|
16156
16317
|
return data;
|
@@ -16182,12 +16343,12 @@ function useFormData (_ref) {
|
|
16182
16343
|
var _value$value;
|
16183
16344
|
if (((_value$value = value === null || value === void 0 ? void 0 : value.value) !== null && _value$value !== void 0 ? _value$value : value) === val) {
|
16184
16345
|
if (configuration.itemSelectorReset) {
|
16185
|
-
setState(_objectSpread$
|
16346
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16186
16347
|
data: _defineProperty({}, name, val)
|
16187
16348
|
}));
|
16188
16349
|
} else {
|
16189
|
-
setState(_objectSpread$
|
16190
|
-
data: _objectSpread$
|
16350
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16351
|
+
data: _objectSpread$V(_objectSpread$V({}, state.data), {}, _defineProperty({}, name, val))
|
16191
16352
|
}));
|
16192
16353
|
}
|
16193
16354
|
setSelectedItemsIndex(idx);
|
@@ -16198,12 +16359,12 @@ function useFormData (_ref) {
|
|
16198
16359
|
var val = _ref6.value;
|
16199
16360
|
if (value === val) {
|
16200
16361
|
if (configuration.itemSelectorReset) {
|
16201
|
-
setState(_objectSpread$
|
16362
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16202
16363
|
data: _defineProperty({}, name, val)
|
16203
16364
|
}));
|
16204
16365
|
} else {
|
16205
|
-
setState(_objectSpread$
|
16206
|
-
data: _objectSpread$
|
16366
|
+
setState(_objectSpread$V(_objectSpread$V({}, state), {}, {
|
16367
|
+
data: _objectSpread$V(_objectSpread$V({}, state.data), {}, _defineProperty({}, name, val))
|
16207
16368
|
}));
|
16208
16369
|
}
|
16209
16370
|
setSelectedItemsIndex(idx);
|
@@ -16481,7 +16642,7 @@ function useFormData (_ref) {
|
|
16481
16642
|
for (var i = 0; i < configuration.tools.length; i++) {
|
16482
16643
|
var _tool$defaultOpen;
|
16483
16644
|
var tool = configuration.tools[i];
|
16484
|
-
tools.push(_objectSpread$
|
16645
|
+
tools.push(_objectSpread$V(_objectSpread$V({}, tool), {}, {
|
16485
16646
|
parameters: {
|
16486
16647
|
data: state.data
|
16487
16648
|
},
|
@@ -16583,7 +16744,7 @@ function useFormData (_ref) {
|
|
16583
16744
|
})) return;
|
16584
16745
|
setRemovedMedias([].concat(_toConsumableArray(removedMedias), [media]));
|
16585
16746
|
};
|
16586
|
-
return _objectSpread$
|
16747
|
+
return _objectSpread$V(_objectSpread$V({}, state), {}, {
|
16587
16748
|
getIsHidden: getIsHidden,
|
16588
16749
|
setUsedPreset: setUsedPreset,
|
16589
16750
|
configuration: configuration,
|
@@ -16700,8 +16861,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
16700
16861
|
};
|
16701
16862
|
|
16702
16863
|
var _excluded$3 = ["key", "name"];
|
16703
|
-
function ownKeys$
|
16704
|
-
function _objectSpread$
|
16864
|
+
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; }
|
16865
|
+
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; }
|
16705
16866
|
var FormList$2 = function FormList(_ref) {
|
16706
16867
|
var _item$initialValue;
|
16707
16868
|
var value = _ref.value,
|
@@ -16754,7 +16915,7 @@ var FormList$2 = function FormList(_ref) {
|
|
16754
16915
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
16755
16916
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
16756
16917
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
16757
|
-
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$
|
16918
|
+
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$U(_objectSpread$U({}, restField), {}, {
|
16758
16919
|
id: n.join(),
|
16759
16920
|
key: n.join(),
|
16760
16921
|
name: n,
|
@@ -16766,7 +16927,7 @@ var FormList$2 = function FormList(_ref) {
|
|
16766
16927
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
16767
16928
|
help: state.fieldErrors[n.toString()],
|
16768
16929
|
hidden: hidden
|
16769
|
-
}), getElement(_objectSpread$
|
16930
|
+
}), getElement(_objectSpread$U(_objectSpread$U({}, i), {}, {
|
16770
16931
|
name: n
|
16771
16932
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
16772
16933
|
})
|
@@ -16931,8 +17092,8 @@ var Result = function Result(_ref) {
|
|
16931
17092
|
|
16932
17093
|
var success = "success-tRJ7j";
|
16933
17094
|
var error = "error-MtAFB";
|
16934
|
-
var css_248z$
|
16935
|
-
styleInject(css_248z$
|
17095
|
+
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";
|
17096
|
+
styleInject(css_248z$w);
|
16936
17097
|
|
16937
17098
|
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";
|
16938
17099
|
|
@@ -16996,11 +17157,11 @@ var CustomButton$1 = observer(CustomButton);
|
|
16996
17157
|
|
16997
17158
|
var wrapper$7 = "wrapper-GVe2h";
|
16998
17159
|
var buttonGroup = "button-group-GYt-T";
|
16999
|
-
var css_248z$
|
17000
|
-
styleInject(css_248z$
|
17160
|
+
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";
|
17161
|
+
styleInject(css_248z$v);
|
17001
17162
|
|
17002
|
-
function ownKeys$
|
17003
|
-
function _objectSpread$
|
17163
|
+
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; }
|
17164
|
+
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; }
|
17004
17165
|
var SubTitle = function SubTitle(_ref) {
|
17005
17166
|
var _item$orientation, _item$buttonIds;
|
17006
17167
|
var item = _ref.item,
|
@@ -17009,7 +17170,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
17009
17170
|
t = _useTranslation.t;
|
17010
17171
|
return /*#__PURE__*/jsx(Divider, {
|
17011
17172
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
17012
|
-
style: _objectSpread$
|
17173
|
+
style: _objectSpread$T({}, item.style),
|
17013
17174
|
children: /*#__PURE__*/jsxs("div", {
|
17014
17175
|
className: wrapper$7,
|
17015
17176
|
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) {
|
@@ -17273,12 +17434,12 @@ function parseReturnData(options, selectMapping) {
|
|
17273
17434
|
}
|
17274
17435
|
|
17275
17436
|
var wrapper$6 = "wrapper-4xyke";
|
17276
|
-
var css_248z$
|
17277
|
-
styleInject(css_248z$
|
17437
|
+
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";
|
17438
|
+
styleInject(css_248z$u);
|
17278
17439
|
|
17279
17440
|
var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
17280
|
-
function ownKeys$
|
17281
|
-
function _objectSpread$
|
17441
|
+
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; }
|
17442
|
+
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; }
|
17282
17443
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
17283
17444
|
var apiInterface = _ref.apiInterface,
|
17284
17445
|
selectMapping = _ref.selectMapping,
|
@@ -17305,7 +17466,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
17305
17466
|
return /*#__PURE__*/jsxs("div", {
|
17306
17467
|
ref: ref,
|
17307
17468
|
className: classnames(title ? wrapper$6 : undefined),
|
17308
|
-
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$
|
17469
|
+
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
|
17309
17470
|
showSearch: search,
|
17310
17471
|
loading: state.loading,
|
17311
17472
|
options: state.options,
|
@@ -17922,8 +18083,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
17922
18083
|
}]);
|
17923
18084
|
}(_default$d);
|
17924
18085
|
|
17925
|
-
function ownKeys$
|
17926
|
-
function _objectSpread$
|
18086
|
+
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; }
|
18087
|
+
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; }
|
17927
18088
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
17928
18089
|
function useSelectClientRelationCatalog (_ref) {
|
17929
18090
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
@@ -18092,7 +18253,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
18092
18253
|
case 22:
|
18093
18254
|
supplierData = _context2.sent;
|
18094
18255
|
case 23:
|
18095
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
18256
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$R(_objectSpread$R({}, _selectedSupplier), {}, {
|
18096
18257
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
18097
18258
|
}), supplierData);
|
18098
18259
|
if (catalogId && catalogList.find(function (c) {
|
@@ -18158,8 +18319,8 @@ var customSelect = "custom-select-ESUJX";
|
|
18158
18319
|
var customSelectOption = "custom-select-option-dUA7N";
|
18159
18320
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
18160
18321
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
18161
|
-
var css_248z$
|
18162
|
-
styleInject(css_248z$
|
18322
|
+
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";
|
18323
|
+
styleInject(css_248z$t);
|
18163
18324
|
|
18164
18325
|
var Selector = function Selector(_ref) {
|
18165
18326
|
var items = _ref.items,
|
@@ -18313,8 +18474,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
18313
18474
|
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; } } }; }
|
18314
18475
|
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; } }
|
18315
18476
|
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; }
|
18316
|
-
function ownKeys$
|
18317
|
-
function _objectSpread$
|
18477
|
+
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; }
|
18478
|
+
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; }
|
18318
18479
|
function useSelectData (_ref) {
|
18319
18480
|
var data = _ref.data,
|
18320
18481
|
onChange = _ref.onChange,
|
@@ -18497,7 +18658,7 @@ function useSelectData (_ref) {
|
|
18497
18658
|
setFetching(true);
|
18498
18659
|
serverSideParams = {
|
18499
18660
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.searchField.reduce(function (filter, field) {
|
18500
|
-
return _objectSpread$
|
18661
|
+
return _objectSpread$Q(_objectSpread$Q({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
18501
18662
|
}, {}) : {
|
18502
18663
|
_id: [value, 'contains']
|
18503
18664
|
},
|
@@ -18703,8 +18864,8 @@ function useSelectData (_ref) {
|
|
18703
18864
|
};
|
18704
18865
|
}
|
18705
18866
|
|
18706
|
-
var css_248z$
|
18707
|
-
styleInject(css_248z$
|
18867
|
+
var css_248z$s = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
18868
|
+
styleInject(css_248z$s);
|
18708
18869
|
|
18709
18870
|
var SelectWrapper = function SelectWrapper(_ref) {
|
18710
18871
|
var onChange = _ref.onChange,
|
@@ -18786,11 +18947,11 @@ var Select = observer(SelectWrapper);
|
|
18786
18947
|
var wrapper$5 = "wrapper-WStAk";
|
18787
18948
|
var headerWrapper = "header-wrapper-gWQuH";
|
18788
18949
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
18789
|
-
var css_248z$
|
18790
|
-
styleInject(css_248z$
|
18950
|
+
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";
|
18951
|
+
styleInject(css_248z$r);
|
18791
18952
|
|
18792
|
-
function ownKeys$
|
18793
|
-
function _objectSpread$
|
18953
|
+
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; }
|
18954
|
+
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; }
|
18794
18955
|
var LOG$9 = getLogger('Backoffice', 'Translation Form');
|
18795
18956
|
function useTranslationHook (item, state) {
|
18796
18957
|
var root = useStore();
|
@@ -18923,7 +19084,7 @@ function useTranslationHook (item, state) {
|
|
18923
19084
|
case 0:
|
18924
19085
|
_context2.next = 2;
|
18925
19086
|
return apiHandler.create({
|
18926
|
-
locales: _objectSpread$
|
19087
|
+
locales: _objectSpread$P({
|
18927
19088
|
de: {},
|
18928
19089
|
it: {},
|
18929
19090
|
fr: {},
|
@@ -18972,8 +19133,8 @@ function useTranslationHook (item, state) {
|
|
18972
19133
|
};
|
18973
19134
|
}
|
18974
19135
|
|
18975
|
-
function ownKeys$
|
18976
|
-
function _objectSpread$
|
19136
|
+
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; }
|
19137
|
+
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; }
|
18977
19138
|
var Translation = function Translation(_ref) {
|
18978
19139
|
var item = _ref.item,
|
18979
19140
|
state = _ref.state,
|
@@ -19023,7 +19184,7 @@ var Translation = function Translation(_ref) {
|
|
19023
19184
|
var hidden = state.getIsHidden(i, data);
|
19024
19185
|
var newAbsoluteName = absoluteName !== '' ? [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n)) : n;
|
19025
19186
|
return /*#__PURE__*/jsx(React.Fragment, {
|
19026
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
19187
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$O(_objectSpread$O({}, i), {}, {
|
19027
19188
|
name: n
|
19028
19189
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang) : /*#__PURE__*/jsx(Form$1.Item, {
|
19029
19190
|
id: idx.toString(),
|
@@ -19036,7 +19197,7 @@ var Translation = function Translation(_ref) {
|
|
19036
19197
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
19037
19198
|
help: state.fieldErrors[n.toString()],
|
19038
19199
|
hidden: hidden,
|
19039
|
-
children: getElement(_objectSpread$
|
19200
|
+
children: getElement(_objectSpread$O(_objectSpread$O({}, i), {}, {
|
19040
19201
|
name: n
|
19041
19202
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
19042
19203
|
})
|
@@ -19371,8 +19532,8 @@ var Text$1 = observer(Text);
|
|
19371
19532
|
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; } } }; }
|
19372
19533
|
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; } }
|
19373
19534
|
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; }
|
19374
|
-
function ownKeys$
|
19375
|
-
function _objectSpread$
|
19535
|
+
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; }
|
19536
|
+
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; }
|
19376
19537
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName) {
|
19377
19538
|
var _isReadonly, _state$hiddenRequired;
|
19378
19539
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
@@ -19407,7 +19568,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19407
19568
|
}
|
19408
19569
|
});
|
19409
19570
|
case 'selectSimple':
|
19410
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
19571
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$N(_objectSpread$N({}, item), {}, {
|
19411
19572
|
disabled: disabled,
|
19412
19573
|
onChange: function onChange(value) {
|
19413
19574
|
_onChange(absoluteName, value);
|
@@ -19611,7 +19772,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19611
19772
|
value: item.value,
|
19612
19773
|
options: item.options.map(function (o) {
|
19613
19774
|
var _o$disabled;
|
19614
|
-
return _objectSpread$
|
19775
|
+
return _objectSpread$N(_objectSpread$N({}, o), {}, {
|
19615
19776
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
|
19616
19777
|
});
|
19617
19778
|
}),
|
@@ -19632,7 +19793,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19632
19793
|
},
|
19633
19794
|
icon: item.icon,
|
19634
19795
|
callback: function callback(data) {
|
19635
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
19796
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$N(_objectSpread$N({}, state.data), data));
|
19636
19797
|
}
|
19637
19798
|
});
|
19638
19799
|
case 'media':
|
@@ -19653,7 +19814,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19653
19814
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
19654
19815
|
var _useTranslation = useTranslation(),
|
19655
19816
|
t = _useTranslation.t;
|
19656
|
-
return /*#__PURE__*/jsx(Input, _objectSpread$
|
19817
|
+
return /*#__PURE__*/jsx(Input, _objectSpread$N(_objectSpread$N({}, props), {}, {
|
19657
19818
|
ref: ref,
|
19658
19819
|
disabled: true,
|
19659
19820
|
value: t(props.translationPrefix + '.' + props.value)
|
@@ -19672,8 +19833,8 @@ function isReadonly(item, data) {
|
|
19672
19833
|
return false;
|
19673
19834
|
}
|
19674
19835
|
|
19675
|
-
function ownKeys$
|
19676
|
-
function _objectSpread$
|
19836
|
+
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; }
|
19837
|
+
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; }
|
19677
19838
|
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; } } }; }
|
19678
19839
|
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; } }
|
19679
19840
|
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; }
|
@@ -19723,13 +19884,13 @@ var Presets = function Presets(_ref) {
|
|
19723
19884
|
} finally {
|
19724
19885
|
_iterator.f();
|
19725
19886
|
}
|
19726
|
-
var data = _objectSpread$
|
19887
|
+
var data = _objectSpread$M(_objectSpread$M({}, form.getFieldsValue(names)), {}, {
|
19727
19888
|
newPresetName: newPresetName
|
19728
19889
|
});
|
19729
19890
|
data.dpi = parseInt(data.dpi);
|
19730
19891
|
data.organization = root.getGlobalValue('organizationId');
|
19731
19892
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
19732
|
-
var dt = _objectSpread$
|
19893
|
+
var dt = _objectSpread$M(_objectSpread$M({}, form.getFieldsValue(names)), {}, {
|
19733
19894
|
name: newPresetName
|
19734
19895
|
});
|
19735
19896
|
setPresets({
|
@@ -20071,8 +20232,8 @@ function getLabel(item, t) {
|
|
20071
20232
|
}
|
20072
20233
|
var Form = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
20073
20234
|
|
20074
|
-
function ownKeys$
|
20075
|
-
function _objectSpread$
|
20235
|
+
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; }
|
20236
|
+
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; }
|
20076
20237
|
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; } } }; }
|
20077
20238
|
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; } }
|
20078
20239
|
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; }
|
@@ -20274,7 +20435,7 @@ function useRoleSelectorData (_ref) {
|
|
20274
20435
|
roles.forEach(function (r) {
|
20275
20436
|
//check if after the changes the role is selected
|
20276
20437
|
if (value.includes(r._id)) {
|
20277
|
-
var newValue = _objectSpread$
|
20438
|
+
var newValue = _objectSpread$L(_objectSpread$L({}, r), {}, {
|
20278
20439
|
selected: true
|
20279
20440
|
});
|
20280
20441
|
//add it to the new list as selected role
|
@@ -20310,7 +20471,7 @@ function useRoleSelectorData (_ref) {
|
|
20310
20471
|
}
|
20311
20472
|
}
|
20312
20473
|
} else {
|
20313
|
-
var _newValue = _objectSpread$
|
20474
|
+
var _newValue = _objectSpread$L(_objectSpread$L({}, r), {}, {
|
20314
20475
|
selected: false
|
20315
20476
|
});
|
20316
20477
|
//add it to the new list as unselected role
|
@@ -20514,7 +20675,7 @@ function _updateRoles() {
|
|
20514
20675
|
userRole = userRoles.find(function (r) {
|
20515
20676
|
return r._id == role._id;
|
20516
20677
|
});
|
20517
|
-
newRole = _objectSpread$
|
20678
|
+
newRole = _objectSpread$L({}, role);
|
20518
20679
|
if (userRole) {
|
20519
20680
|
newRole.selected = true;
|
20520
20681
|
newRole.inherited = userRole.inherited;
|
@@ -20734,7 +20895,7 @@ function _fetchOptions() {
|
|
20734
20895
|
case 4:
|
20735
20896
|
result = _context11.sent;
|
20736
20897
|
options = result.data.map(function (d) {
|
20737
|
-
return _objectSpread$
|
20898
|
+
return _objectSpread$L(_objectSpread$L({}, d), {}, {
|
20738
20899
|
label: d.displayName,
|
20739
20900
|
value: d._id,
|
20740
20901
|
isLeaf: !d.hasChildren
|
@@ -20833,11 +20994,11 @@ var skeleton = "skeleton--xCI0";
|
|
20833
20994
|
var filterField = "filterField-1kU1O";
|
20834
20995
|
var parentScroll = "parent-scroll-GmaL9";
|
20835
20996
|
var parent = "parent-NZJ3S";
|
20836
|
-
var css_248z$
|
20837
|
-
styleInject(css_248z$
|
20997
|
+
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";
|
20998
|
+
styleInject(css_248z$q);
|
20838
20999
|
|
20839
|
-
function ownKeys$
|
20840
|
-
function _objectSpread$
|
21000
|
+
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; }
|
21001
|
+
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; }
|
20841
21002
|
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; } } }; }
|
20842
21003
|
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; } }
|
20843
21004
|
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; }
|
@@ -20897,8 +21058,8 @@ function _generateCSV() {
|
|
20897
21058
|
break;
|
20898
21059
|
}
|
20899
21060
|
_context2.next = 21;
|
20900
|
-
return generateCSV(_objectSpread$
|
20901
|
-
mappingData: _objectSpread$
|
21061
|
+
return generateCSV(_objectSpread$K(_objectSpread$K({}, exportParams.children), {}, {
|
21062
|
+
mappingData: _objectSpread$K(_objectSpread$K({}, parent), {}, {
|
20902
21063
|
parentId: exportParams.mappingData._id
|
20903
21064
|
})
|
20904
21065
|
}), csvData);
|
@@ -21006,8 +21167,8 @@ function _downloadFile() {
|
|
21006
21167
|
return _downloadFile.apply(this, arguments);
|
21007
21168
|
}
|
21008
21169
|
|
21009
|
-
function ownKeys$
|
21010
|
-
function _objectSpread$
|
21170
|
+
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; }
|
21171
|
+
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; }
|
21011
21172
|
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; } } }; }
|
21012
21173
|
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; } }
|
21013
21174
|
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; }
|
@@ -21426,7 +21587,7 @@ function useRelationSelectorData (_ref) {
|
|
21426
21587
|
var activeItem = _step.value;
|
21427
21588
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
21428
21589
|
addedObjects.push(addedData);
|
21429
|
-
getSplittedItems(_objectSpread$
|
21590
|
+
getSplittedItems(_objectSpread$J(_objectSpread$J({}, activeItem), {}, {
|
21430
21591
|
userId: data === null || data === void 0 ? void 0 : data._id
|
21431
21592
|
}));
|
21432
21593
|
ret = true;
|
@@ -21631,8 +21792,8 @@ function useRelationSelectorData (_ref) {
|
|
21631
21792
|
};
|
21632
21793
|
}
|
21633
21794
|
|
21634
|
-
function ownKeys$
|
21635
|
-
function _objectSpread$
|
21795
|
+
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; }
|
21796
|
+
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; }
|
21636
21797
|
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; } } }; }
|
21637
21798
|
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; } }
|
21638
21799
|
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; }
|
@@ -21765,7 +21926,7 @@ function ActionButton (_ref) {
|
|
21765
21926
|
_iterator2.f();
|
21766
21927
|
}
|
21767
21928
|
_context.next = 19;
|
21768
|
-
return apiInterface.update(_objectSpread$
|
21929
|
+
return apiInterface.update(_objectSpread$I(_objectSpread$I({}, data), {}, {
|
21769
21930
|
state: toSwitch
|
21770
21931
|
}), data);
|
21771
21932
|
case 19:
|
@@ -21922,14 +22083,14 @@ function _simpleChangeValue() {
|
|
21922
22083
|
break;
|
21923
22084
|
}
|
21924
22085
|
for (i = 0; i < action.newValues.length; i++) {
|
21925
|
-
fieldsToUpdate = _objectSpread$
|
22086
|
+
fieldsToUpdate = _objectSpread$I(_objectSpread$I({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
21926
22087
|
}
|
21927
22088
|
if (!apiInterface.canUpdate) {
|
21928
22089
|
_context2.next = 9;
|
21929
22090
|
break;
|
21930
22091
|
}
|
21931
22092
|
_context2.next = 7;
|
21932
|
-
return apiInterface.update(_objectSpread$
|
22093
|
+
return apiInterface.update(_objectSpread$I({}, fieldsToUpdate), data);
|
21933
22094
|
case 7:
|
21934
22095
|
response = _context2.sent;
|
21935
22096
|
return _context2.abrupt("return", response);
|
@@ -21944,7 +22105,7 @@ function _simpleChangeValue() {
|
|
21944
22105
|
return _simpleChangeValue.apply(this, arguments);
|
21945
22106
|
}
|
21946
22107
|
function A(props) {
|
21947
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
22108
|
+
return /*#__PURE__*/jsx("a", _objectSpread$I({}, props));
|
21948
22109
|
}
|
21949
22110
|
|
21950
22111
|
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; } } }; }
|
@@ -22079,11 +22240,11 @@ var newscroller = "newscroller-INKeD";
|
|
22079
22240
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
22080
22241
|
var itemTitle = "item-title--BTvC";
|
22081
22242
|
var itemDesc = "item-desc-DBiiF";
|
22082
|
-
var css_248z$
|
22083
|
-
styleInject(css_248z$
|
22243
|
+
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";
|
22244
|
+
styleInject(css_248z$p);
|
22084
22245
|
|
22085
|
-
function ownKeys$
|
22086
|
-
function _objectSpread$
|
22246
|
+
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; }
|
22247
|
+
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; }
|
22087
22248
|
var DropDown = function DropDown(_ref) {
|
22088
22249
|
var _curItem$data$length;
|
22089
22250
|
var split = _ref.split,
|
@@ -22115,7 +22276,7 @@ var DropDown = function DropDown(_ref) {
|
|
22115
22276
|
});
|
22116
22277
|
return /*#__PURE__*/jsx(Collapse, {
|
22117
22278
|
onChange: function onChange() {
|
22118
|
-
return getSplittedItems(_objectSpread$
|
22279
|
+
return getSplittedItems(_objectSpread$H(_objectSpread$H({}, item.item), {}, {
|
22119
22280
|
parentId: item.parentId
|
22120
22281
|
}), 0);
|
22121
22282
|
},
|
@@ -22373,8 +22534,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
22373
22534
|
};
|
22374
22535
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
22375
22536
|
|
22376
|
-
function ownKeys$
|
22377
|
-
function _objectSpread$
|
22537
|
+
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; }
|
22538
|
+
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; }
|
22378
22539
|
function useFormListData (_ref) {
|
22379
22540
|
var _configuration$defaul;
|
22380
22541
|
var id = _ref.id,
|
@@ -22454,7 +22615,7 @@ function useFormListData (_ref) {
|
|
22454
22615
|
if (updated.length == state.length) {
|
22455
22616
|
newState = state.map(function (s, i) {
|
22456
22617
|
var _updated$find;
|
22457
|
-
return _objectSpread$
|
22618
|
+
return _objectSpread$G(_objectSpread$G({}, s), {}, {
|
22458
22619
|
data: (_updated$find = updated.find(function (u) {
|
22459
22620
|
return u.index == i;
|
22460
22621
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
@@ -22591,8 +22752,8 @@ var FormList = function FormList(_ref, ref) {
|
|
22591
22752
|
};
|
22592
22753
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
22593
22754
|
|
22594
|
-
function ownKeys$
|
22595
|
-
function _objectSpread$
|
22755
|
+
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; }
|
22756
|
+
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; }
|
22596
22757
|
var LOG$6 = getLogger('Backoffice', 'SelectOrCreate');
|
22597
22758
|
function useSelectOrCreateData (_ref) {
|
22598
22759
|
var id = _ref.id,
|
@@ -22689,7 +22850,7 @@ function useSelectOrCreateData (_ref) {
|
|
22689
22850
|
_context.next = 7;
|
22690
22851
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
22691
22852
|
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) {
|
22692
|
-
return _objectSpread$
|
22853
|
+
return _objectSpread$F(_objectSpread$F({}, filter), {}, _defineProperty({}, field.field, [value, field.filter, true]));
|
22693
22854
|
}, {}) : {
|
22694
22855
|
_id: [value, 'contains']
|
22695
22856
|
},
|
@@ -23000,8 +23161,8 @@ var Multiple = function Multiple(_ref3) {
|
|
23000
23161
|
});
|
23001
23162
|
};
|
23002
23163
|
|
23003
|
-
function ownKeys$
|
23004
|
-
function _objectSpread$
|
23164
|
+
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; }
|
23165
|
+
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; }
|
23005
23166
|
function useListData (_ref) {
|
23006
23167
|
var id = _ref.id,
|
23007
23168
|
data = _ref.data;
|
@@ -23044,7 +23205,7 @@ function useListData (_ref) {
|
|
23044
23205
|
case 3:
|
23045
23206
|
result = _context.sent;
|
23046
23207
|
setListData(result.data.map(parseField));
|
23047
|
-
initData = _objectSpread$
|
23208
|
+
initData = _objectSpread$E({}, data);
|
23048
23209
|
setUpdatedObject(initData);
|
23049
23210
|
setLoading(false);
|
23050
23211
|
case 8:
|
@@ -23085,7 +23246,7 @@ function useListData (_ref) {
|
|
23085
23246
|
});
|
23086
23247
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
23087
23248
|
var parsedField = field.field.split('.');
|
23088
|
-
item.itemUpdate = _objectSpread$
|
23249
|
+
item.itemUpdate = _objectSpread$E(_objectSpread$E({}, field), {}, {
|
23089
23250
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
23090
23251
|
});
|
23091
23252
|
});
|
@@ -23116,16 +23277,16 @@ function useListData (_ref) {
|
|
23116
23277
|
console.error('field with more than 2 parts not allowed');
|
23117
23278
|
return;
|
23118
23279
|
}
|
23119
|
-
var updObj = _objectSpread$
|
23280
|
+
var updObj = _objectSpread$E({}, updatedObject);
|
23120
23281
|
if (fields.length === 1) {
|
23121
|
-
updObj = _objectSpread$
|
23282
|
+
updObj = _objectSpread$E(_objectSpread$E({}, updObj), {}, _defineProperty({}, fields[0], value));
|
23122
23283
|
} else if (fields.length === 2) {
|
23123
23284
|
var updatedField = updObj[fields[0]].find(function (v) {
|
23124
23285
|
return v.id === item.id.trim();
|
23125
23286
|
});
|
23126
23287
|
if (updatedField) {
|
23127
|
-
var updatedFieldCopy = _objectSpread$
|
23128
|
-
updObj = _objectSpread$
|
23288
|
+
var updatedFieldCopy = _objectSpread$E(_objectSpread$E({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
23289
|
+
updObj = _objectSpread$E(_objectSpread$E({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
23129
23290
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
23130
23291
|
})));
|
23131
23292
|
}
|
@@ -23134,11 +23295,11 @@ function useListData (_ref) {
|
|
23134
23295
|
var acItems = listData;
|
23135
23296
|
for (var i = 0; i < acItems.length; i++) {
|
23136
23297
|
if (i == index) {
|
23137
|
-
acItems[i].itemUpdate = _objectSpread$
|
23298
|
+
acItems[i].itemUpdate = _objectSpread$E(_objectSpread$E({}, acItems[i].itemUpdate), {}, {
|
23138
23299
|
value: value
|
23139
23300
|
});
|
23140
23301
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
23141
|
-
acItems[i].itemUpdate = _objectSpread$
|
23302
|
+
acItems[i].itemUpdate = _objectSpread$E(_objectSpread$E({}, acItems[i].itemUpdate), {}, {
|
23142
23303
|
value: !value
|
23143
23304
|
});
|
23144
23305
|
}
|
@@ -23492,8 +23653,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
23492
23653
|
var preview = "preview-9wK81";
|
23493
23654
|
var previewButton = "preview-button-vupuG";
|
23494
23655
|
var editButton = "edit-button-m6r3M";
|
23495
|
-
var css_248z$
|
23496
|
-
styleInject(css_248z$
|
23656
|
+
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";
|
23657
|
+
styleInject(css_248z$o);
|
23497
23658
|
|
23498
23659
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
23499
23660
|
var id = _ref.id,
|
@@ -23652,8 +23813,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
23652
23813
|
};
|
23653
23814
|
}
|
23654
23815
|
|
23655
|
-
function ownKeys$
|
23656
|
-
function _objectSpread$
|
23816
|
+
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; }
|
23817
|
+
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; }
|
23657
23818
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
23658
23819
|
var id = _ref.id,
|
23659
23820
|
data = _ref.data,
|
@@ -23761,12 +23922,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
23761
23922
|
}
|
23762
23923
|
function onEnter(e) {
|
23763
23924
|
if (e.key != 'Enter') return;
|
23764
|
-
setCrop(_objectSpread$
|
23925
|
+
setCrop(_objectSpread$D(_objectSpread$D({}, crop), {}, {
|
23765
23926
|
unit: 'px',
|
23766
23927
|
width: Number(widthInputElement.current.value),
|
23767
23928
|
height: Number(heightInputElement.current.value)
|
23768
23929
|
}));
|
23769
|
-
setCompletedCrop(_objectSpread$
|
23930
|
+
setCompletedCrop(_objectSpread$D(_objectSpread$D({}, crop), {}, {
|
23770
23931
|
unit: 'px',
|
23771
23932
|
width: Number(widthInputElement.current.value),
|
23772
23933
|
height: Number(heightInputElement.current.value)
|
@@ -23844,8 +24005,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
23844
24005
|
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; } } }; }
|
23845
24006
|
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; } }
|
23846
24007
|
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; }
|
23847
|
-
function ownKeys$
|
23848
|
-
function _objectSpread$
|
24008
|
+
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; }
|
24009
|
+
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; }
|
23849
24010
|
function useDescriptions (_ref) {
|
23850
24011
|
var id = _ref.id;
|
23851
24012
|
var root = useStore();
|
@@ -23938,7 +24099,7 @@ function _getDisplayData() {
|
|
23938
24099
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
23939
24100
|
while (1) switch (_context4.prev = _context4.next) {
|
23940
24101
|
case 0:
|
23941
|
-
displayData = _objectSpread$
|
24102
|
+
displayData = _objectSpread$C({}, data);
|
23942
24103
|
_iterator = _createForOfIteratorHelper$9(items);
|
23943
24104
|
_context4.prev = 2;
|
23944
24105
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
@@ -24214,8 +24375,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
24214
24375
|
};
|
24215
24376
|
var FileUploadBeta = observer(FileUploadWrapper$1);
|
24216
24377
|
|
24217
|
-
function ownKeys$
|
24218
|
-
function _objectSpread$
|
24378
|
+
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; }
|
24379
|
+
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; }
|
24219
24380
|
function useGridData (_ref) {
|
24220
24381
|
var id = _ref.id,
|
24221
24382
|
data = _ref.data;
|
@@ -24258,11 +24419,11 @@ function useGridData (_ref) {
|
|
24258
24419
|
function reducer(state, action) {
|
24259
24420
|
switch (action.type) {
|
24260
24421
|
case 'update':
|
24261
|
-
return _objectSpread$
|
24422
|
+
return _objectSpread$B(_objectSpread$B({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$B(_objectSpread$B({}, action.data), {}, {
|
24262
24423
|
buffer: Buffer.from(action.data.buffer)
|
24263
24424
|
})));
|
24264
24425
|
case 'delete':
|
24265
|
-
var newState = _objectSpread$
|
24426
|
+
var newState = _objectSpread$B({}, state);
|
24266
24427
|
delete newState[action.data.divaNr];
|
24267
24428
|
return newState;
|
24268
24429
|
default:
|
@@ -24272,13 +24433,13 @@ function reducer(state, action) {
|
|
24272
24433
|
|
24273
24434
|
var grid = "grid-sGemi";
|
24274
24435
|
var textWrapper = "text-wrapper-xsPXE";
|
24275
|
-
var css_248z$
|
24276
|
-
styleInject(css_248z$
|
24436
|
+
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";
|
24437
|
+
styleInject(css_248z$n);
|
24277
24438
|
|
24278
24439
|
var wrapper$4 = "wrapper-p-gR3";
|
24279
|
-
var container$
|
24280
|
-
var css_248z$
|
24281
|
-
styleInject(css_248z$
|
24440
|
+
var container$6 = "container-DoZqe";
|
24441
|
+
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";
|
24442
|
+
styleInject(css_248z$m);
|
24282
24443
|
|
24283
24444
|
var ToolTipInfo = function ToolTipInfo(props) {
|
24284
24445
|
var _useTranslation = useTranslation(),
|
@@ -24297,7 +24458,7 @@ var ToolTipInfo = function ToolTipInfo(props) {
|
|
24297
24458
|
width: 230
|
24298
24459
|
},
|
24299
24460
|
children: /*#__PURE__*/jsx("div", {
|
24300
|
-
className: container$
|
24461
|
+
className: container$6
|
24301
24462
|
})
|
24302
24463
|
})
|
24303
24464
|
});
|
@@ -24349,8 +24510,8 @@ var Grid = function Grid(_ref) {
|
|
24349
24510
|
});
|
24350
24511
|
};
|
24351
24512
|
|
24352
|
-
function ownKeys$
|
24353
|
-
function _objectSpread$
|
24513
|
+
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; }
|
24514
|
+
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; }
|
24354
24515
|
var useMediaUpload = function useMediaUpload(_ref) {
|
24355
24516
|
var id = _ref.id;
|
24356
24517
|
var root = useStore();
|
@@ -24469,7 +24630,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24469
24630
|
onRemove: onRemove,
|
24470
24631
|
customRequest: customRequest,
|
24471
24632
|
fileList: fileList.map(function (f) {
|
24472
|
-
return _objectSpread$
|
24633
|
+
return _objectSpread$A(_objectSpread$A({}, f), {}, {
|
24473
24634
|
url: f.url
|
24474
24635
|
});
|
24475
24636
|
}),
|
@@ -24481,8 +24642,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24481
24642
|
var small = "small-NY1-k";
|
24482
24643
|
var medium = "medium---QcO";
|
24483
24644
|
var big = "big--E39S";
|
24484
|
-
var css_248z$
|
24485
|
-
styleInject(css_248z$
|
24645
|
+
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";
|
24646
|
+
styleInject(css_248z$l);
|
24486
24647
|
|
24487
24648
|
var MediaUpload = observer(function (_ref) {
|
24488
24649
|
var id = _ref.id;
|
@@ -24557,8 +24718,8 @@ var TableSummary = function TableSummary(_ref) {
|
|
24557
24718
|
});
|
24558
24719
|
};
|
24559
24720
|
|
24560
|
-
function ownKeys$
|
24561
|
-
function _objectSpread$
|
24721
|
+
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; }
|
24722
|
+
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; }
|
24562
24723
|
function getExpandedRowRenderer (config, root) {
|
24563
24724
|
return function (record) {
|
24564
24725
|
var data = record;
|
@@ -24580,7 +24741,7 @@ function customSubTable(columns, datasource) {
|
|
24580
24741
|
// map custom columns to antd columns
|
24581
24742
|
var antcols = columns.map(function (col) {
|
24582
24743
|
var _col$width;
|
24583
|
-
return _objectSpread$
|
24744
|
+
return _objectSpread$z(_objectSpread$z({}, col), {}, {
|
24584
24745
|
title: col.title,
|
24585
24746
|
dataIndex: col.field,
|
24586
24747
|
key: col.field,
|
@@ -24608,8 +24769,8 @@ var editableRow = "editable-row-9BEHi";
|
|
24608
24769
|
var checkbox = "checkbox-H7R-w";
|
24609
24770
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
24610
24771
|
var contentWidth = "content-width-hGyVI";
|
24611
|
-
var css_248z$
|
24612
|
-
styleInject(css_248z$
|
24772
|
+
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";
|
24773
|
+
styleInject(css_248z$k);
|
24613
24774
|
|
24614
24775
|
function BooleanCell (_ref) {
|
24615
24776
|
var children = _ref.children,
|
@@ -25292,8 +25453,8 @@ function LinkCell (_ref) {
|
|
25292
25453
|
|
25293
25454
|
var _excluded$1 = ["index"],
|
25294
25455
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
25295
|
-
function ownKeys$
|
25296
|
-
function _objectSpread$
|
25456
|
+
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; }
|
25457
|
+
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; }
|
25297
25458
|
var LOG$4 = getLogger('Backoffice', 'CellRenderer');
|
25298
25459
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
25299
25460
|
var CustomRow = function CustomRow(_ref) {
|
@@ -25307,7 +25468,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
25307
25468
|
component: false,
|
25308
25469
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
25309
25470
|
value: form,
|
25310
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
25471
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$y({}, props))
|
25311
25472
|
})
|
25312
25473
|
});
|
25313
25474
|
};
|
@@ -25360,7 +25521,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
25360
25521
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
25361
25522
|
longDescriptionType = 'text';
|
25362
25523
|
}
|
25363
|
-
var modifiedColumn = _objectSpread$
|
25524
|
+
var modifiedColumn = _objectSpread$y(_objectSpread$y({}, column), {}, {
|
25364
25525
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
25365
25526
|
});
|
25366
25527
|
if (column) {
|
@@ -25373,40 +25534,40 @@ var CustomCell = function CustomCell(_ref2) {
|
|
25373
25534
|
};
|
25374
25535
|
switch (modifiedColumn.type) {
|
25375
25536
|
case 'boolean':
|
25376
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
25537
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$y({}, cellProps));
|
25377
25538
|
break;
|
25378
25539
|
case 'text':
|
25379
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
25540
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$y({}, cellProps));
|
25380
25541
|
break;
|
25381
25542
|
case 'select':
|
25382
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
25543
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$y({}, cellProps));
|
25383
25544
|
case 'media':
|
25384
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
25545
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$y({}, cellProps));
|
25385
25546
|
break;
|
25386
25547
|
case 'mediaItem':
|
25387
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
25548
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$y({}, cellProps));
|
25388
25549
|
break;
|
25389
25550
|
case 'unixTimeStamp':
|
25390
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
25551
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$y({}, cellProps));
|
25391
25552
|
break;
|
25392
25553
|
case 'unixTimeStampCheck':
|
25393
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
25554
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$y({}, cellProps));
|
25394
25555
|
break;
|
25395
25556
|
case 'icon':
|
25396
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
25557
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$y({}, cellProps));
|
25397
25558
|
break;
|
25398
25559
|
case 'progress':
|
25399
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
25560
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$y({}, cellProps));
|
25400
25561
|
break;
|
25401
25562
|
case 'link':
|
25402
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
25563
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$y({}, cellProps));
|
25403
25564
|
break;
|
25404
25565
|
default:
|
25405
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
25566
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$y({}, cellProps));
|
25406
25567
|
break;
|
25407
25568
|
}
|
25408
25569
|
}
|
25409
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
25570
|
+
return /*#__PURE__*/jsx("td", _objectSpread$y(_objectSpread$y({}, restProps), {}, {
|
25410
25571
|
children: childNode
|
25411
25572
|
}));
|
25412
25573
|
};
|
@@ -25595,11 +25756,11 @@ function useAGHistogram (_ref) {
|
|
25595
25756
|
};
|
25596
25757
|
}
|
25597
25758
|
|
25598
|
-
var container$
|
25759
|
+
var container$5 = "container-2r-OJ";
|
25599
25760
|
var column1 = "column1-9viTK";
|
25600
25761
|
var spinner = "spinner-00VcK";
|
25601
|
-
var css_248z$
|
25602
|
-
styleInject(css_248z$
|
25762
|
+
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";
|
25763
|
+
styleInject(css_248z$j);
|
25603
25764
|
|
25604
25765
|
var Panel = Collapse.Panel;
|
25605
25766
|
function AGHistogram (_ref) {
|
@@ -25712,7 +25873,7 @@ function AGHistogram (_ref) {
|
|
25712
25873
|
children: /*#__PURE__*/jsx(Panel, {
|
25713
25874
|
header: headerText,
|
25714
25875
|
children: /*#__PURE__*/jsxs("div", {
|
25715
|
-
className: container$
|
25876
|
+
className: container$5,
|
25716
25877
|
children: [!loadingHistogram && /*#__PURE__*/jsx("div", {
|
25717
25878
|
className: classnames(column1, 'ag-theme-alpine'),
|
25718
25879
|
style: {
|
@@ -25758,8 +25919,8 @@ var SMChart = function SMChart(props) {
|
|
25758
25919
|
}) : /*#__PURE__*/jsx(Fragment, {});
|
25759
25920
|
};
|
25760
25921
|
|
25761
|
-
function ownKeys$
|
25762
|
-
function _objectSpread$
|
25922
|
+
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; }
|
25923
|
+
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; }
|
25763
25924
|
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; } } }; }
|
25764
25925
|
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; } }
|
25765
25926
|
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; }
|
@@ -25954,7 +26115,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25954
26115
|
// Convert to Dayjs
|
25955
26116
|
(_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
|
25956
26117
|
]
|
25957
|
-
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
26118
|
+
}), ((_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), {}, {
|
25958
26119
|
style: {
|
25959
26120
|
minWidth: '200px'
|
25960
26121
|
},
|
@@ -26059,7 +26220,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
26059
26220
|
},
|
26060
26221
|
dataSource: data,
|
26061
26222
|
loading: state.loading,
|
26062
|
-
pagination: _objectSpread$
|
26223
|
+
pagination: _objectSpread$x(_objectSpread$x({}, state.pagination), {}, {
|
26063
26224
|
showTotal: function showTotal(total, range) {
|
26064
26225
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
26065
26226
|
},
|
@@ -26379,7 +26540,7 @@ function BulkAction(_ref6) {
|
|
26379
26540
|
}
|
26380
26541
|
_context4.t0 = data;
|
26381
26542
|
_context4.next = 11;
|
26382
|
-
return apiInterface.update(_objectSpread$
|
26543
|
+
return apiInterface.update(_objectSpread$x(_objectSpread$x({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
26383
26544
|
case 11:
|
26384
26545
|
_context4.t1 = _context4.sent;
|
26385
26546
|
_context4.t0.push.call(_context4.t0, _context4.t1);
|
@@ -26492,8 +26653,8 @@ function SelectionText(_ref8) {
|
|
26492
26653
|
});
|
26493
26654
|
}
|
26494
26655
|
|
26495
|
-
function ownKeys$
|
26496
|
-
function _objectSpread$
|
26656
|
+
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; }
|
26657
|
+
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; }
|
26497
26658
|
function getColumnFilterProps (_ref) {
|
26498
26659
|
var filter = _ref.filter,
|
26499
26660
|
title = _ref.title;
|
@@ -26856,7 +27017,7 @@ var selectProps = function selectProps(title, filter) {
|
|
26856
27017
|
});
|
26857
27018
|
},
|
26858
27019
|
options: filter.map(function (f) {
|
26859
|
-
return _objectSpread$
|
27020
|
+
return _objectSpread$w(_objectSpread$w({}, f), {}, {
|
26860
27021
|
label: t(f.label)
|
26861
27022
|
});
|
26862
27023
|
})
|
@@ -26905,7 +27066,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
26905
27066
|
setDisplaySelectedvalues = _useState4[1];
|
26906
27067
|
var options = [];
|
26907
27068
|
options = filter.map(function (f) {
|
26908
|
-
return _objectSpread$
|
27069
|
+
return _objectSpread$w(_objectSpread$w({}, f), {}, {
|
26909
27070
|
label: t(f.label)
|
26910
27071
|
});
|
26911
27072
|
});
|
@@ -26979,8 +27140,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
26979
27140
|
};
|
26980
27141
|
};
|
26981
27142
|
|
26982
|
-
function ownKeys$
|
26983
|
-
function _objectSpread$
|
27143
|
+
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; }
|
27144
|
+
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; }
|
26984
27145
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
|
26985
27146
|
var columns = configuration.columns.filter(function (c) {
|
26986
27147
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
@@ -27033,7 +27194,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
27033
27194
|
}
|
27034
27195
|
function mapColumn(column, onUpdate) {
|
27035
27196
|
var _column$field, _column$children;
|
27036
|
-
return _objectSpread$
|
27197
|
+
return _objectSpread$v(_objectSpread$v(_objectSpread$v({}, column), {}, {
|
27037
27198
|
hidden: false,
|
27038
27199
|
width: column.width || 100,
|
27039
27200
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
@@ -27083,8 +27244,8 @@ function updateData (_ref) {
|
|
27083
27244
|
};
|
27084
27245
|
}
|
27085
27246
|
|
27086
|
-
function ownKeys$
|
27087
|
-
function _objectSpread$
|
27247
|
+
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; }
|
27248
|
+
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; }
|
27088
27249
|
function applyFilterAndSortation (_ref) {
|
27089
27250
|
var data = _ref.data,
|
27090
27251
|
filters = _ref.filters,
|
@@ -27099,7 +27260,7 @@ function applyFilterAndSortation (_ref) {
|
|
27099
27260
|
processedData = sort(sorter || [], processedData);
|
27100
27261
|
return {
|
27101
27262
|
data: processedData,
|
27102
|
-
pagination: _objectSpread$
|
27263
|
+
pagination: _objectSpread$u(_objectSpread$u({}, pagination), {}, {
|
27103
27264
|
total: processedData.length
|
27104
27265
|
})
|
27105
27266
|
};
|
@@ -27184,8 +27345,8 @@ function filter(f, data) {
|
|
27184
27345
|
}
|
27185
27346
|
|
27186
27347
|
var _excluded = ["_id"];
|
27187
|
-
function ownKeys$
|
27188
|
-
function _objectSpread$
|
27348
|
+
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; }
|
27349
|
+
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; }
|
27189
27350
|
function useTableData$1 (_ref) {
|
27190
27351
|
var _configuration$apiInt;
|
27191
27352
|
var id = _ref.id;
|
@@ -27240,7 +27401,7 @@ function useTableData$1 (_ref) {
|
|
27240
27401
|
var _configuration$create;
|
27241
27402
|
if (!dataRow) return;
|
27242
27403
|
var id = v4();
|
27243
|
-
var processedDataRow = unflatten(_objectSpread$
|
27404
|
+
var processedDataRow = unflatten(_objectSpread$t({
|
27244
27405
|
_id: id,
|
27245
27406
|
ID: id
|
27246
27407
|
}, dataRow));
|
@@ -27252,11 +27413,11 @@ function useTableData$1 (_ref) {
|
|
27252
27413
|
newData = _updateData.data;
|
27253
27414
|
_updateData.prevDataRow;
|
27254
27415
|
_updateData.index;
|
27255
|
-
var newState = _objectSpread$
|
27416
|
+
var newState = _objectSpread$t(_objectSpread$t({}, state), {}, {
|
27256
27417
|
data: newData
|
27257
27418
|
});
|
27258
27419
|
if (!filterServerSide) {
|
27259
|
-
var res = applyFilterAndSortation(_objectSpread$
|
27420
|
+
var res = applyFilterAndSortation(_objectSpread$t(_objectSpread$t({}, filterData), {}, {
|
27260
27421
|
data: newData
|
27261
27422
|
}));
|
27262
27423
|
newState.data = res.data;
|
@@ -27268,33 +27429,33 @@ function useTableData$1 (_ref) {
|
|
27268
27429
|
var formData = new FormData();
|
27269
27430
|
processedDataRow._id;
|
27270
27431
|
var value = _objectWithoutProperties(processedDataRow, _excluded);
|
27271
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
27432
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27272
27433
|
filterContex: filterContex,
|
27273
27434
|
value: JSON.stringify([value])
|
27274
27435
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
27275
27436
|
if (d && d.Result && d.Result == 'Success') return;
|
27276
|
-
setState(_objectSpread$
|
27437
|
+
setState(_objectSpread$t({}, oldState));
|
27277
27438
|
});
|
27278
27439
|
}, [state, catalogItem, filterData]);
|
27279
27440
|
useEffect(function () {
|
27280
27441
|
if (!catalogItem) return;
|
27281
|
-
setState(_objectSpread$
|
27442
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27282
27443
|
loading: true,
|
27283
|
-
mappingData: _objectSpread$
|
27444
|
+
mappingData: _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27284
27445
|
filterContex: filterContex
|
27285
27446
|
})
|
27286
27447
|
}));
|
27287
27448
|
if (!filterServerSide) {
|
27288
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
27449
|
+
apiHandler.readList(configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27289
27450
|
filterContex: filterContex
|
27290
27451
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
27291
27452
|
var newData = data.data.map(function (d) {
|
27292
|
-
return _objectSpread$
|
27453
|
+
return _objectSpread$t(_objectSpread$t({}, d), {}, {
|
27293
27454
|
_id: d._id || d.ID || nanoid()
|
27294
27455
|
});
|
27295
27456
|
});
|
27296
27457
|
onChange({
|
27297
|
-
pagination: _objectSpread$
|
27458
|
+
pagination: _objectSpread$t({}, state.pagination),
|
27298
27459
|
filters: {},
|
27299
27460
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
27300
27461
|
return c.defaultSortOrder;
|
@@ -27310,7 +27471,7 @@ function useTableData$1 (_ref) {
|
|
27310
27471
|
});
|
27311
27472
|
} else {
|
27312
27473
|
onChange({
|
27313
|
-
pagination: _objectSpread$
|
27474
|
+
pagination: _objectSpread$t({}, state.pagination),
|
27314
27475
|
filters: {},
|
27315
27476
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
27316
27477
|
return c.defaultSortOrder;
|
@@ -27326,17 +27487,17 @@ function useTableData$1 (_ref) {
|
|
27326
27487
|
}
|
27327
27488
|
}, [filterContex, catalogItem]);
|
27328
27489
|
var onChange = function onChange(p, dataParam) {
|
27329
|
-
setState(_objectSpread$
|
27490
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27330
27491
|
loading: true
|
27331
27492
|
}));
|
27332
27493
|
if (!filterServerSide) {
|
27333
27494
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
27334
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
27495
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$t(_objectSpread$t({}, p), {}, {
|
27335
27496
|
data: unfilteredData
|
27336
27497
|
})),
|
27337
27498
|
data = _applyFilterAndSortat.data,
|
27338
27499
|
pagination = _applyFilterAndSortat.pagination;
|
27339
|
-
setState(_objectSpread$
|
27500
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27340
27501
|
data: data,
|
27341
27502
|
pagination: pagination,
|
27342
27503
|
loading: false,
|
@@ -27347,20 +27508,20 @@ function useTableData$1 (_ref) {
|
|
27347
27508
|
sorter: p.sorter
|
27348
27509
|
});
|
27349
27510
|
} else {
|
27350
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
27511
|
+
apiHandler.readList(configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27351
27512
|
filterContex: filterContex
|
27352
27513
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
27353
|
-
setState(_objectSpread$
|
27514
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27354
27515
|
data: data.data.map(function (dt) {
|
27355
|
-
return _objectSpread$
|
27516
|
+
return _objectSpread$t(_objectSpread$t({}, dt), {}, {
|
27356
27517
|
_id: dt._id || dt.ID || nanoid()
|
27357
27518
|
});
|
27358
27519
|
}),
|
27359
|
-
pagination: _objectSpread$
|
27520
|
+
pagination: _objectSpread$t(_objectSpread$t({}, p.pagination), {}, {
|
27360
27521
|
total: data.total
|
27361
27522
|
}),
|
27362
27523
|
loading: false,
|
27363
|
-
mappingData: _objectSpread$
|
27524
|
+
mappingData: _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27364
27525
|
filterContex: filterContex
|
27365
27526
|
})
|
27366
27527
|
}));
|
@@ -27381,7 +27542,7 @@ function useTableData$1 (_ref) {
|
|
27381
27542
|
filters['_id'] = [id, 'eq', false];
|
27382
27543
|
_context.next = 4;
|
27383
27544
|
return apiHandler.readList(configuration.mapping, {
|
27384
|
-
pagination: _objectSpread$
|
27545
|
+
pagination: _objectSpread$t({}, state.pagination),
|
27385
27546
|
columns: configuration.columns,
|
27386
27547
|
filters: filters,
|
27387
27548
|
sorter: filterData.sorter
|
@@ -27400,7 +27561,7 @@ function useTableData$1 (_ref) {
|
|
27400
27561
|
};
|
27401
27562
|
}();
|
27402
27563
|
var onSelect = function onSelect(keys) {
|
27403
|
-
setState(_objectSpread$
|
27564
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27404
27565
|
selected: keys
|
27405
27566
|
}));
|
27406
27567
|
};
|
@@ -27410,7 +27571,7 @@ function useTableData$1 (_ref) {
|
|
27410
27571
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
27411
27572
|
while (1) switch (_context3.prev = _context3.next) {
|
27412
27573
|
case 0:
|
27413
|
-
setState(_objectSpread$
|
27574
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27414
27575
|
deleting: true
|
27415
27576
|
}));
|
27416
27577
|
newData = _toConsumableArray(state.data);
|
@@ -27425,7 +27586,7 @@ function useTableData$1 (_ref) {
|
|
27425
27586
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
27426
27587
|
return nd._id === state.selected[index];
|
27427
27588
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
27428
|
-
mappingData = _objectSpread$
|
27589
|
+
mappingData = _objectSpread$t(_objectSpread$t({}, mappingData), state.mappingData);
|
27429
27590
|
_context2.next = 5;
|
27430
27591
|
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);
|
27431
27592
|
case 5:
|
@@ -27475,7 +27636,7 @@ function useTableData$1 (_ref) {
|
|
27475
27636
|
}
|
27476
27637
|
_context3.next = 18;
|
27477
27638
|
return apiHandler.readList(configuration.mapping, {
|
27478
|
-
pagination: _objectSpread$
|
27639
|
+
pagination: _objectSpread$t(_objectSpread$t({}, state.pagination), {}, {
|
27479
27640
|
current: current
|
27480
27641
|
}),
|
27481
27642
|
columns: configuration.columns,
|
@@ -27487,11 +27648,11 @@ function useTableData$1 (_ref) {
|
|
27487
27648
|
newData = data.data;
|
27488
27649
|
total = data.total;
|
27489
27650
|
case 21:
|
27490
|
-
setState(_objectSpread$
|
27651
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27491
27652
|
selected: [],
|
27492
27653
|
deleting: false,
|
27493
27654
|
data: newData,
|
27494
|
-
pagination: _objectSpread$
|
27655
|
+
pagination: _objectSpread$t(_objectSpread$t({}, state.pagination), {}, {
|
27495
27656
|
current: current,
|
27496
27657
|
total: total
|
27497
27658
|
})
|
@@ -27507,12 +27668,12 @@ function useTableData$1 (_ref) {
|
|
27507
27668
|
};
|
27508
27669
|
}();
|
27509
27670
|
function setLoading() {
|
27510
|
-
setState(_objectSpread$
|
27671
|
+
setState(_objectSpread$t(_objectSpread$t({}, state), {}, {
|
27511
27672
|
loading: true
|
27512
27673
|
}));
|
27513
27674
|
}
|
27514
|
-
return _objectSpread$
|
27515
|
-
configuration: _objectSpread$
|
27675
|
+
return _objectSpread$t(_objectSpread$t({}, state), {}, {
|
27676
|
+
configuration: _objectSpread$t(_objectSpread$t({}, configuration), {}, {
|
27516
27677
|
title: undefined
|
27517
27678
|
}),
|
27518
27679
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
@@ -27624,8 +27785,8 @@ function objectHash (obj) {
|
|
27624
27785
|
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; } } }; }
|
27625
27786
|
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; } }
|
27626
27787
|
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; }
|
27627
|
-
function ownKeys$
|
27628
|
-
function _objectSpread$
|
27788
|
+
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; }
|
27789
|
+
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; }
|
27629
27790
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
27630
27791
|
function useTableData (_ref) {
|
27631
27792
|
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$filter4, _configuration$bulkAc, _configuration$apiInt;
|
@@ -27684,7 +27845,7 @@ function useTableData (_ref) {
|
|
27684
27845
|
var _useState13 = useState({
|
27685
27846
|
loading: true,
|
27686
27847
|
deleting: false,
|
27687
|
-
pagination: _objectSpread$
|
27848
|
+
pagination: _objectSpread$s({
|
27688
27849
|
current: 1,
|
27689
27850
|
pageSize: 20,
|
27690
27851
|
total: 0,
|
@@ -27693,7 +27854,7 @@ function useTableData (_ref) {
|
|
27693
27854
|
selected: [],
|
27694
27855
|
canDelete: !!apiHandler.canDelete,
|
27695
27856
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
27696
|
-
mappingData: _objectSpread$
|
27857
|
+
mappingData: _objectSpread$s(_objectSpread$s({}, parentData), {}, {
|
27697
27858
|
prefilter: {
|
27698
27859
|
select: globalFilter.select
|
27699
27860
|
},
|
@@ -27704,7 +27865,7 @@ function useTableData (_ref) {
|
|
27704
27865
|
_useState14 = _slicedToArray(_useState13, 2),
|
27705
27866
|
state = _useState14[0],
|
27706
27867
|
setState = _useState14[1];
|
27707
|
-
var mappingData = _objectSpread$
|
27868
|
+
var mappingData = _objectSpread$s(_objectSpread$s(_objectSpread$s({}, parentData), state.data), {}, {
|
27708
27869
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
27709
27870
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
27710
27871
|
});
|
@@ -27743,7 +27904,7 @@ function useTableData (_ref) {
|
|
27743
27904
|
}
|
27744
27905
|
var dataArray = Array.isArray(data) ? data : [data];
|
27745
27906
|
var newInitData = initData;
|
27746
|
-
var newState = _objectSpread$
|
27907
|
+
var newState = _objectSpread$s({}, state);
|
27747
27908
|
var selected = [];
|
27748
27909
|
if (configuration.deselectOnUpdate == false) {
|
27749
27910
|
selected = state.selected;
|
@@ -27760,7 +27921,7 @@ function useTableData (_ref) {
|
|
27760
27921
|
dataRow: dataRow
|
27761
27922
|
}),
|
27762
27923
|
_data = _updateData.data;
|
27763
|
-
newState = _objectSpread$
|
27924
|
+
newState = _objectSpread$s(_objectSpread$s({}, newState), {}, {
|
27764
27925
|
data: _data,
|
27765
27926
|
selected: selected
|
27766
27927
|
});
|
@@ -27772,8 +27933,8 @@ function useTableData (_ref) {
|
|
27772
27933
|
dataRow: dataRow
|
27773
27934
|
}),
|
27774
27935
|
nextInitData = _updateData2.data;
|
27775
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
27776
|
-
filters: _objectSpread$
|
27936
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$s(_objectSpread$s(_objectSpread$s({}, filterData), {}, {
|
27937
|
+
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"])
|
27777
27938
|
}, 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 ? {
|
27778
27939
|
genericProps: globalFilter.toggle
|
27779
27940
|
} : undefined), {}, {
|
@@ -27783,7 +27944,7 @@ function useTableData (_ref) {
|
|
27783
27944
|
_data2 = _applyFilterAndSortat.data,
|
27784
27945
|
pagination = _applyFilterAndSortat.pagination;
|
27785
27946
|
newInitData = nextInitData;
|
27786
|
-
newState = _objectSpread$
|
27947
|
+
newState = _objectSpread$s(_objectSpread$s({}, newState), {}, {
|
27787
27948
|
pagination: pagination,
|
27788
27949
|
data: _data2,
|
27789
27950
|
selected: selected
|
@@ -27793,8 +27954,8 @@ function useTableData (_ref) {
|
|
27793
27954
|
if (apiHandler.canCreate) {
|
27794
27955
|
apiCreate(data).then(function (res) {
|
27795
27956
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
27796
|
-
initData && setInitData(_objectSpread$
|
27797
|
-
setState(_objectSpread$
|
27957
|
+
initData && setInitData(_objectSpread$s({}, initData));
|
27958
|
+
setState(_objectSpread$s({}, state));
|
27798
27959
|
}
|
27799
27960
|
});
|
27800
27961
|
}
|
@@ -27807,7 +27968,7 @@ function useTableData (_ref) {
|
|
27807
27968
|
var triggerRefresh = function triggerRefresh() {
|
27808
27969
|
var _configuration$filter8;
|
27809
27970
|
setError(undefined);
|
27810
|
-
var newGlobalFilter = _objectSpread$
|
27971
|
+
var newGlobalFilter = _objectSpread$s({}, globalFilter);
|
27811
27972
|
//on refresh update default filter, since global value can change
|
27812
27973
|
if ((_configuration$filter8 = configuration.filter) !== null && _configuration$filter8 !== void 0 && _configuration$filter8["default"]) {
|
27813
27974
|
var _configuration$filter9;
|
@@ -27818,7 +27979,7 @@ function useTableData (_ref) {
|
|
27818
27979
|
newGlobalFilter["default"] = _defaultFilter;
|
27819
27980
|
setGlobaFilter(newGlobalFilter);
|
27820
27981
|
}
|
27821
|
-
onChange(_objectSpread$
|
27982
|
+
onChange(_objectSpread$s({
|
27822
27983
|
pagination: state.pagination
|
27823
27984
|
}, filterData), newGlobalFilter, true);
|
27824
27985
|
};
|
@@ -27836,7 +27997,7 @@ function useTableData (_ref) {
|
|
27836
27997
|
order: c.defaultSortOrder
|
27837
27998
|
};
|
27838
27999
|
});
|
27839
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
28000
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27840
28001
|
loading: false
|
27841
28002
|
}));else {
|
27842
28003
|
onChange({
|
@@ -27879,7 +28040,7 @@ function useTableData (_ref) {
|
|
27879
28040
|
case 0:
|
27880
28041
|
filters = {};
|
27881
28042
|
filters['_id'] = [id, 'eq', false];
|
27882
|
-
ssf = _objectSpread$
|
28043
|
+
ssf = _objectSpread$s({
|
27883
28044
|
pagination: {
|
27884
28045
|
current: 1,
|
27885
28046
|
pageSize: 1
|
@@ -27890,7 +28051,7 @@ function useTableData (_ref) {
|
|
27890
28051
|
genericProps: globalFilter.toggle
|
27891
28052
|
} : undefined);
|
27892
28053
|
_context2.next = 5;
|
27893
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
28054
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), ssf);
|
27894
28055
|
case 5:
|
27895
28056
|
data = _context2.sent;
|
27896
28057
|
return _context2.abrupt("return", data);
|
@@ -27934,12 +28095,12 @@ function useTableData (_ref) {
|
|
27934
28095
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
27935
28096
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
27936
28097
|
overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
|
27937
|
-
setState(_objectSpread$
|
28098
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27938
28099
|
mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
|
27939
28100
|
loading: true
|
27940
28101
|
}));
|
27941
28102
|
currentData = initData;
|
27942
|
-
filterData = _objectSpread$
|
28103
|
+
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
|
27943
28104
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
|
27944
28105
|
var _ref7 = _slicedToArray(_ref6, 2);
|
27945
28106
|
_ref7[0];
|
@@ -27947,7 +28108,7 @@ function useTableData (_ref) {
|
|
27947
28108
|
return v != null;
|
27948
28109
|
}));
|
27949
28110
|
currentFilterHash = objectHash(filterData);
|
27950
|
-
currentPagination = _objectSpread$
|
28111
|
+
currentPagination = _objectSpread$s(_objectSpread$s({}, p.pagination), {}, {
|
27951
28112
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
27952
28113
|
});
|
27953
28114
|
filterHash.current = currentFilterHash;
|
@@ -27955,7 +28116,7 @@ function useTableData (_ref) {
|
|
27955
28116
|
_context3.next = 21;
|
27956
28117
|
break;
|
27957
28118
|
}
|
27958
|
-
ssf = _objectSpread$
|
28119
|
+
ssf = _objectSpread$s({
|
27959
28120
|
pagination: currentPagination,
|
27960
28121
|
columns: configuration.columns,
|
27961
28122
|
filters: filterData,
|
@@ -27964,12 +28125,12 @@ function useTableData (_ref) {
|
|
27964
28125
|
genericProps: prefilter.toggle
|
27965
28126
|
} : undefined);
|
27966
28127
|
_context3.next = 15;
|
27967
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
28128
|
+
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)));
|
27968
28129
|
case 15:
|
27969
28130
|
data = _context3.sent;
|
27970
|
-
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$
|
28131
|
+
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), ssf);
|
27971
28132
|
currentData = data.data;
|
27972
|
-
currentPagination = _objectSpread$
|
28133
|
+
currentPagination = _objectSpread$s(_objectSpread$s({}, currentPagination), {}, {
|
27973
28134
|
total: data.total
|
27974
28135
|
});
|
27975
28136
|
_context3.next = 30;
|
@@ -27986,7 +28147,7 @@ function useTableData (_ref) {
|
|
27986
28147
|
currentData = _data3.data;
|
27987
28148
|
setInitData(currentData);
|
27988
28149
|
case 27:
|
27989
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
28150
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$s(_objectSpread$s({}, p), {}, {
|
27990
28151
|
pagination: currentPagination,
|
27991
28152
|
filters: filterData,
|
27992
28153
|
data: currentData,
|
@@ -27995,11 +28156,11 @@ function useTableData (_ref) {
|
|
27995
28156
|
currentData = _data4;
|
27996
28157
|
currentPagination = pagination;
|
27997
28158
|
case 30:
|
27998
|
-
setState(_objectSpread$
|
28159
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27999
28160
|
loading: false,
|
28000
28161
|
data: currentData,
|
28001
28162
|
pagination: currentPagination,
|
28002
|
-
mappingData: _objectSpread$
|
28163
|
+
mappingData: _objectSpread$s(_objectSpread$s(_objectSpread$s(_objectSpread$s({}, parentData), state.mappingData), overwriteMappingData), {}, {
|
28003
28164
|
prefilter: prefilter
|
28004
28165
|
}),
|
28005
28166
|
currentFetchUrl: currentUrl
|
@@ -28021,7 +28182,7 @@ function useTableData (_ref) {
|
|
28021
28182
|
};
|
28022
28183
|
}();
|
28023
28184
|
var onSelect = function onSelect(keys) {
|
28024
|
-
setState(_objectSpread$
|
28185
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28025
28186
|
selected: keys
|
28026
28187
|
}));
|
28027
28188
|
};
|
@@ -28032,7 +28193,7 @@ function useTableData (_ref) {
|
|
28032
28193
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
28033
28194
|
while (1) switch (_context5.prev = _context5.next) {
|
28034
28195
|
case 0:
|
28035
|
-
setState(_objectSpread$
|
28196
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28036
28197
|
deleting: true
|
28037
28198
|
}));
|
28038
28199
|
newData = _toConsumableArray(state.data);
|
@@ -28072,7 +28233,7 @@ function useTableData (_ref) {
|
|
28072
28233
|
} finally {
|
28073
28234
|
_iterator.f();
|
28074
28235
|
}
|
28075
|
-
mappingData = _objectSpread$
|
28236
|
+
mappingData = _objectSpread$s(_objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), mapToggle);
|
28076
28237
|
deleteResult = undefined;
|
28077
28238
|
_context4.prev = 7;
|
28078
28239
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
@@ -28162,12 +28323,12 @@ function useTableData (_ref) {
|
|
28162
28323
|
break;
|
28163
28324
|
}
|
28164
28325
|
_context5.next = 25;
|
28165
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
28166
|
-
pagination: _objectSpread$
|
28326
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData), _objectSpread$s({
|
28327
|
+
pagination: _objectSpread$s(_objectSpread$s({}, state.pagination), {}, {
|
28167
28328
|
current: current
|
28168
28329
|
}),
|
28169
28330
|
columns: configuration.columns,
|
28170
|
-
filters: _objectSpread$
|
28331
|
+
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"]),
|
28171
28332
|
sorter: filterData.sorter
|
28172
28333
|
}, 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 ? {
|
28173
28334
|
genericProps: globalFilter.toggle
|
@@ -28178,11 +28339,11 @@ function useTableData (_ref) {
|
|
28178
28339
|
total = data.total;
|
28179
28340
|
case 28:
|
28180
28341
|
setInitData(newInitData);
|
28181
|
-
setState(_objectSpread$
|
28342
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
28182
28343
|
selected: [],
|
28183
28344
|
deleting: false,
|
28184
28345
|
data: newData,
|
28185
|
-
pagination: _objectSpread$
|
28346
|
+
pagination: _objectSpread$s(_objectSpread$s({}, state.pagination), {}, {
|
28186
28347
|
current: current === 0 ? 1 : current,
|
28187
28348
|
total: total
|
28188
28349
|
})
|
@@ -28203,14 +28364,14 @@ function useTableData (_ref) {
|
|
28203
28364
|
LOG$2.error(new DivaError('No global select filter defiend'));
|
28204
28365
|
return;
|
28205
28366
|
}
|
28206
|
-
var newGlobalFilter = _objectSpread$
|
28367
|
+
var newGlobalFilter = _objectSpread$s({}, globalFilter);
|
28207
28368
|
if (value !== null && value !== void 0 && value.length) {
|
28208
28369
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
|
28209
28370
|
} else {
|
28210
28371
|
newGlobalFilter.select = {};
|
28211
28372
|
}
|
28212
28373
|
setGlobaFilter(newGlobalFilter);
|
28213
|
-
onChange(_objectSpread$
|
28374
|
+
onChange(_objectSpread$s({
|
28214
28375
|
pagination: state.pagination
|
28215
28376
|
}, filterData), newGlobalFilter);
|
28216
28377
|
};
|
@@ -28221,16 +28382,16 @@ function useTableData (_ref) {
|
|
28221
28382
|
return;
|
28222
28383
|
}
|
28223
28384
|
var toggleFilter = {};
|
28224
|
-
var mappingData = _objectSpread$
|
28385
|
+
var mappingData = _objectSpread$s({}, state.mappingData);
|
28225
28386
|
configuration.filter.toggle.fields.forEach(function (f) {
|
28226
28387
|
mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
|
28227
28388
|
toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
28228
28389
|
});
|
28229
|
-
var newGlobalFilter = _objectSpread$
|
28390
|
+
var newGlobalFilter = _objectSpread$s(_objectSpread$s({}, globalFilter), {}, {
|
28230
28391
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
28231
28392
|
});
|
28232
28393
|
setGlobaFilter(newGlobalFilter);
|
28233
|
-
onChange(_objectSpread$
|
28394
|
+
onChange(_objectSpread$s({
|
28234
28395
|
pagination: state.pagination
|
28235
28396
|
}, filterData), newGlobalFilter, true, true, mappingData);
|
28236
28397
|
};
|
@@ -28243,7 +28404,7 @@ function useTableData (_ref) {
|
|
28243
28404
|
LOG$2.error(new DivaError('No global search filter defiend'));
|
28244
28405
|
return;
|
28245
28406
|
}
|
28246
|
-
var newGlobalFilter = _objectSpread$
|
28407
|
+
var newGlobalFilter = _objectSpread$s(_objectSpread$s({}, globalFilter), {}, {
|
28247
28408
|
search: {}
|
28248
28409
|
});
|
28249
28410
|
if (value) {
|
@@ -28257,7 +28418,7 @@ function useTableData (_ref) {
|
|
28257
28418
|
});
|
28258
28419
|
}
|
28259
28420
|
setGlobaFilter(newGlobalFilter);
|
28260
|
-
onChange(_objectSpread$
|
28421
|
+
onChange(_objectSpread$s({
|
28261
28422
|
pagination: state.pagination
|
28262
28423
|
}, filterData), newGlobalFilter);
|
28263
28424
|
};
|
@@ -28267,20 +28428,20 @@ function useTableData (_ref) {
|
|
28267
28428
|
LOG$2.error(new DivaError('No global period filter defiend'));
|
28268
28429
|
return;
|
28269
28430
|
}
|
28270
|
-
var newGlobalFilter = _objectSpread$
|
28431
|
+
var newGlobalFilter = _objectSpread$s({}, globalFilter);
|
28271
28432
|
newGlobalFilter.timeStamp = {
|
28272
28433
|
fromTimeStamp: [from],
|
28273
28434
|
toTimeStamp: [to]
|
28274
28435
|
};
|
28275
28436
|
if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
|
28276
|
-
onChange(_objectSpread$
|
28437
|
+
onChange(_objectSpread$s({
|
28277
28438
|
pagination: state.pagination
|
28278
|
-
}, filterData), undefined, true, undefined, _objectSpread$
|
28439
|
+
}, filterData), undefined, true, undefined, _objectSpread$s(_objectSpread$s({}, state.mappingData), {}, {
|
28279
28440
|
from: from,
|
28280
28441
|
to: to
|
28281
28442
|
}));
|
28282
28443
|
};
|
28283
|
-
return _objectSpread$
|
28444
|
+
return _objectSpread$s(_objectSpread$s({}, state), {}, {
|
28284
28445
|
title: title,
|
28285
28446
|
configuration: configuration,
|
28286
28447
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
|
@@ -28322,8 +28483,8 @@ function StandardTable (_ref) {
|
|
28322
28483
|
});
|
28323
28484
|
}
|
28324
28485
|
|
28325
|
-
function ownKeys$
|
28326
|
-
function _objectSpread$
|
28486
|
+
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; }
|
28487
|
+
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; }
|
28327
28488
|
function Table (props) {
|
28328
28489
|
var root = useStore();
|
28329
28490
|
var variant = useMemo(function () {
|
@@ -28331,15 +28492,15 @@ function Table (props) {
|
|
28331
28492
|
return config.variant;
|
28332
28493
|
}, [props.id]);
|
28333
28494
|
return /*#__PURE__*/jsxs(Fragment, {
|
28334
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
28495
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$r({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$r({}, props))]
|
28335
28496
|
});
|
28336
28497
|
}
|
28337
28498
|
|
28338
28499
|
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; } } }; }
|
28339
28500
|
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; } }
|
28340
28501
|
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; }
|
28341
|
-
function ownKeys$
|
28342
|
-
function _objectSpread$
|
28502
|
+
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; }
|
28503
|
+
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; }
|
28343
28504
|
function useAGGrid (_ref) {
|
28344
28505
|
var id = _ref.id,
|
28345
28506
|
filter = _ref.filter,
|
@@ -28433,7 +28594,7 @@ function useAGGrid (_ref) {
|
|
28433
28594
|
value = _ref3[1];
|
28434
28595
|
if (_idx == 0) {
|
28435
28596
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
28436
|
-
rdat.push(_objectSpread$
|
28597
|
+
rdat.push(_objectSpread$q(_objectSpread$q({}, rd), {}, {
|
28437
28598
|
grouping: [idx.toString()]
|
28438
28599
|
}));
|
28439
28600
|
var sp = key.split(':');
|
@@ -28573,11 +28734,11 @@ var loader = "loader-LaXZy";
|
|
28573
28734
|
var flex = "flex-yQdda";
|
28574
28735
|
var bar = "bar-Y663f";
|
28575
28736
|
var value = "value-FCA-6";
|
28576
|
-
var css_248z$
|
28577
|
-
styleInject(css_248z$
|
28737
|
+
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";
|
28738
|
+
styleInject(css_248z$i);
|
28578
28739
|
|
28579
|
-
function ownKeys$
|
28580
|
-
function _objectSpread$
|
28740
|
+
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; }
|
28741
|
+
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; }
|
28581
28742
|
var AGChart = function AGChart(_ref) {
|
28582
28743
|
var data = _ref.data;
|
28583
28744
|
var groupedData = [];
|
@@ -28585,11 +28746,11 @@ var AGChart = function AGChart(_ref) {
|
|
28585
28746
|
data.forEach(function (dt) {
|
28586
28747
|
if (dt.count == 0) return;
|
28587
28748
|
if (groupedData.length > dt.grouping[0]) {
|
28588
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
28749
|
+
groupedData[dt.grouping[0]].push(_objectSpread$p(_objectSpread$p({}, dt), {}, {
|
28589
28750
|
count: Number(dt.count)
|
28590
28751
|
}));
|
28591
28752
|
} else {
|
28592
|
-
groupedData.push([_objectSpread$
|
28753
|
+
groupedData.push([_objectSpread$p(_objectSpread$p({}, dt), {}, {
|
28593
28754
|
count: Number(dt.count)
|
28594
28755
|
})]);
|
28595
28756
|
}
|
@@ -28630,8 +28791,8 @@ var AGChart = function AGChart(_ref) {
|
|
28630
28791
|
});
|
28631
28792
|
};
|
28632
28793
|
|
28633
|
-
function ownKeys$
|
28634
|
-
function _objectSpread$
|
28794
|
+
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; }
|
28795
|
+
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; }
|
28635
28796
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
28636
28797
|
var id = _ref.id,
|
28637
28798
|
filter = _ref.filter,
|
@@ -28724,7 +28885,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
28724
28885
|
});
|
28725
28886
|
});
|
28726
28887
|
}
|
28727
|
-
return _objectSpread$
|
28888
|
+
return _objectSpread$o(_objectSpread$o({}, column), {}, {
|
28728
28889
|
cellRenderer: renderer
|
28729
28890
|
});
|
28730
28891
|
});
|
@@ -28994,8 +29155,8 @@ var CustomText = function CustomText(_ref) {
|
|
28994
29155
|
};
|
28995
29156
|
var CustomText$1 = observer(CustomText);
|
28996
29157
|
|
28997
|
-
function ownKeys$
|
28998
|
-
function _objectSpread$
|
29158
|
+
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; }
|
29159
|
+
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; }
|
28999
29160
|
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; } } }; }
|
29000
29161
|
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; } }
|
29001
29162
|
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; }
|
@@ -29058,7 +29219,7 @@ function useFilterBoxData (id) {
|
|
29058
29219
|
} finally {
|
29059
29220
|
_iterator.f();
|
29060
29221
|
}
|
29061
|
-
return _objectSpread$
|
29222
|
+
return _objectSpread$n(_objectSpread$n({}, state), ob);
|
29062
29223
|
}
|
29063
29224
|
return {
|
29064
29225
|
configuration: configuration,
|
@@ -29072,8 +29233,8 @@ function useFilterBoxData (id) {
|
|
29072
29233
|
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; } } }; }
|
29073
29234
|
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; } }
|
29074
29235
|
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; }
|
29075
|
-
function ownKeys$
|
29076
|
-
function _objectSpread$
|
29236
|
+
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; }
|
29237
|
+
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; }
|
29077
29238
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
29078
29239
|
var id = _ref.id,
|
29079
29240
|
onChangeFilter = _ref.onChangeFilter,
|
@@ -29101,7 +29262,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
29101
29262
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
|
29102
29263
|
mode: "single",
|
29103
29264
|
apiInterface: filter.requestOptions,
|
29104
|
-
wholeData: _objectSpread$
|
29265
|
+
wholeData: _objectSpread$m(_objectSpread$m({}, state.filter), {}, {
|
29105
29266
|
tab: tab
|
29106
29267
|
}),
|
29107
29268
|
mapping: filter.requestMapping,
|
@@ -29333,8 +29494,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
29333
29494
|
return false;
|
29334
29495
|
});
|
29335
29496
|
|
29336
|
-
function ownKeys$
|
29337
|
-
function _objectSpread$
|
29497
|
+
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; }
|
29498
|
+
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; }
|
29338
29499
|
function useUIBuilderData (id) {
|
29339
29500
|
var save = undefined;
|
29340
29501
|
var root = useStore();
|
@@ -29366,7 +29527,7 @@ function useUIBuilderData (id) {
|
|
29366
29527
|
var configuration = _useMemo.configuration;
|
29367
29528
|
useEffect(function () {
|
29368
29529
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
29369
|
-
return setFilter(_objectSpread$
|
29530
|
+
return setFilter(_objectSpread$l(_objectSpread$l({}, filter), {}, {
|
29370
29531
|
sessionGuid: res
|
29371
29532
|
}));
|
29372
29533
|
});
|
@@ -29389,8 +29550,8 @@ function useUIBuilderData (id) {
|
|
29389
29550
|
};
|
29390
29551
|
}
|
29391
29552
|
|
29392
|
-
function ownKeys$
|
29393
|
-
function _objectSpread$
|
29553
|
+
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; }
|
29554
|
+
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; }
|
29394
29555
|
function UIBuilder(_ref) {
|
29395
29556
|
var id = _ref.id;
|
29396
29557
|
var state = useUIBuilderData(id);
|
@@ -29417,7 +29578,7 @@ function UIBuilder(_ref) {
|
|
29417
29578
|
override = {
|
29418
29579
|
value: newFilter[item.field],
|
29419
29580
|
setValue: function setValue(newVal) {
|
29420
|
-
var newFilter = _objectSpread$
|
29581
|
+
var newFilter = _objectSpread$k({}, state.filter);
|
29421
29582
|
newFilter[item.field] = newVal;
|
29422
29583
|
state.setFilter(newFilter);
|
29423
29584
|
}
|
@@ -29465,7 +29626,7 @@ function UIBuilder(_ref) {
|
|
29465
29626
|
case 'AGGrid':
|
29466
29627
|
return /*#__PURE__*/jsx(AGGrid, {
|
29467
29628
|
id: item.id,
|
29468
|
-
filter: _objectSpread$
|
29629
|
+
filter: _objectSpread$k({
|
29469
29630
|
optionCodices: JSON.stringify(state.data)
|
29470
29631
|
}, state.filter),
|
29471
29632
|
override: item.id == 'AGGridTopOptionValues' ? {
|
@@ -29519,8 +29680,8 @@ var retailerChild = "retailer-child-5ll0K";
|
|
29519
29680
|
var supplier = "supplier-8sm0I";
|
29520
29681
|
var dealer = "dealer-xgnku";
|
29521
29682
|
var association = "association-b8uVW";
|
29522
|
-
var css_248z$
|
29523
|
-
styleInject(css_248z$
|
29683
|
+
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";
|
29684
|
+
styleInject(css_248z$h);
|
29524
29685
|
|
29525
29686
|
function getColorClass(data) {
|
29526
29687
|
switch (data.type) {
|
@@ -29625,8 +29786,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
29625
29786
|
};
|
29626
29787
|
var OrgItem$1 = observer(OrgItem);
|
29627
29788
|
|
29628
|
-
function ownKeys$
|
29629
|
-
function _objectSpread$
|
29789
|
+
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; }
|
29790
|
+
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; }
|
29630
29791
|
function useTransformJson (_ref) {
|
29631
29792
|
var id = _ref.id;
|
29632
29793
|
var _useState = useState(),
|
@@ -29692,7 +29853,7 @@ function useTransformJson (_ref) {
|
|
29692
29853
|
}();
|
29693
29854
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
29694
29855
|
var _data$children;
|
29695
|
-
return _objectSpread$
|
29856
|
+
return _objectSpread$j(_objectSpread$j({}, data), {}, {
|
29696
29857
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
29697
29858
|
data: data,
|
29698
29859
|
configuration: configuration,
|
@@ -29753,8 +29914,8 @@ var openClass = "open-class--gGXs";
|
|
29753
29914
|
var breadcrumb = "breadcrumb-Z0VvH";
|
29754
29915
|
var selected = "selected-w-sfW";
|
29755
29916
|
var disabled$2 = "disabled-0nado";
|
29756
|
-
var css_248z$
|
29757
|
-
styleInject(css_248z$
|
29917
|
+
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";
|
29918
|
+
styleInject(css_248z$g);
|
29758
29919
|
|
29759
29920
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
29760
29921
|
var open = _ref.open,
|
@@ -29787,8 +29948,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
29787
29948
|
|
29788
29949
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
29789
29950
|
var toolbarLeft = "toolbar-left-X9WRo";
|
29790
|
-
var css_248z$
|
29791
|
-
styleInject(css_248z$
|
29951
|
+
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";
|
29952
|
+
styleInject(css_248z$f);
|
29792
29953
|
|
29793
29954
|
var Legend = function Legend(props) {
|
29794
29955
|
return /*#__PURE__*/jsx(List$1, {
|
@@ -29842,8 +30003,8 @@ var Legend = function Legend(props) {
|
|
29842
30003
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
29843
30004
|
var mask = "mask-ssagp";
|
29844
30005
|
var transformWrapper = "transform-wrapper--8t0v";
|
29845
|
-
var css_248z$
|
29846
|
-
styleInject(css_248z$
|
30006
|
+
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";
|
30007
|
+
styleInject(css_248z$e);
|
29847
30008
|
|
29848
30009
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
29849
30010
|
var _children = _ref.children,
|
@@ -30353,8 +30514,8 @@ function useCatalogEditor (id) {
|
|
30353
30514
|
};
|
30354
30515
|
}
|
30355
30516
|
|
30356
|
-
function ownKeys$
|
30357
|
-
function _objectSpread$
|
30517
|
+
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; }
|
30518
|
+
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; }
|
30358
30519
|
function DragDropUpload(_ref) {
|
30359
30520
|
var api2Params = _ref.api2Params,
|
30360
30521
|
catalogId = _ref.catalogId,
|
@@ -30462,7 +30623,7 @@ function DragDropUpload(_ref) {
|
|
30462
30623
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
30463
30624
|
children: t('backoffice.catalogeditor.classimportstarted')
|
30464
30625
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
30465
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
30626
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$i(_objectSpread$i({}, props), {}, {
|
30466
30627
|
children: [/*#__PURE__*/jsx("p", {
|
30467
30628
|
className: "ant-upload-drag-icon",
|
30468
30629
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
@@ -30679,12 +30840,12 @@ function CatalogEditor(_ref) {
|
|
30679
30840
|
}
|
30680
30841
|
var CatalogEditor$1 = observer(CatalogEditor);
|
30681
30842
|
|
30682
|
-
function ownKeys$
|
30683
|
-
function _objectSpread$
|
30843
|
+
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; }
|
30844
|
+
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; }
|
30684
30845
|
var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
|
30685
30846
|
var _root$contentStore$bo, _root$contentStore$ri;
|
30686
30847
|
var root = useStore();
|
30687
|
-
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$
|
30848
|
+
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$h(_objectSpread$h({}, props), {}, {
|
30688
30849
|
ref: ref,
|
30689
30850
|
darkMode: root.contentStore.theme == 'darkmode',
|
30690
30851
|
jwt: root.dataStore.jwt,
|
@@ -30695,8 +30856,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
30695
30856
|
});
|
30696
30857
|
var Spreadsheet = observer(SpreadsheetWrapper);
|
30697
30858
|
|
30698
|
-
function ownKeys$
|
30699
|
-
function _objectSpread$
|
30859
|
+
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; }
|
30860
|
+
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; }
|
30700
30861
|
|
30701
30862
|
// Type definition for the context state
|
30702
30863
|
|
@@ -30718,14 +30879,14 @@ var useEnricherContext = function useEnricherContext() {
|
|
30718
30879
|
loading: loading,
|
30719
30880
|
setOptions: function setOptions(options) {
|
30720
30881
|
var state = root.contextStore.getContext('enricher');
|
30721
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
30882
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$g(_objectSpread$g({}, state[stateKey]), {}, {
|
30722
30883
|
options: options,
|
30723
30884
|
loading: false
|
30724
30885
|
})));
|
30725
30886
|
},
|
30726
30887
|
setLoading: function setLoading(loading) {
|
30727
30888
|
var state = root.contextStore.getContext('enricher');
|
30728
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
30889
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$g(_objectSpread$g({}, state[stateKey]), {}, {
|
30729
30890
|
loading: loading
|
30730
30891
|
})));
|
30731
30892
|
}
|
@@ -30821,7 +30982,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
30821
30982
|
}, [urlPackageId, getContext().packageId, setSelectedPackage]);
|
30822
30983
|
|
30823
30984
|
// Return context + handlers
|
30824
|
-
return _objectSpread$
|
30985
|
+
return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
|
30825
30986
|
setSelectedSerie: setSelectedSerie,
|
30826
30987
|
setSelectedFeature: setSelectedFeature,
|
30827
30988
|
setSelectedPackage: setSelectedPackage
|
@@ -31082,51 +31243,6 @@ function useModule$1 (currentModules) {
|
|
31082
31243
|
//update the navigation supmenu for the packages module to include the current package id
|
31083
31244
|
root.contentStore.updateAdditionalElement('packages', menuItems, currentModules);
|
31084
31245
|
}, [menuItems, location.pathname]);
|
31085
|
-
|
31086
|
-
//updating tools
|
31087
|
-
|
31088
|
-
useEffect(function () {
|
31089
|
-
var tools = [];
|
31090
|
-
if (selectedPackage !== null && selectedPackage !== void 0 && selectedPackage._id) {
|
31091
|
-
if (selectedPackage.isApi) {
|
31092
|
-
tools.push({
|
31093
|
-
name: 'Konfigurator',
|
31094
|
-
parameters: {
|
31095
|
-
packageId: selectedPackage._id
|
31096
|
-
},
|
31097
|
-
type: 'Configurator',
|
31098
|
-
id: 'WYSIWYG',
|
31099
|
-
startWidth: 600,
|
31100
|
-
elementProps: {
|
31101
|
-
loadMask: true
|
31102
|
-
},
|
31103
|
-
defaultPinned: true
|
31104
|
-
});
|
31105
|
-
} else {
|
31106
|
-
tools.push({
|
31107
|
-
name: 'Konfigurator',
|
31108
|
-
parameters: {
|
31109
|
-
packageId: selectedPackage._id,
|
31110
|
-
isIDMData: '1'
|
31111
|
-
},
|
31112
|
-
type: 'Configurator',
|
31113
|
-
id: 'WYSIWYG',
|
31114
|
-
startWidth: 600,
|
31115
|
-
elementProps: {
|
31116
|
-
useEnricherService: true,
|
31117
|
-
loadPackage: true,
|
31118
|
-
packageId: selectedPackage._id,
|
31119
|
-
showCatalogSelection: true
|
31120
|
-
},
|
31121
|
-
defaultPinned: true
|
31122
|
-
});
|
31123
|
-
}
|
31124
|
-
}
|
31125
|
-
root.contentStore.rightToolBar.tools = tools;
|
31126
|
-
return function () {
|
31127
|
-
root.contentStore.rightToolBar.tools = [];
|
31128
|
-
};
|
31129
|
-
}, [selectedPackage]);
|
31130
31246
|
return {
|
31131
31247
|
selectedPackage: selectedPackage,
|
31132
31248
|
packageId: packageId,
|
@@ -31185,6 +31301,116 @@ function createTranslatedColumnConfig(field, headerName, languages) {
|
|
31185
31301
|
};
|
31186
31302
|
}
|
31187
31303
|
|
31304
|
+
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; }
|
31305
|
+
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; }
|
31306
|
+
var useTools = function useTools(_ref) {
|
31307
|
+
var catalogId = _ref.catalogId,
|
31308
|
+
packageId = _ref.packageId,
|
31309
|
+
isApi2 = _ref.isApi2,
|
31310
|
+
mainInformationWindowCodex = _ref.mainInformationWindowCodex;
|
31311
|
+
var root = useStore();
|
31312
|
+
var _useState = useState([]),
|
31313
|
+
_useState2 = _slicedToArray(_useState, 2),
|
31314
|
+
secondaryTables = _useState2[0],
|
31315
|
+
setSecondaryTables = _useState2[1];
|
31316
|
+
var openInformationWindow = useCallback(function (codex, open) {
|
31317
|
+
root.contentStore.rightToolBar.addTools({
|
31318
|
+
id: 'info',
|
31319
|
+
name: 'Information',
|
31320
|
+
type: 'InformationWindow',
|
31321
|
+
parameters: {
|
31322
|
+
contentItemCodex: codex
|
31323
|
+
},
|
31324
|
+
defaultOpen: open
|
31325
|
+
});
|
31326
|
+
if (open) {
|
31327
|
+
root.contentStore.rightToolBar.openTool('info');
|
31328
|
+
}
|
31329
|
+
}, [root.contentStore.rightToolBar]);
|
31330
|
+
var addSecondaryTables = useCallback(function () {
|
31331
|
+
var _root$contentStore$bo;
|
31332
|
+
for (var _len = arguments.length, tools = new Array(_len), _key = 0; _key < _len; _key++) {
|
31333
|
+
tools[_key] = arguments[_key];
|
31334
|
+
}
|
31335
|
+
var newSecondaryTables = tools.map(function (tool) {
|
31336
|
+
return _objectSpread$f({
|
31337
|
+
startWidth: 300,
|
31338
|
+
defaultPinned: false,
|
31339
|
+
defaultOpen: false
|
31340
|
+
}, tool);
|
31341
|
+
});
|
31342
|
+
(_root$contentStore$bo = root.contentStore.bottomToolBar).addTools.apply(_root$contentStore$bo, _toConsumableArray(newSecondaryTables));
|
31343
|
+
setSecondaryTables([].concat(_toConsumableArray(secondaryTables), _toConsumableArray(newSecondaryTables)));
|
31344
|
+
}, [root.contentStore.bottomToolBar]);
|
31345
|
+
var removeSecondaryTables = useCallback(function () {
|
31346
|
+
var _root$contentStore$bo2;
|
31347
|
+
for (var _len2 = arguments.length, ids = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
31348
|
+
ids[_key2] = arguments[_key2];
|
31349
|
+
}
|
31350
|
+
(_root$contentStore$bo2 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo2, ids);
|
31351
|
+
setSecondaryTables(secondaryTables.filter(function (table) {
|
31352
|
+
return !ids.includes(table.id);
|
31353
|
+
}));
|
31354
|
+
}, [root.contentStore.bottomToolBar, secondaryTables]);
|
31355
|
+
useEffect(function () {
|
31356
|
+
var _root$contentStore$ri;
|
31357
|
+
var tools = [];
|
31358
|
+
if (catalogId || packageId) {
|
31359
|
+
tools.push({
|
31360
|
+
id: 'WYSIWYG',
|
31361
|
+
name: 'Konfigurator',
|
31362
|
+
type: 'Configurator',
|
31363
|
+
parameters: {
|
31364
|
+
catalogId: catalogId,
|
31365
|
+
packageId: packageId,
|
31366
|
+
isIDMData: !isApi2 ? '1' : undefined
|
31367
|
+
},
|
31368
|
+
startWidth: 600,
|
31369
|
+
defaultPinned: true,
|
31370
|
+
elementProps: catalogId ? {
|
31371
|
+
// open configurator for idm catalog
|
31372
|
+
useIDMService: true,
|
31373
|
+
catalogId: catalogId,
|
31374
|
+
showCatalogSelection: true
|
31375
|
+
} : isApi2 ? {
|
31376
|
+
// open configurator for api2 package (configurator light)
|
31377
|
+
loadMask: true
|
31378
|
+
} : {
|
31379
|
+
// open configurator for idm package
|
31380
|
+
useEnricherService: true,
|
31381
|
+
loadPackage: true,
|
31382
|
+
packageId: packageId,
|
31383
|
+
showCatalogSelection: true
|
31384
|
+
}
|
31385
|
+
});
|
31386
|
+
}
|
31387
|
+
if (mainInformationWindowCodex) {
|
31388
|
+
tools.push({
|
31389
|
+
id: 'info',
|
31390
|
+
name: 'Information',
|
31391
|
+
type: 'InformationWindow',
|
31392
|
+
parameters: {
|
31393
|
+
contentItemCodex: mainInformationWindowCodex
|
31394
|
+
},
|
31395
|
+
defaultOpen: false
|
31396
|
+
});
|
31397
|
+
}
|
31398
|
+
(_root$contentStore$ri = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri, tools);
|
31399
|
+
return function () {
|
31400
|
+
var _root$contentStore$bo3;
|
31401
|
+
root.contentStore.rightToolBar.removeTools('WYSIWYG', 'info');
|
31402
|
+
(_root$contentStore$bo3 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo3, _toConsumableArray(secondaryTables.map(function (table) {
|
31403
|
+
return table.id;
|
31404
|
+
})));
|
31405
|
+
};
|
31406
|
+
}, []);
|
31407
|
+
return {
|
31408
|
+
openInformationWindow: openInformationWindow,
|
31409
|
+
addSecondaryTables: addSecondaryTables,
|
31410
|
+
removeSecondaryTables: removeSecondaryTables
|
31411
|
+
};
|
31412
|
+
};
|
31413
|
+
|
31188
31414
|
var TableGroups = observer(function () {
|
31189
31415
|
var _useTranslation = useTranslation(),
|
31190
31416
|
t = _useTranslation.t;
|
@@ -31193,6 +31419,10 @@ var TableGroups = observer(function () {
|
|
31193
31419
|
organizationId = _useModule.organizationId,
|
31194
31420
|
apiConfig = _useModule.apiConfig,
|
31195
31421
|
selectedPackage = _useModule.selectedPackage;
|
31422
|
+
useTools({
|
31423
|
+
packageId: packageId,
|
31424
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
31425
|
+
});
|
31196
31426
|
var applicationData = useMemo(function () {
|
31197
31427
|
return {
|
31198
31428
|
packageId: packageId,
|
@@ -31764,6 +31994,7 @@ var TablePackages = observer(function () {
|
|
31764
31994
|
contextHolder = modalState.contextHolder;
|
31765
31995
|
var _useEnricherContext = useEnricherContext([]),
|
31766
31996
|
setSelectedPackage = _useEnricherContext.setSelectedPackage;
|
31997
|
+
useTools({});
|
31767
31998
|
var organizationId = root.dataStore.organizationId;
|
31768
31999
|
var apiConfig = root.configurationStore.apiConfig;
|
31769
32000
|
var applicationData = useMemo(function () {
|
@@ -32016,6 +32247,10 @@ var TableProperties = observer(function () {
|
|
32016
32247
|
organizationId = _useModule.organizationId,
|
32017
32248
|
apiConfig = _useModule.apiConfig,
|
32018
32249
|
selectedPackage = _useModule.selectedPackage;
|
32250
|
+
useTools({
|
32251
|
+
packageId: packageId,
|
32252
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
32253
|
+
});
|
32019
32254
|
var applicationData = useMemo(function () {
|
32020
32255
|
return {
|
32021
32256
|
packageId: packageId,
|
@@ -32802,6 +33037,10 @@ var RenamingTable = observer(function (_ref) {
|
|
32802
33037
|
apiConfig = _useModule.apiConfig,
|
32803
33038
|
selectedPackage = _useModule.selectedPackage,
|
32804
33039
|
selectedSerie = _useModule.selectedSerie;
|
33040
|
+
useTools({
|
33041
|
+
packageId: packageId,
|
33042
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33043
|
+
});
|
32805
33044
|
var baseConfiguration = useMemo(function () {
|
32806
33045
|
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
|
32807
33046
|
}, [selectedPackage, i18n.language]);
|
@@ -33344,6 +33583,10 @@ var ExclusivityTable = observer(function (_ref) {
|
|
33344
33583
|
organizationId = _useModule.organizationId,
|
33345
33584
|
selectedPackage = _useModule.selectedPackage,
|
33346
33585
|
selectedSerie = _useModule.selectedSerie;
|
33586
|
+
useTools({
|
33587
|
+
packageId: packageId,
|
33588
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33589
|
+
});
|
33347
33590
|
var apiInterface = useMemo(function () {
|
33348
33591
|
var patchId = '${_id}';
|
33349
33592
|
if (type === 'eitems') patchId = '${typeNo}';
|
@@ -33438,6 +33681,10 @@ var TableTabGroups = observer(function () {
|
|
33438
33681
|
organizationId = _useModule.organizationId,
|
33439
33682
|
apiConfig = _useModule.apiConfig,
|
33440
33683
|
selectedPackage = _useModule.selectedPackage;
|
33684
|
+
useTools({
|
33685
|
+
packageId: packageId,
|
33686
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33687
|
+
});
|
33441
33688
|
var applicationData = useMemo(function () {
|
33442
33689
|
return {
|
33443
33690
|
packageId: packageId,
|
@@ -33538,6 +33785,10 @@ var TablePartlistPos = observer(function () {
|
|
33538
33785
|
organizationId = _useModule.organizationId,
|
33539
33786
|
apiConfig = _useModule.apiConfig,
|
33540
33787
|
selectedPackage = _useModule.selectedPackage;
|
33788
|
+
useTools({
|
33789
|
+
packageId: packageId,
|
33790
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33791
|
+
});
|
33541
33792
|
var posInvisibility = useMemo(function () {
|
33542
33793
|
return [{
|
33543
33794
|
name: t('backoffice.idmCatalogEditor.partlistpos.label.pi0'),
|
@@ -33983,8 +34234,8 @@ var space = "space-T5Mkd";
|
|
33983
34234
|
var input$1 = "input-SK-Fo";
|
33984
34235
|
var addButton$1 = "addButton-AVN8Y";
|
33985
34236
|
var helpText = "helpText-QYQQF";
|
33986
|
-
var css_248z$
|
33987
|
-
styleInject(css_248z$
|
34237
|
+
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";
|
34238
|
+
styleInject(css_248z$d);
|
33988
34239
|
|
33989
34240
|
function PriceFactorCellRenderer(props) {
|
33990
34241
|
var data = props.data,
|
@@ -34166,7 +34417,7 @@ function PriceFactorCellRenderer(props) {
|
|
34166
34417
|
});
|
34167
34418
|
}
|
34168
34419
|
|
34169
|
-
var container$
|
34420
|
+
var container$4 = "container-T4Tzz";
|
34170
34421
|
var price = "price-NjOOy";
|
34171
34422
|
var priceManual = "priceManual-i7wtQ";
|
34172
34423
|
var originalPrice = "originalPrice-V8MP5";
|
@@ -34174,8 +34425,8 @@ var difference = "difference-xT9ZP";
|
|
34174
34425
|
var differencePositive = "differencePositive-hGhZO";
|
34175
34426
|
var differenceNegative = "differenceNegative-3CEZA";
|
34176
34427
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
34177
|
-
var css_248z$
|
34178
|
-
styleInject(css_248z$
|
34428
|
+
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";
|
34429
|
+
styleInject(css_248z$c);
|
34179
34430
|
|
34180
34431
|
function PriceDisplayCellRenderer(props) {
|
34181
34432
|
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
@@ -34213,7 +34464,7 @@ function PriceDisplayCellRenderer(props) {
|
|
34213
34464
|
};
|
34214
34465
|
}, []);
|
34215
34466
|
return /*#__PURE__*/jsxs("div", {
|
34216
|
-
className: container$
|
34467
|
+
className: container$4,
|
34217
34468
|
children: [/*#__PURE__*/jsxs("span", {
|
34218
34469
|
className: classnames(price, _defineProperty({}, priceManual, isManualPrice)),
|
34219
34470
|
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 && ' *']
|
@@ -34268,8 +34519,8 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
34268
34519
|
var wrapper$3 = "wrapper-5t6RT";
|
34269
34520
|
var input = "input-leHam";
|
34270
34521
|
var disabled$1 = "disabled-Llkqu";
|
34271
|
-
var css_248z$
|
34272
|
-
styleInject(css_248z$
|
34522
|
+
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";
|
34523
|
+
styleInject(css_248z$b);
|
34273
34524
|
|
34274
34525
|
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; }
|
34275
34526
|
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; }
|
@@ -34291,8 +34542,8 @@ function PriceFactorInput(props) {
|
|
34291
34542
|
|
34292
34543
|
var inputHeader = "input-header--4KDP";
|
34293
34544
|
var factorInput = "factor-input-MX85Z";
|
34294
|
-
var css_248z$
|
34295
|
-
styleInject(css_248z$
|
34545
|
+
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";
|
34546
|
+
styleInject(css_248z$a);
|
34296
34547
|
|
34297
34548
|
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; }
|
34298
34549
|
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; }
|
@@ -34695,6 +34946,10 @@ var TablePriceList = observer(function () {
|
|
34695
34946
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
34696
34947
|
selectedNodeId = _React$useState4[0],
|
34697
34948
|
setSelectedNodeId = _React$useState4[1];
|
34949
|
+
useTools({
|
34950
|
+
packageId: packageId,
|
34951
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
34952
|
+
});
|
34698
34953
|
var setNodeDataValue = useCallback(function (data) {
|
34699
34954
|
spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
|
34700
34955
|
}, [selectedNodeId]);
|
@@ -35153,8 +35408,8 @@ function UploadButton (_ref) {
|
|
35153
35408
|
}
|
35154
35409
|
|
35155
35410
|
var errorDescription = "error-description-VE3n0";
|
35156
|
-
var css_248z$
|
35157
|
-
styleInject(css_248z$
|
35411
|
+
var css_248z$9 = ".error-description-VE3n0 {\n max-height: 100px;\n overflow: auto;\n scrollbar-width: thin;\n}\n";
|
35412
|
+
styleInject(css_248z$9);
|
35158
35413
|
|
35159
35414
|
function IDMImportForm (_ref) {
|
35160
35415
|
var idmService = _ref.idmService,
|
@@ -35425,6 +35680,20 @@ var useCatalogContext = function useCatalogContext() {
|
|
35425
35680
|
});
|
35426
35681
|
};
|
35427
35682
|
|
35683
|
+
function InformationButton(_ref) {
|
35684
|
+
var codex = _ref.codex;
|
35685
|
+
var _useTools = useTools({}),
|
35686
|
+
openInformationWindow = _useTools.openInformationWindow;
|
35687
|
+
return /*#__PURE__*/jsx(Button, {
|
35688
|
+
type: "text",
|
35689
|
+
icon: /*#__PURE__*/jsx(InfoCircleOutlined$1, {}),
|
35690
|
+
onClick: function onClick(e) {
|
35691
|
+
e.stopPropagation();
|
35692
|
+
openInformationWindow(codex, true);
|
35693
|
+
}
|
35694
|
+
});
|
35695
|
+
}
|
35696
|
+
|
35428
35697
|
var TableCatalogs = observer(function () {
|
35429
35698
|
var root = useStore();
|
35430
35699
|
var _useTranslation = useTranslation(),
|
@@ -35444,6 +35713,9 @@ var TableCatalogs = observer(function () {
|
|
35444
35713
|
setShowApi2 = _React$useState2[1];
|
35445
35714
|
var _useCatalogContext = useCatalogContext([]),
|
35446
35715
|
setSelectedCatalog = _useCatalogContext.setSelectedCatalog;
|
35716
|
+
useTools({
|
35717
|
+
mainInformationWindowCodex: 'IDM_CATALOG_TABLE_INFO'
|
35718
|
+
});
|
35447
35719
|
var organizationId = root.dataStore.organizationId;
|
35448
35720
|
var apiConfig = root.configurationStore.apiConfig;
|
35449
35721
|
var applicationData = useMemo(function () {
|
@@ -35621,7 +35893,12 @@ var TableCatalogs = observer(function () {
|
|
35621
35893
|
}] : []), [{
|
35622
35894
|
headerName: 'backoffice.idmCatalog.packages.label.name',
|
35623
35895
|
field: 'name',
|
35624
|
-
required: true
|
35896
|
+
required: true,
|
35897
|
+
headerComponentParams: {
|
35898
|
+
additionalElement: /*#__PURE__*/jsx(InformationButton, {
|
35899
|
+
codex: "IDM_CATALOG_TABLE_NAME_FIELD_INFO"
|
35900
|
+
})
|
35901
|
+
}
|
35625
35902
|
}, {
|
35626
35903
|
headerName: 'backoffice.idmCatalog.general.label.filename',
|
35627
35904
|
field: 'filename',
|
@@ -36106,7 +36383,11 @@ var TableCatalogs = observer(function () {
|
|
36106
36383
|
return /*#__PURE__*/jsxs(Fragment, {
|
36107
36384
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36108
36385
|
title: /*#__PURE__*/jsxs("div", {
|
36109
|
-
children: [
|
36386
|
+
children: [/*#__PURE__*/jsxs(Space$1, {
|
36387
|
+
children: [t('backoffice.menu.items.label.IDMEditorTableCatalogs'), /*#__PURE__*/jsx(InformationButton, {
|
36388
|
+
codex: "IDM_CATALOG_TABLE_INFO"
|
36389
|
+
})]
|
36390
|
+
}), /*#__PURE__*/jsxs(Space$1, {
|
36110
36391
|
style: {
|
36111
36392
|
"float": 'right'
|
36112
36393
|
},
|
@@ -36360,32 +36641,6 @@ function useModule (currentModules) {
|
|
36360
36641
|
useEffect(function () {
|
36361
36642
|
root.contentStore.updateAdditionalElement('catalogs', menuItems, currentModules);
|
36362
36643
|
}, [menuItems, location.pathname]);
|
36363
|
-
|
36364
|
-
//updating tools
|
36365
|
-
|
36366
|
-
useEffect(function () {
|
36367
|
-
var tools = [];
|
36368
|
-
if (catalogId) tools.push({
|
36369
|
-
name: 'Konfigurator',
|
36370
|
-
parameters: {
|
36371
|
-
catalogId: catalogId,
|
36372
|
-
isIDMData: '1'
|
36373
|
-
},
|
36374
|
-
type: 'Configurator',
|
36375
|
-
id: 'WYSIWYG',
|
36376
|
-
startWidth: 600,
|
36377
|
-
defaultPinned: true,
|
36378
|
-
elementProps: {
|
36379
|
-
useIDMService: true,
|
36380
|
-
catalogId: catalogId,
|
36381
|
-
showCatalogSelection: true
|
36382
|
-
}
|
36383
|
-
});
|
36384
|
-
root.contentStore.rightToolBar.tools = tools;
|
36385
|
-
return function () {
|
36386
|
-
root.contentStore.rightToolBar.tools = [];
|
36387
|
-
};
|
36388
|
-
}, [catalogId, selectedCatalog, currentModules]);
|
36389
36644
|
return {
|
36390
36645
|
organizationId: organizationId,
|
36391
36646
|
apiConfig: root.configurationStore.apiConfig,
|
@@ -36670,9 +36925,13 @@ var TableItems = observer(function () {
|
|
36670
36925
|
t = _useTranslation.t;
|
36671
36926
|
var _useModule = useModule(['items']),
|
36672
36927
|
selectedCatalog = _useModule.selectedCatalog,
|
36928
|
+
catalogId = _useModule.catalogId,
|
36673
36929
|
selectedSerie = _useModule.selectedSerie,
|
36674
36930
|
apiConfig = _useModule.apiConfig,
|
36675
36931
|
organizationId = _useModule.organizationId;
|
36932
|
+
useTools({
|
36933
|
+
catalogId: catalogId
|
36934
|
+
});
|
36676
36935
|
return /*#__PURE__*/jsxs(Fragment, {
|
36677
36936
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36678
36937
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -36699,7 +36958,6 @@ var TableItems = observer(function () {
|
|
36699
36958
|
var TableSeries = observer(function () {
|
36700
36959
|
var _useTranslation = useTranslation(),
|
36701
36960
|
t = _useTranslation.t;
|
36702
|
-
var root = useStore();
|
36703
36961
|
var _useModule = useModule(['series']),
|
36704
36962
|
selectedCatalog = _useModule.selectedCatalog,
|
36705
36963
|
catalogId = _useModule.catalogId,
|
@@ -36709,9 +36967,15 @@ var TableSeries = observer(function () {
|
|
36709
36967
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
36710
36968
|
selectedSerie = _React$useState2[0],
|
36711
36969
|
setSelectedSerie = _React$useState2[1];
|
36970
|
+
var _useTools = useTools({
|
36971
|
+
mainInformationWindowCodex: 'IDM_SERIES_TABLE_INFO',
|
36972
|
+
catalogId: catalogId
|
36973
|
+
}),
|
36974
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
36975
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
36712
36976
|
useEffect(function () {
|
36713
36977
|
if (selectedSerie !== null && selectedSerie !== void 0 && selectedSerie._id) {
|
36714
|
-
|
36978
|
+
addSecondaryTables({
|
36715
36979
|
id: 'items',
|
36716
36980
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableItems'),
|
36717
36981
|
elementComponent: Items$1,
|
@@ -36720,21 +36984,12 @@ var TableSeries = observer(function () {
|
|
36720
36984
|
selectedCatalog: selectedCatalog,
|
36721
36985
|
selectedSerie: selectedSerie._id,
|
36722
36986
|
apiConfig: apiConfig
|
36723
|
-
}
|
36724
|
-
|
36725
|
-
defaultPinned: false,
|
36726
|
-
defaultOpen: false
|
36727
|
-
}];
|
36987
|
+
}
|
36988
|
+
});
|
36728
36989
|
} else {
|
36729
|
-
|
36990
|
+
removeSecondaryTables('items');
|
36730
36991
|
}
|
36731
36992
|
}, [selectedSerie, t, organizationId, catalogId, apiConfig]);
|
36732
|
-
useEffect(function () {
|
36733
|
-
//remove items table, when series are unmounted
|
36734
|
-
return function () {
|
36735
|
-
root.contentStore.bottomToolBar.tools = [];
|
36736
|
-
};
|
36737
|
-
}, [root.contentStore.bottomToolBar]);
|
36738
36993
|
var applicationData = useMemo(function () {
|
36739
36994
|
return {
|
36740
36995
|
catalogId: catalogId,
|
@@ -36870,7 +37125,11 @@ var TableSeries = observer(function () {
|
|
36870
37125
|
return /*#__PURE__*/jsxs(Fragment, {
|
36871
37126
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36872
37127
|
title: /*#__PURE__*/jsxs("div", {
|
36873
|
-
children: [
|
37128
|
+
children: [/*#__PURE__*/jsxs(Space$1, {
|
37129
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableSeries'), /*#__PURE__*/jsx(InformationButton, {
|
37130
|
+
codex: "IDM_SERIES_TABLE_INFO"
|
37131
|
+
})]
|
37132
|
+
}), /*#__PURE__*/jsx(Space$1, {
|
36874
37133
|
style: {
|
36875
37134
|
"float": 'right'
|
36876
37135
|
},
|
@@ -37055,8 +37314,12 @@ var TableFeatures = observer(function () {
|
|
37055
37314
|
t = _useTranslation.t;
|
37056
37315
|
var _useModule = useModule(['features']),
|
37057
37316
|
selectedCatalog = _useModule.selectedCatalog,
|
37317
|
+
catalogId = _useModule.catalogId,
|
37058
37318
|
organizationId = _useModule.organizationId,
|
37059
37319
|
apiConfig = _useModule.apiConfig;
|
37320
|
+
useTools({
|
37321
|
+
catalogId: catalogId
|
37322
|
+
});
|
37060
37323
|
return /*#__PURE__*/jsxs(Fragment, {
|
37061
37324
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
37062
37325
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -37233,8 +37496,12 @@ var TableOptions = observer(function () {
|
|
37233
37496
|
t = _useTranslation.t;
|
37234
37497
|
var _useModule = useModule(['options']),
|
37235
37498
|
selectedCatalog = _useModule.selectedCatalog,
|
37499
|
+
catalogId = _useModule.catalogId,
|
37236
37500
|
apiConfig = _useModule.apiConfig,
|
37237
37501
|
organizationId = _useModule.organizationId;
|
37502
|
+
useTools({
|
37503
|
+
catalogId: catalogId
|
37504
|
+
});
|
37238
37505
|
return /*#__PURE__*/jsxs(Fragment, {
|
37239
37506
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
37240
37507
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -37258,7 +37525,6 @@ var TableOptions = observer(function () {
|
|
37258
37525
|
var TableFeatureClasses = observer(function () {
|
37259
37526
|
var _useTranslation = useTranslation(),
|
37260
37527
|
t = _useTranslation.t;
|
37261
|
-
var root = useStore();
|
37262
37528
|
var _useModule = useModule(['featureclasses']),
|
37263
37529
|
selectedCatalog = _useModule.selectedCatalog,
|
37264
37530
|
catalogId = _useModule.catalogId,
|
@@ -37268,9 +37534,14 @@ var TableFeatureClasses = observer(function () {
|
|
37268
37534
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
37269
37535
|
selectedFeatureClass = _React$useState2[0],
|
37270
37536
|
setSelectedFeatureClass = _React$useState2[1];
|
37537
|
+
var _useTools = useTools({
|
37538
|
+
catalogId: catalogId
|
37539
|
+
}),
|
37540
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
37541
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
37271
37542
|
useEffect(function () {
|
37272
37543
|
if (selectedFeatureClass !== null && selectedFeatureClass !== void 0 && selectedFeatureClass._id) {
|
37273
|
-
|
37544
|
+
addSecondaryTables({
|
37274
37545
|
id: 'features',
|
37275
37546
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
37276
37547
|
elementComponent: Features,
|
@@ -37279,21 +37550,12 @@ var TableFeatureClasses = observer(function () {
|
|
37279
37550
|
selectedCatalog: selectedCatalog,
|
37280
37551
|
apiConfig: apiConfig,
|
37281
37552
|
featureClassId: selectedFeatureClass._id
|
37282
|
-
}
|
37283
|
-
|
37284
|
-
defaultPinned: false,
|
37285
|
-
defaultOpen: false
|
37286
|
-
}];
|
37553
|
+
}
|
37554
|
+
});
|
37287
37555
|
} else {
|
37288
|
-
|
37556
|
+
removeSecondaryTables('features');
|
37289
37557
|
}
|
37290
37558
|
}, [selectedFeatureClass, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id]);
|
37291
|
-
useEffect(function () {
|
37292
|
-
//remove features table, when featureclasses are unmounted
|
37293
|
-
return function () {
|
37294
|
-
root.contentStore.bottomToolBar.tools = [];
|
37295
|
-
};
|
37296
|
-
}, []);
|
37297
37559
|
var applicationData = useMemo(function () {
|
37298
37560
|
return {
|
37299
37561
|
catalogId: catalogId,
|
@@ -37396,7 +37658,7 @@ var TableFeatureClasses = observer(function () {
|
|
37396
37658
|
});
|
37397
37659
|
});
|
37398
37660
|
|
37399
|
-
var container$
|
37661
|
+
var container$3 = "container-wGptw";
|
37400
37662
|
var scrollableContent = "scrollable-content-zRBJy";
|
37401
37663
|
var sectionTitle = "section-title-s2qIs";
|
37402
37664
|
var actionItem = "action-item-LjQVf";
|
@@ -37407,8 +37669,8 @@ var formContent = "form-content-H-AkE";
|
|
37407
37669
|
var footerButtons = "footer-buttons-4cwcu";
|
37408
37670
|
var addButton = "add-button-w-6Lk";
|
37409
37671
|
var footerContent = "footer-content-sOrT1";
|
37410
|
-
var css_248z$
|
37411
|
-
styleInject(css_248z$
|
37672
|
+
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";
|
37673
|
+
styleInject(css_248z$8);
|
37412
37674
|
|
37413
37675
|
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; }
|
37414
37676
|
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; }
|
@@ -37812,7 +38074,7 @@ function OptionCombinationsExpandedEditor(_ref) {
|
|
37812
38074
|
});
|
37813
38075
|
}, [showForm, editingIndex, t]);
|
37814
38076
|
return /*#__PURE__*/jsx("div", {
|
37815
|
-
className: container$
|
38077
|
+
className: container$3,
|
37816
38078
|
children: !showForm ? /*#__PURE__*/jsxs(Fragment, {
|
37817
38079
|
children: [/*#__PURE__*/jsx(Typography.Title, {
|
37818
38080
|
level: 5,
|
@@ -38057,7 +38319,6 @@ function OptionCombinations(_ref) {
|
|
38057
38319
|
var TableDecisions = observer(function () {
|
38058
38320
|
var _useTranslation = useTranslation(),
|
38059
38321
|
t = _useTranslation.t;
|
38060
|
-
var root = useStore();
|
38061
38322
|
var spreadsheetRef = useRef(null);
|
38062
38323
|
var _useModule = useModule(['decisions']),
|
38063
38324
|
selectedCatalog = _useModule.selectedCatalog,
|
@@ -38072,12 +38333,17 @@ var TableDecisions = observer(function () {
|
|
38072
38333
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
38073
38334
|
selectedNodeId = _React$useState4[0],
|
38074
38335
|
setSelectedNodeId = _React$useState4[1];
|
38336
|
+
var _useTools = useTools({
|
38337
|
+
catalogId: catalogId
|
38338
|
+
}),
|
38339
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
38340
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
38075
38341
|
var setNodeDataValue = useCallback(function (data) {
|
38076
38342
|
spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
|
38077
38343
|
}, [selectedNodeId]);
|
38078
38344
|
useEffect(function () {
|
38079
38345
|
if (selectedDecision !== null && selectedDecision !== void 0 && selectedDecision._id) {
|
38080
|
-
|
38346
|
+
addSecondaryTables({
|
38081
38347
|
id: 'optionCombinations',
|
38082
38348
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionCombinations'),
|
38083
38349
|
elementComponent: OptionCombinations,
|
@@ -38086,21 +38352,12 @@ var TableDecisions = observer(function () {
|
|
38086
38352
|
catalogId: catalogId,
|
38087
38353
|
apiConfig: apiConfig,
|
38088
38354
|
setNodeDataValue: setNodeDataValue
|
38089
|
-
}
|
38090
|
-
|
38091
|
-
defaultPinned: false,
|
38092
|
-
defaultOpen: false
|
38093
|
-
}];
|
38355
|
+
}
|
38356
|
+
});
|
38094
38357
|
} else {
|
38095
|
-
|
38358
|
+
removeSecondaryTables('optionCombinations');
|
38096
38359
|
}
|
38097
38360
|
}, [selectedDecision, setNodeDataValue]);
|
38098
|
-
useEffect(function () {
|
38099
|
-
//remove optionCombinations table, when decisions are unmounted
|
38100
|
-
return function () {
|
38101
|
-
root.contentStore.bottomToolBar.tools = [];
|
38102
|
-
};
|
38103
|
-
}, []);
|
38104
38361
|
var applicationData = useMemo(function () {
|
38105
38362
|
return {
|
38106
38363
|
catalogId: catalogId,
|
@@ -38283,6 +38540,9 @@ var TableDetailInfos = observer(function () {
|
|
38283
38540
|
catalogId = _useModule.catalogId,
|
38284
38541
|
organizationId = _useModule.organizationId,
|
38285
38542
|
apiConfig = _useModule.apiConfig;
|
38543
|
+
useTools({
|
38544
|
+
catalogId: catalogId
|
38545
|
+
});
|
38286
38546
|
var applicationData = useMemo(function () {
|
38287
38547
|
return {
|
38288
38548
|
catalogId: catalogId,
|
@@ -38626,7 +38886,6 @@ function PartlistPos(_ref) {
|
|
38626
38886
|
var TablePartlists = observer(function () {
|
38627
38887
|
var _useTranslation = useTranslation(),
|
38628
38888
|
t = _useTranslation.t;
|
38629
|
-
var root = useStore();
|
38630
38889
|
var _useModule = useModule(['partlists']),
|
38631
38890
|
selectedCatalog = _useModule.selectedCatalog,
|
38632
38891
|
catalogId = _useModule.catalogId,
|
@@ -38636,9 +38895,14 @@ var TablePartlists = observer(function () {
|
|
38636
38895
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
38637
38896
|
selectedPartlist = _React$useState2[0],
|
38638
38897
|
setSelectedPartlist = _React$useState2[1];
|
38898
|
+
var _useTools = useTools({
|
38899
|
+
catalogId: catalogId
|
38900
|
+
}),
|
38901
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
38902
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
38639
38903
|
useEffect(function () {
|
38640
38904
|
if (selectedPartlist !== null && selectedPartlist !== void 0 && selectedPartlist._id) {
|
38641
|
-
|
38905
|
+
addSecondaryTables({
|
38642
38906
|
id: 'partlistpos',
|
38643
38907
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlistpos'),
|
38644
38908
|
elementComponent: PartlistPos,
|
@@ -38647,21 +38911,12 @@ var TablePartlists = observer(function () {
|
|
38647
38911
|
catalogId: catalogId,
|
38648
38912
|
apiConfig: apiConfig,
|
38649
38913
|
partlistId: selectedPartlist._id
|
38650
|
-
}
|
38651
|
-
|
38652
|
-
defaultPinned: false,
|
38653
|
-
defaultOpen: false
|
38654
|
-
}];
|
38914
|
+
}
|
38915
|
+
});
|
38655
38916
|
} else {
|
38656
|
-
|
38917
|
+
removeSecondaryTables('partlistpos');
|
38657
38918
|
}
|
38658
38919
|
}, [selectedPartlist, catalogId, organizationId]);
|
38659
|
-
useEffect(function () {
|
38660
|
-
//remove partilstpos table, when partlists are unmounted
|
38661
|
-
return function () {
|
38662
|
-
root.contentStore.bottomToolBar.tools = [];
|
38663
|
-
};
|
38664
|
-
}, []);
|
38665
38920
|
var applicationData = useMemo(function () {
|
38666
38921
|
return {
|
38667
38922
|
organizationId: organizationId,
|
@@ -39156,6 +39411,11 @@ var TablePriceFeatureGroups = observer(function () {
|
|
39156
39411
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
39157
39412
|
isPercentage = _React$useState6[0],
|
39158
39413
|
setIsPercentage = _React$useState6[1];
|
39414
|
+
var _useTools = useTools({
|
39415
|
+
catalogId: catalogId
|
39416
|
+
}),
|
39417
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
39418
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
39159
39419
|
var setNodeDataValue = useCallback(function (data) {
|
39160
39420
|
var _spreadsheetRef$curre;
|
39161
39421
|
return (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 ? void 0 : _spreadsheetRef$curre.setNodeDataValue(selectedNodeId, data);
|
@@ -39163,7 +39423,7 @@ var TablePriceFeatureGroups = observer(function () {
|
|
39163
39423
|
useEffect(function () {
|
39164
39424
|
if (selectedPriceFeatureGroup !== null && selectedPriceFeatureGroup !== void 0 && selectedPriceFeatureGroup._id) {
|
39165
39425
|
var _root$contentStore$bo;
|
39166
|
-
|
39426
|
+
addSecondaryTables({
|
39167
39427
|
id: 'priceFeatureGroupFinishes',
|
39168
39428
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroupFinishes'),
|
39169
39429
|
elementComponent: PriceFeatureGroupFinishes,
|
@@ -39186,23 +39446,14 @@ var TablePriceFeatureGroups = observer(function () {
|
|
39186
39446
|
setNodeDataValue: setNodeDataValue,
|
39187
39447
|
setIsPercentage: setIsPercentage
|
39188
39448
|
},
|
39189
|
-
startWidth: 300,
|
39190
|
-
defaultPinned: false,
|
39191
|
-
defaultOpen: false,
|
39192
39449
|
disabled: isPercentage === false
|
39193
|
-
}
|
39450
|
+
});
|
39194
39451
|
var openTool = (_root$contentStore$bo = root.contentStore.bottomToolBar.currentOpenTool) === null || _root$contentStore$bo === void 0 ? void 0 : _root$contentStore$bo.id;
|
39195
39452
|
root.contentStore.bottomToolBar.openTool(isPercentage === true ? 'priceFeatureGroupPercentageSurcharge' : isPercentage === false ? 'priceFeatureGroupFinishes' : openTool !== null && openTool !== void 0 ? openTool : 'priceFeatureGroupFinishes');
|
39196
39453
|
} else {
|
39197
|
-
|
39454
|
+
removeSecondaryTables('priceFeatureGroupFinishes', 'priceFeatureGroupPercentageSurcharge');
|
39198
39455
|
}
|
39199
39456
|
}, [selectedPriceFeatureGroup, setNodeDataValue, isPercentage]);
|
39200
|
-
useEffect(function () {
|
39201
|
-
//remove secondary table, when pricefeaturegroups are unmounted
|
39202
|
-
return function () {
|
39203
|
-
root.contentStore.bottomToolBar.tools = [];
|
39204
|
-
};
|
39205
|
-
}, []);
|
39206
39457
|
var applicationData = useMemo(function () {
|
39207
39458
|
return {
|
39208
39459
|
catalogId: catalogId,
|
@@ -39344,6 +39595,9 @@ var TablePrices = observer(function () {
|
|
39344
39595
|
catalogId = _useModule.catalogId,
|
39345
39596
|
apiConfig = _useModule.apiConfig,
|
39346
39597
|
organizationId = _useModule.organizationId;
|
39598
|
+
useTools({
|
39599
|
+
catalogId: catalogId
|
39600
|
+
});
|
39347
39601
|
var applicationData = useMemo(function () {
|
39348
39602
|
return {
|
39349
39603
|
organizationId: organizationId,
|
@@ -39519,7 +39773,6 @@ function Items(_ref) {
|
|
39519
39773
|
var TableOptionGroups = observer(function () {
|
39520
39774
|
var _useTranslation = useTranslation(),
|
39521
39775
|
t = _useTranslation.t;
|
39522
|
-
var root = useStore();
|
39523
39776
|
var _useModule = useModule(['optiongroups']),
|
39524
39777
|
selectedCatalog = _useModule.selectedCatalog,
|
39525
39778
|
catalogId = _useModule.catalogId,
|
@@ -39529,9 +39782,14 @@ var TableOptionGroups = observer(function () {
|
|
39529
39782
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
39530
39783
|
selectedOptionGroup = _React$useState2[0],
|
39531
39784
|
setSelectedOptionGroup = _React$useState2[1];
|
39785
|
+
var _useTools = useTools({
|
39786
|
+
catalogId: catalogId
|
39787
|
+
}),
|
39788
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
39789
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
39532
39790
|
useEffect(function () {
|
39533
39791
|
if (selectedOptionGroup !== null && selectedOptionGroup !== void 0 && selectedOptionGroup.optionGroupKey) {
|
39534
|
-
|
39792
|
+
addSecondaryTables({
|
39535
39793
|
id: 'optionGroupOptions',
|
39536
39794
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroupOptions'),
|
39537
39795
|
elementComponent: Items,
|
@@ -39540,21 +39798,12 @@ var TableOptionGroups = observer(function () {
|
|
39540
39798
|
selectedCatalog: selectedCatalog,
|
39541
39799
|
selectedOptionGroup: selectedOptionGroup.optionGroupKey,
|
39542
39800
|
apiConfig: apiConfig
|
39543
|
-
}
|
39544
|
-
|
39545
|
-
defaultPinned: false,
|
39546
|
-
defaultOpen: false
|
39547
|
-
}];
|
39801
|
+
}
|
39802
|
+
});
|
39548
39803
|
} else {
|
39549
|
-
|
39804
|
+
removeSecondaryTables('optionGroupOptions');
|
39550
39805
|
}
|
39551
39806
|
}, [selectedOptionGroup, t, organizationId, catalogId, apiConfig]);
|
39552
|
-
useEffect(function () {
|
39553
|
-
//remove items table, when series are unmounted
|
39554
|
-
return function () {
|
39555
|
-
root.contentStore.bottomToolBar.tools = [];
|
39556
|
-
};
|
39557
|
-
}, [root.contentStore.bottomToolBar]);
|
39558
39807
|
var applicationData = useMemo(function () {
|
39559
39808
|
return {
|
39560
39809
|
catalogId: catalogId,
|
@@ -39785,11 +40034,14 @@ function TableCollections () {
|
|
39785
40034
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
39786
40035
|
selectedNodeId = _React$useState4[0],
|
39787
40036
|
setSelectedNodeId = _React$useState4[1];
|
40037
|
+
var _useTools = useTools({}),
|
40038
|
+
addSecondaryTables = _useTools.addSecondaryTables,
|
40039
|
+
removeSecondaryTables = _useTools.removeSecondaryTables;
|
39788
40040
|
var organizationId = root.dataStore.organizationId;
|
39789
40041
|
var apiConfig = root.configurationStore.apiConfig;
|
39790
40042
|
useEffect(function () {
|
39791
40043
|
if (selectedCollection !== null && selectedCollection !== void 0 && selectedCollection._id) {
|
39792
|
-
|
40044
|
+
addSecondaryTables({
|
39793
40045
|
id: 'collectionMembers',
|
39794
40046
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableCollectionmembers'),
|
39795
40047
|
elementComponent: CollectionMembers,
|
@@ -39797,20 +40049,12 @@ function TableCollections () {
|
|
39797
40049
|
collection: selectedCollection,
|
39798
40050
|
organizationId: organizationId,
|
39799
40051
|
apiConfig: apiConfig
|
39800
|
-
}
|
39801
|
-
|
39802
|
-
defaultPinned: false,
|
39803
|
-
defaultOpen: false
|
39804
|
-
}];
|
40052
|
+
}
|
40053
|
+
});
|
39805
40054
|
} else {
|
39806
|
-
|
40055
|
+
removeSecondaryTables('collectionMembers');
|
39807
40056
|
}
|
39808
40057
|
}, [selectedCollection]);
|
39809
|
-
useEffect(function () {
|
39810
|
-
return function () {
|
39811
|
-
root.contentStore.bottomToolBar.tools = [];
|
39812
|
-
};
|
39813
|
-
}, []);
|
39814
40058
|
var applicationData = useMemo(function () {
|
39815
40059
|
return {
|
39816
40060
|
organizationId: organizationId
|
@@ -40299,8 +40543,8 @@ var Content = observer(ContentWrapper);
|
|
40299
40543
|
var layout = "layout-gqKsp";
|
40300
40544
|
var contentWrapper = "content-wrapper-mQSc0";
|
40301
40545
|
var detail = "detail-WeK8Q";
|
40302
|
-
var css_248z$
|
40303
|
-
styleInject(css_248z$
|
40546
|
+
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";
|
40547
|
+
styleInject(css_248z$7);
|
40304
40548
|
|
40305
40549
|
function Detail(_ref) {
|
40306
40550
|
var _info$description, _container$current, _info$width, _info$submitButtonTex, _info$data;
|
@@ -40642,8 +40886,8 @@ var Modal$1 = observer(Modal);
|
|
40642
40886
|
|
40643
40887
|
var snow = "snow-14T01";
|
40644
40888
|
var sun = "sun-ijIPS";
|
40645
|
-
var css_248z$
|
40646
|
-
styleInject(css_248z$
|
40889
|
+
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";
|
40890
|
+
styleInject(css_248z$6);
|
40647
40891
|
|
40648
40892
|
var SnowAnimation = function SnowAnimation(props) {
|
40649
40893
|
var _useState = useState(),
|
@@ -40795,7 +41039,7 @@ var MenuWrapper = function MenuWrapper() {
|
|
40795
41039
|
};
|
40796
41040
|
var Navigation = observer(MenuWrapper);
|
40797
41041
|
|
40798
|
-
var container$
|
41042
|
+
var container$2 = "container-BucHG";
|
40799
41043
|
var right = "right--XETU";
|
40800
41044
|
var unpinnedRight = "unpinned-right-tbnNb";
|
40801
41045
|
var draghandle = "draghandle-f5b0N";
|
@@ -40808,18 +41052,18 @@ var sel = "sel-iUm8X";
|
|
40808
41052
|
var button = "button-K-0KR";
|
40809
41053
|
var toolbarLayout = "toolbar-layout-DUuBn";
|
40810
41054
|
var toolbarContent = "toolbar-content-GxyU6";
|
40811
|
-
var css_248z$
|
40812
|
-
styleInject(css_248z$
|
41055
|
+
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";
|
41056
|
+
styleInject(css_248z$5);
|
40813
41057
|
|
40814
41058
|
var wrapper$2 = "wrapper-Q13-g";
|
40815
41059
|
var confContainer = "conf-container-Sm5LL";
|
40816
|
-
var css_248z$
|
40817
|
-
styleInject(css_248z$
|
41060
|
+
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";
|
41061
|
+
styleInject(css_248z$4);
|
40818
41062
|
|
40819
41063
|
var wrapper$1 = "wrapper-IcNC5";
|
40820
41064
|
var select$1 = "select-jVMz-";
|
40821
|
-
var css_248z$
|
40822
|
-
styleInject(css_248z$
|
41065
|
+
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";
|
41066
|
+
styleInject(css_248z$3);
|
40823
41067
|
|
40824
41068
|
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; }
|
40825
41069
|
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; }
|
@@ -41270,8 +41514,8 @@ var FallbackComponent = function FallbackComponent(_ref2) {
|
|
41270
41514
|
|
41271
41515
|
var wrapper = "wrapper-NYRLn";
|
41272
41516
|
var select = "select-K2SWc";
|
41273
|
-
var css_248z$
|
41274
|
-
styleInject(css_248z$
|
41517
|
+
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";
|
41518
|
+
styleInject(css_248z$2);
|
41275
41519
|
|
41276
41520
|
var CatalogSelection = function CatalogSelection(_ref) {
|
41277
41521
|
var _ref$state = _ref.state,
|
@@ -41443,9 +41687,9 @@ var getTranslation = function getTranslation(text, lang) {
|
|
41443
41687
|
}
|
41444
41688
|
};
|
41445
41689
|
|
41446
|
-
var container = "container-Xbv0B";
|
41447
|
-
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";
|
41448
|
-
styleInject(css_248z);
|
41690
|
+
var container$1 = "container-Xbv0B";
|
41691
|
+
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";
|
41692
|
+
styleInject(css_248z$1);
|
41449
41693
|
|
41450
41694
|
var WsyiwygContentItem = function WsyiwygContentItem(_ref) {
|
41451
41695
|
var tool = _ref.tool,
|
@@ -41459,16 +41703,41 @@ var WsyiwygContentItem = function WsyiwygContentItem(_ref) {
|
|
41459
41703
|
errorCode: "BACKO_0004",
|
41460
41704
|
addToErrorLog: data,
|
41461
41705
|
children: /*#__PURE__*/jsx("div", {
|
41462
|
-
className: container,
|
41706
|
+
className: container$1,
|
41463
41707
|
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
41464
|
-
|
41465
|
-
|
41708
|
+
configuration: {
|
41709
|
+
content: data !== null && data !== void 0 ? data : []
|
41466
41710
|
}
|
41467
41711
|
})
|
41468
41712
|
})
|
41469
41713
|
});
|
41470
41714
|
};
|
41471
41715
|
|
41716
|
+
var container = "container-babS2";
|
41717
|
+
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";
|
41718
|
+
styleInject(css_248z);
|
41719
|
+
|
41720
|
+
var InformationWindow = function InformationWindow(_ref) {
|
41721
|
+
var _tool$parameters;
|
41722
|
+
var tool = _ref.tool;
|
41723
|
+
var root = useStore();
|
41724
|
+
var codex = (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.contentItemCodex;
|
41725
|
+
useEffect(function () {
|
41726
|
+
var _root$resetErrorBound;
|
41727
|
+
(_root$resetErrorBound = root.resetErrorBoundary) === null || _root$resetErrorBound === void 0 || _root$resetErrorBound.call(root);
|
41728
|
+
}, [tool.parameters]);
|
41729
|
+
return /*#__PURE__*/jsx(ErrorBoundary, {
|
41730
|
+
errorCode: "BACKO_0004",
|
41731
|
+
addToErrorLog: codex,
|
41732
|
+
children: /*#__PURE__*/jsx("div", {
|
41733
|
+
className: container,
|
41734
|
+
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
41735
|
+
contentItemCodex: codex
|
41736
|
+
})
|
41737
|
+
})
|
41738
|
+
});
|
41739
|
+
};
|
41740
|
+
|
41472
41741
|
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; }
|
41473
41742
|
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; }
|
41474
41743
|
var Toolbar = function Toolbar(_ref) {
|
@@ -41520,7 +41789,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
41520
41789
|
className: midHandle
|
41521
41790
|
})
|
41522
41791
|
}), !toolBar.hidden && toolBar.currentOpenTool && /*#__PURE__*/jsx("div", {
|
41523
|
-
className: classnames(container$
|
41792
|
+
className: classnames(container$2, _defineProperty({}, unpinnedRight, !toolBar.pinned && position === 'right')),
|
41524
41793
|
style: {
|
41525
41794
|
width: position === 'right' ? toolBar.width : undefined,
|
41526
41795
|
minWidth: position === 'right' ? toolBar.width : undefined,
|
@@ -41586,6 +41855,12 @@ function ToolElement(_ref2) {
|
|
41586
41855
|
toolbar: toolbar
|
41587
41856
|
});
|
41588
41857
|
break;
|
41858
|
+
case 'InformationWindow':
|
41859
|
+
Tool = /*#__PURE__*/jsx(InformationWindow, {
|
41860
|
+
tool: tool,
|
41861
|
+
toolbar: toolbar
|
41862
|
+
});
|
41863
|
+
break;
|
41589
41864
|
}
|
41590
41865
|
var C = useMemo(function () {
|
41591
41866
|
return tool.elementComponent;
|