@crystaldesign/diva-backoffice 25.12.0-beta.1 → 25.12.0-beta.10
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 +651 -424
- package/build/types/backoffice/src/Configuration.d.ts +3 -2
- package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/index.d.ts +9 -0
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/modules/MediaItemRefTableModule/index.d.ts +5 -0
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/modules/MediaItemRefTableModule/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/modules/MediaTableModule/index.d.ts +3 -0
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/modules/MediaTableModule/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/types.d.ts +5 -0
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/types.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ActionMenu/components/ExportModal.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ActionMenu/components/Modals.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ActionMenu/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ActionMenu/menuUtils.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ActionMenu/types.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ActionMenu/useModalOpenState.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/Form/elements/Checkbox/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/Form/elements/Dragger/DraggerComponent.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/Form/elements/Dragger/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/Form/elements/Dragger/utils.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/Form/elements/Input/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/Form/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/Form/types.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/Form/useForm.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/Form/utils.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/InformationButton.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/Setting/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/UploadModal/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/UploadModal/types.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/UploadModal/useUploadState.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/UploadModalbutton/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/commonEnums.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/createTranslatedColumnConfig.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/useLoadingModal.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/usePriceFeatureGroupsFromSerie.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/useTools.d.ts +7 -4
- package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptionGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCollectionEditor/modules/TableCollections/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts.map +1 -1
- package/package.json +9 -9
- package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/components/ExportModal.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/components/Modals.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/menuUtils.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/types.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/useModalOpenState.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Checkbox/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/DraggerComponent.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/utils.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Input/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/Form/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/Form/types.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/Form/useForm.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/Form/utils.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/InformationButton.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/Setting/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/types.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/useUploadState.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModalbutton/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/useLoadingModal.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/usePriceFeatureGroupsFromSerie.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts.map +0 -1
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/ActionMenu/components/ExportModal.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/ActionMenu/components/Modals.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/ActionMenu/index.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/ActionMenu/menuUtils.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/ActionMenu/types.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/ActionMenu/useModalOpenState.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/Form/elements/Checkbox/index.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/Form/elements/Dragger/DraggerComponent.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/Form/elements/Dragger/index.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/Form/elements/Dragger/utils.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/Form/elements/Input/index.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/Form/index.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/Form/types.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/Form/useForm.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/Form/utils.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/InformationButton.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/Setting/index.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/SpreadsheetWrapper/index.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/UploadModal/index.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/UploadModal/types.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/UploadModal/useUploadState.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/UploadModalbutton/index.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/commonEnums.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/createTranslatedColumnConfig.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/useLoadingModal.d.ts +0 -0
- /package/build/types/backoffice/src/ui/{IDMCommonComponents → CommonComponents}/usePriceFeatureGroupsFromSerie.d.ts +0 -0
package/build/esm/index.js
CHANGED
|
@@ -130,6 +130,7 @@ import InboxOutlined$1 from '@ant-design/icons/lib/icons/InboxOutlined';
|
|
|
130
130
|
import JSZip from 'jszip';
|
|
131
131
|
import UploadOutlined$1 from '@ant-design/icons/lib/icons/UploadOutlined';
|
|
132
132
|
import { GridError } from '@crystaldesign/spreadsheet/errors';
|
|
133
|
+
import { MediaDetailCard } from '@crystaldesign/assetmanager';
|
|
133
134
|
import { DropzoneAreaBase } from 'react-mui-dropzone';
|
|
134
135
|
import Switch$1 from 'antd/es/switch';
|
|
135
136
|
import Layout$1 from 'antd/es/layout';
|
|
@@ -152,9 +153,9 @@ import PushpinOutlined from '@ant-design/icons/lib/icons/PushpinOutlined';
|
|
|
152
153
|
globalThis.process = { env:env };
|
|
153
154
|
})();
|
|
154
155
|
|
|
155
|
-
function _createForOfIteratorHelper$
|
|
156
|
-
function _unsupportedIterableToArray$
|
|
157
|
-
function _arrayLikeToArray$
|
|
156
|
+
function _createForOfIteratorHelper$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(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; } } }; }
|
|
157
|
+
function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(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$o(r, a) : void 0; } }
|
|
158
|
+
function _arrayLikeToArray$o(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; }
|
|
158
159
|
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; }
|
|
159
160
|
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; }
|
|
160
161
|
var LOG$f = getLogger('Backoffice', 'ApplyMapping');
|
|
@@ -189,7 +190,7 @@ function applyMapping (_ref) {
|
|
|
189
190
|
function meetsCondition(map) {
|
|
190
191
|
if (!map.condition) return true;
|
|
191
192
|
var value = mappingData[map.condition.field];
|
|
192
|
-
var _iterator = _createForOfIteratorHelper$
|
|
193
|
+
var _iterator = _createForOfIteratorHelper$o(map.condition.values),
|
|
193
194
|
_step;
|
|
194
195
|
try {
|
|
195
196
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -268,7 +269,7 @@ function applyMapping (_ref) {
|
|
|
268
269
|
_url.href = _url.href.replace('&' + m.targetField + '=${' + m.targetField + '}', '');
|
|
269
270
|
}
|
|
270
271
|
}
|
|
271
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
272
|
+
var _iterator2 = _createForOfIteratorHelper$o(_url.searchParams.entries()),
|
|
272
273
|
_step2;
|
|
273
274
|
try {
|
|
274
275
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -13549,6 +13550,9 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
13549
13550
|
},
|
|
13550
13551
|
IDMFeaturesEditor: {
|
|
13551
13552
|
type: 'IDMFeaturesEditor'
|
|
13553
|
+
},
|
|
13554
|
+
MediaTable: {
|
|
13555
|
+
type: 'MediaTable'
|
|
13552
13556
|
}
|
|
13553
13557
|
};
|
|
13554
13558
|
}
|
|
@@ -13608,9 +13612,9 @@ function MenuLabel (_ref) {
|
|
|
13608
13612
|
});
|
|
13609
13613
|
}
|
|
13610
13614
|
|
|
13611
|
-
function _createForOfIteratorHelper$
|
|
13612
|
-
function _unsupportedIterableToArray$
|
|
13613
|
-
function _arrayLikeToArray$
|
|
13615
|
+
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; } } }; }
|
|
13616
|
+
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; } }
|
|
13617
|
+
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; }
|
|
13614
13618
|
function applyRule(_ref) {
|
|
13615
13619
|
var rules = _ref.rules,
|
|
13616
13620
|
data = _ref.data,
|
|
@@ -13619,7 +13623,7 @@ function applyRule(_ref) {
|
|
|
13619
13623
|
//if or we start with false until the first time some result is true
|
|
13620
13624
|
//if and we start with true until the frist time some result is false
|
|
13621
13625
|
var result = !or;
|
|
13622
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13626
|
+
var _iterator = _createForOfIteratorHelper$n(rules),
|
|
13623
13627
|
_step;
|
|
13624
13628
|
try {
|
|
13625
13629
|
var _loop = function _loop() {
|
|
@@ -13689,7 +13693,7 @@ function aplyRules(_ref2) {
|
|
|
13689
13693
|
if (!data || data.length == 0) return {
|
|
13690
13694
|
applied: false
|
|
13691
13695
|
};
|
|
13692
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
13696
|
+
var _iterator2 = _createForOfIteratorHelper$n(data),
|
|
13693
13697
|
_step2;
|
|
13694
13698
|
try {
|
|
13695
13699
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -14109,9 +14113,9 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
|
14109
14113
|
|
|
14110
14114
|
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; }
|
|
14111
14115
|
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; }
|
|
14112
|
-
function _createForOfIteratorHelper$
|
|
14113
|
-
function _unsupportedIterableToArray$
|
|
14114
|
-
function _arrayLikeToArray$
|
|
14116
|
+
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; } } }; }
|
|
14117
|
+
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; } }
|
|
14118
|
+
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; }
|
|
14115
14119
|
var _default$6 = /*#__PURE__*/function () {
|
|
14116
14120
|
function _default(root) {
|
|
14117
14121
|
_classCallCheck(this, _default);
|
|
@@ -14144,7 +14148,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
14144
14148
|
var initKeys = this.root.navigationState.path == '' ? [] : this.keysFormPath(this._menu, this.root.navigationState.path);
|
|
14145
14149
|
var checkedKeys = [];
|
|
14146
14150
|
var currentMenu = this._menu;
|
|
14147
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14151
|
+
var _iterator = _createForOfIteratorHelper$m(initKeys),
|
|
14148
14152
|
_step;
|
|
14149
14153
|
try {
|
|
14150
14154
|
var _loop = function _loop() {
|
|
@@ -14786,19 +14790,26 @@ var menu = [{
|
|
|
14786
14790
|
permission: 'backoffice_admin_users'
|
|
14787
14791
|
}, {
|
|
14788
14792
|
id: 'mediaAdmin',
|
|
14793
|
+
path: 'assetmanager',
|
|
14789
14794
|
label: 'backoffice.menu.items.label.mediaAdmin',
|
|
14790
14795
|
permission: 'backoffice_admin_media',
|
|
14791
14796
|
icon: 'FileOutlined',
|
|
14792
14797
|
items: [{
|
|
14793
14798
|
id: 'TableMedia',
|
|
14794
|
-
path: '
|
|
14799
|
+
path: 'mediaLegacy',
|
|
14795
14800
|
label: 'backoffice.menu.items.label.mediaAdmin',
|
|
14796
14801
|
icon: 'FileOutlined'
|
|
14797
14802
|
}, {
|
|
14798
14803
|
id: 'TableMediaRef',
|
|
14799
|
-
path: '
|
|
14804
|
+
path: 'mediarefLegacy',
|
|
14800
14805
|
label: 'backoffice.menu.items.label.TableMediaRef',
|
|
14801
14806
|
icon: 'LinkOutlined'
|
|
14807
|
+
}, {
|
|
14808
|
+
id: 'MediaTable',
|
|
14809
|
+
path: 'media',
|
|
14810
|
+
label: 'Medien (Beta)',
|
|
14811
|
+
//TODO: Add translation key when old Media Table is removed
|
|
14812
|
+
icon: 'FileOutlined'
|
|
14802
14813
|
}]
|
|
14803
14814
|
}, {
|
|
14804
14815
|
id: 'adminClientRelations',
|
|
@@ -15218,9 +15229,9 @@ var _default$3 = /*#__PURE__*/function () {
|
|
|
15218
15229
|
}]);
|
|
15219
15230
|
}();
|
|
15220
15231
|
|
|
15221
|
-
function _createForOfIteratorHelper$
|
|
15222
|
-
function _unsupportedIterableToArray$
|
|
15223
|
-
function _arrayLikeToArray$
|
|
15232
|
+
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; } } }; }
|
|
15233
|
+
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; } }
|
|
15234
|
+
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; }
|
|
15224
15235
|
var LOG$d = getLogger('Backoffice', 'DownloadStore');
|
|
15225
15236
|
var DownloadStore = /*#__PURE__*/function () {
|
|
15226
15237
|
function DownloadStore(_rootStore) {
|
|
@@ -15248,7 +15259,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
|
15248
15259
|
_context2.next = 23;
|
|
15249
15260
|
break;
|
|
15250
15261
|
}
|
|
15251
|
-
_iterator = _createForOfIteratorHelper$
|
|
15262
|
+
_iterator = _createForOfIteratorHelper$l(action.download);
|
|
15252
15263
|
_context2.prev = 8;
|
|
15253
15264
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
15254
15265
|
var _download$params, _data$fileFormat, _data$fileUrl;
|
|
@@ -15592,7 +15603,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
|
15592
15603
|
break;
|
|
15593
15604
|
}
|
|
15594
15605
|
promises = [];
|
|
15595
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
15606
|
+
_iterator2 = _createForOfIteratorHelper$l(props.data);
|
|
15596
15607
|
_context7.prev = 3;
|
|
15597
15608
|
_iterator2.s();
|
|
15598
15609
|
case 5:
|
|
@@ -16376,9 +16387,9 @@ var MediaItem = /*#__PURE__*/function () {
|
|
|
16376
16387
|
|
|
16377
16388
|
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; }
|
|
16378
16389
|
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; }
|
|
16379
|
-
function _createForOfIteratorHelper$
|
|
16380
|
-
function _unsupportedIterableToArray$
|
|
16381
|
-
function _arrayLikeToArray$
|
|
16390
|
+
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; } } }; }
|
|
16391
|
+
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; } }
|
|
16392
|
+
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; }
|
|
16382
16393
|
function useFormData (_ref) {
|
|
16383
16394
|
var _loadedData$_id;
|
|
16384
16395
|
var id = _ref.id,
|
|
@@ -16450,7 +16461,7 @@ function useFormData (_ref) {
|
|
|
16450
16461
|
setSelectedItems = _useState14[1];
|
|
16451
16462
|
var _onLoadFields = function onLoadFields(data) {
|
|
16452
16463
|
var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : selectedItems;
|
|
16453
|
-
var _iterator = _createForOfIteratorHelper$
|
|
16464
|
+
var _iterator = _createForOfIteratorHelper$k(items),
|
|
16454
16465
|
_step;
|
|
16455
16466
|
try {
|
|
16456
16467
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -16828,7 +16839,7 @@ function useFormData (_ref) {
|
|
|
16828
16839
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
16829
16840
|
while (1) switch (_context4.prev = _context4.next) {
|
|
16830
16841
|
case 0:
|
|
16831
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
16842
|
+
_iterator3 = _createForOfIteratorHelper$k(items);
|
|
16832
16843
|
_context4.prev = 1;
|
|
16833
16844
|
_iterator3.s();
|
|
16834
16845
|
case 3:
|
|
@@ -16914,7 +16925,7 @@ function useFormData (_ref) {
|
|
|
16914
16925
|
_iterator3.f();
|
|
16915
16926
|
return _context4.finish(42);
|
|
16916
16927
|
case 45:
|
|
16917
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
16928
|
+
_iterator4 = _createForOfIteratorHelper$k(removedMedias);
|
|
16918
16929
|
_context4.prev = 46;
|
|
16919
16930
|
_iterator4.s();
|
|
16920
16931
|
case 48:
|
|
@@ -16997,7 +17008,7 @@ function useFormData (_ref) {
|
|
|
16997
17008
|
return _getDynamicValue.apply(this, arguments);
|
|
16998
17009
|
};
|
|
16999
17010
|
items = selectedItems !== null && selectedItems !== void 0 ? selectedItems : configuration.items;
|
|
17000
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
17011
|
+
_iterator5 = _createForOfIteratorHelper$k(items);
|
|
17001
17012
|
_context6.prev = 4;
|
|
17002
17013
|
_iterator5.s();
|
|
17003
17014
|
case 6:
|
|
@@ -17108,7 +17119,7 @@ function useFormData (_ref) {
|
|
|
17108
17119
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
17109
17120
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17110
17121
|
case 0:
|
|
17111
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
17122
|
+
_iterator2 = _createForOfIteratorHelper$k(items);
|
|
17112
17123
|
_context3.prev = 1;
|
|
17113
17124
|
_iterator2.s();
|
|
17114
17125
|
case 3:
|
|
@@ -17721,15 +17732,15 @@ var InputComponent = function InputComponent(_ref, ref) {
|
|
|
17721
17732
|
};
|
|
17722
17733
|
var InputComponent$1 = observer(/*#__PURE__*/React.forwardRef(InputComponent));
|
|
17723
17734
|
|
|
17724
|
-
function _createForOfIteratorHelper$
|
|
17725
|
-
function _unsupportedIterableToArray$
|
|
17726
|
-
function _arrayLikeToArray$
|
|
17735
|
+
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; } } }; }
|
|
17736
|
+
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; } }
|
|
17737
|
+
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; }
|
|
17727
17738
|
function getCombinedValues(data, pattern) {
|
|
17728
17739
|
if (!pattern || !data) {
|
|
17729
17740
|
return data;
|
|
17730
17741
|
}
|
|
17731
17742
|
var value = pattern;
|
|
17732
|
-
var _iterator = _createForOfIteratorHelper$
|
|
17743
|
+
var _iterator = _createForOfIteratorHelper$j(pattern.matchAll(/\$\{(.*?)\}/g)),
|
|
17733
17744
|
_step;
|
|
17734
17745
|
try {
|
|
17735
17746
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -18933,9 +18944,9 @@ function SelectClientRelationCatalog (_ref) {
|
|
|
18933
18944
|
});
|
|
18934
18945
|
}
|
|
18935
18946
|
|
|
18936
|
-
function _createForOfIteratorHelper$
|
|
18937
|
-
function _unsupportedIterableToArray$
|
|
18938
|
-
function _arrayLikeToArray$
|
|
18947
|
+
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; } } }; }
|
|
18948
|
+
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; } }
|
|
18949
|
+
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; }
|
|
18939
18950
|
function ownKeys$X(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18940
18951
|
function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$X(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$X(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18941
18952
|
function useSelectData (_ref) {
|
|
@@ -19181,7 +19192,7 @@ function useSelectData (_ref) {
|
|
|
19181
19192
|
var verifySelection = function verifySelection(opt) {
|
|
19182
19193
|
if (disabledConfig == undefined) return [];
|
|
19183
19194
|
var _missingFields = [];
|
|
19184
|
-
var _iterator = _createForOfIteratorHelper$
|
|
19195
|
+
var _iterator = _createForOfIteratorHelper$i(disabledConfig),
|
|
19185
19196
|
_step;
|
|
19186
19197
|
try {
|
|
19187
19198
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -20013,9 +20024,9 @@ var Text = function Text(_ref) {
|
|
|
20013
20024
|
};
|
|
20014
20025
|
var Text$1 = observer(Text);
|
|
20015
20026
|
|
|
20016
|
-
function _createForOfIteratorHelper$
|
|
20017
|
-
function _unsupportedIterableToArray$
|
|
20018
|
-
function _arrayLikeToArray$
|
|
20027
|
+
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; } } }; }
|
|
20028
|
+
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; } }
|
|
20029
|
+
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; }
|
|
20019
20030
|
function ownKeys$U(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20020
20031
|
function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$U(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20021
20032
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName) {
|
|
@@ -20110,7 +20121,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
20110
20121
|
mappingData: state.data,
|
|
20111
20122
|
callback: function callback(data) {
|
|
20112
20123
|
if (!item.callbackMapping) return;
|
|
20113
|
-
var _iterator = _createForOfIteratorHelper$
|
|
20124
|
+
var _iterator = _createForOfIteratorHelper$h(item.callbackMapping),
|
|
20114
20125
|
_step;
|
|
20115
20126
|
try {
|
|
20116
20127
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -20321,9 +20332,9 @@ function isReadonly(item, data) {
|
|
|
20321
20332
|
|
|
20322
20333
|
function ownKeys$T(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20323
20334
|
function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$T(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$T(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20324
|
-
function _createForOfIteratorHelper$
|
|
20325
|
-
function _unsupportedIterableToArray$
|
|
20326
|
-
function _arrayLikeToArray$
|
|
20335
|
+
function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
20336
|
+
function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
|
|
20337
|
+
function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20327
20338
|
var Presets = function Presets(_ref) {
|
|
20328
20339
|
var state = _ref.state,
|
|
20329
20340
|
apiHandler = _ref.apiHandler,
|
|
@@ -20358,7 +20369,7 @@ var Presets = function Presets(_ref) {
|
|
|
20358
20369
|
if (state.selectedItems == undefined) return;
|
|
20359
20370
|
setIsModalVisible(false);
|
|
20360
20371
|
var names = [];
|
|
20361
|
-
var _iterator = _createForOfIteratorHelper$
|
|
20372
|
+
var _iterator = _createForOfIteratorHelper$g(state.selectedItems),
|
|
20362
20373
|
_step;
|
|
20363
20374
|
try {
|
|
20364
20375
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -20872,9 +20883,9 @@ var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
|
|
20872
20883
|
|
|
20873
20884
|
function ownKeys$S(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20874
20885
|
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20875
|
-
function _createForOfIteratorHelper$
|
|
20876
|
-
function _unsupportedIterableToArray$
|
|
20877
|
-
function _arrayLikeToArray$
|
|
20886
|
+
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; } } }; }
|
|
20887
|
+
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; } }
|
|
20888
|
+
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; }
|
|
20878
20889
|
function useRoleSelectorData (_ref) {
|
|
20879
20890
|
var userId = _ref.userId,
|
|
20880
20891
|
id = _ref.id;
|
|
@@ -21031,7 +21042,7 @@ function useRoleSelectorData (_ref) {
|
|
|
21031
21042
|
} else {
|
|
21032
21043
|
var internalOptions = options;
|
|
21033
21044
|
var organizationList = [];
|
|
21034
|
-
var _iterator = _createForOfIteratorHelper$
|
|
21045
|
+
var _iterator = _createForOfIteratorHelper$f(selected),
|
|
21035
21046
|
_step;
|
|
21036
21047
|
try {
|
|
21037
21048
|
var _loop = function _loop() {
|
|
@@ -21166,7 +21177,7 @@ function useRoleSelectorData (_ref) {
|
|
|
21166
21177
|
while (1) switch (_context5.prev = _context5.next) {
|
|
21167
21178
|
case 0:
|
|
21168
21179
|
setLoading(true);
|
|
21169
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
21180
|
+
_iterator2 = _createForOfIteratorHelper$f(addedRoles);
|
|
21170
21181
|
_context5.prev = 2;
|
|
21171
21182
|
_iterator2.s();
|
|
21172
21183
|
case 4:
|
|
@@ -21175,7 +21186,7 @@ function useRoleSelectorData (_ref) {
|
|
|
21175
21186
|
break;
|
|
21176
21187
|
}
|
|
21177
21188
|
role = _step2.value;
|
|
21178
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
21189
|
+
_iterator4 = _createForOfIteratorHelper$f(role.organizations);
|
|
21179
21190
|
_context5.prev = 7;
|
|
21180
21191
|
_iterator4.s();
|
|
21181
21192
|
case 9:
|
|
@@ -21215,7 +21226,7 @@ function useRoleSelectorData (_ref) {
|
|
|
21215
21226
|
_iterator2.f();
|
|
21216
21227
|
return _context5.finish(30);
|
|
21217
21228
|
case 33:
|
|
21218
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
21229
|
+
_iterator3 = _createForOfIteratorHelper$f(removedRoles);
|
|
21219
21230
|
_context5.prev = 34;
|
|
21220
21231
|
_iterator3.s();
|
|
21221
21232
|
case 36:
|
|
@@ -21224,7 +21235,7 @@ function useRoleSelectorData (_ref) {
|
|
|
21224
21235
|
break;
|
|
21225
21236
|
}
|
|
21226
21237
|
_role = _step3.value;
|
|
21227
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
21238
|
+
_iterator5 = _createForOfIteratorHelper$f(_role.organizations);
|
|
21228
21239
|
_context5.prev = 39;
|
|
21229
21240
|
_iterator5.s();
|
|
21230
21241
|
case 41:
|
|
@@ -21301,7 +21312,7 @@ function _updateRoles() {
|
|
|
21301
21312
|
return fetchUserRoles(apiHandler, userId, currentOrganization);
|
|
21302
21313
|
case 3:
|
|
21303
21314
|
userRoles = _context7.sent;
|
|
21304
|
-
_iterator6 = _createForOfIteratorHelper$
|
|
21315
|
+
_iterator6 = _createForOfIteratorHelper$f(roles);
|
|
21305
21316
|
_context7.prev = 5;
|
|
21306
21317
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
21307
21318
|
var _removedRole$organiza3;
|
|
@@ -21637,9 +21648,9 @@ styleInject(css_248z$s);
|
|
|
21637
21648
|
|
|
21638
21649
|
function ownKeys$R(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21639
21650
|
function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21640
|
-
function _createForOfIteratorHelper$
|
|
21641
|
-
function _unsupportedIterableToArray$
|
|
21642
|
-
function _arrayLikeToArray$
|
|
21651
|
+
function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
21652
|
+
function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
|
|
21653
|
+
function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21643
21654
|
function generateCSV(_x, _x2) {
|
|
21644
21655
|
return _generateCSV.apply(this, arguments);
|
|
21645
21656
|
}
|
|
@@ -21669,7 +21680,7 @@ function _generateCSV() {
|
|
|
21669
21680
|
data = res.data;
|
|
21670
21681
|
count += res.data.length;
|
|
21671
21682
|
total = res.total;
|
|
21672
|
-
_iterator = _createForOfIteratorHelper$
|
|
21683
|
+
_iterator = _createForOfIteratorHelper$e(data);
|
|
21673
21684
|
_context2.prev = 10;
|
|
21674
21685
|
_iterator.s();
|
|
21675
21686
|
case 12:
|
|
@@ -21679,7 +21690,7 @@ function _generateCSV() {
|
|
|
21679
21690
|
}
|
|
21680
21691
|
parent = _step.value;
|
|
21681
21692
|
line = [];
|
|
21682
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
21693
|
+
_iterator2 = _createForOfIteratorHelper$e(exportParams.fields);
|
|
21683
21694
|
try {
|
|
21684
21695
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
21685
21696
|
field = _step2.value;
|
|
@@ -21807,9 +21818,9 @@ function _downloadFile() {
|
|
|
21807
21818
|
|
|
21808
21819
|
function ownKeys$Q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21809
21820
|
function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21810
|
-
function _createForOfIteratorHelper$
|
|
21811
|
-
function _unsupportedIterableToArray$
|
|
21812
|
-
function _arrayLikeToArray$
|
|
21821
|
+
function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
21822
|
+
function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
|
|
21823
|
+
function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21813
21824
|
var deletedObjects = [];
|
|
21814
21825
|
var addedObjects = [];
|
|
21815
21826
|
|
|
@@ -21934,7 +21945,7 @@ function useRelationSelectorData (_ref) {
|
|
|
21934
21945
|
});
|
|
21935
21946
|
roles = [];
|
|
21936
21947
|
filter = {};
|
|
21937
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
21948
|
+
_iterator3 = _createForOfIteratorHelper$d(configuration.search.fields);
|
|
21938
21949
|
try {
|
|
21939
21950
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
21940
21951
|
searchField = _step3.value;
|
|
@@ -22081,7 +22092,7 @@ function useRelationSelectorData (_ref) {
|
|
|
22081
22092
|
filteredItems.push(data === null || data === void 0 ? void 0 : data._id);
|
|
22082
22093
|
}
|
|
22083
22094
|
}
|
|
22084
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
22095
|
+
_iterator4 = _createForOfIteratorHelper$d(addedObjects);
|
|
22085
22096
|
_context3.prev = 7;
|
|
22086
22097
|
_iterator4.s();
|
|
22087
22098
|
case 9:
|
|
@@ -22218,7 +22229,7 @@ function useRelationSelectorData (_ref) {
|
|
|
22218
22229
|
return;
|
|
22219
22230
|
}
|
|
22220
22231
|
});
|
|
22221
|
-
var _iterator = _createForOfIteratorHelper$
|
|
22232
|
+
var _iterator = _createForOfIteratorHelper$d(activeItems),
|
|
22222
22233
|
_step;
|
|
22223
22234
|
try {
|
|
22224
22235
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -22348,7 +22359,7 @@ function useRelationSelectorData (_ref) {
|
|
|
22348
22359
|
function mapToCascaderData(data) {
|
|
22349
22360
|
var options = [];
|
|
22350
22361
|
var tempCascaderData = [];
|
|
22351
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
22362
|
+
var _iterator2 = _createForOfIteratorHelper$d(data),
|
|
22352
22363
|
_step2;
|
|
22353
22364
|
try {
|
|
22354
22365
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -22432,9 +22443,9 @@ function useRelationSelectorData (_ref) {
|
|
|
22432
22443
|
|
|
22433
22444
|
function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22434
22445
|
function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22435
|
-
function _createForOfIteratorHelper$
|
|
22436
|
-
function _unsupportedIterableToArray$
|
|
22437
|
-
function _arrayLikeToArray$
|
|
22446
|
+
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; } } }; }
|
|
22447
|
+
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; } }
|
|
22448
|
+
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; }
|
|
22438
22449
|
function ActionButton (_ref) {
|
|
22439
22450
|
var action = _ref.action,
|
|
22440
22451
|
callback = _ref.callback,
|
|
@@ -22455,7 +22466,7 @@ function ActionButton (_ref) {
|
|
|
22455
22466
|
var ButtonType = type == 'Button' ? Button : A;
|
|
22456
22467
|
var disable = false;
|
|
22457
22468
|
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
22458
|
-
var _iterator = _createForOfIteratorHelper$
|
|
22469
|
+
var _iterator = _createForOfIteratorHelper$c(ruleData !== null && ruleData !== void 0 ? ruleData : data),
|
|
22459
22470
|
_step;
|
|
22460
22471
|
try {
|
|
22461
22472
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -22552,7 +22563,7 @@ function ActionButton (_ref) {
|
|
|
22552
22563
|
_context.next = 20;
|
|
22553
22564
|
break;
|
|
22554
22565
|
}
|
|
22555
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
22566
|
+
_iterator2 = _createForOfIteratorHelper$c(action.switchValues);
|
|
22556
22567
|
try {
|
|
22557
22568
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
22558
22569
|
element = _step2.value;
|
|
@@ -22615,7 +22626,7 @@ function ActionButton (_ref) {
|
|
|
22615
22626
|
switch (action.actionType) {
|
|
22616
22627
|
case 'SwitchButton':
|
|
22617
22628
|
var switchLabel;
|
|
22618
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
22629
|
+
var _iterator3 = _createForOfIteratorHelper$c(action.switchLable),
|
|
22619
22630
|
_step3;
|
|
22620
22631
|
try {
|
|
22621
22632
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -22746,12 +22757,12 @@ function A(props) {
|
|
|
22746
22757
|
return /*#__PURE__*/jsx("a", _objectSpread$P({}, props));
|
|
22747
22758
|
}
|
|
22748
22759
|
|
|
22749
|
-
function _createForOfIteratorHelper$
|
|
22750
|
-
function _unsupportedIterableToArray$
|
|
22751
|
-
function _arrayLikeToArray$
|
|
22760
|
+
function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
22761
|
+
function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0; } }
|
|
22762
|
+
function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22752
22763
|
function filter$1(input, getActiveItem, filterFields) {
|
|
22753
22764
|
var filter = {};
|
|
22754
|
-
var _iterator = _createForOfIteratorHelper$
|
|
22765
|
+
var _iterator = _createForOfIteratorHelper$b(filterFields),
|
|
22755
22766
|
_step;
|
|
22756
22767
|
try {
|
|
22757
22768
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -24640,9 +24651,9 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
|
24640
24651
|
};
|
|
24641
24652
|
var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
24642
24653
|
|
|
24643
|
-
function _createForOfIteratorHelper$
|
|
24644
|
-
function _unsupportedIterableToArray$
|
|
24645
|
-
function _arrayLikeToArray$
|
|
24654
|
+
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; } } }; }
|
|
24655
|
+
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; } }
|
|
24656
|
+
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; }
|
|
24646
24657
|
function ownKeys$J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24647
24658
|
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24648
24659
|
function useDescriptions (_ref) {
|
|
@@ -24738,7 +24749,7 @@ function _getDisplayData() {
|
|
|
24738
24749
|
while (1) switch (_context4.prev = _context4.next) {
|
|
24739
24750
|
case 0:
|
|
24740
24751
|
displayData = _objectSpread$J({}, data);
|
|
24741
|
-
_iterator = _createForOfIteratorHelper$
|
|
24752
|
+
_iterator = _createForOfIteratorHelper$a(items);
|
|
24742
24753
|
_context4.prev = 2;
|
|
24743
24754
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
24744
24755
|
var item, itemWithMappingData, apiHandler, response, mappingData;
|
|
@@ -24854,9 +24865,9 @@ var DescriptionWrapper = function DescriptionWrapper(_ref) {
|
|
|
24854
24865
|
};
|
|
24855
24866
|
var Description = observer(DescriptionWrapper);
|
|
24856
24867
|
|
|
24857
|
-
function _createForOfIteratorHelper$
|
|
24858
|
-
function _unsupportedIterableToArray$
|
|
24859
|
-
function _arrayLikeToArray$
|
|
24868
|
+
function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24869
|
+
function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0; } }
|
|
24870
|
+
function _arrayLikeToArray$9(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24860
24871
|
var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
24861
24872
|
var id = _ref.id;
|
|
24862
24873
|
var _useDivaCore = useDivaCore(),
|
|
@@ -24917,7 +24928,7 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
|
24917
24928
|
case 0:
|
|
24918
24929
|
setLoading(true);
|
|
24919
24930
|
_context.prev = 1;
|
|
24920
|
-
_iterator = _createForOfIteratorHelper$
|
|
24931
|
+
_iterator = _createForOfIteratorHelper$9(organizations);
|
|
24921
24932
|
_context.prev = 3;
|
|
24922
24933
|
_iterator.s();
|
|
24923
24934
|
case 5:
|
|
@@ -25444,9 +25455,9 @@ function BooleanCell (_ref) {
|
|
|
25444
25455
|
}
|
|
25445
25456
|
}
|
|
25446
25457
|
|
|
25447
|
-
function _createForOfIteratorHelper$
|
|
25448
|
-
function _unsupportedIterableToArray$
|
|
25449
|
-
function _arrayLikeToArray$
|
|
25458
|
+
function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(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; } } }; }
|
|
25459
|
+
function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(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$8(r, a) : void 0; } }
|
|
25460
|
+
function _arrayLikeToArray$8(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; }
|
|
25450
25461
|
function StringCell (_ref) {
|
|
25451
25462
|
var children = _ref.children,
|
|
25452
25463
|
column = _ref.column,
|
|
@@ -25551,7 +25562,7 @@ function StringCell (_ref) {
|
|
|
25551
25562
|
}
|
|
25552
25563
|
function getColor(column, record, value) {
|
|
25553
25564
|
if (column.color && record) {
|
|
25554
|
-
var _iterator = _createForOfIteratorHelper$
|
|
25565
|
+
var _iterator = _createForOfIteratorHelper$8(column.color),
|
|
25555
25566
|
_step;
|
|
25556
25567
|
try {
|
|
25557
25568
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -25731,9 +25742,9 @@ function DropdownCell (_ref) {
|
|
|
25731
25742
|
}
|
|
25732
25743
|
}
|
|
25733
25744
|
|
|
25734
|
-
function _createForOfIteratorHelper$
|
|
25735
|
-
function _unsupportedIterableToArray$
|
|
25736
|
-
function _arrayLikeToArray$
|
|
25745
|
+
function _createForOfIteratorHelper$7(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$7(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; } } }; }
|
|
25746
|
+
function _unsupportedIterableToArray$7(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$7(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$7(r, a) : void 0; } }
|
|
25747
|
+
function _arrayLikeToArray$7(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; }
|
|
25737
25748
|
function MediaViewerCell (_ref) {
|
|
25738
25749
|
var children = _ref.children,
|
|
25739
25750
|
column = _ref.column;
|
|
@@ -25751,7 +25762,7 @@ function MediaViewerCell (_ref) {
|
|
|
25751
25762
|
if (column.imageEnding && !url.endsWith('glb')) previewUrl = url.endsWith('.jpg') ? url.replace('.jpg', '') + column.imageEnding + '.jpg' : url.replace('.png', '') + column.imageEnding + '.png';
|
|
25752
25763
|
if (column.includedFileEndings) {
|
|
25753
25764
|
var supported = false;
|
|
25754
|
-
var _iterator = _createForOfIteratorHelper$
|
|
25765
|
+
var _iterator = _createForOfIteratorHelper$7(column.includedFileEndings),
|
|
25755
25766
|
_step;
|
|
25756
25767
|
try {
|
|
25757
25768
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -26010,15 +26021,15 @@ function MediaItemViewerCell (_ref) {
|
|
|
26010
26021
|
});
|
|
26011
26022
|
}
|
|
26012
26023
|
|
|
26013
|
-
function _createForOfIteratorHelper$
|
|
26014
|
-
function _unsupportedIterableToArray$
|
|
26015
|
-
function _arrayLikeToArray$
|
|
26024
|
+
function _createForOfIteratorHelper$6(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$6(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; } } }; }
|
|
26025
|
+
function _unsupportedIterableToArray$6(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$6(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$6(r, a) : void 0; } }
|
|
26026
|
+
function _arrayLikeToArray$6(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; }
|
|
26016
26027
|
function IconCell (_ref) {
|
|
26017
26028
|
var children = _ref.children,
|
|
26018
26029
|
column = _ref.column;
|
|
26019
26030
|
if (!column) throw new Error('icon column doesnt support editing');
|
|
26020
26031
|
function resolveIconMapping(value) {
|
|
26021
|
-
var _iterator = _createForOfIteratorHelper$
|
|
26032
|
+
var _iterator = _createForOfIteratorHelper$6(column.iconMapping),
|
|
26022
26033
|
_step;
|
|
26023
26034
|
try {
|
|
26024
26035
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -26559,9 +26570,9 @@ var SMChart = function SMChart(props) {
|
|
|
26559
26570
|
|
|
26560
26571
|
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; }
|
|
26561
26572
|
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; }
|
|
26562
|
-
function _createForOfIteratorHelper$
|
|
26563
|
-
function _unsupportedIterableToArray$
|
|
26564
|
-
function _arrayLikeToArray$
|
|
26573
|
+
function _createForOfIteratorHelper$5(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(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; } } }; }
|
|
26574
|
+
function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$5(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$5(r, a) : void 0; } }
|
|
26575
|
+
function _arrayLikeToArray$5(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; }
|
|
26565
26576
|
dayjs.extend(customParseFormat);
|
|
26566
26577
|
dayjs.extend(advancedFormat);
|
|
26567
26578
|
dayjs.extend(weekday);
|
|
@@ -26599,12 +26610,12 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
26599
26610
|
if (state.configuration.mergeFields && state.data) {
|
|
26600
26611
|
for (var i = 0; i < data.length; i++) {
|
|
26601
26612
|
var dt = flatten(data[i]);
|
|
26602
|
-
var _iterator = _createForOfIteratorHelper$
|
|
26613
|
+
var _iterator = _createForOfIteratorHelper$5(state.configuration.mergeFields),
|
|
26603
26614
|
_step;
|
|
26604
26615
|
try {
|
|
26605
26616
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
26606
26617
|
var merge = _step.value;
|
|
26607
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
26618
|
+
var _iterator2 = _createForOfIteratorHelper$5(merge.valueKeys),
|
|
26608
26619
|
_step2;
|
|
26609
26620
|
try {
|
|
26610
26621
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -26959,7 +26970,7 @@ function CopyButton(_ref3) {
|
|
|
26959
26970
|
case 0:
|
|
26960
26971
|
copyAction = state.configuration.copyAction;
|
|
26961
26972
|
if (((_state$configuration$21 = state.configuration.copyAction) === null || _state$configuration$21 === void 0 ? void 0 : _state$configuration$21.apiInterface) != undefined) {
|
|
26962
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
26973
|
+
_iterator3 = _createForOfIteratorHelper$5(state.selected);
|
|
26963
26974
|
try {
|
|
26964
26975
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
26965
26976
|
selectedRow = _step3.value;
|
|
@@ -27087,7 +27098,7 @@ function BulkAction(_ref6) {
|
|
|
27087
27098
|
var allowed = useMemo(function () {
|
|
27088
27099
|
// if isValue is not set check if all fields have the same value, otherwise check if all fields have the given isValue
|
|
27089
27100
|
if (!action.rule) return true;
|
|
27090
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
27101
|
+
var _iterator4 = _createForOfIteratorHelper$5(action.rule),
|
|
27091
27102
|
_step4;
|
|
27092
27103
|
try {
|
|
27093
27104
|
var _loop = function _loop() {
|
|
@@ -28424,9 +28435,9 @@ function objectHash (obj) {
|
|
|
28424
28435
|
return hash(hashable);
|
|
28425
28436
|
}
|
|
28426
28437
|
|
|
28427
|
-
function _createForOfIteratorHelper$
|
|
28428
|
-
function _unsupportedIterableToArray$
|
|
28429
|
-
function _arrayLikeToArray$
|
|
28438
|
+
function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
28439
|
+
function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0; } }
|
|
28440
|
+
function _arrayLikeToArray$4(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
28430
28441
|
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; }
|
|
28431
28442
|
function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28432
28443
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
|
@@ -28862,7 +28873,7 @@ function useTableData (_ref) {
|
|
|
28862
28873
|
})) === null || _newData$filter2 === void 0 ? void 0 : _newData$filter2[0];
|
|
28863
28874
|
}
|
|
28864
28875
|
mapToggle = {};
|
|
28865
|
-
_iterator = _createForOfIteratorHelper$
|
|
28876
|
+
_iterator = _createForOfIteratorHelper$4((_configuration$filter19 = (_configuration$filter20 = configuration.filter) === null || _configuration$filter20 === void 0 || (_configuration$filter20 = _configuration$filter20.toggle) === null || _configuration$filter20 === void 0 ? void 0 : _configuration$filter20.fields) !== null && _configuration$filter19 !== void 0 ? _configuration$filter19 : []);
|
|
28866
28877
|
try {
|
|
28867
28878
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
28868
28879
|
field = _step.value;
|
|
@@ -29138,9 +29149,9 @@ function Table (props) {
|
|
|
29138
29149
|
});
|
|
29139
29150
|
}
|
|
29140
29151
|
|
|
29141
|
-
function _createForOfIteratorHelper$
|
|
29142
|
-
function _unsupportedIterableToArray$
|
|
29143
|
-
function _arrayLikeToArray$
|
|
29152
|
+
function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29153
|
+
function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0; } }
|
|
29154
|
+
function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29144
29155
|
function ownKeys$x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29145
29156
|
function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29146
29157
|
function useAGGrid (_ref) {
|
|
@@ -29264,7 +29275,7 @@ function useAGGrid (_ref) {
|
|
|
29264
29275
|
_context.next = 51;
|
|
29265
29276
|
break;
|
|
29266
29277
|
}
|
|
29267
|
-
_iterator = _createForOfIteratorHelper$
|
|
29278
|
+
_iterator = _createForOfIteratorHelper$3(configuration.mergerFields);
|
|
29268
29279
|
_context.prev = 9;
|
|
29269
29280
|
_iterator.s();
|
|
29270
29281
|
case 11:
|
|
@@ -29281,7 +29292,7 @@ function useAGGrid (_ref) {
|
|
|
29281
29292
|
}
|
|
29282
29293
|
merged = '';
|
|
29283
29294
|
first = true;
|
|
29284
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
29295
|
+
_iterator2 = _createForOfIteratorHelper$3(mergeEntry.fieldId);
|
|
29285
29296
|
_context.prev = 18;
|
|
29286
29297
|
_iterator2.s();
|
|
29287
29298
|
case 20:
|
|
@@ -29799,9 +29810,9 @@ var CustomText$1 = observer(CustomText);
|
|
|
29799
29810
|
|
|
29800
29811
|
function ownKeys$u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29801
29812
|
function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29802
|
-
function _createForOfIteratorHelper$
|
|
29803
|
-
function _unsupportedIterableToArray$
|
|
29804
|
-
function _arrayLikeToArray$
|
|
29813
|
+
function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29814
|
+
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
|
|
29815
|
+
function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29805
29816
|
function useFilterBoxData (id) {
|
|
29806
29817
|
var root = useStore();
|
|
29807
29818
|
var _useMemo = useMemo(function () {
|
|
@@ -29849,7 +29860,7 @@ function useFilterBoxData (id) {
|
|
|
29849
29860
|
}
|
|
29850
29861
|
function reducer(state, actions) {
|
|
29851
29862
|
var ob = {};
|
|
29852
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29863
|
+
var _iterator = _createForOfIteratorHelper$2(actions),
|
|
29853
29864
|
_step;
|
|
29854
29865
|
try {
|
|
29855
29866
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29872,9 +29883,9 @@ function useFilterBoxData (id) {
|
|
|
29872
29883
|
};
|
|
29873
29884
|
}
|
|
29874
29885
|
|
|
29875
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29876
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
29877
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29886
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29887
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
29888
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29878
29889
|
function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29879
29890
|
function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29880
29891
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -30012,7 +30023,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
30012
30023
|
}
|
|
30013
30024
|
function getLabelByValue(targetValue, data) {
|
|
30014
30025
|
if (!data) return;
|
|
30015
|
-
var _iterator = _createForOfIteratorHelper(data),
|
|
30026
|
+
var _iterator = _createForOfIteratorHelper$1(data),
|
|
30016
30027
|
_step;
|
|
30017
30028
|
try {
|
|
30018
30029
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -31979,6 +31990,9 @@ function createTranslatedColumnConfig(field, headerName, languages) {
|
|
|
31979
31990
|
};
|
|
31980
31991
|
}
|
|
31981
31992
|
|
|
31993
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
31994
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
31995
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
31982
31996
|
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; }
|
|
31983
31997
|
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; }
|
|
31984
31998
|
|
|
@@ -32012,81 +32026,49 @@ var useTools = function useTools(_ref) {
|
|
|
32012
32026
|
serie = _ref.serie,
|
|
32013
32027
|
item = _ref.item,
|
|
32014
32028
|
setSerie = _ref.setSerie,
|
|
32015
|
-
setArticle = _ref.setArticle
|
|
32029
|
+
setArticle = _ref.setArticle,
|
|
32030
|
+
conditionalTools = _ref.conditionalTools;
|
|
32016
32031
|
var root = useStore();
|
|
32017
|
-
var
|
|
32018
|
-
|
|
32019
|
-
|
|
32020
|
-
|
|
32021
|
-
|
|
32022
|
-
|
|
32032
|
+
var createTool = function createTool(tool) {
|
|
32033
|
+
return _objectSpread$m({
|
|
32034
|
+
startWidth: 600,
|
|
32035
|
+
defaultPinned: true,
|
|
32036
|
+
defaultOpen: false
|
|
32037
|
+
}, tool);
|
|
32038
|
+
};
|
|
32039
|
+
var createInformationWindow = function createInformationWindow(codex, open) {
|
|
32040
|
+
return createTool({
|
|
32023
32041
|
id: 'info',
|
|
32024
32042
|
name: 'Information',
|
|
32025
32043
|
type: 'InformationWindow',
|
|
32044
|
+
where: 'right',
|
|
32026
32045
|
parameters: {
|
|
32027
32046
|
contentItemCodex: codex
|
|
32028
32047
|
},
|
|
32029
32048
|
defaultOpen: open
|
|
32030
32049
|
});
|
|
32031
|
-
|
|
32032
|
-
|
|
32033
|
-
|
|
32034
|
-
|
|
32035
|
-
|
|
32036
|
-
|
|
32037
|
-
|
|
32038
|
-
tools[_key] = arguments[_key];
|
|
32039
|
-
}
|
|
32040
|
-
var newSecondaryTables = tools.map(function (tool) {
|
|
32041
|
-
return _objectSpread$m({
|
|
32042
|
-
startWidth: 300,
|
|
32043
|
-
defaultPinned: false,
|
|
32044
|
-
defaultOpen: false
|
|
32045
|
-
}, tool);
|
|
32046
|
-
});
|
|
32047
|
-
var rightSecondaryTables = newSecondaryTables.filter(function (table) {
|
|
32048
|
-
return table.where && table.where === 'right';
|
|
32049
|
-
});
|
|
32050
|
-
var bottomSecondaryTables = newSecondaryTables.filter(function (table) {
|
|
32051
|
-
return !table.where || table.where === 'bottom';
|
|
32052
|
-
});
|
|
32053
|
-
if (rightSecondaryTables.length > 0) {
|
|
32054
|
-
var _root$contentStore$ri;
|
|
32055
|
-
(_root$contentStore$ri = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri, _toConsumableArray(rightSecondaryTables));
|
|
32056
|
-
}
|
|
32057
|
-
if (bottomSecondaryTables.length > 0) {
|
|
32058
|
-
var _root$contentStore$bo;
|
|
32059
|
-
(_root$contentStore$bo = root.contentStore.bottomToolBar).addTools.apply(_root$contentStore$bo, _toConsumableArray(bottomSecondaryTables));
|
|
32050
|
+
};
|
|
32051
|
+
var initSerie = useMemo(function () {
|
|
32052
|
+
if (serie) {
|
|
32053
|
+
return {
|
|
32054
|
+
serieNo: serie.serieNo,
|
|
32055
|
+
serieId: serie._id
|
|
32056
|
+
};
|
|
32060
32057
|
}
|
|
32061
|
-
|
|
32062
|
-
|
|
32063
|
-
|
|
32064
|
-
}, [root.contentStore.bottomToolBar.addTools]);
|
|
32065
|
-
var removeSecondaryTables = useCallback(function () {
|
|
32066
|
-
var _root$contentStore$bo2;
|
|
32067
|
-
for (var _len2 = arguments.length, ids = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
32068
|
-
ids[_key2] = arguments[_key2];
|
|
32069
|
-
}
|
|
32070
|
-
(_root$contentStore$bo2 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo2, ids);
|
|
32071
|
-
setSecondaryTables(function (prev) {
|
|
32072
|
-
return prev.filter(function (table) {
|
|
32073
|
-
return !ids.includes(table.id);
|
|
32074
|
-
});
|
|
32075
|
-
});
|
|
32076
|
-
}, [root.contentStore.bottomToolBar.removeTools]);
|
|
32077
|
-
var updateConfigurator = useCallback(function () {
|
|
32058
|
+
return undefined;
|
|
32059
|
+
}, [serie]);
|
|
32060
|
+
var createConfigurator = function createConfigurator() {
|
|
32078
32061
|
var parameters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
32079
|
-
|
|
32062
|
+
return createTool({
|
|
32080
32063
|
id: 'WYSIWYG',
|
|
32081
32064
|
name: 'Konfigurator',
|
|
32082
32065
|
type: 'Configurator',
|
|
32066
|
+
where: 'right',
|
|
32083
32067
|
parameters: _objectSpread$m({
|
|
32084
32068
|
catalogId: catalogId,
|
|
32085
32069
|
packageId: packageId,
|
|
32086
32070
|
isIDMData: !isApi2 ? '1' : undefined
|
|
32087
32071
|
}, parameters),
|
|
32088
|
-
startWidth: 600,
|
|
32089
|
-
defaultPinned: true,
|
|
32090
32072
|
elementProps: catalogId ? _objectSpread$m({
|
|
32091
32073
|
// open configurator for idm catalog
|
|
32092
32074
|
useIDMService: true,
|
|
@@ -32114,47 +32096,73 @@ var useTools = function useTools(_ref) {
|
|
|
32114
32096
|
initSerie: initSerie
|
|
32115
32097
|
} : {})
|
|
32116
32098
|
});
|
|
32117
|
-
}
|
|
32118
|
-
var
|
|
32119
|
-
|
|
32120
|
-
|
|
32121
|
-
|
|
32122
|
-
|
|
32123
|
-
};
|
|
32099
|
+
};
|
|
32100
|
+
var updateInformationWindow = function updateInformationWindow(codex, open) {
|
|
32101
|
+
root.contentStore.rightToolBar.addTools(createInformationWindow(codex, open));
|
|
32102
|
+
if (open) {
|
|
32103
|
+
root.contentStore.rightToolBar.selectTool('info');
|
|
32104
|
+
root.contentStore.rightToolBar.hidden = false;
|
|
32124
32105
|
}
|
|
32125
|
-
|
|
32126
|
-
|
|
32106
|
+
};
|
|
32107
|
+
var updateConfigurator = function updateConfigurator() {
|
|
32108
|
+
var parameters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
32109
|
+
root.contentStore.rightToolBar.addTools(createConfigurator(parameters));
|
|
32110
|
+
};
|
|
32111
|
+
|
|
32112
|
+
/*
|
|
32113
|
+
* Elements need to be added/removed all at once
|
|
32114
|
+
* This makes sure the store remebers the last open tool and reopens it if it is used by the next component
|
|
32115
|
+
*/
|
|
32127
32116
|
useEffect(function () {
|
|
32128
|
-
var _root$contentStore$
|
|
32117
|
+
var _root$contentStore$ri, _root$contentStore$bo;
|
|
32129
32118
|
var tools = [];
|
|
32130
32119
|
if (catalogId || packageId) {
|
|
32131
|
-
|
|
32120
|
+
tools.push(createConfigurator());
|
|
32132
32121
|
}
|
|
32133
32122
|
if (mainInformationWindowCodex) {
|
|
32134
|
-
tools.push(
|
|
32135
|
-
id: 'info',
|
|
32136
|
-
name: 'Information',
|
|
32137
|
-
type: 'InformationWindow',
|
|
32138
|
-
parameters: {
|
|
32139
|
-
contentItemCodex: mainInformationWindowCodex
|
|
32140
|
-
},
|
|
32141
|
-
defaultOpen: false
|
|
32142
|
-
});
|
|
32123
|
+
tools.push(createInformationWindow(mainInformationWindowCodex, false));
|
|
32143
32124
|
}
|
|
32144
|
-
|
|
32125
|
+
var _iterator = _createForOfIteratorHelper(conditionalTools || []),
|
|
32126
|
+
_step;
|
|
32127
|
+
try {
|
|
32128
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
32129
|
+
var _tool$condition;
|
|
32130
|
+
var tool = _step.value;
|
|
32131
|
+
if ((_tool$condition = tool.condition) !== null && _tool$condition !== void 0 && _tool$condition.call(tool)) {
|
|
32132
|
+
tools.push(createTool(tool));
|
|
32133
|
+
}
|
|
32134
|
+
}
|
|
32135
|
+
} catch (err) {
|
|
32136
|
+
_iterator.e(err);
|
|
32137
|
+
} finally {
|
|
32138
|
+
_iterator.f();
|
|
32139
|
+
}
|
|
32140
|
+
(_root$contentStore$ri = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri, _toConsumableArray(tools.filter(function (tool) {
|
|
32141
|
+
return tool.where === 'right';
|
|
32142
|
+
})));
|
|
32143
|
+
(_root$contentStore$bo = root.contentStore.bottomToolBar).addTools.apply(_root$contentStore$bo, _toConsumableArray(tools.filter(function (tool) {
|
|
32144
|
+
return !tool.where || tool.where === 'bottom';
|
|
32145
|
+
})));
|
|
32145
32146
|
return function () {
|
|
32146
|
-
var _root$contentStore$
|
|
32147
|
-
|
|
32148
|
-
|
|
32149
|
-
|
|
32150
|
-
}
|
|
32147
|
+
var _root$contentStore$ri2, _root$contentStore$bo2;
|
|
32148
|
+
var toRemove = [];
|
|
32149
|
+
if (mainInformationWindowCodex) {
|
|
32150
|
+
toRemove.push('info');
|
|
32151
|
+
}
|
|
32152
|
+
if (catalogId || packageId) {
|
|
32153
|
+
toRemove.push('WYSIWYG');
|
|
32154
|
+
}
|
|
32155
|
+
(_root$contentStore$ri2 = root.contentStore.rightToolBar).removeTools.apply(_root$contentStore$ri2, toRemove.concat(_toConsumableArray((conditionalTools === null || conditionalTools === void 0 ? void 0 : conditionalTools.map(function (tool) {
|
|
32156
|
+
return tool.id;
|
|
32157
|
+
})) || [])));
|
|
32158
|
+
(_root$contentStore$bo2 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo2, _toConsumableArray((conditionalTools === null || conditionalTools === void 0 ? void 0 : conditionalTools.map(function (tool) {
|
|
32159
|
+
return tool.id;
|
|
32160
|
+
})) || []));
|
|
32151
32161
|
};
|
|
32152
|
-
}, [mainInformationWindowCodex,
|
|
32162
|
+
}, [mainInformationWindowCodex, catalogId, packageId, conditionalTools]);
|
|
32153
32163
|
return {
|
|
32154
32164
|
updateConfigurator: updateConfigurator,
|
|
32155
|
-
|
|
32156
|
-
addSecondaryTables: addSecondaryTables,
|
|
32157
|
-
removeSecondaryTables: removeSecondaryTables
|
|
32165
|
+
updateInformationWindow: updateInformationWindow
|
|
32158
32166
|
};
|
|
32159
32167
|
};
|
|
32160
32168
|
|
|
@@ -35715,9 +35723,9 @@ function PriceFactorHeaderComponent(_ref) {
|
|
|
35715
35723
|
});
|
|
35716
35724
|
}
|
|
35717
35725
|
|
|
35718
|
-
var root = "root-
|
|
35719
|
-
var contentWrapper$1 = "content-wrapper-
|
|
35720
|
-
var css_248z$b = ".root-
|
|
35726
|
+
var root = "root-SA2Dd";
|
|
35727
|
+
var contentWrapper$1 = "content-wrapper-KSvuc";
|
|
35728
|
+
var css_248z$b = ".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";
|
|
35721
35729
|
styleInject(css_248z$b);
|
|
35722
35730
|
|
|
35723
35731
|
function Setting(_ref) {
|
|
@@ -36625,10 +36633,10 @@ function IDMEnricherEditor (_ref) {
|
|
|
36625
36633
|
display: 'flex',
|
|
36626
36634
|
flexDirection: 'column'
|
|
36627
36635
|
},
|
|
36628
|
-
children: /*#__PURE__*/jsx(Content$
|
|
36636
|
+
children: /*#__PURE__*/jsx(Content$5, {})
|
|
36629
36637
|
});
|
|
36630
36638
|
}
|
|
36631
|
-
function Content$
|
|
36639
|
+
function Content$5() {
|
|
36632
36640
|
return /*#__PURE__*/jsxs(Routes, {
|
|
36633
36641
|
children: [/*#__PURE__*/jsx(Route, {
|
|
36634
36642
|
index: true,
|
|
@@ -36731,8 +36739,8 @@ function Input(_ref) {
|
|
|
36731
36739
|
}));
|
|
36732
36740
|
}
|
|
36733
36741
|
|
|
36734
|
-
var uploadDraggerWrapper = "upload-dragger-wrapper-
|
|
36735
|
-
var css_248z$a = ".upload-dragger-wrapper-
|
|
36742
|
+
var uploadDraggerWrapper = "upload-dragger-wrapper-xZiDJ";
|
|
36743
|
+
var css_248z$a = ".upload-dragger-wrapper-xZiDJ {\n min-height: 220px;\n}\n";
|
|
36736
36744
|
styleInject(css_248z$a);
|
|
36737
36745
|
|
|
36738
36746
|
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; }
|
|
@@ -37071,9 +37079,9 @@ function FormItem(_ref2) {
|
|
|
37071
37079
|
}
|
|
37072
37080
|
}
|
|
37073
37081
|
|
|
37074
|
-
var uploadModalFooter = "upload-modal-footer-
|
|
37075
|
-
var uploadButton = "upload-button-
|
|
37076
|
-
var css_248z$9 = ".upload-modal-footer-
|
|
37082
|
+
var uploadModalFooter = "upload-modal-footer-W5737";
|
|
37083
|
+
var uploadButton = "upload-button-QkWYP";
|
|
37084
|
+
var css_248z$9 = ".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";
|
|
37077
37085
|
styleInject(css_248z$9);
|
|
37078
37086
|
|
|
37079
37087
|
/**
|
|
@@ -37602,13 +37610,13 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
37602
37610
|
function InformationButton(_ref) {
|
|
37603
37611
|
var codex = _ref.codex;
|
|
37604
37612
|
var _useTools = useTools({}),
|
|
37605
|
-
|
|
37613
|
+
updateInformationWindow = _useTools.updateInformationWindow;
|
|
37606
37614
|
return /*#__PURE__*/jsx(Button, {
|
|
37607
37615
|
type: "text",
|
|
37608
37616
|
icon: /*#__PURE__*/jsx(InfoCircleOutlined$1, {}),
|
|
37609
37617
|
onClick: function onClick(e) {
|
|
37610
37618
|
e.stopPropagation();
|
|
37611
|
-
|
|
37619
|
+
updateInformationWindow(codex, true);
|
|
37612
37620
|
}
|
|
37613
37621
|
});
|
|
37614
37622
|
}
|
|
@@ -39274,34 +39282,26 @@ var TableSeries = observer(function () {
|
|
|
39274
39282
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
39275
39283
|
selectedSerie = _React$useState2[0],
|
|
39276
39284
|
setSelectedSerie = _React$useState2[1];
|
|
39277
|
-
|
|
39285
|
+
useTools({
|
|
39278
39286
|
mainInformationWindowCodex: 'IDM_SERIES_TABLE_INFO',
|
|
39279
39287
|
catalogId: catalogId,
|
|
39280
39288
|
serie: selectedGlobalSerie,
|
|
39281
|
-
setSerie: setGlobalSelectedSerie
|
|
39282
|
-
|
|
39283
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
39284
|
-
removeSecondaryTables = _useTools.removeSecondaryTables;
|
|
39285
|
-
useEffect(function () {
|
|
39286
|
-
if (selectedSerie !== null && selectedSerie !== void 0 && selectedSerie._id) {
|
|
39287
|
-
addSecondaryTables({
|
|
39289
|
+
setSerie: setGlobalSelectedSerie,
|
|
39290
|
+
conditionalTools: [{
|
|
39288
39291
|
id: 'items',
|
|
39289
39292
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableItems'),
|
|
39290
39293
|
elementComponent: Items$1,
|
|
39291
39294
|
elementProps: {
|
|
39292
39295
|
organizationId: organizationId,
|
|
39293
39296
|
selectedCatalog: selectedCatalog,
|
|
39294
|
-
selectedSerie: selectedSerie._id,
|
|
39297
|
+
selectedSerie: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id,
|
|
39295
39298
|
apiConfig: apiConfig
|
|
39299
|
+
},
|
|
39300
|
+
condition: function condition() {
|
|
39301
|
+
return (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id) !== undefined;
|
|
39296
39302
|
}
|
|
39297
|
-
}
|
|
39298
|
-
}
|
|
39299
|
-
removeSecondaryTables('items');
|
|
39300
|
-
}
|
|
39301
|
-
return function () {
|
|
39302
|
-
removeSecondaryTables('items');
|
|
39303
|
-
};
|
|
39304
|
-
}, [selectedSerie, t, organizationId, catalogId, apiConfig]);
|
|
39303
|
+
}]
|
|
39304
|
+
});
|
|
39305
39305
|
var applicationData = useMemo(function () {
|
|
39306
39306
|
return {
|
|
39307
39307
|
catalogId: catalogId,
|
|
@@ -39746,21 +39746,21 @@ var TableFeatures$1 = observer(function () {
|
|
|
39746
39746
|
var _useTools = useTools({
|
|
39747
39747
|
catalogId: catalogId,
|
|
39748
39748
|
setSerie: setSelectedSerie,
|
|
39749
|
-
setArticle: setSelectedItem
|
|
39749
|
+
setArticle: setSelectedItem,
|
|
39750
|
+
conditionalTools: [{
|
|
39751
|
+
id: 'globalfeatures',
|
|
39752
|
+
name: t('backoffice.menu.features.label.IDMGlobalFeatures'),
|
|
39753
|
+
elementComponent: Features,
|
|
39754
|
+
elementProps: {
|
|
39755
|
+
readOnly: true
|
|
39756
|
+
},
|
|
39757
|
+
where: 'right',
|
|
39758
|
+
condition: function condition() {
|
|
39759
|
+
return selectedCatalog !== undefined;
|
|
39760
|
+
}
|
|
39761
|
+
}]
|
|
39750
39762
|
}),
|
|
39751
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
39752
39763
|
updateConfigurator = _useTools.updateConfigurator;
|
|
39753
|
-
useEffect(function () {
|
|
39754
|
-
addSecondaryTables({
|
|
39755
|
-
id: 'globalfeatures',
|
|
39756
|
-
name: t('backoffice.menu.features.label.IDMGlobalFeatures'),
|
|
39757
|
-
elementComponent: Features,
|
|
39758
|
-
elementProps: {
|
|
39759
|
-
readOnly: true
|
|
39760
|
-
},
|
|
39761
|
-
where: 'right'
|
|
39762
|
-
});
|
|
39763
|
-
}, [t, organizationId, catalogId, apiConfig]);
|
|
39764
39764
|
var ref = useRef(null);
|
|
39765
39765
|
var hooks = useMemo(function () {
|
|
39766
39766
|
return {
|
|
@@ -40096,33 +40096,25 @@ var TableFeatureClasses = observer(function () {
|
|
|
40096
40096
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
40097
40097
|
selectedFeatureClass = _React$useState2[0],
|
|
40098
40098
|
setSelectedFeatureClass = _React$useState2[1];
|
|
40099
|
-
|
|
40100
|
-
|
|
40101
|
-
|
|
40102
|
-
|
|
40103
|
-
|
|
40104
|
-
|
|
40105
|
-
|
|
40106
|
-
|
|
40107
|
-
|
|
40108
|
-
|
|
40109
|
-
|
|
40110
|
-
|
|
40111
|
-
|
|
40112
|
-
|
|
40113
|
-
|
|
40114
|
-
|
|
40115
|
-
|
|
40116
|
-
|
|
40117
|
-
|
|
40118
|
-
});
|
|
40119
|
-
} else {
|
|
40120
|
-
removeSecondaryTables('features');
|
|
40121
|
-
}
|
|
40122
|
-
return function () {
|
|
40123
|
-
removeSecondaryTables('features');
|
|
40124
|
-
};
|
|
40125
|
-
}, [selectedFeatureClass, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id]);
|
|
40099
|
+
useTools({
|
|
40100
|
+
catalogId: catalogId,
|
|
40101
|
+
setSerie: setSelectedSerie,
|
|
40102
|
+
setArticle: setSelectedItem,
|
|
40103
|
+
conditionalTools: [{
|
|
40104
|
+
id: 'features',
|
|
40105
|
+
name: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
|
40106
|
+
elementComponent: Features$1,
|
|
40107
|
+
elementProps: {
|
|
40108
|
+
organizationId: organizationId,
|
|
40109
|
+
selectedCatalog: selectedCatalog,
|
|
40110
|
+
apiConfig: apiConfig,
|
|
40111
|
+
featureClassId: selectedFeatureClass === null || selectedFeatureClass === void 0 ? void 0 : selectedFeatureClass._id
|
|
40112
|
+
},
|
|
40113
|
+
condition: function condition() {
|
|
40114
|
+
return (selectedFeatureClass === null || selectedFeatureClass === void 0 ? void 0 : selectedFeatureClass._id) !== undefined;
|
|
40115
|
+
}
|
|
40116
|
+
}]
|
|
40117
|
+
});
|
|
40126
40118
|
var applicationData = useMemo(function () {
|
|
40127
40119
|
return {
|
|
40128
40120
|
catalogId: catalogId,
|
|
@@ -40894,13 +40886,6 @@ var TableDecisions = observer(function () {
|
|
|
40894
40886
|
apiConfig = _useModule.apiConfig,
|
|
40895
40887
|
setSelectedSerie = _useModule.setSelectedSerie,
|
|
40896
40888
|
setSelectedItem = _useModule.setSelectedItem;
|
|
40897
|
-
var _useTools = useTools({
|
|
40898
|
-
catalogId: catalogId,
|
|
40899
|
-
setSerie: setSelectedSerie,
|
|
40900
|
-
setArticle: setSelectedItem
|
|
40901
|
-
}),
|
|
40902
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
40903
|
-
removeSecondaryTables = _useTools.removeSecondaryTables;
|
|
40904
40889
|
var _React$useState = React.useState(),
|
|
40905
40890
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
40906
40891
|
selectedDecision = _React$useState2[0],
|
|
@@ -40912,26 +40897,25 @@ var TableDecisions = observer(function () {
|
|
|
40912
40897
|
var setNodeDataValue = useCallback(function (data) {
|
|
40913
40898
|
spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
|
|
40914
40899
|
}, [selectedNodeId]);
|
|
40915
|
-
|
|
40916
|
-
|
|
40917
|
-
|
|
40918
|
-
|
|
40919
|
-
|
|
40920
|
-
|
|
40921
|
-
|
|
40922
|
-
|
|
40923
|
-
|
|
40924
|
-
|
|
40925
|
-
|
|
40926
|
-
|
|
40927
|
-
|
|
40928
|
-
|
|
40929
|
-
|
|
40930
|
-
|
|
40931
|
-
|
|
40932
|
-
|
|
40933
|
-
|
|
40934
|
-
}, [selectedDecision, setNodeDataValue, addSecondaryTables, removeSecondaryTables]);
|
|
40900
|
+
useTools({
|
|
40901
|
+
catalogId: catalogId,
|
|
40902
|
+
setSerie: setSelectedSerie,
|
|
40903
|
+
setArticle: setSelectedItem,
|
|
40904
|
+
conditionalTools: [{
|
|
40905
|
+
id: 'optionCombinations',
|
|
40906
|
+
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionCombinations'),
|
|
40907
|
+
elementComponent: OptionCombinations,
|
|
40908
|
+
elementProps: {
|
|
40909
|
+
decision: selectedDecision,
|
|
40910
|
+
catalogId: catalogId,
|
|
40911
|
+
apiConfig: apiConfig,
|
|
40912
|
+
setNodeDataValue: setNodeDataValue
|
|
40913
|
+
},
|
|
40914
|
+
condition: function condition() {
|
|
40915
|
+
return (selectedDecision === null || selectedDecision === void 0 ? void 0 : selectedDecision._id) !== undefined;
|
|
40916
|
+
}
|
|
40917
|
+
}]
|
|
40918
|
+
});
|
|
40935
40919
|
var applicationData = useMemo(function () {
|
|
40936
40920
|
return {
|
|
40937
40921
|
catalogId: catalogId,
|
|
@@ -41122,11 +41106,39 @@ var TableDetailInfos = observer(function () {
|
|
|
41122
41106
|
apiConfig = _useModule.apiConfig,
|
|
41123
41107
|
setSelectedSerie = _useModule.setSelectedSerie,
|
|
41124
41108
|
setSelectedItem = _useModule.setSelectedItem;
|
|
41109
|
+
var _React$useState = React.useState(),
|
|
41110
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
41111
|
+
selectedMedia = _React$useState2[0],
|
|
41112
|
+
setSelectedMedia = _React$useState2[1];
|
|
41125
41113
|
useTools({
|
|
41126
41114
|
catalogId: catalogId,
|
|
41127
41115
|
setSerie: setSelectedSerie,
|
|
41128
|
-
setArticle: setSelectedItem
|
|
41116
|
+
setArticle: setSelectedItem,
|
|
41117
|
+
conditionalTools: [{
|
|
41118
|
+
id: 'mediaDetail',
|
|
41119
|
+
name: t('backoffice.menu.items.label.MediaDetailCard'),
|
|
41120
|
+
elementComponent: MediaDetailCard,
|
|
41121
|
+
startWidth: 900,
|
|
41122
|
+
elementProps: {
|
|
41123
|
+
mediaItemId: selectedMedia
|
|
41124
|
+
},
|
|
41125
|
+
where: 'right',
|
|
41126
|
+
condition: function condition() {
|
|
41127
|
+
return selectedMedia !== undefined;
|
|
41128
|
+
}
|
|
41129
|
+
}]
|
|
41129
41130
|
});
|
|
41131
|
+
var hooks = useMemo(function () {
|
|
41132
|
+
return {
|
|
41133
|
+
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
41134
|
+
if (event.selection.length == 1) {
|
|
41135
|
+
setSelectedMedia(event.selection[0].node.data.mediaItemId);
|
|
41136
|
+
} else {
|
|
41137
|
+
setSelectedMedia(undefined);
|
|
41138
|
+
}
|
|
41139
|
+
}
|
|
41140
|
+
};
|
|
41141
|
+
}, []);
|
|
41130
41142
|
var applicationData = useMemo(function () {
|
|
41131
41143
|
return {
|
|
41132
41144
|
catalogId: catalogId,
|
|
@@ -41150,7 +41162,8 @@ var TableDetailInfos = observer(function () {
|
|
|
41150
41162
|
}, createTranslatedColumnConfig('externalName', 'backoffice.idmCatalog.detailinfos.label.externalName', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, false), createTranslatedColumnConfig('internalName', 'backoffice.idmCatalog.detailinfos.label.internalName', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, false), createTranslatedColumnConfig('toolTip', 'backoffice.idmCatalog.detailinfos.label.toolTip', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, false), {
|
|
41151
41163
|
field: 'url',
|
|
41152
41164
|
headerName: 'backoffice.idmCatalog.detailinfos.label.url',
|
|
41153
|
-
required: true
|
|
41165
|
+
required: true,
|
|
41166
|
+
cellDataType: 'media'
|
|
41154
41167
|
}, {
|
|
41155
41168
|
field: 'classification',
|
|
41156
41169
|
headerName: 'backoffice.idmCatalog.detailinfos.label.classification',
|
|
@@ -41256,6 +41269,7 @@ var TableDetailInfos = observer(function () {
|
|
|
41256
41269
|
})
|
|
41257
41270
|
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
41258
41271
|
gridId: 'crud-grid_detailinfos',
|
|
41272
|
+
hooks: hooks,
|
|
41259
41273
|
applicationData: applicationData,
|
|
41260
41274
|
configuration: configuration
|
|
41261
41275
|
})]
|
|
@@ -41522,33 +41536,25 @@ var TablePartlists = observer(function () {
|
|
|
41522
41536
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
41523
41537
|
selectedPartlist = _React$useState2[0],
|
|
41524
41538
|
setSelectedPartlist = _React$useState2[1];
|
|
41525
|
-
|
|
41526
|
-
|
|
41527
|
-
|
|
41528
|
-
|
|
41529
|
-
|
|
41530
|
-
|
|
41531
|
-
|
|
41532
|
-
|
|
41533
|
-
|
|
41534
|
-
|
|
41535
|
-
|
|
41536
|
-
|
|
41537
|
-
|
|
41538
|
-
|
|
41539
|
-
|
|
41540
|
-
|
|
41541
|
-
|
|
41542
|
-
|
|
41543
|
-
|
|
41544
|
-
});
|
|
41545
|
-
} else {
|
|
41546
|
-
removeSecondaryTables('partlistpos');
|
|
41547
|
-
}
|
|
41548
|
-
return function () {
|
|
41549
|
-
removeSecondaryTables('partlistpos');
|
|
41550
|
-
};
|
|
41551
|
-
}, [selectedPartlist, organizationId, selectedCatalog]);
|
|
41539
|
+
useTools({
|
|
41540
|
+
catalogId: catalogId,
|
|
41541
|
+
setSerie: setSelectedSerie,
|
|
41542
|
+
setArticle: setSelectedItem,
|
|
41543
|
+
conditionalTools: [{
|
|
41544
|
+
id: 'partlistpos',
|
|
41545
|
+
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlistpos'),
|
|
41546
|
+
elementComponent: PartlistPos,
|
|
41547
|
+
elementProps: {
|
|
41548
|
+
organizationId: organizationId,
|
|
41549
|
+
catalog: selectedCatalog,
|
|
41550
|
+
apiConfig: apiConfig,
|
|
41551
|
+
partlist: selectedPartlist
|
|
41552
|
+
},
|
|
41553
|
+
condition: function condition() {
|
|
41554
|
+
return (selectedPartlist === null || selectedPartlist === void 0 ? void 0 : selectedPartlist._id) !== undefined;
|
|
41555
|
+
}
|
|
41556
|
+
}]
|
|
41557
|
+
});
|
|
41552
41558
|
var applicationData = useMemo(function () {
|
|
41553
41559
|
return {
|
|
41554
41560
|
organizationId: organizationId,
|
|
@@ -42057,54 +42063,53 @@ var TablePriceFeatureGroups = observer(function () {
|
|
|
42057
42063
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
42058
42064
|
isPercentage = _React$useState6[0],
|
|
42059
42065
|
setIsPercentage = _React$useState6[1];
|
|
42060
|
-
var _useTools = useTools({
|
|
42061
|
-
catalogId: catalogId,
|
|
42062
|
-
setSerie: setSelectedSerie,
|
|
42063
|
-
setArticle: setSelectedItem
|
|
42064
|
-
}),
|
|
42065
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
42066
|
-
removeSecondaryTables = _useTools.removeSecondaryTables;
|
|
42067
42066
|
var setNodeDataValue = useCallback(function (data) {
|
|
42068
42067
|
var _spreadsheetRef$curre;
|
|
42069
42068
|
return (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 ? void 0 : _spreadsheetRef$curre.setNodeDataValue(selectedNodeId, data);
|
|
42070
42069
|
}, [selectedNodeId]);
|
|
42070
|
+
useTools({
|
|
42071
|
+
catalogId: catalogId,
|
|
42072
|
+
setSerie: setSelectedSerie,
|
|
42073
|
+
setArticle: setSelectedItem,
|
|
42074
|
+
conditionalTools: [{
|
|
42075
|
+
id: 'priceFeatureGroupFinishes',
|
|
42076
|
+
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroupFinishes'),
|
|
42077
|
+
elementComponent: PriceFeatureGroupFinishes,
|
|
42078
|
+
elementProps: {
|
|
42079
|
+
priceFeatureGroup: selectedPriceFeatureGroup,
|
|
42080
|
+
catalogId: catalogId,
|
|
42081
|
+
apiConfig: apiConfig,
|
|
42082
|
+
setNodeDataValue: setNodeDataValue,
|
|
42083
|
+
setIsPercentage: setIsPercentage
|
|
42084
|
+
},
|
|
42085
|
+
disabled: isPercentage === true,
|
|
42086
|
+
condition: function condition() {
|
|
42087
|
+
return (selectedPriceFeatureGroup === null || selectedPriceFeatureGroup === void 0 ? void 0 : selectedPriceFeatureGroup._id) !== undefined;
|
|
42088
|
+
}
|
|
42089
|
+
}, {
|
|
42090
|
+
id: 'priceFeatureGroupPercentageSurcharge',
|
|
42091
|
+
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroupPercentageSurcharge'),
|
|
42092
|
+
elementComponent: PriceFeatureGroupPercentageSurcharge,
|
|
42093
|
+
elementProps: {
|
|
42094
|
+
priceFeatureGroup: selectedPriceFeatureGroup,
|
|
42095
|
+
catalogId: catalogId,
|
|
42096
|
+
apiConfig: apiConfig,
|
|
42097
|
+
setNodeDataValue: setNodeDataValue,
|
|
42098
|
+
setIsPercentage: setIsPercentage
|
|
42099
|
+
},
|
|
42100
|
+
disabled: isPercentage === false,
|
|
42101
|
+
condition: function condition() {
|
|
42102
|
+
return (selectedPriceFeatureGroup === null || selectedPriceFeatureGroup === void 0 ? void 0 : selectedPriceFeatureGroup._id) !== undefined;
|
|
42103
|
+
}
|
|
42104
|
+
}]
|
|
42105
|
+
});
|
|
42071
42106
|
useEffect(function () {
|
|
42072
42107
|
if (selectedPriceFeatureGroup !== null && selectedPriceFeatureGroup !== void 0 && selectedPriceFeatureGroup._id) {
|
|
42073
42108
|
var _root$contentStore$bo;
|
|
42074
|
-
addSecondaryTables({
|
|
42075
|
-
id: 'priceFeatureGroupFinishes',
|
|
42076
|
-
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroupFinishes'),
|
|
42077
|
-
elementComponent: PriceFeatureGroupFinishes,
|
|
42078
|
-
elementProps: {
|
|
42079
|
-
priceFeatureGroup: selectedPriceFeatureGroup,
|
|
42080
|
-
catalogId: catalogId,
|
|
42081
|
-
apiConfig: apiConfig,
|
|
42082
|
-
setNodeDataValue: setNodeDataValue,
|
|
42083
|
-
setIsPercentage: setIsPercentage
|
|
42084
|
-
},
|
|
42085
|
-
disabled: isPercentage === true
|
|
42086
|
-
}, {
|
|
42087
|
-
id: 'priceFeatureGroupPercentageSurcharge',
|
|
42088
|
-
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroupPercentageSurcharge'),
|
|
42089
|
-
elementComponent: PriceFeatureGroupPercentageSurcharge,
|
|
42090
|
-
elementProps: {
|
|
42091
|
-
priceFeatureGroup: selectedPriceFeatureGroup,
|
|
42092
|
-
catalogId: catalogId,
|
|
42093
|
-
apiConfig: apiConfig,
|
|
42094
|
-
setNodeDataValue: setNodeDataValue,
|
|
42095
|
-
setIsPercentage: setIsPercentage
|
|
42096
|
-
},
|
|
42097
|
-
disabled: isPercentage === false
|
|
42098
|
-
});
|
|
42099
42109
|
var openTool = (_root$contentStore$bo = root.contentStore.bottomToolBar.currentOpenTool) === null || _root$contentStore$bo === void 0 ? void 0 : _root$contentStore$bo.id;
|
|
42100
42110
|
root.contentStore.bottomToolBar.selectTool(isPercentage === true ? 'priceFeatureGroupPercentageSurcharge' : isPercentage === false ? 'priceFeatureGroupFinishes' : openTool !== null && openTool !== void 0 ? openTool : 'priceFeatureGroupFinishes');
|
|
42101
|
-
} else {
|
|
42102
|
-
removeSecondaryTables('priceFeatureGroupFinishes', 'priceFeatureGroupPercentageSurcharge');
|
|
42103
42111
|
}
|
|
42104
|
-
|
|
42105
|
-
removeSecondaryTables('priceFeatureGroupFinishes', 'priceFeatureGroupPercentageSurcharge');
|
|
42106
|
-
};
|
|
42107
|
-
}, [selectedPriceFeatureGroup, setNodeDataValue, isPercentage]);
|
|
42112
|
+
}, [selectedPriceFeatureGroup, isPercentage, root.contentStore.bottomToolBar]);
|
|
42108
42113
|
var applicationData = useMemo(function () {
|
|
42109
42114
|
return {
|
|
42110
42115
|
catalogId: catalogId,
|
|
@@ -42473,33 +42478,25 @@ var TableOptionGroups = observer(function () {
|
|
|
42473
42478
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
42474
42479
|
selectedOptionGroup = _React$useState2[0],
|
|
42475
42480
|
setSelectedOptionGroup = _React$useState2[1];
|
|
42476
|
-
|
|
42477
|
-
|
|
42478
|
-
|
|
42479
|
-
|
|
42480
|
-
|
|
42481
|
-
|
|
42482
|
-
|
|
42483
|
-
|
|
42484
|
-
|
|
42485
|
-
|
|
42486
|
-
|
|
42487
|
-
|
|
42488
|
-
|
|
42489
|
-
|
|
42490
|
-
|
|
42491
|
-
|
|
42492
|
-
|
|
42493
|
-
|
|
42494
|
-
|
|
42495
|
-
});
|
|
42496
|
-
} else {
|
|
42497
|
-
removeSecondaryTables('optionGroupOptions');
|
|
42498
|
-
}
|
|
42499
|
-
return function () {
|
|
42500
|
-
removeSecondaryTables('optionGroupOptions');
|
|
42501
|
-
};
|
|
42502
|
-
}, [selectedOptionGroup, t, organizationId, catalogId, apiConfig]);
|
|
42481
|
+
useTools({
|
|
42482
|
+
catalogId: catalogId,
|
|
42483
|
+
setSerie: setSelectedSerie,
|
|
42484
|
+
setArticle: setSelectedItem,
|
|
42485
|
+
conditionalTools: [{
|
|
42486
|
+
id: 'optionGroupOptions',
|
|
42487
|
+
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroupOptions'),
|
|
42488
|
+
elementComponent: Items,
|
|
42489
|
+
elementProps: {
|
|
42490
|
+
organizationId: organizationId,
|
|
42491
|
+
selectedCatalog: selectedCatalog,
|
|
42492
|
+
selectedOptionGroup: selectedOptionGroup === null || selectedOptionGroup === void 0 ? void 0 : selectedOptionGroup.optionGroupKey,
|
|
42493
|
+
apiConfig: apiConfig
|
|
42494
|
+
},
|
|
42495
|
+
condition: function condition() {
|
|
42496
|
+
return (selectedOptionGroup === null || selectedOptionGroup === void 0 ? void 0 : selectedOptionGroup.optionGroupKey) !== undefined;
|
|
42497
|
+
}
|
|
42498
|
+
}]
|
|
42499
|
+
});
|
|
42503
42500
|
var applicationData = useMemo(function () {
|
|
42504
42501
|
return {
|
|
42505
42502
|
catalogId: catalogId,
|
|
@@ -42585,10 +42582,10 @@ function IDMCatalogEditor (_ref) {
|
|
|
42585
42582
|
display: 'flex',
|
|
42586
42583
|
flexDirection: 'column'
|
|
42587
42584
|
},
|
|
42588
|
-
children: /*#__PURE__*/jsx(Content$
|
|
42585
|
+
children: /*#__PURE__*/jsx(Content$4, {})
|
|
42589
42586
|
});
|
|
42590
42587
|
}
|
|
42591
|
-
function Content$
|
|
42588
|
+
function Content$4() {
|
|
42592
42589
|
return /*#__PURE__*/jsxs(Routes, {
|
|
42593
42590
|
children: [/*#__PURE__*/jsx(Route, {
|
|
42594
42591
|
index: true,
|
|
@@ -42730,30 +42727,23 @@ function TableCollections () {
|
|
|
42730
42727
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
42731
42728
|
selectedNodeId = _React$useState4[0],
|
|
42732
42729
|
setSelectedNodeId = _React$useState4[1];
|
|
42733
|
-
var _useTools = useTools({}),
|
|
42734
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
42735
|
-
removeSecondaryTables = _useTools.removeSecondaryTables;
|
|
42736
42730
|
var organizationId = root.dataStore.organizationId;
|
|
42737
42731
|
var apiConfig = root.configurationStore.apiConfig;
|
|
42738
|
-
|
|
42739
|
-
|
|
42740
|
-
|
|
42741
|
-
|
|
42742
|
-
|
|
42743
|
-
|
|
42744
|
-
|
|
42745
|
-
|
|
42746
|
-
|
|
42747
|
-
|
|
42748
|
-
|
|
42749
|
-
|
|
42750
|
-
|
|
42751
|
-
|
|
42752
|
-
|
|
42753
|
-
return function () {
|
|
42754
|
-
removeSecondaryTables('collectionMembers');
|
|
42755
|
-
};
|
|
42756
|
-
}, [selectedCollection]);
|
|
42732
|
+
useTools({
|
|
42733
|
+
conditionalTools: [{
|
|
42734
|
+
id: 'collectionMembers',
|
|
42735
|
+
name: t('backoffice.menu.items.label.IDMCatalogEditorTableCollectionmembers'),
|
|
42736
|
+
elementComponent: CollectionMembers,
|
|
42737
|
+
elementProps: {
|
|
42738
|
+
collection: selectedCollection,
|
|
42739
|
+
organizationId: organizationId,
|
|
42740
|
+
apiConfig: apiConfig
|
|
42741
|
+
},
|
|
42742
|
+
condition: function condition() {
|
|
42743
|
+
return (selectedCollection === null || selectedCollection === void 0 ? void 0 : selectedCollection._id) !== undefined;
|
|
42744
|
+
}
|
|
42745
|
+
}]
|
|
42746
|
+
});
|
|
42757
42747
|
var applicationData = useMemo(function () {
|
|
42758
42748
|
return {
|
|
42759
42749
|
organizationId: organizationId
|
|
@@ -42907,10 +42897,10 @@ function IDMCollectionEditor(_ref) {
|
|
|
42907
42897
|
display: 'flex',
|
|
42908
42898
|
flexDirection: 'column'
|
|
42909
42899
|
},
|
|
42910
|
-
children: /*#__PURE__*/jsx(Content$
|
|
42900
|
+
children: /*#__PURE__*/jsx(Content$3, {})
|
|
42911
42901
|
});
|
|
42912
42902
|
}
|
|
42913
|
-
function Content$
|
|
42903
|
+
function Content$3() {
|
|
42914
42904
|
return /*#__PURE__*/jsx(Routes, {
|
|
42915
42905
|
children: /*#__PURE__*/jsx(Route, {
|
|
42916
42906
|
index: true,
|
|
@@ -42940,10 +42930,10 @@ function IDMFeaturesEditor(_ref) {
|
|
|
42940
42930
|
display: 'flex',
|
|
42941
42931
|
flexDirection: 'column'
|
|
42942
42932
|
},
|
|
42943
|
-
children: /*#__PURE__*/jsx(Content$
|
|
42933
|
+
children: /*#__PURE__*/jsx(Content$2, {})
|
|
42944
42934
|
});
|
|
42945
42935
|
}
|
|
42946
|
-
function Content$
|
|
42936
|
+
function Content$2() {
|
|
42947
42937
|
return /*#__PURE__*/jsx(Routes, {
|
|
42948
42938
|
children: /*#__PURE__*/jsx(Route, {
|
|
42949
42939
|
index: true,
|
|
@@ -43156,6 +43146,240 @@ var FileUploadWrapper = function FileUploadWrapper(_ref) {
|
|
|
43156
43146
|
};
|
|
43157
43147
|
var FileUploadOrders = observer(FileUploadWrapper);
|
|
43158
43148
|
|
|
43149
|
+
function MediaItemRefTableModule (_ref) {
|
|
43150
|
+
var mediaItemId = _ref.mediaItemId;
|
|
43151
|
+
var root = useStore();
|
|
43152
|
+
var _useTranslation = useTranslation(),
|
|
43153
|
+
t = _useTranslation.t;
|
|
43154
|
+
var apiConfig = root.configurationStore.apiConfig;
|
|
43155
|
+
var applicationData = useMemo(function () {
|
|
43156
|
+
return {
|
|
43157
|
+
mediaItemId: mediaItemId
|
|
43158
|
+
};
|
|
43159
|
+
}, [mediaItemId]);
|
|
43160
|
+
var apiInterface = useMemo(function () {
|
|
43161
|
+
return {
|
|
43162
|
+
read: apiConfig.mediaService + '/v1/mediaitems/${mediaItemId}/refs',
|
|
43163
|
+
"delete": apiConfig.mediaService + '/v1/mediaitems/refs/${_id}'
|
|
43164
|
+
};
|
|
43165
|
+
}, []);
|
|
43166
|
+
var configuration = useMemo(function () {
|
|
43167
|
+
return {
|
|
43168
|
+
type: 'nodejs',
|
|
43169
|
+
apiInterface: apiInterface,
|
|
43170
|
+
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
|
43171
|
+
floatingFilter: true,
|
|
43172
|
+
colDef: [{
|
|
43173
|
+
field: '_id',
|
|
43174
|
+
editable: false,
|
|
43175
|
+
cellDataType: 'objectId'
|
|
43176
|
+
}, {
|
|
43177
|
+
field: 'name',
|
|
43178
|
+
editable: false
|
|
43179
|
+
}, {
|
|
43180
|
+
field: 'cdnUrl',
|
|
43181
|
+
editable: false,
|
|
43182
|
+
cellDataType: 'media'
|
|
43183
|
+
}, {
|
|
43184
|
+
field: 'functionType',
|
|
43185
|
+
editable: false
|
|
43186
|
+
}, {
|
|
43187
|
+
field: 'created',
|
|
43188
|
+
headerName: 'backoffice.table.media.created',
|
|
43189
|
+
editable: false,
|
|
43190
|
+
cellDataType: 'dateString',
|
|
43191
|
+
customParams: {
|
|
43192
|
+
dateFormat: 'DD.MM.YYYY HH:mm:ss'
|
|
43193
|
+
}
|
|
43194
|
+
}, {
|
|
43195
|
+
field: 'createdBy_displayText',
|
|
43196
|
+
editable: false,
|
|
43197
|
+
cellDataType: 'text',
|
|
43198
|
+
headerName: 'backoffice.table.media.createdByDisplayText'
|
|
43199
|
+
}, {
|
|
43200
|
+
field: 'lastUpdated',
|
|
43201
|
+
headerName: 'backoffice.table.media.lastUpdated',
|
|
43202
|
+
editable: false,
|
|
43203
|
+
cellDataType: 'dateString',
|
|
43204
|
+
customParams: {
|
|
43205
|
+
dateFormat: 'DD.MM.YYYY HH:mm:ss'
|
|
43206
|
+
}
|
|
43207
|
+
}, {
|
|
43208
|
+
field: 'lastUpdatedBy_displayText',
|
|
43209
|
+
editable: false,
|
|
43210
|
+
headerName: 'backoffice.table.media.lastUpdatedByDisplayText'
|
|
43211
|
+
}]
|
|
43212
|
+
};
|
|
43213
|
+
}, [apiInterface]);
|
|
43214
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
43215
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
43216
|
+
title: t('backoffice.menu.items.label.TableMediaRef')
|
|
43217
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
43218
|
+
gridId: 'media-ref-table-grid',
|
|
43219
|
+
applicationData: applicationData,
|
|
43220
|
+
configuration: configuration
|
|
43221
|
+
})]
|
|
43222
|
+
});
|
|
43223
|
+
}
|
|
43224
|
+
|
|
43225
|
+
function MediaTableModule () {
|
|
43226
|
+
var root = useStore();
|
|
43227
|
+
var _useTranslation = useTranslation(),
|
|
43228
|
+
t = _useTranslation.t;
|
|
43229
|
+
var _React$useState = React.useState(),
|
|
43230
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
43231
|
+
selectedMedia = _React$useState2[0],
|
|
43232
|
+
setSelectedMedia = _React$useState2[1];
|
|
43233
|
+
var _React$useState3 = React.useState(),
|
|
43234
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
43235
|
+
selectedNodeId = _React$useState4[0],
|
|
43236
|
+
setSelectedNodeId = _React$useState4[1];
|
|
43237
|
+
var apiConfig = root.configurationStore.apiConfig;
|
|
43238
|
+
useTools({
|
|
43239
|
+
conditionalTools: [{
|
|
43240
|
+
id: 'mediaItemRefs',
|
|
43241
|
+
name: t('backoffice.menu.items.label.TableMediaRef'),
|
|
43242
|
+
elementComponent: MediaItemRefTableModule,
|
|
43243
|
+
elementProps: {
|
|
43244
|
+
mediaItemId: selectedMedia === null || selectedMedia === void 0 ? void 0 : selectedMedia._id
|
|
43245
|
+
},
|
|
43246
|
+
condition: function condition() {
|
|
43247
|
+
return (selectedMedia === null || selectedMedia === void 0 ? void 0 : selectedMedia._id) !== undefined;
|
|
43248
|
+
}
|
|
43249
|
+
}, {
|
|
43250
|
+
id: 'mediaDetail',
|
|
43251
|
+
name: t('backoffice.menu.items.label.MediaDetailCard'),
|
|
43252
|
+
elementComponent: MediaDetailCard,
|
|
43253
|
+
elementProps: {
|
|
43254
|
+
mediaItemId: selectedMedia === null || selectedMedia === void 0 ? void 0 : selectedMedia._id
|
|
43255
|
+
},
|
|
43256
|
+
where: 'right',
|
|
43257
|
+
condition: function condition() {
|
|
43258
|
+
return (selectedMedia === null || selectedMedia === void 0 ? void 0 : selectedMedia._id) !== undefined;
|
|
43259
|
+
}
|
|
43260
|
+
}]
|
|
43261
|
+
});
|
|
43262
|
+
var applicationData = useMemo(function () {
|
|
43263
|
+
return {};
|
|
43264
|
+
}, []);
|
|
43265
|
+
var hooks = useMemo(function () {
|
|
43266
|
+
return {
|
|
43267
|
+
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
43268
|
+
if (event.selection.length == 1) {
|
|
43269
|
+
setSelectedMedia(event.selection[0].node.data);
|
|
43270
|
+
setSelectedNodeId(event.selection[0].node.id);
|
|
43271
|
+
} else {
|
|
43272
|
+
setSelectedMedia(undefined);
|
|
43273
|
+
setSelectedNodeId(undefined);
|
|
43274
|
+
}
|
|
43275
|
+
}
|
|
43276
|
+
};
|
|
43277
|
+
}, [selectedNodeId]);
|
|
43278
|
+
var apiInterface = useMemo(function () {
|
|
43279
|
+
return {
|
|
43280
|
+
read: apiConfig.mediaService + '/v1/mediaitems',
|
|
43281
|
+
"delete": apiConfig.mediaService + '/v1/mediaitems/${_id}'
|
|
43282
|
+
};
|
|
43283
|
+
}, []);
|
|
43284
|
+
var configuration = useMemo(function () {
|
|
43285
|
+
return {
|
|
43286
|
+
type: 'nodejs',
|
|
43287
|
+
apiInterface: apiInterface,
|
|
43288
|
+
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
|
43289
|
+
floatingFilter: true,
|
|
43290
|
+
colDef: [{
|
|
43291
|
+
field: '_id',
|
|
43292
|
+
editable: false,
|
|
43293
|
+
cellDataType: 'objectId'
|
|
43294
|
+
}, {
|
|
43295
|
+
field: 'name',
|
|
43296
|
+
editable: false
|
|
43297
|
+
}, {
|
|
43298
|
+
field: 'cdnUrl',
|
|
43299
|
+
editable: false,
|
|
43300
|
+
cellDataType: 'media',
|
|
43301
|
+
customParams: {
|
|
43302
|
+
thumbnailField: 'thumbnailUrl',
|
|
43303
|
+
mimeTypeField: 'mimeType'
|
|
43304
|
+
},
|
|
43305
|
+
additionalFields: ['thumbnailUrl', 'mimeType']
|
|
43306
|
+
}, {
|
|
43307
|
+
field: 'organizationId_displayText',
|
|
43308
|
+
editable: false
|
|
43309
|
+
}, {
|
|
43310
|
+
field: 'mediaType',
|
|
43311
|
+
editable: false
|
|
43312
|
+
}, {
|
|
43313
|
+
field: 'storage',
|
|
43314
|
+
editable: false
|
|
43315
|
+
}, {
|
|
43316
|
+
field: 'fileSize',
|
|
43317
|
+
editable: false
|
|
43318
|
+
}, {
|
|
43319
|
+
field: 'hash',
|
|
43320
|
+
editable: false
|
|
43321
|
+
}, {
|
|
43322
|
+
field: 'created',
|
|
43323
|
+
headerName: 'backoffice.table.media.created',
|
|
43324
|
+
editable: false,
|
|
43325
|
+
cellDataType: 'dateString',
|
|
43326
|
+
customParams: {
|
|
43327
|
+
dateFormat: 'DD.MM.YYYY HH:mm:ss'
|
|
43328
|
+
},
|
|
43329
|
+
sort: 'desc'
|
|
43330
|
+
}, {
|
|
43331
|
+
field: 'createdBy_displayText',
|
|
43332
|
+
editable: false,
|
|
43333
|
+
cellDataType: 'text',
|
|
43334
|
+
headerName: 'backoffice.table.media.createdByDisplayText'
|
|
43335
|
+
}, {
|
|
43336
|
+
field: 'lastUpdated',
|
|
43337
|
+
headerName: 'backoffice.table.media.lastUpdated',
|
|
43338
|
+
editable: false,
|
|
43339
|
+
cellDataType: 'dateString',
|
|
43340
|
+
customParams: {
|
|
43341
|
+
dateFormat: 'DD.MM.YYYY HH:mm:ss'
|
|
43342
|
+
}
|
|
43343
|
+
}, {
|
|
43344
|
+
field: 'lastUpdatedBy_displayText',
|
|
43345
|
+
editable: false,
|
|
43346
|
+
headerName: 'backoffice.table.media.lastUpdatedByDisplayText'
|
|
43347
|
+
}]
|
|
43348
|
+
};
|
|
43349
|
+
}, [apiInterface]);
|
|
43350
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
43351
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
43352
|
+
title: t('backoffice.table.medien.title')
|
|
43353
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
43354
|
+
gridId: 'media-table-grid',
|
|
43355
|
+
applicationData: applicationData,
|
|
43356
|
+
hooks: hooks,
|
|
43357
|
+
configuration: configuration
|
|
43358
|
+
})]
|
|
43359
|
+
});
|
|
43360
|
+
}
|
|
43361
|
+
|
|
43362
|
+
function MediaTable(_ref) {
|
|
43363
|
+
_objectDestructuringEmpty(_ref);
|
|
43364
|
+
return /*#__PURE__*/jsx("div", {
|
|
43365
|
+
style: {
|
|
43366
|
+
height: '85vh',
|
|
43367
|
+
display: 'flex',
|
|
43368
|
+
flexDirection: 'column'
|
|
43369
|
+
},
|
|
43370
|
+
children: /*#__PURE__*/jsx(Content$1, {})
|
|
43371
|
+
});
|
|
43372
|
+
}
|
|
43373
|
+
function Content$1() {
|
|
43374
|
+
return /*#__PURE__*/jsx(Routes, {
|
|
43375
|
+
children: /*#__PURE__*/jsx(Route, {
|
|
43376
|
+
index: true,
|
|
43377
|
+
path: "",
|
|
43378
|
+
element: /*#__PURE__*/jsx(MediaTableModule, {})
|
|
43379
|
+
})
|
|
43380
|
+
});
|
|
43381
|
+
}
|
|
43382
|
+
|
|
43159
43383
|
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
43160
43384
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
43161
43385
|
var ContentWrapper = function ContentWrapper(_ref) {
|
|
@@ -43276,6 +43500,9 @@ var ContentCard = observer(function (_ref3) {
|
|
|
43276
43500
|
}, configId), configuration.type == 'IDMFeaturesEditor' && /*#__PURE__*/jsx(IDMFeaturesEditor, {
|
|
43277
43501
|
configuration: configuration,
|
|
43278
43502
|
id: configId
|
|
43503
|
+
}, configId), configuration.type == 'MediaTable' && /*#__PURE__*/jsx(MediaTable, {
|
|
43504
|
+
configuration: configuration,
|
|
43505
|
+
id: configId
|
|
43279
43506
|
}, configId)]
|
|
43280
43507
|
});
|
|
43281
43508
|
});
|