@crystaldesign/diva-backoffice 24.14.0-beta.8 → 24.14.0-rc.0
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 +1290 -236
- 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/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 +11 -11
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);
|
|
@@ -31494,52 +31739,100 @@ function TableCatalogs () {
|
|
|
31494
31739
|
organizationId = _useNavigation.organizationId,
|
|
31495
31740
|
apiConfig = _useNavigation.apiConfig,
|
|
31496
31741
|
updateNavigation = _useNavigation.updateNavigation;
|
|
31497
|
-
var
|
|
31498
|
-
|
|
31499
|
-
|
|
31500
|
-
|
|
31501
|
-
|
|
31502
|
-
|
|
31503
|
-
|
|
31504
|
-
|
|
31505
|
-
|
|
31506
|
-
|
|
31507
|
-
|
|
31508
|
-
|
|
31509
|
-
|
|
31510
|
-
|
|
31511
|
-
|
|
31512
|
-
|
|
31513
|
-
|
|
31514
|
-
|
|
31515
|
-
|
|
31516
|
-
|
|
31517
|
-
|
|
31518
|
-
|
|
31519
|
-
|
|
31520
|
-
|
|
31521
|
-
}
|
|
31522
|
-
|
|
31523
|
-
|
|
31524
|
-
|
|
31525
|
-
|
|
31526
|
-
|
|
31527
|
-
|
|
31528
|
-
|
|
31529
|
-
|
|
31530
|
-
|
|
31531
|
-
|
|
31532
|
-
|
|
31533
|
-
|
|
31534
|
-
|
|
31535
|
-
|
|
31536
|
-
|
|
31537
|
-
|
|
31538
|
-
|
|
31539
|
-
|
|
31540
|
-
|
|
31541
|
-
|
|
31542
|
-
|
|
31742
|
+
var format = [{
|
|
31743
|
+
name: t('backoffice.idmCatalogEditor.items.label.arbeitsplattenhersteller'),
|
|
31744
|
+
value: 'A'
|
|
31745
|
+
}, {
|
|
31746
|
+
name: t('backoffice.idmCatalogEditor.items.label.badmoebelhersteller'),
|
|
31747
|
+
value: 'B'
|
|
31748
|
+
}, {
|
|
31749
|
+
name: t('backoffice.idmCatalogEditor.items.label.geraetehersteller'),
|
|
31750
|
+
value: 'G'
|
|
31751
|
+
}, {
|
|
31752
|
+
name: t('backoffice.idmCatalogEditor.items.label.kuechenmöbelhersteller'),
|
|
31753
|
+
value: 'K'
|
|
31754
|
+
}, {
|
|
31755
|
+
name: t('backoffice.idmCatalogEditor.items.label.bueromoebelhersteller'),
|
|
31756
|
+
value: 'O'
|
|
31757
|
+
}, {
|
|
31758
|
+
name: t('backoffice.idmCatalogEditor.items.label.polstermoebelhersteller'),
|
|
31759
|
+
value: 'P'
|
|
31760
|
+
}, {
|
|
31761
|
+
name: t('backoffice.idmCatalogEditor.items.label.sanitaerhersteller'),
|
|
31762
|
+
value: 'S'
|
|
31763
|
+
}, {
|
|
31764
|
+
name: t('backoffice.idmCatalogEditor.items.label.wohnmoebelhersteller'),
|
|
31765
|
+
value: 'W'
|
|
31766
|
+
}, {
|
|
31767
|
+
name: t('backoffice.idmCatalogEditor.items.label.zubehoerhersteller'),
|
|
31768
|
+
value: 'Z'
|
|
31769
|
+
}];
|
|
31770
|
+
var catalogMark = [{
|
|
31771
|
+
name: t('backoffice.idmCatalog.general.label.cm.K'),
|
|
31772
|
+
value: 'K'
|
|
31773
|
+
}, {
|
|
31774
|
+
name: t('backoffice.idmCatalog.general.label.cm.B'),
|
|
31775
|
+
value: 'B'
|
|
31776
|
+
}, {
|
|
31777
|
+
name: t('backoffice.idmCatalog.general.label.cm.V'),
|
|
31778
|
+
value: 'V'
|
|
31779
|
+
}, {
|
|
31780
|
+
name: t('backoffice.idmCatalog.general.label.cm.F'),
|
|
31781
|
+
value: 'F'
|
|
31782
|
+
}];
|
|
31783
|
+
var formOfAddress = [{
|
|
31784
|
+
name: t('backoffice.idmCatalog.general.label.foa.f1'),
|
|
31785
|
+
value: 1
|
|
31786
|
+
}, {
|
|
31787
|
+
name: t('backoffice.idmCatalog.general.label.foa.f2'),
|
|
31788
|
+
value: 2
|
|
31789
|
+
}];
|
|
31790
|
+
var priceDependent = [{
|
|
31791
|
+
name: t('backoffice.idmCatalog.general.label.priceDependent.p0'),
|
|
31792
|
+
value: false
|
|
31793
|
+
}, {
|
|
31794
|
+
name: t('backoffice.idmCatalog.general.label.priceDependent.p1'),
|
|
31795
|
+
value: true
|
|
31796
|
+
}];
|
|
31797
|
+
var unit = [{
|
|
31798
|
+
name: t('backoffice.idmCatalog.general.label.unit.u0'),
|
|
31799
|
+
value: 0
|
|
31800
|
+
}, {
|
|
31801
|
+
name: t('backoffice.idmCatalog.general.label.unit.u1'),
|
|
31802
|
+
value: 1
|
|
31803
|
+
}, {
|
|
31804
|
+
name: t('backoffice.idmCatalog.general.label.unit.u10'),
|
|
31805
|
+
value: 10
|
|
31806
|
+
}, {
|
|
31807
|
+
name: t('backoffice.idmCatalog.general.label.unit.u100'),
|
|
31808
|
+
value: 100
|
|
31809
|
+
}, {
|
|
31810
|
+
name: t('backoffice.idmCatalog.general.label.unit.u1000'),
|
|
31811
|
+
value: 1000
|
|
31812
|
+
}, {
|
|
31813
|
+
name: t('backoffice.idmCatalog.general.label.unit.1u000000'),
|
|
31814
|
+
value: 1000000
|
|
31815
|
+
}, {
|
|
31816
|
+
name: t('backoffice.idmCatalog.general.label.unit.u1000000000'),
|
|
31817
|
+
value: 1000000000
|
|
31818
|
+
}];
|
|
31819
|
+
var roundingType = [{
|
|
31820
|
+
name: t('backoffice.idmCatalog.general.label.roundingType.r1'),
|
|
31821
|
+
value: 1
|
|
31822
|
+
}, {
|
|
31823
|
+
name: t('backoffice.idmCatalog.general.label.roundingType.r2'),
|
|
31824
|
+
value: 2
|
|
31825
|
+
}, {
|
|
31826
|
+
name: t('backoffice.idmCatalog.general.label.roundingType.r3'),
|
|
31827
|
+
value: 3
|
|
31828
|
+
}];
|
|
31829
|
+
var applicationData = useMemo(function () {
|
|
31830
|
+
return {
|
|
31831
|
+
organizationId: organizationId
|
|
31832
|
+
};
|
|
31833
|
+
}, [organizationId]);
|
|
31834
|
+
useEffect(function () {
|
|
31835
|
+
//remove the packages submenu when opening this module
|
|
31543
31836
|
root.contentStore.removeAdditionalElement('idmenricher');
|
|
31544
31837
|
}, []);
|
|
31545
31838
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
@@ -31579,15 +31872,6 @@ function TableCatalogs () {
|
|
|
31579
31872
|
field: 'size',
|
|
31580
31873
|
cellDataType: 'number',
|
|
31581
31874
|
editable: false
|
|
31582
|
-
}, {
|
|
31583
|
-
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
31584
|
-
field: '_id',
|
|
31585
|
-
editable: false,
|
|
31586
|
-
cellDataType: 'id'
|
|
31587
|
-
}, {
|
|
31588
|
-
headerName: 'backoffice.idmCatalog.general.label.hash',
|
|
31589
|
-
field: 'hash',
|
|
31590
|
-
editable: false
|
|
31591
31875
|
}, {
|
|
31592
31876
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
31593
31877
|
field: 'lastUpdatedDate',
|
|
@@ -31609,58 +31893,20 @@ function TableCatalogs () {
|
|
|
31609
31893
|
}, {
|
|
31610
31894
|
headerName: 'backoffice.idmCatalog.general.label.comment',
|
|
31611
31895
|
field: 'comment'
|
|
31612
|
-
}, {
|
|
31613
|
-
headerName: 'backoffice.idmCatalog.general.label.version',
|
|
31614
|
-
children: [{
|
|
31615
|
-
headerName: 'backoffice.idmCatalog.general.label.major',
|
|
31616
|
-
field: 'major',
|
|
31617
|
-
cellDataType: 'number',
|
|
31618
|
-
editable: false
|
|
31619
|
-
}, {
|
|
31620
|
-
headerName: 'backoffice.idmCatalog.general.label.minor',
|
|
31621
|
-
field: 'minor',
|
|
31622
|
-
cellDataType: 'number',
|
|
31623
|
-
editable: false
|
|
31624
|
-
}, {
|
|
31625
|
-
headerName: 'backoffice.idmCatalog.general.label.revision',
|
|
31626
|
-
field: 'revision',
|
|
31627
|
-
cellDataType: 'number',
|
|
31628
|
-
editable: false
|
|
31629
|
-
}, {
|
|
31630
|
-
headerName: 'backoffice.idmCatalog.general.label.format',
|
|
31631
|
-
field: 'format',
|
|
31632
|
-
cellDataType: 'enum',
|
|
31633
|
-
customParams: {
|
|
31634
|
-
displayTexts: formatDic,
|
|
31635
|
-
values: Object.keys(formatDic),
|
|
31636
|
-
displayLabelTemplate: '${name} (${value})'
|
|
31637
|
-
}
|
|
31638
|
-
}]
|
|
31639
31896
|
}, {
|
|
31640
31897
|
headerName: 'backoffice.idmCatalog.general.label.catalog',
|
|
31641
31898
|
children: [{
|
|
31642
|
-
field: 'isoLanguageIds',
|
|
31643
|
-
headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
|
|
31644
|
-
cellDataType: 'enum',
|
|
31645
|
-
editable: true,
|
|
31646
|
-
required: true,
|
|
31647
|
-
customParams: {
|
|
31648
|
-
values: ['DE', 'EN', 'FR', 'IT'],
|
|
31649
|
-
multiSelect: true
|
|
31650
|
-
}
|
|
31651
|
-
}, {
|
|
31652
|
-
headerName: 'backoffice.idmCatalog.general.label.currencyKey',
|
|
31653
|
-
field: 'currencyKey'
|
|
31654
|
-
}, {
|
|
31655
31899
|
headerName: 'backoffice.idmCatalog.general.label.catalogNumber',
|
|
31656
|
-
field: 'catalogNumber'
|
|
31900
|
+
field: 'catalogNumber',
|
|
31901
|
+
required: true
|
|
31657
31902
|
}, {
|
|
31658
31903
|
headerName: 'backoffice.idmCatalog.general.label.catalogName',
|
|
31659
31904
|
marryChildren: true,
|
|
31660
31905
|
children: [{
|
|
31661
31906
|
field: 'catalogName.DE',
|
|
31662
31907
|
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31663
|
-
isDictionary: true
|
|
31908
|
+
isDictionary: true,
|
|
31909
|
+
required: true
|
|
31664
31910
|
}, {
|
|
31665
31911
|
field: 'catalogName.EN',
|
|
31666
31912
|
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
@@ -31677,24 +31923,45 @@ function TableCatalogs () {
|
|
|
31677
31923
|
}, {
|
|
31678
31924
|
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
|
31679
31925
|
field: 'validFromDate',
|
|
31680
|
-
cellDataType: 'dateString'
|
|
31926
|
+
cellDataType: 'dateString',
|
|
31927
|
+
required: true
|
|
31681
31928
|
}, {
|
|
31682
31929
|
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
|
31683
31930
|
field: 'validUntilDate',
|
|
31684
|
-
cellDataType: 'dateString'
|
|
31931
|
+
cellDataType: 'dateString',
|
|
31932
|
+
required: true
|
|
31933
|
+
}, {
|
|
31934
|
+
field: 'isoLanguageIds',
|
|
31935
|
+
headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
|
|
31936
|
+
cellDataType: 'enum',
|
|
31937
|
+
editable: true,
|
|
31938
|
+
required: true,
|
|
31939
|
+
customParams: {
|
|
31940
|
+
enumData: ['DE', 'EN', 'FR', 'IT'],
|
|
31941
|
+
multiple: true
|
|
31942
|
+
},
|
|
31943
|
+
defaultValue: ['DE']
|
|
31944
|
+
}, {
|
|
31945
|
+
headerName: 'backoffice.idmCatalog.general.label.currencyKey',
|
|
31946
|
+
field: 'currencyKey',
|
|
31947
|
+
required: true,
|
|
31948
|
+
defaultValue: 'EUR'
|
|
31685
31949
|
}, {
|
|
31686
31950
|
headerName: 'backoffice.idmCatalog.general.label.fileId',
|
|
31687
31951
|
field: 'fileId',
|
|
31688
|
-
cellDataType: 'boolean'
|
|
31952
|
+
cellDataType: 'boolean',
|
|
31953
|
+
defaultValue: true,
|
|
31954
|
+
required: true
|
|
31689
31955
|
}, {
|
|
31690
31956
|
headerName: 'backoffice.idmCatalog.general.label.catalogMark',
|
|
31691
31957
|
field: 'catalogMark',
|
|
31692
31958
|
cellDataType: 'enum',
|
|
31693
31959
|
customParams: {
|
|
31694
|
-
|
|
31695
|
-
values: Object.keys(catalogMarkDic),
|
|
31960
|
+
enumData: catalogMark,
|
|
31696
31961
|
displayLabelTemplate: '${name} (${value})'
|
|
31697
|
-
}
|
|
31962
|
+
},
|
|
31963
|
+
required: true,
|
|
31964
|
+
defaultValue: 'K'
|
|
31698
31965
|
}, {
|
|
31699
31966
|
headerName: 'backoffice.idmCatalog.general.label.catalogMergeType',
|
|
31700
31967
|
field: 'catalogMergeType',
|
|
@@ -31725,103 +31992,139 @@ function TableCatalogs () {
|
|
|
31725
31992
|
}]
|
|
31726
31993
|
}, {
|
|
31727
31994
|
headerName: 'backoffice.idmCatalog.general.label.fallbackLanguage',
|
|
31728
|
-
field: 'fallbackLanguage'
|
|
31995
|
+
field: 'fallbackLanguage',
|
|
31996
|
+
cellDataType: 'enum',
|
|
31997
|
+
editable: true,
|
|
31998
|
+
required: true,
|
|
31999
|
+
customParams: {
|
|
32000
|
+
enumData: ['DE', 'EN', 'FR', 'IT'],
|
|
32001
|
+
multiple: true
|
|
32002
|
+
},
|
|
32003
|
+
defaultValue: 'DE'
|
|
31729
32004
|
}]
|
|
31730
32005
|
}, {
|
|
31731
32006
|
headerName: 'backoffice.idmCatalog.general.label.identity',
|
|
31732
32007
|
children: [{
|
|
31733
32008
|
headerName: 'backoffice.idmCatalog.general.label.dataVersion',
|
|
31734
32009
|
field: 'dataVersion',
|
|
31735
|
-
cellDataType: 'dateString'
|
|
32010
|
+
cellDataType: 'dateString',
|
|
32011
|
+
required: true
|
|
31736
32012
|
}, {
|
|
31737
32013
|
field: 'catalogId',
|
|
31738
32014
|
headerName: 'backoffice.idmCatalog.general.label.catalogId',
|
|
31739
|
-
required: true
|
|
32015
|
+
required: true,
|
|
32016
|
+
defaultValue: v4()
|
|
31740
32017
|
}, {
|
|
31741
32018
|
field: 'catalogVersion',
|
|
31742
32019
|
headerName: 'backoffice.idmCatalog.general.label.catalogVersion',
|
|
31743
|
-
cellDataType: 'number'
|
|
32020
|
+
cellDataType: 'number',
|
|
32021
|
+
defaultValue: 1,
|
|
32022
|
+
required: true
|
|
31744
32023
|
}]
|
|
31745
32024
|
}, {
|
|
31746
32025
|
headerName: 'backoffice.idmCatalog.general.label.supplier',
|
|
31747
32026
|
children: [{
|
|
31748
32027
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
31749
|
-
field: 'isoCountryId'
|
|
32028
|
+
field: 'isoCountryId',
|
|
32029
|
+
required: true,
|
|
32030
|
+
defaultValue: 'DE'
|
|
31750
32031
|
}, {
|
|
31751
32032
|
field: 'glnNo',
|
|
31752
|
-
headerName: 'backoffice.idmCatalog.general.label.glnNo'
|
|
32033
|
+
headerName: 'backoffice.idmCatalog.general.label.glnNo',
|
|
32034
|
+
cellDataType: 'number',
|
|
32035
|
+
regex: '[0-9]{13}',
|
|
32036
|
+
required: true
|
|
31753
32037
|
}, {
|
|
31754
32038
|
field: 'weeeNo',
|
|
31755
32039
|
headerName: 'backoffice.idmCatalog.general.label.weeeNo'
|
|
31756
32040
|
}, {
|
|
31757
32041
|
headerName: 'backoffice.idmCatalog.general.label.manufacturerName1',
|
|
31758
|
-
field: 'manufacturerName1'
|
|
32042
|
+
field: 'manufacturerName1',
|
|
32043
|
+
required: true
|
|
31759
32044
|
}, {
|
|
31760
32045
|
headerName: 'backoffice.idmCatalog.general.label.manufacturerName2',
|
|
31761
32046
|
field: 'manufacturerName2'
|
|
31762
32047
|
}, {
|
|
31763
32048
|
headerName: 'backoffice.idmCatalog.general.label.email',
|
|
31764
|
-
field: 'email'
|
|
32049
|
+
field: 'email',
|
|
32050
|
+
regex: "[a-zA-Z0-9._%+\\-!#$%'*/=?^_`{|}~]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}"
|
|
31765
32051
|
}, {
|
|
31766
32052
|
headerName: 'backoffice.idmCatalog.general.label.internetAddress',
|
|
31767
32053
|
field: 'internetAddress'
|
|
31768
32054
|
}, {
|
|
31769
32055
|
headerName: 'backoffice.idmCatalog.general.label.street',
|
|
31770
|
-
field: 'street'
|
|
32056
|
+
field: 'street',
|
|
32057
|
+
required: true
|
|
31771
32058
|
}, {
|
|
31772
32059
|
headerName: 'backoffice.idmCatalog.general.label.zipCodeStreet',
|
|
31773
|
-
field: 'zipCodeStreet'
|
|
32060
|
+
field: 'zipCodeStreet',
|
|
32061
|
+
required: true
|
|
31774
32062
|
}, {
|
|
31775
32063
|
headerName: 'backoffice.idmCatalog.general.label.city',
|
|
31776
|
-
field: 'city'
|
|
32064
|
+
field: 'city',
|
|
32065
|
+
required: true
|
|
31777
32066
|
}, {
|
|
31778
32067
|
headerName: 'backoffice.idmCatalog.general.label.zipCodePostBox',
|
|
31779
|
-
field: 'zipCodePostBox'
|
|
32068
|
+
field: 'zipCodePostBox',
|
|
32069
|
+
customParams: {
|
|
32070
|
+
maxLength: 8
|
|
32071
|
+
}
|
|
31780
32072
|
}, {
|
|
31781
32073
|
headerName: 'backoffice.idmCatalog.general.label.postBox',
|
|
31782
|
-
field: 'postBox'
|
|
32074
|
+
field: 'postBox',
|
|
32075
|
+
regex: '[0-9a-zA-Z]{0,10}'
|
|
31783
32076
|
}, {
|
|
31784
|
-
headerName: 'backoffice.idmCatalog.general.label.
|
|
31785
|
-
field: 'telephoneSwitchBoard'
|
|
32077
|
+
headerName: 'backoffice.idmCatalog.general.label.telephone',
|
|
32078
|
+
field: 'telephoneSwitchBoard',
|
|
32079
|
+
required: true
|
|
31786
32080
|
}, {
|
|
31787
32081
|
headerName: 'backoffice.idmCatalog.general.label.faxSwitchBoard',
|
|
31788
|
-
field: 'faxSwitchBoard'
|
|
32082
|
+
field: 'faxSwitchBoard',
|
|
32083
|
+
required: true
|
|
31789
32084
|
}]
|
|
31790
32085
|
}, {
|
|
31791
32086
|
headerName: 'backoffice.idmCatalog.general.label.contact1',
|
|
31792
32087
|
children: [{
|
|
31793
32088
|
headerName: 'backoffice.idmCatalog.general.label.contactPersonNo',
|
|
31794
|
-
field: 'contactPersonNo1'
|
|
32089
|
+
field: 'contactPersonNo1',
|
|
32090
|
+
required: true,
|
|
32091
|
+
cellDataType: 'number',
|
|
32092
|
+
defaultValue: 1
|
|
31795
32093
|
}, {
|
|
31796
32094
|
headerName: 'backoffice.idmCatalog.general.label.contactRole',
|
|
31797
|
-
field: 'contactRole1'
|
|
32095
|
+
field: 'contactRole1',
|
|
32096
|
+
required: true
|
|
31798
32097
|
}, {
|
|
31799
32098
|
headerName: 'backoffice.idmCatalog.general.label.contactName',
|
|
31800
|
-
field: 'contactName1'
|
|
32099
|
+
field: 'contactName1',
|
|
32100
|
+
required: true
|
|
31801
32101
|
}, {
|
|
31802
32102
|
headerName: 'backoffice.idmCatalog.general.label.firstName',
|
|
31803
|
-
field: 'firstName1'
|
|
32103
|
+
field: 'firstName1',
|
|
32104
|
+
required: true
|
|
31804
32105
|
}, {
|
|
31805
32106
|
headerName: 'backoffice.idmCatalog.general.label.formOfAddress',
|
|
31806
32107
|
field: 'formOfAddress1',
|
|
31807
32108
|
cellDataType: 'enum',
|
|
31808
32109
|
customParams: {
|
|
31809
|
-
|
|
31810
|
-
values: Object.keys(formOfAddressDic),
|
|
32110
|
+
enumData: formOfAddress,
|
|
31811
32111
|
displayLabelTemplate: '${name} (${value})'
|
|
31812
|
-
}
|
|
32112
|
+
},
|
|
32113
|
+
required: true
|
|
31813
32114
|
}, {
|
|
31814
32115
|
headerName: 'backoffice.idmCatalog.general.label.department',
|
|
31815
32116
|
field: 'department1'
|
|
31816
32117
|
}, {
|
|
31817
32118
|
headerName: 'backoffice.idmCatalog.general.label.telephone',
|
|
31818
|
-
field: 'telephone1'
|
|
32119
|
+
field: 'telephone1',
|
|
32120
|
+
required: true
|
|
31819
32121
|
}, {
|
|
31820
32122
|
headerName: 'backoffice.idmCatalog.general.label.fax',
|
|
31821
32123
|
field: 'fax1'
|
|
31822
32124
|
}, {
|
|
31823
32125
|
headerName: 'backoffice.idmCatalog.general.label.email',
|
|
31824
|
-
field: 'email1'
|
|
32126
|
+
field: 'email1',
|
|
32127
|
+
regex: "[a-zA-Z0-9._%+\\-!#$%'*/=?^_`{|}~]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}"
|
|
31825
32128
|
}, {
|
|
31826
32129
|
headerName: 'backoffice.idmCatalog.general.label.street',
|
|
31827
32130
|
field: 'street1'
|
|
@@ -31833,7 +32136,9 @@ function TableCatalogs () {
|
|
|
31833
32136
|
field: 'city1'
|
|
31834
32137
|
}, {
|
|
31835
32138
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
31836
|
-
field: 'isoCountryId1'
|
|
32139
|
+
field: 'isoCountryId1',
|
|
32140
|
+
required: true,
|
|
32141
|
+
defaultValue: 'DE'
|
|
31837
32142
|
}]
|
|
31838
32143
|
}, {
|
|
31839
32144
|
headerName: 'backoffice.idmCatalog.general.label.contact2',
|
|
@@ -31851,8 +32156,7 @@ function TableCatalogs () {
|
|
|
31851
32156
|
field: 'formOfAddress2',
|
|
31852
32157
|
cellDataType: 'enum',
|
|
31853
32158
|
customParams: {
|
|
31854
|
-
|
|
31855
|
-
values: Object.keys(formOfAddressDic),
|
|
32159
|
+
enumData: formOfAddress,
|
|
31856
32160
|
displayLabelTemplate: '${name} (${value})'
|
|
31857
32161
|
}
|
|
31858
32162
|
}, {
|
|
@@ -31866,7 +32170,8 @@ function TableCatalogs () {
|
|
|
31866
32170
|
field: 'fax2'
|
|
31867
32171
|
}, {
|
|
31868
32172
|
headerName: 'backoffice.idmCatalog.general.label.email',
|
|
31869
|
-
field: 'email2'
|
|
32173
|
+
field: 'email2',
|
|
32174
|
+
regex: "[a-zA-Z0-9._%+\\-!#$%'*/=?^_`{|}~]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}"
|
|
31870
32175
|
}, {
|
|
31871
32176
|
headerName: 'backoffice.idmCatalog.general.label.street',
|
|
31872
32177
|
field: 'street2'
|
|
@@ -31891,8 +32196,7 @@ function TableCatalogs () {
|
|
|
31891
32196
|
field: 'widthX',
|
|
31892
32197
|
cellDataType: 'enum',
|
|
31893
32198
|
customParams: {
|
|
31894
|
-
|
|
31895
|
-
values: Object.keys(priceDependentDic),
|
|
32199
|
+
enumData: priceDependent,
|
|
31896
32200
|
displayLabelTemplate: '${name} (${value})'
|
|
31897
32201
|
}
|
|
31898
32202
|
}, {
|
|
@@ -31900,8 +32204,7 @@ function TableCatalogs () {
|
|
|
31900
32204
|
field: 'depthY',
|
|
31901
32205
|
cellDataType: 'enum',
|
|
31902
32206
|
customParams: {
|
|
31903
|
-
|
|
31904
|
-
values: Object.keys(priceDependentDic),
|
|
32207
|
+
enumData: priceDependent,
|
|
31905
32208
|
displayLabelTemplate: '${name} (${value})'
|
|
31906
32209
|
}
|
|
31907
32210
|
}, {
|
|
@@ -31909,8 +32212,7 @@ function TableCatalogs () {
|
|
|
31909
32212
|
field: 'heightZ',
|
|
31910
32213
|
cellDataType: 'enum',
|
|
31911
32214
|
customParams: {
|
|
31912
|
-
|
|
31913
|
-
values: Object.keys(priceDependentDic),
|
|
32215
|
+
enumData: priceDependent,
|
|
31914
32216
|
displayLabelTemplate: '${name} (${value})'
|
|
31915
32217
|
}
|
|
31916
32218
|
}, {
|
|
@@ -31918,8 +32220,7 @@ function TableCatalogs () {
|
|
|
31918
32220
|
field: 'basicUnit',
|
|
31919
32221
|
cellDataType: 'enum',
|
|
31920
32222
|
customParams: {
|
|
31921
|
-
|
|
31922
|
-
values: Object.keys(unitDic),
|
|
32223
|
+
enumData: unit,
|
|
31923
32224
|
displayLabelTemplate: '${name} (${value})'
|
|
31924
32225
|
}
|
|
31925
32226
|
}, {
|
|
@@ -31927,8 +32228,7 @@ function TableCatalogs () {
|
|
|
31927
32228
|
field: 'roundingUnit',
|
|
31928
32229
|
cellDataType: 'enum',
|
|
31929
32230
|
customParams: {
|
|
31930
|
-
|
|
31931
|
-
values: Object.keys(unitDic),
|
|
32231
|
+
enumData: unit,
|
|
31932
32232
|
displayLabelTemplate: '${name} (${value})'
|
|
31933
32233
|
}
|
|
31934
32234
|
}, {
|
|
@@ -31936,8 +32236,7 @@ function TableCatalogs () {
|
|
|
31936
32236
|
field: 'roundingType',
|
|
31937
32237
|
cellDataType: 'enum',
|
|
31938
32238
|
customParams: {
|
|
31939
|
-
|
|
31940
|
-
values: Object.keys(roundingTypeDic),
|
|
32239
|
+
enumData: roundingType,
|
|
31941
32240
|
displayLabelTemplate: '${name} (${value})'
|
|
31942
32241
|
}
|
|
31943
32242
|
}, {
|
|
@@ -31970,12 +32269,51 @@ function TableCatalogs () {
|
|
|
31970
32269
|
}, {
|
|
31971
32270
|
headerName: 'backoffice.idmCatalog.general.label.priceTypeRules',
|
|
31972
32271
|
field: 'priceTypeRules',
|
|
31973
|
-
cellDataType: 'array'
|
|
31974
|
-
|
|
31975
|
-
|
|
31976
|
-
|
|
31977
|
-
|
|
32272
|
+
cellDataType: 'array'
|
|
32273
|
+
}]
|
|
32274
|
+
}, {
|
|
32275
|
+
headerName: 'backoffice.idmCatalog.general.label.version',
|
|
32276
|
+
children: [{
|
|
32277
|
+
headerName: 'backoffice.idmCatalog.general.label.major',
|
|
32278
|
+
field: 'major',
|
|
32279
|
+
cellDataType: 'number',
|
|
32280
|
+
editable: false,
|
|
32281
|
+
defaultValue: 3,
|
|
32282
|
+
required: true
|
|
32283
|
+
}, {
|
|
32284
|
+
headerName: 'backoffice.idmCatalog.general.label.minor',
|
|
32285
|
+
field: 'minor',
|
|
32286
|
+
cellDataType: 'number',
|
|
32287
|
+
editable: false,
|
|
32288
|
+
defaultValue: 0,
|
|
32289
|
+
required: true
|
|
32290
|
+
}, {
|
|
32291
|
+
headerName: 'backoffice.idmCatalog.general.label.revision',
|
|
32292
|
+
field: 'revision',
|
|
32293
|
+
cellDataType: 'number',
|
|
32294
|
+
editable: false,
|
|
32295
|
+
defaultValue: 0,
|
|
32296
|
+
required: true
|
|
32297
|
+
}, {
|
|
32298
|
+
headerName: 'backoffice.idmCatalog.general.label.format',
|
|
32299
|
+
field: 'format',
|
|
32300
|
+
cellDataType: 'enum',
|
|
32301
|
+
customParams: {
|
|
32302
|
+
enumData: format,
|
|
32303
|
+
displayLabelTemplate: '${name} (${value})'
|
|
32304
|
+
},
|
|
32305
|
+
required: true,
|
|
32306
|
+
defaultValue: 'P'
|
|
31978
32307
|
}]
|
|
32308
|
+
}, {
|
|
32309
|
+
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
32310
|
+
field: '_id',
|
|
32311
|
+
editable: false,
|
|
32312
|
+
cellDataType: 'id'
|
|
32313
|
+
}, {
|
|
32314
|
+
headerName: 'backoffice.idmCatalog.general.label.hash',
|
|
32315
|
+
field: 'hash',
|
|
32316
|
+
editable: false
|
|
31979
32317
|
}]
|
|
31980
32318
|
}
|
|
31981
32319
|
})]
|
|
@@ -32056,7 +32394,7 @@ function PrefilterSelector (_ref) {
|
|
|
32056
32394
|
value: '${_id}'
|
|
32057
32395
|
},
|
|
32058
32396
|
autoSelectFirst: true,
|
|
32059
|
-
title: t('backoffice.menu.items.label.
|
|
32397
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
|
32060
32398
|
value: selectedFeature,
|
|
32061
32399
|
onChange: function onChange(value) {
|
|
32062
32400
|
return setSelectedFeature ? setSelectedFeature(value) : null;
|
|
@@ -32103,6 +32441,46 @@ function useModule (currentModules) {
|
|
|
32103
32441
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32104
32442
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableItems')
|
|
32105
32443
|
})
|
|
32444
|
+
}, {
|
|
32445
|
+
key: 'features',
|
|
32446
|
+
style: {
|
|
32447
|
+
margin: 0
|
|
32448
|
+
},
|
|
32449
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
32450
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
32451
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/features' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32452
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures')
|
|
32453
|
+
})
|
|
32454
|
+
}, {
|
|
32455
|
+
key: 'options',
|
|
32456
|
+
style: {
|
|
32457
|
+
margin: 0
|
|
32458
|
+
},
|
|
32459
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
32460
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
32461
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32462
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions')
|
|
32463
|
+
})
|
|
32464
|
+
}, {
|
|
32465
|
+
key: 'featureclasses',
|
|
32466
|
+
style: {
|
|
32467
|
+
margin: 0
|
|
32468
|
+
},
|
|
32469
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
32470
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
32471
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/featureclasses' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32472
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses')
|
|
32473
|
+
})
|
|
32474
|
+
}, {
|
|
32475
|
+
key: 'decisions',
|
|
32476
|
+
style: {
|
|
32477
|
+
margin: 0
|
|
32478
|
+
},
|
|
32479
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
32480
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
32481
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/decisions' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32482
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions')
|
|
32483
|
+
})
|
|
32106
32484
|
}];
|
|
32107
32485
|
}, [catalogId]);
|
|
32108
32486
|
if (!catalogId) throw new Error('catalogId is required');
|
|
@@ -32153,39 +32531,95 @@ function TableItems () {
|
|
|
32153
32531
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
32154
32532
|
selectedSerie = _React$useState2[0],
|
|
32155
32533
|
setSelectedSerie = _React$useState2[1];
|
|
32156
|
-
var
|
|
32157
|
-
|
|
32158
|
-
|
|
32159
|
-
|
|
32160
|
-
|
|
32161
|
-
|
|
32162
|
-
|
|
32163
|
-
|
|
32164
|
-
|
|
32165
|
-
|
|
32166
|
-
|
|
32167
|
-
|
|
32168
|
-
|
|
32169
|
-
|
|
32170
|
-
|
|
32171
|
-
|
|
32172
|
-
|
|
32173
|
-
|
|
32174
|
-
|
|
32175
|
-
|
|
32176
|
-
|
|
32177
|
-
|
|
32178
|
-
|
|
32179
|
-
|
|
32180
|
-
|
|
32181
|
-
|
|
32182
|
-
|
|
32183
|
-
|
|
32184
|
-
|
|
32185
|
-
|
|
32186
|
-
|
|
32187
|
-
|
|
32188
|
-
|
|
32534
|
+
var itemIdentification = [{
|
|
32535
|
+
name: t('backoffice.idmCatalogEditor.items.label.catalogArticle'),
|
|
32536
|
+
value: 'K'
|
|
32537
|
+
}, {
|
|
32538
|
+
name: t('backoffice.idmCatalogEditor.items.label.planningAdvice'),
|
|
32539
|
+
value: '1'
|
|
32540
|
+
}, {
|
|
32541
|
+
name: t('backoffice.idmCatalogEditor.items.label.combination'),
|
|
32542
|
+
value: '2'
|
|
32543
|
+
}];
|
|
32544
|
+
var typeKey = [{
|
|
32545
|
+
name: t('backoffice.idmCatalogEditor.items.label.sessel'),
|
|
32546
|
+
value: '1'
|
|
32547
|
+
}, {
|
|
32548
|
+
name: t('backoffice.idmCatalogEditor.items.label.clubchair'),
|
|
32549
|
+
value: '2'
|
|
32550
|
+
}, {
|
|
32551
|
+
name: t('backoffice.idmCatalogEditor.items.label.relaxSessel'),
|
|
32552
|
+
value: '3'
|
|
32553
|
+
}, {
|
|
32554
|
+
name: t('backoffice.idmCatalogEditor.items.label.longChair'),
|
|
32555
|
+
value: '4'
|
|
32556
|
+
}, {
|
|
32557
|
+
name: t('backoffice.idmCatalogEditor.items.label.sofa'),
|
|
32558
|
+
value: '5'
|
|
32559
|
+
}, {
|
|
32560
|
+
name: t('backoffice.idmCatalogEditor.items.label.zwischenlement'),
|
|
32561
|
+
value: '6'
|
|
32562
|
+
}, {
|
|
32563
|
+
name: t('backoffice.idmCatalogEditor.items.label.eckelement'),
|
|
32564
|
+
value: '7'
|
|
32565
|
+
}, {
|
|
32566
|
+
name: t('backoffice.idmCatalogEditor.items.label.einzelliege'),
|
|
32567
|
+
value: '8'
|
|
32568
|
+
}, {
|
|
32569
|
+
name: t('backoffice.idmCatalogEditor.items.label.hocker'),
|
|
32570
|
+
value: '9'
|
|
32571
|
+
}, {
|
|
32572
|
+
name: t('backoffice.idmCatalogEditor.items.label.kissen'),
|
|
32573
|
+
value: '10'
|
|
32574
|
+
}, {
|
|
32575
|
+
name: t('backoffice.idmCatalogEditor.items.label.anstelltisch'),
|
|
32576
|
+
value: '11'
|
|
32577
|
+
}, {
|
|
32578
|
+
name: t('backoffice.idmCatalogEditor.items.label.esstisch'),
|
|
32579
|
+
value: '12'
|
|
32580
|
+
}, {
|
|
32581
|
+
name: t('backoffice.idmCatalogEditor.items.label.kombinationen'),
|
|
32582
|
+
value: '13'
|
|
32583
|
+
}, {
|
|
32584
|
+
name: t('backoffice.idmCatalogEditor.items.label.abschlusselement'),
|
|
32585
|
+
value: '14'
|
|
32586
|
+
}, {
|
|
32587
|
+
name: t('backoffice.idmCatalogEditor.items.label.bettsofa'),
|
|
32588
|
+
value: '15'
|
|
32589
|
+
}, {
|
|
32590
|
+
name: t('backoffice.idmCatalogEditor.items.label.sitzbank'),
|
|
32591
|
+
value: '16'
|
|
32592
|
+
}, {
|
|
32593
|
+
name: t('backoffice.idmCatalogEditor.items.label.stuhl'),
|
|
32594
|
+
value: '17'
|
|
32595
|
+
}, {
|
|
32596
|
+
name: t('backoffice.idmCatalogEditor.items.label.fussbank'),
|
|
32597
|
+
value: '18'
|
|
32598
|
+
}, {
|
|
32599
|
+
name: t('backoffice.idmCatalogEditor.items.label.kopfstuetze'),
|
|
32600
|
+
value: '19'
|
|
32601
|
+
}, {
|
|
32602
|
+
name: t('backoffice.idmCatalogEditor.items.label.leuchten'),
|
|
32603
|
+
value: '20'
|
|
32604
|
+
}, {
|
|
32605
|
+
name: t('backoffice.idmCatalogEditor.items.label.teppiche'),
|
|
32606
|
+
value: '21'
|
|
32607
|
+
}, {
|
|
32608
|
+
name: t('backoffice.idmCatalogEditor.items.label.kleinteile'),
|
|
32609
|
+
value: '22'
|
|
32610
|
+
}, {
|
|
32611
|
+
name: t('backoffice.idmCatalogEditor.items.label.polsterbetten'),
|
|
32612
|
+
value: '23'
|
|
32613
|
+
}, {
|
|
32614
|
+
name: t('backoffice.idmCatalogEditor.items.label.polsterbettgestelle'),
|
|
32615
|
+
value: '24'
|
|
32616
|
+
}, {
|
|
32617
|
+
name: t('backoffice.idmCatalogEditor.items.label.metrage'),
|
|
32618
|
+
value: '25'
|
|
32619
|
+
}, {
|
|
32620
|
+
name: t('backoffice.idmCatalogEditor.items.label.sonstiges'),
|
|
32621
|
+
value: '26'
|
|
32622
|
+
}];
|
|
32189
32623
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
32190
32624
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
32191
32625
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -32299,8 +32733,7 @@ function TableItems () {
|
|
|
32299
32733
|
field: 'itemIdentification',
|
|
32300
32734
|
cellDataType: 'enum',
|
|
32301
32735
|
customParams: {
|
|
32302
|
-
|
|
32303
|
-
values: Object.keys(itemIdentificationDic),
|
|
32736
|
+
enumData: itemIdentification,
|
|
32304
32737
|
displayLabelTemplate: '${name} (${value})'
|
|
32305
32738
|
},
|
|
32306
32739
|
required: true
|
|
@@ -32312,8 +32745,7 @@ function TableItems () {
|
|
|
32312
32745
|
field: 'typeKey',
|
|
32313
32746
|
cellDataType: 'enum',
|
|
32314
32747
|
customParams: {
|
|
32315
|
-
|
|
32316
|
-
values: Object.keys(typeKeyDic),
|
|
32748
|
+
enumData: typeKey,
|
|
32317
32749
|
displayLabelTemplate: '${name} (${value})'
|
|
32318
32750
|
},
|
|
32319
32751
|
required: true
|
|
@@ -32482,12 +32914,19 @@ function TableSeries () {
|
|
|
32482
32914
|
organizationId = _useModule.organizationId,
|
|
32483
32915
|
updateNavigation = _useModule.updateNavigation,
|
|
32484
32916
|
apiConfig = _useModule.apiConfig;
|
|
32485
|
-
var
|
|
32486
|
-
|
|
32487
|
-
|
|
32488
|
-
|
|
32489
|
-
|
|
32490
|
-
|
|
32917
|
+
var purchaseRetailId = [{
|
|
32918
|
+
name: t('backoffice.idmCatalog.series.label.purchaseRetail.p0'),
|
|
32919
|
+
value: 0
|
|
32920
|
+
}, {
|
|
32921
|
+
name: t('backoffice.idmCatalog.series.label.purchaseRetail.p1'),
|
|
32922
|
+
value: 1
|
|
32923
|
+
}, {
|
|
32924
|
+
name: t('backoffice.idmCatalog.series.label.purchaseRetail.p2'),
|
|
32925
|
+
value: 2
|
|
32926
|
+
}, {
|
|
32927
|
+
name: t('backoffice.idmCatalog.series.label.purchaseRetail.p3'),
|
|
32928
|
+
value: 3
|
|
32929
|
+
}];
|
|
32491
32930
|
var applicationData = useMemo(function () {
|
|
32492
32931
|
return {
|
|
32493
32932
|
catalogId: catalogId,
|
|
@@ -32526,7 +32965,8 @@ function TableSeries () {
|
|
|
32526
32965
|
colDef: [{
|
|
32527
32966
|
field: 'serieNo',
|
|
32528
32967
|
headerName: 'backoffice.idmCatalog.series.label.serieNo',
|
|
32529
|
-
required: true
|
|
32968
|
+
required: true,
|
|
32969
|
+
cellDataType: 'number'
|
|
32530
32970
|
}, {
|
|
32531
32971
|
headerName: 'backoffice.idmCatalog.series.label.seriesName',
|
|
32532
32972
|
marryChildren: true,
|
|
@@ -32559,8 +32999,7 @@ function TableSeries () {
|
|
|
32559
32999
|
required: true,
|
|
32560
33000
|
cellDataType: 'enum',
|
|
32561
33001
|
customParams: {
|
|
32562
|
-
|
|
32563
|
-
values: Object.keys(purchaseRetailIdDic),
|
|
33002
|
+
enumData: purchaseRetailId,
|
|
32564
33003
|
displayLabelTemplate: '${name} (${value})'
|
|
32565
33004
|
}
|
|
32566
33005
|
}, {
|
|
@@ -32656,29 +33095,644 @@ function TableSeries () {
|
|
|
32656
33095
|
});
|
|
32657
33096
|
}
|
|
32658
33097
|
|
|
32659
|
-
function
|
|
32660
|
-
|
|
32661
|
-
|
|
32662
|
-
|
|
32663
|
-
|
|
32664
|
-
|
|
32665
|
-
|
|
32666
|
-
|
|
32667
|
-
|
|
32668
|
-
|
|
32669
|
-
|
|
32670
|
-
|
|
32671
|
-
|
|
32672
|
-
|
|
32673
|
-
|
|
32674
|
-
|
|
32675
|
-
|
|
32676
|
-
|
|
32677
|
-
|
|
33098
|
+
function TableFeatures () {
|
|
33099
|
+
var _useTranslation = useTranslation(),
|
|
33100
|
+
t = _useTranslation.t;
|
|
33101
|
+
var _useModule = useModule(['features']),
|
|
33102
|
+
catalogId = _useModule.catalogId,
|
|
33103
|
+
organizationId = _useModule.organizationId,
|
|
33104
|
+
updateNavigation = _useModule.updateNavigation,
|
|
33105
|
+
apiConfig = _useModule.apiConfig;
|
|
33106
|
+
var headerPosVariationType = [{
|
|
33107
|
+
name: t('backoffice.idmCatalog.features.label.vt.I'),
|
|
33108
|
+
value: 'I'
|
|
33109
|
+
}, {
|
|
33110
|
+
name: t('backoffice.idmCatalog.features.label.vt.K'),
|
|
33111
|
+
value: 'K'
|
|
33112
|
+
}, {
|
|
33113
|
+
name: t('backoffice.idmCatalog.features.label.vt.P'),
|
|
33114
|
+
value: 'P'
|
|
33115
|
+
}];
|
|
33116
|
+
var featureT = [{
|
|
33117
|
+
name: t('backoffice.idmCatalog.features.label.featureTDic.M'),
|
|
33118
|
+
value: 'M'
|
|
33119
|
+
}, {
|
|
33120
|
+
name: t('backoffice.idmCatalog.features.label.featureTDic.C'),
|
|
33121
|
+
value: 'C'
|
|
33122
|
+
}, {
|
|
33123
|
+
name: t('backoffice.idmCatalog.features.label.featureTDic.O'),
|
|
33124
|
+
value: 'O'
|
|
33125
|
+
}];
|
|
33126
|
+
var applicationData = useMemo(function () {
|
|
33127
|
+
return {
|
|
33128
|
+
catalogId: catalogId,
|
|
33129
|
+
organizationId: organizationId
|
|
33130
|
+
};
|
|
33131
|
+
}, [catalogId]);
|
|
33132
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
33133
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33134
|
+
title: /*#__PURE__*/jsxs("div", {
|
|
33135
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'), /*#__PURE__*/jsx(Space$1, {
|
|
33136
|
+
style: {
|
|
33137
|
+
"float": 'right'
|
|
33138
|
+
},
|
|
33139
|
+
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
33140
|
+
selectedCatalog: catalogId,
|
|
33141
|
+
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
33142
|
+
return updateNavigation(id);
|
|
33143
|
+
},
|
|
33144
|
+
idmService: apiConfig.idmService
|
|
33145
|
+
})
|
|
33146
|
+
})]
|
|
33147
|
+
})
|
|
33148
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33149
|
+
gridId: 'crud-grid_features',
|
|
33150
|
+
applicationData: applicationData,
|
|
33151
|
+
configuration: {
|
|
33152
|
+
type: 'dotnetSSM',
|
|
33153
|
+
apiInterface: {
|
|
33154
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features',
|
|
33155
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features',
|
|
33156
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}',
|
|
33157
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}',
|
|
33158
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}'
|
|
33159
|
+
},
|
|
33160
|
+
dateFormat: 'LL',
|
|
33161
|
+
colDef: [{
|
|
33162
|
+
field: 'featureNo',
|
|
33163
|
+
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
33164
|
+
required: true
|
|
33165
|
+
}, {
|
|
33166
|
+
headerName: 'backoffice.idmCatalog.features.label.featureText',
|
|
33167
|
+
marryChildren: true,
|
|
33168
|
+
children: [{
|
|
33169
|
+
field: 'featureText.DE',
|
|
33170
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33171
|
+
isDictionary: true,
|
|
33172
|
+
required: true
|
|
33173
|
+
}, {
|
|
33174
|
+
field: 'featureText.EN',
|
|
33175
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33176
|
+
isDictionary: true
|
|
33177
|
+
}, {
|
|
33178
|
+
field: 'featureText.FR',
|
|
33179
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33180
|
+
isDictionary: true
|
|
33181
|
+
}, {
|
|
33182
|
+
field: 'featureText.IT',
|
|
33183
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33184
|
+
isDictionary: true
|
|
33185
|
+
}]
|
|
33186
|
+
}, {
|
|
33187
|
+
field: 'sequenceNo',
|
|
33188
|
+
headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
|
|
33189
|
+
required: true,
|
|
33190
|
+
cellDataType: 'number'
|
|
33191
|
+
}, {
|
|
33192
|
+
field: 'headerPosVariationType',
|
|
33193
|
+
headerName: 'backoffice.idmCatalog.features.label.headerPosVariationType',
|
|
33194
|
+
required: true,
|
|
33195
|
+
cellDataType: 'enum',
|
|
33196
|
+
customParams: {
|
|
33197
|
+
enumData: headerPosVariationType,
|
|
33198
|
+
displayLabelTemplate: '${name} (${value})'
|
|
33199
|
+
}
|
|
33200
|
+
}, {
|
|
33201
|
+
field: 'featureT',
|
|
33202
|
+
headerName: 'backoffice.idmCatalog.features.label.featureT',
|
|
33203
|
+
cellDataType: 'enum',
|
|
33204
|
+
customParams: {
|
|
33205
|
+
enumData: featureT,
|
|
33206
|
+
displayLabelTemplate: '${name} (${value})'
|
|
33207
|
+
}
|
|
33208
|
+
}, {
|
|
33209
|
+
field: 'measureUnit',
|
|
33210
|
+
headerName: 'backoffice.idmCatalog.features.label.measureUnit'
|
|
33211
|
+
}, {
|
|
33212
|
+
field: 'measureParameter',
|
|
33213
|
+
headerName: 'backoffice.idmCatalog.features.label.measureParameter'
|
|
33214
|
+
}, {
|
|
33215
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33216
|
+
field: 'lastUpdatedDate',
|
|
33217
|
+
cellDataType: 'dateString',
|
|
33218
|
+
editable: false
|
|
33219
|
+
}, {
|
|
33220
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33221
|
+
field: 'createdDate',
|
|
33222
|
+
cellDataType: 'dateString',
|
|
33223
|
+
editable: false
|
|
33224
|
+
}, {
|
|
33225
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33226
|
+
field: 'createdByDisplayText',
|
|
33227
|
+
editable: false
|
|
33228
|
+
}, {
|
|
33229
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33230
|
+
field: 'lastUpdatedByDisplayText',
|
|
33231
|
+
editable: false
|
|
33232
|
+
}, {
|
|
33233
|
+
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
33234
|
+
field: '_id',
|
|
33235
|
+
editable: false
|
|
33236
|
+
}, {
|
|
33237
|
+
field: 'organizationId',
|
|
33238
|
+
editable: false,
|
|
33239
|
+
hide: true,
|
|
33240
|
+
lockVisible: true,
|
|
33241
|
+
suppressColumnsToolPanel: true,
|
|
33242
|
+
defaultValue: '${organizationId}'
|
|
33243
|
+
}, {
|
|
33244
|
+
field: 'catalogId',
|
|
33245
|
+
editable: false,
|
|
33246
|
+
hide: true,
|
|
33247
|
+
lockVisible: true,
|
|
33248
|
+
suppressColumnsToolPanel: true,
|
|
33249
|
+
defaultValue: '${catalogId}'
|
|
33250
|
+
}]
|
|
33251
|
+
}
|
|
33252
|
+
})]
|
|
33253
|
+
});
|
|
33254
|
+
}
|
|
33255
|
+
|
|
33256
|
+
function TableOptions () {
|
|
33257
|
+
var _useTranslation = useTranslation(),
|
|
33258
|
+
t = _useTranslation.t;
|
|
33259
|
+
var _useModule = useModule(['options']),
|
|
33260
|
+
catalogId = _useModule.catalogId,
|
|
33261
|
+
updateNavigation = _useModule.updateNavigation,
|
|
33262
|
+
apiConfig = _useModule.apiConfig,
|
|
33263
|
+
organizationId = _useModule.organizationId;
|
|
33264
|
+
var _React$useState = React.useState(),
|
|
33265
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33266
|
+
selectedFeature = _React$useState2[0],
|
|
33267
|
+
setSelectedFeature = _React$useState2[1];
|
|
33268
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
33269
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33270
|
+
title: /*#__PURE__*/jsxs("div", {
|
|
33271
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsxs(Space$1, {
|
|
33272
|
+
style: {
|
|
33273
|
+
"float": 'right'
|
|
33274
|
+
},
|
|
33275
|
+
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
33276
|
+
selectedCatalog: catalogId,
|
|
33277
|
+
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
33278
|
+
return updateNavigation(id);
|
|
33279
|
+
},
|
|
33280
|
+
idmService: apiConfig.idmService
|
|
33281
|
+
}), /*#__PURE__*/jsx(PrefilterSelector, {
|
|
33282
|
+
type: 'option',
|
|
33283
|
+
catalogId: catalogId,
|
|
33284
|
+
selectedFeature: selectedFeature,
|
|
33285
|
+
setSelectedFeature: setSelectedFeature,
|
|
33286
|
+
idmService: apiConfig.idmService
|
|
33287
|
+
})]
|
|
33288
|
+
})]
|
|
33289
|
+
})
|
|
33290
|
+
}), selectedFeature && /*#__PURE__*/jsx(Spreadsheet, {
|
|
33291
|
+
gridId: 'crud-grid_options',
|
|
33292
|
+
applicationData: {
|
|
33293
|
+
organizationId: organizationId,
|
|
33294
|
+
catalogId: catalogId
|
|
33295
|
+
},
|
|
33296
|
+
configuration: {
|
|
33297
|
+
type: 'dotnetSSM',
|
|
33298
|
+
idCol: 'optionKey',
|
|
33299
|
+
apiInterface: {
|
|
33300
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options',
|
|
33301
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options',
|
|
33302
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}',
|
|
33303
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}',
|
|
33304
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}'
|
|
33305
|
+
},
|
|
33306
|
+
dateFormat: 'LL',
|
|
33307
|
+
floatingFilter: true,
|
|
33308
|
+
colDef: [{
|
|
33309
|
+
field: 'optionKey',
|
|
33310
|
+
required: true,
|
|
33311
|
+
unique: true
|
|
33312
|
+
}, {
|
|
33313
|
+
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
33314
|
+
field: 'sequenceNo',
|
|
33315
|
+
cellDataType: 'number'
|
|
33316
|
+
}, {
|
|
33317
|
+
headerName: 'backoffice.idmCatalog.common.label.texts',
|
|
33318
|
+
children: [{
|
|
33319
|
+
headerName: 'backoffice.idmCatalog.options.label.optionText',
|
|
33320
|
+
marryChildren: true,
|
|
33321
|
+
children: [{
|
|
33322
|
+
field: 'optionText.DE',
|
|
33323
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33324
|
+
isDictionary: true,
|
|
33325
|
+
required: true
|
|
33326
|
+
}, {
|
|
33327
|
+
field: 'optionText.EN',
|
|
33328
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33329
|
+
isDictionary: true
|
|
33330
|
+
}, {
|
|
33331
|
+
field: 'optionText.FR',
|
|
33332
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33333
|
+
isDictionary: true
|
|
33334
|
+
}, {
|
|
33335
|
+
field: 'optionText.IT',
|
|
33336
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33337
|
+
isDictionary: true
|
|
33338
|
+
}]
|
|
33339
|
+
}, {
|
|
33340
|
+
headerName: 'backoffice.idmCatalog.options.label.optionCommentText',
|
|
33341
|
+
marryChildren: true,
|
|
33342
|
+
children: [{
|
|
33343
|
+
field: 'optionCommentText.DE',
|
|
33344
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33345
|
+
isDictionary: true
|
|
33346
|
+
}, {
|
|
33347
|
+
field: 'optionCommentText.EN',
|
|
33348
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33349
|
+
isDictionary: true
|
|
33350
|
+
}, {
|
|
33351
|
+
field: 'optionCommentText.FR',
|
|
33352
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33353
|
+
isDictionary: true
|
|
33354
|
+
}, {
|
|
33355
|
+
field: 'optionCommentText.IT',
|
|
33356
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33357
|
+
isDictionary: true
|
|
33358
|
+
}]
|
|
33359
|
+
}, {
|
|
33360
|
+
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
|
33361
|
+
field: 'optionFreeText',
|
|
33362
|
+
cellDataType: 'boolean'
|
|
33363
|
+
}]
|
|
33364
|
+
}, {
|
|
33365
|
+
headerName: 'backoffice.idmCatalog.items.label.validation',
|
|
33366
|
+
children: [{
|
|
33367
|
+
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
|
33368
|
+
field: 'validFromDate',
|
|
33369
|
+
cellDataType: 'dateString'
|
|
33370
|
+
}, {
|
|
33371
|
+
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
|
33372
|
+
field: 'validUntilDate',
|
|
33373
|
+
cellDataType: 'dateString'
|
|
33374
|
+
}]
|
|
33375
|
+
}, {
|
|
33376
|
+
headerName: 'backoffice.idmCatalog.options.label.material',
|
|
33377
|
+
children: [{
|
|
33378
|
+
headerName: 'backoffice.idmCatalog.options.label.materialNo',
|
|
33379
|
+
field: 'materialNo'
|
|
33380
|
+
}, {
|
|
33381
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorR',
|
|
33382
|
+
field: 'materialColorR',
|
|
33383
|
+
cellDataType: 'number'
|
|
33384
|
+
}, {
|
|
33385
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorG',
|
|
33386
|
+
field: 'materialColorG',
|
|
33387
|
+
cellDataType: 'number'
|
|
33388
|
+
}, {
|
|
33389
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorB',
|
|
33390
|
+
field: 'materialColorR',
|
|
33391
|
+
cellDataType: 'number'
|
|
33392
|
+
}]
|
|
33393
|
+
}, {
|
|
33394
|
+
headerName: 'backoffice.idmCatalog.options.label.measurement',
|
|
33395
|
+
children: [{
|
|
33396
|
+
headerName: 'backoffice.idmCatalog.options.label.measureNo',
|
|
33397
|
+
field: 'measureNo'
|
|
33398
|
+
}, {
|
|
33399
|
+
headerName: 'backoffice.idmCatalog.options.label.measureValue',
|
|
33400
|
+
field: 'measureValue',
|
|
33401
|
+
cellDataType: 'number'
|
|
33402
|
+
}, {
|
|
33403
|
+
headerName: 'backoffice.idmCatalog.options.label.measureUnit',
|
|
33404
|
+
field: 'measureUnit'
|
|
33405
|
+
}]
|
|
33406
|
+
}, {
|
|
33407
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33408
|
+
field: 'lastUpdatedDate',
|
|
33409
|
+
cellDataType: 'dateString',
|
|
33410
|
+
editable: false
|
|
33411
|
+
}, {
|
|
33412
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33413
|
+
field: 'lastUpdatedByDisplayText',
|
|
33414
|
+
editable: false
|
|
33415
|
+
}, {
|
|
33416
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33417
|
+
field: 'createdDate',
|
|
33418
|
+
cellDataType: 'dateString',
|
|
33419
|
+
editable: false
|
|
33420
|
+
}, {
|
|
33421
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33422
|
+
field: 'createdByDisplayText',
|
|
33423
|
+
editable: false
|
|
33424
|
+
}]
|
|
33425
|
+
}
|
|
33426
|
+
})]
|
|
33427
|
+
});
|
|
33428
|
+
}
|
|
33429
|
+
|
|
33430
|
+
function TableFeatureClasses () {
|
|
33431
|
+
var _useTranslation = useTranslation(),
|
|
33432
|
+
t = _useTranslation.t;
|
|
33433
|
+
var _useModule = useModule(['featureclasses']),
|
|
33434
|
+
catalogId = _useModule.catalogId,
|
|
33435
|
+
organizationId = _useModule.organizationId,
|
|
33436
|
+
updateNavigation = _useModule.updateNavigation,
|
|
33437
|
+
apiConfig = _useModule.apiConfig;
|
|
33438
|
+
var applicationData = useMemo(function () {
|
|
33439
|
+
return {
|
|
33440
|
+
catalogId: catalogId,
|
|
33441
|
+
organizationId: organizationId
|
|
33442
|
+
};
|
|
33443
|
+
}, [catalogId]);
|
|
33444
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
33445
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33446
|
+
title: /*#__PURE__*/jsxs("div", {
|
|
33447
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses'), /*#__PURE__*/jsx(Space$1, {
|
|
33448
|
+
style: {
|
|
33449
|
+
"float": 'right'
|
|
33450
|
+
},
|
|
33451
|
+
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
33452
|
+
selectedCatalog: catalogId,
|
|
33453
|
+
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
33454
|
+
return updateNavigation(id);
|
|
33455
|
+
},
|
|
33456
|
+
idmService: apiConfig.idmService
|
|
33457
|
+
})
|
|
33458
|
+
})]
|
|
33459
|
+
})
|
|
33460
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33461
|
+
gridId: 'crud-grid_featureclasses',
|
|
33462
|
+
applicationData: applicationData,
|
|
33463
|
+
configuration: {
|
|
33464
|
+
type: 'dotnetSSM',
|
|
33465
|
+
apiInterface: {
|
|
33466
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses',
|
|
33467
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses',
|
|
33468
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${_id}',
|
|
33469
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${_id}',
|
|
33470
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${_id}'
|
|
33471
|
+
},
|
|
33472
|
+
dateFormat: 'LL',
|
|
33473
|
+
colDef: [{
|
|
33474
|
+
field: 'featureClassNo',
|
|
33475
|
+
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassNo',
|
|
33476
|
+
required: true
|
|
33477
|
+
}, {
|
|
33478
|
+
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassName',
|
|
33479
|
+
marryChildren: true,
|
|
33480
|
+
children: [{
|
|
33481
|
+
field: 'featureClassName.DE',
|
|
33482
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33483
|
+
isDictionary: true
|
|
33484
|
+
}, {
|
|
33485
|
+
field: 'featureClassName.EN',
|
|
33486
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33487
|
+
isDictionary: true
|
|
33488
|
+
}, {
|
|
33489
|
+
field: 'featureClassName.FR',
|
|
33490
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33491
|
+
isDictionary: true
|
|
33492
|
+
}, {
|
|
33493
|
+
field: 'featureClassName.IT',
|
|
33494
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33495
|
+
isDictionary: true
|
|
33496
|
+
}]
|
|
33497
|
+
}, {
|
|
33498
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33499
|
+
field: 'lastUpdatedDate',
|
|
33500
|
+
cellDataType: 'dateString',
|
|
33501
|
+
editable: false
|
|
33502
|
+
}, {
|
|
33503
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33504
|
+
field: 'createdDate',
|
|
33505
|
+
cellDataType: 'dateString',
|
|
33506
|
+
editable: false
|
|
33507
|
+
}, {
|
|
33508
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33509
|
+
field: 'createdByDisplayText',
|
|
33510
|
+
editable: false
|
|
33511
|
+
}, {
|
|
33512
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33513
|
+
field: 'lastUpdatedByDisplayText',
|
|
33514
|
+
editable: false
|
|
33515
|
+
}, {
|
|
33516
|
+
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
33517
|
+
field: '_id',
|
|
33518
|
+
editable: false
|
|
33519
|
+
}, {
|
|
33520
|
+
field: 'organizationId',
|
|
33521
|
+
editable: false,
|
|
33522
|
+
hide: true,
|
|
33523
|
+
lockVisible: true,
|
|
33524
|
+
suppressColumnsToolPanel: true,
|
|
33525
|
+
defaultValue: '${organizationId}'
|
|
33526
|
+
}, {
|
|
33527
|
+
field: 'catalogId',
|
|
33528
|
+
editable: false,
|
|
33529
|
+
hide: true,
|
|
33530
|
+
lockVisible: true,
|
|
33531
|
+
suppressColumnsToolPanel: true,
|
|
33532
|
+
defaultValue: '${catalogId}'
|
|
33533
|
+
}]
|
|
33534
|
+
}
|
|
33535
|
+
})]
|
|
33536
|
+
});
|
|
33537
|
+
}
|
|
33538
|
+
|
|
33539
|
+
function TableDecisions () {
|
|
33540
|
+
var _useTranslation = useTranslation(),
|
|
33541
|
+
t = _useTranslation.t;
|
|
33542
|
+
var _useModule = useModule(['decisions']),
|
|
33543
|
+
catalogId = _useModule.catalogId,
|
|
33544
|
+
organizationId = _useModule.organizationId,
|
|
33545
|
+
updateNavigation = _useModule.updateNavigation,
|
|
33546
|
+
apiConfig = _useModule.apiConfig;
|
|
33547
|
+
var decisionType = [{
|
|
33548
|
+
name: t('backoffice.idmCatalog.decisions.label.type.d0'),
|
|
33549
|
+
value: 0
|
|
33550
|
+
}, {
|
|
33551
|
+
name: t('backoffice.idmCatalog.decisions.label.type.d1'),
|
|
33552
|
+
value: 1
|
|
33553
|
+
}, {
|
|
33554
|
+
name: t('backoffice.idmCatalog.decisions.label.type.d2'),
|
|
33555
|
+
value: 2
|
|
33556
|
+
}, {
|
|
33557
|
+
name: t('backoffice.idmCatalog.decisions.label.type.d3'),
|
|
33558
|
+
value: 3
|
|
33559
|
+
}];
|
|
33560
|
+
var applicationData = useMemo(function () {
|
|
33561
|
+
return {
|
|
33562
|
+
catalogId: catalogId,
|
|
33563
|
+
organizationId: organizationId
|
|
33564
|
+
};
|
|
33565
|
+
}, [catalogId]);
|
|
33566
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
33567
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33568
|
+
title: /*#__PURE__*/jsxs("div", {
|
|
33569
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions'), /*#__PURE__*/jsx(Space$1, {
|
|
33570
|
+
style: {
|
|
33571
|
+
"float": 'right'
|
|
33572
|
+
},
|
|
33573
|
+
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
33574
|
+
selectedCatalog: catalogId,
|
|
33575
|
+
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
33576
|
+
return updateNavigation(id);
|
|
33577
|
+
},
|
|
33578
|
+
idmService: apiConfig.idmService
|
|
33579
|
+
})
|
|
33580
|
+
})]
|
|
33581
|
+
})
|
|
33582
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33583
|
+
gridId: 'crud-grid_decisions',
|
|
33584
|
+
applicationData: applicationData,
|
|
33585
|
+
configuration: {
|
|
33586
|
+
type: 'dotnetSSM',
|
|
33587
|
+
apiInterface: {
|
|
33588
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions',
|
|
33589
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions',
|
|
33590
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions/${_id}',
|
|
33591
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions/${_id}',
|
|
33592
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions/${_id}'
|
|
33593
|
+
},
|
|
33594
|
+
dateFormat: 'LL',
|
|
33595
|
+
colDef: [{
|
|
33596
|
+
field: 'decisionNo',
|
|
33597
|
+
headerName: 'backoffice.idmCatalog.decisions.label.decisionNo',
|
|
33598
|
+
required: true
|
|
33599
|
+
}, {
|
|
33600
|
+
headerName: 'backoffice.idmCatalog.decisions.label.decisionText',
|
|
33601
|
+
marryChildren: true,
|
|
33602
|
+
children: [{
|
|
33603
|
+
field: 'decisionText.DE',
|
|
33604
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33605
|
+
isDictionary: true,
|
|
33606
|
+
required: true
|
|
33607
|
+
}, {
|
|
33608
|
+
field: 'decisionText.EN',
|
|
33609
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33610
|
+
isDictionary: true
|
|
33611
|
+
}, {
|
|
33612
|
+
field: 'decisionText.FR',
|
|
33613
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33614
|
+
isDictionary: true
|
|
33615
|
+
}, {
|
|
33616
|
+
field: 'decisionText.IT',
|
|
33617
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33618
|
+
isDictionary: true
|
|
33619
|
+
}]
|
|
33620
|
+
}, {
|
|
33621
|
+
field: 'comment',
|
|
33622
|
+
headerName: 'backoffice.idmCatalog.decisions.label.comment'
|
|
33623
|
+
}, {
|
|
33624
|
+
field: 'prio',
|
|
33625
|
+
headerName: 'backoffice.idmCatalog.decisions.label.prio',
|
|
33626
|
+
required: true,
|
|
33627
|
+
cellDataType: 'number'
|
|
33628
|
+
}, {
|
|
33629
|
+
field: 'decisionType',
|
|
33630
|
+
headerName: 'backoffice.idmCatalog.decisions.label.decisionType',
|
|
33631
|
+
required: true,
|
|
33632
|
+
cellDataType: 'enum',
|
|
33633
|
+
customParams: {
|
|
33634
|
+
enumData: decisionType,
|
|
33635
|
+
displayLabelTemplate: '${name} (${value})'
|
|
33636
|
+
}
|
|
33637
|
+
}, {
|
|
33638
|
+
field: 'featureRefs',
|
|
33639
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.featureRefs',
|
|
33640
|
+
cellDataType: 'lookup',
|
|
33641
|
+
editable: true,
|
|
33642
|
+
customParams: {
|
|
33643
|
+
nameField: 'featureRefsDisplayTexts',
|
|
33644
|
+
displayLabelTemplate: '${name} (${value})',
|
|
33645
|
+
apiInterface: {
|
|
33646
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
|
|
33647
|
+
},
|
|
33648
|
+
lookupValue: 'featureText',
|
|
33649
|
+
lookupKey: 'featureNo',
|
|
33650
|
+
lookupKeyFilterType: {
|
|
33651
|
+
type: 'equals',
|
|
33652
|
+
filterType: 'number'
|
|
33653
|
+
},
|
|
33654
|
+
multiple: true,
|
|
33655
|
+
translated: true
|
|
33656
|
+
},
|
|
33657
|
+
additionalFields: ['featureRefsDisplayTexts'],
|
|
33658
|
+
isDictionary: true
|
|
33659
|
+
}, {
|
|
33660
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33661
|
+
field: 'lastUpdatedDate',
|
|
33662
|
+
cellDataType: 'dateString',
|
|
33663
|
+
editable: false
|
|
33664
|
+
}, {
|
|
33665
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33666
|
+
field: 'createdDate',
|
|
33667
|
+
cellDataType: 'dateString',
|
|
33668
|
+
editable: false
|
|
33669
|
+
}, {
|
|
33670
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33671
|
+
field: 'createdByDisplayText',
|
|
33672
|
+
editable: false
|
|
33673
|
+
}, {
|
|
33674
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33675
|
+
field: 'lastUpdatedByDisplayText',
|
|
33676
|
+
editable: false
|
|
33677
|
+
}, {
|
|
33678
|
+
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
33679
|
+
field: '_id',
|
|
33680
|
+
editable: false
|
|
33681
|
+
}, {
|
|
33682
|
+
field: 'organizationId',
|
|
33683
|
+
editable: false,
|
|
33684
|
+
hide: true,
|
|
33685
|
+
lockVisible: true,
|
|
33686
|
+
suppressColumnsToolPanel: true,
|
|
33687
|
+
defaultValue: '${organizationId}'
|
|
33688
|
+
}, {
|
|
33689
|
+
field: 'catalogId',
|
|
33690
|
+
editable: false,
|
|
33691
|
+
hide: true,
|
|
33692
|
+
lockVisible: true,
|
|
33693
|
+
suppressColumnsToolPanel: true,
|
|
33694
|
+
defaultValue: '${catalogId}'
|
|
33695
|
+
}]
|
|
33696
|
+
}
|
|
33697
|
+
})]
|
|
33698
|
+
});
|
|
33699
|
+
}
|
|
33700
|
+
|
|
33701
|
+
function IDMCatalogEditor (_ref) {
|
|
33702
|
+
_objectDestructuringEmpty(_ref);
|
|
33703
|
+
return /*#__PURE__*/jsx("div", {
|
|
33704
|
+
style: {
|
|
33705
|
+
height: '85vh',
|
|
33706
|
+
display: 'flex',
|
|
33707
|
+
flexDirection: 'column'
|
|
33708
|
+
},
|
|
33709
|
+
children: /*#__PURE__*/jsx(Content$1, {})
|
|
33710
|
+
});
|
|
33711
|
+
}
|
|
33712
|
+
function Content$1() {
|
|
33713
|
+
return /*#__PURE__*/jsxs(Routes, {
|
|
33714
|
+
children: [/*#__PURE__*/jsx(Route, {
|
|
33715
|
+
index: true,
|
|
33716
|
+
path: "",
|
|
33717
|
+
element: /*#__PURE__*/jsx(TableCatalogs, {})
|
|
33718
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33719
|
+
path: ":catalogId/series",
|
|
32678
33720
|
element: /*#__PURE__*/jsx(TableSeries, {})
|
|
32679
33721
|
}), /*#__PURE__*/jsx(Route, {
|
|
32680
33722
|
path: ":catalogId/items",
|
|
32681
33723
|
element: /*#__PURE__*/jsx(TableItems, {})
|
|
33724
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33725
|
+
path: ":catalogId/features",
|
|
33726
|
+
element: /*#__PURE__*/jsx(TableFeatures, {})
|
|
33727
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33728
|
+
path: ":catalogId/options",
|
|
33729
|
+
element: /*#__PURE__*/jsx(TableOptions, {})
|
|
33730
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33731
|
+
path: ":catalogId/featureclasses",
|
|
33732
|
+
element: /*#__PURE__*/jsx(TableFeatureClasses, {})
|
|
33733
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33734
|
+
path: ":catalogId/decisions",
|
|
33735
|
+
element: /*#__PURE__*/jsx(TableDecisions, {})
|
|
32682
33736
|
})]
|
|
32683
33737
|
});
|
|
32684
33738
|
}
|