@crystaldesign/diva-backoffice 26.11.0-beta.3 → 26.11.0-beta.5
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 +712 -580
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts +17 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts +4 -5
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/IdmCatalogs.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts +33 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/package.json +10 -10
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts +0 -31
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts.map +0 -1
package/build/esm/index.js
CHANGED
|
@@ -149,8 +149,6 @@ import JSZip from 'jszip';
|
|
|
149
149
|
import UploadOutlined$1 from '@ant-design/icons/lib/icons/UploadOutlined';
|
|
150
150
|
import { GridError } from '@crystaldesign/spreadsheet/errors';
|
|
151
151
|
import { MediaDetailCard } from '@crystaldesign/assetmanager';
|
|
152
|
-
import Checkbox$3 from 'antd/es/checkbox';
|
|
153
|
-
import InputNumber$1 from 'antd/es/input-number';
|
|
154
152
|
import Select$1 from 'antd/es/select';
|
|
155
153
|
import Form$3 from 'antd/es/form';
|
|
156
154
|
import ArrowLeftOutlined from '@ant-design/icons/ArrowLeftOutlined';
|
|
@@ -203,8 +201,8 @@ import { GoogleGenAI } from '@google/genai';
|
|
|
203
201
|
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; } } }; }
|
|
204
202
|
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; } }
|
|
205
203
|
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; }
|
|
206
|
-
function ownKeys$
|
|
207
|
-
function _objectSpread$
|
|
204
|
+
function ownKeys$1S(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
205
|
+
function _objectSpread$1S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
208
206
|
var LOG$q = getLogger('Backoffice', 'ApplyMapping');
|
|
209
207
|
function applyMapping (_ref) {
|
|
210
208
|
var mappable = _ref.mappable,
|
|
@@ -225,10 +223,10 @@ function applyMapping (_ref) {
|
|
|
225
223
|
var newValue = {};
|
|
226
224
|
newValue[newKey] = valueToAdd;
|
|
227
225
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
|
228
|
-
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$
|
|
226
|
+
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$1S(_objectSpread$1S({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
|
229
227
|
return startValue;
|
|
230
228
|
}
|
|
231
|
-
if (newIdx == 1) return _objectSpread$
|
|
229
|
+
if (newIdx == 1) return _objectSpread$1S(_objectSpread$1S({}, startValue), newValue);
|
|
232
230
|
return _getTarget(idx + 1, keys, startValue, newValue);
|
|
233
231
|
};
|
|
234
232
|
returnValue = _getTarget(0, key.split('.'), returnValue, value);
|
|
@@ -531,8 +529,8 @@ function getLeafColumns(columns) {
|
|
|
531
529
|
});
|
|
532
530
|
}
|
|
533
531
|
|
|
534
|
-
function ownKeys$
|
|
535
|
-
function _objectSpread$
|
|
532
|
+
function ownKeys$1R(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
533
|
+
function _objectSpread$1R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
536
534
|
var LOG$p = getLogger('Backoffice', 'ApiHandler');
|
|
537
535
|
var jp = require('jsonpath');
|
|
538
536
|
var _default$c = /*#__PURE__*/function () {
|
|
@@ -711,7 +709,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
711
709
|
_context2.next = 20;
|
|
712
710
|
return fetch(finalUrl, {
|
|
713
711
|
method: this._updateMethod,
|
|
714
|
-
headers: _objectSpread$
|
|
712
|
+
headers: _objectSpread$1R(_objectSpread$1R({}, jwt ? {
|
|
715
713
|
Authorization: 'Bearer ' + jwt
|
|
716
714
|
} : {}), {}, {
|
|
717
715
|
'Content-Type': 'application/json'
|
|
@@ -804,7 +802,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
804
802
|
rootStore: this._rootStore,
|
|
805
803
|
fallBackToParams: true
|
|
806
804
|
});
|
|
807
|
-
if (data) createData = _objectSpread$
|
|
805
|
+
if (data) createData = _objectSpread$1R({}, data);
|
|
808
806
|
} else if (data !== undefined) {
|
|
809
807
|
createData = applyMapping({
|
|
810
808
|
mappable: data,
|
|
@@ -1066,7 +1064,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1066
1064
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1067
1065
|
case 2:
|
|
1068
1066
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
|
1069
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1067
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$1R(_objectSpread$1R({}, filterServerSide), {}, {
|
|
1070
1068
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1071
1069
|
baseUrl: this._readListUrl,
|
|
1072
1070
|
prefilter: prefilter
|
|
@@ -1086,7 +1084,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1086
1084
|
});
|
|
1087
1085
|
case 6:
|
|
1088
1086
|
response = _context8.sent;
|
|
1089
|
-
return _context8.abrupt("return", _objectSpread$
|
|
1087
|
+
return _context8.abrupt("return", _objectSpread$1R(_objectSpread$1R({}, response), {}, {
|
|
1090
1088
|
data: response.data.map(function (d) {
|
|
1091
1089
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
|
1092
1090
|
})
|
|
@@ -1110,7 +1108,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1110
1108
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1111
1109
|
}
|
|
1112
1110
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
|
1113
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1111
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$1R(_objectSpread$1R({}, filterServerSide), {}, {
|
|
1114
1112
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1115
1113
|
baseUrl: this._readListUrl,
|
|
1116
1114
|
prefilter: prefilter
|
|
@@ -2025,8 +2023,8 @@ function buildContentTranslationItems(content, t) {
|
|
|
2025
2023
|
return translationItems;
|
|
2026
2024
|
}
|
|
2027
2025
|
|
|
2028
|
-
function ownKeys$
|
|
2029
|
-
function _objectSpread$
|
|
2026
|
+
function ownKeys$1Q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2027
|
+
function _objectSpread$1Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2030
2028
|
var PROMPT_RESOLUTION_VALUE_STRINGS = promptAndAiTesterOptions.aiImageTester.resolutionOptions.map(function (o) {
|
|
2031
2029
|
return o.apiValue;
|
|
2032
2030
|
});
|
|
@@ -2067,7 +2065,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
|
2067
2065
|
var _i$permission;
|
|
2068
2066
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
|
2069
2067
|
});
|
|
2070
|
-
config = _objectSpread$
|
|
2068
|
+
config = _objectSpread$1Q(_objectSpread$1Q({}, config), {}, {
|
|
2071
2069
|
items: filteredItems
|
|
2072
2070
|
});
|
|
2073
2071
|
}
|
|
@@ -14855,8 +14853,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
|
14855
14853
|
var navOverlay = "nav-overlay-rKJNC";
|
|
14856
14854
|
var navSettings = "nav-settings-82cjv";
|
|
14857
14855
|
var menuLabel = "menu-label-4dXQk";
|
|
14858
|
-
var css_248z$
|
|
14859
|
-
styleInject(css_248z$
|
|
14856
|
+
var css_248z$W = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
|
|
14857
|
+
styleInject(css_248z$W);
|
|
14860
14858
|
|
|
14861
14859
|
function MenuLabel (_ref) {
|
|
14862
14860
|
var disabled = _ref.disabled,
|
|
@@ -15098,8 +15096,8 @@ function getIcon(icon) {
|
|
|
15098
15096
|
return undefined;
|
|
15099
15097
|
}
|
|
15100
15098
|
|
|
15101
|
-
function ownKeys$
|
|
15102
|
-
function _objectSpread$
|
|
15099
|
+
function ownKeys$1P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15100
|
+
function _objectSpread$1P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15103
15101
|
/**
|
|
15104
15102
|
* Browser-persisted per-tool user preferences (docked width/pin/open + popout geometry).
|
|
15105
15103
|
* Keyed by the owning toolbar's preference key: the tool id, or one shared slot key for
|
|
@@ -15145,7 +15143,7 @@ function readToolPreferences(toolId) {
|
|
|
15145
15143
|
/** Merges the given fields into the tool's stored preferences. Best-effort — preferences are non-essential. */
|
|
15146
15144
|
function updateToolPreferences(toolId, patch) {
|
|
15147
15145
|
try {
|
|
15148
|
-
localStorage.setItem(STORAGE_PREFIX$1 + toolId, JSON.stringify(_objectSpread$
|
|
15146
|
+
localStorage.setItem(STORAGE_PREFIX$1 + toolId, JSON.stringify(_objectSpread$1P(_objectSpread$1P({}, readToolPreferences(toolId)), patch)));
|
|
15149
15147
|
} catch (_unused2) {
|
|
15150
15148
|
// storage unavailable / quota exceeded
|
|
15151
15149
|
}
|
|
@@ -15751,8 +15749,8 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
|
15751
15749
|
}]);
|
|
15752
15750
|
}();
|
|
15753
15751
|
|
|
15754
|
-
function ownKeys$
|
|
15755
|
-
function _objectSpread$
|
|
15752
|
+
function ownKeys$1O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15753
|
+
function _objectSpread$1O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15756
15754
|
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; } } }; }
|
|
15757
15755
|
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; } }
|
|
15758
15756
|
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; }
|
|
@@ -15898,7 +15896,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
15898
15896
|
if (index >= 0) {
|
|
15899
15897
|
this._additionalMenuElements[index] = {
|
|
15900
15898
|
key: key,
|
|
15901
|
-
element: _objectSpread$
|
|
15899
|
+
element: _objectSpread$1O(_objectSpread$1O({}, this._additionalMenuElements[index].element), {}, {
|
|
15902
15900
|
items: items,
|
|
15903
15901
|
selected: selected
|
|
15904
15902
|
})
|
|
@@ -15971,7 +15969,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
15971
15969
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
|
15972
15970
|
this.root.navigate('/' + path);
|
|
15973
15971
|
}
|
|
15974
|
-
this._menuElement1 = _objectSpread$
|
|
15972
|
+
this._menuElement1 = _objectSpread$1O(_objectSpread$1O({}, this.menuElement1), {}, {
|
|
15975
15973
|
selected: this._selectedMenuKeys[0]
|
|
15976
15974
|
});
|
|
15977
15975
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
|
@@ -16247,7 +16245,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
16247
16245
|
}
|
|
16248
16246
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
|
16249
16247
|
}).map(function (item) {
|
|
16250
|
-
return _objectSpread$
|
|
16248
|
+
return _objectSpread$1O(_objectSpread$1O({}, item), {}, {
|
|
16251
16249
|
items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
|
|
16252
16250
|
subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
|
16253
16251
|
});
|
|
@@ -17646,8 +17644,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
|
17646
17644
|
return _createClass(_default);
|
|
17647
17645
|
}(_default$c);
|
|
17648
17646
|
|
|
17649
|
-
function ownKeys$
|
|
17650
|
-
function _objectSpread$
|
|
17647
|
+
function ownKeys$1N(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17648
|
+
function _objectSpread$1N(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1N(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1N(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17651
17649
|
var LOG$n = getLogger('Backoffice', 'ContextStore');
|
|
17652
17650
|
|
|
17653
17651
|
/**
|
|
@@ -17682,7 +17680,7 @@ var ContextStore = /*#__PURE__*/function () {
|
|
|
17682
17680
|
key: "updateContext",
|
|
17683
17681
|
value: function updateContext(contextId, updates) {
|
|
17684
17682
|
var currentState = this.contexts.get(contextId) || {};
|
|
17685
|
-
var updatedState = _objectSpread$
|
|
17683
|
+
var updatedState = _objectSpread$1N(_objectSpread$1N({}, currentState), updates);
|
|
17686
17684
|
this.contexts.set(contextId, updatedState);
|
|
17687
17685
|
LOG$n.debug("Updated context ".concat(contextId), {
|
|
17688
17686
|
updatedState: updatedState
|
|
@@ -17920,8 +17918,8 @@ function removeEmpty(data) {
|
|
|
17920
17918
|
return undefined;
|
|
17921
17919
|
}
|
|
17922
17920
|
|
|
17923
|
-
function ownKeys$
|
|
17924
|
-
function _objectSpread$
|
|
17921
|
+
function ownKeys$1M(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17922
|
+
function _objectSpread$1M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17925
17923
|
function fetchFileData(_x) {
|
|
17926
17924
|
return _fetchFileData.apply(this, arguments);
|
|
17927
17925
|
}
|
|
@@ -18081,7 +18079,7 @@ function _uploadMediaItem() {
|
|
|
18081
18079
|
_context4.next = 4;
|
|
18082
18080
|
return fetch("".concat(root, "/v1/assets/uploads"), {
|
|
18083
18081
|
method: 'POST',
|
|
18084
|
-
headers: _objectSpread$
|
|
18082
|
+
headers: _objectSpread$1M({
|
|
18085
18083
|
'Content-Type': 'application/json'
|
|
18086
18084
|
}, auth),
|
|
18087
18085
|
body: JSON.stringify({
|
|
@@ -18147,7 +18145,7 @@ function _uploadMediaItem() {
|
|
|
18147
18145
|
_context4.next = 31;
|
|
18148
18146
|
return fetch("".concat(root, "/v1/assets/uploads/complete"), {
|
|
18149
18147
|
method: 'POST',
|
|
18150
|
-
headers: _objectSpread$
|
|
18148
|
+
headers: _objectSpread$1M({
|
|
18151
18149
|
'Content-Type': 'application/json'
|
|
18152
18150
|
}, auth),
|
|
18153
18151
|
body: JSON.stringify({
|
|
@@ -18192,7 +18190,7 @@ function _uploadMediaItem() {
|
|
|
18192
18190
|
refUrl = (_ref$url = ref.url) !== null && _ref$url !== void 0 ? _ref$url : ref.cdnUrl;
|
|
18193
18191
|
return _context4.abrupt("return", {
|
|
18194
18192
|
_id: mediaItem._id,
|
|
18195
|
-
ref: _objectSpread$
|
|
18193
|
+
ref: _objectSpread$1M(_objectSpread$1M({}, ref), {}, {
|
|
18196
18194
|
_id: ref._id,
|
|
18197
18195
|
url: refUrl
|
|
18198
18196
|
})
|
|
@@ -18640,8 +18638,8 @@ function getData$1(id, data) {
|
|
|
18640
18638
|
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; } } }; }
|
|
18641
18639
|
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; } }
|
|
18642
18640
|
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; }
|
|
18643
|
-
function ownKeys$
|
|
18644
|
-
function _objectSpread$
|
|
18641
|
+
function ownKeys$1L(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18642
|
+
function _objectSpread$1L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18645
18643
|
function toNamePath$2(name) {
|
|
18646
18644
|
if (name === undefined || name === '') return [];
|
|
18647
18645
|
return Array.isArray(name) ? name : [name];
|
|
@@ -18711,7 +18709,7 @@ function useFormData (_ref) {
|
|
|
18711
18709
|
var _useMemo = useMemo(function () {
|
|
18712
18710
|
setCanSave === null || setCanSave === void 0 || setCanSave(true);
|
|
18713
18711
|
var baseConfiguration = configurationOverride !== null && configurationOverride !== void 0 ? configurationOverride : root.configurationStore.getConfiguration(id, 'Form');
|
|
18714
|
-
var configuration = _objectSpread$
|
|
18712
|
+
var configuration = _objectSpread$1L(_objectSpread$1L({}, baseConfiguration), {}, {
|
|
18715
18713
|
apiInterface: apiInterface !== null && apiInterface !== void 0 ? apiInterface : baseConfiguration.apiInterface
|
|
18716
18714
|
});
|
|
18717
18715
|
var c = {
|
|
@@ -18811,7 +18809,7 @@ function useFormData (_ref) {
|
|
|
18811
18809
|
multipleEditingData = inboundData;
|
|
18812
18810
|
}
|
|
18813
18811
|
return {
|
|
18814
|
-
loadedData: _onLoadFields(_objectSpread$
|
|
18812
|
+
loadedData: _onLoadFields(_objectSpread$1L({}, dt)),
|
|
18815
18813
|
multipleEditingData: multipleEditingData
|
|
18816
18814
|
};
|
|
18817
18815
|
}, [inboundData]),
|
|
@@ -18838,7 +18836,7 @@ function useFormData (_ref) {
|
|
|
18838
18836
|
setFieldErrors = _useState20[1];
|
|
18839
18837
|
useEffect(function () {
|
|
18840
18838
|
var _loadedData$_id2;
|
|
18841
|
-
setState(_objectSpread$
|
|
18839
|
+
setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
|
|
18842
18840
|
data: loadedData,
|
|
18843
18841
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
|
18844
18842
|
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),
|
|
@@ -18951,7 +18949,7 @@ function useFormData (_ref) {
|
|
|
18951
18949
|
root.actions.toggleLoading('saving_form');
|
|
18952
18950
|
_context2.prev = 4;
|
|
18953
18951
|
_context2.next = 7;
|
|
18954
|
-
return setDynamicFields(_objectSpread$
|
|
18952
|
+
return setDynamicFields(_objectSpread$1L({}, state.data), newData);
|
|
18955
18953
|
case 7:
|
|
18956
18954
|
newData = _context2.sent;
|
|
18957
18955
|
_context2.next = 10;
|
|
@@ -18966,7 +18964,7 @@ function useFormData (_ref) {
|
|
|
18966
18964
|
root.actions.toggleLoading('saving_form');
|
|
18967
18965
|
throw _context2.t0;
|
|
18968
18966
|
case 17:
|
|
18969
|
-
setState(_objectSpread$
|
|
18967
|
+
setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
|
|
18970
18968
|
loading: true
|
|
18971
18969
|
}));
|
|
18972
18970
|
finalData = state.data;
|
|
@@ -19019,14 +19017,14 @@ function useFormData (_ref) {
|
|
|
19019
19017
|
_context2.next = 47;
|
|
19020
19018
|
break;
|
|
19021
19019
|
}
|
|
19022
|
-
setFieldErrors(_objectSpread$
|
|
19020
|
+
setFieldErrors(_objectSpread$1L(_objectSpread$1L({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
|
19023
19021
|
return _context2.abrupt("return", undefined);
|
|
19024
19022
|
case 47:
|
|
19025
19023
|
throw _context2.t1;
|
|
19026
19024
|
case 48:
|
|
19027
19025
|
_context2.prev = 48;
|
|
19028
19026
|
root.actions.toggleLoading('saving_form');
|
|
19029
|
-
setState(_objectSpread$
|
|
19027
|
+
setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
|
|
19030
19028
|
data: finalData,
|
|
19031
19029
|
loading: false
|
|
19032
19030
|
}));
|
|
@@ -19082,11 +19080,11 @@ function useFormData (_ref) {
|
|
|
19082
19080
|
var data = d !== null && d !== void 0 ? d : mergeWith(cloneDeep(state.data), formValues, mergeFormWithCustomizer);
|
|
19083
19081
|
if (id) {
|
|
19084
19082
|
setFieldInObject(id, data, value);
|
|
19085
|
-
var newFieldErrors = _objectSpread$
|
|
19083
|
+
var newFieldErrors = _objectSpread$1L({}, fieldErrors);
|
|
19086
19084
|
delete newFieldErrors[id.toString()];
|
|
19087
19085
|
setFieldErrors(newFieldErrors);
|
|
19088
19086
|
}
|
|
19089
|
-
setState(_objectSpread$
|
|
19087
|
+
setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
|
|
19090
19088
|
data: data
|
|
19091
19089
|
}));
|
|
19092
19090
|
return data;
|
|
@@ -19142,10 +19140,10 @@ function useFormData (_ref) {
|
|
|
19142
19140
|
} else {
|
|
19143
19141
|
data[name] = val;
|
|
19144
19142
|
}
|
|
19145
|
-
if (configuration.itemSelectorReset) setState(_objectSpread$
|
|
19143
|
+
if (configuration.itemSelectorReset) setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
|
|
19146
19144
|
data: data
|
|
19147
|
-
}));else setState(_objectSpread$
|
|
19148
|
-
data: _objectSpread$
|
|
19145
|
+
}));else setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
|
|
19146
|
+
data: _objectSpread$1L(_objectSpread$1L({}, state.data), data)
|
|
19149
19147
|
}));
|
|
19150
19148
|
if (Array.isArray(configuration.items[selectorIdx[0]]) && Array.isArray(configuration.items[selectorIdx[0]][selectorIdx[1]])) {
|
|
19151
19149
|
setSelectedItemsIndex([selectorIdx[0], selectorIdx[1]]);
|
|
@@ -19178,12 +19176,12 @@ function useFormData (_ref) {
|
|
|
19178
19176
|
var val = _ref6.value;
|
|
19179
19177
|
if (value === val) {
|
|
19180
19178
|
if (configuration.itemSelectorReset) {
|
|
19181
|
-
setState(_objectSpread$
|
|
19179
|
+
setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
|
|
19182
19180
|
data: _defineProperty({}, name, val)
|
|
19183
19181
|
}));
|
|
19184
19182
|
} else {
|
|
19185
|
-
setState(_objectSpread$
|
|
19186
|
-
data: _objectSpread$
|
|
19183
|
+
setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
|
|
19184
|
+
data: _objectSpread$1L(_objectSpread$1L({}, state.data), {}, _defineProperty({}, name, val))
|
|
19187
19185
|
}));
|
|
19188
19186
|
}
|
|
19189
19187
|
setSelectedItemsIndex([selectedItemsIndex[0], idx]);
|
|
@@ -19358,7 +19356,7 @@ function useFormData (_ref) {
|
|
|
19358
19356
|
for (var i = 0; i < configuration.tools.length; i++) {
|
|
19359
19357
|
var _tool$defaultOpen;
|
|
19360
19358
|
var tool = configuration.tools[i];
|
|
19361
|
-
tools.push(_objectSpread$
|
|
19359
|
+
tools.push(_objectSpread$1L(_objectSpread$1L({}, tool), {}, {
|
|
19362
19360
|
parameters: {
|
|
19363
19361
|
data: state.data,
|
|
19364
19362
|
formInstance: form,
|
|
@@ -19511,7 +19509,7 @@ function useFormData (_ref) {
|
|
|
19511
19509
|
}
|
|
19512
19510
|
});
|
|
19513
19511
|
}
|
|
19514
|
-
return _objectSpread$
|
|
19512
|
+
return _objectSpread$1L(_objectSpread$1L({}, state), {}, {
|
|
19515
19513
|
getIsHidden: getIsHidden,
|
|
19516
19514
|
setUsedPreset: setUsedPreset,
|
|
19517
19515
|
configuration: configuration,
|
|
@@ -19629,8 +19627,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
|
19629
19627
|
};
|
|
19630
19628
|
|
|
19631
19629
|
var _excluded$c = ["key", "name"];
|
|
19632
|
-
function ownKeys$
|
|
19633
|
-
function _objectSpread$
|
|
19630
|
+
function ownKeys$1K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19631
|
+
function _objectSpread$1K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19634
19632
|
var FormList$2 = function FormList(_ref) {
|
|
19635
19633
|
var value = _ref.value,
|
|
19636
19634
|
item = _ref.item,
|
|
@@ -19695,7 +19693,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
19695
19693
|
var n = [name].concat(_toConsumableArray(Array.isArray(i.name) ? i.name : [i.name]), _toConsumableArray(i.doTranslate && postFixName ? Array.isArray(postFixName) ? postFixName : [postFixName] : []));
|
|
19696
19694
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
|
19697
19695
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
|
19698
|
-
return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$
|
|
19696
|
+
return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$1K(_objectSpread$1K({}, restField), {}, {
|
|
19699
19697
|
id: n.join(),
|
|
19700
19698
|
key: n.join(),
|
|
19701
19699
|
name: n,
|
|
@@ -19707,7 +19705,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
19707
19705
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
19708
19706
|
help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
|
|
19709
19707
|
hidden: hidden
|
|
19710
|
-
}), getElement(_objectSpread$
|
|
19708
|
+
}), getElement(_objectSpread$1K(_objectSpread$1K({}, i), {}, {
|
|
19711
19709
|
name: n
|
|
19712
19710
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
|
19713
19711
|
})
|
|
@@ -19873,8 +19871,8 @@ var Result = function Result(_ref) {
|
|
|
19873
19871
|
|
|
19874
19872
|
var success = "success-tRJ7j";
|
|
19875
19873
|
var error = "error-MtAFB";
|
|
19876
|
-
var css_248z$
|
|
19877
|
-
styleInject(css_248z$
|
|
19874
|
+
var css_248z$V = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
|
|
19875
|
+
styleInject(css_248z$V);
|
|
19878
19876
|
|
|
19879
19877
|
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";
|
|
19880
19878
|
|
|
@@ -19938,11 +19936,11 @@ var CustomButton$1 = observer(CustomButton);
|
|
|
19938
19936
|
|
|
19939
19937
|
var wrapper$7 = "wrapper-GVe2h";
|
|
19940
19938
|
var buttonGroup = "button-group-GYt-T";
|
|
19941
|
-
var css_248z$
|
|
19942
|
-
styleInject(css_248z$
|
|
19939
|
+
var css_248z$U = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
|
|
19940
|
+
styleInject(css_248z$U);
|
|
19943
19941
|
|
|
19944
|
-
function ownKeys$
|
|
19945
|
-
function _objectSpread$
|
|
19942
|
+
function ownKeys$1J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19943
|
+
function _objectSpread$1J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19946
19944
|
var SubTitle = function SubTitle(_ref) {
|
|
19947
19945
|
var _item$label, _item$orientation, _item$buttonIds;
|
|
19948
19946
|
var item = _ref.item,
|
|
@@ -19952,7 +19950,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
|
19952
19950
|
var title = (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : Array.isArray(item.name) ? item.name[0].toString() : item.name;
|
|
19953
19951
|
return /*#__PURE__*/jsx(Divider, {
|
|
19954
19952
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'horizontal',
|
|
19955
|
-
style: _objectSpread$
|
|
19953
|
+
style: _objectSpread$1J({}, item.style),
|
|
19956
19954
|
children: /*#__PURE__*/jsxs("div", {
|
|
19957
19955
|
className: wrapper$7,
|
|
19958
19956
|
children: [t(title, title), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
|
|
@@ -20242,12 +20240,12 @@ function parseReturnData(options, selectMapping) {
|
|
|
20242
20240
|
}
|
|
20243
20241
|
|
|
20244
20242
|
var wrapper$6 = "wrapper-4xyke";
|
|
20245
|
-
var css_248z$
|
|
20246
|
-
styleInject(css_248z$
|
|
20243
|
+
var css_248z$T = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
|
|
20244
|
+
styleInject(css_248z$T);
|
|
20247
20245
|
|
|
20248
20246
|
var _excluded$b = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
|
20249
|
-
function ownKeys$
|
|
20250
|
-
function _objectSpread$
|
|
20247
|
+
function ownKeys$1I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20248
|
+
function _objectSpread$1I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20251
20249
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
20252
20250
|
var apiInterface = _ref.apiInterface,
|
|
20253
20251
|
selectMapping = _ref.selectMapping,
|
|
@@ -20274,7 +20272,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
|
20274
20272
|
return /*#__PURE__*/jsxs("div", {
|
|
20275
20273
|
ref: ref,
|
|
20276
20274
|
className: classNames(title ? wrapper$6 : undefined),
|
|
20277
|
-
children: [title, /*#__PURE__*/jsx(Select, _objectSpread$
|
|
20275
|
+
children: [title, /*#__PURE__*/jsx(Select, _objectSpread$1I(_objectSpread$1I({}, selectProps), {}, {
|
|
20278
20276
|
showSearch: search,
|
|
20279
20277
|
loading: state.loading,
|
|
20280
20278
|
options: state.options,
|
|
@@ -20891,8 +20889,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
|
20891
20889
|
}]);
|
|
20892
20890
|
}(_default$c);
|
|
20893
20891
|
|
|
20894
|
-
function ownKeys$
|
|
20895
|
-
function _objectSpread$
|
|
20892
|
+
function ownKeys$1H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20893
|
+
function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20896
20894
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
|
20897
20895
|
function useSelectClientRelationCatalog (_ref) {
|
|
20898
20896
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
|
@@ -21061,7 +21059,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
|
21061
21059
|
case 22:
|
|
21062
21060
|
supplierData = _context2.sent;
|
|
21063
21061
|
case 23:
|
|
21064
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
|
21062
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$1H(_objectSpread$1H({}, _selectedSupplier), {}, {
|
|
21065
21063
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
|
21066
21064
|
}), supplierData);
|
|
21067
21065
|
if (catalogId && catalogList.find(function (c) {
|
|
@@ -21129,8 +21127,8 @@ var customSelectContentWrapper = "custom-select-content-wrapper-v98Ms";
|
|
|
21129
21127
|
var customSelectOptionContent = "custom-select-option-content-LIbzl";
|
|
21130
21128
|
var customSelectAvatar = "custom-select-avatar-DPCn1";
|
|
21131
21129
|
var customSelectOptionText = "custom-select-option-text-crPF-";
|
|
21132
|
-
var css_248z$
|
|
21133
|
-
styleInject(css_248z$
|
|
21130
|
+
var css_248z$S = ".custom-select-container-rPcLx {\n display: flex;\n gap: 8px;\n height: 32px;\n}\n\n.custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-content-wrapper-v98Ms {\n display: flex;\n align-items: center;\n height: 22px;\n}\n\n.custom-select-option-content-LIbzl {\n display: flex;\n align-items: center;\n gap: 8px;\n max-width: 100%;\n height: 100%;\n}\n\n.custom-select-option-content-LIbzl .custom-select-avatar-DPCn1 {\n flex-shrink: 0;\n}\n\n.custom-select-option-content-LIbzl .custom-select-option-text-crPF- {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n";
|
|
21131
|
+
styleInject(css_248z$S);
|
|
21134
21132
|
|
|
21135
21133
|
var Selector$1 = function Selector(_ref) {
|
|
21136
21134
|
var items = _ref.items,
|
|
@@ -21294,8 +21292,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
|
21294
21292
|
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; } } }; }
|
|
21295
21293
|
function _unsupportedIterableToArray$A(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$A(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$A(r, a) : void 0; } }
|
|
21296
21294
|
function _arrayLikeToArray$A(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; }
|
|
21297
|
-
function ownKeys$
|
|
21298
|
-
function _objectSpread$
|
|
21295
|
+
function ownKeys$1G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21296
|
+
function _objectSpread$1G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21299
21297
|
function useSelectData (_ref) {
|
|
21300
21298
|
var data = _ref.data,
|
|
21301
21299
|
onChange = _ref.onChange,
|
|
@@ -21767,7 +21765,7 @@ function useSelectData (_ref) {
|
|
|
21767
21765
|
setFetching(true);
|
|
21768
21766
|
serverSideParams = {
|
|
21769
21767
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? (_selectMapping$search = selectMapping.searchField) === null || _selectMapping$search === void 0 ? void 0 : _selectMapping$search.reduce(function (filter, field) {
|
|
21770
|
-
return _objectSpread$
|
|
21768
|
+
return _objectSpread$1G(_objectSpread$1G({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
|
21771
21769
|
}, {}) : {
|
|
21772
21770
|
_id: [value, 'contains']
|
|
21773
21771
|
},
|
|
@@ -22073,8 +22071,8 @@ function useSelectData (_ref) {
|
|
|
22073
22071
|
|
|
22074
22072
|
var selectWithCopy = "select-with-copy-r6iEI";
|
|
22075
22073
|
var selectGrow = "select-grow-Zr2r9";
|
|
22076
|
-
var css_248z$
|
|
22077
|
-
styleInject(css_248z$
|
|
22074
|
+
var css_248z$R = ".select-with-copy-r6iEI {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n}\n\n.select-with-copy-r6iEI > .select-grow-Zr2r9 {\n flex: 1;\n min-width: 0;\n}\n\n.darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
|
22075
|
+
styleInject(css_248z$R);
|
|
22078
22076
|
|
|
22079
22077
|
function selectedToClipboardText(selected) {
|
|
22080
22078
|
if (!(selected !== null && selected !== void 0 && selected.length)) return '';
|
|
@@ -22241,11 +22239,11 @@ var Selector = observer(SelectWrapper);
|
|
|
22241
22239
|
var wrapper$5 = "wrapper-WStAk";
|
|
22242
22240
|
var headerWrapper = "header-wrapper-gWQuH";
|
|
22243
22241
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
|
22244
|
-
var css_248z$
|
|
22245
|
-
styleInject(css_248z$
|
|
22242
|
+
var css_248z$Q = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
|
|
22243
|
+
styleInject(css_248z$Q);
|
|
22246
22244
|
|
|
22247
|
-
function ownKeys$
|
|
22248
|
-
function _objectSpread$
|
|
22245
|
+
function ownKeys$1F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22246
|
+
function _objectSpread$1F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22249
22247
|
var LOG$k = getLogger('Backoffice', 'Translation Form');
|
|
22250
22248
|
function useTranslationHook (item, state) {
|
|
22251
22249
|
var root = useStore();
|
|
@@ -22378,7 +22376,7 @@ function useTranslationHook (item, state) {
|
|
|
22378
22376
|
case 0:
|
|
22379
22377
|
_context2.next = 2;
|
|
22380
22378
|
return apiHandler.create({
|
|
22381
|
-
locales: _objectSpread$
|
|
22379
|
+
locales: _objectSpread$1F({
|
|
22382
22380
|
de: {},
|
|
22383
22381
|
it: {},
|
|
22384
22382
|
fr: {},
|
|
@@ -22427,8 +22425,8 @@ function useTranslationHook (item, state) {
|
|
|
22427
22425
|
};
|
|
22428
22426
|
}
|
|
22429
22427
|
|
|
22430
|
-
function ownKeys$
|
|
22431
|
-
function _objectSpread$
|
|
22428
|
+
function ownKeys$1E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22429
|
+
function _objectSpread$1E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22432
22430
|
var HiddenFormField = function HiddenFormField() {
|
|
22433
22431
|
return null;
|
|
22434
22432
|
};
|
|
@@ -22494,7 +22492,7 @@ var Translation = function Translation(_ref) {
|
|
|
22494
22492
|
}, key);
|
|
22495
22493
|
}
|
|
22496
22494
|
return /*#__PURE__*/jsx(React.Fragment, {
|
|
22497
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
|
22495
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$1E(_objectSpread$1E({}, i), {}, {
|
|
22498
22496
|
name: n
|
|
22499
22497
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang, newFormName) : /*#__PURE__*/jsx(Form$2.Item, {
|
|
22500
22498
|
id: idx.toString(),
|
|
@@ -22507,7 +22505,7 @@ var Translation = function Translation(_ref) {
|
|
|
22507
22505
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
22508
22506
|
help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
|
|
22509
22507
|
hidden: hidden,
|
|
22510
|
-
children: getElement(_objectSpread$
|
|
22508
|
+
children: getElement(_objectSpread$1E(_objectSpread$1E({}, i), {}, {
|
|
22511
22509
|
name: n
|
|
22512
22510
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
|
22513
22511
|
})
|
|
@@ -22863,8 +22861,8 @@ var Text$9 = observer(Text$8);
|
|
|
22863
22861
|
|
|
22864
22862
|
var root$e = "root-Eiuo1";
|
|
22865
22863
|
var popoverContent = "popoverContent-uExP4";
|
|
22866
|
-
var css_248z$
|
|
22867
|
-
styleInject(css_248z$
|
|
22864
|
+
var css_248z$P = ".root-Eiuo1 {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.popoverContent-uExP4 {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 140px;\n}\n";
|
|
22865
|
+
styleInject(css_248z$P);
|
|
22868
22866
|
|
|
22869
22867
|
var CustomColorPicker = function CustomColorPicker(_ref) {
|
|
22870
22868
|
var item = _ref.item,
|
|
@@ -22994,8 +22992,8 @@ function deltaFromColors(mainHex, valueHex) {
|
|
|
22994
22992
|
return avg;
|
|
22995
22993
|
}
|
|
22996
22994
|
|
|
22997
|
-
function ownKeys$
|
|
22998
|
-
function _objectSpread$
|
|
22995
|
+
function ownKeys$1D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22996
|
+
function _objectSpread$1D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22999
22997
|
function FormSlider(_ref) {
|
|
23000
22998
|
var item = _ref.item,
|
|
23001
22999
|
disabled = _ref.disabled,
|
|
@@ -23029,7 +23027,7 @@ function FormSlider(_ref) {
|
|
|
23029
23027
|
children: t('backoffice.form.slider.apiDefaultHint', {
|
|
23030
23028
|
defaultValue: 'Not set (Gemini API default, typically 1). Move the slider to set.'
|
|
23031
23029
|
})
|
|
23032
|
-
}) : null, /*#__PURE__*/jsx(Slider, _objectSpread$
|
|
23030
|
+
}) : null, /*#__PURE__*/jsx(Slider, _objectSpread$1D(_objectSpread$1D({
|
|
23033
23031
|
min: item.min,
|
|
23034
23032
|
max: item.max,
|
|
23035
23033
|
step: item.step
|
|
@@ -23060,8 +23058,8 @@ function FormSlider(_ref) {
|
|
|
23060
23058
|
function _createForOfIteratorHelper$z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$z(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; } } }; }
|
|
23061
23059
|
function _unsupportedIterableToArray$z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$z(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$z(r, a) : void 0; } }
|
|
23062
23060
|
function _arrayLikeToArray$z(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; }
|
|
23063
|
-
function ownKeys$
|
|
23064
|
-
function _objectSpread$
|
|
23061
|
+
function ownKeys$1C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23062
|
+
function _objectSpread$1C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23065
23063
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName, formName) {
|
|
23066
23064
|
var _isReadonly, _state$hiddenRequired, _state$data$_id, _state$data;
|
|
23067
23065
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
|
@@ -23098,7 +23096,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
23098
23096
|
}
|
|
23099
23097
|
});
|
|
23100
23098
|
case 'selectSimple':
|
|
23101
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
23099
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1C(_objectSpread$1C({}, item), {}, {
|
|
23102
23100
|
disabled: disabled,
|
|
23103
23101
|
onChange: function onChange(value) {
|
|
23104
23102
|
_onChange(absoluteName, value);
|
|
@@ -23344,7 +23342,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
23344
23342
|
value: item.value,
|
|
23345
23343
|
options: item.options.map(function (o) {
|
|
23346
23344
|
var _o$disabled;
|
|
23347
|
-
return _objectSpread$
|
|
23345
|
+
return _objectSpread$1C(_objectSpread$1C({}, o), {}, {
|
|
23348
23346
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
|
|
23349
23347
|
});
|
|
23350
23348
|
}),
|
|
@@ -23365,7 +23363,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
23365
23363
|
},
|
|
23366
23364
|
icon: item.icon,
|
|
23367
23365
|
callback: function callback(data) {
|
|
23368
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
|
23366
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$1C(_objectSpread$1C({}, state.data), data));
|
|
23369
23367
|
}
|
|
23370
23368
|
});
|
|
23371
23369
|
case 'media':
|
|
@@ -23403,7 +23401,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
23403
23401
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
23404
23402
|
var _useTranslation = useTranslation(),
|
|
23405
23403
|
t = _useTranslation.t;
|
|
23406
|
-
return /*#__PURE__*/jsx(Input$1, _objectSpread$
|
|
23404
|
+
return /*#__PURE__*/jsx(Input$1, _objectSpread$1C(_objectSpread$1C({}, props), {}, {
|
|
23407
23405
|
ref: ref,
|
|
23408
23406
|
disabled: true,
|
|
23409
23407
|
value: t(props.translationPrefix + '.' + props.value)
|
|
@@ -23422,8 +23420,8 @@ function isReadonly(item, data) {
|
|
|
23422
23420
|
return false;
|
|
23423
23421
|
}
|
|
23424
23422
|
|
|
23425
|
-
function ownKeys$
|
|
23426
|
-
function _objectSpread$
|
|
23423
|
+
function ownKeys$1B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23424
|
+
function _objectSpread$1B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23427
23425
|
function _createForOfIteratorHelper$y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$y(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; } } }; }
|
|
23428
23426
|
function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(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$y(r, a) : void 0; } }
|
|
23429
23427
|
function _arrayLikeToArray$y(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; }
|
|
@@ -23473,13 +23471,13 @@ var Presets = function Presets(_ref) {
|
|
|
23473
23471
|
} finally {
|
|
23474
23472
|
_iterator.f();
|
|
23475
23473
|
}
|
|
23476
|
-
var data = _objectSpread$
|
|
23474
|
+
var data = _objectSpread$1B(_objectSpread$1B({}, form.getFieldsValue(names)), {}, {
|
|
23477
23475
|
newPresetName: newPresetName
|
|
23478
23476
|
});
|
|
23479
23477
|
data.dpi = parseInt(data.dpi);
|
|
23480
23478
|
data.organization = root.getGlobalValue('organizationId');
|
|
23481
23479
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
|
23482
|
-
var dt = _objectSpread$
|
|
23480
|
+
var dt = _objectSpread$1B(_objectSpread$1B({}, form.getFieldsValue(names)), {}, {
|
|
23483
23481
|
name: newPresetName
|
|
23484
23482
|
});
|
|
23485
23483
|
setPresets({
|
|
@@ -23613,8 +23611,8 @@ function ModalProgressBar(_ref) {
|
|
|
23613
23611
|
});
|
|
23614
23612
|
}
|
|
23615
23613
|
|
|
23616
|
-
function ownKeys$
|
|
23617
|
-
function _objectSpread$
|
|
23614
|
+
function ownKeys$1A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23615
|
+
function _objectSpread$1A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23618
23616
|
function ItemSelector(_ref) {
|
|
23619
23617
|
var state = _ref.state,
|
|
23620
23618
|
setCanSave = _ref.setCanSave,
|
|
@@ -23631,7 +23629,7 @@ function ItemSelector(_ref) {
|
|
|
23631
23629
|
rules: state.getRules(itemSelector, state.data),
|
|
23632
23630
|
label: itemSelector.label ? t(itemSelector.label, itemSelector.label) : itemSelector.name,
|
|
23633
23631
|
valuePropName: itemSelector.type == 'checkbox' ? 'checked' : 'value',
|
|
23634
|
-
children: getElement(_objectSpread$
|
|
23632
|
+
children: getElement(_objectSpread$1A(_objectSpread$1A({}, itemSelector), {}, {
|
|
23635
23633
|
value: itemSelector.type == 'select' ? itemSelector.values[state.selectedItemsIndex[idx]] : undefined
|
|
23636
23634
|
}), setCanSave, state, itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
|
|
23637
23635
|
}, itemSelector.name.toString());
|
|
@@ -24017,8 +24015,8 @@ function getLabel(item, t) {
|
|
|
24017
24015
|
}
|
|
24018
24016
|
var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
|
24019
24017
|
|
|
24020
|
-
function ownKeys$
|
|
24021
|
-
function _objectSpread$
|
|
24018
|
+
function ownKeys$1z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24019
|
+
function _objectSpread$1z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24022
24020
|
function _createForOfIteratorHelper$x(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$x(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; } } }; }
|
|
24023
24021
|
function _unsupportedIterableToArray$x(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$x(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$x(r, a) : void 0; } }
|
|
24024
24022
|
function _arrayLikeToArray$x(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; }
|
|
@@ -24220,7 +24218,7 @@ function useRoleSelectorData (_ref) {
|
|
|
24220
24218
|
roles.forEach(function (r) {
|
|
24221
24219
|
//check if after the changes the role is selected
|
|
24222
24220
|
if (value.includes(r._id)) {
|
|
24223
|
-
var newValue = _objectSpread$
|
|
24221
|
+
var newValue = _objectSpread$1z(_objectSpread$1z({}, r), {}, {
|
|
24224
24222
|
selected: true
|
|
24225
24223
|
});
|
|
24226
24224
|
//add it to the new list as selected role
|
|
@@ -24256,7 +24254,7 @@ function useRoleSelectorData (_ref) {
|
|
|
24256
24254
|
}
|
|
24257
24255
|
}
|
|
24258
24256
|
} else {
|
|
24259
|
-
var _newValue = _objectSpread$
|
|
24257
|
+
var _newValue = _objectSpread$1z(_objectSpread$1z({}, r), {}, {
|
|
24260
24258
|
selected: false
|
|
24261
24259
|
});
|
|
24262
24260
|
//add it to the new list as unselected role
|
|
@@ -24460,7 +24458,7 @@ function _updateRoles() {
|
|
|
24460
24458
|
userRole = userRoles.find(function (r) {
|
|
24461
24459
|
return r._id == role._id;
|
|
24462
24460
|
});
|
|
24463
|
-
newRole = _objectSpread$
|
|
24461
|
+
newRole = _objectSpread$1z({}, role);
|
|
24464
24462
|
if (userRole) {
|
|
24465
24463
|
newRole.selected = true;
|
|
24466
24464
|
newRole.inherited = userRole.inherited;
|
|
@@ -24680,7 +24678,7 @@ function _fetchOptions() {
|
|
|
24680
24678
|
case 4:
|
|
24681
24679
|
result = _context11.sent;
|
|
24682
24680
|
options = result.data.map(function (d) {
|
|
24683
|
-
return _objectSpread$
|
|
24681
|
+
return _objectSpread$1z(_objectSpread$1z({}, d), {}, {
|
|
24684
24682
|
label: d.displayName,
|
|
24685
24683
|
value: d._id,
|
|
24686
24684
|
isLeaf: !d.hasChildren
|
|
@@ -24781,11 +24779,11 @@ var parentScroll = "parent-scroll-GmaL9";
|
|
|
24781
24779
|
var parent = "parent-NZJ3S";
|
|
24782
24780
|
var container$8 = "container--O28P";
|
|
24783
24781
|
var infiniteScrollContainer = "infiniteScrollContainer-8G1wc";
|
|
24784
|
-
var css_248z$
|
|
24785
|
-
styleInject(css_248z$
|
|
24782
|
+
var css_248z$O = ".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 flex: 1;\n min-height: 0;\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: hidden;\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.container--O28P {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n\n.infiniteScrollContainer-8G1wc {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component__outerdiv {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component {\n flex: 1 !important;\n min-height: 0 !important;\n height: auto !important;\n display: flex !important;\n flex-direction: column !important;\n}\n";
|
|
24783
|
+
styleInject(css_248z$O);
|
|
24786
24784
|
|
|
24787
|
-
function ownKeys$
|
|
24788
|
-
function _objectSpread$
|
|
24785
|
+
function ownKeys$1y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24786
|
+
function _objectSpread$1y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24789
24787
|
function _createForOfIteratorHelper$w(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$w(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; } } }; }
|
|
24790
24788
|
function _unsupportedIterableToArray$w(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$w(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$w(r, a) : void 0; } }
|
|
24791
24789
|
function _arrayLikeToArray$w(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; }
|
|
@@ -24845,8 +24843,8 @@ function _generateCSV() {
|
|
|
24845
24843
|
break;
|
|
24846
24844
|
}
|
|
24847
24845
|
_context2.next = 21;
|
|
24848
|
-
return generateCSV(_objectSpread$
|
|
24849
|
-
mappingData: _objectSpread$
|
|
24846
|
+
return generateCSV(_objectSpread$1y(_objectSpread$1y({}, exportParams.children), {}, {
|
|
24847
|
+
mappingData: _objectSpread$1y(_objectSpread$1y({}, parent), {}, {
|
|
24850
24848
|
parentId: exportParams.mappingData._id
|
|
24851
24849
|
})
|
|
24852
24850
|
}), csvData);
|
|
@@ -24969,8 +24967,8 @@ function _downloadFile() {
|
|
|
24969
24967
|
return _downloadFile.apply(this, arguments);
|
|
24970
24968
|
}
|
|
24971
24969
|
|
|
24972
|
-
function ownKeys$
|
|
24973
|
-
function _objectSpread$
|
|
24970
|
+
function ownKeys$1x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24971
|
+
function _objectSpread$1x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24974
24972
|
function _createForOfIteratorHelper$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(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; } } }; }
|
|
24975
24973
|
function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(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$v(r, a) : void 0; } }
|
|
24976
24974
|
function _arrayLikeToArray$v(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; }
|
|
@@ -25389,7 +25387,7 @@ function useRelationSelectorData (_ref) {
|
|
|
25389
25387
|
var activeItem = _step.value;
|
|
25390
25388
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
|
25391
25389
|
addedObjects.push(addedData);
|
|
25392
|
-
getSplittedItems(_objectSpread$
|
|
25390
|
+
getSplittedItems(_objectSpread$1x(_objectSpread$1x({}, activeItem), {}, {
|
|
25393
25391
|
userId: data === null || data === void 0 ? void 0 : data._id
|
|
25394
25392
|
}));
|
|
25395
25393
|
ret = true;
|
|
@@ -25594,8 +25592,8 @@ function useRelationSelectorData (_ref) {
|
|
|
25594
25592
|
};
|
|
25595
25593
|
}
|
|
25596
25594
|
|
|
25597
|
-
function ownKeys$
|
|
25598
|
-
function _objectSpread$
|
|
25595
|
+
function ownKeys$1w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25596
|
+
function _objectSpread$1w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25599
25597
|
function _createForOfIteratorHelper$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(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; } } }; }
|
|
25600
25598
|
function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(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$u(r, a) : void 0; } }
|
|
25601
25599
|
function _arrayLikeToArray$u(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; }
|
|
@@ -25743,7 +25741,7 @@ function ActionButton (_ref) {
|
|
|
25743
25741
|
_iterator2.f();
|
|
25744
25742
|
}
|
|
25745
25743
|
_context.next = 19;
|
|
25746
|
-
return apiInterface.update(_objectSpread$
|
|
25744
|
+
return apiInterface.update(_objectSpread$1w(_objectSpread$1w({}, data), {}, {
|
|
25747
25745
|
state: toSwitch
|
|
25748
25746
|
}), data);
|
|
25749
25747
|
case 19:
|
|
@@ -25879,14 +25877,14 @@ function _simpleChangeValue() {
|
|
|
25879
25877
|
break;
|
|
25880
25878
|
}
|
|
25881
25879
|
for (i = 0; i < action.newValues.length; i++) {
|
|
25882
|
-
fieldsToUpdate = _objectSpread$
|
|
25880
|
+
fieldsToUpdate = _objectSpread$1w(_objectSpread$1w({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
|
25883
25881
|
}
|
|
25884
25882
|
if (!apiInterface.canUpdate) {
|
|
25885
25883
|
_context2.next = 9;
|
|
25886
25884
|
break;
|
|
25887
25885
|
}
|
|
25888
25886
|
_context2.next = 7;
|
|
25889
|
-
return apiInterface.update(_objectSpread$
|
|
25887
|
+
return apiInterface.update(_objectSpread$1w({}, fieldsToUpdate), data);
|
|
25890
25888
|
case 7:
|
|
25891
25889
|
response = _context2.sent;
|
|
25892
25890
|
return _context2.abrupt("return", response);
|
|
@@ -25901,7 +25899,7 @@ function _simpleChangeValue() {
|
|
|
25901
25899
|
return _simpleChangeValue.apply(this, arguments);
|
|
25902
25900
|
}
|
|
25903
25901
|
function A(props) {
|
|
25904
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
|
25902
|
+
return /*#__PURE__*/jsx("a", _objectSpread$1w({}, props));
|
|
25905
25903
|
}
|
|
25906
25904
|
|
|
25907
25905
|
function _createForOfIteratorHelper$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(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; } } }; }
|
|
@@ -26036,11 +26034,11 @@ var newscroller = "newscroller-INKeD";
|
|
|
26036
26034
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
|
26037
26035
|
var itemTitle = "item-title--BTvC";
|
|
26038
26036
|
var itemDesc = "item-desc-DBiiF";
|
|
26039
|
-
var css_248z$
|
|
26040
|
-
styleInject(css_248z$
|
|
26037
|
+
var css_248z$N = ".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";
|
|
26038
|
+
styleInject(css_248z$N);
|
|
26041
26039
|
|
|
26042
|
-
function ownKeys$
|
|
26043
|
-
function _objectSpread$
|
|
26040
|
+
function ownKeys$1v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26041
|
+
function _objectSpread$1v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26044
26042
|
var DropDown = function DropDown(_ref) {
|
|
26045
26043
|
var _curItem$data$length;
|
|
26046
26044
|
var split = _ref.split,
|
|
@@ -26072,7 +26070,7 @@ var DropDown = function DropDown(_ref) {
|
|
|
26072
26070
|
});
|
|
26073
26071
|
return /*#__PURE__*/jsx(Collapse, {
|
|
26074
26072
|
onChange: function onChange() {
|
|
26075
|
-
return getSplittedItems(_objectSpread$
|
|
26073
|
+
return getSplittedItems(_objectSpread$1v(_objectSpread$1v({}, item.item), {}, {
|
|
26076
26074
|
parentId: item.parentId
|
|
26077
26075
|
}), 0);
|
|
26078
26076
|
},
|
|
@@ -26332,8 +26330,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
|
26332
26330
|
};
|
|
26333
26331
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
|
26334
26332
|
|
|
26335
|
-
function ownKeys$
|
|
26336
|
-
function _objectSpread$
|
|
26333
|
+
function ownKeys$1u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26334
|
+
function _objectSpread$1u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26337
26335
|
function useFormListData (_ref) {
|
|
26338
26336
|
var _configuration$defaul;
|
|
26339
26337
|
var id = _ref.id,
|
|
@@ -26413,7 +26411,7 @@ function useFormListData (_ref) {
|
|
|
26413
26411
|
if (updated.length == state.length) {
|
|
26414
26412
|
newState = state.map(function (s, i) {
|
|
26415
26413
|
var _updated$find;
|
|
26416
|
-
return _objectSpread$
|
|
26414
|
+
return _objectSpread$1u(_objectSpread$1u({}, s), {}, {
|
|
26417
26415
|
data: (_updated$find = updated.find(function (u) {
|
|
26418
26416
|
return u.index == i;
|
|
26419
26417
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
|
@@ -26550,8 +26548,8 @@ var FormList = function FormList(_ref, ref) {
|
|
|
26550
26548
|
};
|
|
26551
26549
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
|
26552
26550
|
|
|
26553
|
-
function ownKeys$
|
|
26554
|
-
function _objectSpread$
|
|
26551
|
+
function ownKeys$1t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26552
|
+
function _objectSpread$1t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26555
26553
|
var LOG$h = getLogger('Backoffice', 'SelectOrCreate');
|
|
26556
26554
|
function useSelectOrCreateData (_ref) {
|
|
26557
26555
|
var id = _ref.id,
|
|
@@ -26648,7 +26646,7 @@ function useSelectOrCreateData (_ref) {
|
|
|
26648
26646
|
_context.next = 7;
|
|
26649
26647
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
|
26650
26648
|
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) {
|
|
26651
|
-
return _objectSpread$
|
|
26649
|
+
return _objectSpread$1t(_objectSpread$1t({}, filter), {}, _defineProperty({}, field.field, [value, field.filter]));
|
|
26652
26650
|
}, {}) : {
|
|
26653
26651
|
_id: [value, 'contains']
|
|
26654
26652
|
},
|
|
@@ -26959,8 +26957,8 @@ var Multiple = function Multiple(_ref3) {
|
|
|
26959
26957
|
});
|
|
26960
26958
|
};
|
|
26961
26959
|
|
|
26962
|
-
function ownKeys$
|
|
26963
|
-
function _objectSpread$
|
|
26960
|
+
function ownKeys$1s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26961
|
+
function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26964
26962
|
function useListData (_ref) {
|
|
26965
26963
|
var id = _ref.id,
|
|
26966
26964
|
data = _ref.data;
|
|
@@ -27003,7 +27001,7 @@ function useListData (_ref) {
|
|
|
27003
27001
|
case 3:
|
|
27004
27002
|
result = _context.sent;
|
|
27005
27003
|
setListData(result.data.map(parseField));
|
|
27006
|
-
initData = _objectSpread$
|
|
27004
|
+
initData = _objectSpread$1s({}, data);
|
|
27007
27005
|
setUpdatedObject(initData);
|
|
27008
27006
|
setLoading(false);
|
|
27009
27007
|
case 8:
|
|
@@ -27044,7 +27042,7 @@ function useListData (_ref) {
|
|
|
27044
27042
|
});
|
|
27045
27043
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
|
27046
27044
|
var parsedField = field.field.split('.');
|
|
27047
|
-
item.itemUpdate = _objectSpread$
|
|
27045
|
+
item.itemUpdate = _objectSpread$1s(_objectSpread$1s({}, field), {}, {
|
|
27048
27046
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
|
27049
27047
|
});
|
|
27050
27048
|
});
|
|
@@ -27075,16 +27073,16 @@ function useListData (_ref) {
|
|
|
27075
27073
|
console.error('field with more than 2 parts not allowed');
|
|
27076
27074
|
return;
|
|
27077
27075
|
}
|
|
27078
|
-
var updObj = _objectSpread$
|
|
27076
|
+
var updObj = _objectSpread$1s({}, updatedObject);
|
|
27079
27077
|
if (fields.length === 1) {
|
|
27080
|
-
updObj = _objectSpread$
|
|
27078
|
+
updObj = _objectSpread$1s(_objectSpread$1s({}, updObj), {}, _defineProperty({}, fields[0], value));
|
|
27081
27079
|
} else if (fields.length === 2) {
|
|
27082
27080
|
var updatedField = updObj[fields[0]].find(function (v) {
|
|
27083
27081
|
return v.id === item.id.trim();
|
|
27084
27082
|
});
|
|
27085
27083
|
if (updatedField) {
|
|
27086
|
-
var updatedFieldCopy = _objectSpread$
|
|
27087
|
-
updObj = _objectSpread$
|
|
27084
|
+
var updatedFieldCopy = _objectSpread$1s(_objectSpread$1s({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
|
27085
|
+
updObj = _objectSpread$1s(_objectSpread$1s({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
|
27088
27086
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
|
27089
27087
|
})));
|
|
27090
27088
|
}
|
|
@@ -27093,11 +27091,11 @@ function useListData (_ref) {
|
|
|
27093
27091
|
var acItems = listData;
|
|
27094
27092
|
for (var i = 0; i < acItems.length; i++) {
|
|
27095
27093
|
if (i == index) {
|
|
27096
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
27094
|
+
acItems[i].itemUpdate = _objectSpread$1s(_objectSpread$1s({}, acItems[i].itemUpdate), {}, {
|
|
27097
27095
|
value: value
|
|
27098
27096
|
});
|
|
27099
27097
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
|
27100
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
27098
|
+
acItems[i].itemUpdate = _objectSpread$1s(_objectSpread$1s({}, acItems[i].itemUpdate), {}, {
|
|
27101
27099
|
value: !value
|
|
27102
27100
|
});
|
|
27103
27101
|
}
|
|
@@ -27451,8 +27449,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
|
27451
27449
|
var preview = "preview-9wK81";
|
|
27452
27450
|
var previewButton = "preview-button-vupuG";
|
|
27453
27451
|
var editButton = "edit-button-m6r3M";
|
|
27454
|
-
var css_248z$
|
|
27455
|
-
styleInject(css_248z$
|
|
27452
|
+
var css_248z$M = ".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";
|
|
27453
|
+
styleInject(css_248z$M);
|
|
27456
27454
|
|
|
27457
27455
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
|
27458
27456
|
var id = _ref.id,
|
|
@@ -27611,8 +27609,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
|
27611
27609
|
};
|
|
27612
27610
|
}
|
|
27613
27611
|
|
|
27614
|
-
function ownKeys$
|
|
27615
|
-
function _objectSpread$
|
|
27612
|
+
function ownKeys$1r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27613
|
+
function _objectSpread$1r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27616
27614
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
|
27617
27615
|
var id = _ref.id,
|
|
27618
27616
|
data = _ref.data,
|
|
@@ -27720,12 +27718,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
|
27720
27718
|
}
|
|
27721
27719
|
function onEnter(e) {
|
|
27722
27720
|
if (e.key != 'Enter') return;
|
|
27723
|
-
setCrop(_objectSpread$
|
|
27721
|
+
setCrop(_objectSpread$1r(_objectSpread$1r({}, crop), {}, {
|
|
27724
27722
|
unit: 'px',
|
|
27725
27723
|
width: Number(widthInputElement.current.value),
|
|
27726
27724
|
height: Number(heightInputElement.current.value)
|
|
27727
27725
|
}));
|
|
27728
|
-
setCompletedCrop(_objectSpread$
|
|
27726
|
+
setCompletedCrop(_objectSpread$1r(_objectSpread$1r({}, crop), {}, {
|
|
27729
27727
|
unit: 'px',
|
|
27730
27728
|
width: Number(widthInputElement.current.value),
|
|
27731
27729
|
height: Number(heightInputElement.current.value)
|
|
@@ -27803,8 +27801,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
|
27803
27801
|
function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(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; } } }; }
|
|
27804
27802
|
function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(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$s(r, a) : void 0; } }
|
|
27805
27803
|
function _arrayLikeToArray$s(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; }
|
|
27806
|
-
function ownKeys$
|
|
27807
|
-
function _objectSpread$
|
|
27804
|
+
function ownKeys$1q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27805
|
+
function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27808
27806
|
function useDescriptions (_ref) {
|
|
27809
27807
|
var id = _ref.id;
|
|
27810
27808
|
var root = useStore();
|
|
@@ -27897,7 +27895,7 @@ function _getDisplayData() {
|
|
|
27897
27895
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
27898
27896
|
while (1) switch (_context4.prev = _context4.next) {
|
|
27899
27897
|
case 0:
|
|
27900
|
-
displayData = _objectSpread$
|
|
27898
|
+
displayData = _objectSpread$1q({}, data);
|
|
27901
27899
|
_iterator = _createForOfIteratorHelper$s(items);
|
|
27902
27900
|
_context4.prev = 2;
|
|
27903
27901
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
@@ -28173,8 +28171,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
|
28173
28171
|
};
|
|
28174
28172
|
var FileUploadBeta = observer(FileUploadWrapper$1);
|
|
28175
28173
|
|
|
28176
|
-
function ownKeys$
|
|
28177
|
-
function _objectSpread$
|
|
28174
|
+
function ownKeys$1p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28175
|
+
function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28178
28176
|
function useGridData (_ref) {
|
|
28179
28177
|
var id = _ref.id,
|
|
28180
28178
|
data = _ref.data;
|
|
@@ -28217,11 +28215,11 @@ function useGridData (_ref) {
|
|
|
28217
28215
|
function reducer(state, action) {
|
|
28218
28216
|
switch (action.type) {
|
|
28219
28217
|
case 'update':
|
|
28220
|
-
return _objectSpread$
|
|
28218
|
+
return _objectSpread$1p(_objectSpread$1p({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$1p(_objectSpread$1p({}, action.data), {}, {
|
|
28221
28219
|
buffer: Buffer.from(action.data.buffer)
|
|
28222
28220
|
})));
|
|
28223
28221
|
case 'delete':
|
|
28224
|
-
var newState = _objectSpread$
|
|
28222
|
+
var newState = _objectSpread$1p({}, state);
|
|
28225
28223
|
delete newState[action.data.divaNr];
|
|
28226
28224
|
return newState;
|
|
28227
28225
|
default:
|
|
@@ -28231,13 +28229,13 @@ function reducer(state, action) {
|
|
|
28231
28229
|
|
|
28232
28230
|
var grid$1 = "grid-sGemi";
|
|
28233
28231
|
var textWrapper = "text-wrapper-xsPXE";
|
|
28234
|
-
var css_248z$
|
|
28235
|
-
styleInject(css_248z$
|
|
28232
|
+
var css_248z$L = ".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";
|
|
28233
|
+
styleInject(css_248z$L);
|
|
28236
28234
|
|
|
28237
28235
|
var wrapper$4 = "wrapper-p-gR3";
|
|
28238
28236
|
var container$7 = "container-DoZqe";
|
|
28239
|
-
var css_248z$
|
|
28240
|
-
styleInject(css_248z$
|
|
28237
|
+
var css_248z$K = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
|
|
28238
|
+
styleInject(css_248z$K);
|
|
28241
28239
|
|
|
28242
28240
|
var ToolTipInfo = function ToolTipInfo(props) {
|
|
28243
28241
|
var _useTranslation = useTranslation(),
|
|
@@ -28308,8 +28306,8 @@ var Grid = function Grid(_ref) {
|
|
|
28308
28306
|
});
|
|
28309
28307
|
};
|
|
28310
28308
|
|
|
28311
|
-
function ownKeys$
|
|
28312
|
-
function _objectSpread$
|
|
28309
|
+
function ownKeys$1o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28310
|
+
function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28313
28311
|
var useMediaUpload = function useMediaUpload(_ref) {
|
|
28314
28312
|
var id = _ref.id;
|
|
28315
28313
|
var root = useStore();
|
|
@@ -28518,7 +28516,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
28518
28516
|
onRemove: onRemove,
|
|
28519
28517
|
customRequest: customRequest,
|
|
28520
28518
|
fileList: fileList.map(function (f) {
|
|
28521
|
-
return _objectSpread$
|
|
28519
|
+
return _objectSpread$1o(_objectSpread$1o({}, f), {}, {
|
|
28522
28520
|
url: f.url
|
|
28523
28521
|
});
|
|
28524
28522
|
}),
|
|
@@ -28532,8 +28530,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
28532
28530
|
var small = "small-NY1-k";
|
|
28533
28531
|
var medium = "medium---QcO";
|
|
28534
28532
|
var big = "big--E39S";
|
|
28535
|
-
var css_248z$
|
|
28536
|
-
styleInject(css_248z$
|
|
28533
|
+
var css_248z$J = ".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";
|
|
28534
|
+
styleInject(css_248z$J);
|
|
28537
28535
|
|
|
28538
28536
|
var MediaUpload = observer(function (_ref) {
|
|
28539
28537
|
var id = _ref.id;
|
|
@@ -28622,8 +28620,8 @@ var TableSummary = function TableSummary(_ref) {
|
|
|
28622
28620
|
});
|
|
28623
28621
|
};
|
|
28624
28622
|
|
|
28625
|
-
function ownKeys$
|
|
28626
|
-
function _objectSpread$
|
|
28623
|
+
function ownKeys$1n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28624
|
+
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28627
28625
|
function getExpandedRowRenderer (config, root) {
|
|
28628
28626
|
return function (record) {
|
|
28629
28627
|
var data = record;
|
|
@@ -28645,7 +28643,7 @@ function customSubTable(columns, datasource) {
|
|
|
28645
28643
|
// map custom columns to antd columns
|
|
28646
28644
|
var antcols = columns.map(function (col) {
|
|
28647
28645
|
var _col$width;
|
|
28648
|
-
return _objectSpread$
|
|
28646
|
+
return _objectSpread$1n(_objectSpread$1n({}, col), {}, {
|
|
28649
28647
|
title: col.title,
|
|
28650
28648
|
dataIndex: col.field,
|
|
28651
28649
|
key: col.field,
|
|
@@ -28674,8 +28672,8 @@ var checkbox = "checkbox-H7R-w";
|
|
|
28674
28672
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
|
28675
28673
|
var contentWidth = "content-width-hGyVI";
|
|
28676
28674
|
var tableLoadingSpin = "table-loading-spin-QjnC-";
|
|
28677
|
-
var css_248z$
|
|
28678
|
-
styleInject(css_248z$
|
|
28675
|
+
var css_248z$I = ".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\n.ant-select {\n display: inline-flex !important;\n}\n\n/* Fix for antd Table extra column on Windows */\n/* workarround for https://github.com/ant-design/ant-design/issues/55633, if resolved try to remove this */\n.ant-table-cell-scrollbar:not(.ant-table-cell-fix-right) {\n display: none !important;\n}\n\n.table-loading-spin-QjnC- {\n overflow: auto;\n height: 100%;\n}\n";
|
|
28676
|
+
styleInject(css_248z$I);
|
|
28679
28677
|
|
|
28680
28678
|
function BooleanCell (_ref) {
|
|
28681
28679
|
var children = _ref.children,
|
|
@@ -29508,8 +29506,8 @@ function ArrayCell (_ref) {
|
|
|
29508
29506
|
|
|
29509
29507
|
var _excluded$a = ["index"],
|
|
29510
29508
|
_excluded2$1 = ["children", "dataIndex", "record", "handleSave", "column"];
|
|
29511
|
-
function ownKeys$
|
|
29512
|
-
function _objectSpread$
|
|
29509
|
+
function ownKeys$1m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29510
|
+
function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29513
29511
|
var LOG$f = getLogger('Backoffice', 'CellRenderer');
|
|
29514
29512
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
|
29515
29513
|
var CustomRow = function CustomRow(_ref) {
|
|
@@ -29523,7 +29521,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
|
29523
29521
|
component: false,
|
|
29524
29522
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
|
29525
29523
|
value: form,
|
|
29526
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
|
29524
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$1m({}, props))
|
|
29527
29525
|
})
|
|
29528
29526
|
});
|
|
29529
29527
|
};
|
|
@@ -29576,7 +29574,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
29576
29574
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
|
29577
29575
|
longDescriptionType = 'text';
|
|
29578
29576
|
}
|
|
29579
|
-
var modifiedColumn = _objectSpread$
|
|
29577
|
+
var modifiedColumn = _objectSpread$1m(_objectSpread$1m({}, column), {}, {
|
|
29580
29578
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
|
29581
29579
|
});
|
|
29582
29580
|
if (column) {
|
|
@@ -29589,43 +29587,43 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
29589
29587
|
};
|
|
29590
29588
|
switch (modifiedColumn.type) {
|
|
29591
29589
|
case 'boolean':
|
|
29592
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
|
29590
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$1m({}, cellProps));
|
|
29593
29591
|
break;
|
|
29594
29592
|
case 'text':
|
|
29595
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
|
29593
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$1m({}, cellProps));
|
|
29596
29594
|
break;
|
|
29597
29595
|
case 'select':
|
|
29598
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
|
29596
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$1m({}, cellProps));
|
|
29599
29597
|
case 'media':
|
|
29600
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
|
29598
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$1m({}, cellProps));
|
|
29601
29599
|
break;
|
|
29602
29600
|
case 'mediaItem':
|
|
29603
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
|
29601
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$1m({}, cellProps));
|
|
29604
29602
|
break;
|
|
29605
29603
|
case 'unixTimeStamp':
|
|
29606
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
|
29604
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$1m({}, cellProps));
|
|
29607
29605
|
break;
|
|
29608
29606
|
case 'unixTimeStampCheck':
|
|
29609
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
|
29607
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$1m({}, cellProps));
|
|
29610
29608
|
break;
|
|
29611
29609
|
case 'icon':
|
|
29612
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
|
29610
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$1m({}, cellProps));
|
|
29613
29611
|
break;
|
|
29614
29612
|
case 'progress':
|
|
29615
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
|
29613
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$1m({}, cellProps));
|
|
29616
29614
|
break;
|
|
29617
29615
|
case 'link':
|
|
29618
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
|
29616
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$1m({}, cellProps));
|
|
29619
29617
|
break;
|
|
29620
29618
|
case 'array':
|
|
29621
|
-
childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$
|
|
29619
|
+
childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$1m({}, cellProps));
|
|
29622
29620
|
break;
|
|
29623
29621
|
default:
|
|
29624
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
|
29622
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$1m({}, cellProps));
|
|
29625
29623
|
break;
|
|
29626
29624
|
}
|
|
29627
29625
|
}
|
|
29628
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
|
29626
|
+
return /*#__PURE__*/jsx("td", _objectSpread$1m(_objectSpread$1m({}, restProps), {}, {
|
|
29629
29627
|
children: childNode
|
|
29630
29628
|
}));
|
|
29631
29629
|
};
|
|
@@ -29817,8 +29815,8 @@ function useAGHistogram (_ref) {
|
|
|
29817
29815
|
var container$6 = "container-2r-OJ";
|
|
29818
29816
|
var column1 = "column1-9viTK";
|
|
29819
29817
|
var spinner = "spinner-00VcK";
|
|
29820
|
-
var css_248z$
|
|
29821
|
-
styleInject(css_248z$
|
|
29818
|
+
var css_248z$H = ".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";
|
|
29819
|
+
styleInject(css_248z$H);
|
|
29822
29820
|
|
|
29823
29821
|
var Panel$1 = Collapse.Panel;
|
|
29824
29822
|
function AGHistogram (_ref) {
|
|
@@ -29980,8 +29978,8 @@ var SMChart = function SMChart(props) {
|
|
|
29980
29978
|
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; } } }; }
|
|
29981
29979
|
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; } }
|
|
29982
29980
|
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; }
|
|
29983
|
-
function ownKeys$
|
|
29984
|
-
function _objectSpread$
|
|
29981
|
+
function ownKeys$1l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29982
|
+
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29985
29983
|
|
|
29986
29984
|
/**
|
|
29987
29985
|
* Props for the useTools hook
|
|
@@ -30021,7 +30019,7 @@ var useTools = function useTools(_ref) {
|
|
|
30021
30019
|
var packageId = enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage._id;
|
|
30022
30020
|
var isoLanguageIds = (catalog === null || catalog === void 0 ? void 0 : catalog.isoLanguageIds) || (enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage.isoLanguageIds);
|
|
30023
30021
|
var createTool = function createTool(tool) {
|
|
30024
|
-
return _objectSpread$
|
|
30022
|
+
return _objectSpread$1l({
|
|
30025
30023
|
startWidth: 600,
|
|
30026
30024
|
defaultPinned: true,
|
|
30027
30025
|
defaultOpen: false
|
|
@@ -30052,7 +30050,7 @@ var useTools = function useTools(_ref) {
|
|
|
30052
30050
|
name: 'Konfigurator',
|
|
30053
30051
|
type: 'Configurator',
|
|
30054
30052
|
where: 'right',
|
|
30055
|
-
parameters: _objectSpread$
|
|
30053
|
+
parameters: _objectSpread$1l({
|
|
30056
30054
|
catalogId: catalogId,
|
|
30057
30055
|
packageId: packageId,
|
|
30058
30056
|
isIDMData: !isApi2 ? '1' : undefined
|
|
@@ -30148,8 +30146,8 @@ function InformationButton(_ref) {
|
|
|
30148
30146
|
});
|
|
30149
30147
|
}
|
|
30150
30148
|
|
|
30151
|
-
function ownKeys$
|
|
30152
|
-
function _objectSpread$
|
|
30149
|
+
function ownKeys$1k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30150
|
+
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30153
30151
|
function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30154
30152
|
function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
|
|
30155
30153
|
function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -30271,7 +30269,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
30271
30269
|
if (data && data.length > 0) {
|
|
30272
30270
|
data = data.map(function (dt) {
|
|
30273
30271
|
var _ref2, _dt$catalogItem;
|
|
30274
|
-
return _objectSpread$
|
|
30272
|
+
return _objectSpread$1k(_objectSpread$1k({}, dt), {}, {
|
|
30275
30273
|
catalogItem: (_ref2 = (_dt$catalogItem = dt.catalogItem) !== null && _dt$catalogItem !== void 0 ? _dt$catalogItem : state.catalogItem) !== null && _ref2 !== void 0 ? _ref2 : null
|
|
30276
30274
|
});
|
|
30277
30275
|
});
|
|
@@ -30427,13 +30425,13 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
30427
30425
|
// Convert to Dayjs
|
|
30428
30426
|
(_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
|
|
30429
30427
|
]
|
|
30430
|
-
}), selectFilter && (selectFilter.selectVariant === 'select' ? /*#__PURE__*/jsx(Selector, _objectSpread$
|
|
30428
|
+
}), selectFilter && (selectFilter.selectVariant === 'select' ? /*#__PURE__*/jsx(Selector, _objectSpread$1k(_objectSpread$1k({}, selectFilter.settings), {}, {
|
|
30431
30429
|
minWidth: "200px",
|
|
30432
30430
|
value: (_state$globalFilter$s = state.globalFilter.select) === null || _state$globalFilter$s === void 0 || (_state$globalFilter$s = _state$globalFilter$s[selectFilter.filterField]) === null || _state$globalFilter$s === void 0 ? void 0 : _state$globalFilter$s[0],
|
|
30433
30431
|
onChange: function onChange(selected) {
|
|
30434
30432
|
state.onGlobalFilterSelect(normalizeTableFilterSelectValue(selected, selectFilter.filterField));
|
|
30435
30433
|
}
|
|
30436
|
-
})) : /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
30434
|
+
})) : /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1k(_objectSpread$1k({}, selectFilter.settings), {}, {
|
|
30437
30435
|
style: {
|
|
30438
30436
|
minWidth: '200px'
|
|
30439
30437
|
},
|
|
@@ -30543,7 +30541,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
30543
30541
|
root: tableLoadingSpin
|
|
30544
30542
|
}
|
|
30545
30543
|
},
|
|
30546
|
-
pagination: _objectSpread$
|
|
30544
|
+
pagination: _objectSpread$1k(_objectSpread$1k({}, state.pagination), {}, {
|
|
30547
30545
|
showTotal: function showTotal(total, range) {
|
|
30548
30546
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
|
30549
30547
|
},
|
|
@@ -30877,7 +30875,7 @@ function BulkAction(_ref8) {
|
|
|
30877
30875
|
}
|
|
30878
30876
|
_context5.t0 = data;
|
|
30879
30877
|
_context5.next = 14;
|
|
30880
|
-
return apiInterface.update(_objectSpread$
|
|
30878
|
+
return apiInterface.update(_objectSpread$1k(_objectSpread$1k({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
|
30881
30879
|
case 14:
|
|
30882
30880
|
_context5.t1 = _context5.sent;
|
|
30883
30881
|
_context5.t0.push.call(_context5.t0, _context5.t1);
|
|
@@ -30998,8 +30996,8 @@ function SelectionText(_ref10) {
|
|
|
30998
30996
|
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; } } }; }
|
|
30999
30997
|
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; } }
|
|
31000
30998
|
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; }
|
|
31001
|
-
function ownKeys$
|
|
31002
|
-
function _objectSpread$
|
|
30999
|
+
function ownKeys$1j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31000
|
+
function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31003
31001
|
function getColumnFilterProps (_ref) {
|
|
31004
31002
|
var filter = _ref.filter,
|
|
31005
31003
|
title = _ref.title;
|
|
@@ -31371,7 +31369,7 @@ var selectProps = function selectProps(title, filter) {
|
|
|
31371
31369
|
});
|
|
31372
31370
|
},
|
|
31373
31371
|
options: filter.map(function (f) {
|
|
31374
|
-
return _objectSpread$
|
|
31372
|
+
return _objectSpread$1j(_objectSpread$1j({}, f), {}, {
|
|
31375
31373
|
label: t(f.label)
|
|
31376
31374
|
});
|
|
31377
31375
|
})
|
|
@@ -31450,7 +31448,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
31450
31448
|
t = _useTranslation3.t;
|
|
31451
31449
|
var options = [];
|
|
31452
31450
|
options = filter.map(function (f) {
|
|
31453
|
-
return _objectSpread$
|
|
31451
|
+
return _objectSpread$1j(_objectSpread$1j({}, f), {}, {
|
|
31454
31452
|
label: t(f.label)
|
|
31455
31453
|
});
|
|
31456
31454
|
});
|
|
@@ -31521,8 +31519,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
31521
31519
|
};
|
|
31522
31520
|
};
|
|
31523
31521
|
|
|
31524
|
-
function ownKeys$
|
|
31525
|
-
function _objectSpread$
|
|
31522
|
+
function ownKeys$1i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31523
|
+
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31526
31524
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter, filterState) {
|
|
31527
31525
|
var columns = configuration.columns.filter(function (c) {
|
|
31528
31526
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
|
@@ -31580,7 +31578,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
|
31580
31578
|
function mapColumn(column, onUpdate, filterState) {
|
|
31581
31579
|
var _column$field, _filterState$filters$, _filterState$filters, _column$children;
|
|
31582
31580
|
var key = column.field || column.title;
|
|
31583
|
-
return _objectSpread$
|
|
31581
|
+
return _objectSpread$1i(_objectSpread$1i(_objectSpread$1i(_objectSpread$1i({}, column), {}, {
|
|
31584
31582
|
hidden: false,
|
|
31585
31583
|
width: column.width || 100,
|
|
31586
31584
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
|
@@ -31641,8 +31639,8 @@ function updateData (_ref) {
|
|
|
31641
31639
|
};
|
|
31642
31640
|
}
|
|
31643
31641
|
|
|
31644
|
-
function ownKeys$
|
|
31645
|
-
function _objectSpread$
|
|
31642
|
+
function ownKeys$1h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31643
|
+
function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31646
31644
|
function applyFilterAndSortation (_ref) {
|
|
31647
31645
|
var data = _ref.data,
|
|
31648
31646
|
filters = _ref.filters,
|
|
@@ -31657,7 +31655,7 @@ function applyFilterAndSortation (_ref) {
|
|
|
31657
31655
|
processedData = sort(sorter || [], processedData);
|
|
31658
31656
|
return {
|
|
31659
31657
|
data: processedData,
|
|
31660
|
-
pagination: _objectSpread$
|
|
31658
|
+
pagination: _objectSpread$1h(_objectSpread$1h({}, pagination), {}, {
|
|
31661
31659
|
total: processedData.length
|
|
31662
31660
|
})
|
|
31663
31661
|
};
|
|
@@ -31742,8 +31740,8 @@ function filter(f, data) {
|
|
|
31742
31740
|
}
|
|
31743
31741
|
|
|
31744
31742
|
var _excluded$9 = ["_id"];
|
|
31745
|
-
function ownKeys$
|
|
31746
|
-
function _objectSpread$
|
|
31743
|
+
function ownKeys$1g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31744
|
+
function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31747
31745
|
function useTableData$1 (_ref) {
|
|
31748
31746
|
var _configuration$apiInt;
|
|
31749
31747
|
var id = _ref.id;
|
|
@@ -31798,7 +31796,7 @@ function useTableData$1 (_ref) {
|
|
|
31798
31796
|
var _configuration$create;
|
|
31799
31797
|
if (!dataRow) return;
|
|
31800
31798
|
var id = v4();
|
|
31801
|
-
var processedDataRow = unflatten(_objectSpread$
|
|
31799
|
+
var processedDataRow = unflatten(_objectSpread$1g({
|
|
31802
31800
|
_id: id,
|
|
31803
31801
|
ID: id
|
|
31804
31802
|
}, dataRow));
|
|
@@ -31810,11 +31808,11 @@ function useTableData$1 (_ref) {
|
|
|
31810
31808
|
newData = _updateData.data;
|
|
31811
31809
|
_updateData.prevDataRow;
|
|
31812
31810
|
_updateData.index;
|
|
31813
|
-
var newState = _objectSpread$
|
|
31811
|
+
var newState = _objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
31814
31812
|
data: newData
|
|
31815
31813
|
});
|
|
31816
31814
|
if (!filterServerSide) {
|
|
31817
|
-
var res = applyFilterAndSortation(_objectSpread$
|
|
31815
|
+
var res = applyFilterAndSortation(_objectSpread$1g(_objectSpread$1g({}, filterData), {}, {
|
|
31818
31816
|
data: newData
|
|
31819
31817
|
}));
|
|
31820
31818
|
newState.data = res.data;
|
|
@@ -31826,33 +31824,33 @@ function useTableData$1 (_ref) {
|
|
|
31826
31824
|
var formData = new FormData();
|
|
31827
31825
|
processedDataRow._id;
|
|
31828
31826
|
var value = _objectWithoutProperties(processedDataRow, _excluded$9);
|
|
31829
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
|
31827
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$1g(_objectSpread$1g({}, catalogItem), {}, {
|
|
31830
31828
|
filterContex: filterContex,
|
|
31831
31829
|
value: JSON.stringify([value])
|
|
31832
31830
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
|
31833
31831
|
if (d && d.Result && d.Result == 'Success') return;
|
|
31834
|
-
setState(_objectSpread$
|
|
31832
|
+
setState(_objectSpread$1g({}, oldState));
|
|
31835
31833
|
});
|
|
31836
31834
|
}, [state, catalogItem, filterData]);
|
|
31837
31835
|
useEffect(function () {
|
|
31838
31836
|
if (!catalogItem) return;
|
|
31839
|
-
setState(_objectSpread$
|
|
31837
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
31840
31838
|
loading: true,
|
|
31841
|
-
mappingData: _objectSpread$
|
|
31839
|
+
mappingData: _objectSpread$1g(_objectSpread$1g({}, catalogItem), {}, {
|
|
31842
31840
|
filterContex: filterContex
|
|
31843
31841
|
})
|
|
31844
31842
|
}));
|
|
31845
31843
|
if (!filterServerSide) {
|
|
31846
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
31844
|
+
apiHandler.readList(configuration.mapping, _objectSpread$1g(_objectSpread$1g({}, catalogItem), {}, {
|
|
31847
31845
|
filterContex: filterContex
|
|
31848
31846
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
|
31849
31847
|
var newData = data.data.map(function (d) {
|
|
31850
|
-
return _objectSpread$
|
|
31848
|
+
return _objectSpread$1g(_objectSpread$1g({}, d), {}, {
|
|
31851
31849
|
_id: d._id || d.ID || nanoid()
|
|
31852
31850
|
});
|
|
31853
31851
|
});
|
|
31854
31852
|
onChange({
|
|
31855
|
-
pagination: _objectSpread$
|
|
31853
|
+
pagination: _objectSpread$1g({}, state.pagination),
|
|
31856
31854
|
filters: {},
|
|
31857
31855
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
31858
31856
|
return c.defaultSortOrder;
|
|
@@ -31868,7 +31866,7 @@ function useTableData$1 (_ref) {
|
|
|
31868
31866
|
});
|
|
31869
31867
|
} else {
|
|
31870
31868
|
onChange({
|
|
31871
|
-
pagination: _objectSpread$
|
|
31869
|
+
pagination: _objectSpread$1g({}, state.pagination),
|
|
31872
31870
|
filters: {},
|
|
31873
31871
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
31874
31872
|
return c.defaultSortOrder;
|
|
@@ -31884,17 +31882,17 @@ function useTableData$1 (_ref) {
|
|
|
31884
31882
|
}
|
|
31885
31883
|
}, [filterContex, catalogItem]);
|
|
31886
31884
|
var onChange = function onChange(p, dataParam) {
|
|
31887
|
-
setState(_objectSpread$
|
|
31885
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
31888
31886
|
loading: true
|
|
31889
31887
|
}));
|
|
31890
31888
|
if (!filterServerSide) {
|
|
31891
31889
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
|
31892
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
31890
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1g(_objectSpread$1g({}, p), {}, {
|
|
31893
31891
|
data: unfilteredData
|
|
31894
31892
|
})),
|
|
31895
31893
|
data = _applyFilterAndSortat.data,
|
|
31896
31894
|
pagination = _applyFilterAndSortat.pagination;
|
|
31897
|
-
setState(_objectSpread$
|
|
31895
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
31898
31896
|
data: data,
|
|
31899
31897
|
pagination: pagination,
|
|
31900
31898
|
loading: false,
|
|
@@ -31905,20 +31903,20 @@ function useTableData$1 (_ref) {
|
|
|
31905
31903
|
sorter: p.sorter
|
|
31906
31904
|
});
|
|
31907
31905
|
} else {
|
|
31908
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
31906
|
+
apiHandler.readList(configuration.mapping, _objectSpread$1g(_objectSpread$1g({}, catalogItem), {}, {
|
|
31909
31907
|
filterContex: filterContex
|
|
31910
31908
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
|
31911
|
-
setState(_objectSpread$
|
|
31909
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
31912
31910
|
data: data.data.map(function (dt) {
|
|
31913
|
-
return _objectSpread$
|
|
31911
|
+
return _objectSpread$1g(_objectSpread$1g({}, dt), {}, {
|
|
31914
31912
|
_id: dt._id || dt.ID || nanoid()
|
|
31915
31913
|
});
|
|
31916
31914
|
}),
|
|
31917
|
-
pagination: _objectSpread$
|
|
31915
|
+
pagination: _objectSpread$1g(_objectSpread$1g({}, p.pagination), {}, {
|
|
31918
31916
|
total: data.total
|
|
31919
31917
|
}),
|
|
31920
31918
|
loading: false,
|
|
31921
|
-
mappingData: _objectSpread$
|
|
31919
|
+
mappingData: _objectSpread$1g(_objectSpread$1g({}, catalogItem), {}, {
|
|
31922
31920
|
filterContex: filterContex
|
|
31923
31921
|
})
|
|
31924
31922
|
}));
|
|
@@ -31939,7 +31937,7 @@ function useTableData$1 (_ref) {
|
|
|
31939
31937
|
filters['_id'] = [id, 'eq', false];
|
|
31940
31938
|
_context.next = 4;
|
|
31941
31939
|
return apiHandler.readList(configuration.mapping, {
|
|
31942
|
-
pagination: _objectSpread$
|
|
31940
|
+
pagination: _objectSpread$1g({}, state.pagination),
|
|
31943
31941
|
columns: configuration.columns,
|
|
31944
31942
|
filters: filters,
|
|
31945
31943
|
sorter: filterData.sorter
|
|
@@ -31958,7 +31956,7 @@ function useTableData$1 (_ref) {
|
|
|
31958
31956
|
};
|
|
31959
31957
|
}();
|
|
31960
31958
|
var onSelect = function onSelect(keys) {
|
|
31961
|
-
setState(_objectSpread$
|
|
31959
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
31962
31960
|
selected: keys
|
|
31963
31961
|
}));
|
|
31964
31962
|
};
|
|
@@ -31968,7 +31966,7 @@ function useTableData$1 (_ref) {
|
|
|
31968
31966
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
31969
31967
|
while (1) switch (_context3.prev = _context3.next) {
|
|
31970
31968
|
case 0:
|
|
31971
|
-
setState(_objectSpread$
|
|
31969
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
31972
31970
|
deleting: true
|
|
31973
31971
|
}));
|
|
31974
31972
|
newData = _toConsumableArray(state.data);
|
|
@@ -31983,7 +31981,7 @@ function useTableData$1 (_ref) {
|
|
|
31983
31981
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
|
31984
31982
|
return nd._id === state.selected[index];
|
|
31985
31983
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
|
31986
|
-
mappingData = _objectSpread$
|
|
31984
|
+
mappingData = _objectSpread$1g(_objectSpread$1g({}, mappingData), state.mappingData);
|
|
31987
31985
|
_context2.next = 5;
|
|
31988
31986
|
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);
|
|
31989
31987
|
case 5:
|
|
@@ -32033,7 +32031,7 @@ function useTableData$1 (_ref) {
|
|
|
32033
32031
|
}
|
|
32034
32032
|
_context3.next = 18;
|
|
32035
32033
|
return apiHandler.readList(configuration.mapping, {
|
|
32036
|
-
pagination: _objectSpread$
|
|
32034
|
+
pagination: _objectSpread$1g(_objectSpread$1g({}, state.pagination), {}, {
|
|
32037
32035
|
current: current
|
|
32038
32036
|
}),
|
|
32039
32037
|
columns: configuration.columns,
|
|
@@ -32045,11 +32043,11 @@ function useTableData$1 (_ref) {
|
|
|
32045
32043
|
newData = data.data;
|
|
32046
32044
|
total = data.total;
|
|
32047
32045
|
case 21:
|
|
32048
|
-
setState(_objectSpread$
|
|
32046
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
32049
32047
|
selected: [],
|
|
32050
32048
|
deleting: false,
|
|
32051
32049
|
data: newData,
|
|
32052
|
-
pagination: _objectSpread$
|
|
32050
|
+
pagination: _objectSpread$1g(_objectSpread$1g({}, state.pagination), {}, {
|
|
32053
32051
|
current: current,
|
|
32054
32052
|
total: total
|
|
32055
32053
|
})
|
|
@@ -32065,12 +32063,12 @@ function useTableData$1 (_ref) {
|
|
|
32065
32063
|
};
|
|
32066
32064
|
}();
|
|
32067
32065
|
function setLoading() {
|
|
32068
|
-
setState(_objectSpread$
|
|
32066
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
32069
32067
|
loading: true
|
|
32070
32068
|
}));
|
|
32071
32069
|
}
|
|
32072
|
-
return _objectSpread$
|
|
32073
|
-
configuration: _objectSpread$
|
|
32070
|
+
return _objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
32071
|
+
configuration: _objectSpread$1g(_objectSpread$1g({}, configuration), {}, {
|
|
32074
32072
|
title: undefined
|
|
32075
32073
|
}),
|
|
32076
32074
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
|
@@ -32166,8 +32164,8 @@ var translation = {
|
|
|
32166
32164
|
SUPPLIER: 'backoffice.translation.supplier'
|
|
32167
32165
|
};
|
|
32168
32166
|
|
|
32169
|
-
function ownKeys$
|
|
32170
|
-
function _objectSpread$
|
|
32167
|
+
function ownKeys$1f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32168
|
+
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32171
32169
|
/**
|
|
32172
32170
|
* Route/menu-driven overrides for a single shared table module (e.g. list URL filter on `read.list`, default create payload).
|
|
32173
32171
|
*/
|
|
@@ -32175,10 +32173,10 @@ function mergeTableConfiguration(base, readListUrl, genericType) {
|
|
|
32175
32173
|
if (!readListUrl && !genericType) {
|
|
32176
32174
|
return base;
|
|
32177
32175
|
}
|
|
32178
|
-
var next = _objectSpread$
|
|
32176
|
+
var next = _objectSpread$1f({}, base);
|
|
32179
32177
|
if (readListUrl && _typeof(next.apiInterface) === 'object' && next.apiInterface.read && _typeof(next.apiInterface.read) === 'object') {
|
|
32180
|
-
next.apiInterface = _objectSpread$
|
|
32181
|
-
read: _objectSpread$
|
|
32178
|
+
next.apiInterface = _objectSpread$1f(_objectSpread$1f({}, next.apiInterface), {}, {
|
|
32179
|
+
read: _objectSpread$1f(_objectSpread$1f({}, next.apiInterface.read), {}, {
|
|
32182
32180
|
list: readListUrl
|
|
32183
32181
|
})
|
|
32184
32182
|
});
|
|
@@ -32211,8 +32209,8 @@ function objectHash (obj) {
|
|
|
32211
32209
|
function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(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; } } }; }
|
|
32212
32210
|
function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(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$k(r, a) : void 0; } }
|
|
32213
32211
|
function _arrayLikeToArray$k(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; }
|
|
32214
|
-
function ownKeys$
|
|
32215
|
-
function _objectSpread$
|
|
32212
|
+
function ownKeys$1e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32213
|
+
function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32216
32214
|
var LOG$d = getLogger('Backoffice', 'TableData');
|
|
32217
32215
|
function useTableData (_ref) {
|
|
32218
32216
|
var _persistedTableState$, _configuration$filter, _configuration$filter2, _ref2, _configuration$filter3, _configuration$filter4, _configuration$filter5, _ref3, _configuration$filter6, _configuration$filter7, _configuration$filter8, _persistedTableState$2, _configuration$filter9, _configuration$filter10, _persistedTableState$3, _configuration$bulkAc, _configuration$apiInt, _ref5, _configuration$readMa;
|
|
@@ -32233,8 +32231,8 @@ function useTableData (_ref) {
|
|
|
32233
32231
|
var apiHandler = useMemo(function () {
|
|
32234
32232
|
if (configProp) {
|
|
32235
32233
|
// Store entry is minimal (type+title only); pass the full apiInterface directly
|
|
32236
|
-
var apiInterface = readListUrlOverride && _typeof(configProp.apiInterface) === 'object' && configProp.apiInterface.read ? _objectSpread$
|
|
32237
|
-
read: _objectSpread$
|
|
32234
|
+
var apiInterface = readListUrlOverride && _typeof(configProp.apiInterface) === 'object' && configProp.apiInterface.read ? _objectSpread$1e(_objectSpread$1e({}, configProp.apiInterface), {}, {
|
|
32235
|
+
read: _objectSpread$1e(_objectSpread$1e({}, configProp.apiInterface.read), {}, {
|
|
32238
32236
|
list: readListUrlOverride
|
|
32239
32237
|
})
|
|
32240
32238
|
}) : configProp.apiInterface;
|
|
@@ -32245,8 +32243,8 @@ function useTableData (_ref) {
|
|
|
32245
32243
|
}
|
|
32246
32244
|
var base = baseConfiguration;
|
|
32247
32245
|
if (_typeof(base.apiInterface) === 'object' && base.apiInterface.read && _typeof(base.apiInterface.read) === 'object') {
|
|
32248
|
-
return root.getApiHandler(id, _objectSpread$
|
|
32249
|
-
read: _objectSpread$
|
|
32246
|
+
return root.getApiHandler(id, _objectSpread$1e(_objectSpread$1e({}, base.apiInterface), {}, {
|
|
32247
|
+
read: _objectSpread$1e(_objectSpread$1e({}, base.apiInterface.read), {}, {
|
|
32250
32248
|
list: readListUrlOverride
|
|
32251
32249
|
})
|
|
32252
32250
|
}));
|
|
@@ -32300,7 +32298,7 @@ function useTableData (_ref) {
|
|
|
32300
32298
|
var _useState13 = useState({
|
|
32301
32299
|
loading: true,
|
|
32302
32300
|
deleting: false,
|
|
32303
|
-
pagination: _objectSpread$
|
|
32301
|
+
pagination: _objectSpread$1e(_objectSpread$1e({
|
|
32304
32302
|
current: 1,
|
|
32305
32303
|
pageSize: 20,
|
|
32306
32304
|
total: 0,
|
|
@@ -32309,7 +32307,7 @@ function useTableData (_ref) {
|
|
|
32309
32307
|
selected: (_persistedTableState$3 = persistedTableState === null || persistedTableState === void 0 ? void 0 : persistedTableState.selected) !== null && _persistedTableState$3 !== void 0 ? _persistedTableState$3 : [],
|
|
32310
32308
|
canDelete: !!apiHandler.canDelete,
|
|
32311
32309
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
|
32312
|
-
mappingData: _objectSpread$
|
|
32310
|
+
mappingData: _objectSpread$1e(_objectSpread$1e({}, parentData), {}, {
|
|
32313
32311
|
prefilter: {
|
|
32314
32312
|
select: globalFilter.select
|
|
32315
32313
|
},
|
|
@@ -32320,7 +32318,7 @@ function useTableData (_ref) {
|
|
|
32320
32318
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32321
32319
|
state = _useState14[0],
|
|
32322
32320
|
setState = _useState14[1];
|
|
32323
|
-
var mappingData = _objectSpread$
|
|
32321
|
+
var mappingData = _objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, parentData), state.data), {}, {
|
|
32324
32322
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
|
32325
32323
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
|
32326
32324
|
});
|
|
@@ -32360,7 +32358,7 @@ function useTableData (_ref) {
|
|
|
32360
32358
|
}
|
|
32361
32359
|
var dataArray = Array.isArray(data) ? data : [data];
|
|
32362
32360
|
var newInitData = initData;
|
|
32363
|
-
var newState = _objectSpread$
|
|
32361
|
+
var newState = _objectSpread$1e({}, state);
|
|
32364
32362
|
var selected = [];
|
|
32365
32363
|
if (configuration.deselectOnUpdate == false) {
|
|
32366
32364
|
selected = state.selected;
|
|
@@ -32377,7 +32375,7 @@ function useTableData (_ref) {
|
|
|
32377
32375
|
dataRow: dataRow
|
|
32378
32376
|
}),
|
|
32379
32377
|
_data = _updateData.data;
|
|
32380
|
-
newState = _objectSpread$
|
|
32378
|
+
newState = _objectSpread$1e(_objectSpread$1e({}, newState), {}, {
|
|
32381
32379
|
data: _data,
|
|
32382
32380
|
selected: selected
|
|
32383
32381
|
});
|
|
@@ -32389,8 +32387,8 @@ function useTableData (_ref) {
|
|
|
32389
32387
|
dataRow: dataRow
|
|
32390
32388
|
}),
|
|
32391
32389
|
nextInitData = _updateData2.data;
|
|
32392
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
32393
|
-
filters: _objectSpread$
|
|
32390
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, filterData), {}, {
|
|
32391
|
+
filters: _objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter12 = configuration.filter) !== null && _configuration$filter12 !== void 0 && (_configuration$filter12 = _configuration$filter12.toggle) !== null && _configuration$filter12 !== void 0 && _configuration$filter12.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
|
|
32394
32392
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter13 = configuration.filter) !== null && _configuration$filter13 !== void 0 && (_configuration$filter13 = _configuration$filter13.toggle) !== null && _configuration$filter13 !== void 0 && _configuration$filter13.inQuery ? {
|
|
32395
32393
|
genericProps: globalFilter.toggle
|
|
32396
32394
|
} : undefined), {}, {
|
|
@@ -32400,7 +32398,7 @@ function useTableData (_ref) {
|
|
|
32400
32398
|
_data2 = _applyFilterAndSortat.data,
|
|
32401
32399
|
pagination = _applyFilterAndSortat.pagination;
|
|
32402
32400
|
newInitData = nextInitData;
|
|
32403
|
-
newState = _objectSpread$
|
|
32401
|
+
newState = _objectSpread$1e(_objectSpread$1e({}, newState), {}, {
|
|
32404
32402
|
pagination: pagination,
|
|
32405
32403
|
data: _data2,
|
|
32406
32404
|
selected: selected
|
|
@@ -32410,8 +32408,8 @@ function useTableData (_ref) {
|
|
|
32410
32408
|
if (apiHandler.canCreate) {
|
|
32411
32409
|
apiCreate(data).then(function (res) {
|
|
32412
32410
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
|
32413
|
-
initData && setInitData(_objectSpread$
|
|
32414
|
-
setState(_objectSpread$
|
|
32411
|
+
initData && setInitData(_objectSpread$1e({}, initData));
|
|
32412
|
+
setState(_objectSpread$1e({}, state));
|
|
32415
32413
|
}
|
|
32416
32414
|
});
|
|
32417
32415
|
}
|
|
@@ -32424,7 +32422,7 @@ function useTableData (_ref) {
|
|
|
32424
32422
|
var triggerRefresh = function triggerRefresh() {
|
|
32425
32423
|
var _configuration$filter14;
|
|
32426
32424
|
setError(undefined);
|
|
32427
|
-
var newGlobalFilter = _objectSpread$
|
|
32425
|
+
var newGlobalFilter = _objectSpread$1e({}, globalFilter);
|
|
32428
32426
|
//on refresh update default filter, since global value can change
|
|
32429
32427
|
if ((_configuration$filter14 = configuration.filter) !== null && _configuration$filter14 !== void 0 && _configuration$filter14["default"]) {
|
|
32430
32428
|
var _configuration$filter15;
|
|
@@ -32435,7 +32433,7 @@ function useTableData (_ref) {
|
|
|
32435
32433
|
newGlobalFilter["default"] = _defaultFilter;
|
|
32436
32434
|
setGlobaFilter(newGlobalFilter);
|
|
32437
32435
|
}
|
|
32438
|
-
onChange(_objectSpread$
|
|
32436
|
+
onChange(_objectSpread$1e({
|
|
32439
32437
|
pagination: state.pagination
|
|
32440
32438
|
}, filterData), newGlobalFilter, true);
|
|
32441
32439
|
};
|
|
@@ -32453,7 +32451,7 @@ function useTableData (_ref) {
|
|
|
32453
32451
|
order: c.defaultSortOrder
|
|
32454
32452
|
};
|
|
32455
32453
|
});
|
|
32456
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
|
32454
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
|
|
32457
32455
|
loading: false
|
|
32458
32456
|
}));else {
|
|
32459
32457
|
var _persistedTableState$4, _persistedTableState$5, _persistedTableState$6, _persistedTableState$7;
|
|
@@ -32508,7 +32506,7 @@ function useTableData (_ref) {
|
|
|
32508
32506
|
case 0:
|
|
32509
32507
|
filters = {};
|
|
32510
32508
|
filters['_id'] = [id, 'eq', false];
|
|
32511
|
-
ssf = _objectSpread$
|
|
32509
|
+
ssf = _objectSpread$1e({
|
|
32512
32510
|
pagination: {
|
|
32513
32511
|
current: 1,
|
|
32514
32512
|
pageSize: 1
|
|
@@ -32519,7 +32517,7 @@ function useTableData (_ref) {
|
|
|
32519
32517
|
genericProps: globalFilter.toggle
|
|
32520
32518
|
} : undefined);
|
|
32521
32519
|
_context2.next = 5;
|
|
32522
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
32520
|
+
return apiHandler.readList(readMapping, _objectSpread$1e(_objectSpread$1e({}, mappingData), state.mappingData), ssf);
|
|
32523
32521
|
case 5:
|
|
32524
32522
|
data = _context2.sent;
|
|
32525
32523
|
return _context2.abrupt("return", data);
|
|
@@ -32563,12 +32561,12 @@ function useTableData (_ref) {
|
|
|
32563
32561
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
|
32564
32562
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
|
32565
32563
|
overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
|
|
32566
|
-
setState(_objectSpread$
|
|
32564
|
+
setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
|
|
32567
32565
|
mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
|
|
32568
32566
|
loading: true
|
|
32569
32567
|
}));
|
|
32570
32568
|
currentData = initData;
|
|
32571
|
-
filterData = _objectSpread$
|
|
32569
|
+
filterData = _objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, prefilter.search), ((_configuration$filter17 = configuration.filter) === null || _configuration$filter17 === void 0 || (_configuration$filter17 = _configuration$filter17.select) === null || _configuration$filter17 === void 0 ? void 0 : _configuration$filter17.applyDefaultValue) !== false || ((_configuration$filter18 = configuration.filter) === null || _configuration$filter18 === void 0 || (_configuration$filter18 = _configuration$filter18.select) === null || _configuration$filter18 === void 0 ? void 0 : _configuration$filter18.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter19 = (_configuration$filter20 = configuration.filter) === null || _configuration$filter20 === void 0 || (_configuration$filter20 = _configuration$filter20.select) === null || _configuration$filter20 === void 0 ? void 0 : _configuration$filter20.filterField) !== null && _configuration$filter19 !== void 0 ? _configuration$filter19 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
|
|
32572
32570
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref9) {
|
|
32573
32571
|
var _ref10 = _slicedToArray(_ref9, 2);
|
|
32574
32572
|
_ref10[0];
|
|
@@ -32576,7 +32574,7 @@ function useTableData (_ref) {
|
|
|
32576
32574
|
return v != null;
|
|
32577
32575
|
}));
|
|
32578
32576
|
currentFilterHash = objectHash(filterData);
|
|
32579
|
-
currentPagination = _objectSpread$
|
|
32577
|
+
currentPagination = _objectSpread$1e(_objectSpread$1e({}, p.pagination), {}, {
|
|
32580
32578
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
|
32581
32579
|
});
|
|
32582
32580
|
filterHash.current = currentFilterHash;
|
|
@@ -32584,7 +32582,7 @@ function useTableData (_ref) {
|
|
|
32584
32582
|
_context3.next = 21;
|
|
32585
32583
|
break;
|
|
32586
32584
|
}
|
|
32587
|
-
ssf = _objectSpread$
|
|
32585
|
+
ssf = _objectSpread$1e({
|
|
32588
32586
|
pagination: currentPagination,
|
|
32589
32587
|
columns: configuration.columns,
|
|
32590
32588
|
filters: filterData,
|
|
@@ -32593,12 +32591,12 @@ function useTableData (_ref) {
|
|
|
32593
32591
|
genericProps: prefilter.toggle
|
|
32594
32592
|
} : undefined);
|
|
32595
32593
|
_context3.next = 15;
|
|
32596
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
32594
|
+
return apiHandler.readList(readMapping, _objectSpread$1e(_objectSpread$1e({}, mappingData), overwriteMappingData), ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter22 = configuration.filter) !== null && _configuration$filter22 !== void 0 && (_configuration$filter22 = _configuration$filter22.toggle) !== null && _configuration$filter22 !== void 0 && _configuration$filter22.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)));
|
|
32597
32595
|
case 15:
|
|
32598
32596
|
data = _context3.sent;
|
|
32599
|
-
currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$
|
|
32597
|
+
currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$1e(_objectSpread$1e({}, mappingData), state.mappingData), ssf);
|
|
32600
32598
|
currentData = data.data;
|
|
32601
|
-
currentPagination = _objectSpread$
|
|
32599
|
+
currentPagination = _objectSpread$1e(_objectSpread$1e({}, currentPagination), {}, {
|
|
32602
32600
|
total: data.total
|
|
32603
32601
|
});
|
|
32604
32602
|
_context3.next = 30;
|
|
@@ -32615,7 +32613,7 @@ function useTableData (_ref) {
|
|
|
32615
32613
|
currentData = _data3.data;
|
|
32616
32614
|
setInitData(currentData);
|
|
32617
32615
|
case 27:
|
|
32618
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
|
32616
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$1e(_objectSpread$1e({}, p), {}, {
|
|
32619
32617
|
pagination: currentPagination,
|
|
32620
32618
|
filters: filterData,
|
|
32621
32619
|
data: currentData,
|
|
@@ -32624,11 +32622,11 @@ function useTableData (_ref) {
|
|
|
32624
32622
|
currentData = _data4;
|
|
32625
32623
|
currentPagination = pagination;
|
|
32626
32624
|
case 30:
|
|
32627
|
-
setState(_objectSpread$
|
|
32625
|
+
setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
|
|
32628
32626
|
loading: false,
|
|
32629
32627
|
data: currentData,
|
|
32630
32628
|
pagination: currentPagination,
|
|
32631
|
-
mappingData: _objectSpread$
|
|
32629
|
+
mappingData: _objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, parentData), state.mappingData), overwriteMappingData), {}, {
|
|
32632
32630
|
prefilter: prefilter
|
|
32633
32631
|
}),
|
|
32634
32632
|
currentFetchUrl: currentUrl
|
|
@@ -32650,7 +32648,7 @@ function useTableData (_ref) {
|
|
|
32650
32648
|
};
|
|
32651
32649
|
}();
|
|
32652
32650
|
var onSelect = function onSelect(keys) {
|
|
32653
|
-
setState(_objectSpread$
|
|
32651
|
+
setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
|
|
32654
32652
|
selected: keys
|
|
32655
32653
|
}));
|
|
32656
32654
|
};
|
|
@@ -32661,7 +32659,7 @@ function useTableData (_ref) {
|
|
|
32661
32659
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
32662
32660
|
while (1) switch (_context5.prev = _context5.next) {
|
|
32663
32661
|
case 0:
|
|
32664
|
-
setState(_objectSpread$
|
|
32662
|
+
setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
|
|
32665
32663
|
deleting: true
|
|
32666
32664
|
}));
|
|
32667
32665
|
newData = _toConsumableArray(state.data);
|
|
@@ -32701,7 +32699,7 @@ function useTableData (_ref) {
|
|
|
32701
32699
|
} finally {
|
|
32702
32700
|
_iterator.f();
|
|
32703
32701
|
}
|
|
32704
|
-
mappingData = _objectSpread$
|
|
32702
|
+
mappingData = _objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, mappingData), state.mappingData), mapToggle);
|
|
32705
32703
|
deleteResult = undefined;
|
|
32706
32704
|
_context4.prev = 7;
|
|
32707
32705
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
|
@@ -32791,12 +32789,12 @@ function useTableData (_ref) {
|
|
|
32791
32789
|
break;
|
|
32792
32790
|
}
|
|
32793
32791
|
_context5.next = 25;
|
|
32794
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
32795
|
-
pagination: _objectSpread$
|
|
32792
|
+
return apiHandler.readList(readMapping, _objectSpread$1e(_objectSpread$1e({}, mappingData), state.mappingData), _objectSpread$1e({
|
|
32793
|
+
pagination: _objectSpread$1e(_objectSpread$1e({}, state.pagination), {}, {
|
|
32796
32794
|
current: current
|
|
32797
32795
|
}),
|
|
32798
32796
|
columns: configuration.columns,
|
|
32799
|
-
filters: _objectSpread$
|
|
32797
|
+
filters: _objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter23 = configuration.filter) !== null && _configuration$filter23 !== void 0 && (_configuration$filter23 = _configuration$filter23.toggle) !== null && _configuration$filter23 !== void 0 && _configuration$filter23.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
|
|
32800
32798
|
sorter: filterData.sorter
|
|
32801
32799
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter24 = configuration.filter) !== null && _configuration$filter24 !== void 0 && (_configuration$filter24 = _configuration$filter24.toggle) !== null && _configuration$filter24 !== void 0 && _configuration$filter24.inQuery ? {
|
|
32802
32800
|
genericProps: globalFilter.toggle
|
|
@@ -32807,11 +32805,11 @@ function useTableData (_ref) {
|
|
|
32807
32805
|
total = data.total;
|
|
32808
32806
|
case 28:
|
|
32809
32807
|
setInitData(newInitData);
|
|
32810
|
-
setState(_objectSpread$
|
|
32808
|
+
setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
|
|
32811
32809
|
selected: [],
|
|
32812
32810
|
deleting: false,
|
|
32813
32811
|
data: newData,
|
|
32814
|
-
pagination: _objectSpread$
|
|
32812
|
+
pagination: _objectSpread$1e(_objectSpread$1e({}, state.pagination), {}, {
|
|
32815
32813
|
current: current === 0 ? 1 : current,
|
|
32816
32814
|
total: total
|
|
32817
32815
|
})
|
|
@@ -32832,7 +32830,7 @@ function useTableData (_ref) {
|
|
|
32832
32830
|
LOG$d.error(new DivaError('No global select filter defiend'));
|
|
32833
32831
|
return;
|
|
32834
32832
|
}
|
|
32835
|
-
var newGlobalFilter = _objectSpread$
|
|
32833
|
+
var newGlobalFilter = _objectSpread$1e({}, globalFilter);
|
|
32836
32834
|
if (value !== null && value !== void 0 && value.length) {
|
|
32837
32835
|
var selectValue = Array.isArray(value) ? value : [value];
|
|
32838
32836
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, selectValue.length > 1 ? [].concat(_toConsumableArray(selectValue), ['in']) : [selectValue[0], selectFilterOperation]);
|
|
@@ -32840,7 +32838,7 @@ function useTableData (_ref) {
|
|
|
32840
32838
|
newGlobalFilter.select = {};
|
|
32841
32839
|
}
|
|
32842
32840
|
setGlobaFilter(newGlobalFilter);
|
|
32843
|
-
onChange(_objectSpread$
|
|
32841
|
+
onChange(_objectSpread$1e({
|
|
32844
32842
|
pagination: state.pagination
|
|
32845
32843
|
}, filterData), newGlobalFilter);
|
|
32846
32844
|
};
|
|
@@ -32851,16 +32849,16 @@ function useTableData (_ref) {
|
|
|
32851
32849
|
return;
|
|
32852
32850
|
}
|
|
32853
32851
|
var toggleFilter = {};
|
|
32854
|
-
var mappingData = _objectSpread$
|
|
32852
|
+
var mappingData = _objectSpread$1e({}, state.mappingData);
|
|
32855
32853
|
configuration.filter.toggle.fields.forEach(function (f) {
|
|
32856
32854
|
mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
|
|
32857
32855
|
toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
|
32858
32856
|
});
|
|
32859
|
-
var newGlobalFilter = _objectSpread$
|
|
32857
|
+
var newGlobalFilter = _objectSpread$1e(_objectSpread$1e({}, globalFilter), {}, {
|
|
32860
32858
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
|
32861
32859
|
});
|
|
32862
32860
|
setGlobaFilter(newGlobalFilter);
|
|
32863
|
-
onChange(_objectSpread$
|
|
32861
|
+
onChange(_objectSpread$1e({
|
|
32864
32862
|
pagination: state.pagination
|
|
32865
32863
|
}, filterData), newGlobalFilter, true, true, mappingData);
|
|
32866
32864
|
};
|
|
@@ -32873,7 +32871,7 @@ function useTableData (_ref) {
|
|
|
32873
32871
|
LOG$d.error(new DivaError('No global search filter defiend'));
|
|
32874
32872
|
return;
|
|
32875
32873
|
}
|
|
32876
|
-
var newGlobalFilter = _objectSpread$
|
|
32874
|
+
var newGlobalFilter = _objectSpread$1e(_objectSpread$1e({}, globalFilter), {}, {
|
|
32877
32875
|
search: {}
|
|
32878
32876
|
});
|
|
32879
32877
|
if (value) {
|
|
@@ -32887,7 +32885,7 @@ function useTableData (_ref) {
|
|
|
32887
32885
|
});
|
|
32888
32886
|
}
|
|
32889
32887
|
setGlobaFilter(newGlobalFilter);
|
|
32890
|
-
onChange(_objectSpread$
|
|
32888
|
+
onChange(_objectSpread$1e({
|
|
32891
32889
|
pagination: state.pagination
|
|
32892
32890
|
}, filterData), newGlobalFilter);
|
|
32893
32891
|
};
|
|
@@ -32897,20 +32895,20 @@ function useTableData (_ref) {
|
|
|
32897
32895
|
LOG$d.error(new DivaError('No global period filter defiend'));
|
|
32898
32896
|
return;
|
|
32899
32897
|
}
|
|
32900
|
-
var newGlobalFilter = _objectSpread$
|
|
32898
|
+
var newGlobalFilter = _objectSpread$1e({}, globalFilter);
|
|
32901
32899
|
newGlobalFilter.timeStamp = {
|
|
32902
32900
|
fromTimeStamp: [from],
|
|
32903
32901
|
toTimeStamp: [to]
|
|
32904
32902
|
};
|
|
32905
32903
|
if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
|
|
32906
|
-
onChange(_objectSpread$
|
|
32904
|
+
onChange(_objectSpread$1e({
|
|
32907
32905
|
pagination: state.pagination
|
|
32908
|
-
}, filterData), undefined, true, undefined, _objectSpread$
|
|
32906
|
+
}, filterData), undefined, true, undefined, _objectSpread$1e(_objectSpread$1e({}, state.mappingData), {}, {
|
|
32909
32907
|
from: from,
|
|
32910
32908
|
to: to
|
|
32911
32909
|
}));
|
|
32912
32910
|
};
|
|
32913
|
-
return _objectSpread$
|
|
32911
|
+
return _objectSpread$1e(_objectSpread$1e({}, state), {}, {
|
|
32914
32912
|
title: title,
|
|
32915
32913
|
configuration: configuration,
|
|
32916
32914
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter, persistFilters ? filterData : undefined),
|
|
@@ -32956,8 +32954,8 @@ function StandardTable (_ref) {
|
|
|
32956
32954
|
});
|
|
32957
32955
|
}
|
|
32958
32956
|
|
|
32959
|
-
function ownKeys$
|
|
32960
|
-
function _objectSpread$
|
|
32957
|
+
function ownKeys$1d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32958
|
+
function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32961
32959
|
function Table (props) {
|
|
32962
32960
|
var root = useStore();
|
|
32963
32961
|
var variant = useMemo(function () {
|
|
@@ -32965,15 +32963,15 @@ function Table (props) {
|
|
|
32965
32963
|
return config.variant;
|
|
32966
32964
|
}, [props.id]);
|
|
32967
32965
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
32968
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
|
32966
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$1d({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$1d({}, props))]
|
|
32969
32967
|
});
|
|
32970
32968
|
}
|
|
32971
32969
|
|
|
32972
32970
|
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; } } }; }
|
|
32973
32971
|
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; } }
|
|
32974
32972
|
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; }
|
|
32975
|
-
function ownKeys$
|
|
32976
|
-
function _objectSpread$
|
|
32973
|
+
function ownKeys$1c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32974
|
+
function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32977
32975
|
function useAGGrid (_ref) {
|
|
32978
32976
|
var id = _ref.id,
|
|
32979
32977
|
filter = _ref.filter,
|
|
@@ -33067,7 +33065,7 @@ function useAGGrid (_ref) {
|
|
|
33067
33065
|
value = _ref3[1];
|
|
33068
33066
|
if (_idx == 0) {
|
|
33069
33067
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
|
33070
|
-
rdat.push(_objectSpread$
|
|
33068
|
+
rdat.push(_objectSpread$1c(_objectSpread$1c({}, rd), {}, {
|
|
33071
33069
|
grouping: [idx.toString()]
|
|
33072
33070
|
}));
|
|
33073
33071
|
var sp = key.split(':');
|
|
@@ -33207,11 +33205,11 @@ var loader = "loader-LaXZy";
|
|
|
33207
33205
|
var flex = "flex-yQdda";
|
|
33208
33206
|
var bar = "bar-Y663f";
|
|
33209
33207
|
var value = "value-FCA-6";
|
|
33210
|
-
var css_248z$
|
|
33211
|
-
styleInject(css_248z$
|
|
33208
|
+
var css_248z$G = ".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";
|
|
33209
|
+
styleInject(css_248z$G);
|
|
33212
33210
|
|
|
33213
|
-
function ownKeys$
|
|
33214
|
-
function _objectSpread$
|
|
33211
|
+
function ownKeys$1b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33212
|
+
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33215
33213
|
var AGChart = function AGChart(_ref) {
|
|
33216
33214
|
var data = _ref.data;
|
|
33217
33215
|
var groupedData = [];
|
|
@@ -33219,11 +33217,11 @@ var AGChart = function AGChart(_ref) {
|
|
|
33219
33217
|
data.forEach(function (dt) {
|
|
33220
33218
|
if (dt.count == 0) return;
|
|
33221
33219
|
if (groupedData.length > dt.grouping[0]) {
|
|
33222
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
|
33220
|
+
groupedData[dt.grouping[0]].push(_objectSpread$1b(_objectSpread$1b({}, dt), {}, {
|
|
33223
33221
|
count: Number(dt.count)
|
|
33224
33222
|
}));
|
|
33225
33223
|
} else {
|
|
33226
|
-
groupedData.push([_objectSpread$
|
|
33224
|
+
groupedData.push([_objectSpread$1b(_objectSpread$1b({}, dt), {}, {
|
|
33227
33225
|
count: Number(dt.count)
|
|
33228
33226
|
})]);
|
|
33229
33227
|
}
|
|
@@ -33264,8 +33262,8 @@ var AGChart = function AGChart(_ref) {
|
|
|
33264
33262
|
});
|
|
33265
33263
|
};
|
|
33266
33264
|
|
|
33267
|
-
function ownKeys$
|
|
33268
|
-
function _objectSpread$
|
|
33265
|
+
function ownKeys$1a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33266
|
+
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33269
33267
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
33270
33268
|
var id = _ref.id,
|
|
33271
33269
|
filter = _ref.filter,
|
|
@@ -33358,7 +33356,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
33358
33356
|
});
|
|
33359
33357
|
});
|
|
33360
33358
|
}
|
|
33361
|
-
return _objectSpread$
|
|
33359
|
+
return _objectSpread$1a(_objectSpread$1a({}, column), {}, {
|
|
33362
33360
|
cellRenderer: renderer
|
|
33363
33361
|
});
|
|
33364
33362
|
});
|
|
@@ -33628,8 +33626,8 @@ var CustomText = function CustomText(_ref) {
|
|
|
33628
33626
|
};
|
|
33629
33627
|
var CustomText$1 = observer(CustomText);
|
|
33630
33628
|
|
|
33631
|
-
function ownKeys$
|
|
33632
|
-
function _objectSpread$
|
|
33629
|
+
function ownKeys$19(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33630
|
+
function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$19(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$19(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33633
33631
|
function _createForOfIteratorHelper$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(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; } } }; }
|
|
33634
33632
|
function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(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$i(r, a) : void 0; } }
|
|
33635
33633
|
function _arrayLikeToArray$i(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; }
|
|
@@ -33692,7 +33690,7 @@ function useFilterBoxData (id) {
|
|
|
33692
33690
|
} finally {
|
|
33693
33691
|
_iterator.f();
|
|
33694
33692
|
}
|
|
33695
|
-
return _objectSpread$
|
|
33693
|
+
return _objectSpread$19(_objectSpread$19({}, state), ob);
|
|
33696
33694
|
}
|
|
33697
33695
|
return {
|
|
33698
33696
|
configuration: configuration,
|
|
@@ -33706,8 +33704,8 @@ function useFilterBoxData (id) {
|
|
|
33706
33704
|
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; } } }; }
|
|
33707
33705
|
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; } }
|
|
33708
33706
|
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; }
|
|
33709
|
-
function ownKeys$
|
|
33710
|
-
function _objectSpread$
|
|
33707
|
+
function ownKeys$18(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33708
|
+
function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$18(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$18(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33711
33709
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
33712
33710
|
var id = _ref.id,
|
|
33713
33711
|
onChangeFilter = _ref.onChangeFilter,
|
|
@@ -33735,7 +33733,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
33735
33733
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Selector, {
|
|
33736
33734
|
mode: "single",
|
|
33737
33735
|
apiInterface: filter.requestOptions,
|
|
33738
|
-
wholeData: _objectSpread$
|
|
33736
|
+
wholeData: _objectSpread$18(_objectSpread$18({}, state.filter), {}, {
|
|
33739
33737
|
tab: tab
|
|
33740
33738
|
}),
|
|
33741
33739
|
mapping: filter.requestMapping,
|
|
@@ -33967,8 +33965,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
33967
33965
|
return false;
|
|
33968
33966
|
});
|
|
33969
33967
|
|
|
33970
|
-
function ownKeys$
|
|
33971
|
-
function _objectSpread$
|
|
33968
|
+
function ownKeys$17(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33969
|
+
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33972
33970
|
function useUIBuilderData (id) {
|
|
33973
33971
|
var save = undefined;
|
|
33974
33972
|
var root = useStore();
|
|
@@ -34000,7 +33998,7 @@ function useUIBuilderData (id) {
|
|
|
34000
33998
|
var configuration = _useMemo.configuration;
|
|
34001
33999
|
useEffect(function () {
|
|
34002
34000
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
|
34003
|
-
return setFilter(_objectSpread$
|
|
34001
|
+
return setFilter(_objectSpread$17(_objectSpread$17({}, filter), {}, {
|
|
34004
34002
|
sessionGuid: res
|
|
34005
34003
|
}));
|
|
34006
34004
|
});
|
|
@@ -34023,8 +34021,8 @@ function useUIBuilderData (id) {
|
|
|
34023
34021
|
};
|
|
34024
34022
|
}
|
|
34025
34023
|
|
|
34026
|
-
function ownKeys$
|
|
34027
|
-
function _objectSpread$
|
|
34024
|
+
function ownKeys$16(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34025
|
+
function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$16(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$16(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34028
34026
|
function UIBuilder(_ref) {
|
|
34029
34027
|
var id = _ref.id;
|
|
34030
34028
|
var state = useUIBuilderData(id);
|
|
@@ -34051,7 +34049,7 @@ function UIBuilder(_ref) {
|
|
|
34051
34049
|
override = {
|
|
34052
34050
|
value: newFilter[item.field],
|
|
34053
34051
|
setValue: function setValue(newVal) {
|
|
34054
|
-
var newFilter = _objectSpread$
|
|
34052
|
+
var newFilter = _objectSpread$16({}, state.filter);
|
|
34055
34053
|
newFilter[item.field] = newVal;
|
|
34056
34054
|
state.setFilter(newFilter);
|
|
34057
34055
|
}
|
|
@@ -34099,7 +34097,7 @@ function UIBuilder(_ref) {
|
|
|
34099
34097
|
case 'AGGrid':
|
|
34100
34098
|
return /*#__PURE__*/jsx(AGGrid, {
|
|
34101
34099
|
id: item.id,
|
|
34102
|
-
filter: _objectSpread$
|
|
34100
|
+
filter: _objectSpread$16({
|
|
34103
34101
|
optionCodices: JSON.stringify(state.data)
|
|
34104
34102
|
}, state.filter),
|
|
34105
34103
|
override: item.id == 'AGGridTopOptionValues' ? {
|
|
@@ -34154,8 +34152,8 @@ var supplier = "supplier-8sm0I";
|
|
|
34154
34152
|
var dealer = "dealer-xgnku";
|
|
34155
34153
|
var association = "association-b8uVW";
|
|
34156
34154
|
var campaign = "campaign-zlrTx";
|
|
34157
|
-
var css_248z$
|
|
34158
|
-
styleInject(css_248z$
|
|
34155
|
+
var css_248z$F = ".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\n.campaign-zlrTx {\n border-bottom: #64b5f6 solid 5px;\n}\n";
|
|
34156
|
+
styleInject(css_248z$F);
|
|
34159
34157
|
|
|
34160
34158
|
function getColorClass(data) {
|
|
34161
34159
|
switch (data.type) {
|
|
@@ -34263,8 +34261,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
|
34263
34261
|
};
|
|
34264
34262
|
var OrgItem$1 = observer(OrgItem);
|
|
34265
34263
|
|
|
34266
|
-
function ownKeys$
|
|
34267
|
-
function _objectSpread$
|
|
34264
|
+
function ownKeys$15(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34265
|
+
function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$15(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$15(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34268
34266
|
function useTransformJson (_ref) {
|
|
34269
34267
|
var id = _ref.id;
|
|
34270
34268
|
var _useState = useState(),
|
|
@@ -34330,7 +34328,7 @@ function useTransformJson (_ref) {
|
|
|
34330
34328
|
}();
|
|
34331
34329
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
|
34332
34330
|
var _data$children;
|
|
34333
|
-
return _objectSpread$
|
|
34331
|
+
return _objectSpread$15(_objectSpread$15({}, data), {}, {
|
|
34334
34332
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
|
34335
34333
|
data: data,
|
|
34336
34334
|
configuration: configuration,
|
|
@@ -34390,8 +34388,8 @@ var arrow = "arrow-Rd0hp";
|
|
|
34390
34388
|
var openClass = "open-class--gGXs";
|
|
34391
34389
|
var breadcrumb = "breadcrumb-Z0VvH";
|
|
34392
34390
|
var selected = "selected-w-sfW";
|
|
34393
|
-
var css_248z$
|
|
34394
|
-
styleInject(css_248z$
|
|
34391
|
+
var css_248z$E = ".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";
|
|
34392
|
+
styleInject(css_248z$E);
|
|
34395
34393
|
|
|
34396
34394
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
34397
34395
|
var open = _ref.open,
|
|
@@ -34424,8 +34422,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
|
34424
34422
|
|
|
34425
34423
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
|
34426
34424
|
var toolbarLeft = "toolbar-left-X9WRo";
|
|
34427
|
-
var css_248z$
|
|
34428
|
-
styleInject(css_248z$
|
|
34425
|
+
var css_248z$D = ".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";
|
|
34426
|
+
styleInject(css_248z$D);
|
|
34429
34427
|
|
|
34430
34428
|
var Legend = function Legend(props) {
|
|
34431
34429
|
return /*#__PURE__*/jsx(List$1, {
|
|
@@ -34479,8 +34477,8 @@ var Legend = function Legend(props) {
|
|
|
34479
34477
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
|
34480
34478
|
var mask = "mask-ssagp";
|
|
34481
34479
|
var transformWrapper = "transform-wrapper--8t0v";
|
|
34482
|
-
var css_248z$
|
|
34483
|
-
styleInject(css_248z$
|
|
34480
|
+
var css_248z$C = ".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";
|
|
34481
|
+
styleInject(css_248z$C);
|
|
34484
34482
|
|
|
34485
34483
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
|
34486
34484
|
var _children = _ref.children,
|
|
@@ -34990,8 +34988,8 @@ function useCatalogEditor (id) {
|
|
|
34990
34988
|
};
|
|
34991
34989
|
}
|
|
34992
34990
|
|
|
34993
|
-
function ownKeys$
|
|
34994
|
-
function _objectSpread$
|
|
34991
|
+
function ownKeys$14(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34992
|
+
function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$14(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$14(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34995
34993
|
function DragDropUpload(_ref) {
|
|
34996
34994
|
var api2Params = _ref.api2Params,
|
|
34997
34995
|
catalogId = _ref.catalogId,
|
|
@@ -35099,7 +35097,7 @@ function DragDropUpload(_ref) {
|
|
|
35099
35097
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
|
35100
35098
|
children: t('backoffice.catalogeditor.classimportstarted')
|
|
35101
35099
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
|
35102
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
|
35100
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$14(_objectSpread$14({}, props), {}, {
|
|
35103
35101
|
children: [/*#__PURE__*/jsx("p", {
|
|
35104
35102
|
className: "ant-upload-drag-icon",
|
|
35105
35103
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
|
@@ -35316,8 +35314,8 @@ function CatalogEditor(_ref) {
|
|
|
35316
35314
|
}
|
|
35317
35315
|
var CatalogEditor$1 = observer(CatalogEditor);
|
|
35318
35316
|
|
|
35319
|
-
function ownKeys$
|
|
35320
|
-
function _objectSpread$
|
|
35317
|
+
function ownKeys$13(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35318
|
+
function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$13(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$13(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35321
35319
|
var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
|
|
35322
35320
|
var _root$contentStore$bo, _root$contentStore$ri;
|
|
35323
35321
|
var root = useStore();
|
|
@@ -35332,7 +35330,7 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
|
35332
35330
|
style: {
|
|
35333
35331
|
display: 'contents'
|
|
35334
35332
|
},
|
|
35335
|
-
children: /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$
|
|
35333
|
+
children: /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$13(_objectSpread$13({}, props), {}, {
|
|
35336
35334
|
ref: ref,
|
|
35337
35335
|
darkMode: root.contentStore.theme == 'darkmode',
|
|
35338
35336
|
jwt: root.dataStore.jwt,
|
|
@@ -35342,8 +35340,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
|
35342
35340
|
});
|
|
35343
35341
|
var Spreadsheet = observer(SpreadsheetWrapper);
|
|
35344
35342
|
|
|
35345
|
-
function ownKeys$
|
|
35346
|
-
function _objectSpread$
|
|
35343
|
+
function ownKeys$12(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35344
|
+
function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$12(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$12(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35347
35345
|
|
|
35348
35346
|
// Type definition for the context state
|
|
35349
35347
|
|
|
@@ -35365,14 +35363,14 @@ var useEnricherContext = function useEnricherContext() {
|
|
|
35365
35363
|
loading: loading,
|
|
35366
35364
|
setOptions: function setOptions(options) {
|
|
35367
35365
|
var state = root.contextStore.getContext('enricher');
|
|
35368
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
|
35366
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$12(_objectSpread$12({}, state[stateKey]), {}, {
|
|
35369
35367
|
options: options,
|
|
35370
35368
|
loading: false
|
|
35371
35369
|
})));
|
|
35372
35370
|
},
|
|
35373
35371
|
setLoading: function setLoading(loading) {
|
|
35374
35372
|
var state = root.contextStore.getContext('enricher');
|
|
35375
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
|
35373
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$12(_objectSpread$12({}, state[stateKey]), {}, {
|
|
35376
35374
|
loading: loading
|
|
35377
35375
|
})));
|
|
35378
35376
|
}
|
|
@@ -35496,7 +35494,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
|
35496
35494
|
}, [urlPackageId, getContext().packageId, setSelectedPackage]);
|
|
35497
35495
|
|
|
35498
35496
|
// Return context + handlers
|
|
35499
|
-
return _objectSpread$
|
|
35497
|
+
return _objectSpread$12(_objectSpread$12({}, getContext()), {}, {
|
|
35500
35498
|
setSelectedSerie: setSelectedSerie,
|
|
35501
35499
|
setSelectedItem: setSelectedItem,
|
|
35502
35500
|
setSelectedFeature: setSelectedFeature,
|
|
@@ -36425,8 +36423,8 @@ function useModule$1 (currentModules) {
|
|
|
36425
36423
|
};
|
|
36426
36424
|
}
|
|
36427
36425
|
|
|
36428
|
-
function ownKeys$
|
|
36429
|
-
function _objectSpread$
|
|
36426
|
+
function ownKeys$11(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
36427
|
+
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
36430
36428
|
/**
|
|
36431
36429
|
* Creates a column configuration for translated fields in a spreadsheet
|
|
36432
36430
|
*
|
|
@@ -36454,7 +36452,7 @@ function createTranslatedColumnConfig(field, headerName, languages) {
|
|
|
36454
36452
|
acc[key] = "".concat(customParams[key], ".").concat(language);
|
|
36455
36453
|
return acc;
|
|
36456
36454
|
}, {}) : undefined;
|
|
36457
|
-
return maxLength !== undefined ? _objectSpread$
|
|
36455
|
+
return maxLength !== undefined ? _objectSpread$11(_objectSpread$11({}, translatedCustomParams), {}, {
|
|
36458
36456
|
maxLength: maxLength
|
|
36459
36457
|
}) : translatedCustomParams;
|
|
36460
36458
|
};
|
|
@@ -37565,6 +37563,196 @@ var useCatalogVersionDialog = function useCatalogVersionDialog() {
|
|
|
37565
37563
|
};
|
|
37566
37564
|
};
|
|
37567
37565
|
|
|
37566
|
+
function ownKeys$10(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
37567
|
+
function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$10(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$10(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
37568
|
+
|
|
37569
|
+
/**
|
|
37570
|
+
* The facts the filter rewrite needs about the user's organization. They mirror the inputs of
|
|
37571
|
+
* `automaticPublishingCheck` in ./index.tsx, which derives the displayed cell value - keep the two in sync.
|
|
37572
|
+
*/
|
|
37573
|
+
|
|
37574
|
+
/**
|
|
37575
|
+
* Rewrites a filter on the automatic publishing column so it matches the value the column displays instead of the
|
|
37576
|
+
* raw database field. The displayed value is derived (see `automaticPublishingCheck` in ./index.tsx):
|
|
37577
|
+
*
|
|
37578
|
+
* - a package created in the current organization that is not based on another package always shows false
|
|
37579
|
+
* - with automatic publishing enabled on organization level, the value is whether NO package of the user's
|
|
37580
|
+
* organizations depends on it - the stored setting is ignored
|
|
37581
|
+
* - otherwise the stored setting decides, where a missing value means false
|
|
37582
|
+
*
|
|
37583
|
+
* The organization-level facts are constant for every row of one request, so the filter can be rewritten into
|
|
37584
|
+
* conditions on the fields that drive the displayed value.
|
|
37585
|
+
*
|
|
37586
|
+
* @param filterModel the full diva filter model
|
|
37587
|
+
* @param context the organization facts the rewrite needs
|
|
37588
|
+
* @returns the filter model with every condition on the column replaced, or undefined if nothing remains
|
|
37589
|
+
*/
|
|
37590
|
+
function parseAutomaticPublishingFilterModel(filterModel, context) {
|
|
37591
|
+
if (!filterModel) {
|
|
37592
|
+
return filterModel;
|
|
37593
|
+
}
|
|
37594
|
+
return transformFilterNode$1(filterModel, context);
|
|
37595
|
+
}
|
|
37596
|
+
function transformFilterNode$1(node, context) {
|
|
37597
|
+
if (node.filterType === 'join') {
|
|
37598
|
+
var joinNode = node;
|
|
37599
|
+
var transformed = joinNode.conditions.map(function (condition) {
|
|
37600
|
+
return transformFilterNode$1(condition, context);
|
|
37601
|
+
});
|
|
37602
|
+
//a removed condition matches every row: an AND just drops it, while it satisfies an OR entirely
|
|
37603
|
+
if (joinNode.type === 'OR' && transformed.some(function (condition) {
|
|
37604
|
+
return condition === undefined;
|
|
37605
|
+
})) {
|
|
37606
|
+
return undefined;
|
|
37607
|
+
}
|
|
37608
|
+
var conditions = transformed.filter(function (condition) {
|
|
37609
|
+
return condition !== undefined;
|
|
37610
|
+
});
|
|
37611
|
+
if (conditions.length === 0) {
|
|
37612
|
+
return undefined;
|
|
37613
|
+
}
|
|
37614
|
+
return _objectSpread$10(_objectSpread$10({}, joinNode), {}, {
|
|
37615
|
+
conditions: conditions
|
|
37616
|
+
});
|
|
37617
|
+
}
|
|
37618
|
+
if (node.colId !== context.colId) {
|
|
37619
|
+
return node;
|
|
37620
|
+
}
|
|
37621
|
+
var selected = readSelectedValues(node);
|
|
37622
|
+
if (!selected) {
|
|
37623
|
+
return node;
|
|
37624
|
+
}
|
|
37625
|
+
//deselecting every value matches nothing - kept as is, the adapter suppresses the request for an empty set filter
|
|
37626
|
+
if (!selected.trueSelected && !selected.falseSelected) {
|
|
37627
|
+
return node;
|
|
37628
|
+
}
|
|
37629
|
+
//selecting both values matches every row, so the condition disappears
|
|
37630
|
+
if (selected.trueSelected && selected.falseSelected) {
|
|
37631
|
+
return undefined;
|
|
37632
|
+
}
|
|
37633
|
+
return selected.trueSelected ? displayedTrueFilter(context) : displayedFalseFilter(context);
|
|
37634
|
+
}
|
|
37635
|
+
|
|
37636
|
+
/**
|
|
37637
|
+
* Reads which boolean values a condition on the column selects - from the set filter the grid uses, or from a
|
|
37638
|
+
* boolean advanced filter condition. Returns undefined for any other condition shape, which is then kept as is.
|
|
37639
|
+
*/
|
|
37640
|
+
function readSelectedValues(node) {
|
|
37641
|
+
var filterType = node.filterType;
|
|
37642
|
+
if (filterType === 'set' && 'values' in node) {
|
|
37643
|
+
var values = node.values.map(function (value) {
|
|
37644
|
+
return String(value);
|
|
37645
|
+
});
|
|
37646
|
+
return {
|
|
37647
|
+
trueSelected: values.includes('true'),
|
|
37648
|
+
falseSelected: values.includes('false')
|
|
37649
|
+
};
|
|
37650
|
+
}
|
|
37651
|
+
if (filterType === 'boolean') {
|
|
37652
|
+
return {
|
|
37653
|
+
trueSelected: node.type === 'true',
|
|
37654
|
+
falseSelected: node.type === 'false'
|
|
37655
|
+
};
|
|
37656
|
+
}
|
|
37657
|
+
return undefined;
|
|
37658
|
+
}
|
|
37659
|
+
|
|
37660
|
+
/** The package was created in the current organization and is not based on another package - always displayed false. */
|
|
37661
|
+
function createdHereAndNotBased(context) {
|
|
37662
|
+
return {
|
|
37663
|
+
filterType: 'join',
|
|
37664
|
+
type: 'AND',
|
|
37665
|
+
conditions: [{
|
|
37666
|
+
colId: 'organizationId',
|
|
37667
|
+
filterType: 'text',
|
|
37668
|
+
type: 'equals',
|
|
37669
|
+
filter: context.organizationId
|
|
37670
|
+
}, {
|
|
37671
|
+
colId: 'basedPackageId',
|
|
37672
|
+
filterType: 'text',
|
|
37673
|
+
type: 'blank'
|
|
37674
|
+
}]
|
|
37675
|
+
};
|
|
37676
|
+
}
|
|
37677
|
+
function notCreatedHereOrBased(context) {
|
|
37678
|
+
return {
|
|
37679
|
+
filterType: 'join',
|
|
37680
|
+
type: 'OR',
|
|
37681
|
+
conditions: [{
|
|
37682
|
+
colId: 'organizationId',
|
|
37683
|
+
filterType: 'text',
|
|
37684
|
+
type: 'notEqual',
|
|
37685
|
+
filter: context.organizationId
|
|
37686
|
+
}, {
|
|
37687
|
+
colId: 'basedPackageId',
|
|
37688
|
+
filterType: 'text',
|
|
37689
|
+
type: 'notBlank'
|
|
37690
|
+
}]
|
|
37691
|
+
};
|
|
37692
|
+
}
|
|
37693
|
+
|
|
37694
|
+
/** The organizations whose depending packages the displayed value considers. */
|
|
37695
|
+
function relevantOrganizationIds(context) {
|
|
37696
|
+
return [context.organizationId].concat(_toConsumableArray(context.parentOrganizationIds));
|
|
37697
|
+
}
|
|
37698
|
+
function displayedTrueFilter(context) {
|
|
37699
|
+
return {
|
|
37700
|
+
filterType: 'join',
|
|
37701
|
+
type: 'AND',
|
|
37702
|
+
conditions: [notCreatedHereOrBased(context)].concat(_toConsumableArray(context.automaticPublishingEnabled ?
|
|
37703
|
+
//enabled on organization level: displayed true when no package of the user's organizations depends on it
|
|
37704
|
+
relevantOrganizationIds(context).map(function (organizationId) {
|
|
37705
|
+
return {
|
|
37706
|
+
colId: 'noDependingPackagesInOrganization',
|
|
37707
|
+
filterType: 'text',
|
|
37708
|
+
type: 'equals',
|
|
37709
|
+
filter: organizationId
|
|
37710
|
+
};
|
|
37711
|
+
}) :
|
|
37712
|
+
//otherwise the stored setting decides
|
|
37713
|
+
[{
|
|
37714
|
+
colId: context.colId,
|
|
37715
|
+
filterType: 'set',
|
|
37716
|
+
values: ['true']
|
|
37717
|
+
}]))
|
|
37718
|
+
};
|
|
37719
|
+
}
|
|
37720
|
+
function displayedFalseFilter(context) {
|
|
37721
|
+
return {
|
|
37722
|
+
filterType: 'join',
|
|
37723
|
+
type: 'OR',
|
|
37724
|
+
conditions: [createdHereAndNotBased(context)].concat(_toConsumableArray(context.automaticPublishingEnabled ?
|
|
37725
|
+
//wrapped in single-condition ANDs so the server adapter does not group the equals conditions of this OR
|
|
37726
|
+
//into one set filter, which the filter-only field on the server cannot translate
|
|
37727
|
+
relevantOrganizationIds(context).map(function (organizationId) {
|
|
37728
|
+
return {
|
|
37729
|
+
filterType: 'join',
|
|
37730
|
+
type: 'AND',
|
|
37731
|
+
conditions: [{
|
|
37732
|
+
colId: 'dependingPackagesInOrganization',
|
|
37733
|
+
filterType: 'text',
|
|
37734
|
+
type: 'equals',
|
|
37735
|
+
filter: organizationId
|
|
37736
|
+
}]
|
|
37737
|
+
};
|
|
37738
|
+
}) :
|
|
37739
|
+
//a boolean that was never stored is displayed as false, so the missing value is matched explicitly
|
|
37740
|
+
[{
|
|
37741
|
+
filterType: 'join',
|
|
37742
|
+
type: 'OR',
|
|
37743
|
+
conditions: [{
|
|
37744
|
+
colId: context.colId,
|
|
37745
|
+
filterType: 'set',
|
|
37746
|
+
values: ['false']
|
|
37747
|
+
}, {
|
|
37748
|
+
colId: context.colId,
|
|
37749
|
+
filterType: 'text',
|
|
37750
|
+
type: 'blank'
|
|
37751
|
+
}]
|
|
37752
|
+
}]))
|
|
37753
|
+
};
|
|
37754
|
+
}
|
|
37755
|
+
|
|
37568
37756
|
var TablePackages = observer(function () {
|
|
37569
37757
|
var _root$dataStore$curre;
|
|
37570
37758
|
var root = useStore();
|
|
@@ -37942,7 +38130,21 @@ var TablePackages = observer(function () {
|
|
|
37942
38130
|
var data = _ref10.data;
|
|
37943
38131
|
return automaticPublishingCheck(data).tooltip;
|
|
37944
38132
|
},
|
|
37945
|
-
|
|
38133
|
+
//the displayed value is derived by automaticPublishingCheck above, so a filter on the raw field would not
|
|
38134
|
+
//match what the user sees - the parser rewrites it onto the fields that drive the displayed value
|
|
38135
|
+
filterModelParser: function filterModelParser(_ref11) {
|
|
38136
|
+
var _root$dataStore$curre4, _root$dataStore$curre5, _root$dataStore$curre6;
|
|
38137
|
+
var filterModel = _ref11.filterModel;
|
|
38138
|
+
return parseAutomaticPublishingFilterModel(filterModel, {
|
|
38139
|
+
colId: "settings.".concat(organizationId, ".automaticPublishing"),
|
|
38140
|
+
organizationId: organizationId,
|
|
38141
|
+
automaticPublishingEnabled: !!((_root$dataStore$curre4 = root.dataStore.currentOrganization) !== null && _root$dataStore$curre4 !== void 0 && (_root$dataStore$curre4 = _root$dataStore$curre4.settings) !== null && _root$dataStore$curre4 !== void 0 && _root$dataStore$curre4.automaticPublishing),
|
|
38142
|
+
parentOrganizationIds: ((_root$dataStore$curre5 = (_root$dataStore$curre6 = root.dataStore.currentOrganization) === null || _root$dataStore$curre6 === void 0 ? void 0 : _root$dataStore$curre6.parentOrganizations) !== null && _root$dataStore$curre5 !== void 0 ? _root$dataStore$curre5 : []).map(function (parentOrg) {
|
|
38143
|
+
return parentOrg._id;
|
|
38144
|
+
})
|
|
38145
|
+
});
|
|
38146
|
+
},
|
|
38147
|
+
isDictionary: 1,
|
|
37946
38148
|
defaultValue: false,
|
|
37947
38149
|
additionalFields: ['dependingPackages']
|
|
37948
38150
|
}, {
|
|
@@ -37967,7 +38169,7 @@ var TablePackages = observer(function () {
|
|
|
37967
38169
|
field: "published.".concat(organizationId, ".publishDate"),
|
|
37968
38170
|
cellDataType: 'dateString',
|
|
37969
38171
|
editable: false,
|
|
37970
|
-
isDictionary:
|
|
38172
|
+
isDictionary: 1
|
|
37971
38173
|
}, {
|
|
37972
38174
|
headerName: 'backoffice.idmEnricher.general.label.createdBy',
|
|
37973
38175
|
field: 'createdByDisplayText',
|
|
@@ -37980,7 +38182,7 @@ var TablePackages = observer(function () {
|
|
|
37980
38182
|
headerName: 'backoffice.idmEnricher.packages.label.publishedBy',
|
|
37981
38183
|
field: "published.".concat(organizationId, ".publishedByDisplayText"),
|
|
37982
38184
|
editable: false,
|
|
37983
|
-
isDictionary:
|
|
38185
|
+
isDictionary: 1
|
|
37984
38186
|
}, {
|
|
37985
38187
|
headerName: 'backoffice.idmEnricher.general.label._id',
|
|
37986
38188
|
field: '_id',
|
|
@@ -39361,8 +39563,8 @@ var EnrichmentTable = observer(function (_ref) {
|
|
|
39361
39563
|
});
|
|
39362
39564
|
|
|
39363
39565
|
var rowInherited = "rowInherited-Mszxm";
|
|
39364
|
-
var css_248z$
|
|
39365
|
-
styleInject(css_248z$
|
|
39566
|
+
var css_248z$B = ".rowInherited-Mszxm {\n opacity: 0.6;\n}\n";
|
|
39567
|
+
styleInject(css_248z$B);
|
|
39366
39568
|
|
|
39367
39569
|
var TableTabGroups = observer(function () {
|
|
39368
39570
|
var _useTranslation = useTranslation(),
|
|
@@ -39981,14 +40183,14 @@ function usePriceFactor(_ref) {
|
|
|
39981
40183
|
};
|
|
39982
40184
|
}
|
|
39983
40185
|
|
|
39984
|
-
var cell
|
|
40186
|
+
var cell = "cell-Noc7s";
|
|
39985
40187
|
var typeSelector = "typeSelector-Y8Yly";
|
|
39986
40188
|
var space = "space-T5Mkd";
|
|
39987
40189
|
var input$1 = "input-SK-Fo";
|
|
39988
40190
|
var addButton$1 = "addButton-AVN8Y";
|
|
39989
40191
|
var helpText = "helpText-QYQQF";
|
|
39990
|
-
var css_248z$
|
|
39991
|
-
styleInject(css_248z$
|
|
40192
|
+
var css_248z$A = ".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";
|
|
40193
|
+
styleInject(css_248z$A);
|
|
39992
40194
|
|
|
39993
40195
|
function PriceFactorCellRenderer(props) {
|
|
39994
40196
|
var data = props.data,
|
|
@@ -40115,7 +40317,7 @@ function PriceFactorCellRenderer(props) {
|
|
|
40115
40317
|
});
|
|
40116
40318
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
40117
40319
|
children: [/*#__PURE__*/jsx("div", {
|
|
40118
|
-
className: cell
|
|
40320
|
+
className: cell,
|
|
40119
40321
|
onClick: onClick,
|
|
40120
40322
|
onDoubleClick: onDoubleClick,
|
|
40121
40323
|
children: formatListValue(value || [], type, i18n.language)
|
|
@@ -40204,8 +40406,8 @@ var difference = "difference-xT9ZP";
|
|
|
40204
40406
|
var differencePositive = "differencePositive-hGhZO";
|
|
40205
40407
|
var differenceNegative = "differenceNegative-3CEZA";
|
|
40206
40408
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
|
40207
|
-
var css_248z$
|
|
40208
|
-
styleInject(css_248z$
|
|
40409
|
+
var css_248z$z = ".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";
|
|
40410
|
+
styleInject(css_248z$z);
|
|
40209
40411
|
|
|
40210
40412
|
function PriceDisplayCellRenderer(props) {
|
|
40211
40413
|
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
|
@@ -40315,8 +40517,8 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
|
40315
40517
|
|
|
40316
40518
|
var input = "input-leHam";
|
|
40317
40519
|
var disabled$1 = "disabled-Llkqu";
|
|
40318
|
-
var css_248z$
|
|
40319
|
-
styleInject(css_248z$
|
|
40520
|
+
var css_248z$y = ".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";
|
|
40521
|
+
styleInject(css_248z$y);
|
|
40320
40522
|
|
|
40321
40523
|
var _excluded$8 = ["onSave", "value"];
|
|
40322
40524
|
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; }
|
|
@@ -40350,8 +40552,8 @@ function PriceFactorInput(_ref) {
|
|
|
40350
40552
|
|
|
40351
40553
|
var inputHeader = "input-header--4KDP";
|
|
40352
40554
|
var factorInput = "factor-input-MX85Z";
|
|
40353
|
-
var css_248z$
|
|
40354
|
-
styleInject(css_248z$
|
|
40555
|
+
var css_248z$x = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.input-header--4KDP .ag-header-group-cell-label {\n width: 100%;\n max-width: 250px;\n}\n\n.input-header--4KDP .ag-header-group-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";
|
|
40556
|
+
styleInject(css_248z$x);
|
|
40355
40557
|
|
|
40356
40558
|
function PriceFactorHeaderComponent(_ref) {
|
|
40357
40559
|
var onSave = _ref.onSave,
|
|
@@ -40392,8 +40594,8 @@ function PriceFactorHeaderComponent(_ref) {
|
|
|
40392
40594
|
|
|
40393
40595
|
var root$d = "root-SA2Dd";
|
|
40394
40596
|
var contentWrapper$1 = "content-wrapper-KSvuc";
|
|
40395
|
-
var css_248z$
|
|
40396
|
-
styleInject(css_248z$
|
|
40597
|
+
var css_248z$w = ".root-SA2Dd {\n display: flex;\n flex-direction: column;\n height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.content-wrapper-KSvuc {\n height: 34px;\n display: flex;\n align-items: center;\n}\n";
|
|
40598
|
+
styleInject(css_248z$w);
|
|
40397
40599
|
|
|
40398
40600
|
function Setting(_ref) {
|
|
40399
40601
|
var title = _ref.title,
|
|
@@ -40531,8 +40733,8 @@ function Input(_ref) {
|
|
|
40531
40733
|
}
|
|
40532
40734
|
|
|
40533
40735
|
var uploadDraggerWrapper = "upload-dragger-wrapper-xZiDJ";
|
|
40534
|
-
var css_248z$
|
|
40535
|
-
styleInject(css_248z$
|
|
40736
|
+
var css_248z$v = ".upload-dragger-wrapper-xZiDJ {\n min-height: 220px;\n}\n";
|
|
40737
|
+
styleInject(css_248z$v);
|
|
40536
40738
|
|
|
40537
40739
|
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; }
|
|
40538
40740
|
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; }
|
|
@@ -40874,8 +41076,8 @@ var uploadModalFooter = "upload-modal-footer-W5737";
|
|
|
40874
41076
|
var uploadButton = "upload-button-QkWYP";
|
|
40875
41077
|
var errorGroup = "error-group-lmQSx";
|
|
40876
41078
|
var errorItem = "error-item-kyNLD";
|
|
40877
|
-
var css_248z$
|
|
40878
|
-
styleInject(css_248z$
|
|
41079
|
+
var css_248z$u = ".upload-modal-footer-W5737 {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 10px;\n}\n\n.upload-modal-footer-W5737 > .upload-button-QkWYP {\n width: 300px;\n}\n\n.error-group-lmQSx {\n margin-bottom: 8px;\n}\n\n.error-item-kyNLD {\n padding: 4px 0;\n display: flex;\n align-items: flex-start;\n gap: 8px;\n flex-wrap: wrap;\n}\n\n.row-index-jmU3D {\n font-weight: 600;\n margin-right: 8px;\n}\n";
|
|
41080
|
+
styleInject(css_248z$u);
|
|
40879
41081
|
|
|
40880
41082
|
/**
|
|
40881
41083
|
* Custom hook for managing upload modal state and functionality
|
|
@@ -43168,6 +43370,10 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
|
|
|
43168
43370
|
field: 'actual',
|
|
43169
43371
|
cellDataType: 'boolean',
|
|
43170
43372
|
defaultValue: true,
|
|
43373
|
+
//a catalog without a stored value counts as the actual version, so the filter has to match it like the display
|
|
43374
|
+
customParams: {
|
|
43375
|
+
missingValue: true
|
|
43376
|
+
},
|
|
43171
43377
|
valueGetter: function valueGetter(params) {
|
|
43172
43378
|
var _params$data$actual, _params$data;
|
|
43173
43379
|
return (_params$data$actual = (_params$data = params.data) === null || _params$data === void 0 ? void 0 : _params$data.actual) !== null && _params$data$actual !== void 0 ? _params$data$actual : true;
|
|
@@ -44092,6 +44298,10 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
|
|
|
44092
44298
|
field: 'actual',
|
|
44093
44299
|
cellDataType: 'boolean',
|
|
44094
44300
|
defaultValue: true,
|
|
44301
|
+
//a catalog without a stored value counts as the actual version, so the filter has to match it like the display
|
|
44302
|
+
customParams: {
|
|
44303
|
+
missingValue: true
|
|
44304
|
+
},
|
|
44095
44305
|
valueGetter: function valueGetter(params) {
|
|
44096
44306
|
var _params$data$actual, _params$data;
|
|
44097
44307
|
return (_params$data$actual = (_params$data = params.data) === null || _params$data === void 0 ? void 0 : _params$data.actual) !== null && _params$data$actual !== void 0 ? _params$data$actual : true;
|
|
@@ -45004,11 +45214,11 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
45004
45214
|
},
|
|
45005
45215
|
additionalFields: ['featureClassRefNoDisplayText'],
|
|
45006
45216
|
required: true
|
|
45007
|
-
}, {
|
|
45217
|
+
}], _toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? [] : [{
|
|
45008
45218
|
headerName: 'backoffice.idmCatalogEditor.items.label.eClassNo',
|
|
45009
45219
|
field: 'eClassNo',
|
|
45010
45220
|
cellDataType: 'number'
|
|
45011
|
-
}, {
|
|
45221
|
+
}]), [{
|
|
45012
45222
|
headerName: 'backoffice.idmCatalogEditor.items.label.catalogPage',
|
|
45013
45223
|
field: 'catalogPage'
|
|
45014
45224
|
}, {
|
|
@@ -46732,8 +46942,8 @@ var formContent = "form-content-H-AkE";
|
|
|
46732
46942
|
var footerButtons = "footer-buttons-4cwcu";
|
|
46733
46943
|
var addButton = "add-button-w-6Lk";
|
|
46734
46944
|
var footerContent = "footer-content-sOrT1";
|
|
46735
|
-
var css_248z$
|
|
46736
|
-
styleInject(css_248z$
|
|
46945
|
+
var css_248z$t = ".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";
|
|
46946
|
+
styleInject(css_248z$t);
|
|
46737
46947
|
|
|
46738
46948
|
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; }
|
|
46739
46949
|
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; }
|
|
@@ -50338,6 +50548,8 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
|
50338
50548
|
field: 'pricefeaturegroups',
|
|
50339
50549
|
cellDataType: 'lookup',
|
|
50340
50550
|
customParams: {
|
|
50551
|
+
//the field holds the numeric group numbers, so a text filter must only run against the display texts
|
|
50552
|
+
filterCellType: 'number',
|
|
50341
50553
|
nameField: 'pricefeaturegroupsDisplayTexts',
|
|
50342
50554
|
apiInterface: {
|
|
50343
50555
|
read: apiConfig.idmService + '/catalogs/${catalogId}/pricefeaturegroups'
|
|
@@ -50479,9 +50691,18 @@ function PriceFeatureGroupFinishes(_ref) {
|
|
|
50479
50691
|
return {
|
|
50480
50692
|
headerName: (_priceFeatureGroup$fe5 = (_priceFeatureGroup$fe6 = priceFeatureGroup.featureNosDisplayTexts) === null || _priceFeatureGroup$fe6 === void 0 || (_priceFeatureGroup$fe6 = _priceFeatureGroup$fe6[i]) === null || _priceFeatureGroup$fe6 === void 0 ? void 0 : _priceFeatureGroup$fe6[i18n.language.toUpperCase()]) !== null && _priceFeatureGroup$fe5 !== void 0 ? _priceFeatureGroup$fe5 : featureNos,
|
|
50481
50693
|
field: "optionsSetRefs.".concat(featureNos),
|
|
50694
|
+
cellDataType: 'text',
|
|
50482
50695
|
editable: true,
|
|
50483
50696
|
required: true,
|
|
50484
50697
|
isDictionary: true,
|
|
50698
|
+
customParams: {
|
|
50699
|
+
expandedEditor: OptionSetRefExpandedEditor,
|
|
50700
|
+
expandedEditorProps: {
|
|
50701
|
+
catalogId: catalogId,
|
|
50702
|
+
idmService: apiConfig.idmService,
|
|
50703
|
+
rowFeatureRef: featureNos
|
|
50704
|
+
}
|
|
50705
|
+
},
|
|
50485
50706
|
lockPosition: 'left',
|
|
50486
50707
|
headerComponentParams: {
|
|
50487
50708
|
additionalElement: /*#__PURE__*/jsx(Button, {
|
|
@@ -50591,7 +50812,7 @@ function PriceFeatureGroupFinishes(_ref) {
|
|
|
50591
50812
|
suppressColumnsToolPanel: true
|
|
50592
50813
|
}])
|
|
50593
50814
|
};
|
|
50594
|
-
}, [priceFeatureGroup, addFeature, removeFeature]);
|
|
50815
|
+
}, [priceFeatureGroup, addFeature, removeFeature, catalogId, apiConfig.idmService, i18n.language]);
|
|
50595
50816
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
50596
50817
|
gridId: 'crud-grid_priceGroupFinishes',
|
|
50597
50818
|
applicationData: applicationData,
|
|
@@ -51274,93 +51495,6 @@ var TableFormulas = observer(function () {
|
|
|
51274
51495
|
});
|
|
51275
51496
|
});
|
|
51276
51497
|
|
|
51277
|
-
var cell = "cell-sUiJG";
|
|
51278
|
-
var css_248z$t = ".cell-sUiJG {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n\n.cell-sUiJG .ant-input-number {\n width: 100%;\n}\n\n.cell-sUiJG .ant-select {\n width: 100%;\n}\n\n.cell-sUiJG .ant-input-number-input {\n text-align: right;\n padding: 0;\n}\n";
|
|
51279
|
-
styleInject(css_248z$t);
|
|
51280
|
-
|
|
51281
|
-
/**
|
|
51282
|
-
* Renders one cell of the Zusatzartikel matrix and stages its own changes.
|
|
51283
|
-
*
|
|
51284
|
-
* The matrix cells have no row field of their own - they are computed from the item's ADDITIONAL_ITEMS groups - so
|
|
51285
|
-
* they cannot use the grid's normal editing path: it keys every commit on `colDef.field` and drops an edit without
|
|
51286
|
-
* one. Writing through the transaction handler of the grid context is the route the lookup and asset cells take;
|
|
51287
|
-
* unlike the grid api's setNodeDataValue it does not force an immediate commit, so the changes of a row are sent
|
|
51288
|
-
* together when the selection leaves it.
|
|
51289
|
-
*/
|
|
51290
|
-
function AccessoryCellRenderer(props) {
|
|
51291
|
-
var _isDisabled;
|
|
51292
|
-
var value = props.value,
|
|
51293
|
-
node = props.node,
|
|
51294
|
-
kind = props.kind,
|
|
51295
|
-
min = props.min,
|
|
51296
|
-
max = props.max,
|
|
51297
|
-
options = props.options,
|
|
51298
|
-
disabled = props.disabled,
|
|
51299
|
-
isDisabled = props.isDisabled,
|
|
51300
|
-
onSave = props.onSave,
|
|
51301
|
-
context = props.context;
|
|
51302
|
-
var transactionHandler = context === null || context === void 0 ? void 0 : context.transactionHandler;
|
|
51303
|
-
|
|
51304
|
-
// Rows still loading have no data to write to
|
|
51305
|
-
if (!(node !== null && node !== void 0 && node.data)) return null;
|
|
51306
|
-
var cellDisabled = disabled || ((_isDisabled = isDisabled === null || isDisabled === void 0 ? void 0 : isDisabled(node)) !== null && _isDisabled !== void 0 ? _isDisabled : false);
|
|
51307
|
-
if (kind === 'boolean') {
|
|
51308
|
-
return /*#__PURE__*/jsx("span", {
|
|
51309
|
-
className: cell,
|
|
51310
|
-
children: /*#__PURE__*/jsx(Checkbox$3, {
|
|
51311
|
-
checked: value === true,
|
|
51312
|
-
disabled: cellDisabled,
|
|
51313
|
-
onChange: function onChange(event) {
|
|
51314
|
-
return onSave(node, event.target.checked, transactionHandler);
|
|
51315
|
-
}
|
|
51316
|
-
})
|
|
51317
|
-
});
|
|
51318
|
-
}
|
|
51319
|
-
if (kind === 'select') {
|
|
51320
|
-
return /*#__PURE__*/jsx("span", {
|
|
51321
|
-
className: cell,
|
|
51322
|
-
children: /*#__PURE__*/jsx(Select$1, {
|
|
51323
|
-
value: value !== null && value !== void 0 ? value : undefined,
|
|
51324
|
-
options: options,
|
|
51325
|
-
disabled: cellDisabled,
|
|
51326
|
-
variant: "borderless",
|
|
51327
|
-
size: "small",
|
|
51328
|
-
popupMatchSelectWidth: false,
|
|
51329
|
-
onChange: function onChange(next) {
|
|
51330
|
-
return onSave(node, next, transactionHandler);
|
|
51331
|
-
}
|
|
51332
|
-
})
|
|
51333
|
-
});
|
|
51334
|
-
}
|
|
51335
|
-
return /*#__PURE__*/jsx("span", {
|
|
51336
|
-
className: cell,
|
|
51337
|
-
children: /*#__PURE__*/jsx(InputNumber$1, {
|
|
51338
|
-
value: value !== null && value !== void 0 ? value : null,
|
|
51339
|
-
min: min,
|
|
51340
|
-
max: max,
|
|
51341
|
-
precision: 0,
|
|
51342
|
-
disabled: cellDisabled,
|
|
51343
|
-
variant: "borderless",
|
|
51344
|
-
size: "small",
|
|
51345
|
-
controls: false
|
|
51346
|
-
// Committing on blur and on Enter keeps one staged change per finished entry instead of one per keystroke
|
|
51347
|
-
,
|
|
51348
|
-
onBlur: function onBlur(event) {
|
|
51349
|
-
return save(event.currentTarget.value);
|
|
51350
|
-
},
|
|
51351
|
-
onPressEnter: function onPressEnter(event) {
|
|
51352
|
-
return save(event.currentTarget.value);
|
|
51353
|
-
}
|
|
51354
|
-
})
|
|
51355
|
-
});
|
|
51356
|
-
function save(raw) {
|
|
51357
|
-
var parsed = raw === '' ? undefined : Number(raw);
|
|
51358
|
-
var next = parsed != null && Number.isNaN(parsed) ? undefined : parsed;
|
|
51359
|
-
if ((value !== null && value !== void 0 ? value : undefined) === next) return;
|
|
51360
|
-
onSave(node, next, transactionHandler);
|
|
51361
|
-
}
|
|
51362
|
-
}
|
|
51363
|
-
|
|
51364
51498
|
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; }
|
|
51365
51499
|
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; }
|
|
51366
51500
|
/**
|
|
@@ -51681,16 +51815,83 @@ function additionalItemFields(isV4) {
|
|
|
51681
51815
|
return [mandatory, optional];
|
|
51682
51816
|
}
|
|
51683
51817
|
|
|
51818
|
+
/**
|
|
51819
|
+
* Translates one edited cell of the accessory matrix into the two group fields of the row. The matrix cells are
|
|
51820
|
+
* computed and have no field of their own, so every write the grid hands over - the cell editor, the clipboard and
|
|
51821
|
+
* the fill handle alike - goes through here. Only a value the cell could hold is applied; anything else returns
|
|
51822
|
+
* undefined and leaves the row untouched, so a stray paste cannot corrupt a relation.
|
|
51823
|
+
*/
|
|
51824
|
+
|
|
51825
|
+
var REJECTED$1 = {
|
|
51826
|
+
ok: false
|
|
51827
|
+
};
|
|
51828
|
+
|
|
51829
|
+
/** A plain non-negative integer, from the editor (number) or the clipboard (text). */
|
|
51830
|
+
function parsedInteger(raw) {
|
|
51831
|
+
var value = typeof raw === 'string' && /^\d+$/.test(raw.trim()) ? Number(raw.trim()) : raw;
|
|
51832
|
+
return typeof value === 'number' && Number.isSafeInteger(value) && value >= 0 ? value : undefined;
|
|
51833
|
+
}
|
|
51834
|
+
function parsedValue(kind, raw) {
|
|
51835
|
+
// An emptied cell clears a quantity - the other kinds have nothing an empty value could mean
|
|
51836
|
+
if (raw === undefined || raw === null || raw === '') {
|
|
51837
|
+
return kind === 'mandatoryQuantity' || kind === 'optionalQuantity' ? {
|
|
51838
|
+
ok: true,
|
|
51839
|
+
value: undefined
|
|
51840
|
+
} : REJECTED$1;
|
|
51841
|
+
}
|
|
51842
|
+
if (kind === 'active') {
|
|
51843
|
+
if (typeof raw === 'boolean') return {
|
|
51844
|
+
ok: true,
|
|
51845
|
+
value: raw
|
|
51846
|
+
};
|
|
51847
|
+
var text = String(raw).trim().toLowerCase();
|
|
51848
|
+
return text === 'true' || text === 'false' ? {
|
|
51849
|
+
ok: true,
|
|
51850
|
+
value: text === 'true'
|
|
51851
|
+
} : REJECTED$1;
|
|
51852
|
+
}
|
|
51853
|
+
var value = parsedInteger(raw);
|
|
51854
|
+
if (value === undefined) return REJECTED$1;
|
|
51855
|
+
if (kind === 'setNo' && (value < DEFAULT_SET_NO || value > MAX_SET_NO)) return REJECTED$1;
|
|
51856
|
+
return {
|
|
51857
|
+
ok: true,
|
|
51858
|
+
value: value
|
|
51859
|
+
};
|
|
51860
|
+
}
|
|
51861
|
+
|
|
51862
|
+
/**
|
|
51863
|
+
* Applies one cell value to the row's matrix and returns the rebuilt group fields, or undefined when the value is
|
|
51864
|
+
* nothing the cell could hold. Both fields go together because a quantity can move a reference from the mandatory
|
|
51865
|
+
* into the optional group and back.
|
|
51866
|
+
*/
|
|
51867
|
+
function accessoryRowUpdate(data, isV4, accessory, kind, raw) {
|
|
51868
|
+
var parsed = parsedValue(kind, raw);
|
|
51869
|
+
if (!parsed.ok) return undefined;
|
|
51870
|
+
var cells = readCells(data, isV4);
|
|
51871
|
+
var setMeta = readSetMeta(data, isV4);
|
|
51872
|
+
if (kind === 'setNo') {
|
|
51873
|
+
// The grid shows one set per accessory, so the set goes to both IDM sides - each keeps it only with a quantity
|
|
51874
|
+
applyCellChange(cells, accessory, 'mandatorySetNo', parsed.value);
|
|
51875
|
+
applyCellChange(cells, accessory, 'optionalSetNo', parsed.value);
|
|
51876
|
+
} else {
|
|
51877
|
+
applyCellChange(cells, accessory, kind, parsed.value);
|
|
51878
|
+
}
|
|
51879
|
+
var groups = {};
|
|
51880
|
+
writeCells(groups, isV4, cells, setMeta);
|
|
51881
|
+
var _additionalItemFields = additionalItemFields(isV4),
|
|
51882
|
+
_additionalItemFields2 = _slicedToArray(_additionalItemFields, 2),
|
|
51883
|
+
mandatoryField = _additionalItemFields2[0],
|
|
51884
|
+
optionalField = _additionalItemFields2[1];
|
|
51885
|
+
return _defineProperty(_defineProperty({}, mandatoryField, groups[mandatoryField]), optionalField, groups[optionalField]);
|
|
51886
|
+
}
|
|
51887
|
+
|
|
51684
51888
|
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; }
|
|
51685
51889
|
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; }
|
|
51686
51890
|
/** The IDM sets a reference can belong to - SET_NO is restricted to 1-9. */
|
|
51687
|
-
var
|
|
51891
|
+
var SET_NO_VALUES = Array.from({
|
|
51688
51892
|
length: MAX_SET_NO - DEFAULT_SET_NO + 1
|
|
51689
51893
|
}, function (_, i) {
|
|
51690
|
-
return
|
|
51691
|
-
value: DEFAULT_SET_NO + i,
|
|
51692
|
-
label: String(DEFAULT_SET_NO + i)
|
|
51693
|
-
};
|
|
51894
|
+
return DEFAULT_SET_NO + i;
|
|
51694
51895
|
});
|
|
51695
51896
|
|
|
51696
51897
|
/**
|
|
@@ -51704,11 +51905,10 @@ var SET_NO_OPTIONS = Array.from({
|
|
|
51704
51905
|
* The relations live on the articles themselves (ITEM.ADDITIONAL_ITEMS), so a row is an item and every edit goes
|
|
51705
51906
|
* through the normal item endpoints.
|
|
51706
51907
|
*
|
|
51707
|
-
* A matrix cell has no row field of its own - it is computed from the nested groups - so
|
|
51708
|
-
*
|
|
51709
|
-
*
|
|
51710
|
-
*
|
|
51711
|
-
* a value can be dragged onto the rows below it.
|
|
51908
|
+
* A matrix cell has no row field of its own - it is computed from the nested groups - so each column carries a
|
|
51909
|
+
* cellEditToRowUpdate that turns its edited value back into the two group fields. Everything else is the grid's
|
|
51910
|
+
* normal editing: the standard editors, clipboard and fill handle all funnel their writes through that one hook,
|
|
51911
|
+
* and the transaction handler commits the staged changes when the row is left.
|
|
51712
51912
|
*/
|
|
51713
51913
|
var ArticleRelations = observer(function (props) {
|
|
51714
51914
|
var idmService = props.idmService,
|
|
@@ -51772,59 +51972,15 @@ var ArticleRelations = observer(function (props) {
|
|
|
51772
51972
|
* selection moves to another row. Both arrays go together because a quantity can move a reference from the
|
|
51773
51973
|
* mandatory into the optional group and back.
|
|
51774
51974
|
*/
|
|
51775
|
-
var save = useCallback(function (node, transactionHandler, change) {
|
|
51776
|
-
var data = node === null || node === void 0 ? void 0 : node.data;
|
|
51777
|
-
if (!data || !transactionHandler) return;
|
|
51778
|
-
var cells = readCells(data, isV4);
|
|
51779
|
-
var setMeta = readSetMeta(data, isV4);
|
|
51780
|
-
change(cells, setMeta);
|
|
51781
|
-
var groups = {};
|
|
51782
|
-
writeCells(groups, isV4, cells, setMeta);
|
|
51783
|
-
var _additionalItemFields3 = additionalItemFields(isV4),
|
|
51784
|
-
_additionalItemFields4 = _slicedToArray(_additionalItemFields3, 2),
|
|
51785
|
-
mandatoryField = _additionalItemFields4[0],
|
|
51786
|
-
optionalField = _additionalItemFields4[1];
|
|
51787
|
-
transactionHandler.updateRow(node.id, _defineProperty(_defineProperty({}, mandatoryField, groups[mandatoryField]), optionalField, groups[optionalField]), true);
|
|
51788
|
-
}, [isV4]);
|
|
51789
|
-
var saveCell = useCallback(function (accessory, property) {
|
|
51790
|
-
return function (node, value, transactionHandler) {
|
|
51791
|
-
return save(node, transactionHandler, function (cells) {
|
|
51792
|
-
return applyCellChange(cells, accessory, property, value);
|
|
51793
|
-
});
|
|
51794
|
-
};
|
|
51795
|
-
}, [save]);
|
|
51796
|
-
|
|
51797
51975
|
/**
|
|
51798
|
-
*
|
|
51799
|
-
*
|
|
51976
|
+
* The one write path of a matrix cell: the grid hands every edit here - editor, clipboard and fill handle alike -
|
|
51977
|
+
* and gets back the rebuilt group fields to stage, or undefined for a value the cell cannot hold.
|
|
51800
51978
|
*/
|
|
51801
|
-
var
|
|
51802
|
-
return function (node, value, transactionHandler) {
|
|
51803
|
-
return save(node, transactionHandler, function (cells) {
|
|
51804
|
-
applyCellChange(cells, accessory, 'mandatorySetNo', value);
|
|
51805
|
-
applyCellChange(cells, accessory, 'optionalSetNo', value);
|
|
51806
|
-
});
|
|
51807
|
-
};
|
|
51808
|
-
}, [save]);
|
|
51809
|
-
|
|
51810
|
-
/**
|
|
51811
|
-
* Fill handle: copies the value of the dragged cells onto the rows they are dragged over, through the same save
|
|
51812
|
-
* the cell renderer uses. Only vertical drags copy - sideways the next column means something else. The cell
|
|
51813
|
-
* value is returned unchanged, which keeps the write of the grid (which would need a field) out of it.
|
|
51814
|
-
*/
|
|
51815
|
-
var fill = useCallback(function (onSave) {
|
|
51979
|
+
var edit = useCallback(function (accessory, kind) {
|
|
51816
51980
|
return function (params) {
|
|
51817
|
-
|
|
51818
|
-
// The cells disable their own input on a view, the fill has to refuse the write just as much
|
|
51819
|
-
if (viewOnly) return false;
|
|
51820
|
-
if (params.direction !== 'down' && params.direction !== 'up') return false;
|
|
51821
|
-
|
|
51822
|
-
// Several dragged cells repeat over the filled rows, like the fill of the grid does
|
|
51823
|
-
var value = params.initialValues[params.currentIndex % params.initialValues.length];
|
|
51824
|
-
onSave(params.rowNode, value, (_params$context = params.context) === null || _params$context === void 0 ? void 0 : _params$context.transactionHandler);
|
|
51825
|
-
return params.currentCellValue;
|
|
51981
|
+
return accessoryRowUpdate(params.data, isV4, accessory, kind, params.newValue);
|
|
51826
51982
|
};
|
|
51827
|
-
}, [
|
|
51983
|
+
}, [isV4]);
|
|
51828
51984
|
|
|
51829
51985
|
/**
|
|
51830
51986
|
* Deletes every relation of one accessory in this serie - the whole column. The relations are spread over the
|
|
@@ -51876,17 +52032,14 @@ var ArticleRelations = observer(function (props) {
|
|
|
51876
52032
|
var accessoryColumnDefs = useMemo(function () {
|
|
51877
52033
|
return accessories.map(function (accessory) {
|
|
51878
52034
|
var _accessory$serieName, _accessory$shortText;
|
|
51879
|
-
// Computed from nested groups: no field to sort
|
|
51880
|
-
// the parsers below, which rewrite them onto the fields the item endpoint
|
|
52035
|
+
// Computed from nested groups: no field to sort on, edits go through cellEditToRowUpdate. The filters
|
|
52036
|
+
// reach the server through the parsers below, which rewrite them onto the fields the item endpoint
|
|
52037
|
+
// answers for one accessory. The data type also picks the matching editor and filter operations.
|
|
51881
52038
|
var matrixCell = {
|
|
51882
|
-
editable:
|
|
51883
|
-
sortable: false
|
|
51884
|
-
cellRenderer: AccessoryCellRenderer
|
|
52039
|
+
editable: !viewOnly,
|
|
52040
|
+
sortable: false
|
|
51885
52041
|
};
|
|
51886
|
-
|
|
51887
|
-
// operations the service cannot answer for a number. The numeric columns have to name their type to get
|
|
51888
|
-
// the numeric operations instead.
|
|
51889
|
-
var numberFilter = _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
|
|
52042
|
+
var numberCell = _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
|
|
51890
52043
|
cellDataType: 'number'
|
|
51891
52044
|
});
|
|
51892
52045
|
var cellOf = function cellOf(data) {
|
|
@@ -51930,7 +52083,7 @@ var ArticleRelations = observer(function (props) {
|
|
|
51930
52083
|
})
|
|
51931
52084
|
})
|
|
51932
52085
|
},
|
|
51933
|
-
children: [_objectSpread$E(_objectSpread$E({},
|
|
52086
|
+
children: [_objectSpread$E(_objectSpread$E({}, numberCell), {}, {
|
|
51934
52087
|
headerName: 'backoffice.idmCatalog.articlerelations.label.mandatoryQuantity',
|
|
51935
52088
|
colId: "".concat(accessory.key, ".mandatoryQuantity"),
|
|
51936
52089
|
filterModelParser: quantityFilterParser("".concat(accessory.key, ".mandatoryQuantity"), accessory, 'mandatory'),
|
|
@@ -51939,14 +52092,8 @@ var ArticleRelations = observer(function (props) {
|
|
|
51939
52092
|
var data = _ref2.data;
|
|
51940
52093
|
return data ? (_cellOf = cellOf(data)) === null || _cellOf === void 0 ? void 0 : _cellOf.mandatoryQuantity : undefined;
|
|
51941
52094
|
},
|
|
51942
|
-
|
|
51943
|
-
|
|
51944
|
-
kind: 'number',
|
|
51945
|
-
min: 0,
|
|
51946
|
-
disabled: viewOnly,
|
|
51947
|
-
onSave: saveCell(accessory, 'mandatoryQuantity')
|
|
51948
|
-
}
|
|
51949
|
-
}), _objectSpread$E(_objectSpread$E({}, numberFilter), {}, {
|
|
52095
|
+
cellEditToRowUpdate: edit(accessory, 'mandatoryQuantity')
|
|
52096
|
+
}), _objectSpread$E(_objectSpread$E({}, numberCell), {}, {
|
|
51950
52097
|
headerName: 'backoffice.idmCatalog.articlerelations.label.optionalQuantity',
|
|
51951
52098
|
colId: "".concat(accessory.key, ".optionalQuantity"),
|
|
51952
52099
|
filterModelParser: quantityFilterParser("".concat(accessory.key, ".optionalQuantity"), accessory, 'optional'),
|
|
@@ -51955,59 +52102,44 @@ var ArticleRelations = observer(function (props) {
|
|
|
51955
52102
|
var data = _ref3.data;
|
|
51956
52103
|
return data ? (_cellOf2 = cellOf(data)) === null || _cellOf2 === void 0 ? void 0 : _cellOf2.optionalQuantity : undefined;
|
|
51957
52104
|
},
|
|
51958
|
-
|
|
51959
|
-
|
|
51960
|
-
kind: 'number',
|
|
51961
|
-
min: 0,
|
|
51962
|
-
disabled: viewOnly,
|
|
51963
|
-
onSave: saveCell(accessory, 'optionalQuantity')
|
|
51964
|
-
}
|
|
51965
|
-
}), _objectSpread$E(_objectSpread$E({}, numberFilter), {}, {
|
|
52105
|
+
cellEditToRowUpdate: edit(accessory, 'optionalQuantity')
|
|
52106
|
+
}), _objectSpread$E(_objectSpread$E({}, numberCell), {}, {
|
|
51966
52107
|
headerName: 'backoffice.idmCatalog.articlerelations.label.setNo',
|
|
51967
52108
|
colId: "".concat(accessory.key, ".setNo"),
|
|
52109
|
+
// Editable exactly while a quantity is set - without one there is nothing the set could publish
|
|
52110
|
+
editable: function editable(params) {
|
|
52111
|
+
if (viewOnly) return false;
|
|
52112
|
+
var cell = cellOf(params.data);
|
|
52113
|
+
return (cell === null || cell === void 0 ? void 0 : cell.mandatoryQuantity) != null || (cell === null || cell === void 0 ? void 0 : cell.optionalQuantity) != null;
|
|
52114
|
+
},
|
|
52115
|
+
cellEditor: 'agSelectCellEditor',
|
|
52116
|
+
cellEditorParams: {
|
|
52117
|
+
values: SET_NO_VALUES
|
|
52118
|
+
},
|
|
51968
52119
|
filterModelParser: setNoFilterParser("".concat(accessory.key, ".setNo"), accessory),
|
|
51969
52120
|
// Both sides are always written together, so either one carries the set of the relation
|
|
51970
52121
|
valueGetter: function valueGetter(_ref4) {
|
|
51971
|
-
var
|
|
52122
|
+
var _cell$mandatorySetNo;
|
|
51972
52123
|
var data = _ref4.data;
|
|
51973
|
-
|
|
52124
|
+
var cell = data ? cellOf(data) : undefined;
|
|
52125
|
+
return (_cell$mandatorySetNo = cell === null || cell === void 0 ? void 0 : cell.mandatorySetNo) !== null && _cell$mandatorySetNo !== void 0 ? _cell$mandatorySetNo : cell === null || cell === void 0 ? void 0 : cell.optionalSetNo;
|
|
51974
52126
|
},
|
|
51975
|
-
|
|
51976
|
-
kind: 'select',
|
|
51977
|
-
options: SET_NO_OPTIONS,
|
|
51978
|
-
disabled: viewOnly,
|
|
51979
|
-
// Required exactly while a quantity is set - without one there is nothing the set could publish
|
|
51980
|
-
isDisabled: function isDisabled(node) {
|
|
51981
|
-
var _cellOf5, _cellOf6;
|
|
51982
|
-
return ((_cellOf5 = cellOf(node.data)) === null || _cellOf5 === void 0 ? void 0 : _cellOf5.mandatoryQuantity) == null && ((_cellOf6 = cellOf(node.data)) === null || _cellOf6 === void 0 ? void 0 : _cellOf6.optionalQuantity) == null;
|
|
51983
|
-
},
|
|
51984
|
-
onSave: saveSetNo(accessory)
|
|
51985
|
-
},
|
|
51986
|
-
setFillValue: fill(saveSetNo(accessory))
|
|
52127
|
+
cellEditToRowUpdate: edit(accessory, 'setNo')
|
|
51987
52128
|
}), _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
|
|
51988
52129
|
headerName: 'backoffice.idmCatalog.articlerelations.label.active',
|
|
51989
52130
|
colId: "".concat(accessory.key, ".active"),
|
|
51990
|
-
|
|
51991
|
-
filterParams: {
|
|
51992
|
-
suppressMiniFilter: true,
|
|
51993
|
-
values: [true, false]
|
|
51994
|
-
},
|
|
52131
|
+
cellDataType: 'boolean',
|
|
51995
52132
|
filterModelParser: activeFilterParser("".concat(accessory.key, ".active"), accessory),
|
|
51996
52133
|
valueGetter: function valueGetter(_ref5) {
|
|
51997
|
-
var _cellOf$active,
|
|
52134
|
+
var _cellOf$active, _cellOf3;
|
|
51998
52135
|
var data = _ref5.data;
|
|
51999
|
-
return data ? (_cellOf$active = (
|
|
52136
|
+
return data ? (_cellOf$active = (_cellOf3 = cellOf(data)) === null || _cellOf3 === void 0 ? void 0 : _cellOf3.active) !== null && _cellOf$active !== void 0 ? _cellOf$active : false : undefined;
|
|
52000
52137
|
},
|
|
52001
|
-
|
|
52002
|
-
cellRendererParams: {
|
|
52003
|
-
kind: 'boolean',
|
|
52004
|
-
disabled: viewOnly,
|
|
52005
|
-
onSave: saveCell(accessory, 'active')
|
|
52006
|
-
}
|
|
52138
|
+
cellEditToRowUpdate: edit(accessory, 'active')
|
|
52007
52139
|
})]
|
|
52008
52140
|
};
|
|
52009
52141
|
});
|
|
52010
|
-
}, [accessories, language, ownSerieNo, isV4, viewOnly,
|
|
52142
|
+
}, [accessories, language, ownSerieNo, isV4, viewOnly, edit, removeAccessory, t]);
|
|
52011
52143
|
var configuration = useMemo(function () {
|
|
52012
52144
|
return {
|
|
52013
52145
|
type: 'dotnetSSM',
|