@crystaldesign/diva-backoffice 25.10.0-beta.10 → 25.10.0-beta.11
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 +34 -21
- package/build/types/backoffice/src/store/ContextStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
@@ -156,7 +156,7 @@ function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r
|
|
156
156
|
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; }
|
157
157
|
function ownKeys$10(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
158
158
|
function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$10(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$10(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
159
|
-
var LOG$
|
159
|
+
var LOG$f = getLogger('Backoffice', 'ApplyMapping');
|
160
160
|
function applyMapping (_ref) {
|
161
161
|
var mappable = _ref.mappable,
|
162
162
|
mappingData = _ref.mappingData,
|
@@ -302,7 +302,7 @@ function applyMapping (_ref) {
|
|
302
302
|
}
|
303
303
|
return returnValue;
|
304
304
|
} catch (e) {
|
305
|
-
LOG$
|
305
|
+
LOG$f.debug('Mapabledata', mappable);
|
306
306
|
throw e;
|
307
307
|
}
|
308
308
|
}
|
@@ -484,7 +484,7 @@ function getLeafColumns(columns) {
|
|
484
484
|
|
485
485
|
function ownKeys$$(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; }
|
486
486
|
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
487
|
-
var LOG$
|
487
|
+
var LOG$e = getLogger('Backoffice', 'ApiHandler');
|
488
488
|
var jp = require('jsonpath');
|
489
489
|
var _default$d = /*#__PURE__*/function () {
|
490
490
|
function _default(configuration, _rootStore) {
|
@@ -1162,16 +1162,16 @@ var _default$d = /*#__PURE__*/function () {
|
|
1162
1162
|
}
|
1163
1163
|
});
|
1164
1164
|
this._socket.on('error', function (error) {
|
1165
|
-
LOG$
|
1165
|
+
LOG$e.error(new DivaError('Error on connection', error));
|
1166
1166
|
});
|
1167
1167
|
this._socket.on('connect_error', function (error) {
|
1168
|
-
LOG$
|
1168
|
+
LOG$e.log("connect_error due to ".concat(error.message));
|
1169
1169
|
});
|
1170
1170
|
this._socket.on('connect', function () {
|
1171
|
-
LOG$
|
1171
|
+
LOG$e.debug('Successfully connected to socket');
|
1172
1172
|
});
|
1173
1173
|
this._socket.on('disconnect', function () {
|
1174
|
-
LOG$
|
1174
|
+
LOG$e.debug('Disconnect from socket');
|
1175
1175
|
});
|
1176
1176
|
return this._socket;
|
1177
1177
|
}
|
@@ -15187,7 +15187,7 @@ var _default$3 = /*#__PURE__*/function () {
|
|
15187
15187
|
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; } } }; }
|
15188
15188
|
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; } }
|
15189
15189
|
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; }
|
15190
|
-
var LOG$
|
15190
|
+
var LOG$d = getLogger('Backoffice', 'DownloadStore');
|
15191
15191
|
var DownloadStore = /*#__PURE__*/function () {
|
15192
15192
|
function DownloadStore(_rootStore) {
|
15193
15193
|
var _this = this;
|
@@ -15403,7 +15403,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
15403
15403
|
_context5.next = 4;
|
15404
15404
|
break;
|
15405
15405
|
}
|
15406
|
-
LOG$
|
15406
|
+
LOG$d.debug("The organization ".concat(data._id, " has no parentType of ").concat(validTypes.join(' or ')));
|
15407
15407
|
throw new Error("Current organization is no ".concat(type == 'RETAILER' ? 'retailer, retailer channel or association' : 'supplier or dealer'));
|
15408
15408
|
case 4:
|
15409
15409
|
orgData = data;
|
@@ -15422,7 +15422,7 @@ var DownloadStore = /*#__PURE__*/function () {
|
|
15422
15422
|
_context5.next = 14;
|
15423
15423
|
break;
|
15424
15424
|
}
|
15425
|
-
LOG$
|
15425
|
+
LOG$d.debug("The organization ".concat(data._id, " has no type of ").concat(validTypes.join(' or '), " nor a parent organization"));
|
15426
15426
|
throw new Error("Current organization is no ".concat(type == 'RETAILER' ? 'retailer channel or association' : 'supplier or dealer'));
|
15427
15427
|
case 14:
|
15428
15428
|
_context5.prev = 14;
|
@@ -15674,6 +15674,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
15674
15674
|
|
15675
15675
|
function ownKeys$X(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
15676
15676
|
function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$X(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$X(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
15677
|
+
var LOG$c = getLogger('Backoffice', 'ContextStore');
|
15678
|
+
|
15677
15679
|
/**
|
15678
15680
|
* ContextStore is a store that manages the contexts of the application.
|
15679
15681
|
*/
|
@@ -15706,7 +15708,11 @@ var ContextStore = /*#__PURE__*/function () {
|
|
15706
15708
|
key: "updateContext",
|
15707
15709
|
value: function updateContext(contextId, updates) {
|
15708
15710
|
var currentState = this.contexts.get(contextId) || {};
|
15709
|
-
|
15711
|
+
var updatedState = _objectSpread$X(_objectSpread$X({}, currentState), updates);
|
15712
|
+
this.contexts.set(contextId, updatedState);
|
15713
|
+
LOG$c.debug("Updated context ".concat(contextId), {
|
15714
|
+
updatedState: updatedState
|
15715
|
+
});
|
15710
15716
|
}
|
15711
15717
|
|
15712
15718
|
// Clear a context
|
@@ -38157,7 +38163,9 @@ function Items$1(_ref) {
|
|
38157
38163
|
return {
|
38158
38164
|
organizationId: organizationId,
|
38159
38165
|
catalogId: selectedCatalog._id,
|
38160
|
-
|
38166
|
+
catalogName: selectedCatalog.name,
|
38167
|
+
selectedSerieId: selectedSerie._id,
|
38168
|
+
selectedSerieNo: selectedSerie.serieNo
|
38161
38169
|
};
|
38162
38170
|
}, [organizationId, selectedCatalog, selectedSerie]);
|
38163
38171
|
var configuration = useMemo(function () {
|
@@ -38174,12 +38182,12 @@ function Items$1(_ref) {
|
|
38174
38182
|
return {
|
38175
38183
|
type: 'dotnetSSM',
|
38176
38184
|
apiInterface: {
|
38177
|
-
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${
|
38178
|
-
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${
|
38179
|
-
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${
|
38180
|
-
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${
|
38181
|
-
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${
|
38182
|
-
bulk: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${
|
38185
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerieId}/items',
|
38186
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerieId}/items',
|
38187
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerieId}/items/${_id}',
|
38188
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerieId}/items/${_id}',
|
38189
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerieId}/items/${_id}',
|
38190
|
+
bulk: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerieId}/items/bulk'
|
38183
38191
|
},
|
38184
38192
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
38185
38193
|
floatingFilter: true,
|
@@ -38410,7 +38418,12 @@ function Items$1(_ref) {
|
|
38410
38418
|
field: '_id',
|
38411
38419
|
editable: false,
|
38412
38420
|
cellDataType: 'objectId'
|
38413
|
-
}]
|
38421
|
+
}],
|
38422
|
+
exports: {
|
38423
|
+
excel: {
|
38424
|
+
fileName: 'items_${catalogName}_${selectedSerieNo}.xlsx'
|
38425
|
+
}
|
38426
|
+
}
|
38414
38427
|
};
|
38415
38428
|
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
|
38416
38429
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
@@ -38418,7 +38431,7 @@ function Items$1(_ref) {
|
|
38418
38431
|
applicationData: applicationData,
|
38419
38432
|
configuration: configuration,
|
38420
38433
|
hooks: hooks
|
38421
|
-
}, selectedSerie);
|
38434
|
+
}, selectedSerie._id);
|
38422
38435
|
}
|
38423
38436
|
|
38424
38437
|
var TableItems = observer(function () {
|
@@ -38468,7 +38481,7 @@ var TableItems = observer(function () {
|
|
38468
38481
|
}), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Items$1, {
|
38469
38482
|
organizationId: organizationId,
|
38470
38483
|
selectedCatalog: selectedCatalog,
|
38471
|
-
selectedSerie: selectedSerie
|
38484
|
+
selectedSerie: selectedSerie,
|
38472
38485
|
apiConfig: apiConfig,
|
38473
38486
|
hooks: hooks
|
38474
38487
|
})]
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ContextStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContextStore.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"ContextStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContextStore.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,aAAa,CAAC;AAKpC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;IAGnB,OAAO,CAAC,IAAI;IAFxB,OAAO,CAAC,QAAQ,CAA+B;gBAE3B,IAAI,EAAE,SAAS;IAUnC,UAAU,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,CAAW,GAAG,CAAC;IAQ9D,aAAa,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;IAQ9D,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;CAGtC"}
|
@@ -5,7 +5,7 @@ import { CatalogData } from '../types';
|
|
5
5
|
export default function Items({ organizationId, selectedCatalog, apiConfig, selectedSerie, hooks, }: {
|
6
6
|
organizationId: string;
|
7
7
|
selectedCatalog: CatalogData;
|
8
|
-
selectedSerie:
|
8
|
+
selectedSerie: any;
|
9
9
|
apiConfig: ApiConfig;
|
10
10
|
hooks?: DivaSpreadsheetHooks<any>;
|
11
11
|
}): React.JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,
|
1
|
+
{"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,cAAc,EACd,eAAe,EACf,SAAS,EACT,aAAa,EACb,KAAK,GACN,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC,qBAuUA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,eAAO,MAAM,UAAU;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,eAAO,MAAM,UAAU;;CA2CrB,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
3
|
-
"version": "25.10.0-beta.
|
3
|
+
"version": "25.10.0-beta.11",
|
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": "5.4.0",
|
17
17
|
"@babel/runtime": "7.24.7",
|
18
|
-
"@crystaldesign/content-box": "25.10.0-beta.
|
19
|
-
"@crystaldesign/content-item": "25.10.0-beta.
|
20
|
-
"@crystaldesign/diva-core": "25.10.0-beta.
|
21
|
-
"@crystaldesign/diva-utils": "25.10.0-beta.
|
22
|
-
"@crystaldesign/media-upload": "25.10.0-beta.
|
23
|
-
"@crystaldesign/rtf-editor": "25.10.0-beta.
|
24
|
-
"@crystaldesign/spreadsheet": "25.10.0-beta.
|
18
|
+
"@crystaldesign/content-box": "25.10.0-beta.11",
|
19
|
+
"@crystaldesign/content-item": "25.10.0-beta.11",
|
20
|
+
"@crystaldesign/diva-core": "25.10.0-beta.11",
|
21
|
+
"@crystaldesign/diva-utils": "25.10.0-beta.11",
|
22
|
+
"@crystaldesign/media-upload": "25.10.0-beta.11",
|
23
|
+
"@crystaldesign/rtf-editor": "25.10.0-beta.11",
|
24
|
+
"@crystaldesign/spreadsheet": "25.10.0-beta.11",
|
25
25
|
"@google/model-viewer": "3.5.0",
|
26
26
|
"ag-charts-community": "^10.1.0",
|
27
27
|
"ag-charts-react": "^10.1.0",
|
@@ -51,5 +51,5 @@
|
|
51
51
|
},
|
52
52
|
"module": "build/esm/index.js",
|
53
53
|
"types": "./build/types/backoffice/src/index.d.ts",
|
54
|
-
"gitHead": "
|
54
|
+
"gitHead": "870882c883a4e03e555de1fbb2cd02193d6f2efe"
|
55
55
|
}
|