@crystaldesign/diva-backoffice 24.14.0-beta.2 → 24.14.0-beta.20
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 +1026 -83
- package/build/types/backoffice/src/ui/IDMCatalogEditor/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatures/index.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatures/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/CatalogTable/useTableData.d.ts.map +1 -1
- package/build/types/backoffice/src/utils/ApiHandler.d.ts +1 -1
- package/build/types/backoffice/src/utils/ApiHandler.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -844,9 +844,9 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
844
844
|
}, {
|
|
845
845
|
key: "delete",
|
|
846
846
|
value: function () {
|
|
847
|
-
var _delete2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(id, mapping, mappingData, isApi2) {
|
|
847
|
+
var _delete2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(id, mapping, mappingData, isApi2, sessionGuid) {
|
|
848
848
|
var _this$_rootStore3, _url, _ref6, _response$numItemsDel;
|
|
849
|
-
var jwt, url, response;
|
|
849
|
+
var jwt, url, headers, response;
|
|
850
850
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
851
851
|
while (1) switch (_context6.prev = _context6.next) {
|
|
852
852
|
case 0:
|
|
@@ -885,12 +885,13 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
885
885
|
url.searchParams.append(this._deleteIdField, id);
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
|
-
|
|
888
|
+
headers = {};
|
|
889
|
+
if (jwt) headers['Authorization'] = 'Bearer ' + jwt;
|
|
890
|
+
if (sessionGuid) headers['SessionGuid'] = sessionGuid;
|
|
891
|
+
_context6.next = 10;
|
|
889
892
|
return fetch((_url = url) === null || _url === void 0 ? void 0 : _url.toString(), {
|
|
890
893
|
method: isApi2 ? 'POST' : 'DELETE',
|
|
891
|
-
headers:
|
|
892
|
-
Authorization: 'Bearer ' + jwt
|
|
893
|
-
} : {})
|
|
894
|
+
headers: headers
|
|
894
895
|
}).then(/*#__PURE__*/function () {
|
|
895
896
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(r) {
|
|
896
897
|
var code, error, err;
|
|
@@ -926,7 +927,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
926
927
|
}
|
|
927
928
|
}, _callee5, null, [[1, 9]]);
|
|
928
929
|
}));
|
|
929
|
-
return function (
|
|
930
|
+
return function (_x16) {
|
|
930
931
|
return _ref5.apply(this, arguments);
|
|
931
932
|
};
|
|
932
933
|
}()).then(function (r) {
|
|
@@ -936,16 +937,16 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
936
937
|
return undefined;
|
|
937
938
|
}
|
|
938
939
|
});
|
|
939
|
-
case
|
|
940
|
+
case 10:
|
|
940
941
|
response = _context6.sent;
|
|
941
942
|
return _context6.abrupt("return", (_ref6 = (_response$numItemsDel = response === null || response === void 0 ? void 0 : response.numItemsDeleted) !== null && _response$numItemsDel !== void 0 ? _response$numItemsDel : response) !== null && _ref6 !== void 0 ? _ref6 : true);
|
|
942
|
-
case
|
|
943
|
+
case 12:
|
|
943
944
|
case "end":
|
|
944
945
|
return _context6.stop();
|
|
945
946
|
}
|
|
946
947
|
}, _callee6, this);
|
|
947
948
|
}));
|
|
948
|
-
function _delete(_x11, _x12, _x13, _x14) {
|
|
949
|
+
function _delete(_x11, _x12, _x13, _x14, _x15) {
|
|
949
950
|
return _delete2.apply(this, arguments);
|
|
950
951
|
}
|
|
951
952
|
return _delete;
|
|
@@ -984,7 +985,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
984
985
|
}
|
|
985
986
|
}, _callee7, this);
|
|
986
987
|
}));
|
|
987
|
-
function read(
|
|
988
|
+
function read(_x17, _x18, _x19) {
|
|
988
989
|
return _read.apply(this, arguments);
|
|
989
990
|
}
|
|
990
991
|
return read;
|
|
@@ -1037,7 +1038,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1037
1038
|
}
|
|
1038
1039
|
}, _callee8, this);
|
|
1039
1040
|
}));
|
|
1040
|
-
function readList(
|
|
1041
|
+
function readList(_x20, _x21, _x22, _x23, _x24) {
|
|
1041
1042
|
return _readList.apply(this, arguments);
|
|
1042
1043
|
}
|
|
1043
1044
|
return readList;
|
|
@@ -1107,7 +1108,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1107
1108
|
}
|
|
1108
1109
|
}, _callee9, this);
|
|
1109
1110
|
}));
|
|
1110
|
-
function readInternal(
|
|
1111
|
+
function readInternal(_x25, _x26, _x27, _x28, _x29) {
|
|
1111
1112
|
return _readInternal.apply(this, arguments);
|
|
1112
1113
|
}
|
|
1113
1114
|
return readInternal;
|
|
@@ -3718,7 +3719,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
3718
3719
|
filterServerSide: true
|
|
3719
3720
|
},
|
|
3720
3721
|
create: '${api2}?function=SetMetaData',
|
|
3721
|
-
"delete": '${api2}?function=DeleteMetaData&CatalogCodex=${codex}
|
|
3722
|
+
"delete": '${api2}?function=DeleteMetaData&CatalogCodex=${codex}'
|
|
3722
3723
|
},
|
|
3723
3724
|
mapping: {
|
|
3724
3725
|
type: 'query',
|
|
@@ -3868,7 +3869,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
3868
3869
|
}],
|
|
3869
3870
|
apiInterface: {
|
|
3870
3871
|
read: {
|
|
3871
|
-
list: '${api2}?function=GetBackofficePartlist&
|
|
3872
|
+
list: '${api2}?function=GetBackofficePartlist&catalogCodex=${catalogCodex}',
|
|
3872
3873
|
filterServerSide: true
|
|
3873
3874
|
},
|
|
3874
3875
|
create: '${api2}?function=SetJsonPartlist'
|
|
@@ -3878,9 +3879,6 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
3878
3879
|
map: [{
|
|
3879
3880
|
sourceField: 'catalogCodex',
|
|
3880
3881
|
targetField: 'catalogCodex'
|
|
3881
|
-
}, {
|
|
3882
|
-
sourceField: 'sessionGuID',
|
|
3883
|
-
targetField: 'sessionGuID'
|
|
3884
3882
|
}, {
|
|
3885
3883
|
sourceField: 'newData',
|
|
3886
3884
|
targetField: 'newData'
|
|
@@ -8039,6 +8037,86 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
8039
8037
|
hidden: function hidden(data) {
|
|
8040
8038
|
return (data === null || data === void 0 ? void 0 : data.type) === 'ASSOCIATION' || (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
8041
8039
|
}
|
|
8040
|
+
}, {
|
|
8041
|
+
name: ['settings', 'enable3DExport'],
|
|
8042
|
+
label: t('backoffice.form.organizationdetails.items.settings.enable3DExport'),
|
|
8043
|
+
type: 'radio',
|
|
8044
|
+
optionType: 'button',
|
|
8045
|
+
options: [{
|
|
8046
|
+
label: t('backoffice.form.organizationdetails.items.vererbt'),
|
|
8047
|
+
value: undefined
|
|
8048
|
+
}, {
|
|
8049
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
8050
|
+
value: true
|
|
8051
|
+
}, {
|
|
8052
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
8053
|
+
value: false
|
|
8054
|
+
}],
|
|
8055
|
+
permission: 'backoffice_sys_admin_organizations'
|
|
8056
|
+
}, {
|
|
8057
|
+
name: ['settings', 'enableAR'],
|
|
8058
|
+
label: t('backoffice.form.organizationdetails.items.settings.enableAR'),
|
|
8059
|
+
permission: 'backoffice_sys_admin_organizations',
|
|
8060
|
+
type: 'radio',
|
|
8061
|
+
optionType: 'button',
|
|
8062
|
+
options: [{
|
|
8063
|
+
label: t('backoffice.form.organizationdetails.items.vererbt'),
|
|
8064
|
+
value: undefined
|
|
8065
|
+
}, {
|
|
8066
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
8067
|
+
value: true
|
|
8068
|
+
}, {
|
|
8069
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
8070
|
+
value: false
|
|
8071
|
+
}]
|
|
8072
|
+
}, {
|
|
8073
|
+
name: ['settings', 'enableARLeaflet'],
|
|
8074
|
+
label: t('backoffice.form.organizationdetails.items.settings.enableARLeaflet'),
|
|
8075
|
+
permission: 'backoffice_sys_admin_organizations',
|
|
8076
|
+
type: 'radio',
|
|
8077
|
+
optionType: 'button',
|
|
8078
|
+
options: [{
|
|
8079
|
+
label: t('backoffice.form.organizationdetails.items.vererbt'),
|
|
8080
|
+
value: undefined
|
|
8081
|
+
}, {
|
|
8082
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
8083
|
+
value: true
|
|
8084
|
+
}, {
|
|
8085
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
8086
|
+
value: false
|
|
8087
|
+
}]
|
|
8088
|
+
}, {
|
|
8089
|
+
name: ['settings', 'enableRTV'],
|
|
8090
|
+
label: t('backoffice.form.organizationdetails.items.settings.enableRTV'),
|
|
8091
|
+
permission: 'backoffice_sys_admin_organizations',
|
|
8092
|
+
type: 'radio',
|
|
8093
|
+
optionType: 'button',
|
|
8094
|
+
options: [{
|
|
8095
|
+
label: t('backoffice.form.organizationdetails.items.vererbt'),
|
|
8096
|
+
value: undefined
|
|
8097
|
+
}, {
|
|
8098
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
8099
|
+
value: true
|
|
8100
|
+
}, {
|
|
8101
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
8102
|
+
value: false
|
|
8103
|
+
}]
|
|
8104
|
+
}, {
|
|
8105
|
+
name: ['settings', 'forceRTV'],
|
|
8106
|
+
label: t('backoffice.form.organizationdetails.items.settings.forceRTV'),
|
|
8107
|
+
permission: 'backoffice_sys_admin_organizations',
|
|
8108
|
+
type: 'radio',
|
|
8109
|
+
optionType: 'button',
|
|
8110
|
+
options: [{
|
|
8111
|
+
label: t('backoffice.form.organizationdetails.items.vererbt'),
|
|
8112
|
+
value: undefined
|
|
8113
|
+
}, {
|
|
8114
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
8115
|
+
value: true
|
|
8116
|
+
}, {
|
|
8117
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
8118
|
+
value: false
|
|
8119
|
+
}]
|
|
8042
8120
|
}, {
|
|
8043
8121
|
name: ['settings', 'ruleDescWithoutParenthesis'],
|
|
8044
8122
|
label: t('backoffice.form.organizationdetails.items.settings.ruleDescWithoutParenthesis'),
|
|
@@ -8919,6 +8997,9 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
8919
8997
|
}, {
|
|
8920
8998
|
value: 'MASTER',
|
|
8921
8999
|
label: 'MASTER'
|
|
9000
|
+
}, {
|
|
9001
|
+
value: '3DEXPORT',
|
|
9002
|
+
label: '3DEXPORT'
|
|
8922
9003
|
}, {
|
|
8923
9004
|
value: 'SPIN',
|
|
8924
9005
|
label: 'SPIN'
|
|
@@ -9108,7 +9189,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
9108
9189
|
label: t('backoffice.form.renderjob.itemSelector'),
|
|
9109
9190
|
mode: 'single',
|
|
9110
9191
|
type: 'select',
|
|
9111
|
-
values: ['HQ', 'AR', 'MASTER', 'SPIN', 'CUTOUT'],
|
|
9192
|
+
values: ['HQ', 'AR', 'MASTER', '3DEXPORT', 'SPIN', 'CUTOUT'],
|
|
9112
9193
|
readonly: {
|
|
9113
9194
|
field: 'state',
|
|
9114
9195
|
op: 'gt',
|
|
@@ -9705,6 +9786,170 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
9705
9786
|
label: t('backoffice.form.renderjob.items.productName'),
|
|
9706
9787
|
type: 'input',
|
|
9707
9788
|
readonly: true
|
|
9789
|
+
}, {
|
|
9790
|
+
name: 'functionType',
|
|
9791
|
+
label: t('backoffice.form.renderjob.items.functionType'),
|
|
9792
|
+
type: 'select',
|
|
9793
|
+
mode: 'single',
|
|
9794
|
+
readonly: {
|
|
9795
|
+
field: 'state',
|
|
9796
|
+
op: 'gt',
|
|
9797
|
+
value: 3
|
|
9798
|
+
},
|
|
9799
|
+
allowClear: true,
|
|
9800
|
+
values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
|
|
9801
|
+
}, {
|
|
9802
|
+
name: 'priority',
|
|
9803
|
+
label: t('backoffice.form.renderjob.items.priority'),
|
|
9804
|
+
readonly: {
|
|
9805
|
+
field: 'state',
|
|
9806
|
+
op: 'gt',
|
|
9807
|
+
value: 3
|
|
9808
|
+
}
|
|
9809
|
+
}, {
|
|
9810
|
+
name: 'arViewerSetting',
|
|
9811
|
+
label: t('backoffice.form.renderjob.items.arViewerSetting'),
|
|
9812
|
+
mode: 'single',
|
|
9813
|
+
values: ['default', 'pfister'],
|
|
9814
|
+
readonly: {
|
|
9815
|
+
field: 'state',
|
|
9816
|
+
op: 'gt',
|
|
9817
|
+
value: 3
|
|
9818
|
+
},
|
|
9819
|
+
type: 'select'
|
|
9820
|
+
}, {
|
|
9821
|
+
label: t('backoffice.form.renderjob.items.dracoCompression'),
|
|
9822
|
+
name: 'dracoCompression',
|
|
9823
|
+
type: 'checkbox',
|
|
9824
|
+
readonly: {
|
|
9825
|
+
field: 'state',
|
|
9826
|
+
op: 'gt',
|
|
9827
|
+
value: 3
|
|
9828
|
+
}
|
|
9829
|
+
}, {
|
|
9830
|
+
label: t('backoffice.form.renderjob.items.originPosition'),
|
|
9831
|
+
name: 'originPosition',
|
|
9832
|
+
type: 'select',
|
|
9833
|
+
mode: 'single',
|
|
9834
|
+
translationPrefix: 'backoffice.form.renderjob.items',
|
|
9835
|
+
values: ['leftbackbottom', 'center'],
|
|
9836
|
+
readonly: {
|
|
9837
|
+
field: 'state',
|
|
9838
|
+
op: 'gt',
|
|
9839
|
+
value: 3
|
|
9840
|
+
}
|
|
9841
|
+
}, {
|
|
9842
|
+
name: 'engine',
|
|
9843
|
+
label: t('backoffice.form.renderjob.items.engine'),
|
|
9844
|
+
type: 'select',
|
|
9845
|
+
mode: 'single',
|
|
9846
|
+
marker: true,
|
|
9847
|
+
values: ['blender', 'unity', 'max'],
|
|
9848
|
+
readonly: {
|
|
9849
|
+
field: 'state',
|
|
9850
|
+
op: 'gt',
|
|
9851
|
+
value: 3
|
|
9852
|
+
}
|
|
9853
|
+
}, {
|
|
9854
|
+
name: 'arBakedMapsResolution',
|
|
9855
|
+
label: t('backoffice.form.renderjob.items.arBakedMapsResolution'),
|
|
9856
|
+
marker: true,
|
|
9857
|
+
type: 'input',
|
|
9858
|
+
readonly: {
|
|
9859
|
+
field: 'state',
|
|
9860
|
+
op: 'gt',
|
|
9861
|
+
value: 3
|
|
9862
|
+
},
|
|
9863
|
+
placeholder: 'z.B.: 1024'
|
|
9864
|
+
}, {
|
|
9865
|
+
name: 'fileFormat',
|
|
9866
|
+
label: t('backoffice.form.renderjob.items.fileFormat'),
|
|
9867
|
+
mode: 'single',
|
|
9868
|
+
type: 'select',
|
|
9869
|
+
marker: true,
|
|
9870
|
+
values: ['glb', 'gltf', 'fbx', 'blend'],
|
|
9871
|
+
readonly: {
|
|
9872
|
+
field: 'state',
|
|
9873
|
+
op: 'gt',
|
|
9874
|
+
value: 3
|
|
9875
|
+
},
|
|
9876
|
+
placeholder: 'z.B.: jpg, png, tif'
|
|
9877
|
+
}, {
|
|
9878
|
+
name: 'fileName',
|
|
9879
|
+
label: t('backoffice.form.renderjob.items.fileName'),
|
|
9880
|
+
type: 'input',
|
|
9881
|
+
readonly: {
|
|
9882
|
+
field: 'state',
|
|
9883
|
+
op: 'gt',
|
|
9884
|
+
value: 3
|
|
9885
|
+
},
|
|
9886
|
+
placeholder: 'z.B.: testrendering',
|
|
9887
|
+
dynamic: {
|
|
9888
|
+
seperator: '_',
|
|
9889
|
+
fields: ['job', 'divaNr', 'divaNrVariantId']
|
|
9890
|
+
}
|
|
9891
|
+
}, {
|
|
9892
|
+
name: 'group',
|
|
9893
|
+
label: t('backoffice.form.renderjob.items.group'),
|
|
9894
|
+
type: 'input',
|
|
9895
|
+
readonly: {
|
|
9896
|
+
field: 'state',
|
|
9897
|
+
op: 'gt',
|
|
9898
|
+
value: 3
|
|
9899
|
+
}
|
|
9900
|
+
}, {
|
|
9901
|
+
name: 'product',
|
|
9902
|
+
label: t('backoffice.form.renderjob.items.product'),
|
|
9903
|
+
type: 'input',
|
|
9904
|
+
readonly: true
|
|
9905
|
+
}, {
|
|
9906
|
+
name: 'organizationName',
|
|
9907
|
+
label: t('backoffice.form.renderjob.items.organizationName'),
|
|
9908
|
+
type: 'input',
|
|
9909
|
+
readonly: true
|
|
9910
|
+
}, {
|
|
9911
|
+
name: 'organization',
|
|
9912
|
+
label: t('backoffice.form.renderjob.items.organization'),
|
|
9913
|
+
type: 'input',
|
|
9914
|
+
readonly: true
|
|
9915
|
+
}, {
|
|
9916
|
+
name: 'createdByName',
|
|
9917
|
+
label: t('backoffice.form.renderjob.items.createdByName'),
|
|
9918
|
+
type: 'input',
|
|
9919
|
+
readonly: true
|
|
9920
|
+
}, {
|
|
9921
|
+
name: 'createdByEmail',
|
|
9922
|
+
label: t('backoffice.form.renderjob.items.createdByEmail'),
|
|
9923
|
+
type: 'input',
|
|
9924
|
+
readonly: true
|
|
9925
|
+
}, {
|
|
9926
|
+
name: 'createdBy',
|
|
9927
|
+
label: t('backoffice.form.renderjob.items.createdBy'),
|
|
9928
|
+
type: 'input',
|
|
9929
|
+
readonly: true
|
|
9930
|
+
}], [{
|
|
9931
|
+
name: '_id',
|
|
9932
|
+
label: 'ID',
|
|
9933
|
+
type: 'input',
|
|
9934
|
+
readonly: true
|
|
9935
|
+
}, {
|
|
9936
|
+
name: 'debugUser',
|
|
9937
|
+
label: t('backoffice.form.renderjob.items.debugUser'),
|
|
9938
|
+
type: 'checkbox',
|
|
9939
|
+
valueOnEnabled: {
|
|
9940
|
+
globalValue: 'userId'
|
|
9941
|
+
}
|
|
9942
|
+
}, {
|
|
9943
|
+
name: 'state',
|
|
9944
|
+
label: t('backoffice.form.renderjob.items.state'),
|
|
9945
|
+
type: 'display',
|
|
9946
|
+
translationPrefix: 'renderjob.state',
|
|
9947
|
+
readonly: true
|
|
9948
|
+
}, {
|
|
9949
|
+
name: 'productName',
|
|
9950
|
+
label: t('backoffice.form.renderjob.items.productName'),
|
|
9951
|
+
type: 'input',
|
|
9952
|
+
readonly: true
|
|
9708
9953
|
}, {
|
|
9709
9954
|
name: 'functionType',
|
|
9710
9955
|
label: t('backoffice.form.renderjob.items.functionType'),
|
|
@@ -26271,7 +26516,7 @@ function useTableData$1 (_ref) {
|
|
|
26271
26516
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
|
26272
26517
|
mappingData = _objectSpread$j(_objectSpread$j({}, mappingData), state.mappingData);
|
|
26273
26518
|
_context2.next = 5;
|
|
26274
|
-
return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData, true);
|
|
26519
|
+
return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData, true, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid);
|
|
26275
26520
|
case 5:
|
|
26276
26521
|
deleteResult = _context2.sent;
|
|
26277
26522
|
if (deleteResult) {
|
|
@@ -26810,7 +27055,7 @@ function useTableData (_ref) {
|
|
|
26810
27055
|
genericProps: prefilter.toggle
|
|
26811
27056
|
} : undefined);
|
|
26812
27057
|
_context3.next = 14;
|
|
26813
|
-
return apiHandler.readList(parentMapping || configuration.mapping, mapping, ssf,
|
|
27058
|
+
return apiHandler.readList(parentMapping || configuration.mapping, mapping, ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter15 = configuration.filter) !== null && _configuration$filter15 !== void 0 && (_configuration$filter15 = _configuration$filter15.toggle) !== null && _configuration$filter15 !== void 0 && _configuration$filter15.inQuery) ? (_prefilter$toggle = prefilter.toggle) !== null && _prefilter$toggle !== void 0 ? _prefilter$toggle : {} : {}, (_parseFilter = parseFilter(p.filters, undefined)) === null || _parseFilter === void 0 ? void 0 : _parseFilter.slice(1, -1)));
|
|
26814
27059
|
case 14:
|
|
26815
27060
|
data = _context3.sent;
|
|
26816
27061
|
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, mapping, ssf);
|
|
@@ -29558,7 +29803,8 @@ function PublishCustomCell (_ref) {
|
|
|
29558
29803
|
var data = _ref.data,
|
|
29559
29804
|
apiConfig = _ref.apiConfig,
|
|
29560
29805
|
context = _ref.context,
|
|
29561
|
-
api = _ref.api
|
|
29806
|
+
api = _ref.api,
|
|
29807
|
+
node = _ref.node;
|
|
29562
29808
|
var _useTranslation = useTranslation(),
|
|
29563
29809
|
t = _useTranslation.t;
|
|
29564
29810
|
var _React$useState = React.useState(false),
|
|
@@ -29573,35 +29819,51 @@ function PublishCustomCell (_ref) {
|
|
|
29573
29819
|
while (1) switch (_context.prev = _context.next) {
|
|
29574
29820
|
case 0:
|
|
29575
29821
|
isLoading(true);
|
|
29822
|
+
_context.prev = 1;
|
|
29576
29823
|
if (!publish) {
|
|
29577
|
-
_context.next =
|
|
29824
|
+
_context.next = 7;
|
|
29578
29825
|
break;
|
|
29579
29826
|
}
|
|
29580
|
-
_context.next =
|
|
29827
|
+
_context.next = 5;
|
|
29581
29828
|
return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
|
|
29582
29829
|
update: apiConfig.enricherService + '/packages/${_id}/publish',
|
|
29583
29830
|
usePut: true
|
|
29584
29831
|
});
|
|
29585
|
-
case
|
|
29586
|
-
_context.next =
|
|
29832
|
+
case 5:
|
|
29833
|
+
_context.next = 9;
|
|
29587
29834
|
break;
|
|
29588
|
-
case
|
|
29589
|
-
_context.next =
|
|
29835
|
+
case 7:
|
|
29836
|
+
_context.next = 9;
|
|
29590
29837
|
return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
|
|
29591
29838
|
update: apiConfig.enricherService + '/packages/${_id}/unpublish',
|
|
29592
29839
|
usePut: true
|
|
29593
29840
|
});
|
|
29594
|
-
case
|
|
29841
|
+
case 9:
|
|
29595
29842
|
context === null || context === void 0 || context.reset({
|
|
29596
29843
|
context: context,
|
|
29597
29844
|
api: api
|
|
29598
29845
|
});
|
|
29846
|
+
_context.next = 15;
|
|
29847
|
+
break;
|
|
29848
|
+
case 12:
|
|
29849
|
+
_context.prev = 12;
|
|
29850
|
+
_context.t0 = _context["catch"](1);
|
|
29851
|
+
context.onError({
|
|
29852
|
+
context: context,
|
|
29853
|
+
api: api,
|
|
29854
|
+
error: _context.t0,
|
|
29855
|
+
errorText: 'Error on publish/unpublish',
|
|
29856
|
+
node: node
|
|
29857
|
+
});
|
|
29858
|
+
case 15:
|
|
29859
|
+
_context.prev = 15;
|
|
29599
29860
|
isLoading(false);
|
|
29600
|
-
|
|
29861
|
+
return _context.finish(15);
|
|
29862
|
+
case 18:
|
|
29601
29863
|
case "end":
|
|
29602
29864
|
return _context.stop();
|
|
29603
29865
|
}
|
|
29604
|
-
}, _callee);
|
|
29866
|
+
}, _callee, null, [[1, 12, 15, 18]]);
|
|
29605
29867
|
}));
|
|
29606
29868
|
return function onChange(_x) {
|
|
29607
29869
|
return _ref2.apply(this, arguments);
|
|
@@ -29891,7 +30153,7 @@ function useModule$1 (currentModules) {
|
|
|
29891
30153
|
},
|
|
29892
30154
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29893
30155
|
label: /*#__PURE__*/jsx(Link, {
|
|
29894
|
-
to: 'catalogs/
|
|
30156
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/features' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29895
30157
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
|
|
29896
30158
|
})
|
|
29897
30159
|
}, {
|
|
@@ -29901,7 +30163,7 @@ function useModule$1 (currentModules) {
|
|
|
29901
30163
|
},
|
|
29902
30164
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29903
30165
|
label: /*#__PURE__*/jsx(Link, {
|
|
29904
|
-
to: 'catalogs/
|
|
30166
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29905
30167
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOption')
|
|
29906
30168
|
})
|
|
29907
30169
|
}, {
|
|
@@ -29911,7 +30173,7 @@ function useModule$1 (currentModules) {
|
|
|
29911
30173
|
},
|
|
29912
30174
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29913
30175
|
label: /*#__PURE__*/jsx(Link, {
|
|
29914
|
-
to: 'catalogs/
|
|
30176
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29915
30177
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
|
|
29916
30178
|
})
|
|
29917
30179
|
}
|
|
@@ -29933,7 +30195,7 @@ function useModule$1 (currentModules) {
|
|
|
29933
30195
|
},
|
|
29934
30196
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29935
30197
|
label: /*#__PURE__*/jsx(Link, {
|
|
29936
|
-
to: 'catalogs/
|
|
30198
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/tabgroups' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29937
30199
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups')
|
|
29938
30200
|
})
|
|
29939
30201
|
}, {
|
|
@@ -29963,7 +30225,7 @@ function useModule$1 (currentModules) {
|
|
|
29963
30225
|
},
|
|
29964
30226
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29965
30227
|
label: /*#__PURE__*/jsx(Link, {
|
|
29966
|
-
to: 'catalogs/
|
|
30228
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/efeature' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29967
30229
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
|
|
29968
30230
|
})
|
|
29969
30231
|
}, {
|
|
@@ -29973,7 +30235,7 @@ function useModule$1 (currentModules) {
|
|
|
29973
30235
|
},
|
|
29974
30236
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29975
30237
|
label: /*#__PURE__*/jsx(Link, {
|
|
29976
|
-
to: 'catalogs/
|
|
30238
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eoption' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29977
30239
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOption')
|
|
29978
30240
|
})
|
|
29979
30241
|
}, {
|
|
@@ -29983,7 +30245,7 @@ function useModule$1 (currentModules) {
|
|
|
29983
30245
|
},
|
|
29984
30246
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
29985
30247
|
label: /*#__PURE__*/jsx(Link, {
|
|
29986
|
-
to: 'catalogs/
|
|
30248
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eitem' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
29987
30249
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
|
|
29988
30250
|
})
|
|
29989
30251
|
}
|
|
@@ -30005,7 +30267,7 @@ function useModule$1 (currentModules) {
|
|
|
30005
30267
|
},
|
|
30006
30268
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30007
30269
|
label: /*#__PURE__*/jsx(Link, {
|
|
30008
|
-
to: 'catalogs/
|
|
30270
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/properties' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30009
30271
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableProperties')
|
|
30010
30272
|
})
|
|
30011
30273
|
}];
|
|
@@ -30148,7 +30410,8 @@ function TableProperties () {
|
|
|
30148
30410
|
field: 'name.DE',
|
|
30149
30411
|
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
30150
30412
|
isDictionary: true,
|
|
30151
|
-
pinned: true
|
|
30413
|
+
pinned: true,
|
|
30414
|
+
required: true
|
|
30152
30415
|
}, {
|
|
30153
30416
|
field: 'name.EN',
|
|
30154
30417
|
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
@@ -30169,7 +30432,8 @@ function TableProperties () {
|
|
|
30169
30432
|
field: 'value.DE',
|
|
30170
30433
|
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
30171
30434
|
isDictionary: true,
|
|
30172
|
-
pinned: true
|
|
30435
|
+
pinned: true,
|
|
30436
|
+
required: true
|
|
30173
30437
|
}, {
|
|
30174
30438
|
field: 'value.EN',
|
|
30175
30439
|
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
@@ -31496,10 +31760,16 @@ function TableCatalogs () {
|
|
|
31496
31760
|
1: t('backoffice.idmCatalog.general.label.formOfAddress.f1'),
|
|
31497
31761
|
2: t('backoffice.idmCatalog.general.label.formOfAddress.f2')
|
|
31498
31762
|
};
|
|
31763
|
+
var formOfAddressKeys = Object.keys(formOfAddressDic).map(function (key) {
|
|
31764
|
+
return parseInt(key);
|
|
31765
|
+
});
|
|
31499
31766
|
var priceDependentDic = {
|
|
31500
31767
|
0: t('backoffice.idmCatalog.general.label.priceDependent.p0'),
|
|
31501
31768
|
1: t('backoffice.idmCatalog.general.label.priceDependent.p1')
|
|
31502
31769
|
};
|
|
31770
|
+
var priceDependentKeys = Object.keys(priceDependentDic).map(function (key) {
|
|
31771
|
+
return parseInt(key);
|
|
31772
|
+
});
|
|
31503
31773
|
var unitDic = {
|
|
31504
31774
|
0: t('backoffice.idmCatalog.general.label.unit.u0'),
|
|
31505
31775
|
1: t('backoffice.idmCatalog.general.label.unit.u1'),
|
|
@@ -31509,6 +31779,9 @@ function TableCatalogs () {
|
|
|
31509
31779
|
1000000: t('backoffice.idmCatalog.general.label.unit.1u000000'),
|
|
31510
31780
|
1000000000: t('backoffice.idmCatalog.general.label.unit.u1000000000')
|
|
31511
31781
|
};
|
|
31782
|
+
var unitKeys = Object.keys(unitDic).map(function (key) {
|
|
31783
|
+
return parseInt(key);
|
|
31784
|
+
});
|
|
31512
31785
|
var roundingTypeDic = {
|
|
31513
31786
|
1: t('backoffice.idmCatalog.general.label.roundingType.r1'),
|
|
31514
31787
|
2: t('backoffice.idmCatalog.general.label.roundingType.r2'),
|
|
@@ -31730,7 +32003,9 @@ function TableCatalogs () {
|
|
|
31730
32003
|
field: 'isoCountryId'
|
|
31731
32004
|
}, {
|
|
31732
32005
|
field: 'glnNo',
|
|
31733
|
-
headerName: 'backoffice.idmCatalog.general.label.glnNo'
|
|
32006
|
+
headerName: 'backoffice.idmCatalog.general.label.glnNo',
|
|
32007
|
+
cellDataType: 'number',
|
|
32008
|
+
regex: '[0-9]{13}'
|
|
31734
32009
|
}, {
|
|
31735
32010
|
field: 'weeeNo',
|
|
31736
32011
|
headerName: 'backoffice.idmCatalog.general.label.weeeNo'
|
|
@@ -31742,7 +32017,8 @@ function TableCatalogs () {
|
|
|
31742
32017
|
field: 'manufacturerName2'
|
|
31743
32018
|
}, {
|
|
31744
32019
|
headerName: 'backoffice.idmCatalog.general.label.email',
|
|
31745
|
-
field: 'email'
|
|
32020
|
+
field: 'email',
|
|
32021
|
+
regex: "[a-zA-Z0-9._%+\\-!#$%'*/=?^_`{|}~]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}"
|
|
31746
32022
|
}, {
|
|
31747
32023
|
headerName: 'backoffice.idmCatalog.general.label.internetAddress',
|
|
31748
32024
|
field: 'internetAddress'
|
|
@@ -31757,10 +32033,14 @@ function TableCatalogs () {
|
|
|
31757
32033
|
field: 'city'
|
|
31758
32034
|
}, {
|
|
31759
32035
|
headerName: 'backoffice.idmCatalog.general.label.zipCodePostBox',
|
|
31760
|
-
field: 'zipCodePostBox'
|
|
32036
|
+
field: 'zipCodePostBox',
|
|
32037
|
+
customParams: {
|
|
32038
|
+
maxLength: 8
|
|
32039
|
+
}
|
|
31761
32040
|
}, {
|
|
31762
32041
|
headerName: 'backoffice.idmCatalog.general.label.postBox',
|
|
31763
|
-
field: 'postBox'
|
|
32042
|
+
field: 'postBox',
|
|
32043
|
+
regex: '[0-9a-zA-Z]{0,10}'
|
|
31764
32044
|
}, {
|
|
31765
32045
|
headerName: 'backoffice.idmCatalog.general.label.telephoneSwitchBoard',
|
|
31766
32046
|
field: 'telephoneSwitchBoard'
|
|
@@ -31788,7 +32068,7 @@ function TableCatalogs () {
|
|
|
31788
32068
|
cellDataType: 'enum',
|
|
31789
32069
|
customParams: {
|
|
31790
32070
|
displayTexts: formOfAddressDic,
|
|
31791
|
-
values:
|
|
32071
|
+
values: formOfAddressKeys,
|
|
31792
32072
|
displayLabelTemplate: '${name} (${value})'
|
|
31793
32073
|
}
|
|
31794
32074
|
}, {
|
|
@@ -31802,7 +32082,8 @@ function TableCatalogs () {
|
|
|
31802
32082
|
field: 'fax1'
|
|
31803
32083
|
}, {
|
|
31804
32084
|
headerName: 'backoffice.idmCatalog.general.label.email',
|
|
31805
|
-
field: 'email1'
|
|
32085
|
+
field: 'email1',
|
|
32086
|
+
regex: "[a-zA-Z0-9._%+\\-!#$%'*/=?^_`{|}~]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}"
|
|
31806
32087
|
}, {
|
|
31807
32088
|
headerName: 'backoffice.idmCatalog.general.label.street',
|
|
31808
32089
|
field: 'street1'
|
|
@@ -31833,7 +32114,7 @@ function TableCatalogs () {
|
|
|
31833
32114
|
cellDataType: 'enum',
|
|
31834
32115
|
customParams: {
|
|
31835
32116
|
displayTexts: formOfAddressDic,
|
|
31836
|
-
values:
|
|
32117
|
+
values: formOfAddressKeys,
|
|
31837
32118
|
displayLabelTemplate: '${name} (${value})'
|
|
31838
32119
|
}
|
|
31839
32120
|
}, {
|
|
@@ -31847,7 +32128,8 @@ function TableCatalogs () {
|
|
|
31847
32128
|
field: 'fax2'
|
|
31848
32129
|
}, {
|
|
31849
32130
|
headerName: 'backoffice.idmCatalog.general.label.email',
|
|
31850
|
-
field: 'email2'
|
|
32131
|
+
field: 'email2',
|
|
32132
|
+
regex: "[a-zA-Z0-9._%+\\-!#$%'*/=?^_`{|}~]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}"
|
|
31851
32133
|
}, {
|
|
31852
32134
|
headerName: 'backoffice.idmCatalog.general.label.street',
|
|
31853
32135
|
field: 'street2'
|
|
@@ -31873,7 +32155,7 @@ function TableCatalogs () {
|
|
|
31873
32155
|
cellDataType: 'enum',
|
|
31874
32156
|
customParams: {
|
|
31875
32157
|
displayTexts: priceDependentDic,
|
|
31876
|
-
values:
|
|
32158
|
+
values: priceDependentKeys,
|
|
31877
32159
|
displayLabelTemplate: '${name} (${value})'
|
|
31878
32160
|
}
|
|
31879
32161
|
}, {
|
|
@@ -31882,7 +32164,7 @@ function TableCatalogs () {
|
|
|
31882
32164
|
cellDataType: 'enum',
|
|
31883
32165
|
customParams: {
|
|
31884
32166
|
displayTexts: priceDependentDic,
|
|
31885
|
-
values:
|
|
32167
|
+
values: priceDependentKeys,
|
|
31886
32168
|
displayLabelTemplate: '${name} (${value})'
|
|
31887
32169
|
}
|
|
31888
32170
|
}, {
|
|
@@ -31891,7 +32173,7 @@ function TableCatalogs () {
|
|
|
31891
32173
|
cellDataType: 'enum',
|
|
31892
32174
|
customParams: {
|
|
31893
32175
|
displayTexts: priceDependentDic,
|
|
31894
|
-
values:
|
|
32176
|
+
values: priceDependentKeys,
|
|
31895
32177
|
displayLabelTemplate: '${name} (${value})'
|
|
31896
32178
|
}
|
|
31897
32179
|
}, {
|
|
@@ -31900,7 +32182,7 @@ function TableCatalogs () {
|
|
|
31900
32182
|
cellDataType: 'enum',
|
|
31901
32183
|
customParams: {
|
|
31902
32184
|
displayTexts: unitDic,
|
|
31903
|
-
values:
|
|
32185
|
+
values: unitKeys,
|
|
31904
32186
|
displayLabelTemplate: '${name} (${value})'
|
|
31905
32187
|
}
|
|
31906
32188
|
}, {
|
|
@@ -31909,7 +32191,7 @@ function TableCatalogs () {
|
|
|
31909
32191
|
cellDataType: 'enum',
|
|
31910
32192
|
customParams: {
|
|
31911
32193
|
displayTexts: unitDic,
|
|
31912
|
-
values:
|
|
32194
|
+
values: unitKeys,
|
|
31913
32195
|
displayLabelTemplate: '${name} (${value})'
|
|
31914
32196
|
}
|
|
31915
32197
|
}, {
|
|
@@ -32037,7 +32319,7 @@ function PrefilterSelector (_ref) {
|
|
|
32037
32319
|
value: '${_id}'
|
|
32038
32320
|
},
|
|
32039
32321
|
autoSelectFirst: true,
|
|
32040
|
-
title: t('backoffice.menu.items.label.
|
|
32322
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
|
32041
32323
|
value: selectedFeature,
|
|
32042
32324
|
onChange: function onChange(value) {
|
|
32043
32325
|
return setSelectedFeature ? setSelectedFeature(value) : null;
|
|
@@ -32084,6 +32366,46 @@ function useModule (currentModules) {
|
|
|
32084
32366
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32085
32367
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableItems')
|
|
32086
32368
|
})
|
|
32369
|
+
}, {
|
|
32370
|
+
key: 'features',
|
|
32371
|
+
style: {
|
|
32372
|
+
margin: 0
|
|
32373
|
+
},
|
|
32374
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
32375
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
32376
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/features' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32377
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures')
|
|
32378
|
+
})
|
|
32379
|
+
}, {
|
|
32380
|
+
key: 'options',
|
|
32381
|
+
style: {
|
|
32382
|
+
margin: 0
|
|
32383
|
+
},
|
|
32384
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
32385
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
32386
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32387
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions')
|
|
32388
|
+
})
|
|
32389
|
+
}, {
|
|
32390
|
+
key: 'featureclasses',
|
|
32391
|
+
style: {
|
|
32392
|
+
margin: 0
|
|
32393
|
+
},
|
|
32394
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
32395
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
32396
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/featureclasses' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32397
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses')
|
|
32398
|
+
})
|
|
32399
|
+
}, {
|
|
32400
|
+
key: 'decisions',
|
|
32401
|
+
style: {
|
|
32402
|
+
margin: 0
|
|
32403
|
+
},
|
|
32404
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
32405
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
32406
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/decisions' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32407
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions')
|
|
32408
|
+
})
|
|
32087
32409
|
}];
|
|
32088
32410
|
}, [catalogId]);
|
|
32089
32411
|
if (!catalogId) throw new Error('catalogId is required');
|
|
@@ -32167,6 +32489,9 @@ function TableItems () {
|
|
|
32167
32489
|
25: t('backoffice.idmCatalogEditor.items.label.metrage'),
|
|
32168
32490
|
26: t('backoffice.idmCatalogEditor.items.label.sonstiges')
|
|
32169
32491
|
};
|
|
32492
|
+
var typeKeyKeys = Object.keys(typeKeyDic).map(function (key) {
|
|
32493
|
+
return parseInt(key);
|
|
32494
|
+
});
|
|
32170
32495
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
32171
32496
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
32172
32497
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -32208,11 +32533,14 @@ function TableItems () {
|
|
|
32208
32533
|
dateFormat: 'LL',
|
|
32209
32534
|
floatingFilter: true,
|
|
32210
32535
|
colDef: [{
|
|
32211
|
-
field: 'typeNo'
|
|
32536
|
+
field: 'typeNo',
|
|
32537
|
+
required: true,
|
|
32538
|
+
unique: true
|
|
32212
32539
|
}, {
|
|
32213
32540
|
headerName: 'backoffice.idmCatalogEditor.items.label.priceTypeRef',
|
|
32214
32541
|
field: 'priceTypeRef',
|
|
32215
|
-
cellDataType: 'number'
|
|
32542
|
+
cellDataType: 'number',
|
|
32543
|
+
required: true
|
|
32216
32544
|
}, {
|
|
32217
32545
|
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
32218
32546
|
field: 'sequenceNo',
|
|
@@ -32225,7 +32553,8 @@ function TableItems () {
|
|
|
32225
32553
|
children: [{
|
|
32226
32554
|
field: 'shortText.DE',
|
|
32227
32555
|
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
32228
|
-
isDictionary: true
|
|
32556
|
+
isDictionary: true,
|
|
32557
|
+
required: true
|
|
32229
32558
|
}, {
|
|
32230
32559
|
field: 'shortText.EN',
|
|
32231
32560
|
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
@@ -32279,7 +32608,8 @@ function TableItems () {
|
|
|
32279
32608
|
displayTexts: itemIdentificationDic,
|
|
32280
32609
|
values: Object.keys(itemIdentificationDic),
|
|
32281
32610
|
displayLabelTemplate: '${name} (${value})'
|
|
32282
|
-
}
|
|
32611
|
+
},
|
|
32612
|
+
required: true
|
|
32283
32613
|
}]
|
|
32284
32614
|
}, {
|
|
32285
32615
|
headerName: 'backoffice.idmCatalog.items.label.common',
|
|
@@ -32289,9 +32619,15 @@ function TableItems () {
|
|
|
32289
32619
|
cellDataType: 'enum',
|
|
32290
32620
|
customParams: {
|
|
32291
32621
|
displayTexts: typeKeyDic,
|
|
32292
|
-
values:
|
|
32622
|
+
values: typeKeyKeys,
|
|
32293
32623
|
displayLabelTemplate: '${name} (${value})'
|
|
32294
|
-
}
|
|
32624
|
+
},
|
|
32625
|
+
required: true
|
|
32626
|
+
}, {
|
|
32627
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.featureClassRefNo',
|
|
32628
|
+
field: 'featureClassRefNo',
|
|
32629
|
+
cellDataType: 'number',
|
|
32630
|
+
required: true
|
|
32295
32631
|
}, {
|
|
32296
32632
|
headerName: 'backoffice.idmCatalogEditor.items.label.eClassNo',
|
|
32297
32633
|
field: 'eClassNo',
|
|
@@ -32458,6 +32794,9 @@ function TableSeries () {
|
|
|
32458
32794
|
2: t('backoffice.idmCatalog.series.label.purchaseRetail.p2'),
|
|
32459
32795
|
3: t('backoffice.idmCatalog.series.label.purchaseRetail.p3')
|
|
32460
32796
|
};
|
|
32797
|
+
var purchaseRetailIdKeys = Object.keys(purchaseRetailIdDic).map(function (key) {
|
|
32798
|
+
return parseInt(key);
|
|
32799
|
+
});
|
|
32461
32800
|
var applicationData = useMemo(function () {
|
|
32462
32801
|
return {
|
|
32463
32802
|
catalogId: catalogId,
|
|
@@ -32530,7 +32869,7 @@ function TableSeries () {
|
|
|
32530
32869
|
cellDataType: 'enum',
|
|
32531
32870
|
customParams: {
|
|
32532
32871
|
displayTexts: purchaseRetailIdDic,
|
|
32533
|
-
values:
|
|
32872
|
+
values: purchaseRetailIdKeys,
|
|
32534
32873
|
displayLabelTemplate: '${name} (${value})'
|
|
32535
32874
|
}
|
|
32536
32875
|
}, {
|
|
@@ -32626,29 +32965,633 @@ function TableSeries () {
|
|
|
32626
32965
|
});
|
|
32627
32966
|
}
|
|
32628
32967
|
|
|
32629
|
-
function
|
|
32630
|
-
|
|
32631
|
-
|
|
32632
|
-
|
|
32633
|
-
|
|
32634
|
-
|
|
32635
|
-
|
|
32636
|
-
|
|
32637
|
-
|
|
32968
|
+
function TableFeatures () {
|
|
32969
|
+
var _useTranslation = useTranslation(),
|
|
32970
|
+
t = _useTranslation.t;
|
|
32971
|
+
var _useModule = useModule(['features']),
|
|
32972
|
+
catalogId = _useModule.catalogId,
|
|
32973
|
+
organizationId = _useModule.organizationId,
|
|
32974
|
+
updateNavigation = _useModule.updateNavigation,
|
|
32975
|
+
apiConfig = _useModule.apiConfig;
|
|
32976
|
+
var headerPosVariationTypeDic = {
|
|
32977
|
+
I: t('backoffice.idmCatalog.features.label.vt.I'),
|
|
32978
|
+
K: t('backoffice.idmCatalog.features.label.vt.K'),
|
|
32979
|
+
P: t('backoffice.idmCatalog.features.label.vt.P')
|
|
32980
|
+
};
|
|
32981
|
+
var featureTDic = {
|
|
32982
|
+
M: t('backoffice.idmCatalog.features.label.featureTDic.M'),
|
|
32983
|
+
C: t('backoffice.idmCatalog.features.label.featureTDic.C'),
|
|
32984
|
+
O: t('backoffice.idmCatalog.features.label.featureTDic.O')
|
|
32985
|
+
};
|
|
32986
|
+
var applicationData = useMemo(function () {
|
|
32987
|
+
return {
|
|
32988
|
+
catalogId: catalogId,
|
|
32989
|
+
organizationId: organizationId
|
|
32990
|
+
};
|
|
32991
|
+
}, [catalogId]);
|
|
32992
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
32993
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
32994
|
+
title: /*#__PURE__*/jsxs("div", {
|
|
32995
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'), /*#__PURE__*/jsx(Space$1, {
|
|
32996
|
+
style: {
|
|
32997
|
+
"float": 'right'
|
|
32998
|
+
},
|
|
32999
|
+
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
33000
|
+
selectedCatalog: catalogId,
|
|
33001
|
+
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
33002
|
+
return updateNavigation(id);
|
|
33003
|
+
},
|
|
33004
|
+
idmService: apiConfig.idmService
|
|
33005
|
+
})
|
|
33006
|
+
})]
|
|
33007
|
+
})
|
|
33008
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33009
|
+
gridId: 'crud-grid_features',
|
|
33010
|
+
applicationData: applicationData,
|
|
33011
|
+
configuration: {
|
|
33012
|
+
type: 'dotnetSSM',
|
|
33013
|
+
apiInterface: {
|
|
33014
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features',
|
|
33015
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features',
|
|
33016
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}',
|
|
33017
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}',
|
|
33018
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}'
|
|
33019
|
+
},
|
|
33020
|
+
dateFormat: 'LL',
|
|
33021
|
+
colDef: [{
|
|
33022
|
+
field: 'featureNo',
|
|
33023
|
+
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
33024
|
+
required: true
|
|
33025
|
+
}, {
|
|
33026
|
+
headerName: 'backoffice.idmCatalog.features.label.featureText',
|
|
33027
|
+
marryChildren: true,
|
|
33028
|
+
children: [{
|
|
33029
|
+
field: 'featureText.DE',
|
|
33030
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33031
|
+
isDictionary: true,
|
|
33032
|
+
required: true
|
|
33033
|
+
}, {
|
|
33034
|
+
field: 'featureText.EN',
|
|
33035
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33036
|
+
isDictionary: true
|
|
33037
|
+
}, {
|
|
33038
|
+
field: 'featureText.FR',
|
|
33039
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33040
|
+
isDictionary: true
|
|
33041
|
+
}, {
|
|
33042
|
+
field: 'featureText.IT',
|
|
33043
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33044
|
+
isDictionary: true
|
|
33045
|
+
}]
|
|
33046
|
+
}, {
|
|
33047
|
+
field: 'sequenceNo',
|
|
33048
|
+
headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
|
|
33049
|
+
required: true,
|
|
33050
|
+
cellDataType: 'number'
|
|
33051
|
+
}, {
|
|
33052
|
+
field: 'headerPosVariationType',
|
|
33053
|
+
headerName: 'backoffice.idmCatalog.features.label.headerPosVariationType',
|
|
33054
|
+
required: true,
|
|
33055
|
+
cellDataType: 'enum',
|
|
33056
|
+
customParams: {
|
|
33057
|
+
displayTexts: headerPosVariationTypeDic,
|
|
33058
|
+
values: Object.keys(headerPosVariationTypeDic),
|
|
33059
|
+
displayLabelTemplate: '${name} (${value})'
|
|
33060
|
+
}
|
|
33061
|
+
}, {
|
|
33062
|
+
field: 'featureT',
|
|
33063
|
+
headerName: 'backoffice.idmCatalog.features.label.featureT',
|
|
33064
|
+
cellDataType: 'enum',
|
|
33065
|
+
customParams: {
|
|
33066
|
+
displayTexts: featureTDic,
|
|
33067
|
+
values: Object.keys(featureTDic),
|
|
33068
|
+
displayLabelTemplate: '${name} (${value})'
|
|
33069
|
+
}
|
|
33070
|
+
}, {
|
|
33071
|
+
field: 'measureUnit',
|
|
33072
|
+
headerName: 'backoffice.idmCatalog.features.label.measureUnit'
|
|
33073
|
+
}, {
|
|
33074
|
+
field: 'measureParameter',
|
|
33075
|
+
headerName: 'backoffice.idmCatalog.features.label.measureParameter'
|
|
33076
|
+
}, {
|
|
33077
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33078
|
+
field: 'lastUpdatedDate',
|
|
33079
|
+
cellDataType: 'dateString',
|
|
33080
|
+
editable: false
|
|
33081
|
+
}, {
|
|
33082
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33083
|
+
field: 'createdDate',
|
|
33084
|
+
cellDataType: 'dateString',
|
|
33085
|
+
editable: false
|
|
33086
|
+
}, {
|
|
33087
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33088
|
+
field: 'createdByDisplayText',
|
|
33089
|
+
editable: false
|
|
33090
|
+
}, {
|
|
33091
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33092
|
+
field: 'lastUpdatedByDisplayText',
|
|
33093
|
+
editable: false
|
|
33094
|
+
}, {
|
|
33095
|
+
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
33096
|
+
field: '_id',
|
|
33097
|
+
editable: false
|
|
33098
|
+
}, {
|
|
33099
|
+
field: 'organizationId',
|
|
33100
|
+
editable: false,
|
|
33101
|
+
hide: true,
|
|
33102
|
+
lockVisible: true,
|
|
33103
|
+
suppressColumnsToolPanel: true,
|
|
33104
|
+
defaultValue: '${organizationId}'
|
|
33105
|
+
}, {
|
|
33106
|
+
field: 'catalogId',
|
|
33107
|
+
editable: false,
|
|
33108
|
+
hide: true,
|
|
33109
|
+
lockVisible: true,
|
|
33110
|
+
suppressColumnsToolPanel: true,
|
|
33111
|
+
defaultValue: '${catalogId}'
|
|
33112
|
+
}]
|
|
33113
|
+
}
|
|
33114
|
+
})]
|
|
32638
33115
|
});
|
|
32639
33116
|
}
|
|
32640
|
-
|
|
32641
|
-
|
|
32642
|
-
|
|
32643
|
-
|
|
32644
|
-
|
|
32645
|
-
|
|
32646
|
-
|
|
32647
|
-
|
|
32648
|
-
|
|
32649
|
-
|
|
32650
|
-
|
|
32651
|
-
|
|
33117
|
+
|
|
33118
|
+
function TableOptions () {
|
|
33119
|
+
var _useTranslation = useTranslation(),
|
|
33120
|
+
t = _useTranslation.t;
|
|
33121
|
+
var _useModule = useModule(['options']),
|
|
33122
|
+
catalogId = _useModule.catalogId,
|
|
33123
|
+
updateNavigation = _useModule.updateNavigation,
|
|
33124
|
+
apiConfig = _useModule.apiConfig,
|
|
33125
|
+
organizationId = _useModule.organizationId;
|
|
33126
|
+
var _React$useState = React.useState(),
|
|
33127
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33128
|
+
selectedFeature = _React$useState2[0],
|
|
33129
|
+
setSelectedFeature = _React$useState2[1];
|
|
33130
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
33131
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33132
|
+
title: /*#__PURE__*/jsxs("div", {
|
|
33133
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsxs(Space$1, {
|
|
33134
|
+
style: {
|
|
33135
|
+
"float": 'right'
|
|
33136
|
+
},
|
|
33137
|
+
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
33138
|
+
selectedCatalog: catalogId,
|
|
33139
|
+
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
33140
|
+
return updateNavigation(id);
|
|
33141
|
+
},
|
|
33142
|
+
idmService: apiConfig.idmService
|
|
33143
|
+
}), /*#__PURE__*/jsx(PrefilterSelector, {
|
|
33144
|
+
type: 'option',
|
|
33145
|
+
catalogId: catalogId,
|
|
33146
|
+
selectedFeature: selectedFeature,
|
|
33147
|
+
setSelectedFeature: setSelectedFeature,
|
|
33148
|
+
idmService: apiConfig.idmService
|
|
33149
|
+
})]
|
|
33150
|
+
})]
|
|
33151
|
+
})
|
|
33152
|
+
}), selectedFeature && /*#__PURE__*/jsx(Spreadsheet, {
|
|
33153
|
+
gridId: 'crud-grid_options',
|
|
33154
|
+
applicationData: {
|
|
33155
|
+
organizationId: organizationId,
|
|
33156
|
+
catalogId: catalogId
|
|
33157
|
+
},
|
|
33158
|
+
configuration: {
|
|
33159
|
+
type: 'dotnetSSM',
|
|
33160
|
+
idCol: 'optionKey',
|
|
33161
|
+
apiInterface: {
|
|
33162
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options',
|
|
33163
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options',
|
|
33164
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}',
|
|
33165
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}',
|
|
33166
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}'
|
|
33167
|
+
},
|
|
33168
|
+
dateFormat: 'LL',
|
|
33169
|
+
floatingFilter: true,
|
|
33170
|
+
colDef: [{
|
|
33171
|
+
field: 'optionKey',
|
|
33172
|
+
required: true,
|
|
33173
|
+
unique: true
|
|
33174
|
+
}, {
|
|
33175
|
+
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
33176
|
+
field: 'sequenceNo',
|
|
33177
|
+
cellDataType: 'number'
|
|
33178
|
+
}, {
|
|
33179
|
+
headerName: 'backoffice.idmCatalog.common.label.texts',
|
|
33180
|
+
children: [{
|
|
33181
|
+
headerName: 'backoffice.idmCatalog.options.label.optionText',
|
|
33182
|
+
marryChildren: true,
|
|
33183
|
+
children: [{
|
|
33184
|
+
field: 'optionText.DE',
|
|
33185
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33186
|
+
isDictionary: true,
|
|
33187
|
+
required: true
|
|
33188
|
+
}, {
|
|
33189
|
+
field: 'optionText.EN',
|
|
33190
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33191
|
+
isDictionary: true
|
|
33192
|
+
}, {
|
|
33193
|
+
field: 'optionText.FR',
|
|
33194
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33195
|
+
isDictionary: true
|
|
33196
|
+
}, {
|
|
33197
|
+
field: 'optionText.IT',
|
|
33198
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33199
|
+
isDictionary: true
|
|
33200
|
+
}]
|
|
33201
|
+
}, {
|
|
33202
|
+
headerName: 'backoffice.idmCatalog.options.label.optionCommentText',
|
|
33203
|
+
marryChildren: true,
|
|
33204
|
+
children: [{
|
|
33205
|
+
field: 'optionCommentText.DE',
|
|
33206
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33207
|
+
isDictionary: true
|
|
33208
|
+
}, {
|
|
33209
|
+
field: 'optionCommentText.EN',
|
|
33210
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33211
|
+
isDictionary: true
|
|
33212
|
+
}, {
|
|
33213
|
+
field: 'optionCommentText.FR',
|
|
33214
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33215
|
+
isDictionary: true
|
|
33216
|
+
}, {
|
|
33217
|
+
field: 'optionCommentText.IT',
|
|
33218
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33219
|
+
isDictionary: true
|
|
33220
|
+
}]
|
|
33221
|
+
}, {
|
|
33222
|
+
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
|
33223
|
+
field: 'optionFreeText',
|
|
33224
|
+
cellDataType: 'boolean'
|
|
33225
|
+
}]
|
|
33226
|
+
}, {
|
|
33227
|
+
headerName: 'backoffice.idmCatalog.items.label.validation',
|
|
33228
|
+
children: [{
|
|
33229
|
+
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
|
33230
|
+
field: 'validFromDate',
|
|
33231
|
+
cellDataType: 'dateString'
|
|
33232
|
+
}, {
|
|
33233
|
+
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
|
33234
|
+
field: 'validUntilDate',
|
|
33235
|
+
cellDataType: 'dateString'
|
|
33236
|
+
}]
|
|
33237
|
+
}, {
|
|
33238
|
+
headerName: 'backoffice.idmCatalog.options.label.material',
|
|
33239
|
+
children: [{
|
|
33240
|
+
headerName: 'backoffice.idmCatalog.options.label.materialNo',
|
|
33241
|
+
field: 'materialNo'
|
|
33242
|
+
}, {
|
|
33243
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorR',
|
|
33244
|
+
field: 'materialColorR',
|
|
33245
|
+
cellDataType: 'number'
|
|
33246
|
+
}, {
|
|
33247
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorG',
|
|
33248
|
+
field: 'materialColorG',
|
|
33249
|
+
cellDataType: 'number'
|
|
33250
|
+
}, {
|
|
33251
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorB',
|
|
33252
|
+
field: 'materialColorR',
|
|
33253
|
+
cellDataType: 'number'
|
|
33254
|
+
}]
|
|
33255
|
+
}, {
|
|
33256
|
+
headerName: 'backoffice.idmCatalog.options.label.measurement',
|
|
33257
|
+
children: [{
|
|
33258
|
+
headerName: 'backoffice.idmCatalog.options.label.measureNo',
|
|
33259
|
+
field: 'measureNo'
|
|
33260
|
+
}, {
|
|
33261
|
+
headerName: 'backoffice.idmCatalog.options.label.measureValue',
|
|
33262
|
+
field: 'measureValue',
|
|
33263
|
+
cellDataType: 'number'
|
|
33264
|
+
}, {
|
|
33265
|
+
headerName: 'backoffice.idmCatalog.options.label.measureUnit',
|
|
33266
|
+
field: 'measureUnit'
|
|
33267
|
+
}]
|
|
33268
|
+
}, {
|
|
33269
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33270
|
+
field: 'lastUpdatedDate',
|
|
33271
|
+
cellDataType: 'dateString',
|
|
33272
|
+
editable: false
|
|
33273
|
+
}, {
|
|
33274
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33275
|
+
field: 'lastUpdatedByDisplayText',
|
|
33276
|
+
editable: false
|
|
33277
|
+
}, {
|
|
33278
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33279
|
+
field: 'createdDate',
|
|
33280
|
+
cellDataType: 'dateString',
|
|
33281
|
+
editable: false
|
|
33282
|
+
}, {
|
|
33283
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33284
|
+
field: 'createdByDisplayText',
|
|
33285
|
+
editable: false
|
|
33286
|
+
}]
|
|
33287
|
+
}
|
|
33288
|
+
})]
|
|
33289
|
+
});
|
|
33290
|
+
}
|
|
33291
|
+
|
|
33292
|
+
function TableFeatureClasses () {
|
|
33293
|
+
var _useTranslation = useTranslation(),
|
|
33294
|
+
t = _useTranslation.t;
|
|
33295
|
+
var _useModule = useModule(['featureclasses']),
|
|
33296
|
+
catalogId = _useModule.catalogId,
|
|
33297
|
+
organizationId = _useModule.organizationId,
|
|
33298
|
+
updateNavigation = _useModule.updateNavigation,
|
|
33299
|
+
apiConfig = _useModule.apiConfig;
|
|
33300
|
+
var applicationData = useMemo(function () {
|
|
33301
|
+
return {
|
|
33302
|
+
catalogId: catalogId,
|
|
33303
|
+
organizationId: organizationId
|
|
33304
|
+
};
|
|
33305
|
+
}, [catalogId]);
|
|
33306
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
33307
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33308
|
+
title: /*#__PURE__*/jsxs("div", {
|
|
33309
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses'), /*#__PURE__*/jsx(Space$1, {
|
|
33310
|
+
style: {
|
|
33311
|
+
"float": 'right'
|
|
33312
|
+
},
|
|
33313
|
+
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
33314
|
+
selectedCatalog: catalogId,
|
|
33315
|
+
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
33316
|
+
return updateNavigation(id);
|
|
33317
|
+
},
|
|
33318
|
+
idmService: apiConfig.idmService
|
|
33319
|
+
})
|
|
33320
|
+
})]
|
|
33321
|
+
})
|
|
33322
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33323
|
+
gridId: 'crud-grid_featureclasses',
|
|
33324
|
+
applicationData: applicationData,
|
|
33325
|
+
configuration: {
|
|
33326
|
+
type: 'dotnetSSM',
|
|
33327
|
+
apiInterface: {
|
|
33328
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses',
|
|
33329
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses',
|
|
33330
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${_id}',
|
|
33331
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${_id}',
|
|
33332
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${_id}'
|
|
33333
|
+
},
|
|
33334
|
+
dateFormat: 'LL',
|
|
33335
|
+
colDef: [{
|
|
33336
|
+
field: 'featureClassNo',
|
|
33337
|
+
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassNo',
|
|
33338
|
+
required: true
|
|
33339
|
+
}, {
|
|
33340
|
+
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassName',
|
|
33341
|
+
marryChildren: true,
|
|
33342
|
+
children: [{
|
|
33343
|
+
field: 'featureClassName.DE',
|
|
33344
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33345
|
+
isDictionary: true
|
|
33346
|
+
}, {
|
|
33347
|
+
field: 'featureClassName.EN',
|
|
33348
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33349
|
+
isDictionary: true
|
|
33350
|
+
}, {
|
|
33351
|
+
field: 'featureClassName.FR',
|
|
33352
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33353
|
+
isDictionary: true
|
|
33354
|
+
}, {
|
|
33355
|
+
field: 'featureClassName.IT',
|
|
33356
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33357
|
+
isDictionary: true
|
|
33358
|
+
}]
|
|
33359
|
+
}, {
|
|
33360
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33361
|
+
field: 'lastUpdatedDate',
|
|
33362
|
+
cellDataType: 'dateString',
|
|
33363
|
+
editable: false
|
|
33364
|
+
}, {
|
|
33365
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33366
|
+
field: 'createdDate',
|
|
33367
|
+
cellDataType: 'dateString',
|
|
33368
|
+
editable: false
|
|
33369
|
+
}, {
|
|
33370
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33371
|
+
field: 'createdByDisplayText',
|
|
33372
|
+
editable: false
|
|
33373
|
+
}, {
|
|
33374
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33375
|
+
field: 'lastUpdatedByDisplayText',
|
|
33376
|
+
editable: false
|
|
33377
|
+
}, {
|
|
33378
|
+
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
33379
|
+
field: '_id',
|
|
33380
|
+
editable: false
|
|
33381
|
+
}, {
|
|
33382
|
+
field: 'organizationId',
|
|
33383
|
+
editable: false,
|
|
33384
|
+
hide: true,
|
|
33385
|
+
lockVisible: true,
|
|
33386
|
+
suppressColumnsToolPanel: true,
|
|
33387
|
+
defaultValue: '${organizationId}'
|
|
33388
|
+
}, {
|
|
33389
|
+
field: 'catalogId',
|
|
33390
|
+
editable: false,
|
|
33391
|
+
hide: true,
|
|
33392
|
+
lockVisible: true,
|
|
33393
|
+
suppressColumnsToolPanel: true,
|
|
33394
|
+
defaultValue: '${catalogId}'
|
|
33395
|
+
}]
|
|
33396
|
+
}
|
|
33397
|
+
})]
|
|
33398
|
+
});
|
|
33399
|
+
}
|
|
33400
|
+
|
|
33401
|
+
function TableDecisions () {
|
|
33402
|
+
var _useTranslation = useTranslation(),
|
|
33403
|
+
t = _useTranslation.t;
|
|
33404
|
+
var _useModule = useModule(['decisions']),
|
|
33405
|
+
catalogId = _useModule.catalogId,
|
|
33406
|
+
organizationId = _useModule.organizationId,
|
|
33407
|
+
updateNavigation = _useModule.updateNavigation,
|
|
33408
|
+
apiConfig = _useModule.apiConfig;
|
|
33409
|
+
var decisionTypeDic = {
|
|
33410
|
+
0: t('backoffice.idmCatalog.decisions.label.type.d0'),
|
|
33411
|
+
1: t('backoffice.idmCatalog.decisions.label.type.d1'),
|
|
33412
|
+
2: t('backoffice.idmCatalog.decisions.label.type.d2'),
|
|
33413
|
+
3: t('backoffice.idmCatalog.decisions.label.type.d3')
|
|
33414
|
+
};
|
|
33415
|
+
var decisionKeys = Object.keys(decisionTypeDic).map(function (key) {
|
|
33416
|
+
return parseInt(key);
|
|
33417
|
+
});
|
|
33418
|
+
var applicationData = useMemo(function () {
|
|
33419
|
+
return {
|
|
33420
|
+
catalogId: catalogId,
|
|
33421
|
+
organizationId: organizationId
|
|
33422
|
+
};
|
|
33423
|
+
}, [catalogId]);
|
|
33424
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
33425
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33426
|
+
title: /*#__PURE__*/jsxs("div", {
|
|
33427
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions'), /*#__PURE__*/jsx(Space$1, {
|
|
33428
|
+
style: {
|
|
33429
|
+
"float": 'right'
|
|
33430
|
+
},
|
|
33431
|
+
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
33432
|
+
selectedCatalog: catalogId,
|
|
33433
|
+
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
33434
|
+
return updateNavigation(id);
|
|
33435
|
+
},
|
|
33436
|
+
idmService: apiConfig.idmService
|
|
33437
|
+
})
|
|
33438
|
+
})]
|
|
33439
|
+
})
|
|
33440
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33441
|
+
gridId: 'crud-grid_decisions',
|
|
33442
|
+
applicationData: applicationData,
|
|
33443
|
+
configuration: {
|
|
33444
|
+
type: 'dotnetSSM',
|
|
33445
|
+
apiInterface: {
|
|
33446
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions',
|
|
33447
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions',
|
|
33448
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions/${_id}',
|
|
33449
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions/${_id}',
|
|
33450
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions/${_id}'
|
|
33451
|
+
},
|
|
33452
|
+
dateFormat: 'LL',
|
|
33453
|
+
colDef: [{
|
|
33454
|
+
field: 'decisionNo',
|
|
33455
|
+
headerName: 'backoffice.idmCatalog.decisions.label.decisionNo',
|
|
33456
|
+
required: true
|
|
33457
|
+
}, {
|
|
33458
|
+
headerName: 'backoffice.idmCatalog.decisions.label.decisionText',
|
|
33459
|
+
marryChildren: true,
|
|
33460
|
+
children: [{
|
|
33461
|
+
field: 'decisionText.DE',
|
|
33462
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33463
|
+
isDictionary: true,
|
|
33464
|
+
required: true
|
|
33465
|
+
}, {
|
|
33466
|
+
field: 'decisionText.EN',
|
|
33467
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33468
|
+
isDictionary: true
|
|
33469
|
+
}, {
|
|
33470
|
+
field: 'decisionText.FR',
|
|
33471
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33472
|
+
isDictionary: true
|
|
33473
|
+
}, {
|
|
33474
|
+
field: 'decisionText.IT',
|
|
33475
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33476
|
+
isDictionary: true
|
|
33477
|
+
}]
|
|
33478
|
+
}, {
|
|
33479
|
+
field: 'comment',
|
|
33480
|
+
headerName: 'backoffice.idmCatalog.decisions.label.comment'
|
|
33481
|
+
}, {
|
|
33482
|
+
field: 'prio',
|
|
33483
|
+
headerName: 'backoffice.idmCatalog.decisions.label.prio',
|
|
33484
|
+
required: true,
|
|
33485
|
+
cellDataType: 'number'
|
|
33486
|
+
}, {
|
|
33487
|
+
field: 'decisionType',
|
|
33488
|
+
headerName: 'backoffice.idmCatalog.decisions.label.decisionType',
|
|
33489
|
+
required: true,
|
|
33490
|
+
cellDataType: 'enum',
|
|
33491
|
+
customParams: {
|
|
33492
|
+
displayTexts: decisionTypeDic,
|
|
33493
|
+
values: decisionKeys,
|
|
33494
|
+
displayLabelTemplate: '${name} (${value})'
|
|
33495
|
+
}
|
|
33496
|
+
}, {
|
|
33497
|
+
field: 'featureRefs',
|
|
33498
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.featureRefs',
|
|
33499
|
+
cellDataType: 'lookup',
|
|
33500
|
+
editable: true,
|
|
33501
|
+
customParams: {
|
|
33502
|
+
nameField: 'featureRefsDisplayTexts',
|
|
33503
|
+
displayLabelTemplate: '${name} (${value})',
|
|
33504
|
+
apiInterface: {
|
|
33505
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
|
|
33506
|
+
},
|
|
33507
|
+
lookupValue: 'featureText',
|
|
33508
|
+
lookupKey: 'featureNo',
|
|
33509
|
+
lookupKeyFilterType: {
|
|
33510
|
+
type: 'equals',
|
|
33511
|
+
filterType: 'number'
|
|
33512
|
+
},
|
|
33513
|
+
multiple: true,
|
|
33514
|
+
translated: true
|
|
33515
|
+
},
|
|
33516
|
+
additionalFields: ['featureRefsDisplayTexts'],
|
|
33517
|
+
isDictionary: true
|
|
33518
|
+
}, {
|
|
33519
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33520
|
+
field: 'lastUpdatedDate',
|
|
33521
|
+
cellDataType: 'dateString',
|
|
33522
|
+
editable: false
|
|
33523
|
+
}, {
|
|
33524
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33525
|
+
field: 'createdDate',
|
|
33526
|
+
cellDataType: 'dateString',
|
|
33527
|
+
editable: false
|
|
33528
|
+
}, {
|
|
33529
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33530
|
+
field: 'createdByDisplayText',
|
|
33531
|
+
editable: false
|
|
33532
|
+
}, {
|
|
33533
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33534
|
+
field: 'lastUpdatedByDisplayText',
|
|
33535
|
+
editable: false
|
|
33536
|
+
}, {
|
|
33537
|
+
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
33538
|
+
field: '_id',
|
|
33539
|
+
editable: false
|
|
33540
|
+
}, {
|
|
33541
|
+
field: 'organizationId',
|
|
33542
|
+
editable: false,
|
|
33543
|
+
hide: true,
|
|
33544
|
+
lockVisible: true,
|
|
33545
|
+
suppressColumnsToolPanel: true,
|
|
33546
|
+
defaultValue: '${organizationId}'
|
|
33547
|
+
}, {
|
|
33548
|
+
field: 'catalogId',
|
|
33549
|
+
editable: false,
|
|
33550
|
+
hide: true,
|
|
33551
|
+
lockVisible: true,
|
|
33552
|
+
suppressColumnsToolPanel: true,
|
|
33553
|
+
defaultValue: '${catalogId}'
|
|
33554
|
+
}]
|
|
33555
|
+
}
|
|
33556
|
+
})]
|
|
33557
|
+
});
|
|
33558
|
+
}
|
|
33559
|
+
|
|
33560
|
+
function IDMCatalogEditor (_ref) {
|
|
33561
|
+
_objectDestructuringEmpty(_ref);
|
|
33562
|
+
return /*#__PURE__*/jsx("div", {
|
|
33563
|
+
style: {
|
|
33564
|
+
height: '85vh',
|
|
33565
|
+
display: 'flex',
|
|
33566
|
+
flexDirection: 'column'
|
|
33567
|
+
},
|
|
33568
|
+
children: /*#__PURE__*/jsx(Content$1, {})
|
|
33569
|
+
});
|
|
33570
|
+
}
|
|
33571
|
+
function Content$1() {
|
|
33572
|
+
return /*#__PURE__*/jsxs(Routes, {
|
|
33573
|
+
children: [/*#__PURE__*/jsx(Route, {
|
|
33574
|
+
index: true,
|
|
33575
|
+
path: "",
|
|
33576
|
+
element: /*#__PURE__*/jsx(TableCatalogs, {})
|
|
33577
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33578
|
+
path: ":catalogId/series",
|
|
33579
|
+
element: /*#__PURE__*/jsx(TableSeries, {})
|
|
33580
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33581
|
+
path: ":catalogId/items",
|
|
33582
|
+
element: /*#__PURE__*/jsx(TableItems, {})
|
|
33583
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33584
|
+
path: ":catalogId/features",
|
|
33585
|
+
element: /*#__PURE__*/jsx(TableFeatures, {})
|
|
33586
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33587
|
+
path: ":catalogId/options",
|
|
33588
|
+
element: /*#__PURE__*/jsx(TableOptions, {})
|
|
33589
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33590
|
+
path: ":catalogId/featureclasses",
|
|
33591
|
+
element: /*#__PURE__*/jsx(TableFeatureClasses, {})
|
|
33592
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33593
|
+
path: ":catalogId/decisions",
|
|
33594
|
+
element: /*#__PURE__*/jsx(TableDecisions, {})
|
|
32652
33595
|
})]
|
|
32653
33596
|
});
|
|
32654
33597
|
}
|