@crystaldesign/diva-backoffice 26.9.0-rc.1 → 26.9.0-rc.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 +199 -142
- package/build/types/backoffice/src/store/RootStore.d.ts +4 -1
- package/build/types/backoffice/src/store/RootStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/utils/getColumnFilterProps.d.ts.map +1 -1
- package/build/types/backoffice/src/utils/isRelatedRoutePath.d.ts +8 -0
- package/build/types/backoffice/src/utils/isRelatedRoutePath.d.ts.map +1 -0
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -196,9 +196,9 @@ import { GoogleGenAI } from '@google/genai';
|
|
|
196
196
|
globalThis.process = { env:env };
|
|
197
197
|
})();
|
|
198
198
|
|
|
199
|
-
function _createForOfIteratorHelper$
|
|
200
|
-
function _unsupportedIterableToArray$
|
|
201
|
-
function _arrayLikeToArray$
|
|
199
|
+
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; } } }; }
|
|
200
|
+
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; } }
|
|
201
|
+
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; }
|
|
202
202
|
function ownKeys$1E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
203
203
|
function _objectSpread$1E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
204
204
|
var LOG$m = getLogger('Backoffice', 'ApplyMapping');
|
|
@@ -233,7 +233,7 @@ function applyMapping (_ref) {
|
|
|
233
233
|
function meetsCondition(map) {
|
|
234
234
|
if (!map.condition) return true;
|
|
235
235
|
var value = mappingData[map.condition.field];
|
|
236
|
-
var _iterator = _createForOfIteratorHelper$
|
|
236
|
+
var _iterator = _createForOfIteratorHelper$E(map.condition.values),
|
|
237
237
|
_step;
|
|
238
238
|
try {
|
|
239
239
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -312,7 +312,7 @@ function applyMapping (_ref) {
|
|
|
312
312
|
_url.href = _url.href.replace('&' + m.targetField + '=${' + m.targetField + '}', '');
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
315
|
+
var _iterator2 = _createForOfIteratorHelper$E(_url.searchParams.entries()),
|
|
316
316
|
_step2;
|
|
317
317
|
try {
|
|
318
318
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -14861,9 +14861,9 @@ function MenuLabel (_ref) {
|
|
|
14861
14861
|
});
|
|
14862
14862
|
}
|
|
14863
14863
|
|
|
14864
|
-
function _createForOfIteratorHelper$
|
|
14865
|
-
function _unsupportedIterableToArray$
|
|
14866
|
-
function _arrayLikeToArray$
|
|
14864
|
+
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; } } }; }
|
|
14865
|
+
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; } }
|
|
14866
|
+
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; }
|
|
14867
14867
|
function applyRule(_ref) {
|
|
14868
14868
|
var rules = _ref.rules,
|
|
14869
14869
|
data = _ref.data,
|
|
@@ -14872,7 +14872,7 @@ function applyRule(_ref) {
|
|
|
14872
14872
|
//if or we start with false until the first time some result is true
|
|
14873
14873
|
//if and we start with true until the frist time some result is false
|
|
14874
14874
|
var result = !or;
|
|
14875
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14875
|
+
var _iterator = _createForOfIteratorHelper$D(rules),
|
|
14876
14876
|
_step;
|
|
14877
14877
|
try {
|
|
14878
14878
|
var _loop = function _loop() {
|
|
@@ -14944,7 +14944,7 @@ function aplyRules(_ref2) {
|
|
|
14944
14944
|
if (!data || data.length == 0) return {
|
|
14945
14945
|
applied: false
|
|
14946
14946
|
};
|
|
14947
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
14947
|
+
var _iterator2 = _createForOfIteratorHelper$D(data),
|
|
14948
14948
|
_step2;
|
|
14949
14949
|
try {
|
|
14950
14950
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -15738,9 +15738,9 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
|
15738
15738
|
|
|
15739
15739
|
function ownKeys$1A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15740
15740
|
function _objectSpread$1A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15741
|
-
function _createForOfIteratorHelper$
|
|
15742
|
-
function _unsupportedIterableToArray$
|
|
15743
|
-
function _arrayLikeToArray$
|
|
15741
|
+
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; } } }; }
|
|
15742
|
+
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; } }
|
|
15743
|
+
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; }
|
|
15744
15744
|
var _default$6 = /*#__PURE__*/function () {
|
|
15745
15745
|
function _default(root) {
|
|
15746
15746
|
_classCallCheck(this, _default);
|
|
@@ -15777,7 +15777,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
15777
15777
|
var initKeys = this.root.navigationState.path == '' ? [] : this.keysFormPath(this._menu, this.root.navigationState.path);
|
|
15778
15778
|
var checkedKeys = [];
|
|
15779
15779
|
var currentMenu = this._menu;
|
|
15780
|
-
var _iterator = _createForOfIteratorHelper$
|
|
15780
|
+
var _iterator = _createForOfIteratorHelper$C(initKeys),
|
|
15781
15781
|
_step;
|
|
15782
15782
|
try {
|
|
15783
15783
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -15786,7 +15786,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
15786
15786
|
var level = currentMenu;
|
|
15787
15787
|
var lastResolved = void 0;
|
|
15788
15788
|
var chainOk = true;
|
|
15789
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
15789
|
+
var _iterator2 = _createForOfIteratorHelper$C(key),
|
|
15790
15790
|
_step2;
|
|
15791
15791
|
try {
|
|
15792
15792
|
var _loop = function _loop() {
|
|
@@ -17010,9 +17010,9 @@ var _default$3 = /*#__PURE__*/function () {
|
|
|
17010
17010
|
}]);
|
|
17011
17011
|
}();
|
|
17012
17012
|
|
|
17013
|
-
function _createForOfIteratorHelper$
|
|
17014
|
-
function _unsupportedIterableToArray$
|
|
17015
|
-
function _arrayLikeToArray$
|
|
17013
|
+
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; } } }; }
|
|
17014
|
+
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; } }
|
|
17015
|
+
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; }
|
|
17016
17016
|
var LOG$k = getLogger('Backoffice', 'DownloadStore');
|
|
17017
17017
|
var DownloadStore = /*#__PURE__*/function () {
|
|
17018
17018
|
function DownloadStore(_rootStore) {
|
|
@@ -17040,7 +17040,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
|
17040
17040
|
_context2.next = 23;
|
|
17041
17041
|
break;
|
|
17042
17042
|
}
|
|
17043
|
-
_iterator = _createForOfIteratorHelper$
|
|
17043
|
+
_iterator = _createForOfIteratorHelper$B(action.download);
|
|
17044
17044
|
_context2.prev = 8;
|
|
17045
17045
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
17046
17046
|
var _download$params, _data$fileFormat, _data$fileUrl;
|
|
@@ -17436,7 +17436,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
|
17436
17436
|
successCount = 0;
|
|
17437
17437
|
failedCount = 0;
|
|
17438
17438
|
promises = [];
|
|
17439
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
17439
|
+
_iterator2 = _createForOfIteratorHelper$B(props.data);
|
|
17440
17440
|
_context7.prev = 5;
|
|
17441
17441
|
_iterator2.s();
|
|
17442
17442
|
case 7:
|
|
@@ -17631,6 +17631,16 @@ var ContextStore = /*#__PURE__*/function () {
|
|
|
17631
17631
|
}]);
|
|
17632
17632
|
}();
|
|
17633
17633
|
|
|
17634
|
+
/**
|
|
17635
|
+
* Whether two router paths belong to the same route branch, i.e. they are equal or one is a sub route of the other
|
|
17636
|
+
* (e.g. `/admin/renderjobs` and its `/admin/renderjobs/renderapprove` sub route).
|
|
17637
|
+
*
|
|
17638
|
+
* Used to decide whether view state may survive a navigation.
|
|
17639
|
+
*/
|
|
17640
|
+
function isRelatedRoutePath(from, to) {
|
|
17641
|
+
return from === to || from.startsWith("".concat(to, "/")) || to.startsWith("".concat(from, "/"));
|
|
17642
|
+
}
|
|
17643
|
+
|
|
17634
17644
|
var _default$1 = /*#__PURE__*/function () {
|
|
17635
17645
|
function _default(actions, handler, i18n, navigate, navigationState) {
|
|
17636
17646
|
_classCallCheck(this, _default);
|
|
@@ -17648,7 +17658,10 @@ var _default$1 = /*#__PURE__*/function () {
|
|
|
17648
17658
|
_defineProperty(this, "showSnow", void 0);
|
|
17649
17659
|
_defineProperty(this, "translationService", undefined);
|
|
17650
17660
|
_defineProperty(this, "navigationState", void 0);
|
|
17651
|
-
/**
|
|
17661
|
+
/**
|
|
17662
|
+
* In-memory, per-table filter/sort/pagination/selection state (opt-in via `persistFilters`);
|
|
17663
|
+
* dropped as soon as the user navigates outside the table's own route branch.
|
|
17664
|
+
*/
|
|
17652
17665
|
_defineProperty(this, "_tableFilterStates", new Map());
|
|
17653
17666
|
_defineProperty(this, "error", void 0);
|
|
17654
17667
|
_defineProperty(this, "resetErrorBoundary", undefined);
|
|
@@ -17671,6 +17684,11 @@ var _default$1 = /*#__PURE__*/function () {
|
|
|
17671
17684
|
}, {
|
|
17672
17685
|
key: "updateNavigationState",
|
|
17673
17686
|
value: function updateNavigationState(navigationState) {
|
|
17687
|
+
// Persisted table state may only survive a trip into a sub route (renderjobs table ↔ RenderApprove);
|
|
17688
|
+
// navigating anywhere else resets filter, sortation, pagination and selection.
|
|
17689
|
+
if (!isRelatedRoutePath(this.navigationState.path, navigationState.path)) {
|
|
17690
|
+
this._tableFilterStates.clear();
|
|
17691
|
+
}
|
|
17674
17692
|
this.navigationState = navigationState;
|
|
17675
17693
|
}
|
|
17676
17694
|
}, {
|
|
@@ -18368,9 +18386,9 @@ var MediaItem = /*#__PURE__*/function () {
|
|
|
18368
18386
|
}]);
|
|
18369
18387
|
}();
|
|
18370
18388
|
|
|
18371
|
-
function _createForOfIteratorHelper$
|
|
18372
|
-
function _unsupportedIterableToArray$
|
|
18373
|
-
function _arrayLikeToArray$
|
|
18389
|
+
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; } } }; }
|
|
18390
|
+
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; } }
|
|
18391
|
+
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; }
|
|
18374
18392
|
function processFormMediaBeforeSave(_x, _x2, _x3) {
|
|
18375
18393
|
return _processFormMediaBeforeSave.apply(this, arguments);
|
|
18376
18394
|
}
|
|
@@ -18388,7 +18406,7 @@ function _processFormMediaBeforeSave() {
|
|
|
18388
18406
|
_context.next = 3;
|
|
18389
18407
|
return processItems(data, items, root);
|
|
18390
18408
|
case 3:
|
|
18391
|
-
_iterator = _createForOfIteratorHelper$
|
|
18409
|
+
_iterator = _createForOfIteratorHelper$A(removedMedias);
|
|
18392
18410
|
_context.prev = 4;
|
|
18393
18411
|
_iterator.s();
|
|
18394
18412
|
case 6:
|
|
@@ -18430,7 +18448,7 @@ function _processItems() {
|
|
|
18430
18448
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
18431
18449
|
while (1) switch (_context2.prev = _context2.next) {
|
|
18432
18450
|
case 0:
|
|
18433
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
18451
|
+
_iterator2 = _createForOfIteratorHelper$A(items);
|
|
18434
18452
|
_context2.prev = 1;
|
|
18435
18453
|
_iterator2.s();
|
|
18436
18454
|
case 3:
|
|
@@ -18552,9 +18570,9 @@ function getData$1(id, data) {
|
|
|
18552
18570
|
}
|
|
18553
18571
|
}
|
|
18554
18572
|
|
|
18555
|
-
function _createForOfIteratorHelper$
|
|
18556
|
-
function _unsupportedIterableToArray$
|
|
18557
|
-
function _arrayLikeToArray$
|
|
18573
|
+
function _createForOfIteratorHelper$z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
18574
|
+
function _unsupportedIterableToArray$z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$z(r, a) : void 0; } }
|
|
18575
|
+
function _arrayLikeToArray$z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18558
18576
|
function ownKeys$1x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18559
18577
|
function _objectSpread$1x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18560
18578
|
function toNamePath$2(name) {
|
|
@@ -18685,7 +18703,7 @@ function useFormData (_ref) {
|
|
|
18685
18703
|
setSelectedItems = _useState14[1];
|
|
18686
18704
|
var _onLoadFields = function onLoadFields(data) {
|
|
18687
18705
|
var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : selectedItems;
|
|
18688
|
-
var _iterator = _createForOfIteratorHelper$
|
|
18706
|
+
var _iterator = _createForOfIteratorHelper$z(items),
|
|
18689
18707
|
_step;
|
|
18690
18708
|
try {
|
|
18691
18709
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -19008,7 +19026,7 @@ function useFormData (_ref) {
|
|
|
19008
19026
|
};
|
|
19009
19027
|
var getItem = function getItem(id) {
|
|
19010
19028
|
var items = selectedItems;
|
|
19011
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
19029
|
+
var _iterator2 = _createForOfIteratorHelper$z(items),
|
|
19012
19030
|
_step2;
|
|
19013
19031
|
try {
|
|
19014
19032
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -19184,7 +19202,7 @@ function useFormData (_ref) {
|
|
|
19184
19202
|
return _getDynamicValue.apply(this, arguments);
|
|
19185
19203
|
};
|
|
19186
19204
|
items = selectedItems !== null && selectedItems !== void 0 ? selectedItems : configuration.items;
|
|
19187
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
19205
|
+
_iterator4 = _createForOfIteratorHelper$z(items);
|
|
19188
19206
|
_context6.prev = 4;
|
|
19189
19207
|
_iterator4.s();
|
|
19190
19208
|
case 6:
|
|
@@ -19300,7 +19318,7 @@ function useFormData (_ref) {
|
|
|
19300
19318
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
19301
19319
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19302
19320
|
case 0:
|
|
19303
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
19321
|
+
_iterator3 = _createForOfIteratorHelper$z(items);
|
|
19304
19322
|
_context3.prev = 1;
|
|
19305
19323
|
_iterator3.s();
|
|
19306
19324
|
case 3:
|
|
@@ -19958,15 +19976,15 @@ var InputComponent = function InputComponent(_ref, ref) {
|
|
|
19958
19976
|
};
|
|
19959
19977
|
var InputComponent$1 = observer(/*#__PURE__*/React.forwardRef(InputComponent));
|
|
19960
19978
|
|
|
19961
|
-
function _createForOfIteratorHelper$
|
|
19962
|
-
function _unsupportedIterableToArray$
|
|
19963
|
-
function _arrayLikeToArray$
|
|
19979
|
+
function _createForOfIteratorHelper$y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
19980
|
+
function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$y(r, a) : void 0; } }
|
|
19981
|
+
function _arrayLikeToArray$y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
19964
19982
|
function getCombinedValues(data, pattern) {
|
|
19965
19983
|
if (!pattern || !data) {
|
|
19966
19984
|
return data;
|
|
19967
19985
|
}
|
|
19968
19986
|
var value = pattern;
|
|
19969
|
-
var _iterator = _createForOfIteratorHelper$
|
|
19987
|
+
var _iterator = _createForOfIteratorHelper$y(pattern.matchAll(/\$\{(.*?)\}/g)),
|
|
19970
19988
|
_step;
|
|
19971
19989
|
try {
|
|
19972
19990
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -21206,9 +21224,9 @@ function SelectClientRelationCatalog (_ref) {
|
|
|
21206
21224
|
});
|
|
21207
21225
|
}
|
|
21208
21226
|
|
|
21209
|
-
function _createForOfIteratorHelper$
|
|
21210
|
-
function _unsupportedIterableToArray$
|
|
21211
|
-
function _arrayLikeToArray$
|
|
21227
|
+
function _createForOfIteratorHelper$x(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$x(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
21228
|
+
function _unsupportedIterableToArray$x(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$x(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$x(r, a) : void 0; } }
|
|
21229
|
+
function _arrayLikeToArray$x(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21212
21230
|
function ownKeys$1s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21213
21231
|
function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21214
21232
|
function useSelectData (_ref) {
|
|
@@ -21464,7 +21482,7 @@ function useSelectData (_ref) {
|
|
|
21464
21482
|
}
|
|
21465
21483
|
emails = initData;
|
|
21466
21484
|
optionByValue = new Map();
|
|
21467
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
21485
|
+
_iterator2 = _createForOfIteratorHelper$x(emails);
|
|
21468
21486
|
_context4.prev = 12;
|
|
21469
21487
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
21470
21488
|
var email, list, opt;
|
|
@@ -21531,7 +21549,7 @@ function useSelectData (_ref) {
|
|
|
21531
21549
|
}
|
|
21532
21550
|
keys = initData;
|
|
21533
21551
|
_optionByValue = new Map();
|
|
21534
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
21552
|
+
_iterator3 = _createForOfIteratorHelper$x(keys);
|
|
21535
21553
|
_context4.prev = 35;
|
|
21536
21554
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
21537
21555
|
var key, list, opt;
|
|
@@ -21759,7 +21777,7 @@ function useSelectData (_ref) {
|
|
|
21759
21777
|
var verifySelection = function verifySelection(opt) {
|
|
21760
21778
|
if (disabledConfig == undefined) return [];
|
|
21761
21779
|
var _missingFields = [];
|
|
21762
|
-
var _iterator = _createForOfIteratorHelper$
|
|
21780
|
+
var _iterator = _createForOfIteratorHelper$x(disabledConfig),
|
|
21763
21781
|
_step;
|
|
21764
21782
|
try {
|
|
21765
21783
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -22972,9 +22990,9 @@ function FormSlider(_ref) {
|
|
|
22972
22990
|
});
|
|
22973
22991
|
}
|
|
22974
22992
|
|
|
22975
|
-
function _createForOfIteratorHelper$
|
|
22976
|
-
function _unsupportedIterableToArray$
|
|
22977
|
-
function _arrayLikeToArray$
|
|
22993
|
+
function _createForOfIteratorHelper$w(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$w(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
22994
|
+
function _unsupportedIterableToArray$w(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$w(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0; } }
|
|
22995
|
+
function _arrayLikeToArray$w(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22978
22996
|
function ownKeys$1o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22979
22997
|
function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22980
22998
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName, formName) {
|
|
@@ -23089,7 +23107,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
23089
23107
|
mappingData: state.data,
|
|
23090
23108
|
callback: function callback(data) {
|
|
23091
23109
|
if (!item.callbackMapping) return;
|
|
23092
|
-
var _iterator = _createForOfIteratorHelper$
|
|
23110
|
+
var _iterator = _createForOfIteratorHelper$w(item.callbackMapping),
|
|
23093
23111
|
_step;
|
|
23094
23112
|
try {
|
|
23095
23113
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -23339,9 +23357,9 @@ function isReadonly(item, data) {
|
|
|
23339
23357
|
|
|
23340
23358
|
function ownKeys$1n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23341
23359
|
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23342
|
-
function _createForOfIteratorHelper$
|
|
23343
|
-
function _unsupportedIterableToArray$
|
|
23344
|
-
function _arrayLikeToArray$
|
|
23360
|
+
function _createForOfIteratorHelper$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
23361
|
+
function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0; } }
|
|
23362
|
+
function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
23345
23363
|
var Presets = function Presets(_ref) {
|
|
23346
23364
|
var state = _ref.state,
|
|
23347
23365
|
apiHandler = _ref.apiHandler,
|
|
@@ -23376,7 +23394,7 @@ var Presets = function Presets(_ref) {
|
|
|
23376
23394
|
if (state.selectedItems == undefined) return;
|
|
23377
23395
|
setIsModalVisible(false);
|
|
23378
23396
|
var names = [];
|
|
23379
|
-
var _iterator = _createForOfIteratorHelper$
|
|
23397
|
+
var _iterator = _createForOfIteratorHelper$v(state.selectedItems),
|
|
23380
23398
|
_step;
|
|
23381
23399
|
try {
|
|
23382
23400
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -23934,9 +23952,9 @@ var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
|
|
23934
23952
|
|
|
23935
23953
|
function ownKeys$1l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23936
23954
|
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23937
|
-
function _createForOfIteratorHelper$
|
|
23938
|
-
function _unsupportedIterableToArray$
|
|
23939
|
-
function _arrayLikeToArray$
|
|
23955
|
+
function _createForOfIteratorHelper$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
23956
|
+
function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
|
|
23957
|
+
function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
23940
23958
|
function useRoleSelectorData (_ref) {
|
|
23941
23959
|
var userId = _ref.userId,
|
|
23942
23960
|
id = _ref.id;
|
|
@@ -24093,7 +24111,7 @@ function useRoleSelectorData (_ref) {
|
|
|
24093
24111
|
} else {
|
|
24094
24112
|
var internalOptions = options;
|
|
24095
24113
|
var organizationList = [];
|
|
24096
|
-
var _iterator = _createForOfIteratorHelper$
|
|
24114
|
+
var _iterator = _createForOfIteratorHelper$u(selected),
|
|
24097
24115
|
_step;
|
|
24098
24116
|
try {
|
|
24099
24117
|
var _loop = function _loop() {
|
|
@@ -24228,7 +24246,7 @@ function useRoleSelectorData (_ref) {
|
|
|
24228
24246
|
while (1) switch (_context5.prev = _context5.next) {
|
|
24229
24247
|
case 0:
|
|
24230
24248
|
setLoading(true);
|
|
24231
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
24249
|
+
_iterator2 = _createForOfIteratorHelper$u(addedRoles);
|
|
24232
24250
|
_context5.prev = 2;
|
|
24233
24251
|
_iterator2.s();
|
|
24234
24252
|
case 4:
|
|
@@ -24237,7 +24255,7 @@ function useRoleSelectorData (_ref) {
|
|
|
24237
24255
|
break;
|
|
24238
24256
|
}
|
|
24239
24257
|
role = _step2.value;
|
|
24240
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
24258
|
+
_iterator4 = _createForOfIteratorHelper$u(role.organizations);
|
|
24241
24259
|
_context5.prev = 7;
|
|
24242
24260
|
_iterator4.s();
|
|
24243
24261
|
case 9:
|
|
@@ -24277,7 +24295,7 @@ function useRoleSelectorData (_ref) {
|
|
|
24277
24295
|
_iterator2.f();
|
|
24278
24296
|
return _context5.finish(30);
|
|
24279
24297
|
case 33:
|
|
24280
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
24298
|
+
_iterator3 = _createForOfIteratorHelper$u(removedRoles);
|
|
24281
24299
|
_context5.prev = 34;
|
|
24282
24300
|
_iterator3.s();
|
|
24283
24301
|
case 36:
|
|
@@ -24286,7 +24304,7 @@ function useRoleSelectorData (_ref) {
|
|
|
24286
24304
|
break;
|
|
24287
24305
|
}
|
|
24288
24306
|
_role = _step3.value;
|
|
24289
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
24307
|
+
_iterator5 = _createForOfIteratorHelper$u(_role.organizations);
|
|
24290
24308
|
_context5.prev = 39;
|
|
24291
24309
|
_iterator5.s();
|
|
24292
24310
|
case 41:
|
|
@@ -24363,7 +24381,7 @@ function _updateRoles() {
|
|
|
24363
24381
|
return fetchUserRoles(apiHandler, userId, currentOrganization);
|
|
24364
24382
|
case 3:
|
|
24365
24383
|
userRoles = _context7.sent;
|
|
24366
|
-
_iterator6 = _createForOfIteratorHelper$
|
|
24384
|
+
_iterator6 = _createForOfIteratorHelper$u(roles);
|
|
24367
24385
|
_context7.prev = 5;
|
|
24368
24386
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
24369
24387
|
var _removedRole$organiza3;
|
|
@@ -24701,9 +24719,9 @@ styleInject(css_248z$J);
|
|
|
24701
24719
|
|
|
24702
24720
|
function ownKeys$1k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24703
24721
|
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24704
|
-
function _createForOfIteratorHelper$
|
|
24705
|
-
function _unsupportedIterableToArray$
|
|
24706
|
-
function _arrayLikeToArray$
|
|
24722
|
+
function _createForOfIteratorHelper$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24723
|
+
function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(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$t(r, a) : void 0; } }
|
|
24724
|
+
function _arrayLikeToArray$t(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; }
|
|
24707
24725
|
function generateCSV(_x, _x2) {
|
|
24708
24726
|
return _generateCSV.apply(this, arguments);
|
|
24709
24727
|
}
|
|
@@ -24733,7 +24751,7 @@ function _generateCSV() {
|
|
|
24733
24751
|
data = res.data;
|
|
24734
24752
|
count += res.data.length;
|
|
24735
24753
|
total = res.total;
|
|
24736
|
-
_iterator = _createForOfIteratorHelper$
|
|
24754
|
+
_iterator = _createForOfIteratorHelper$t(data);
|
|
24737
24755
|
_context2.prev = 10;
|
|
24738
24756
|
_iterator.s();
|
|
24739
24757
|
case 12:
|
|
@@ -24743,7 +24761,7 @@ function _generateCSV() {
|
|
|
24743
24761
|
}
|
|
24744
24762
|
parent = _step.value;
|
|
24745
24763
|
line = [];
|
|
24746
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
24764
|
+
_iterator2 = _createForOfIteratorHelper$t(exportParams.fields);
|
|
24747
24765
|
try {
|
|
24748
24766
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
24749
24767
|
field = _step2.value;
|
|
@@ -24886,9 +24904,9 @@ function _downloadFile() {
|
|
|
24886
24904
|
|
|
24887
24905
|
function ownKeys$1j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24888
24906
|
function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24889
|
-
function _createForOfIteratorHelper$
|
|
24890
|
-
function _unsupportedIterableToArray$
|
|
24891
|
-
function _arrayLikeToArray$
|
|
24907
|
+
function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24908
|
+
function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
|
|
24909
|
+
function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24892
24910
|
var deletedObjects = [];
|
|
24893
24911
|
var addedObjects = [];
|
|
24894
24912
|
|
|
@@ -25013,7 +25031,7 @@ function useRelationSelectorData (_ref) {
|
|
|
25013
25031
|
});
|
|
25014
25032
|
roles = [];
|
|
25015
25033
|
filter = {};
|
|
25016
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
25034
|
+
_iterator3 = _createForOfIteratorHelper$s(configuration.search.fields);
|
|
25017
25035
|
try {
|
|
25018
25036
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
25019
25037
|
searchField = _step3.value;
|
|
@@ -25160,7 +25178,7 @@ function useRelationSelectorData (_ref) {
|
|
|
25160
25178
|
filteredItems.push(data === null || data === void 0 ? void 0 : data._id);
|
|
25161
25179
|
}
|
|
25162
25180
|
}
|
|
25163
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
25181
|
+
_iterator4 = _createForOfIteratorHelper$s(addedObjects);
|
|
25164
25182
|
_context3.prev = 7;
|
|
25165
25183
|
_iterator4.s();
|
|
25166
25184
|
case 9:
|
|
@@ -25297,7 +25315,7 @@ function useRelationSelectorData (_ref) {
|
|
|
25297
25315
|
return;
|
|
25298
25316
|
}
|
|
25299
25317
|
});
|
|
25300
|
-
var _iterator = _createForOfIteratorHelper$
|
|
25318
|
+
var _iterator = _createForOfIteratorHelper$s(activeItems),
|
|
25301
25319
|
_step;
|
|
25302
25320
|
try {
|
|
25303
25321
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -25427,7 +25445,7 @@ function useRelationSelectorData (_ref) {
|
|
|
25427
25445
|
function mapToCascaderData(data) {
|
|
25428
25446
|
var options = [];
|
|
25429
25447
|
var tempCascaderData = [];
|
|
25430
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
25448
|
+
var _iterator2 = _createForOfIteratorHelper$s(data),
|
|
25431
25449
|
_step2;
|
|
25432
25450
|
try {
|
|
25433
25451
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -25511,9 +25529,9 @@ function useRelationSelectorData (_ref) {
|
|
|
25511
25529
|
|
|
25512
25530
|
function ownKeys$1i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25513
25531
|
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25514
|
-
function _createForOfIteratorHelper$
|
|
25515
|
-
function _unsupportedIterableToArray$
|
|
25516
|
-
function _arrayLikeToArray$
|
|
25532
|
+
function _createForOfIteratorHelper$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(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; } } }; }
|
|
25533
|
+
function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(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(r, a) : void 0; } }
|
|
25534
|
+
function _arrayLikeToArray$r(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; }
|
|
25517
25535
|
function resolveActionErrorText(action, t) {
|
|
25518
25536
|
if (!action.errorText) return undefined;
|
|
25519
25537
|
return t(action.errorText);
|
|
@@ -25549,7 +25567,7 @@ function ActionButton (_ref) {
|
|
|
25549
25567
|
};
|
|
25550
25568
|
var disable = false;
|
|
25551
25569
|
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
25552
|
-
var _iterator = _createForOfIteratorHelper$
|
|
25570
|
+
var _iterator = _createForOfIteratorHelper$r(ruleData !== null && ruleData !== void 0 ? ruleData : data),
|
|
25553
25571
|
_step;
|
|
25554
25572
|
try {
|
|
25555
25573
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -25646,7 +25664,7 @@ function ActionButton (_ref) {
|
|
|
25646
25664
|
_context.next = 20;
|
|
25647
25665
|
break;
|
|
25648
25666
|
}
|
|
25649
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
25667
|
+
_iterator2 = _createForOfIteratorHelper$r(action.switchValues);
|
|
25650
25668
|
try {
|
|
25651
25669
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
25652
25670
|
element = _step2.value;
|
|
@@ -25709,7 +25727,7 @@ function ActionButton (_ref) {
|
|
|
25709
25727
|
switch (action.actionType) {
|
|
25710
25728
|
case 'SwitchButton':
|
|
25711
25729
|
var switchLabel;
|
|
25712
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
25730
|
+
var _iterator3 = _createForOfIteratorHelper$r(action.switchLable),
|
|
25713
25731
|
_step3;
|
|
25714
25732
|
try {
|
|
25715
25733
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -25819,12 +25837,12 @@ function A(props) {
|
|
|
25819
25837
|
return /*#__PURE__*/jsx("a", _objectSpread$1i({}, props));
|
|
25820
25838
|
}
|
|
25821
25839
|
|
|
25822
|
-
function _createForOfIteratorHelper$
|
|
25823
|
-
function _unsupportedIterableToArray$
|
|
25824
|
-
function _arrayLikeToArray$
|
|
25840
|
+
function _createForOfIteratorHelper$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(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; } } }; }
|
|
25841
|
+
function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(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$q(r, a) : void 0; } }
|
|
25842
|
+
function _arrayLikeToArray$q(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; }
|
|
25825
25843
|
function filter$1(input, getActiveItem, filterFields) {
|
|
25826
25844
|
var filter = {};
|
|
25827
|
-
var _iterator = _createForOfIteratorHelper$
|
|
25845
|
+
var _iterator = _createForOfIteratorHelper$q(filterFields),
|
|
25828
25846
|
_step;
|
|
25829
25847
|
try {
|
|
25830
25848
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -27715,9 +27733,9 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
|
27715
27733
|
};
|
|
27716
27734
|
var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
27717
27735
|
|
|
27718
|
-
function _createForOfIteratorHelper$
|
|
27719
|
-
function _unsupportedIterableToArray$
|
|
27720
|
-
function _arrayLikeToArray$
|
|
27736
|
+
function _createForOfIteratorHelper$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(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; } } }; }
|
|
27737
|
+
function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(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$p(r, a) : void 0; } }
|
|
27738
|
+
function _arrayLikeToArray$p(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; }
|
|
27721
27739
|
function ownKeys$1c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27722
27740
|
function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27723
27741
|
function useDescriptions (_ref) {
|
|
@@ -27813,7 +27831,7 @@ function _getDisplayData() {
|
|
|
27813
27831
|
while (1) switch (_context4.prev = _context4.next) {
|
|
27814
27832
|
case 0:
|
|
27815
27833
|
displayData = _objectSpread$1c({}, data);
|
|
27816
|
-
_iterator = _createForOfIteratorHelper$
|
|
27834
|
+
_iterator = _createForOfIteratorHelper$p(items);
|
|
27817
27835
|
_context4.prev = 2;
|
|
27818
27836
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
27819
27837
|
var item, itemWithMappingData, apiHandler, response, mappingData;
|
|
@@ -27929,9 +27947,9 @@ var DescriptionWrapper = function DescriptionWrapper(_ref) {
|
|
|
27929
27947
|
};
|
|
27930
27948
|
var Description = observer(DescriptionWrapper);
|
|
27931
27949
|
|
|
27932
|
-
function _createForOfIteratorHelper$
|
|
27933
|
-
function _unsupportedIterableToArray$
|
|
27934
|
-
function _arrayLikeToArray$
|
|
27950
|
+
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; } } }; }
|
|
27951
|
+
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; } }
|
|
27952
|
+
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; }
|
|
27935
27953
|
var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
27936
27954
|
var id = _ref.id;
|
|
27937
27955
|
var _useDivaCore = useDivaCore(),
|
|
@@ -27992,7 +28010,7 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
|
27992
28010
|
case 0:
|
|
27993
28011
|
setLoading(true);
|
|
27994
28012
|
_context.prev = 1;
|
|
27995
|
-
_iterator = _createForOfIteratorHelper$
|
|
28013
|
+
_iterator = _createForOfIteratorHelper$o(organizations);
|
|
27996
28014
|
_context.prev = 3;
|
|
27997
28015
|
_iterator.s();
|
|
27998
28016
|
case 5:
|
|
@@ -28626,9 +28644,9 @@ function BooleanCell (_ref) {
|
|
|
28626
28644
|
}
|
|
28627
28645
|
}
|
|
28628
28646
|
|
|
28629
|
-
function _createForOfIteratorHelper$
|
|
28630
|
-
function _unsupportedIterableToArray$
|
|
28631
|
-
function _arrayLikeToArray$
|
|
28647
|
+
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; } } }; }
|
|
28648
|
+
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; } }
|
|
28649
|
+
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; }
|
|
28632
28650
|
function StringCell (_ref) {
|
|
28633
28651
|
var children = _ref.children,
|
|
28634
28652
|
column = _ref.column,
|
|
@@ -28746,7 +28764,7 @@ function matchesColorCondition(record, value, operation, field, onValue) {
|
|
|
28746
28764
|
}
|
|
28747
28765
|
function getColor(column, record, value) {
|
|
28748
28766
|
if (column.color && record) {
|
|
28749
|
-
var _iterator = _createForOfIteratorHelper$
|
|
28767
|
+
var _iterator = _createForOfIteratorHelper$n(column.color),
|
|
28750
28768
|
_step;
|
|
28751
28769
|
try {
|
|
28752
28770
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -28941,9 +28959,9 @@ function DropdownCell (_ref) {
|
|
|
28941
28959
|
}
|
|
28942
28960
|
}
|
|
28943
28961
|
|
|
28944
|
-
function _createForOfIteratorHelper$
|
|
28945
|
-
function _unsupportedIterableToArray$
|
|
28946
|
-
function _arrayLikeToArray$
|
|
28962
|
+
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; } } }; }
|
|
28963
|
+
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; } }
|
|
28964
|
+
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; }
|
|
28947
28965
|
function MediaViewerCell (_ref) {
|
|
28948
28966
|
var children = _ref.children,
|
|
28949
28967
|
column = _ref.column;
|
|
@@ -28967,7 +28985,7 @@ function MediaViewerCell (_ref) {
|
|
|
28967
28985
|
if (column.imageEnding && !url.endsWith('glb')) previewUrl = url.endsWith('.jpg') ? url.replace('.jpg', '') + column.imageEnding + '.jpg' : url.replace('.png', '') + column.imageEnding + '.png';
|
|
28968
28986
|
if (column.includedFileEndings) {
|
|
28969
28987
|
var supported = false;
|
|
28970
|
-
var _iterator = _createForOfIteratorHelper$
|
|
28988
|
+
var _iterator = _createForOfIteratorHelper$m(column.includedFileEndings),
|
|
28971
28989
|
_step;
|
|
28972
28990
|
try {
|
|
28973
28991
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29312,15 +29330,15 @@ function MediaItemViewerCell (_ref) {
|
|
|
29312
29330
|
});
|
|
29313
29331
|
}
|
|
29314
29332
|
|
|
29315
|
-
function _createForOfIteratorHelper$
|
|
29316
|
-
function _unsupportedIterableToArray$
|
|
29317
|
-
function _arrayLikeToArray$
|
|
29333
|
+
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; } } }; }
|
|
29334
|
+
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; } }
|
|
29335
|
+
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; }
|
|
29318
29336
|
function IconCell (_ref) {
|
|
29319
29337
|
var children = _ref.children,
|
|
29320
29338
|
column = _ref.column;
|
|
29321
29339
|
if (!column) throw new Error('icon column doesnt support editing');
|
|
29322
29340
|
function resolveIconMapping(value) {
|
|
29323
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29341
|
+
var _iterator = _createForOfIteratorHelper$l(column.iconMapping),
|
|
29324
29342
|
_step;
|
|
29325
29343
|
try {
|
|
29326
29344
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29892,9 +29910,9 @@ var SMChart = function SMChart(props) {
|
|
|
29892
29910
|
}) : /*#__PURE__*/jsx(Fragment, {});
|
|
29893
29911
|
};
|
|
29894
29912
|
|
|
29895
|
-
function _createForOfIteratorHelper$
|
|
29896
|
-
function _unsupportedIterableToArray$
|
|
29897
|
-
function _arrayLikeToArray$
|
|
29913
|
+
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; } } }; }
|
|
29914
|
+
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; } }
|
|
29915
|
+
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; }
|
|
29898
29916
|
function ownKeys$17(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29899
29917
|
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29900
29918
|
|
|
@@ -30005,7 +30023,7 @@ var useTools = function useTools(_ref) {
|
|
|
30005
30023
|
if (mainInformationWindowCodex) {
|
|
30006
30024
|
tools.push(createInformationWindow(mainInformationWindowCodex, false));
|
|
30007
30025
|
}
|
|
30008
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30026
|
+
var _iterator = _createForOfIteratorHelper$k(conditionalTools || []),
|
|
30009
30027
|
_step;
|
|
30010
30028
|
try {
|
|
30011
30029
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30065,9 +30083,9 @@ function InformationButton(_ref) {
|
|
|
30065
30083
|
|
|
30066
30084
|
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; }
|
|
30067
30085
|
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; }
|
|
30068
|
-
function _createForOfIteratorHelper$
|
|
30069
|
-
function _unsupportedIterableToArray$
|
|
30070
|
-
function _arrayLikeToArray$
|
|
30086
|
+
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; } } }; }
|
|
30087
|
+
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; } }
|
|
30088
|
+
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; }
|
|
30071
30089
|
dayjs.extend(customParseFormat);
|
|
30072
30090
|
dayjs.extend(advancedFormat);
|
|
30073
30091
|
dayjs.extend(weekday);
|
|
@@ -30131,12 +30149,12 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
30131
30149
|
if (state.configuration.mergeFields && state.data) {
|
|
30132
30150
|
for (var i = 0; i < data.length; i++) {
|
|
30133
30151
|
var dt = flatten(data[i]);
|
|
30134
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30152
|
+
var _iterator = _createForOfIteratorHelper$j(state.configuration.mergeFields),
|
|
30135
30153
|
_step;
|
|
30136
30154
|
try {
|
|
30137
30155
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
30138
30156
|
var merge = _step.value;
|
|
30139
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
30157
|
+
var _iterator2 = _createForOfIteratorHelper$j(merge.valueKeys),
|
|
30140
30158
|
_step2;
|
|
30141
30159
|
try {
|
|
30142
30160
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -30556,7 +30574,7 @@ function CopyButton(_ref5) {
|
|
|
30556
30574
|
case 0:
|
|
30557
30575
|
copyAction = state.configuration.copyAction;
|
|
30558
30576
|
if (((_state$configuration$20 = state.configuration.copyAction) === null || _state$configuration$20 === void 0 ? void 0 : _state$configuration$20.apiInterface) != undefined) {
|
|
30559
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
30577
|
+
_iterator3 = _createForOfIteratorHelper$j(state.selected);
|
|
30560
30578
|
try {
|
|
30561
30579
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
30562
30580
|
selectedRow = _step3.value;
|
|
@@ -30687,7 +30705,7 @@ function BulkAction(_ref8) {
|
|
|
30687
30705
|
var allowed = useMemo(function () {
|
|
30688
30706
|
// if isValue is not set check if all fields have the same value, otherwise check if all fields have the given isValue
|
|
30689
30707
|
if (!action.rule) return true;
|
|
30690
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
30708
|
+
var _iterator4 = _createForOfIteratorHelper$j(action.rule),
|
|
30691
30709
|
_step4;
|
|
30692
30710
|
try {
|
|
30693
30711
|
var _loop = function _loop() {
|
|
@@ -30910,6 +30928,9 @@ function SelectionText(_ref10) {
|
|
|
30910
30928
|
});
|
|
30911
30929
|
}
|
|
30912
30930
|
|
|
30931
|
+
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; } } }; }
|
|
30932
|
+
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; } }
|
|
30933
|
+
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; }
|
|
30913
30934
|
function ownKeys$15(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30914
30935
|
function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$15(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$15(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30915
30936
|
function getColumnFilterProps (_ref) {
|
|
@@ -30938,16 +30959,26 @@ function getColumnFilterProps (_ref) {
|
|
|
30938
30959
|
throw Error("".concat(filter, " is not a valid filter type."));
|
|
30939
30960
|
}
|
|
30940
30961
|
}
|
|
30962
|
+
|
|
30963
|
+
/** Rebuilds the picker values from the confirmed filter keys (`[from, 'gte', to, 'lte']`) so a restored filter is displayed. */
|
|
30964
|
+
var getIntervalFromSelectedKeys = function getIntervalFromSelectedKeys(selectedKeys) {
|
|
30965
|
+
var interval = {};
|
|
30966
|
+
for (var i = 0; i < selectedKeys.length; i += 2) {
|
|
30967
|
+
if (selectedKeys[i + 1] === 'gte') interval.from = Number(selectedKeys[i]);
|
|
30968
|
+
if (selectedKeys[i + 1] === 'lte') interval.to = Number(selectedKeys[i]);
|
|
30969
|
+
}
|
|
30970
|
+
return interval;
|
|
30971
|
+
};
|
|
30941
30972
|
var intervalProps = function intervalProps(title) {
|
|
30942
30973
|
return {
|
|
30943
30974
|
filterDropdown: function filterDropdown(_ref2) {
|
|
30944
30975
|
var setSelectedKeys = _ref2.setSelectedKeys,
|
|
30976
|
+
selectedKeys = _ref2.selectedKeys,
|
|
30945
30977
|
confirm = _ref2.confirm,
|
|
30946
30978
|
clearFilters = _ref2.clearFilters,
|
|
30947
30979
|
visible = _ref2.visible;
|
|
30948
|
-
var _useState = useState({
|
|
30949
|
-
|
|
30950
|
-
to: undefined
|
|
30980
|
+
var _useState = useState(function () {
|
|
30981
|
+
return getIntervalFromSelectedKeys(selectedKeys);
|
|
30951
30982
|
}),
|
|
30952
30983
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30953
30984
|
interval = _useState2[0],
|
|
@@ -30992,13 +31023,12 @@ var intervalProps = function intervalProps(title) {
|
|
|
30992
31023
|
children: [/*#__PURE__*/jsxs("span", {
|
|
30993
31024
|
children: [t('filter.date.from'), ":"]
|
|
30994
31025
|
}), /*#__PURE__*/jsx(DatePicker, {
|
|
31026
|
+
value: interval.from ? dayjs(interval.from) : null,
|
|
30995
31027
|
onChange: function onChange(value) {
|
|
30996
|
-
|
|
30997
|
-
|
|
30998
|
-
|
|
30999
|
-
|
|
31000
|
-
});
|
|
31001
|
-
}
|
|
31028
|
+
return setInterval({
|
|
31029
|
+
from: value ? Math.floor(value.valueOf()) : undefined,
|
|
31030
|
+
to: interval.to
|
|
31031
|
+
});
|
|
31002
31032
|
},
|
|
31003
31033
|
style: {
|
|
31004
31034
|
flexGrow: 1,
|
|
@@ -31015,13 +31045,12 @@ var intervalProps = function intervalProps(title) {
|
|
|
31015
31045
|
children: [/*#__PURE__*/jsxs("span", {
|
|
31016
31046
|
children: [t('filter.date.to2'), ":"]
|
|
31017
31047
|
}), /*#__PURE__*/jsx(DatePicker, {
|
|
31048
|
+
value: interval.to ? dayjs(interval.to) : null,
|
|
31018
31049
|
onChange: function onChange(value) {
|
|
31019
|
-
|
|
31020
|
-
|
|
31021
|
-
|
|
31022
|
-
|
|
31023
|
-
});
|
|
31024
|
-
}
|
|
31050
|
+
return setInterval({
|
|
31051
|
+
to: value ? Math.floor(value.valueOf()) : undefined,
|
|
31052
|
+
from: interval.from
|
|
31053
|
+
});
|
|
31025
31054
|
},
|
|
31026
31055
|
style: {
|
|
31027
31056
|
flexGrow: 1,
|
|
@@ -31047,6 +31076,7 @@ var intervalProps = function intervalProps(title) {
|
|
|
31047
31076
|
children: "Filter"
|
|
31048
31077
|
}), /*#__PURE__*/jsx(Button, {
|
|
31049
31078
|
onClick: function onClick() {
|
|
31079
|
+
setInterval({});
|
|
31050
31080
|
clearFilters === null || clearFilters === void 0 || clearFilters();
|
|
31051
31081
|
confirm();
|
|
31052
31082
|
},
|
|
@@ -31084,7 +31114,7 @@ var advancedProps = function advancedProps(title) {
|
|
|
31084
31114
|
children: /*#__PURE__*/jsxs(Space, {
|
|
31085
31115
|
direction: "vertical",
|
|
31086
31116
|
children: [/*#__PURE__*/jsxs(Select, {
|
|
31087
|
-
|
|
31117
|
+
value: selectedKeys[1] === undefined ? 'contains' : String(selectedKeys[1]),
|
|
31088
31118
|
style: {
|
|
31089
31119
|
width: 188,
|
|
31090
31120
|
display: 'block'
|
|
@@ -31307,20 +31337,50 @@ var selectProps = function selectProps(title, filter) {
|
|
|
31307
31337
|
}
|
|
31308
31338
|
};
|
|
31309
31339
|
};
|
|
31340
|
+
|
|
31341
|
+
/**
|
|
31342
|
+
* Rebuilds the values shown in the Select from the confirmed filter keys (`[...values, 'in']`) so a restored filter is
|
|
31343
|
+
* displayed. Values of a grouped option are collapsed back into that option.
|
|
31344
|
+
*/
|
|
31345
|
+
var getMultiSelectDisplayValues = function getMultiSelectDisplayValues(selectedKeys, filter) {
|
|
31346
|
+
var values = selectedKeys[selectedKeys.length - 1] === 'in' ? selectedKeys.slice(0, -1) : selectedKeys;
|
|
31347
|
+
var displayValues = [];
|
|
31348
|
+
var _iterator = _createForOfIteratorHelper$i(values),
|
|
31349
|
+
_step;
|
|
31350
|
+
try {
|
|
31351
|
+
var _loop = function _loop() {
|
|
31352
|
+
var _filter$find;
|
|
31353
|
+
var value = _step.value;
|
|
31354
|
+
var option = (_filter$find = filter.find(function (f) {
|
|
31355
|
+
return f.value == value;
|
|
31356
|
+
})) !== null && _filter$find !== void 0 ? _filter$find : filter.find(function (f) {
|
|
31357
|
+
var _f$groupedValues;
|
|
31358
|
+
return (_f$groupedValues = f.groupedValues) === null || _f$groupedValues === void 0 ? void 0 : _f$groupedValues.some(function (g) {
|
|
31359
|
+
return g == value;
|
|
31360
|
+
});
|
|
31361
|
+
});
|
|
31362
|
+
if (option && !displayValues.includes(option.value)) displayValues.push(option.value);
|
|
31363
|
+
};
|
|
31364
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
31365
|
+
_loop();
|
|
31366
|
+
}
|
|
31367
|
+
} catch (err) {
|
|
31368
|
+
_iterator.e(err);
|
|
31369
|
+
} finally {
|
|
31370
|
+
_iterator.f();
|
|
31371
|
+
}
|
|
31372
|
+
return displayValues;
|
|
31373
|
+
};
|
|
31310
31374
|
var multiSelectProps = function multiSelectProps(title, filter) {
|
|
31311
31375
|
return {
|
|
31312
31376
|
filterDropdown: function filterDropdown(_ref6) {
|
|
31313
|
-
var setSelectedKeys = _ref6.setSelectedKeys
|
|
31314
|
-
_ref6.selectedKeys
|
|
31315
|
-
|
|
31377
|
+
var setSelectedKeys = _ref6.setSelectedKeys,
|
|
31378
|
+
selectedKeys = _ref6.selectedKeys,
|
|
31379
|
+
confirm = _ref6.confirm,
|
|
31316
31380
|
clearFilters = _ref6.clearFilters;
|
|
31317
31381
|
_ref6.visible;
|
|
31318
31382
|
var _useTranslation3 = useTranslation(),
|
|
31319
31383
|
t = _useTranslation3.t;
|
|
31320
|
-
var _useState3 = useState([]),
|
|
31321
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
31322
|
-
displayselectedValues = _useState4[0],
|
|
31323
|
-
setDisplaySelectedvalues = _useState4[1];
|
|
31324
31384
|
var options = [];
|
|
31325
31385
|
options = filter.map(function (f) {
|
|
31326
31386
|
return _objectSpread$15(_objectSpread$15({}, f), {}, {
|
|
@@ -31328,9 +31388,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
31328
31388
|
});
|
|
31329
31389
|
});
|
|
31330
31390
|
var handleChange = function handleChange(value) {
|
|
31331
|
-
setDisplaySelectedvalues(value);
|
|
31332
31391
|
var filterValues = [];
|
|
31333
|
-
var
|
|
31392
|
+
var _loop2 = function _loop2(i) {
|
|
31334
31393
|
var filterVal = filter.find(function (f) {
|
|
31335
31394
|
return f.value == value[i] && f.groupedValues;
|
|
31336
31395
|
});
|
|
@@ -31341,7 +31400,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
31341
31400
|
}
|
|
31342
31401
|
};
|
|
31343
31402
|
for (var i = 0; i < value.length; i++) {
|
|
31344
|
-
|
|
31403
|
+
_loop2(i);
|
|
31345
31404
|
}
|
|
31346
31405
|
var selKeys = [].concat(filterValues, ['in']);
|
|
31347
31406
|
setSelectedKeys(selKeys.length ? selKeys : []);
|
|
@@ -31358,11 +31417,10 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
31358
31417
|
children: /*#__PURE__*/jsx(Select, {
|
|
31359
31418
|
mode: "multiple",
|
|
31360
31419
|
allowClear: true,
|
|
31361
|
-
value:
|
|
31420
|
+
value: getMultiSelectDisplayValues(selectedKeys, filter),
|
|
31362
31421
|
style: {
|
|
31363
31422
|
width: 188
|
|
31364
31423
|
},
|
|
31365
|
-
defaultValue: [],
|
|
31366
31424
|
onChange: handleChange,
|
|
31367
31425
|
options: options
|
|
31368
31426
|
})
|
|
@@ -31380,7 +31438,6 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
31380
31438
|
}
|
|
31381
31439
|
}), /*#__PURE__*/jsx(Button, {
|
|
31382
31440
|
onClick: function onClick() {
|
|
31383
|
-
setDisplaySelectedvalues([]);
|
|
31384
31441
|
clearFilters === null || clearFilters === void 0 || clearFilters();
|
|
31385
31442
|
confirm();
|
|
31386
31443
|
},
|
|
@@ -28,7 +28,10 @@ export default class {
|
|
|
28
28
|
searchParams: URLSearchParams;
|
|
29
29
|
path: string;
|
|
30
30
|
};
|
|
31
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* In-memory, per-table filter/sort/pagination/selection state (opt-in via `persistFilters`);
|
|
33
|
+
* dropped as soon as the user navigates outside the table's own route branch.
|
|
34
|
+
*/
|
|
32
35
|
private _tableFilterStates;
|
|
33
36
|
error?: any;
|
|
34
37
|
resetErrorBoundary?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/RootStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAoB,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,YAAY,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"RootStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/RootStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAoB,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO;aA0BM,IAAI,EAAE,IAAI;aACV,QAAQ,EAAE,gBAAgB;IA1BrC,WAAW,cAAC;IACZ,UAAU,aAAC;IACX,YAAY,eAAC;IACb,SAAS,YAAC;IACV,kBAAkB,qBAAC;IACnB,aAAa,gBAAC;IACd,YAAY,eAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAa;IACnD,eAAe,EAAE;QAAE,YAAY,EAAE,eAAe,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAExE;;;OAGG;IACH,OAAO,CAAC,kBAAkB,CAA8B;IAEjD,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAa;gBAGjD,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,YAAY,EACL,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,gBAAgB,EAC1C,eAAe,EAAE;QAAE,YAAY,EAAE,eAAe,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAclE,cAAc,CAAC,OAAO,EAAE,YAAY;IAIpC,qBAAqB,CAAC,eAAe,EAAE;QAAE,YAAY,EAAE,eAAe,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAStF,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAI5D,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;IAI/C,QAAQ,CAAC,KAAK,EAAE,MAAM;IAItB,IAAI,CAAC,yEAEJ;IAED,qBAAqB,CAAC,kBAAkB,CAAC,EAAE,MAAM,IAAI;IAIrD,cAAc,CAAC,GAAG,EAAE,gBAAgB,GAAG,QAAQ,GAAG,WAAW,GAAG,wBAAwB,GAAG,MAAM;IAuBjG;;;;;OAKG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY;CAkBtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getColumnFilterProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/utils/getColumnFilterProps.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getColumnFilterProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/utils/getColumnFilterProps.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,MAwBjD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether two router paths belong to the same route branch, i.e. they are equal or one is a sub route of the other
|
|
3
|
+
* (e.g. `/admin/renderjobs` and its `/admin/renderjobs/renderapprove` sub route).
|
|
4
|
+
*
|
|
5
|
+
* Used to decide whether view state may survive a navigation.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isRelatedRoutePath(from: string, to: string): boolean;
|
|
8
|
+
//# sourceMappingURL=isRelatedRoutePath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isRelatedRoutePath.d.ts","sourceRoot":"","sources":["../../../../../src/utils/isRelatedRoutePath.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,WAE1D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "26.9.0-rc.
|
|
3
|
+
"version": "26.9.0-rc.2",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ant-design/icons": "6.1.0",
|
|
17
17
|
"@babel/runtime": "7.24.7",
|
|
18
|
-
"@crystaldesign/content-box": "26.9.0-rc.
|
|
19
|
-
"@crystaldesign/content-item": "26.9.0-rc.
|
|
20
|
-
"@crystaldesign/diva-core": "26.9.0-rc.
|
|
21
|
-
"@crystaldesign/diva-utils": "26.9.0-rc.
|
|
22
|
-
"@crystaldesign/media-upload": "26.9.0-rc.
|
|
23
|
-
"@crystaldesign/rtf-editor": "26.9.0-rc.
|
|
24
|
-
"@crystaldesign/spreadsheet": "26.9.0-rc.
|
|
18
|
+
"@crystaldesign/content-box": "26.9.0-rc.2",
|
|
19
|
+
"@crystaldesign/content-item": "26.9.0-rc.2",
|
|
20
|
+
"@crystaldesign/diva-core": "26.9.0-rc.2",
|
|
21
|
+
"@crystaldesign/diva-utils": "26.9.0-rc.2",
|
|
22
|
+
"@crystaldesign/media-upload": "26.9.0-rc.2",
|
|
23
|
+
"@crystaldesign/rtf-editor": "26.9.0-rc.2",
|
|
24
|
+
"@crystaldesign/spreadsheet": "26.9.0-rc.2",
|
|
25
25
|
"@dnd-kit/core": "^6.1.0",
|
|
26
26
|
"@dnd-kit/sortable": "^8.0.0",
|
|
27
27
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
},
|
|
57
57
|
"module": "build/esm/index.js",
|
|
58
58
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "61864787a844fa074538f4fef3ac02268e6ac3d5"
|
|
60
60
|
}
|