@crystaldesign/diva-backoffice 25.13.0-beta.1 → 25.13.0-beta.2
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 +441 -457
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/modules/MediaItemRefTableModule/index.d.ts +2 -2
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/modules/MediaItemRefTableModule/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssetMananger/MediaTable/modules/MediaTableModule/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts +7 -4
- package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatures/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/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/package.json +9 -9
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;) {
|
|
@@ -13611,9 +13612,9 @@ function MenuLabel (_ref) {
|
|
|
13611
13612
|
});
|
|
13612
13613
|
}
|
|
13613
13614
|
|
|
13614
|
-
function _createForOfIteratorHelper$
|
|
13615
|
-
function _unsupportedIterableToArray$
|
|
13616
|
-
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; }
|
|
13617
13618
|
function applyRule(_ref) {
|
|
13618
13619
|
var rules = _ref.rules,
|
|
13619
13620
|
data = _ref.data,
|
|
@@ -13622,7 +13623,7 @@ function applyRule(_ref) {
|
|
|
13622
13623
|
//if or we start with false until the first time some result is true
|
|
13623
13624
|
//if and we start with true until the frist time some result is false
|
|
13624
13625
|
var result = !or;
|
|
13625
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13626
|
+
var _iterator = _createForOfIteratorHelper$n(rules),
|
|
13626
13627
|
_step;
|
|
13627
13628
|
try {
|
|
13628
13629
|
var _loop = function _loop() {
|
|
@@ -13692,7 +13693,7 @@ function aplyRules(_ref2) {
|
|
|
13692
13693
|
if (!data || data.length == 0) return {
|
|
13693
13694
|
applied: false
|
|
13694
13695
|
};
|
|
13695
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
13696
|
+
var _iterator2 = _createForOfIteratorHelper$n(data),
|
|
13696
13697
|
_step2;
|
|
13697
13698
|
try {
|
|
13698
13699
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -14112,9 +14113,9 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
|
14112
14113
|
|
|
14113
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; }
|
|
14114
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; }
|
|
14115
|
-
function _createForOfIteratorHelper$
|
|
14116
|
-
function _unsupportedIterableToArray$
|
|
14117
|
-
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; }
|
|
14118
14119
|
var _default$6 = /*#__PURE__*/function () {
|
|
14119
14120
|
function _default(root) {
|
|
14120
14121
|
_classCallCheck(this, _default);
|
|
@@ -14147,7 +14148,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
14147
14148
|
var initKeys = this.root.navigationState.path == '' ? [] : this.keysFormPath(this._menu, this.root.navigationState.path);
|
|
14148
14149
|
var checkedKeys = [];
|
|
14149
14150
|
var currentMenu = this._menu;
|
|
14150
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14151
|
+
var _iterator = _createForOfIteratorHelper$m(initKeys),
|
|
14151
14152
|
_step;
|
|
14152
14153
|
try {
|
|
14153
14154
|
var _loop = function _loop() {
|
|
@@ -14789,22 +14790,23 @@ var menu = [{
|
|
|
14789
14790
|
permission: 'backoffice_admin_users'
|
|
14790
14791
|
}, {
|
|
14791
14792
|
id: 'mediaAdmin',
|
|
14793
|
+
path: 'assetmanager',
|
|
14792
14794
|
label: 'backoffice.menu.items.label.mediaAdmin',
|
|
14793
14795
|
permission: 'backoffice_admin_media',
|
|
14794
14796
|
icon: 'FileOutlined',
|
|
14795
14797
|
items: [{
|
|
14796
14798
|
id: 'TableMedia',
|
|
14797
|
-
path: '
|
|
14799
|
+
path: 'mediaLegacy',
|
|
14798
14800
|
label: 'backoffice.menu.items.label.mediaAdmin',
|
|
14799
14801
|
icon: 'FileOutlined'
|
|
14800
14802
|
}, {
|
|
14801
14803
|
id: 'TableMediaRef',
|
|
14802
|
-
path: '
|
|
14804
|
+
path: 'mediarefLegacy',
|
|
14803
14805
|
label: 'backoffice.menu.items.label.TableMediaRef',
|
|
14804
14806
|
icon: 'LinkOutlined'
|
|
14805
14807
|
}, {
|
|
14806
14808
|
id: 'MediaTable',
|
|
14807
|
-
path: '
|
|
14809
|
+
path: 'media',
|
|
14808
14810
|
label: 'Medien (Beta)',
|
|
14809
14811
|
//TODO: Add translation key when old Media Table is removed
|
|
14810
14812
|
icon: 'FileOutlined'
|
|
@@ -15227,9 +15229,9 @@ var _default$3 = /*#__PURE__*/function () {
|
|
|
15227
15229
|
}]);
|
|
15228
15230
|
}();
|
|
15229
15231
|
|
|
15230
|
-
function _createForOfIteratorHelper$
|
|
15231
|
-
function _unsupportedIterableToArray$
|
|
15232
|
-
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; }
|
|
15233
15235
|
var LOG$d = getLogger('Backoffice', 'DownloadStore');
|
|
15234
15236
|
var DownloadStore = /*#__PURE__*/function () {
|
|
15235
15237
|
function DownloadStore(_rootStore) {
|
|
@@ -15257,7 +15259,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
|
15257
15259
|
_context2.next = 23;
|
|
15258
15260
|
break;
|
|
15259
15261
|
}
|
|
15260
|
-
_iterator = _createForOfIteratorHelper$
|
|
15262
|
+
_iterator = _createForOfIteratorHelper$l(action.download);
|
|
15261
15263
|
_context2.prev = 8;
|
|
15262
15264
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
15263
15265
|
var _download$params, _data$fileFormat, _data$fileUrl;
|
|
@@ -15601,7 +15603,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
|
15601
15603
|
break;
|
|
15602
15604
|
}
|
|
15603
15605
|
promises = [];
|
|
15604
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
15606
|
+
_iterator2 = _createForOfIteratorHelper$l(props.data);
|
|
15605
15607
|
_context7.prev = 3;
|
|
15606
15608
|
_iterator2.s();
|
|
15607
15609
|
case 5:
|
|
@@ -16385,9 +16387,9 @@ var MediaItem = /*#__PURE__*/function () {
|
|
|
16385
16387
|
|
|
16386
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; }
|
|
16387
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; }
|
|
16388
|
-
function _createForOfIteratorHelper$
|
|
16389
|
-
function _unsupportedIterableToArray$
|
|
16390
|
-
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; }
|
|
16391
16393
|
function useFormData (_ref) {
|
|
16392
16394
|
var _loadedData$_id;
|
|
16393
16395
|
var id = _ref.id,
|
|
@@ -16459,7 +16461,7 @@ function useFormData (_ref) {
|
|
|
16459
16461
|
setSelectedItems = _useState14[1];
|
|
16460
16462
|
var _onLoadFields = function onLoadFields(data) {
|
|
16461
16463
|
var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : selectedItems;
|
|
16462
|
-
var _iterator = _createForOfIteratorHelper$
|
|
16464
|
+
var _iterator = _createForOfIteratorHelper$k(items),
|
|
16463
16465
|
_step;
|
|
16464
16466
|
try {
|
|
16465
16467
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -16837,7 +16839,7 @@ function useFormData (_ref) {
|
|
|
16837
16839
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
16838
16840
|
while (1) switch (_context4.prev = _context4.next) {
|
|
16839
16841
|
case 0:
|
|
16840
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
16842
|
+
_iterator3 = _createForOfIteratorHelper$k(items);
|
|
16841
16843
|
_context4.prev = 1;
|
|
16842
16844
|
_iterator3.s();
|
|
16843
16845
|
case 3:
|
|
@@ -16923,7 +16925,7 @@ function useFormData (_ref) {
|
|
|
16923
16925
|
_iterator3.f();
|
|
16924
16926
|
return _context4.finish(42);
|
|
16925
16927
|
case 45:
|
|
16926
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
16928
|
+
_iterator4 = _createForOfIteratorHelper$k(removedMedias);
|
|
16927
16929
|
_context4.prev = 46;
|
|
16928
16930
|
_iterator4.s();
|
|
16929
16931
|
case 48:
|
|
@@ -17006,7 +17008,7 @@ function useFormData (_ref) {
|
|
|
17006
17008
|
return _getDynamicValue.apply(this, arguments);
|
|
17007
17009
|
};
|
|
17008
17010
|
items = selectedItems !== null && selectedItems !== void 0 ? selectedItems : configuration.items;
|
|
17009
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
17011
|
+
_iterator5 = _createForOfIteratorHelper$k(items);
|
|
17010
17012
|
_context6.prev = 4;
|
|
17011
17013
|
_iterator5.s();
|
|
17012
17014
|
case 6:
|
|
@@ -17117,7 +17119,7 @@ function useFormData (_ref) {
|
|
|
17117
17119
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
17118
17120
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17119
17121
|
case 0:
|
|
17120
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
17122
|
+
_iterator2 = _createForOfIteratorHelper$k(items);
|
|
17121
17123
|
_context3.prev = 1;
|
|
17122
17124
|
_iterator2.s();
|
|
17123
17125
|
case 3:
|
|
@@ -17730,15 +17732,15 @@ var InputComponent = function InputComponent(_ref, ref) {
|
|
|
17730
17732
|
};
|
|
17731
17733
|
var InputComponent$1 = observer(/*#__PURE__*/React.forwardRef(InputComponent));
|
|
17732
17734
|
|
|
17733
|
-
function _createForOfIteratorHelper$
|
|
17734
|
-
function _unsupportedIterableToArray$
|
|
17735
|
-
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; }
|
|
17736
17738
|
function getCombinedValues(data, pattern) {
|
|
17737
17739
|
if (!pattern || !data) {
|
|
17738
17740
|
return data;
|
|
17739
17741
|
}
|
|
17740
17742
|
var value = pattern;
|
|
17741
|
-
var _iterator = _createForOfIteratorHelper$
|
|
17743
|
+
var _iterator = _createForOfIteratorHelper$j(pattern.matchAll(/\$\{(.*?)\}/g)),
|
|
17742
17744
|
_step;
|
|
17743
17745
|
try {
|
|
17744
17746
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -18942,9 +18944,9 @@ function SelectClientRelationCatalog (_ref) {
|
|
|
18942
18944
|
});
|
|
18943
18945
|
}
|
|
18944
18946
|
|
|
18945
|
-
function _createForOfIteratorHelper$
|
|
18946
|
-
function _unsupportedIterableToArray$
|
|
18947
|
-
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; }
|
|
18948
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; }
|
|
18949
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; }
|
|
18950
18952
|
function useSelectData (_ref) {
|
|
@@ -19190,7 +19192,7 @@ function useSelectData (_ref) {
|
|
|
19190
19192
|
var verifySelection = function verifySelection(opt) {
|
|
19191
19193
|
if (disabledConfig == undefined) return [];
|
|
19192
19194
|
var _missingFields = [];
|
|
19193
|
-
var _iterator = _createForOfIteratorHelper$
|
|
19195
|
+
var _iterator = _createForOfIteratorHelper$i(disabledConfig),
|
|
19194
19196
|
_step;
|
|
19195
19197
|
try {
|
|
19196
19198
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -20022,9 +20024,9 @@ var Text = function Text(_ref) {
|
|
|
20022
20024
|
};
|
|
20023
20025
|
var Text$1 = observer(Text);
|
|
20024
20026
|
|
|
20025
|
-
function _createForOfIteratorHelper$
|
|
20026
|
-
function _unsupportedIterableToArray$
|
|
20027
|
-
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; }
|
|
20028
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; }
|
|
20029
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; }
|
|
20030
20032
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName) {
|
|
@@ -20119,7 +20121,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
20119
20121
|
mappingData: state.data,
|
|
20120
20122
|
callback: function callback(data) {
|
|
20121
20123
|
if (!item.callbackMapping) return;
|
|
20122
|
-
var _iterator = _createForOfIteratorHelper$
|
|
20124
|
+
var _iterator = _createForOfIteratorHelper$h(item.callbackMapping),
|
|
20123
20125
|
_step;
|
|
20124
20126
|
try {
|
|
20125
20127
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -20330,9 +20332,9 @@ function isReadonly(item, data) {
|
|
|
20330
20332
|
|
|
20331
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; }
|
|
20332
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; }
|
|
20333
|
-
function _createForOfIteratorHelper$
|
|
20334
|
-
function _unsupportedIterableToArray$
|
|
20335
|
-
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; }
|
|
20336
20338
|
var Presets = function Presets(_ref) {
|
|
20337
20339
|
var state = _ref.state,
|
|
20338
20340
|
apiHandler = _ref.apiHandler,
|
|
@@ -20367,7 +20369,7 @@ var Presets = function Presets(_ref) {
|
|
|
20367
20369
|
if (state.selectedItems == undefined) return;
|
|
20368
20370
|
setIsModalVisible(false);
|
|
20369
20371
|
var names = [];
|
|
20370
|
-
var _iterator = _createForOfIteratorHelper$
|
|
20372
|
+
var _iterator = _createForOfIteratorHelper$g(state.selectedItems),
|
|
20371
20373
|
_step;
|
|
20372
20374
|
try {
|
|
20373
20375
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -20881,9 +20883,9 @@ var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
|
|
20881
20883
|
|
|
20882
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; }
|
|
20883
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; }
|
|
20884
|
-
function _createForOfIteratorHelper$
|
|
20885
|
-
function _unsupportedIterableToArray$
|
|
20886
|
-
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; }
|
|
20887
20889
|
function useRoleSelectorData (_ref) {
|
|
20888
20890
|
var userId = _ref.userId,
|
|
20889
20891
|
id = _ref.id;
|
|
@@ -21040,7 +21042,7 @@ function useRoleSelectorData (_ref) {
|
|
|
21040
21042
|
} else {
|
|
21041
21043
|
var internalOptions = options;
|
|
21042
21044
|
var organizationList = [];
|
|
21043
|
-
var _iterator = _createForOfIteratorHelper$
|
|
21045
|
+
var _iterator = _createForOfIteratorHelper$f(selected),
|
|
21044
21046
|
_step;
|
|
21045
21047
|
try {
|
|
21046
21048
|
var _loop = function _loop() {
|
|
@@ -21175,7 +21177,7 @@ function useRoleSelectorData (_ref) {
|
|
|
21175
21177
|
while (1) switch (_context5.prev = _context5.next) {
|
|
21176
21178
|
case 0:
|
|
21177
21179
|
setLoading(true);
|
|
21178
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
21180
|
+
_iterator2 = _createForOfIteratorHelper$f(addedRoles);
|
|
21179
21181
|
_context5.prev = 2;
|
|
21180
21182
|
_iterator2.s();
|
|
21181
21183
|
case 4:
|
|
@@ -21184,7 +21186,7 @@ function useRoleSelectorData (_ref) {
|
|
|
21184
21186
|
break;
|
|
21185
21187
|
}
|
|
21186
21188
|
role = _step2.value;
|
|
21187
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
21189
|
+
_iterator4 = _createForOfIteratorHelper$f(role.organizations);
|
|
21188
21190
|
_context5.prev = 7;
|
|
21189
21191
|
_iterator4.s();
|
|
21190
21192
|
case 9:
|
|
@@ -21224,7 +21226,7 @@ function useRoleSelectorData (_ref) {
|
|
|
21224
21226
|
_iterator2.f();
|
|
21225
21227
|
return _context5.finish(30);
|
|
21226
21228
|
case 33:
|
|
21227
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
21229
|
+
_iterator3 = _createForOfIteratorHelper$f(removedRoles);
|
|
21228
21230
|
_context5.prev = 34;
|
|
21229
21231
|
_iterator3.s();
|
|
21230
21232
|
case 36:
|
|
@@ -21233,7 +21235,7 @@ function useRoleSelectorData (_ref) {
|
|
|
21233
21235
|
break;
|
|
21234
21236
|
}
|
|
21235
21237
|
_role = _step3.value;
|
|
21236
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
21238
|
+
_iterator5 = _createForOfIteratorHelper$f(_role.organizations);
|
|
21237
21239
|
_context5.prev = 39;
|
|
21238
21240
|
_iterator5.s();
|
|
21239
21241
|
case 41:
|
|
@@ -21310,7 +21312,7 @@ function _updateRoles() {
|
|
|
21310
21312
|
return fetchUserRoles(apiHandler, userId, currentOrganization);
|
|
21311
21313
|
case 3:
|
|
21312
21314
|
userRoles = _context7.sent;
|
|
21313
|
-
_iterator6 = _createForOfIteratorHelper$
|
|
21315
|
+
_iterator6 = _createForOfIteratorHelper$f(roles);
|
|
21314
21316
|
_context7.prev = 5;
|
|
21315
21317
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
21316
21318
|
var _removedRole$organiza3;
|
|
@@ -21646,9 +21648,9 @@ styleInject(css_248z$s);
|
|
|
21646
21648
|
|
|
21647
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; }
|
|
21648
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; }
|
|
21649
|
-
function _createForOfIteratorHelper$
|
|
21650
|
-
function _unsupportedIterableToArray$
|
|
21651
|
-
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; }
|
|
21652
21654
|
function generateCSV(_x, _x2) {
|
|
21653
21655
|
return _generateCSV.apply(this, arguments);
|
|
21654
21656
|
}
|
|
@@ -21678,7 +21680,7 @@ function _generateCSV() {
|
|
|
21678
21680
|
data = res.data;
|
|
21679
21681
|
count += res.data.length;
|
|
21680
21682
|
total = res.total;
|
|
21681
|
-
_iterator = _createForOfIteratorHelper$
|
|
21683
|
+
_iterator = _createForOfIteratorHelper$e(data);
|
|
21682
21684
|
_context2.prev = 10;
|
|
21683
21685
|
_iterator.s();
|
|
21684
21686
|
case 12:
|
|
@@ -21688,7 +21690,7 @@ function _generateCSV() {
|
|
|
21688
21690
|
}
|
|
21689
21691
|
parent = _step.value;
|
|
21690
21692
|
line = [];
|
|
21691
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
21693
|
+
_iterator2 = _createForOfIteratorHelper$e(exportParams.fields);
|
|
21692
21694
|
try {
|
|
21693
21695
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
21694
21696
|
field = _step2.value;
|
|
@@ -21816,9 +21818,9 @@ function _downloadFile() {
|
|
|
21816
21818
|
|
|
21817
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; }
|
|
21818
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; }
|
|
21819
|
-
function _createForOfIteratorHelper$
|
|
21820
|
-
function _unsupportedIterableToArray$
|
|
21821
|
-
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; }
|
|
21822
21824
|
var deletedObjects = [];
|
|
21823
21825
|
var addedObjects = [];
|
|
21824
21826
|
|
|
@@ -21943,7 +21945,7 @@ function useRelationSelectorData (_ref) {
|
|
|
21943
21945
|
});
|
|
21944
21946
|
roles = [];
|
|
21945
21947
|
filter = {};
|
|
21946
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
21948
|
+
_iterator3 = _createForOfIteratorHelper$d(configuration.search.fields);
|
|
21947
21949
|
try {
|
|
21948
21950
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
21949
21951
|
searchField = _step3.value;
|
|
@@ -22090,7 +22092,7 @@ function useRelationSelectorData (_ref) {
|
|
|
22090
22092
|
filteredItems.push(data === null || data === void 0 ? void 0 : data._id);
|
|
22091
22093
|
}
|
|
22092
22094
|
}
|
|
22093
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
22095
|
+
_iterator4 = _createForOfIteratorHelper$d(addedObjects);
|
|
22094
22096
|
_context3.prev = 7;
|
|
22095
22097
|
_iterator4.s();
|
|
22096
22098
|
case 9:
|
|
@@ -22227,7 +22229,7 @@ function useRelationSelectorData (_ref) {
|
|
|
22227
22229
|
return;
|
|
22228
22230
|
}
|
|
22229
22231
|
});
|
|
22230
|
-
var _iterator = _createForOfIteratorHelper$
|
|
22232
|
+
var _iterator = _createForOfIteratorHelper$d(activeItems),
|
|
22231
22233
|
_step;
|
|
22232
22234
|
try {
|
|
22233
22235
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -22357,7 +22359,7 @@ function useRelationSelectorData (_ref) {
|
|
|
22357
22359
|
function mapToCascaderData(data) {
|
|
22358
22360
|
var options = [];
|
|
22359
22361
|
var tempCascaderData = [];
|
|
22360
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
22362
|
+
var _iterator2 = _createForOfIteratorHelper$d(data),
|
|
22361
22363
|
_step2;
|
|
22362
22364
|
try {
|
|
22363
22365
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -22441,9 +22443,9 @@ function useRelationSelectorData (_ref) {
|
|
|
22441
22443
|
|
|
22442
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; }
|
|
22443
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; }
|
|
22444
|
-
function _createForOfIteratorHelper$
|
|
22445
|
-
function _unsupportedIterableToArray$
|
|
22446
|
-
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; }
|
|
22447
22449
|
function ActionButton (_ref) {
|
|
22448
22450
|
var action = _ref.action,
|
|
22449
22451
|
callback = _ref.callback,
|
|
@@ -22464,7 +22466,7 @@ function ActionButton (_ref) {
|
|
|
22464
22466
|
var ButtonType = type == 'Button' ? Button : A;
|
|
22465
22467
|
var disable = false;
|
|
22466
22468
|
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
22467
|
-
var _iterator = _createForOfIteratorHelper$
|
|
22469
|
+
var _iterator = _createForOfIteratorHelper$c(ruleData !== null && ruleData !== void 0 ? ruleData : data),
|
|
22468
22470
|
_step;
|
|
22469
22471
|
try {
|
|
22470
22472
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -22561,7 +22563,7 @@ function ActionButton (_ref) {
|
|
|
22561
22563
|
_context.next = 20;
|
|
22562
22564
|
break;
|
|
22563
22565
|
}
|
|
22564
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
22566
|
+
_iterator2 = _createForOfIteratorHelper$c(action.switchValues);
|
|
22565
22567
|
try {
|
|
22566
22568
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
22567
22569
|
element = _step2.value;
|
|
@@ -22624,7 +22626,7 @@ function ActionButton (_ref) {
|
|
|
22624
22626
|
switch (action.actionType) {
|
|
22625
22627
|
case 'SwitchButton':
|
|
22626
22628
|
var switchLabel;
|
|
22627
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
22629
|
+
var _iterator3 = _createForOfIteratorHelper$c(action.switchLable),
|
|
22628
22630
|
_step3;
|
|
22629
22631
|
try {
|
|
22630
22632
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -22755,12 +22757,12 @@ function A(props) {
|
|
|
22755
22757
|
return /*#__PURE__*/jsx("a", _objectSpread$P({}, props));
|
|
22756
22758
|
}
|
|
22757
22759
|
|
|
22758
|
-
function _createForOfIteratorHelper$
|
|
22759
|
-
function _unsupportedIterableToArray$
|
|
22760
|
-
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; }
|
|
22761
22763
|
function filter$1(input, getActiveItem, filterFields) {
|
|
22762
22764
|
var filter = {};
|
|
22763
|
-
var _iterator = _createForOfIteratorHelper$
|
|
22765
|
+
var _iterator = _createForOfIteratorHelper$b(filterFields),
|
|
22764
22766
|
_step;
|
|
22765
22767
|
try {
|
|
22766
22768
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -24649,9 +24651,9 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
|
24649
24651
|
};
|
|
24650
24652
|
var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
24651
24653
|
|
|
24652
|
-
function _createForOfIteratorHelper$
|
|
24653
|
-
function _unsupportedIterableToArray$
|
|
24654
|
-
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; }
|
|
24655
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; }
|
|
24656
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; }
|
|
24657
24659
|
function useDescriptions (_ref) {
|
|
@@ -24747,7 +24749,7 @@ function _getDisplayData() {
|
|
|
24747
24749
|
while (1) switch (_context4.prev = _context4.next) {
|
|
24748
24750
|
case 0:
|
|
24749
24751
|
displayData = _objectSpread$J({}, data);
|
|
24750
|
-
_iterator = _createForOfIteratorHelper$
|
|
24752
|
+
_iterator = _createForOfIteratorHelper$a(items);
|
|
24751
24753
|
_context4.prev = 2;
|
|
24752
24754
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
24753
24755
|
var item, itemWithMappingData, apiHandler, response, mappingData;
|
|
@@ -24863,9 +24865,9 @@ var DescriptionWrapper = function DescriptionWrapper(_ref) {
|
|
|
24863
24865
|
};
|
|
24864
24866
|
var Description = observer(DescriptionWrapper);
|
|
24865
24867
|
|
|
24866
|
-
function _createForOfIteratorHelper$
|
|
24867
|
-
function _unsupportedIterableToArray$
|
|
24868
|
-
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; }
|
|
24869
24871
|
var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
24870
24872
|
var id = _ref.id;
|
|
24871
24873
|
var _useDivaCore = useDivaCore(),
|
|
@@ -24926,7 +24928,7 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
|
24926
24928
|
case 0:
|
|
24927
24929
|
setLoading(true);
|
|
24928
24930
|
_context.prev = 1;
|
|
24929
|
-
_iterator = _createForOfIteratorHelper$
|
|
24931
|
+
_iterator = _createForOfIteratorHelper$9(organizations);
|
|
24930
24932
|
_context.prev = 3;
|
|
24931
24933
|
_iterator.s();
|
|
24932
24934
|
case 5:
|
|
@@ -25453,9 +25455,9 @@ function BooleanCell (_ref) {
|
|
|
25453
25455
|
}
|
|
25454
25456
|
}
|
|
25455
25457
|
|
|
25456
|
-
function _createForOfIteratorHelper$
|
|
25457
|
-
function _unsupportedIterableToArray$
|
|
25458
|
-
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; }
|
|
25459
25461
|
function StringCell (_ref) {
|
|
25460
25462
|
var children = _ref.children,
|
|
25461
25463
|
column = _ref.column,
|
|
@@ -25560,7 +25562,7 @@ function StringCell (_ref) {
|
|
|
25560
25562
|
}
|
|
25561
25563
|
function getColor(column, record, value) {
|
|
25562
25564
|
if (column.color && record) {
|
|
25563
|
-
var _iterator = _createForOfIteratorHelper$
|
|
25565
|
+
var _iterator = _createForOfIteratorHelper$8(column.color),
|
|
25564
25566
|
_step;
|
|
25565
25567
|
try {
|
|
25566
25568
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -25740,9 +25742,9 @@ function DropdownCell (_ref) {
|
|
|
25740
25742
|
}
|
|
25741
25743
|
}
|
|
25742
25744
|
|
|
25743
|
-
function _createForOfIteratorHelper$
|
|
25744
|
-
function _unsupportedIterableToArray$
|
|
25745
|
-
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; }
|
|
25746
25748
|
function MediaViewerCell (_ref) {
|
|
25747
25749
|
var children = _ref.children,
|
|
25748
25750
|
column = _ref.column;
|
|
@@ -25760,7 +25762,7 @@ function MediaViewerCell (_ref) {
|
|
|
25760
25762
|
if (column.imageEnding && !url.endsWith('glb')) previewUrl = url.endsWith('.jpg') ? url.replace('.jpg', '') + column.imageEnding + '.jpg' : url.replace('.png', '') + column.imageEnding + '.png';
|
|
25761
25763
|
if (column.includedFileEndings) {
|
|
25762
25764
|
var supported = false;
|
|
25763
|
-
var _iterator = _createForOfIteratorHelper$
|
|
25765
|
+
var _iterator = _createForOfIteratorHelper$7(column.includedFileEndings),
|
|
25764
25766
|
_step;
|
|
25765
25767
|
try {
|
|
25766
25768
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -26019,15 +26021,15 @@ function MediaItemViewerCell (_ref) {
|
|
|
26019
26021
|
});
|
|
26020
26022
|
}
|
|
26021
26023
|
|
|
26022
|
-
function _createForOfIteratorHelper$
|
|
26023
|
-
function _unsupportedIterableToArray$
|
|
26024
|
-
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; }
|
|
26025
26027
|
function IconCell (_ref) {
|
|
26026
26028
|
var children = _ref.children,
|
|
26027
26029
|
column = _ref.column;
|
|
26028
26030
|
if (!column) throw new Error('icon column doesnt support editing');
|
|
26029
26031
|
function resolveIconMapping(value) {
|
|
26030
|
-
var _iterator = _createForOfIteratorHelper$
|
|
26032
|
+
var _iterator = _createForOfIteratorHelper$6(column.iconMapping),
|
|
26031
26033
|
_step;
|
|
26032
26034
|
try {
|
|
26033
26035
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -26568,9 +26570,9 @@ var SMChart = function SMChart(props) {
|
|
|
26568
26570
|
|
|
26569
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; }
|
|
26570
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; }
|
|
26571
|
-
function _createForOfIteratorHelper$
|
|
26572
|
-
function _unsupportedIterableToArray$
|
|
26573
|
-
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; }
|
|
26574
26576
|
dayjs.extend(customParseFormat);
|
|
26575
26577
|
dayjs.extend(advancedFormat);
|
|
26576
26578
|
dayjs.extend(weekday);
|
|
@@ -26608,12 +26610,12 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
26608
26610
|
if (state.configuration.mergeFields && state.data) {
|
|
26609
26611
|
for (var i = 0; i < data.length; i++) {
|
|
26610
26612
|
var dt = flatten(data[i]);
|
|
26611
|
-
var _iterator = _createForOfIteratorHelper$
|
|
26613
|
+
var _iterator = _createForOfIteratorHelper$5(state.configuration.mergeFields),
|
|
26612
26614
|
_step;
|
|
26613
26615
|
try {
|
|
26614
26616
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
26615
26617
|
var merge = _step.value;
|
|
26616
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
26618
|
+
var _iterator2 = _createForOfIteratorHelper$5(merge.valueKeys),
|
|
26617
26619
|
_step2;
|
|
26618
26620
|
try {
|
|
26619
26621
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -26968,7 +26970,7 @@ function CopyButton(_ref3) {
|
|
|
26968
26970
|
case 0:
|
|
26969
26971
|
copyAction = state.configuration.copyAction;
|
|
26970
26972
|
if (((_state$configuration$21 = state.configuration.copyAction) === null || _state$configuration$21 === void 0 ? void 0 : _state$configuration$21.apiInterface) != undefined) {
|
|
26971
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
26973
|
+
_iterator3 = _createForOfIteratorHelper$5(state.selected);
|
|
26972
26974
|
try {
|
|
26973
26975
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
26974
26976
|
selectedRow = _step3.value;
|
|
@@ -27096,7 +27098,7 @@ function BulkAction(_ref6) {
|
|
|
27096
27098
|
var allowed = useMemo(function () {
|
|
27097
27099
|
// if isValue is not set check if all fields have the same value, otherwise check if all fields have the given isValue
|
|
27098
27100
|
if (!action.rule) return true;
|
|
27099
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
27101
|
+
var _iterator4 = _createForOfIteratorHelper$5(action.rule),
|
|
27100
27102
|
_step4;
|
|
27101
27103
|
try {
|
|
27102
27104
|
var _loop = function _loop() {
|
|
@@ -28433,9 +28435,9 @@ function objectHash (obj) {
|
|
|
28433
28435
|
return hash(hashable);
|
|
28434
28436
|
}
|
|
28435
28437
|
|
|
28436
|
-
function _createForOfIteratorHelper$
|
|
28437
|
-
function _unsupportedIterableToArray$
|
|
28438
|
-
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; }
|
|
28439
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; }
|
|
28440
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; }
|
|
28441
28443
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
|
@@ -28871,7 +28873,7 @@ function useTableData (_ref) {
|
|
|
28871
28873
|
})) === null || _newData$filter2 === void 0 ? void 0 : _newData$filter2[0];
|
|
28872
28874
|
}
|
|
28873
28875
|
mapToggle = {};
|
|
28874
|
-
_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 : []);
|
|
28875
28877
|
try {
|
|
28876
28878
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
28877
28879
|
field = _step.value;
|
|
@@ -29147,9 +29149,9 @@ function Table (props) {
|
|
|
29147
29149
|
});
|
|
29148
29150
|
}
|
|
29149
29151
|
|
|
29150
|
-
function _createForOfIteratorHelper$
|
|
29151
|
-
function _unsupportedIterableToArray$
|
|
29152
|
-
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; }
|
|
29153
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; }
|
|
29154
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; }
|
|
29155
29157
|
function useAGGrid (_ref) {
|
|
@@ -29273,7 +29275,7 @@ function useAGGrid (_ref) {
|
|
|
29273
29275
|
_context.next = 51;
|
|
29274
29276
|
break;
|
|
29275
29277
|
}
|
|
29276
|
-
_iterator = _createForOfIteratorHelper$
|
|
29278
|
+
_iterator = _createForOfIteratorHelper$3(configuration.mergerFields);
|
|
29277
29279
|
_context.prev = 9;
|
|
29278
29280
|
_iterator.s();
|
|
29279
29281
|
case 11:
|
|
@@ -29290,7 +29292,7 @@ function useAGGrid (_ref) {
|
|
|
29290
29292
|
}
|
|
29291
29293
|
merged = '';
|
|
29292
29294
|
first = true;
|
|
29293
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
29295
|
+
_iterator2 = _createForOfIteratorHelper$3(mergeEntry.fieldId);
|
|
29294
29296
|
_context.prev = 18;
|
|
29295
29297
|
_iterator2.s();
|
|
29296
29298
|
case 20:
|
|
@@ -29808,9 +29810,9 @@ var CustomText$1 = observer(CustomText);
|
|
|
29808
29810
|
|
|
29809
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; }
|
|
29810
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; }
|
|
29811
|
-
function _createForOfIteratorHelper$
|
|
29812
|
-
function _unsupportedIterableToArray$
|
|
29813
|
-
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; }
|
|
29814
29816
|
function useFilterBoxData (id) {
|
|
29815
29817
|
var root = useStore();
|
|
29816
29818
|
var _useMemo = useMemo(function () {
|
|
@@ -29858,7 +29860,7 @@ function useFilterBoxData (id) {
|
|
|
29858
29860
|
}
|
|
29859
29861
|
function reducer(state, actions) {
|
|
29860
29862
|
var ob = {};
|
|
29861
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29863
|
+
var _iterator = _createForOfIteratorHelper$2(actions),
|
|
29862
29864
|
_step;
|
|
29863
29865
|
try {
|
|
29864
29866
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29881,9 +29883,9 @@ function useFilterBoxData (id) {
|
|
|
29881
29883
|
};
|
|
29882
29884
|
}
|
|
29883
29885
|
|
|
29884
|
-
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; } } }; }
|
|
29885
|
-
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; } }
|
|
29886
|
-
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; }
|
|
29887
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; }
|
|
29888
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; }
|
|
29889
29891
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -30021,7 +30023,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
30021
30023
|
}
|
|
30022
30024
|
function getLabelByValue(targetValue, data) {
|
|
30023
30025
|
if (!data) return;
|
|
30024
|
-
var _iterator = _createForOfIteratorHelper(data),
|
|
30026
|
+
var _iterator = _createForOfIteratorHelper$1(data),
|
|
30025
30027
|
_step;
|
|
30026
30028
|
try {
|
|
30027
30029
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -31988,6 +31990,9 @@ function createTranslatedColumnConfig(field, headerName, languages) {
|
|
|
31988
31990
|
};
|
|
31989
31991
|
}
|
|
31990
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; }
|
|
31991
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; }
|
|
31992
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; }
|
|
31993
31998
|
|
|
@@ -32021,82 +32026,49 @@ var useTools = function useTools(_ref) {
|
|
|
32021
32026
|
serie = _ref.serie,
|
|
32022
32027
|
item = _ref.item,
|
|
32023
32028
|
setSerie = _ref.setSerie,
|
|
32024
|
-
setArticle = _ref.setArticle
|
|
32029
|
+
setArticle = _ref.setArticle,
|
|
32030
|
+
conditionalTools = _ref.conditionalTools;
|
|
32025
32031
|
var root = useStore();
|
|
32026
|
-
var
|
|
32027
|
-
|
|
32028
|
-
|
|
32029
|
-
|
|
32030
|
-
|
|
32031
|
-
|
|
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({
|
|
32032
32041
|
id: 'info',
|
|
32033
32042
|
name: 'Information',
|
|
32034
32043
|
type: 'InformationWindow',
|
|
32044
|
+
where: 'right',
|
|
32035
32045
|
parameters: {
|
|
32036
32046
|
contentItemCodex: codex
|
|
32037
32047
|
},
|
|
32038
32048
|
defaultOpen: open
|
|
32039
32049
|
});
|
|
32040
|
-
|
|
32041
|
-
|
|
32042
|
-
|
|
32043
|
-
|
|
32044
|
-
|
|
32045
|
-
|
|
32046
|
-
|
|
32047
|
-
tools[_key] = arguments[_key];
|
|
32048
|
-
}
|
|
32049
|
-
var newSecondaryTables = tools.map(function (tool) {
|
|
32050
|
-
return _objectSpread$m({
|
|
32051
|
-
startWidth: 300,
|
|
32052
|
-
defaultPinned: false,
|
|
32053
|
-
defaultOpen: false
|
|
32054
|
-
}, tool);
|
|
32055
|
-
});
|
|
32056
|
-
var rightSecondaryTables = newSecondaryTables.filter(function (table) {
|
|
32057
|
-
return table.where && table.where === 'right';
|
|
32058
|
-
});
|
|
32059
|
-
var bottomSecondaryTables = newSecondaryTables.filter(function (table) {
|
|
32060
|
-
return !table.where || table.where === 'bottom';
|
|
32061
|
-
});
|
|
32062
|
-
if (rightSecondaryTables.length > 0) {
|
|
32063
|
-
var _root$contentStore$ri;
|
|
32064
|
-
(_root$contentStore$ri = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri, _toConsumableArray(rightSecondaryTables));
|
|
32065
|
-
}
|
|
32066
|
-
if (bottomSecondaryTables.length > 0) {
|
|
32067
|
-
var _root$contentStore$bo;
|
|
32068
|
-
(_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
|
+
};
|
|
32069
32057
|
}
|
|
32070
|
-
|
|
32071
|
-
|
|
32072
|
-
|
|
32073
|
-
}, [root.contentStore.bottomToolBar.addTools]);
|
|
32074
|
-
var removeSecondaryTables = useCallback(function () {
|
|
32075
|
-
var _root$contentStore$bo2, _root$contentStore$ri2;
|
|
32076
|
-
for (var _len2 = arguments.length, ids = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
32077
|
-
ids[_key2] = arguments[_key2];
|
|
32078
|
-
}
|
|
32079
|
-
(_root$contentStore$bo2 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo2, ids);
|
|
32080
|
-
(_root$contentStore$ri2 = root.contentStore.rightToolBar).removeTools.apply(_root$contentStore$ri2, ids);
|
|
32081
|
-
setSecondaryTables(function (prev) {
|
|
32082
|
-
return prev.filter(function (table) {
|
|
32083
|
-
return !ids.includes(table.id);
|
|
32084
|
-
});
|
|
32085
|
-
});
|
|
32086
|
-
}, [root.contentStore.bottomToolBar.removeTools, root.contentStore.rightToolBar.removeTools]);
|
|
32087
|
-
var updateConfigurator = useCallback(function () {
|
|
32058
|
+
return undefined;
|
|
32059
|
+
}, [serie]);
|
|
32060
|
+
var createConfigurator = function createConfigurator() {
|
|
32088
32061
|
var parameters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
32089
|
-
|
|
32062
|
+
return createTool({
|
|
32090
32063
|
id: 'WYSIWYG',
|
|
32091
32064
|
name: 'Konfigurator',
|
|
32092
32065
|
type: 'Configurator',
|
|
32066
|
+
where: 'right',
|
|
32093
32067
|
parameters: _objectSpread$m({
|
|
32094
32068
|
catalogId: catalogId,
|
|
32095
32069
|
packageId: packageId,
|
|
32096
32070
|
isIDMData: !isApi2 ? '1' : undefined
|
|
32097
32071
|
}, parameters),
|
|
32098
|
-
startWidth: 600,
|
|
32099
|
-
defaultPinned: true,
|
|
32100
32072
|
elementProps: catalogId ? _objectSpread$m({
|
|
32101
32073
|
// open configurator for idm catalog
|
|
32102
32074
|
useIDMService: true,
|
|
@@ -32124,47 +32096,73 @@ var useTools = function useTools(_ref) {
|
|
|
32124
32096
|
initSerie: initSerie
|
|
32125
32097
|
} : {})
|
|
32126
32098
|
});
|
|
32127
|
-
}
|
|
32128
|
-
var
|
|
32129
|
-
|
|
32130
|
-
|
|
32131
|
-
|
|
32132
|
-
|
|
32133
|
-
};
|
|
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;
|
|
32134
32105
|
}
|
|
32135
|
-
|
|
32136
|
-
|
|
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
|
+
*/
|
|
32137
32116
|
useEffect(function () {
|
|
32138
|
-
var _root$contentStore$
|
|
32117
|
+
var _root$contentStore$ri, _root$contentStore$bo;
|
|
32139
32118
|
var tools = [];
|
|
32140
32119
|
if (catalogId || packageId) {
|
|
32141
|
-
|
|
32120
|
+
tools.push(createConfigurator());
|
|
32142
32121
|
}
|
|
32143
32122
|
if (mainInformationWindowCodex) {
|
|
32144
|
-
tools.push(
|
|
32145
|
-
|
|
32146
|
-
|
|
32147
|
-
|
|
32148
|
-
|
|
32149
|
-
|
|
32150
|
-
|
|
32151
|
-
|
|
32152
|
-
|
|
32123
|
+
tools.push(createInformationWindow(mainInformationWindowCodex, false));
|
|
32124
|
+
}
|
|
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();
|
|
32153
32139
|
}
|
|
32154
|
-
(_root$contentStore$
|
|
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
|
+
})));
|
|
32155
32146
|
return function () {
|
|
32156
|
-
var _root$contentStore$
|
|
32157
|
-
|
|
32158
|
-
|
|
32159
|
-
|
|
32160
|
-
}
|
|
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
|
+
})) || []));
|
|
32161
32161
|
};
|
|
32162
|
-
}, [mainInformationWindowCodex,
|
|
32162
|
+
}, [mainInformationWindowCodex, catalogId, packageId, conditionalTools]);
|
|
32163
32163
|
return {
|
|
32164
32164
|
updateConfigurator: updateConfigurator,
|
|
32165
|
-
|
|
32166
|
-
addSecondaryTables: addSecondaryTables,
|
|
32167
|
-
removeSecondaryTables: removeSecondaryTables
|
|
32165
|
+
updateInformationWindow: updateInformationWindow
|
|
32168
32166
|
};
|
|
32169
32167
|
};
|
|
32170
32168
|
|
|
@@ -37612,13 +37610,13 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
37612
37610
|
function InformationButton(_ref) {
|
|
37613
37611
|
var codex = _ref.codex;
|
|
37614
37612
|
var _useTools = useTools({}),
|
|
37615
|
-
|
|
37613
|
+
updateInformationWindow = _useTools.updateInformationWindow;
|
|
37616
37614
|
return /*#__PURE__*/jsx(Button, {
|
|
37617
37615
|
type: "text",
|
|
37618
37616
|
icon: /*#__PURE__*/jsx(InfoCircleOutlined$1, {}),
|
|
37619
37617
|
onClick: function onClick(e) {
|
|
37620
37618
|
e.stopPropagation();
|
|
37621
|
-
|
|
37619
|
+
updateInformationWindow(codex, true);
|
|
37622
37620
|
}
|
|
37623
37621
|
});
|
|
37624
37622
|
}
|
|
@@ -39284,34 +39282,26 @@ var TableSeries = observer(function () {
|
|
|
39284
39282
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
39285
39283
|
selectedSerie = _React$useState2[0],
|
|
39286
39284
|
setSelectedSerie = _React$useState2[1];
|
|
39287
|
-
|
|
39285
|
+
useTools({
|
|
39288
39286
|
mainInformationWindowCodex: 'IDM_SERIES_TABLE_INFO',
|
|
39289
39287
|
catalogId: catalogId,
|
|
39290
39288
|
serie: selectedGlobalSerie,
|
|
39291
|
-
setSerie: setGlobalSelectedSerie
|
|
39292
|
-
|
|
39293
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
39294
|
-
removeSecondaryTables = _useTools.removeSecondaryTables;
|
|
39295
|
-
useEffect(function () {
|
|
39296
|
-
if (selectedSerie !== null && selectedSerie !== void 0 && selectedSerie._id) {
|
|
39297
|
-
addSecondaryTables({
|
|
39289
|
+
setSerie: setGlobalSelectedSerie,
|
|
39290
|
+
conditionalTools: [{
|
|
39298
39291
|
id: 'items',
|
|
39299
39292
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableItems'),
|
|
39300
39293
|
elementComponent: Items$1,
|
|
39301
39294
|
elementProps: {
|
|
39302
39295
|
organizationId: organizationId,
|
|
39303
39296
|
selectedCatalog: selectedCatalog,
|
|
39304
|
-
selectedSerie: selectedSerie._id,
|
|
39297
|
+
selectedSerie: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id,
|
|
39305
39298
|
apiConfig: apiConfig
|
|
39299
|
+
},
|
|
39300
|
+
condition: function condition() {
|
|
39301
|
+
return (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id) !== undefined;
|
|
39306
39302
|
}
|
|
39307
|
-
}
|
|
39308
|
-
}
|
|
39309
|
-
removeSecondaryTables('items');
|
|
39310
|
-
}
|
|
39311
|
-
return function () {
|
|
39312
|
-
removeSecondaryTables('items');
|
|
39313
|
-
};
|
|
39314
|
-
}, [selectedSerie, t, organizationId, catalogId, apiConfig]);
|
|
39303
|
+
}]
|
|
39304
|
+
});
|
|
39315
39305
|
var applicationData = useMemo(function () {
|
|
39316
39306
|
return {
|
|
39317
39307
|
catalogId: catalogId,
|
|
@@ -39756,27 +39746,21 @@ var TableFeatures$1 = observer(function () {
|
|
|
39756
39746
|
var _useTools = useTools({
|
|
39757
39747
|
catalogId: catalogId,
|
|
39758
39748
|
setSerie: setSelectedSerie,
|
|
39759
|
-
setArticle: setSelectedItem
|
|
39760
|
-
|
|
39761
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
39762
|
-
updateConfigurator = _useTools.updateConfigurator,
|
|
39763
|
-
removeSecondaryTables = _useTools.removeSecondaryTables;
|
|
39764
|
-
useEffect(function () {
|
|
39765
|
-
if (selectedCatalog) {
|
|
39766
|
-
addSecondaryTables({
|
|
39749
|
+
setArticle: setSelectedItem,
|
|
39750
|
+
conditionalTools: [{
|
|
39767
39751
|
id: 'globalfeatures',
|
|
39768
39752
|
name: t('backoffice.menu.features.label.IDMGlobalFeatures'),
|
|
39769
39753
|
elementComponent: Features,
|
|
39770
39754
|
elementProps: {
|
|
39771
39755
|
readOnly: true
|
|
39772
39756
|
},
|
|
39773
|
-
where: 'right'
|
|
39774
|
-
|
|
39775
|
-
|
|
39776
|
-
|
|
39777
|
-
|
|
39778
|
-
}
|
|
39779
|
-
|
|
39757
|
+
where: 'right',
|
|
39758
|
+
condition: function condition() {
|
|
39759
|
+
return selectedCatalog !== undefined;
|
|
39760
|
+
}
|
|
39761
|
+
}]
|
|
39762
|
+
}),
|
|
39763
|
+
updateConfigurator = _useTools.updateConfigurator;
|
|
39780
39764
|
var ref = useRef(null);
|
|
39781
39765
|
var hooks = useMemo(function () {
|
|
39782
39766
|
return {
|
|
@@ -40112,33 +40096,25 @@ var TableFeatureClasses = observer(function () {
|
|
|
40112
40096
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
40113
40097
|
selectedFeatureClass = _React$useState2[0],
|
|
40114
40098
|
setSelectedFeatureClass = _React$useState2[1];
|
|
40115
|
-
|
|
40116
|
-
|
|
40117
|
-
|
|
40118
|
-
|
|
40119
|
-
|
|
40120
|
-
|
|
40121
|
-
|
|
40122
|
-
|
|
40123
|
-
|
|
40124
|
-
|
|
40125
|
-
|
|
40126
|
-
|
|
40127
|
-
|
|
40128
|
-
|
|
40129
|
-
|
|
40130
|
-
|
|
40131
|
-
|
|
40132
|
-
|
|
40133
|
-
|
|
40134
|
-
});
|
|
40135
|
-
} else {
|
|
40136
|
-
removeSecondaryTables('features');
|
|
40137
|
-
}
|
|
40138
|
-
return function () {
|
|
40139
|
-
removeSecondaryTables('features');
|
|
40140
|
-
};
|
|
40141
|
-
}, [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
|
+
});
|
|
40142
40118
|
var applicationData = useMemo(function () {
|
|
40143
40119
|
return {
|
|
40144
40120
|
catalogId: catalogId,
|
|
@@ -40910,13 +40886,6 @@ var TableDecisions = observer(function () {
|
|
|
40910
40886
|
apiConfig = _useModule.apiConfig,
|
|
40911
40887
|
setSelectedSerie = _useModule.setSelectedSerie,
|
|
40912
40888
|
setSelectedItem = _useModule.setSelectedItem;
|
|
40913
|
-
var _useTools = useTools({
|
|
40914
|
-
catalogId: catalogId,
|
|
40915
|
-
setSerie: setSelectedSerie,
|
|
40916
|
-
setArticle: setSelectedItem
|
|
40917
|
-
}),
|
|
40918
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
40919
|
-
removeSecondaryTables = _useTools.removeSecondaryTables;
|
|
40920
40889
|
var _React$useState = React.useState(),
|
|
40921
40890
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
40922
40891
|
selectedDecision = _React$useState2[0],
|
|
@@ -40928,26 +40897,25 @@ var TableDecisions = observer(function () {
|
|
|
40928
40897
|
var setNodeDataValue = useCallback(function (data) {
|
|
40929
40898
|
spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
|
|
40930
40899
|
}, [selectedNodeId]);
|
|
40931
|
-
|
|
40932
|
-
|
|
40933
|
-
|
|
40934
|
-
|
|
40935
|
-
|
|
40936
|
-
|
|
40937
|
-
|
|
40938
|
-
|
|
40939
|
-
|
|
40940
|
-
|
|
40941
|
-
|
|
40942
|
-
|
|
40943
|
-
|
|
40944
|
-
|
|
40945
|
-
|
|
40946
|
-
|
|
40947
|
-
|
|
40948
|
-
|
|
40949
|
-
|
|
40950
|
-
}, [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
|
+
});
|
|
40951
40919
|
var applicationData = useMemo(function () {
|
|
40952
40920
|
return {
|
|
40953
40921
|
catalogId: catalogId,
|
|
@@ -41138,11 +41106,39 @@ var TableDetailInfos = observer(function () {
|
|
|
41138
41106
|
apiConfig = _useModule.apiConfig,
|
|
41139
41107
|
setSelectedSerie = _useModule.setSelectedSerie,
|
|
41140
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];
|
|
41141
41113
|
useTools({
|
|
41142
41114
|
catalogId: catalogId,
|
|
41143
41115
|
setSerie: setSelectedSerie,
|
|
41144
|
-
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
|
+
}]
|
|
41145
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
|
+
}, []);
|
|
41146
41142
|
var applicationData = useMemo(function () {
|
|
41147
41143
|
return {
|
|
41148
41144
|
catalogId: catalogId,
|
|
@@ -41166,7 +41162,8 @@ var TableDetailInfos = observer(function () {
|
|
|
41166
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), {
|
|
41167
41163
|
field: 'url',
|
|
41168
41164
|
headerName: 'backoffice.idmCatalog.detailinfos.label.url',
|
|
41169
|
-
required: true
|
|
41165
|
+
required: true,
|
|
41166
|
+
cellDataType: 'media'
|
|
41170
41167
|
}, {
|
|
41171
41168
|
field: 'classification',
|
|
41172
41169
|
headerName: 'backoffice.idmCatalog.detailinfos.label.classification',
|
|
@@ -41272,6 +41269,7 @@ var TableDetailInfos = observer(function () {
|
|
|
41272
41269
|
})
|
|
41273
41270
|
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
41274
41271
|
gridId: 'crud-grid_detailinfos',
|
|
41272
|
+
hooks: hooks,
|
|
41275
41273
|
applicationData: applicationData,
|
|
41276
41274
|
configuration: configuration
|
|
41277
41275
|
})]
|
|
@@ -41538,33 +41536,25 @@ var TablePartlists = observer(function () {
|
|
|
41538
41536
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
41539
41537
|
selectedPartlist = _React$useState2[0],
|
|
41540
41538
|
setSelectedPartlist = _React$useState2[1];
|
|
41541
|
-
|
|
41542
|
-
|
|
41543
|
-
|
|
41544
|
-
|
|
41545
|
-
|
|
41546
|
-
|
|
41547
|
-
|
|
41548
|
-
|
|
41549
|
-
|
|
41550
|
-
|
|
41551
|
-
|
|
41552
|
-
|
|
41553
|
-
|
|
41554
|
-
|
|
41555
|
-
|
|
41556
|
-
|
|
41557
|
-
|
|
41558
|
-
|
|
41559
|
-
|
|
41560
|
-
});
|
|
41561
|
-
} else {
|
|
41562
|
-
removeSecondaryTables('partlistpos');
|
|
41563
|
-
}
|
|
41564
|
-
return function () {
|
|
41565
|
-
removeSecondaryTables('partlistpos');
|
|
41566
|
-
};
|
|
41567
|
-
}, [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
|
+
});
|
|
41568
41558
|
var applicationData = useMemo(function () {
|
|
41569
41559
|
return {
|
|
41570
41560
|
organizationId: organizationId,
|
|
@@ -42073,54 +42063,53 @@ var TablePriceFeatureGroups = observer(function () {
|
|
|
42073
42063
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
42074
42064
|
isPercentage = _React$useState6[0],
|
|
42075
42065
|
setIsPercentage = _React$useState6[1];
|
|
42076
|
-
var _useTools = useTools({
|
|
42077
|
-
catalogId: catalogId,
|
|
42078
|
-
setSerie: setSelectedSerie,
|
|
42079
|
-
setArticle: setSelectedItem
|
|
42080
|
-
}),
|
|
42081
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
42082
|
-
removeSecondaryTables = _useTools.removeSecondaryTables;
|
|
42083
42066
|
var setNodeDataValue = useCallback(function (data) {
|
|
42084
42067
|
var _spreadsheetRef$curre;
|
|
42085
42068
|
return (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 ? void 0 : _spreadsheetRef$curre.setNodeDataValue(selectedNodeId, data);
|
|
42086
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
|
+
});
|
|
42087
42106
|
useEffect(function () {
|
|
42088
42107
|
if (selectedPriceFeatureGroup !== null && selectedPriceFeatureGroup !== void 0 && selectedPriceFeatureGroup._id) {
|
|
42089
42108
|
var _root$contentStore$bo;
|
|
42090
|
-
addSecondaryTables({
|
|
42091
|
-
id: 'priceFeatureGroupFinishes',
|
|
42092
|
-
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroupFinishes'),
|
|
42093
|
-
elementComponent: PriceFeatureGroupFinishes,
|
|
42094
|
-
elementProps: {
|
|
42095
|
-
priceFeatureGroup: selectedPriceFeatureGroup,
|
|
42096
|
-
catalogId: catalogId,
|
|
42097
|
-
apiConfig: apiConfig,
|
|
42098
|
-
setNodeDataValue: setNodeDataValue,
|
|
42099
|
-
setIsPercentage: setIsPercentage
|
|
42100
|
-
},
|
|
42101
|
-
disabled: isPercentage === true
|
|
42102
|
-
}, {
|
|
42103
|
-
id: 'priceFeatureGroupPercentageSurcharge',
|
|
42104
|
-
name: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroupPercentageSurcharge'),
|
|
42105
|
-
elementComponent: PriceFeatureGroupPercentageSurcharge,
|
|
42106
|
-
elementProps: {
|
|
42107
|
-
priceFeatureGroup: selectedPriceFeatureGroup,
|
|
42108
|
-
catalogId: catalogId,
|
|
42109
|
-
apiConfig: apiConfig,
|
|
42110
|
-
setNodeDataValue: setNodeDataValue,
|
|
42111
|
-
setIsPercentage: setIsPercentage
|
|
42112
|
-
},
|
|
42113
|
-
disabled: isPercentage === false
|
|
42114
|
-
});
|
|
42115
42109
|
var openTool = (_root$contentStore$bo = root.contentStore.bottomToolBar.currentOpenTool) === null || _root$contentStore$bo === void 0 ? void 0 : _root$contentStore$bo.id;
|
|
42116
42110
|
root.contentStore.bottomToolBar.selectTool(isPercentage === true ? 'priceFeatureGroupPercentageSurcharge' : isPercentage === false ? 'priceFeatureGroupFinishes' : openTool !== null && openTool !== void 0 ? openTool : 'priceFeatureGroupFinishes');
|
|
42117
|
-
} else {
|
|
42118
|
-
removeSecondaryTables('priceFeatureGroupFinishes', 'priceFeatureGroupPercentageSurcharge');
|
|
42119
42111
|
}
|
|
42120
|
-
|
|
42121
|
-
removeSecondaryTables('priceFeatureGroupFinishes', 'priceFeatureGroupPercentageSurcharge');
|
|
42122
|
-
};
|
|
42123
|
-
}, [selectedPriceFeatureGroup, setNodeDataValue, isPercentage]);
|
|
42112
|
+
}, [selectedPriceFeatureGroup, isPercentage, root.contentStore.bottomToolBar]);
|
|
42124
42113
|
var applicationData = useMemo(function () {
|
|
42125
42114
|
return {
|
|
42126
42115
|
catalogId: catalogId,
|
|
@@ -42489,33 +42478,25 @@ var TableOptionGroups = observer(function () {
|
|
|
42489
42478
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
42490
42479
|
selectedOptionGroup = _React$useState2[0],
|
|
42491
42480
|
setSelectedOptionGroup = _React$useState2[1];
|
|
42492
|
-
|
|
42493
|
-
|
|
42494
|
-
|
|
42495
|
-
|
|
42496
|
-
|
|
42497
|
-
|
|
42498
|
-
|
|
42499
|
-
|
|
42500
|
-
|
|
42501
|
-
|
|
42502
|
-
|
|
42503
|
-
|
|
42504
|
-
|
|
42505
|
-
|
|
42506
|
-
|
|
42507
|
-
|
|
42508
|
-
|
|
42509
|
-
|
|
42510
|
-
|
|
42511
|
-
});
|
|
42512
|
-
} else {
|
|
42513
|
-
removeSecondaryTables('optionGroupOptions');
|
|
42514
|
-
}
|
|
42515
|
-
return function () {
|
|
42516
|
-
removeSecondaryTables('optionGroupOptions');
|
|
42517
|
-
};
|
|
42518
|
-
}, [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
|
+
});
|
|
42519
42500
|
var applicationData = useMemo(function () {
|
|
42520
42501
|
return {
|
|
42521
42502
|
catalogId: catalogId,
|
|
@@ -42746,30 +42727,23 @@ function TableCollections () {
|
|
|
42746
42727
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
42747
42728
|
selectedNodeId = _React$useState4[0],
|
|
42748
42729
|
setSelectedNodeId = _React$useState4[1];
|
|
42749
|
-
var _useTools = useTools({}),
|
|
42750
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
42751
|
-
removeSecondaryTables = _useTools.removeSecondaryTables;
|
|
42752
42730
|
var organizationId = root.dataStore.organizationId;
|
|
42753
42731
|
var apiConfig = root.configurationStore.apiConfig;
|
|
42754
|
-
|
|
42755
|
-
|
|
42756
|
-
|
|
42757
|
-
|
|
42758
|
-
|
|
42759
|
-
|
|
42760
|
-
|
|
42761
|
-
|
|
42762
|
-
|
|
42763
|
-
|
|
42764
|
-
|
|
42765
|
-
|
|
42766
|
-
|
|
42767
|
-
|
|
42768
|
-
|
|
42769
|
-
return function () {
|
|
42770
|
-
removeSecondaryTables('collectionMembers');
|
|
42771
|
-
};
|
|
42772
|
-
}, [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
|
+
});
|
|
42773
42747
|
var applicationData = useMemo(function () {
|
|
42774
42748
|
return {
|
|
42775
42749
|
organizationId: organizationId
|
|
@@ -43173,26 +43147,16 @@ var FileUploadWrapper = function FileUploadWrapper(_ref) {
|
|
|
43173
43147
|
var FileUploadOrders = observer(FileUploadWrapper);
|
|
43174
43148
|
|
|
43175
43149
|
function MediaItemRefTableModule (_ref) {
|
|
43176
|
-
var
|
|
43150
|
+
var mediaItemId = _ref.mediaItemId;
|
|
43177
43151
|
var root = useStore();
|
|
43178
43152
|
var _useTranslation = useTranslation(),
|
|
43179
43153
|
t = _useTranslation.t;
|
|
43180
|
-
var _React$useState = React.useState(),
|
|
43181
|
-
_React$useState2 = _slicedToArray(_React$useState, 2);
|
|
43182
|
-
_React$useState2[0];
|
|
43183
|
-
_React$useState2[1];
|
|
43184
|
-
var _React$useState3 = React.useState(),
|
|
43185
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2);
|
|
43186
|
-
_React$useState4[0];
|
|
43187
|
-
_React$useState4[1];
|
|
43188
|
-
var organizationId = root.dataStore.organizationId;
|
|
43189
43154
|
var apiConfig = root.configurationStore.apiConfig;
|
|
43190
43155
|
var applicationData = useMemo(function () {
|
|
43191
43156
|
return {
|
|
43192
|
-
|
|
43193
|
-
mediaItemId: mediaItem._id
|
|
43157
|
+
mediaItemId: mediaItemId
|
|
43194
43158
|
};
|
|
43195
|
-
}, [
|
|
43159
|
+
}, [mediaItemId]);
|
|
43196
43160
|
var apiInterface = useMemo(function () {
|
|
43197
43161
|
return {
|
|
43198
43162
|
read: apiConfig.mediaService + '/v1/mediaitems/${mediaItemId}/refs',
|
|
@@ -43207,15 +43171,17 @@ function MediaItemRefTableModule (_ref) {
|
|
|
43207
43171
|
floatingFilter: true,
|
|
43208
43172
|
colDef: [{
|
|
43209
43173
|
field: '_id',
|
|
43210
|
-
editable: false
|
|
43174
|
+
editable: false,
|
|
43175
|
+
cellDataType: 'objectId'
|
|
43211
43176
|
}, {
|
|
43212
43177
|
field: 'name',
|
|
43213
43178
|
editable: false
|
|
43214
43179
|
}, {
|
|
43215
43180
|
field: 'cdnUrl',
|
|
43216
|
-
editable: false
|
|
43181
|
+
editable: false,
|
|
43182
|
+
cellDataType: 'media'
|
|
43217
43183
|
}, {
|
|
43218
|
-
field: '
|
|
43184
|
+
field: 'functionType',
|
|
43219
43185
|
editable: false
|
|
43220
43186
|
}, {
|
|
43221
43187
|
field: 'created',
|
|
@@ -43268,35 +43234,34 @@ function MediaTableModule () {
|
|
|
43268
43234
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
43269
43235
|
selectedNodeId = _React$useState4[0],
|
|
43270
43236
|
setSelectedNodeId = _React$useState4[1];
|
|
43271
|
-
var _useTools = useTools({}),
|
|
43272
|
-
addSecondaryTables = _useTools.addSecondaryTables,
|
|
43273
|
-
removeSecondaryTables = _useTools.removeSecondaryTables;
|
|
43274
|
-
var organizationId = root.dataStore.organizationId;
|
|
43275
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
|
+
});
|
|
43276
43262
|
var applicationData = useMemo(function () {
|
|
43277
|
-
return {
|
|
43278
|
-
|
|
43279
|
-
};
|
|
43280
|
-
}, [organizationId]);
|
|
43281
|
-
useEffect(function () {
|
|
43282
|
-
if (selectedMedia !== null && selectedMedia !== void 0 && selectedMedia._id) {
|
|
43283
|
-
addSecondaryTables({
|
|
43284
|
-
id: 'mediaItemRefs',
|
|
43285
|
-
name: t('backoffice.menu.items.label.TableMediaRef'),
|
|
43286
|
-
elementComponent: MediaItemRefTableModule,
|
|
43287
|
-
elementProps: {
|
|
43288
|
-
mediaItem: selectedMedia,
|
|
43289
|
-
organizationId: organizationId,
|
|
43290
|
-
apiConfig: apiConfig
|
|
43291
|
-
}
|
|
43292
|
-
});
|
|
43293
|
-
} else {
|
|
43294
|
-
removeSecondaryTables('mediaItemRefs');
|
|
43295
|
-
}
|
|
43296
|
-
return function () {
|
|
43297
|
-
removeSecondaryTables('mediaItemRefs');
|
|
43298
|
-
};
|
|
43299
|
-
}, [selectedMedia]);
|
|
43263
|
+
return {};
|
|
43264
|
+
}, []);
|
|
43300
43265
|
var hooks = useMemo(function () {
|
|
43301
43266
|
return {
|
|
43302
43267
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -43324,15 +43289,34 @@ function MediaTableModule () {
|
|
|
43324
43289
|
floatingFilter: true,
|
|
43325
43290
|
colDef: [{
|
|
43326
43291
|
field: '_id',
|
|
43327
|
-
editable: false
|
|
43292
|
+
editable: false,
|
|
43293
|
+
cellDataType: 'objectId'
|
|
43328
43294
|
}, {
|
|
43329
43295
|
field: 'name',
|
|
43330
43296
|
editable: false
|
|
43331
43297
|
}, {
|
|
43332
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',
|
|
43333
43308
|
editable: false
|
|
43334
43309
|
}, {
|
|
43335
|
-
field: '
|
|
43310
|
+
field: 'mediaType',
|
|
43311
|
+
editable: false
|
|
43312
|
+
}, {
|
|
43313
|
+
field: 'storage',
|
|
43314
|
+
editable: false
|
|
43315
|
+
}, {
|
|
43316
|
+
field: 'fileSize',
|
|
43317
|
+
editable: false
|
|
43318
|
+
}, {
|
|
43319
|
+
field: 'hash',
|
|
43336
43320
|
editable: false
|
|
43337
43321
|
}, {
|
|
43338
43322
|
field: 'created',
|