@crystaldesign/diva-backoffice 24.4.0-beta.9 → 24.4.0-rc.1
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
CHANGED
|
@@ -17,7 +17,6 @@ import _typeof from '@babel/runtime/helpers/typeof';
|
|
|
17
17
|
import flat, { flatten, unflatten } from 'flat';
|
|
18
18
|
import { compare } from 'fast-json-patch';
|
|
19
19
|
import { io } from 'socket.io-client';
|
|
20
|
-
import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
|
|
21
20
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
22
21
|
import { toJS, makeAutoObservable, observable, action, makeObservable } from 'mobx';
|
|
23
22
|
import merge from 'deepmerge';
|
|
@@ -510,7 +509,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
510
509
|
this._socketUrl = configuration.apiInterface.socket;
|
|
511
510
|
}
|
|
512
511
|
}
|
|
513
|
-
_createClass(_default, [{
|
|
512
|
+
return _createClass(_default, [{
|
|
514
513
|
key: "canUpdate",
|
|
515
514
|
get: function get() {
|
|
516
515
|
return !!this._updateUrl;
|
|
@@ -1086,18 +1085,17 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1086
1085
|
return this._socket;
|
|
1087
1086
|
}
|
|
1088
1087
|
}]);
|
|
1089
|
-
return _default;
|
|
1090
1088
|
}();
|
|
1091
1089
|
|
|
1092
1090
|
function _callSuper$7(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1093
1091
|
function _isNativeReflectConstruct$7() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$7 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
1094
1092
|
var _default$c = /*#__PURE__*/function (_ApiHandler) {
|
|
1095
|
-
_inherits(_default, _ApiHandler);
|
|
1096
1093
|
function _default(configuration, root) {
|
|
1097
1094
|
_classCallCheck(this, _default);
|
|
1098
1095
|
return _callSuper$7(this, _default, [configuration, root]);
|
|
1099
1096
|
}
|
|
1100
|
-
|
|
1097
|
+
_inherits(_default, _ApiHandler);
|
|
1098
|
+
return _createClass(_default, [{
|
|
1101
1099
|
key: "update",
|
|
1102
1100
|
value: function () {
|
|
1103
1101
|
var _update = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
|
|
@@ -1176,7 +1174,6 @@ var _default$c = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1176
1174
|
return create;
|
|
1177
1175
|
}()
|
|
1178
1176
|
}]);
|
|
1179
|
-
return _default;
|
|
1180
1177
|
}(_default$d);
|
|
1181
1178
|
|
|
1182
1179
|
function ownKeys$C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -1184,13 +1181,12 @@ function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
1184
1181
|
function _callSuper$6(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$6() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1185
1182
|
function _isNativeReflectConstruct$6() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$6 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
1186
1183
|
var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
1187
|
-
_inherits(_default, _ApiHandler);
|
|
1188
1184
|
function _default(configuration, root) {
|
|
1189
1185
|
var _this;
|
|
1190
1186
|
_classCallCheck(this, _default);
|
|
1191
1187
|
_this = _callSuper$6(this, _default, [configuration, root]);
|
|
1192
|
-
_defineProperty(
|
|
1193
|
-
_defineProperty(
|
|
1188
|
+
_defineProperty(_this, "refApiHander", void 0);
|
|
1189
|
+
_defineProperty(_this, "targetApiHandler", void 0);
|
|
1194
1190
|
_this.refApiHander = new _default$d({
|
|
1195
1191
|
apiInterface: configuration.refApiInterface,
|
|
1196
1192
|
type: 'MediaUpload'
|
|
@@ -1203,7 +1199,8 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1203
1199
|
}
|
|
1204
1200
|
return _this;
|
|
1205
1201
|
}
|
|
1206
|
-
|
|
1202
|
+
_inherits(_default, _ApiHandler);
|
|
1203
|
+
return _createClass(_default, [{
|
|
1207
1204
|
key: "canRead",
|
|
1208
1205
|
get: function get() {
|
|
1209
1206
|
var _this$targetApiHandle;
|
|
@@ -1360,20 +1357,18 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1360
1357
|
return _delete;
|
|
1361
1358
|
}()
|
|
1362
1359
|
}]);
|
|
1363
|
-
return _default;
|
|
1364
1360
|
}(_default$d);
|
|
1365
1361
|
|
|
1366
1362
|
function _callSuper$5(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1367
1363
|
function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
1368
1364
|
var _default$a = /*#__PURE__*/function (_ApiHandler) {
|
|
1369
|
-
_inherits(_default, _ApiHandler);
|
|
1370
1365
|
function _default(configuration, rootStore) {
|
|
1371
1366
|
var _this;
|
|
1372
1367
|
_classCallCheck(this, _default);
|
|
1373
1368
|
_this = _callSuper$5(this, _default, [configuration, rootStore]);
|
|
1374
|
-
_defineProperty(
|
|
1375
|
-
_defineProperty(
|
|
1376
|
-
_defineProperty(
|
|
1369
|
+
_defineProperty(_this, "searchApiHandler", void 0);
|
|
1370
|
+
_defineProperty(_this, "splittedApiHandler", void 0);
|
|
1371
|
+
_defineProperty(_this, "getSplitted", function (mapping, mappingData, filterServerSide) {
|
|
1377
1372
|
return _this.splittedApiHandler.readList(mapping, mappingData, filterServerSide);
|
|
1378
1373
|
});
|
|
1379
1374
|
_this.searchApiHandler = new _default$d({
|
|
@@ -1384,7 +1379,8 @@ var _default$a = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1384
1379
|
}, rootStore);
|
|
1385
1380
|
return _this;
|
|
1386
1381
|
}
|
|
1387
|
-
|
|
1382
|
+
_inherits(_default, _ApiHandler);
|
|
1383
|
+
return _createClass(_default, [{
|
|
1388
1384
|
key: "getRelations",
|
|
1389
1385
|
value: function getRelations(mapping, mappingData, filterServerSide) {
|
|
1390
1386
|
return this.searchApiHandler.readList(mapping, mappingData, filterServerSide);
|
|
@@ -1395,19 +1391,17 @@ var _default$a = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1395
1391
|
return this.splittedApiHandler["delete"](id, mapping, mappingData);
|
|
1396
1392
|
}
|
|
1397
1393
|
}]);
|
|
1398
|
-
return _default;
|
|
1399
1394
|
}(_default$d);
|
|
1400
1395
|
|
|
1401
1396
|
function _callSuper$4(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1402
1397
|
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
1403
1398
|
var _default$9 = /*#__PURE__*/function (_ApiHandler) {
|
|
1404
|
-
_inherits(_default, _ApiHandler);
|
|
1405
1399
|
function _default(configuration, rootStore) {
|
|
1406
1400
|
var _this;
|
|
1407
1401
|
_classCallCheck(this, _default);
|
|
1408
1402
|
_this = _callSuper$4(this, _default, [configuration, rootStore]);
|
|
1409
|
-
_defineProperty(
|
|
1410
|
-
_defineProperty(
|
|
1403
|
+
_defineProperty(_this, "organizationApiHandler", void 0);
|
|
1404
|
+
_defineProperty(_this, "rolesApiHandler", void 0);
|
|
1411
1405
|
_this.organizationApiHandler = new _default$d({
|
|
1412
1406
|
apiInterface: configuration.organizationApiInterface
|
|
1413
1407
|
}, rootStore);
|
|
@@ -1416,7 +1410,8 @@ var _default$9 = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1416
1410
|
}, rootStore);
|
|
1417
1411
|
return _this;
|
|
1418
1412
|
}
|
|
1419
|
-
|
|
1413
|
+
_inherits(_default, _ApiHandler);
|
|
1414
|
+
return _createClass(_default, [{
|
|
1420
1415
|
key: "getOrganizations",
|
|
1421
1416
|
value: function getOrganizations(mapping, mappingData, filterServerSide) {
|
|
1422
1417
|
return this.organizationApiHandler.readList(mapping, mappingData, filterServerSide);
|
|
@@ -1451,22 +1446,21 @@ var _default$9 = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1451
1446
|
});
|
|
1452
1447
|
}
|
|
1453
1448
|
}]);
|
|
1454
|
-
return _default;
|
|
1455
1449
|
}(_default$d);
|
|
1456
1450
|
|
|
1457
1451
|
function _callSuper$3(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1458
1452
|
function _isNativeReflectConstruct$3() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
1459
1453
|
var _default$8 = /*#__PURE__*/function (_ApiHandler) {
|
|
1460
|
-
_inherits(_default, _ApiHandler);
|
|
1461
1454
|
function _default(configuration, rootStore) {
|
|
1462
1455
|
var _this;
|
|
1463
1456
|
_classCallCheck(this, _default);
|
|
1464
1457
|
_this = _callSuper$3(this, _default, [configuration, rootStore]);
|
|
1465
|
-
_defineProperty(
|
|
1458
|
+
_defineProperty(_this, "formApiHandler", void 0);
|
|
1466
1459
|
_this.formApiHandler = rootStore.getApiHandler(configuration.formId);
|
|
1467
1460
|
return _this;
|
|
1468
1461
|
}
|
|
1469
|
-
|
|
1462
|
+
_inherits(_default, _ApiHandler);
|
|
1463
|
+
return _createClass(_default, [{
|
|
1470
1464
|
key: "create",
|
|
1471
1465
|
value: function () {
|
|
1472
1466
|
var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(data, mapping, mappingData) {
|
|
@@ -1656,7 +1650,6 @@ var _default$8 = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1656
1650
|
}(Object.keys(variants));
|
|
1657
1651
|
}
|
|
1658
1652
|
}]);
|
|
1659
|
-
return _default;
|
|
1660
1653
|
}(_default$d);
|
|
1661
1654
|
|
|
1662
1655
|
function ownKeys$B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -1672,7 +1665,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
|
1672
1665
|
fetchConfiguration: false
|
|
1673
1666
|
});
|
|
1674
1667
|
}
|
|
1675
|
-
_createClass(_default, [{
|
|
1668
|
+
return _createClass(_default, [{
|
|
1676
1669
|
key: "getConfiguration",
|
|
1677
1670
|
value: function getConfiguration(id) {
|
|
1678
1671
|
var _this$_configuration,
|
|
@@ -1734,7 +1727,6 @@ var _default$7 = /*#__PURE__*/function () {
|
|
|
1734
1727
|
return this._apiConfig;
|
|
1735
1728
|
}
|
|
1736
1729
|
}]);
|
|
1737
|
-
return _default;
|
|
1738
1730
|
}();
|
|
1739
1731
|
var replaceStuff = function replaceStuff(text, apiConfig) {
|
|
1740
1732
|
return text.replaceAll('${authService}', apiConfig.authService).replaceAll('${mediaService}', apiConfig.mediaService).replaceAll('${messageService}', apiConfig.messageService).replaceAll('${basketService}', apiConfig.basketService).replaceAll('${supportService}', apiConfig.supportService).replaceAll('${adminService}', apiConfig.adminService).replaceAll('${catalogService}', apiConfig.catalogService).replaceAll('${api2}', apiConfig.api2.ek).replaceAll('${analyticsService}', apiConfig.analyticsService).replaceAll('${reportService}', apiConfig.reportService);
|
|
@@ -1977,7 +1969,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
1977
1969
|
type: 'multiselect',
|
|
1978
1970
|
values: [{
|
|
1979
1971
|
value: 0,
|
|
1980
|
-
label: 'renderjob.
|
|
1972
|
+
label: 'renderjob.stateincart'
|
|
1981
1973
|
}, {
|
|
1982
1974
|
value: 1,
|
|
1983
1975
|
groupedValues: [1, 2, 3],
|
|
@@ -1997,58 +1989,86 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
1997
1989
|
translationPrefix: 'renderjob.state',
|
|
1998
1990
|
type: 'string',
|
|
1999
1991
|
groupedValuesDisplayString: [{
|
|
1992
|
+
values: [0],
|
|
1993
|
+
text: t('renderjob.stateincart')
|
|
1994
|
+
}, {
|
|
2000
1995
|
values: [1, 2, 3],
|
|
2001
1996
|
text: t('renderjob.state.1')
|
|
2002
1997
|
}, {
|
|
2003
1998
|
values: [4, 5, 6, 7, 9, 8, 11],
|
|
2004
1999
|
text: t('renderjob.stateinprogress')
|
|
2005
|
-
}]
|
|
2000
|
+
}],
|
|
2001
|
+
width: 130
|
|
2006
2002
|
}, {
|
|
2007
2003
|
title: t('backoffice.table.renderjobs.columns.divaNr'),
|
|
2008
2004
|
field: 'divaNr',
|
|
2009
2005
|
filter: 'advanced',
|
|
2010
|
-
sorter: 2
|
|
2006
|
+
sorter: 2,
|
|
2007
|
+
width: 120
|
|
2011
2008
|
}, {
|
|
2012
2009
|
title: t('backoffice.table.renderjobs.columns.VariantId'),
|
|
2013
2010
|
field: 'divaNrVariantId',
|
|
2014
2011
|
filter: 'advanced',
|
|
2015
|
-
sorter: 2
|
|
2012
|
+
sorter: 2,
|
|
2013
|
+
width: 120
|
|
2016
2014
|
}, {
|
|
2017
2015
|
title: t('backoffice.table.renderjobs.columns.fileUrl'),
|
|
2018
2016
|
field: 'fileUrl',
|
|
2019
2017
|
type: 'media',
|
|
2020
|
-
align: 'center'
|
|
2018
|
+
align: 'center',
|
|
2019
|
+
width: 100
|
|
2021
2020
|
}, {
|
|
2022
2021
|
title: t('backoffice.table.renderjobs.columns.realTimeRenderUrl'),
|
|
2023
2022
|
field: 'realTimeRenderUrl',
|
|
2024
2023
|
type: 'media',
|
|
2025
|
-
align: 'center'
|
|
2024
|
+
align: 'center',
|
|
2025
|
+
width: 100
|
|
2026
2026
|
}, {
|
|
2027
2027
|
title: t('backoffice.table.renderjobs.columns.job'),
|
|
2028
2028
|
field: 'job',
|
|
2029
2029
|
sorter: 3,
|
|
2030
|
-
filter: 'advanced'
|
|
2030
|
+
filter: 'advanced',
|
|
2031
|
+
width: 100
|
|
2031
2032
|
}, {
|
|
2032
2033
|
title: t('backoffice.table.renderjobs.columns.fileName'),
|
|
2033
2034
|
field: 'fileName',
|
|
2034
2035
|
sorter: 3,
|
|
2035
|
-
filter: 'advanced'
|
|
2036
|
+
filter: 'advanced',
|
|
2037
|
+
width: 220
|
|
2038
|
+
}, {
|
|
2039
|
+
title: t('backoffice.table.renderjobs.columns.viewPoint'),
|
|
2040
|
+
field: 'viewPoint',
|
|
2041
|
+
sorter: 4,
|
|
2042
|
+
filter: 'advanced',
|
|
2043
|
+
width: 100
|
|
2036
2044
|
}, {
|
|
2037
2045
|
title: t('backoffice.table.renderjobs.columns.group'),
|
|
2038
2046
|
field: 'group',
|
|
2039
2047
|
sorter: 11,
|
|
2040
|
-
filter: 'advanced'
|
|
2048
|
+
filter: 'advanced',
|
|
2049
|
+
width: 100
|
|
2041
2050
|
}, {
|
|
2042
2051
|
title: t('backoffice.table.renderjobs.columns.productName'),
|
|
2043
2052
|
field: 'productName',
|
|
2044
2053
|
sorter: 12,
|
|
2045
|
-
filter: 'advanced'
|
|
2054
|
+
filter: 'advanced',
|
|
2055
|
+
width: 180
|
|
2056
|
+
}, {
|
|
2057
|
+
title: t('backoffice.table.invitations.organization'),
|
|
2058
|
+
field: 'organizationName',
|
|
2059
|
+
sorter: 1,
|
|
2060
|
+
width: 200,
|
|
2061
|
+
hidden: function hidden(_, globalFilter) {
|
|
2062
|
+
var _globalFilter$toggle;
|
|
2063
|
+
return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$toggle = globalFilter.toggle) !== null && _globalFilter$toggle !== void 0 && (_globalFilter$toggle = _globalFilter$toggle['hierarchy']) !== null && _globalFilter$toggle !== void 0 && _globalFilter$toggle[0]);
|
|
2064
|
+
}
|
|
2046
2065
|
}, {
|
|
2047
2066
|
title: t('backoffice.table.renderjobs.columns.created'),
|
|
2048
2067
|
field: 'created',
|
|
2049
2068
|
sorter: 15,
|
|
2050
2069
|
type: 'unixTimeStamp',
|
|
2051
2070
|
defaultSortOrder: 'descend',
|
|
2071
|
+
width: 160,
|
|
2052
2072
|
filter: 'interval'
|
|
2053
2073
|
}, {
|
|
2054
2074
|
title: t('backoffice.table.renderjobs.columns.lastUpdated'),
|
|
@@ -2056,11 +2076,12 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2056
2076
|
sorter: 15,
|
|
2057
2077
|
type: 'unixTimeStamp',
|
|
2058
2078
|
defaultSortOrder: 'descend',
|
|
2079
|
+
width: 160,
|
|
2059
2080
|
filter: 'interval'
|
|
2060
2081
|
}],
|
|
2061
2082
|
apiInterface: {
|
|
2062
2083
|
read: {
|
|
2063
|
-
list: '${mediaService}/renderjobs',
|
|
2084
|
+
list: '${mediaService}/renderjobs?organizationId=${organizationId}',
|
|
2064
2085
|
filterServerSide: true
|
|
2065
2086
|
},
|
|
2066
2087
|
update: {
|
|
@@ -2068,10 +2089,22 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2068
2089
|
method: 'PATCH'
|
|
2069
2090
|
}
|
|
2070
2091
|
},
|
|
2071
|
-
|
|
2072
|
-
|
|
2092
|
+
mapping: {
|
|
2093
|
+
type: 'query',
|
|
2094
|
+
map: [{
|
|
2095
|
+
sourceField: 'hierarchy',
|
|
2096
|
+
targetField: 'hierarchy'
|
|
2097
|
+
}, {
|
|
2073
2098
|
globalValue: 'selectedOrganizationId',
|
|
2074
|
-
|
|
2099
|
+
targetField: 'organizationId'
|
|
2100
|
+
}]
|
|
2101
|
+
},
|
|
2102
|
+
filter: {
|
|
2103
|
+
toggle: {
|
|
2104
|
+
fields: ['hierarchy'],
|
|
2105
|
+
label: t('backoffice.table.allorgusers.filter.toggle.label'),
|
|
2106
|
+
labelOff: t('backoffice.table.allorgusers.filter.toggle.labelOff'),
|
|
2107
|
+
inQuery: true
|
|
2075
2108
|
}
|
|
2076
2109
|
},
|
|
2077
2110
|
rowAction: [{
|
|
@@ -3903,8 +3936,8 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
3903
3936
|
sorter: 1,
|
|
3904
3937
|
width: 200,
|
|
3905
3938
|
hidden: function hidden(_, globalFilter) {
|
|
3906
|
-
var _globalFilter$
|
|
3907
|
-
return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$
|
|
3939
|
+
var _globalFilter$toggle2;
|
|
3940
|
+
return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$toggle2 = globalFilter.toggle) !== null && _globalFilter$toggle2 !== void 0 && (_globalFilter$toggle2 = _globalFilter$toggle2['hierarchy']) !== null && _globalFilter$toggle2 !== void 0 && _globalFilter$toggle2[0]);
|
|
3908
3941
|
}
|
|
3909
3942
|
}, {
|
|
3910
3943
|
title: t('backoffice.table.invitations.mailsend'),
|
|
@@ -4104,8 +4137,8 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
4104
4137
|
field: 'organizationDisplayName',
|
|
4105
4138
|
width: 150,
|
|
4106
4139
|
hidden: function hidden(_, globalFilter) {
|
|
4107
|
-
var _globalFilter$
|
|
4108
|
-
return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$
|
|
4140
|
+
var _globalFilter$toggle3;
|
|
4141
|
+
return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$toggle3 = globalFilter.toggle) !== null && _globalFilter$toggle3 !== void 0 && (_globalFilter$toggle3 = _globalFilter$toggle3['hierarchy']) !== null && _globalFilter$toggle3 !== void 0 && _globalFilter$toggle3[0]);
|
|
4109
4142
|
}
|
|
4110
4143
|
}, {
|
|
4111
4144
|
title: t('backoffice.table.allorgusers.created'),
|
|
@@ -10594,7 +10627,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
10594
10627
|
this._theme = theme;
|
|
10595
10628
|
}
|
|
10596
10629
|
}
|
|
10597
|
-
_createClass(_default, [{
|
|
10630
|
+
return _createClass(_default, [{
|
|
10598
10631
|
key: "updateMenuConfiguration",
|
|
10599
10632
|
value: function updateMenuConfiguration() {
|
|
10600
10633
|
var _this$_selectedLeaf, _getFirstItem;
|
|
@@ -10647,7 +10680,6 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
10647
10680
|
return (this._configurationId || '') + (this.root.dataStore.organizationId || '');
|
|
10648
10681
|
}
|
|
10649
10682
|
}]);
|
|
10650
|
-
return _default;
|
|
10651
10683
|
}();
|
|
10652
10684
|
function getFirstItem(items) {
|
|
10653
10685
|
return items.find(function (i) {
|
|
@@ -10683,7 +10715,7 @@ var _default$5 = /*#__PURE__*/function () {
|
|
|
10683
10715
|
setSelectedOrganizationId: action
|
|
10684
10716
|
});
|
|
10685
10717
|
}
|
|
10686
|
-
_createClass(_default, [{
|
|
10718
|
+
return _createClass(_default, [{
|
|
10687
10719
|
key: "setUserData",
|
|
10688
10720
|
value: function setUserData(jwt, ntoken, currentUser) {
|
|
10689
10721
|
this._jwt = jwt;
|
|
@@ -10787,7 +10819,6 @@ var _default$5 = /*#__PURE__*/function () {
|
|
|
10787
10819
|
return getApi2AuthLoginData;
|
|
10788
10820
|
}()
|
|
10789
10821
|
}]);
|
|
10790
|
-
return _default;
|
|
10791
10822
|
}();
|
|
10792
10823
|
|
|
10793
10824
|
var _default$4 = /*#__PURE__*/function () {
|
|
@@ -10806,7 +10837,7 @@ var _default$4 = /*#__PURE__*/function () {
|
|
|
10806
10837
|
closeRightDetail: action
|
|
10807
10838
|
});
|
|
10808
10839
|
}
|
|
10809
|
-
_createClass(_default, [{
|
|
10840
|
+
return _createClass(_default, [{
|
|
10810
10841
|
key: "openLeftDetail",
|
|
10811
10842
|
value: function openLeftDetail(detail) {
|
|
10812
10843
|
this.detailInfosLeft = [].concat(_toConsumableArray(this.detailInfosLeft), [detail]);
|
|
@@ -10839,7 +10870,6 @@ var _default$4 = /*#__PURE__*/function () {
|
|
|
10839
10870
|
return this.detailInfosRight[layer];
|
|
10840
10871
|
}
|
|
10841
10872
|
}]);
|
|
10842
|
-
return _default;
|
|
10843
10873
|
}();
|
|
10844
10874
|
|
|
10845
10875
|
var _default$3 = /*#__PURE__*/function () {
|
|
@@ -10857,7 +10887,7 @@ var _default$3 = /*#__PURE__*/function () {
|
|
|
10857
10887
|
_callback: observable.ref
|
|
10858
10888
|
});
|
|
10859
10889
|
}
|
|
10860
|
-
_createClass(_default, [{
|
|
10890
|
+
return _createClass(_default, [{
|
|
10861
10891
|
key: "openModal",
|
|
10862
10892
|
value: function openModal(_ref) {
|
|
10863
10893
|
var action = _ref.action,
|
|
@@ -10892,7 +10922,6 @@ var _default$3 = /*#__PURE__*/function () {
|
|
|
10892
10922
|
};
|
|
10893
10923
|
}
|
|
10894
10924
|
}]);
|
|
10895
|
-
return _default;
|
|
10896
10925
|
}();
|
|
10897
10926
|
|
|
10898
10927
|
function _createForOfIteratorHelper$k(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$k(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
@@ -11025,7 +11054,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
|
11025
11054
|
_mappingData: observable.ref
|
|
11026
11055
|
});
|
|
11027
11056
|
}
|
|
11028
|
-
_createClass(DownloadStore, [{
|
|
11057
|
+
return _createClass(DownloadStore, [{
|
|
11029
11058
|
key: "donwloadFile",
|
|
11030
11059
|
value: function () {
|
|
11031
11060
|
var _donwloadFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url, name) {
|
|
@@ -11347,24 +11376,23 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
|
11347
11376
|
DownloadStore.downloadBlob(file, filename);
|
|
11348
11377
|
}
|
|
11349
11378
|
}]);
|
|
11350
|
-
return DownloadStore;
|
|
11351
11379
|
}();
|
|
11352
11380
|
|
|
11353
11381
|
function _callSuper$2(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11354
11382
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11355
11383
|
var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
11356
|
-
_inherits(_default, _ApiHandler);
|
|
11357
11384
|
function _default(configuration, rootStore) {
|
|
11358
11385
|
var _this;
|
|
11359
11386
|
_classCallCheck(this, _default);
|
|
11360
11387
|
_this = _callSuper$2(this, _default, [configuration, rootStore]);
|
|
11361
|
-
_defineProperty(
|
|
11362
|
-
_defineProperty(
|
|
11388
|
+
_defineProperty(_this, "presetApiHandler", void 0);
|
|
11389
|
+
_defineProperty(_this, "test", '');
|
|
11363
11390
|
_this.presetApiHandler = new _default$d({
|
|
11364
11391
|
apiInterface: configuration.presetApiInterface
|
|
11365
11392
|
}, rootStore);
|
|
11366
11393
|
return _this;
|
|
11367
11394
|
}
|
|
11395
|
+
_inherits(_default, _ApiHandler);
|
|
11368
11396
|
return _createClass(_default);
|
|
11369
11397
|
}(_default$d);
|
|
11370
11398
|
|
|
@@ -11391,7 +11419,7 @@ var _default$1 = /*#__PURE__*/function () {
|
|
|
11391
11419
|
this.configurationStore = new _default$7(this);
|
|
11392
11420
|
this.downloadStore = new DownloadStore(this);
|
|
11393
11421
|
}
|
|
11394
|
-
_createClass(_default, [{
|
|
11422
|
+
return _createClass(_default, [{
|
|
11395
11423
|
key: "updateHandlers",
|
|
11396
11424
|
value: function updateHandlers(handler) {
|
|
11397
11425
|
this.handler = handler;
|
|
@@ -11456,7 +11484,6 @@ var _default$1 = /*#__PURE__*/function () {
|
|
|
11456
11484
|
}
|
|
11457
11485
|
}
|
|
11458
11486
|
}]);
|
|
11459
|
-
return _default;
|
|
11460
11487
|
}();
|
|
11461
11488
|
|
|
11462
11489
|
var storeContext = /*#__PURE__*/createContext(null);
|
|
@@ -12614,6 +12641,7 @@ var FileUploadWrapper = function FileUploadWrapper(_ref) {
|
|
|
12614
12641
|
}), /*#__PURE__*/jsx(Spin, {
|
|
12615
12642
|
spinning: loading,
|
|
12616
12643
|
children: /*#__PURE__*/jsxs(AssetEditor, {
|
|
12644
|
+
theme: root.contentStore.theme,
|
|
12617
12645
|
createRef: false,
|
|
12618
12646
|
disabled: !organizations.length,
|
|
12619
12647
|
onChange: ( /*#__PURE__*/function () {
|
|
@@ -13846,17 +13874,17 @@ var InputComponent$1 = observer(InputComponent, {
|
|
|
13846
13874
|
function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13847
13875
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13848
13876
|
var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
13849
|
-
_inherits(_default, _ApiHandler);
|
|
13850
13877
|
function _default(configuration, rootStore) {
|
|
13851
13878
|
var _this;
|
|
13852
13879
|
_classCallCheck(this, _default);
|
|
13853
13880
|
_this = _callSuper$1(this, _default, [configuration, rootStore]);
|
|
13854
|
-
_defineProperty(
|
|
13855
|
-
_defineProperty(
|
|
13856
|
-
_defineProperty(
|
|
13881
|
+
_defineProperty(_this, "_accountSessionData", void 0);
|
|
13882
|
+
_defineProperty(_this, "_api2Location", void 0);
|
|
13883
|
+
_defineProperty(_this, "_sessionGuid", void 0);
|
|
13857
13884
|
return _this;
|
|
13858
13885
|
}
|
|
13859
|
-
|
|
13886
|
+
_inherits(_default, _ApiHandler);
|
|
13887
|
+
return _createClass(_default, [{
|
|
13860
13888
|
key: "getSession",
|
|
13861
13889
|
value: function () {
|
|
13862
13890
|
var _getSession = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(organizationId) {
|
|
@@ -14434,7 +14462,6 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
|
14434
14462
|
return getSupplierOptionValues;
|
|
14435
14463
|
}()
|
|
14436
14464
|
}]);
|
|
14437
|
-
return _default;
|
|
14438
14465
|
}(_default$d);
|
|
14439
14466
|
|
|
14440
14467
|
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; }
|
|
@@ -16845,7 +16872,7 @@ function StringCell (_ref) {
|
|
|
16845
16872
|
};
|
|
16846
16873
|
function getValueString(column) {
|
|
16847
16874
|
var groupedValuesDisplayString = column.groupedValuesDisplayString;
|
|
16848
|
-
if (groupedValuesDisplayString && record[column.field]) {
|
|
16875
|
+
if (groupedValuesDisplayString !== undefined && record[column.field] !== undefined) {
|
|
16849
16876
|
var foundValue = groupedValuesDisplayString.find(function (group) {
|
|
16850
16877
|
return group.values.includes(record[column.field]);
|
|
16851
16878
|
});
|
|
@@ -17173,7 +17200,7 @@ var UtilStore = /*#__PURE__*/function () {
|
|
|
17173
17200
|
function UtilStore() {
|
|
17174
17201
|
_classCallCheck(this, UtilStore);
|
|
17175
17202
|
}
|
|
17176
|
-
_createClass(UtilStore, null, [{
|
|
17203
|
+
return _createClass(UtilStore, null, [{
|
|
17177
17204
|
key: "setArViewerSettings",
|
|
17178
17205
|
value: function () {
|
|
17179
17206
|
var _setArViewerSettings = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(handler) {
|
|
@@ -17203,7 +17230,6 @@ var UtilStore = /*#__PURE__*/function () {
|
|
|
17203
17230
|
return this.viewConfig.configParams.arViewerSettings;
|
|
17204
17231
|
}
|
|
17205
17232
|
}]);
|
|
17206
|
-
return UtilStore;
|
|
17207
17233
|
}();
|
|
17208
17234
|
_defineProperty(UtilStore, "viewConfig", void 0);
|
|
17209
17235
|
|
|
@@ -25673,7 +25699,6 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
25673
25699
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25674
25700
|
var LOG$1 = getLogger('Backoffice', 'ErrorBoundary');
|
|
25675
25701
|
var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
25676
|
-
_inherits(ErrorBoundary, _React$Component);
|
|
25677
25702
|
function ErrorBoundary(props) {
|
|
25678
25703
|
var _this;
|
|
25679
25704
|
_classCallCheck(this, ErrorBoundary);
|
|
@@ -25683,7 +25708,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
25683
25708
|
};
|
|
25684
25709
|
return _this;
|
|
25685
25710
|
}
|
|
25686
|
-
|
|
25711
|
+
_inherits(ErrorBoundary, _React$Component);
|
|
25712
|
+
return _createClass(ErrorBoundary, [{
|
|
25687
25713
|
key: "componentDidCatch",
|
|
25688
25714
|
value: function componentDidCatch(error, errorInfo) {
|
|
25689
25715
|
LOG$1.error(error, 'BACKO_0001', errorInfo);
|
|
@@ -25708,7 +25734,6 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
25708
25734
|
};
|
|
25709
25735
|
}
|
|
25710
25736
|
}]);
|
|
25711
|
-
return ErrorBoundary;
|
|
25712
25737
|
}(React.Component);
|
|
25713
25738
|
|
|
25714
25739
|
function Modal() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileUploadBeta/index.tsx"],"names":[],"mappings":"AASA,UAAU,KAAK;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileUploadBeta/index.tsx"],"names":[],"mappings":"AASA,UAAU,KAAK;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;;;;AAmFD,wBAA2C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "24.4.0-
|
|
3
|
+
"version": "24.4.0-rc.1",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^5.15.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
},
|
|
51
51
|
"module": "build/esm/index.js",
|
|
52
52
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "cc011d9d75a2aa429d28a21b125960088c62847e"
|
|
54
54
|
}
|