@crystaldesign/diva-backoffice 24.4.0-beta.22 → 24.4.0-beta.24
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 +63 -63
- package/package.json +2 -2
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);
|
|
@@ -2005,47 +1997,62 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2005
1997
|
}, {
|
|
2006
1998
|
values: [4, 5, 6, 7, 9, 8, 11],
|
|
2007
1999
|
text: t('renderjob.stateinprogress')
|
|
2008
|
-
}]
|
|
2000
|
+
}],
|
|
2001
|
+
width: 130
|
|
2009
2002
|
}, {
|
|
2010
2003
|
title: t('backoffice.table.renderjobs.columns.divaNr'),
|
|
2011
2004
|
field: 'divaNr',
|
|
2012
2005
|
filter: 'advanced',
|
|
2013
|
-
sorter: 2
|
|
2006
|
+
sorter: 2,
|
|
2007
|
+
width: 120
|
|
2014
2008
|
}, {
|
|
2015
2009
|
title: t('backoffice.table.renderjobs.columns.VariantId'),
|
|
2016
2010
|
field: 'divaNrVariantId',
|
|
2017
2011
|
filter: 'advanced',
|
|
2018
|
-
sorter: 2
|
|
2012
|
+
sorter: 2,
|
|
2013
|
+
width: 120
|
|
2019
2014
|
}, {
|
|
2020
2015
|
title: t('backoffice.table.renderjobs.columns.fileUrl'),
|
|
2021
2016
|
field: 'fileUrl',
|
|
2022
2017
|
type: 'media',
|
|
2023
|
-
align: 'center'
|
|
2018
|
+
align: 'center',
|
|
2019
|
+
width: 100
|
|
2024
2020
|
}, {
|
|
2025
2021
|
title: t('backoffice.table.renderjobs.columns.realTimeRenderUrl'),
|
|
2026
2022
|
field: 'realTimeRenderUrl',
|
|
2027
2023
|
type: 'media',
|
|
2028
|
-
align: 'center'
|
|
2024
|
+
align: 'center',
|
|
2025
|
+
width: 100
|
|
2029
2026
|
}, {
|
|
2030
2027
|
title: t('backoffice.table.renderjobs.columns.job'),
|
|
2031
2028
|
field: 'job',
|
|
2032
2029
|
sorter: 3,
|
|
2033
|
-
filter: 'advanced'
|
|
2030
|
+
filter: 'advanced',
|
|
2031
|
+
width: 100
|
|
2034
2032
|
}, {
|
|
2035
2033
|
title: t('backoffice.table.renderjobs.columns.fileName'),
|
|
2036
2034
|
field: 'fileName',
|
|
2037
2035
|
sorter: 3,
|
|
2038
|
-
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
|
|
2039
2044
|
}, {
|
|
2040
2045
|
title: t('backoffice.table.renderjobs.columns.group'),
|
|
2041
2046
|
field: 'group',
|
|
2042
2047
|
sorter: 11,
|
|
2043
|
-
filter: 'advanced'
|
|
2048
|
+
filter: 'advanced',
|
|
2049
|
+
width: 100
|
|
2044
2050
|
}, {
|
|
2045
2051
|
title: t('backoffice.table.renderjobs.columns.productName'),
|
|
2046
2052
|
field: 'productName',
|
|
2047
2053
|
sorter: 12,
|
|
2048
|
-
filter: 'advanced'
|
|
2054
|
+
filter: 'advanced',
|
|
2055
|
+
width: 180
|
|
2049
2056
|
}, {
|
|
2050
2057
|
title: t('backoffice.table.invitations.organization'),
|
|
2051
2058
|
field: 'organizationName',
|
|
@@ -2061,6 +2068,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2061
2068
|
sorter: 15,
|
|
2062
2069
|
type: 'unixTimeStamp',
|
|
2063
2070
|
defaultSortOrder: 'descend',
|
|
2071
|
+
width: 160,
|
|
2064
2072
|
filter: 'interval'
|
|
2065
2073
|
}, {
|
|
2066
2074
|
title: t('backoffice.table.renderjobs.columns.lastUpdated'),
|
|
@@ -2068,6 +2076,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2068
2076
|
sorter: 15,
|
|
2069
2077
|
type: 'unixTimeStamp',
|
|
2070
2078
|
defaultSortOrder: 'descend',
|
|
2079
|
+
width: 160,
|
|
2071
2080
|
filter: 'interval'
|
|
2072
2081
|
}],
|
|
2073
2082
|
apiInterface: {
|
|
@@ -10618,7 +10627,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
10618
10627
|
this._theme = theme;
|
|
10619
10628
|
}
|
|
10620
10629
|
}
|
|
10621
|
-
_createClass(_default, [{
|
|
10630
|
+
return _createClass(_default, [{
|
|
10622
10631
|
key: "updateMenuConfiguration",
|
|
10623
10632
|
value: function updateMenuConfiguration() {
|
|
10624
10633
|
var _this$_selectedLeaf, _getFirstItem;
|
|
@@ -10671,7 +10680,6 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
10671
10680
|
return (this._configurationId || '') + (this.root.dataStore.organizationId || '');
|
|
10672
10681
|
}
|
|
10673
10682
|
}]);
|
|
10674
|
-
return _default;
|
|
10675
10683
|
}();
|
|
10676
10684
|
function getFirstItem(items) {
|
|
10677
10685
|
return items.find(function (i) {
|
|
@@ -10707,7 +10715,7 @@ var _default$5 = /*#__PURE__*/function () {
|
|
|
10707
10715
|
setSelectedOrganizationId: action
|
|
10708
10716
|
});
|
|
10709
10717
|
}
|
|
10710
|
-
_createClass(_default, [{
|
|
10718
|
+
return _createClass(_default, [{
|
|
10711
10719
|
key: "setUserData",
|
|
10712
10720
|
value: function setUserData(jwt, ntoken, currentUser) {
|
|
10713
10721
|
this._jwt = jwt;
|
|
@@ -10811,7 +10819,6 @@ var _default$5 = /*#__PURE__*/function () {
|
|
|
10811
10819
|
return getApi2AuthLoginData;
|
|
10812
10820
|
}()
|
|
10813
10821
|
}]);
|
|
10814
|
-
return _default;
|
|
10815
10822
|
}();
|
|
10816
10823
|
|
|
10817
10824
|
var _default$4 = /*#__PURE__*/function () {
|
|
@@ -10830,7 +10837,7 @@ var _default$4 = /*#__PURE__*/function () {
|
|
|
10830
10837
|
closeRightDetail: action
|
|
10831
10838
|
});
|
|
10832
10839
|
}
|
|
10833
|
-
_createClass(_default, [{
|
|
10840
|
+
return _createClass(_default, [{
|
|
10834
10841
|
key: "openLeftDetail",
|
|
10835
10842
|
value: function openLeftDetail(detail) {
|
|
10836
10843
|
this.detailInfosLeft = [].concat(_toConsumableArray(this.detailInfosLeft), [detail]);
|
|
@@ -10863,7 +10870,6 @@ var _default$4 = /*#__PURE__*/function () {
|
|
|
10863
10870
|
return this.detailInfosRight[layer];
|
|
10864
10871
|
}
|
|
10865
10872
|
}]);
|
|
10866
|
-
return _default;
|
|
10867
10873
|
}();
|
|
10868
10874
|
|
|
10869
10875
|
var _default$3 = /*#__PURE__*/function () {
|
|
@@ -10881,7 +10887,7 @@ var _default$3 = /*#__PURE__*/function () {
|
|
|
10881
10887
|
_callback: observable.ref
|
|
10882
10888
|
});
|
|
10883
10889
|
}
|
|
10884
|
-
_createClass(_default, [{
|
|
10890
|
+
return _createClass(_default, [{
|
|
10885
10891
|
key: "openModal",
|
|
10886
10892
|
value: function openModal(_ref) {
|
|
10887
10893
|
var action = _ref.action,
|
|
@@ -10916,7 +10922,6 @@ var _default$3 = /*#__PURE__*/function () {
|
|
|
10916
10922
|
};
|
|
10917
10923
|
}
|
|
10918
10924
|
}]);
|
|
10919
|
-
return _default;
|
|
10920
10925
|
}();
|
|
10921
10926
|
|
|
10922
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; } } }; }
|
|
@@ -11049,7 +11054,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
|
11049
11054
|
_mappingData: observable.ref
|
|
11050
11055
|
});
|
|
11051
11056
|
}
|
|
11052
|
-
_createClass(DownloadStore, [{
|
|
11057
|
+
return _createClass(DownloadStore, [{
|
|
11053
11058
|
key: "donwloadFile",
|
|
11054
11059
|
value: function () {
|
|
11055
11060
|
var _donwloadFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url, name) {
|
|
@@ -11371,24 +11376,23 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
|
11371
11376
|
DownloadStore.downloadBlob(file, filename);
|
|
11372
11377
|
}
|
|
11373
11378
|
}]);
|
|
11374
|
-
return DownloadStore;
|
|
11375
11379
|
}();
|
|
11376
11380
|
|
|
11377
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)); }
|
|
11378
11382
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11379
11383
|
var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
11380
|
-
_inherits(_default, _ApiHandler);
|
|
11381
11384
|
function _default(configuration, rootStore) {
|
|
11382
11385
|
var _this;
|
|
11383
11386
|
_classCallCheck(this, _default);
|
|
11384
11387
|
_this = _callSuper$2(this, _default, [configuration, rootStore]);
|
|
11385
|
-
_defineProperty(
|
|
11386
|
-
_defineProperty(
|
|
11388
|
+
_defineProperty(_this, "presetApiHandler", void 0);
|
|
11389
|
+
_defineProperty(_this, "test", '');
|
|
11387
11390
|
_this.presetApiHandler = new _default$d({
|
|
11388
11391
|
apiInterface: configuration.presetApiInterface
|
|
11389
11392
|
}, rootStore);
|
|
11390
11393
|
return _this;
|
|
11391
11394
|
}
|
|
11395
|
+
_inherits(_default, _ApiHandler);
|
|
11392
11396
|
return _createClass(_default);
|
|
11393
11397
|
}(_default$d);
|
|
11394
11398
|
|
|
@@ -11415,7 +11419,7 @@ var _default$1 = /*#__PURE__*/function () {
|
|
|
11415
11419
|
this.configurationStore = new _default$7(this);
|
|
11416
11420
|
this.downloadStore = new DownloadStore(this);
|
|
11417
11421
|
}
|
|
11418
|
-
_createClass(_default, [{
|
|
11422
|
+
return _createClass(_default, [{
|
|
11419
11423
|
key: "updateHandlers",
|
|
11420
11424
|
value: function updateHandlers(handler) {
|
|
11421
11425
|
this.handler = handler;
|
|
@@ -11480,7 +11484,6 @@ var _default$1 = /*#__PURE__*/function () {
|
|
|
11480
11484
|
}
|
|
11481
11485
|
}
|
|
11482
11486
|
}]);
|
|
11483
|
-
return _default;
|
|
11484
11487
|
}();
|
|
11485
11488
|
|
|
11486
11489
|
var storeContext = /*#__PURE__*/createContext(null);
|
|
@@ -13871,17 +13874,17 @@ var InputComponent$1 = observer(InputComponent, {
|
|
|
13871
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)); }
|
|
13872
13875
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13873
13876
|
var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
13874
|
-
_inherits(_default, _ApiHandler);
|
|
13875
13877
|
function _default(configuration, rootStore) {
|
|
13876
13878
|
var _this;
|
|
13877
13879
|
_classCallCheck(this, _default);
|
|
13878
13880
|
_this = _callSuper$1(this, _default, [configuration, rootStore]);
|
|
13879
|
-
_defineProperty(
|
|
13880
|
-
_defineProperty(
|
|
13881
|
-
_defineProperty(
|
|
13881
|
+
_defineProperty(_this, "_accountSessionData", void 0);
|
|
13882
|
+
_defineProperty(_this, "_api2Location", void 0);
|
|
13883
|
+
_defineProperty(_this, "_sessionGuid", void 0);
|
|
13882
13884
|
return _this;
|
|
13883
13885
|
}
|
|
13884
|
-
|
|
13886
|
+
_inherits(_default, _ApiHandler);
|
|
13887
|
+
return _createClass(_default, [{
|
|
13885
13888
|
key: "getSession",
|
|
13886
13889
|
value: function () {
|
|
13887
13890
|
var _getSession = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(organizationId) {
|
|
@@ -14459,7 +14462,6 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
|
14459
14462
|
return getSupplierOptionValues;
|
|
14460
14463
|
}()
|
|
14461
14464
|
}]);
|
|
14462
|
-
return _default;
|
|
14463
14465
|
}(_default$d);
|
|
14464
14466
|
|
|
14465
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; }
|
|
@@ -17198,7 +17200,7 @@ var UtilStore = /*#__PURE__*/function () {
|
|
|
17198
17200
|
function UtilStore() {
|
|
17199
17201
|
_classCallCheck(this, UtilStore);
|
|
17200
17202
|
}
|
|
17201
|
-
_createClass(UtilStore, null, [{
|
|
17203
|
+
return _createClass(UtilStore, null, [{
|
|
17202
17204
|
key: "setArViewerSettings",
|
|
17203
17205
|
value: function () {
|
|
17204
17206
|
var _setArViewerSettings = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(handler) {
|
|
@@ -17228,7 +17230,6 @@ var UtilStore = /*#__PURE__*/function () {
|
|
|
17228
17230
|
return this.viewConfig.configParams.arViewerSettings;
|
|
17229
17231
|
}
|
|
17230
17232
|
}]);
|
|
17231
|
-
return UtilStore;
|
|
17232
17233
|
}();
|
|
17233
17234
|
_defineProperty(UtilStore, "viewConfig", void 0);
|
|
17234
17235
|
|
|
@@ -25698,7 +25699,6 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
25698
25699
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25699
25700
|
var LOG$1 = getLogger('Backoffice', 'ErrorBoundary');
|
|
25700
25701
|
var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
25701
|
-
_inherits(ErrorBoundary, _React$Component);
|
|
25702
25702
|
function ErrorBoundary(props) {
|
|
25703
25703
|
var _this;
|
|
25704
25704
|
_classCallCheck(this, ErrorBoundary);
|
|
@@ -25708,7 +25708,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
25708
25708
|
};
|
|
25709
25709
|
return _this;
|
|
25710
25710
|
}
|
|
25711
|
-
|
|
25711
|
+
_inherits(ErrorBoundary, _React$Component);
|
|
25712
|
+
return _createClass(ErrorBoundary, [{
|
|
25712
25713
|
key: "componentDidCatch",
|
|
25713
25714
|
value: function componentDidCatch(error, errorInfo) {
|
|
25714
25715
|
LOG$1.error(error, 'BACKO_0001', errorInfo);
|
|
@@ -25733,7 +25734,6 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
25733
25734
|
};
|
|
25734
25735
|
}
|
|
25735
25736
|
}]);
|
|
25736
|
-
return ErrorBoundary;
|
|
25737
25737
|
}(React.Component);
|
|
25738
25738
|
|
|
25739
25739
|
function Modal() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "24.4.0-beta.
|
|
3
|
+
"version": "24.4.0-beta.24",
|
|
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": "fed3c801c30c697e2d9940ee090ad22cc90d54b5"
|
|
54
54
|
}
|