@crystaldesign/diva-backoffice 25.2.0-rc.9 → 25.3.0-beta.10
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 +1579 -1505
- package/build/types/backoffice/src/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts +3 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +3 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts +3 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/CatalogSelector.d.ts +4 -3
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/CatalogSelector.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.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatures/index.d.ts.map +1 -1
- 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.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePrices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts +5 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/useModule.d.ts +3 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts +26 -0
- package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts +31 -0
- package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts +4 -3
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts +170 -5
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.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/IDMEnricherEditor/modules/TableRenaming/index.d.ts +3 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts +3 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts +2 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts +2 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts +2 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts +2 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts +2 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/types.d.ts +6 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/useModule.d.ts +3 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/SelectSimple/useSelectSimpleData.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -7840,6 +7840,25 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
7840
7840
|
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
7841
7841
|
value: false
|
|
7842
7842
|
}]
|
|
7843
|
+
}, {
|
|
7844
|
+
name: ['settings', 'versioningToIDMService'],
|
|
7845
|
+
label: t('backoffice.form.organizationdetails.items.versioningToIDMService'),
|
|
7846
|
+
permission: 'backoffice_sys_admin_organizations',
|
|
7847
|
+
hidden: function hidden(data) {
|
|
7848
|
+
return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'ASSOCIATION';
|
|
7849
|
+
},
|
|
7850
|
+
type: 'radio',
|
|
7851
|
+
optionType: 'button',
|
|
7852
|
+
options: [{
|
|
7853
|
+
label: t('backoffice.form.organizationdetails.items.na'),
|
|
7854
|
+
value: undefined
|
|
7855
|
+
}, {
|
|
7856
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
7857
|
+
value: true
|
|
7858
|
+
}, {
|
|
7859
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
7860
|
+
value: false
|
|
7861
|
+
}]
|
|
7843
7862
|
}, {
|
|
7844
7863
|
name: ['api2Location', 'vk'],
|
|
7845
7864
|
label: t('backoffice.form.organizationdetails.items.api2Location.vk'),
|
|
@@ -12562,7 +12581,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
12562
12581
|
},
|
|
12563
12582
|
IFrameIMDExport: {
|
|
12564
12583
|
type: 'IFrame',
|
|
12565
|
-
apiInterface: '/api2/IDMExport.aspx?mainAuthToken=${nToken}&
|
|
12584
|
+
apiInterface: '/api2/IDMExport.aspx?mainAuthToken=${nToken}&organizationId=${organizationId}'
|
|
12566
12585
|
},
|
|
12567
12586
|
IFrameIDMImport: {
|
|
12568
12587
|
type: 'IFrame',
|
|
@@ -16580,7 +16599,11 @@ function useSelectSimpleData (_ref) {
|
|
|
16580
16599
|
// set the selected option only after the options are loaded
|
|
16581
16600
|
if (value && options) {
|
|
16582
16601
|
LOG$a.debug('value changed', value);
|
|
16583
|
-
|
|
16602
|
+
var _selected = findByValue(value, options, selectMapping);
|
|
16603
|
+
var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
|
|
16604
|
+
return item.value;
|
|
16605
|
+
}) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
|
|
16606
|
+
onSelectionChanged(selectedValues, _selected);
|
|
16584
16607
|
} else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
|
|
16585
16608
|
onSelectionChanged(options[0].value, options[0]);
|
|
16586
16609
|
}
|
|
@@ -29998,14 +30021,19 @@ var Spreadsheet = observer(SpreadsheetWrapper);
|
|
|
29998
30021
|
|
|
29999
30022
|
function PackageSelector(_ref) {
|
|
30000
30023
|
var organizationId = _ref.organizationId,
|
|
30001
|
-
|
|
30024
|
+
packageId = _ref.packageId,
|
|
30002
30025
|
setSelectedPackage = _ref.setSelectedPackage,
|
|
30003
30026
|
enricherService = _ref.enricherService;
|
|
30004
30027
|
var _useTranslation = useTranslation(),
|
|
30005
30028
|
t = _useTranslation.t;
|
|
30029
|
+
var value = useMemo(function () {
|
|
30030
|
+
return {
|
|
30031
|
+
_id: packageId
|
|
30032
|
+
};
|
|
30033
|
+
}, [packageId]);
|
|
30006
30034
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
|
30007
30035
|
apiInterface: {
|
|
30008
|
-
read: enricherService + "/packages?fields=name;_id&filter=organizationId==\"".concat(organizationId, "\"")
|
|
30036
|
+
read: enricherService + "/packages?fields=name;_id;isoLanguageIds;isApi&filter=organizationId==\"".concat(organizationId, "\"")
|
|
30009
30037
|
},
|
|
30010
30038
|
apiMapping: {
|
|
30011
30039
|
type: 'query',
|
|
@@ -30019,11 +30047,9 @@ function PackageSelector(_ref) {
|
|
|
30019
30047
|
value: '${_id}'
|
|
30020
30048
|
},
|
|
30021
30049
|
title: t('backoffice.menu.items.label.IDMEnricherEditorTablePackages'),
|
|
30022
|
-
value:
|
|
30023
|
-
_id: selectedPackage
|
|
30024
|
-
},
|
|
30050
|
+
value: value,
|
|
30025
30051
|
onChange: function onChange(value) {
|
|
30026
|
-
return setSelectedPackage(value
|
|
30052
|
+
return setSelectedPackage(value);
|
|
30027
30053
|
},
|
|
30028
30054
|
search: true,
|
|
30029
30055
|
style: {
|
|
@@ -30072,6 +30098,10 @@ function useModule$1 (currentModules) {
|
|
|
30072
30098
|
var _useSearchParams = useSearchParams(),
|
|
30073
30099
|
_useSearchParams2 = _slicedToArray(_useSearchParams, 1),
|
|
30074
30100
|
searchParams = _useSearchParams2[0];
|
|
30101
|
+
var _useState = useState(),
|
|
30102
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
30103
|
+
selectedPackage = _useState2[0],
|
|
30104
|
+
setSelectedPackage = _useState2[1];
|
|
30075
30105
|
var menuItems = useMemo(function () {
|
|
30076
30106
|
return [{
|
|
30077
30107
|
key: 'renaming',
|
|
@@ -30080,29 +30110,27 @@ function useModule$1 (currentModules) {
|
|
|
30080
30110
|
},
|
|
30081
30111
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30082
30112
|
label: t('backoffice.menu.items.label.IDMEnricherEditorTableRenaming'),
|
|
30083
|
-
children: [
|
|
30084
|
-
|
|
30085
|
-
|
|
30086
|
-
|
|
30087
|
-
|
|
30088
|
-
|
|
30089
|
-
|
|
30090
|
-
|
|
30091
|
-
|
|
30092
|
-
|
|
30093
|
-
|
|
30094
|
-
|
|
30095
|
-
|
|
30096
|
-
|
|
30097
|
-
|
|
30098
|
-
|
|
30099
|
-
|
|
30100
|
-
|
|
30101
|
-
|
|
30102
|
-
|
|
30103
|
-
|
|
30104
|
-
// },
|
|
30105
|
-
{
|
|
30113
|
+
children: [].concat(_toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
|
30114
|
+
key: 'catalogs',
|
|
30115
|
+
style: {
|
|
30116
|
+
margin: 0
|
|
30117
|
+
},
|
|
30118
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30119
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
30120
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/catalogs' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30121
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingCatalog')
|
|
30122
|
+
})
|
|
30123
|
+
}, {
|
|
30124
|
+
key: 'series',
|
|
30125
|
+
style: {
|
|
30126
|
+
margin: 0
|
|
30127
|
+
},
|
|
30128
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30129
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
30130
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/series' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30131
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSerie')
|
|
30132
|
+
})
|
|
30133
|
+
}]), [{
|
|
30106
30134
|
key: 'features',
|
|
30107
30135
|
style: {
|
|
30108
30136
|
margin: 0
|
|
@@ -30113,7 +30141,7 @@ function useModule$1 (currentModules) {
|
|
|
30113
30141
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
|
|
30114
30142
|
})
|
|
30115
30143
|
}, {
|
|
30116
|
-
key: '
|
|
30144
|
+
key: 'options',
|
|
30117
30145
|
style: {
|
|
30118
30146
|
margin: 0
|
|
30119
30147
|
},
|
|
@@ -30132,18 +30160,17 @@ function useModule$1 (currentModules) {
|
|
|
30132
30160
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30133
30161
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
|
|
30134
30162
|
})
|
|
30135
|
-
}
|
|
30136
|
-
|
|
30137
|
-
|
|
30138
|
-
|
|
30139
|
-
|
|
30140
|
-
|
|
30141
|
-
|
|
30142
|
-
|
|
30143
|
-
|
|
30144
|
-
|
|
30145
|
-
|
|
30146
|
-
]
|
|
30163
|
+
}], _toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
|
30164
|
+
key: 'detailInfos',
|
|
30165
|
+
style: {
|
|
30166
|
+
margin: 0
|
|
30167
|
+
},
|
|
30168
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30169
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
30170
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/detailInfos' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30171
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfo')
|
|
30172
|
+
})
|
|
30173
|
+
}]))
|
|
30147
30174
|
}, {
|
|
30148
30175
|
key: 'tabgroups',
|
|
30149
30176
|
style: {
|
|
@@ -30161,20 +30188,17 @@ function useModule$1 (currentModules) {
|
|
|
30161
30188
|
},
|
|
30162
30189
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30163
30190
|
label: t('backoffice.menu.items.label.IDMEnricherEditorTableExclusivity'),
|
|
30164
|
-
children: [
|
|
30165
|
-
|
|
30166
|
-
|
|
30167
|
-
|
|
30168
|
-
|
|
30169
|
-
|
|
30170
|
-
|
|
30171
|
-
|
|
30172
|
-
|
|
30173
|
-
|
|
30174
|
-
|
|
30175
|
-
// ),
|
|
30176
|
-
// },
|
|
30177
|
-
{
|
|
30191
|
+
children: [].concat(_toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
|
30192
|
+
key: 'eserie',
|
|
30193
|
+
style: {
|
|
30194
|
+
margin: 0
|
|
30195
|
+
},
|
|
30196
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30197
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
30198
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eserie' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30199
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSerie')
|
|
30200
|
+
})
|
|
30201
|
+
}]), [{
|
|
30178
30202
|
key: 'efeature',
|
|
30179
30203
|
style: {
|
|
30180
30204
|
margin: 0
|
|
@@ -30204,18 +30228,17 @@ function useModule$1 (currentModules) {
|
|
|
30204
30228
|
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eitem' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30205
30229
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
|
|
30206
30230
|
})
|
|
30207
|
-
}
|
|
30208
|
-
|
|
30209
|
-
|
|
30210
|
-
|
|
30211
|
-
|
|
30212
|
-
|
|
30213
|
-
|
|
30214
|
-
|
|
30215
|
-
|
|
30216
|
-
|
|
30217
|
-
|
|
30218
|
-
]
|
|
30231
|
+
}], _toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
|
30232
|
+
key: 'edetailInfo',
|
|
30233
|
+
style: {
|
|
30234
|
+
margin: 0
|
|
30235
|
+
},
|
|
30236
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30237
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
30238
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/edetailInfo' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30239
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfo')
|
|
30240
|
+
})
|
|
30241
|
+
}]))
|
|
30219
30242
|
}, {
|
|
30220
30243
|
key: 'properties',
|
|
30221
30244
|
style: {
|
|
@@ -30261,7 +30284,8 @@ function useModule$1 (currentModules) {
|
|
|
30261
30284
|
if (!packageId) throw new Error('packageId is required');
|
|
30262
30285
|
var updateNavigationModule = useCallback(function (currentPackage) {
|
|
30263
30286
|
var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
|
|
30264
|
-
updateNavigation(currentPackage, modules, '../');
|
|
30287
|
+
updateNavigation(currentPackage._id, modules, '../');
|
|
30288
|
+
setSelectedPackage(currentPackage);
|
|
30265
30289
|
}, [updateNavigation]);
|
|
30266
30290
|
useEffect(function () {
|
|
30267
30291
|
//update the navigation supmenu for the packages module to include the current package id
|
|
@@ -30292,7 +30316,51 @@ function useModule$1 (currentModules) {
|
|
|
30292
30316
|
updateNavigation: updateNavigationModule,
|
|
30293
30317
|
organizationId: organizationId,
|
|
30294
30318
|
apiConfig: apiConfig,
|
|
30295
|
-
packageId: packageId
|
|
30319
|
+
packageId: packageId,
|
|
30320
|
+
selectedPackage: selectedPackage
|
|
30321
|
+
};
|
|
30322
|
+
}
|
|
30323
|
+
|
|
30324
|
+
function createTranslatedColumnConfig(field, headerName, languages) {
|
|
30325
|
+
var required = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
30326
|
+
var cellDataType = arguments.length > 4 ? arguments[4] : undefined;
|
|
30327
|
+
var customParams = arguments.length > 5 ? arguments[5] : undefined;
|
|
30328
|
+
var additionalFields = arguments.length > 6 ? arguments[6] : undefined;
|
|
30329
|
+
if (languages.length == 1) {
|
|
30330
|
+
return {
|
|
30331
|
+
headerName: headerName,
|
|
30332
|
+
field: "".concat(field, ".").concat(languages[0]),
|
|
30333
|
+
required: required,
|
|
30334
|
+
isDictionary: true,
|
|
30335
|
+
cellDataType: cellDataType,
|
|
30336
|
+
customParams: customParams ? Object.keys(customParams).reduce(function (acc, key) {
|
|
30337
|
+
acc[key] = "".concat(customParams[key], ".").concat(languages[0]);
|
|
30338
|
+
return acc;
|
|
30339
|
+
}, {}) : undefined,
|
|
30340
|
+
additionalFields: additionalFields ? additionalFields.map(function (field) {
|
|
30341
|
+
return "".concat(field, ".").concat(languages[0]);
|
|
30342
|
+
}) : undefined
|
|
30343
|
+
};
|
|
30344
|
+
}
|
|
30345
|
+
return {
|
|
30346
|
+
headerName: headerName,
|
|
30347
|
+
marryChildren: true,
|
|
30348
|
+
children: languages.map(function (language) {
|
|
30349
|
+
return {
|
|
30350
|
+
field: "".concat(field, ".").concat(language),
|
|
30351
|
+
headerName: 'backoffice.idmEnricher.general.label.' + language,
|
|
30352
|
+
required: required,
|
|
30353
|
+
isDictionary: true,
|
|
30354
|
+
cellDataType: cellDataType,
|
|
30355
|
+
customParams: customParams ? Object.keys(customParams).reduce(function (acc, key) {
|
|
30356
|
+
acc[key] = "".concat(customParams[key], ".").concat(language);
|
|
30357
|
+
return acc;
|
|
30358
|
+
}, {}) : undefined,
|
|
30359
|
+
additionalFields: additionalFields ? additionalFields.map(function (field) {
|
|
30360
|
+
return "".concat(field, ".").concat(language);
|
|
30361
|
+
}) : undefined
|
|
30362
|
+
};
|
|
30363
|
+
})
|
|
30296
30364
|
};
|
|
30297
30365
|
}
|
|
30298
30366
|
|
|
@@ -30303,7 +30371,8 @@ function TableGroups () {
|
|
|
30303
30371
|
packageId = _useModule.packageId,
|
|
30304
30372
|
organizationId = _useModule.organizationId,
|
|
30305
30373
|
updateNavigation = _useModule.updateNavigation,
|
|
30306
|
-
apiConfig = _useModule.apiConfig
|
|
30374
|
+
apiConfig = _useModule.apiConfig,
|
|
30375
|
+
selectedPackage = _useModule.selectedPackage;
|
|
30307
30376
|
var applicationData = useMemo(function () {
|
|
30308
30377
|
return {
|
|
30309
30378
|
packageId: packageId,
|
|
@@ -30325,29 +30394,7 @@ function TableGroups () {
|
|
|
30325
30394
|
apiInterface: apiInterface,
|
|
30326
30395
|
dateFormat: 'LL',
|
|
30327
30396
|
floatingFilter: true,
|
|
30328
|
-
colDef: [{
|
|
30329
|
-
headerName: 'backoffice.idmEnricher.groups.label.name',
|
|
30330
|
-
marryChildren: true,
|
|
30331
|
-
children: [{
|
|
30332
|
-
field: 'name.DE',
|
|
30333
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
30334
|
-
isDictionary: true,
|
|
30335
|
-
pinned: true,
|
|
30336
|
-
required: true
|
|
30337
|
-
}, {
|
|
30338
|
-
field: 'name.EN',
|
|
30339
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
30340
|
-
isDictionary: true
|
|
30341
|
-
}, {
|
|
30342
|
-
field: 'name.FR',
|
|
30343
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
30344
|
-
isDictionary: true
|
|
30345
|
-
}, {
|
|
30346
|
-
field: 'name.IT',
|
|
30347
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
30348
|
-
isDictionary: true
|
|
30349
|
-
}]
|
|
30350
|
-
}, {
|
|
30397
|
+
colDef: [createTranslatedColumnConfig('name', 'backoffice.idmEnricher.groups.label.name', (selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], true), {
|
|
30351
30398
|
field: 'serieNos',
|
|
30352
30399
|
headerName: 'backoffice.idmEnricher.groups.label.serieNos',
|
|
30353
30400
|
cellDataType: 'lookup',
|
|
@@ -30429,7 +30476,7 @@ function TableGroups () {
|
|
|
30429
30476
|
cellDataType: 'objectId'
|
|
30430
30477
|
}]
|
|
30431
30478
|
};
|
|
30432
|
-
}, [apiInterface, t]);
|
|
30479
|
+
}, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
|
|
30433
30480
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
30434
30481
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
30435
30482
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -30439,15 +30486,15 @@ function TableGroups () {
|
|
|
30439
30486
|
},
|
|
30440
30487
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
30441
30488
|
organizationId: organizationId,
|
|
30442
|
-
|
|
30443
|
-
setSelectedPackage: function setSelectedPackage(
|
|
30444
|
-
return updateNavigation(
|
|
30489
|
+
packageId: packageId,
|
|
30490
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
30491
|
+
return updateNavigation(packageId);
|
|
30445
30492
|
},
|
|
30446
30493
|
enricherService: apiConfig.enricherService
|
|
30447
30494
|
})
|
|
30448
30495
|
})]
|
|
30449
30496
|
})
|
|
30450
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
30497
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
30451
30498
|
gridId: 'crud-grid_groups',
|
|
30452
30499
|
applicationData: applicationData,
|
|
30453
30500
|
configuration: configuration
|
|
@@ -30612,10 +30659,141 @@ function LoadingModal (_ref) {
|
|
|
30612
30659
|
});
|
|
30613
30660
|
}
|
|
30614
30661
|
|
|
30662
|
+
var getCurrencyKey = function getCurrencyKey(t) {
|
|
30663
|
+
return [{
|
|
30664
|
+
name: t('backoffice.idmCatalog.general.label.currencies.EUR'),
|
|
30665
|
+
value: 'EUR'
|
|
30666
|
+
}, {
|
|
30667
|
+
name: t('backoffice.idmCatalog.general.label.currencies.USD'),
|
|
30668
|
+
value: 'USD'
|
|
30669
|
+
}, {
|
|
30670
|
+
name: t('backoffice.idmCatalog.general.label.currencies.GBP'),
|
|
30671
|
+
value: 'GBP'
|
|
30672
|
+
}, {
|
|
30673
|
+
name: t('backoffice.idmCatalog.general.label.currencies.CHF'),
|
|
30674
|
+
value: 'CHF'
|
|
30675
|
+
}];
|
|
30676
|
+
};
|
|
30677
|
+
var getLanguageKey = function getLanguageKey(t) {
|
|
30678
|
+
return [{
|
|
30679
|
+
name: t('backoffice.idmCatalog.general.label.languages.DE'),
|
|
30680
|
+
value: 'DE'
|
|
30681
|
+
}, {
|
|
30682
|
+
name: t('backoffice.idmCatalog.general.label.languages.EN'),
|
|
30683
|
+
value: 'EN'
|
|
30684
|
+
}, {
|
|
30685
|
+
name: t('backoffice.idmCatalog.general.label.languages.FR'),
|
|
30686
|
+
value: 'FR'
|
|
30687
|
+
}, {
|
|
30688
|
+
name: t('backoffice.idmCatalog.general.label.languages.IT'),
|
|
30689
|
+
value: 'IT'
|
|
30690
|
+
}];
|
|
30691
|
+
};
|
|
30692
|
+
var getCountryKey = function getCountryKey(t) {
|
|
30693
|
+
return [{
|
|
30694
|
+
name: t('backoffice.idmCatalog.general.label.countries.DE'),
|
|
30695
|
+
value: 'DE'
|
|
30696
|
+
}, {
|
|
30697
|
+
name: t('backoffice.idmCatalog.general.label.countries.US'),
|
|
30698
|
+
value: 'US'
|
|
30699
|
+
}, {
|
|
30700
|
+
name: t('backoffice.idmCatalog.general.label.countries.FR'),
|
|
30701
|
+
value: 'FR'
|
|
30702
|
+
}, {
|
|
30703
|
+
name: t('backoffice.idmCatalog.general.label.countries.IT'),
|
|
30704
|
+
value: 'IT'
|
|
30705
|
+
}, {
|
|
30706
|
+
name: t('backoffice.idmCatalog.general.label.countries.GB'),
|
|
30707
|
+
value: 'GB'
|
|
30708
|
+
}, {
|
|
30709
|
+
name: t('backoffice.idmCatalog.general.label.countries.CH'),
|
|
30710
|
+
value: 'CH'
|
|
30711
|
+
}, {
|
|
30712
|
+
name: t('backoffice.idmCatalog.general.label.countries.AT'),
|
|
30713
|
+
value: 'AT'
|
|
30714
|
+
}];
|
|
30715
|
+
};
|
|
30716
|
+
var getFormOfAddressKey = function getFormOfAddressKey(t) {
|
|
30717
|
+
return [{
|
|
30718
|
+
name: t('backoffice.idmCatalog.general.label.foa.f1'),
|
|
30719
|
+
value: 1
|
|
30720
|
+
}, {
|
|
30721
|
+
name: t('backoffice.idmCatalog.general.label.foa.f2'),
|
|
30722
|
+
value: 2
|
|
30723
|
+
}];
|
|
30724
|
+
};
|
|
30725
|
+
var getLayerIdKey = function getLayerIdKey(t) {
|
|
30726
|
+
return [{
|
|
30727
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l10'),
|
|
30728
|
+
value: 10
|
|
30729
|
+
}, {
|
|
30730
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l20'),
|
|
30731
|
+
value: 20
|
|
30732
|
+
}, {
|
|
30733
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l30'),
|
|
30734
|
+
value: 30
|
|
30735
|
+
}, {
|
|
30736
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l40'),
|
|
30737
|
+
value: 40
|
|
30738
|
+
}, {
|
|
30739
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l50'),
|
|
30740
|
+
value: 50
|
|
30741
|
+
}, {
|
|
30742
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l60'),
|
|
30743
|
+
value: 60
|
|
30744
|
+
}];
|
|
30745
|
+
};
|
|
30746
|
+
var getInfoTypeKey = function getInfoTypeKey(t) {
|
|
30747
|
+
return [{
|
|
30748
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i1'),
|
|
30749
|
+
value: 1
|
|
30750
|
+
}, {
|
|
30751
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i2'),
|
|
30752
|
+
value: 2
|
|
30753
|
+
}, {
|
|
30754
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i3'),
|
|
30755
|
+
value: 3
|
|
30756
|
+
}, {
|
|
30757
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i4'),
|
|
30758
|
+
value: 4
|
|
30759
|
+
}, {
|
|
30760
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i5'),
|
|
30761
|
+
value: 5
|
|
30762
|
+
}, {
|
|
30763
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i6'),
|
|
30764
|
+
value: 6
|
|
30765
|
+
}, {
|
|
30766
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i7'),
|
|
30767
|
+
value: 7
|
|
30768
|
+
}, {
|
|
30769
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i8'),
|
|
30770
|
+
value: 8
|
|
30771
|
+
}, {
|
|
30772
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i9'),
|
|
30773
|
+
value: 9
|
|
30774
|
+
}, {
|
|
30775
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i10'),
|
|
30776
|
+
value: 10
|
|
30777
|
+
}, {
|
|
30778
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i11'),
|
|
30779
|
+
value: 11
|
|
30780
|
+
}, {
|
|
30781
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i12'),
|
|
30782
|
+
value: 12
|
|
30783
|
+
}, {
|
|
30784
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i13'),
|
|
30785
|
+
value: 13
|
|
30786
|
+
}, {
|
|
30787
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i14'),
|
|
30788
|
+
value: 14
|
|
30789
|
+
}];
|
|
30790
|
+
};
|
|
30791
|
+
|
|
30615
30792
|
function TablePackages () {
|
|
30616
30793
|
var root = useStore();
|
|
30617
30794
|
var _useTranslation = useTranslation(),
|
|
30618
|
-
t = _useTranslation.t
|
|
30795
|
+
t = _useTranslation.t,
|
|
30796
|
+
i18n = _useTranslation.i18n;
|
|
30619
30797
|
var _useNavigation = useNavigation$1(),
|
|
30620
30798
|
organizationId = _useNavigation.organizationId,
|
|
30621
30799
|
apiConfig = _useNavigation.apiConfig,
|
|
@@ -30750,13 +30928,23 @@ function TablePackages () {
|
|
|
30750
30928
|
return !data.basedCatalogId && !data.basedPackageId;
|
|
30751
30929
|
},
|
|
30752
30930
|
customParams: {
|
|
30753
|
-
filterCellType: '
|
|
30931
|
+
filterCellType: 'objectId',
|
|
30754
30932
|
nameField: 'basedCatalogName',
|
|
30755
30933
|
apiInterface: {
|
|
30756
30934
|
read: apiConfig.idmService + '/v3.0/catalogs?organizationId=${organizationId}'
|
|
30757
30935
|
},
|
|
30758
30936
|
lookupValue: 'name',
|
|
30759
|
-
lookupKey: '_id'
|
|
30937
|
+
lookupKey: '_id',
|
|
30938
|
+
lookupLabelTemplate: function lookupLabelTemplate(data) {
|
|
30939
|
+
return data.name + (data.isApi ? ' (CE)' : '');
|
|
30940
|
+
},
|
|
30941
|
+
additionalMappings: [{
|
|
30942
|
+
lookupField: 'isoLanguageIds',
|
|
30943
|
+
targetField: 'isoLanguageIds'
|
|
30944
|
+
}, {
|
|
30945
|
+
lookupField: 'isApi',
|
|
30946
|
+
targetField: 'isApi'
|
|
30947
|
+
}]
|
|
30760
30948
|
},
|
|
30761
30949
|
additionalFields: ['basedCatalogName']
|
|
30762
30950
|
}, {
|
|
@@ -30768,18 +30956,44 @@ function TablePackages () {
|
|
|
30768
30956
|
return !data.basedCatalogId && !data.basedPackageId;
|
|
30769
30957
|
},
|
|
30770
30958
|
customParams: {
|
|
30771
|
-
filterCellType: '
|
|
30959
|
+
filterCellType: 'objectId',
|
|
30772
30960
|
nameField: 'basedPackageName',
|
|
30773
30961
|
apiInterface: {
|
|
30774
30962
|
read: apiConfig.enricherService + '/packages?organizationId=${organizationId}'
|
|
30775
30963
|
},
|
|
30776
30964
|
lookupValue: 'name',
|
|
30777
30965
|
lookupKey: '_id',
|
|
30966
|
+
lookupLabelTemplate: function lookupLabelTemplate(data) {
|
|
30967
|
+
return data.name + (data.isApi ? ' (CE)' : '');
|
|
30968
|
+
},
|
|
30778
30969
|
filter: function filter(rowData, lookupData) {
|
|
30779
30970
|
return rowData._id !== lookupData._id;
|
|
30780
|
-
}
|
|
30971
|
+
},
|
|
30972
|
+
additionalMappings: [{
|
|
30973
|
+
lookupField: 'isoLanguageIds',
|
|
30974
|
+
targetField: 'isoLanguageIds'
|
|
30975
|
+
}, {
|
|
30976
|
+
lookupField: 'isApi',
|
|
30977
|
+
targetField: 'isApi'
|
|
30978
|
+
}]
|
|
30781
30979
|
},
|
|
30782
30980
|
additionalFields: ['basedPackageName']
|
|
30981
|
+
}, {
|
|
30982
|
+
field: 'isoLanguageIds',
|
|
30983
|
+
headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
|
|
30984
|
+
cellDataType: 'enum',
|
|
30985
|
+
editable: true,
|
|
30986
|
+
required: true,
|
|
30987
|
+
customParams: {
|
|
30988
|
+
enumData: getLanguageKey(t),
|
|
30989
|
+
multiple: true
|
|
30990
|
+
},
|
|
30991
|
+
defaultValue: ['DE']
|
|
30992
|
+
}, {
|
|
30993
|
+
headerName: 'backoffice.idmEnricher.packages.label.isApi2',
|
|
30994
|
+
field: 'isApi',
|
|
30995
|
+
cellDataType: 'boolean',
|
|
30996
|
+
editable: false
|
|
30783
30997
|
}, {
|
|
30784
30998
|
headerName: 'backoffice.idmEnricher.general.label.lastUpdatedDate',
|
|
30785
30999
|
field: 'lastUpdatedDate',
|
|
@@ -30821,7 +31035,7 @@ function TablePackages () {
|
|
|
30821
31035
|
defaultValue: '${organizationId}'
|
|
30822
31036
|
}]
|
|
30823
31037
|
};
|
|
30824
|
-
}, [apiInterface, apiConfig]);
|
|
31038
|
+
}, [apiInterface, apiConfig, i18n.language]);
|
|
30825
31039
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
30826
31040
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
30827
31041
|
title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
|
|
@@ -30846,7 +31060,8 @@ function TableProperties () {
|
|
|
30846
31060
|
packageId = _useModule.packageId,
|
|
30847
31061
|
organizationId = _useModule.organizationId,
|
|
30848
31062
|
updateNavigation = _useModule.updateNavigation,
|
|
30849
|
-
apiConfig = _useModule.apiConfig
|
|
31063
|
+
apiConfig = _useModule.apiConfig,
|
|
31064
|
+
selectedPackage = _useModule.selectedPackage;
|
|
30850
31065
|
var applicationData = useMemo(function () {
|
|
30851
31066
|
return {
|
|
30852
31067
|
packageId: packageId,
|
|
@@ -30871,8 +31086,7 @@ function TableProperties () {
|
|
|
30871
31086
|
colDef: [{
|
|
30872
31087
|
field: 'key',
|
|
30873
31088
|
headerName: 'backoffice.idmEnricher.properties.label.key',
|
|
30874
|
-
required: true
|
|
30875
|
-
pinned: true
|
|
31089
|
+
required: true
|
|
30876
31090
|
}, {
|
|
30877
31091
|
field: 'featureNos',
|
|
30878
31092
|
headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
|
|
@@ -30890,8 +31104,7 @@ function TableProperties () {
|
|
|
30890
31104
|
translated: true
|
|
30891
31105
|
},
|
|
30892
31106
|
additionalFields: ['featureNosDisplayTexts'],
|
|
30893
|
-
isDictionary: true
|
|
30894
|
-
pinned: true
|
|
31107
|
+
isDictionary: true
|
|
30895
31108
|
}, {
|
|
30896
31109
|
field: 'optionKeys',
|
|
30897
31110
|
headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
|
|
@@ -30915,53 +31128,8 @@ function TableProperties () {
|
|
|
30915
31128
|
}
|
|
30916
31129
|
},
|
|
30917
31130
|
additionalFields: ['optionKeysDisplayTexts'],
|
|
30918
|
-
isDictionary: true
|
|
30919
|
-
|
|
30920
|
-
}, {
|
|
30921
|
-
headerName: 'backoffice.idmEnricher.properties.label.name',
|
|
30922
|
-
marryChildren: true,
|
|
30923
|
-
children: [{
|
|
30924
|
-
field: 'name.DE',
|
|
30925
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
30926
|
-
isDictionary: true,
|
|
30927
|
-
pinned: true,
|
|
30928
|
-
required: true
|
|
30929
|
-
}, {
|
|
30930
|
-
field: 'name.EN',
|
|
30931
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
30932
|
-
isDictionary: true
|
|
30933
|
-
}, {
|
|
30934
|
-
field: 'name.FR',
|
|
30935
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
30936
|
-
isDictionary: true
|
|
30937
|
-
}, {
|
|
30938
|
-
field: 'name.IT',
|
|
30939
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
30940
|
-
isDictionary: true
|
|
30941
|
-
}]
|
|
30942
|
-
}, {
|
|
30943
|
-
headerName: 'backoffice.idmEnricher.properties.label.value',
|
|
30944
|
-
marryChildren: true,
|
|
30945
|
-
children: [{
|
|
30946
|
-
field: 'value.DE',
|
|
30947
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
30948
|
-
isDictionary: true,
|
|
30949
|
-
pinned: true,
|
|
30950
|
-
required: true
|
|
30951
|
-
}, {
|
|
30952
|
-
field: 'value.EN',
|
|
30953
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
30954
|
-
isDictionary: true
|
|
30955
|
-
}, {
|
|
30956
|
-
field: 'value.FR',
|
|
30957
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
30958
|
-
isDictionary: true
|
|
30959
|
-
}, {
|
|
30960
|
-
field: 'value.IT',
|
|
30961
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
30962
|
-
isDictionary: true
|
|
30963
|
-
}]
|
|
30964
|
-
}, {
|
|
31131
|
+
isDictionary: true
|
|
31132
|
+
}, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.properties.label.name', (selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], true), createTranslatedColumnConfig('value', 'backoffice.idmEnricher.properties.label.value', (selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], true), {
|
|
30965
31133
|
field: 'serieNos',
|
|
30966
31134
|
headerName: 'backoffice.idmEnricher.renaming.label.serieNos',
|
|
30967
31135
|
cellDataType: 'lookup',
|
|
@@ -31043,7 +31211,7 @@ function TableProperties () {
|
|
|
31043
31211
|
cellDataType: 'objectId'
|
|
31044
31212
|
}]
|
|
31045
31213
|
};
|
|
31046
|
-
}, [apiInterface, t]);
|
|
31214
|
+
}, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
|
|
31047
31215
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
31048
31216
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
31049
31217
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -31053,15 +31221,15 @@ function TableProperties () {
|
|
|
31053
31221
|
},
|
|
31054
31222
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
31055
31223
|
organizationId: organizationId,
|
|
31056
|
-
|
|
31057
|
-
setSelectedPackage: function setSelectedPackage(
|
|
31058
|
-
return updateNavigation(
|
|
31224
|
+
packageId: packageId,
|
|
31225
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
31226
|
+
return updateNavigation(packageId);
|
|
31059
31227
|
},
|
|
31060
31228
|
enricherService: apiConfig.enricherService
|
|
31061
31229
|
})
|
|
31062
31230
|
})]
|
|
31063
31231
|
})
|
|
31064
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
31232
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
31065
31233
|
gridId: 'crud-grid_properties',
|
|
31066
31234
|
applicationData: applicationData,
|
|
31067
31235
|
configuration: configuration
|
|
@@ -31069,337 +31237,512 @@ function TableProperties () {
|
|
|
31069
31237
|
});
|
|
31070
31238
|
}
|
|
31071
31239
|
|
|
31072
|
-
var
|
|
31073
|
-
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
editable: false,
|
|
31078
|
-
pinned: 'left'
|
|
31079
|
-
}, {
|
|
31080
|
-
headerName: 'backoffice.idmEnricher.renaming.label.featuretext',
|
|
31081
|
-
marryChildren: true,
|
|
31082
|
-
children: [{
|
|
31083
|
-
field: 'translatedFeatureText.DE',
|
|
31084
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31085
|
-
isDictionary: true,
|
|
31240
|
+
var getConfig$6 = function getConfig(isoLanguageIds, t) {
|
|
31241
|
+
return {
|
|
31242
|
+
colDef: [{
|
|
31243
|
+
field: 'translatedName',
|
|
31244
|
+
headerName: 'backoffice.idmEnricher.renaming.label.catalogName',
|
|
31086
31245
|
cellDataType: 'withPlaceholder',
|
|
31087
31246
|
customParams: {
|
|
31088
|
-
placeHolderField: '
|
|
31089
|
-
combinedField: '
|
|
31247
|
+
placeHolderField: 'origName',
|
|
31248
|
+
combinedField: 'name'
|
|
31090
31249
|
},
|
|
31091
|
-
additionalFields: ['
|
|
31092
|
-
pinned: 'left'
|
|
31250
|
+
additionalFields: ['origName', 'name']
|
|
31093
31251
|
}, {
|
|
31094
|
-
field: '
|
|
31095
|
-
|
|
31096
|
-
|
|
31252
|
+
field: 'translatedComment',
|
|
31253
|
+
cellDataType: 'withPlaceholder',
|
|
31254
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translatedComment',
|
|
31255
|
+
customParams: {
|
|
31256
|
+
placeHolderField: 'origComment',
|
|
31257
|
+
combinedField: 'comment'
|
|
31258
|
+
},
|
|
31259
|
+
additionalFields: ['origComment', 'comment']
|
|
31260
|
+
}, createTranslatedColumnConfig('translatedCatalogName', 'backoffice.idmEnricher.renaming.label.catalogName', isoLanguageIds, false, 'withPlaceholder', {
|
|
31261
|
+
placeHolderField: 'origCatalogName',
|
|
31262
|
+
combinedField: 'catalogName'
|
|
31263
|
+
}, ['origCatalogName', 'catalogName']), createTranslatedColumnConfig('translatedCatalogInfo', 'backoffice.idmEnricher.renaming.label.catalogInfo', isoLanguageIds, false, 'withPlaceholder', {
|
|
31264
|
+
placeHolderField: 'origCatalogInfo',
|
|
31265
|
+
combinedField: 'catalogInfo'
|
|
31266
|
+
}, ['origCatalogInfo', 'catalogInfo']), {
|
|
31267
|
+
headerName: 'backoffice.idmEnricher.renaming.label.contactperson',
|
|
31268
|
+
field: 'translatedContactPersonNo1',
|
|
31097
31269
|
cellDataType: 'withPlaceholder',
|
|
31098
31270
|
customParams: {
|
|
31099
|
-
placeHolderField: '
|
|
31100
|
-
combinedField: '
|
|
31271
|
+
placeHolderField: 'origContactPersonNo1',
|
|
31272
|
+
combinedField: 'contactPersonNo1'
|
|
31101
31273
|
},
|
|
31102
|
-
additionalFields: ['
|
|
31274
|
+
additionalFields: ['origContactPersonNo1', 'contactPersonNo1']
|
|
31103
31275
|
}, {
|
|
31104
|
-
|
|
31105
|
-
|
|
31106
|
-
isDictionary: true,
|
|
31276
|
+
headerName: 'backoffice.idmEnricher.renaming.label.contactrole',
|
|
31277
|
+
field: 'translatedContactRole1',
|
|
31107
31278
|
cellDataType: 'withPlaceholder',
|
|
31108
31279
|
customParams: {
|
|
31109
|
-
placeHolderField: '
|
|
31110
|
-
combinedField: '
|
|
31280
|
+
placeHolderField: 'origContactRole1',
|
|
31281
|
+
combinedField: 'contactRole1'
|
|
31111
31282
|
},
|
|
31112
|
-
additionalFields: ['
|
|
31283
|
+
additionalFields: ['origContactRole1', 'contactRole1']
|
|
31113
31284
|
}, {
|
|
31114
|
-
|
|
31115
|
-
|
|
31116
|
-
isDictionary: true,
|
|
31285
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname',
|
|
31286
|
+
field: 'translatedContactName1',
|
|
31117
31287
|
cellDataType: 'withPlaceholder',
|
|
31118
31288
|
customParams: {
|
|
31119
|
-
placeHolderField: '
|
|
31120
|
-
combinedField: '
|
|
31289
|
+
placeHolderField: 'origContactName1',
|
|
31290
|
+
combinedField: 'contactName1'
|
|
31121
31291
|
},
|
|
31122
|
-
additionalFields: ['
|
|
31123
|
-
}
|
|
31124
|
-
|
|
31125
|
-
|
|
31126
|
-
|
|
31127
|
-
var config$2 = {
|
|
31128
|
-
colDef: [{
|
|
31129
|
-
headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
|
|
31130
|
-
field: 'typeNo',
|
|
31131
|
-
required: true,
|
|
31132
|
-
editable: false,
|
|
31133
|
-
pinned: 'left'
|
|
31134
|
-
}, {
|
|
31135
|
-
headerName: 'backoffice.idmEnricher.renaming.label.shortText',
|
|
31136
|
-
marryChildren: true,
|
|
31137
|
-
children: [{
|
|
31138
|
-
field: 'translatedShortText.DE',
|
|
31139
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31140
|
-
isDictionary: true,
|
|
31292
|
+
additionalFields: ['origContactName1', 'contactName1']
|
|
31293
|
+
}, {
|
|
31294
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname',
|
|
31295
|
+
field: 'translatedFirstName1',
|
|
31141
31296
|
cellDataType: 'withPlaceholder',
|
|
31142
31297
|
customParams: {
|
|
31143
|
-
placeHolderField: '
|
|
31144
|
-
combinedField: '
|
|
31298
|
+
placeHolderField: 'origFirstName1',
|
|
31299
|
+
combinedField: 'firstName1'
|
|
31145
31300
|
},
|
|
31146
|
-
additionalFields: ['
|
|
31147
|
-
pinned: 'left'
|
|
31301
|
+
additionalFields: ['origFirstName1', 'firstName1']
|
|
31148
31302
|
}, {
|
|
31149
|
-
|
|
31150
|
-
|
|
31151
|
-
isDictionary: true,
|
|
31303
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address',
|
|
31304
|
+
field: 'translatedFormOfAddress1',
|
|
31152
31305
|
cellDataType: 'withPlaceholder',
|
|
31306
|
+
type: ['withPlaceholderEnum'],
|
|
31153
31307
|
customParams: {
|
|
31154
|
-
placeHolderField: '
|
|
31155
|
-
combinedField: '
|
|
31308
|
+
placeHolderField: 'origFormOfAddress1',
|
|
31309
|
+
combinedField: 'formOfAddress1',
|
|
31310
|
+
enumData: getFormOfAddressKey(t),
|
|
31311
|
+
displayLabelTemplate: '${name} (${value})'
|
|
31156
31312
|
},
|
|
31157
|
-
additionalFields: ['
|
|
31313
|
+
additionalFields: ['origFormOfAddress1', 'formOfAddress1']
|
|
31158
31314
|
}, {
|
|
31159
|
-
|
|
31160
|
-
|
|
31161
|
-
isDictionary: true,
|
|
31315
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.department',
|
|
31316
|
+
field: 'translatedDepartment1',
|
|
31162
31317
|
cellDataType: 'withPlaceholder',
|
|
31163
31318
|
customParams: {
|
|
31164
|
-
placeHolderField: '
|
|
31165
|
-
combinedField: '
|
|
31319
|
+
placeHolderField: 'origDepartment1',
|
|
31320
|
+
combinedField: 'department1'
|
|
31166
31321
|
},
|
|
31167
|
-
additionalFields: ['
|
|
31322
|
+
additionalFields: ['origDepartment1', 'department1']
|
|
31168
31323
|
}, {
|
|
31169
|
-
|
|
31170
|
-
|
|
31171
|
-
isDictionary: true,
|
|
31324
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone',
|
|
31325
|
+
field: 'translatedTelephone1',
|
|
31172
31326
|
cellDataType: 'withPlaceholder',
|
|
31173
31327
|
customParams: {
|
|
31174
|
-
placeHolderField: '
|
|
31175
|
-
combinedField: '
|
|
31328
|
+
placeHolderField: 'origTelephone1',
|
|
31329
|
+
combinedField: 'telephone1'
|
|
31176
31330
|
},
|
|
31177
|
-
additionalFields: ['
|
|
31178
|
-
}
|
|
31179
|
-
|
|
31180
|
-
|
|
31181
|
-
marryChildren: true,
|
|
31182
|
-
children: [{
|
|
31183
|
-
field: 'translatedFullText.DE',
|
|
31184
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31185
|
-
isDictionary: true,
|
|
31331
|
+
additionalFields: ['origTelephone1', 'telephone1']
|
|
31332
|
+
}, {
|
|
31333
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.fax',
|
|
31334
|
+
field: 'translatedFax1',
|
|
31186
31335
|
cellDataType: 'withPlaceholder',
|
|
31187
31336
|
customParams: {
|
|
31188
|
-
placeHolderField: '
|
|
31189
|
-
combinedField: '
|
|
31337
|
+
placeHolderField: 'origFax1',
|
|
31338
|
+
combinedField: 'fax1'
|
|
31190
31339
|
},
|
|
31191
|
-
additionalFields: ['
|
|
31340
|
+
additionalFields: ['origFax1', 'fax1']
|
|
31192
31341
|
}, {
|
|
31193
|
-
field: '
|
|
31194
|
-
headerName: 'backoffice.idmEnricher.
|
|
31195
|
-
isDictionary: true,
|
|
31342
|
+
field: 'translatedEmail1',
|
|
31343
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
|
|
31196
31344
|
cellDataType: 'withPlaceholder',
|
|
31197
31345
|
customParams: {
|
|
31198
|
-
placeHolderField: '
|
|
31199
|
-
combinedField: '
|
|
31346
|
+
placeHolderField: 'origEmail1',
|
|
31347
|
+
combinedField: 'email1'
|
|
31200
31348
|
},
|
|
31201
|
-
additionalFields: ['
|
|
31349
|
+
additionalFields: ['origEmail1', 'email1']
|
|
31202
31350
|
}, {
|
|
31203
|
-
|
|
31204
|
-
|
|
31205
|
-
isDictionary: true,
|
|
31351
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
|
|
31352
|
+
field: 'translatedStreet1',
|
|
31206
31353
|
cellDataType: 'withPlaceholder',
|
|
31207
31354
|
customParams: {
|
|
31208
|
-
placeHolderField: '
|
|
31209
|
-
combinedField: '
|
|
31355
|
+
placeHolderField: 'origStreet1',
|
|
31356
|
+
combinedField: 'street1'
|
|
31210
31357
|
},
|
|
31211
|
-
additionalFields: ['
|
|
31358
|
+
additionalFields: ['origStreet1', 'street1']
|
|
31212
31359
|
}, {
|
|
31213
|
-
|
|
31214
|
-
|
|
31215
|
-
isDictionary: true,
|
|
31360
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
|
|
31361
|
+
field: 'translatedZipCodeStreet1',
|
|
31216
31362
|
cellDataType: 'withPlaceholder',
|
|
31217
31363
|
customParams: {
|
|
31218
|
-
placeHolderField: '
|
|
31219
|
-
combinedField: '
|
|
31364
|
+
placeHolderField: 'origZipCodeStreet1',
|
|
31365
|
+
combinedField: 'zipCodeStreet1'
|
|
31220
31366
|
},
|
|
31221
|
-
additionalFields: ['
|
|
31222
|
-
}
|
|
31223
|
-
|
|
31224
|
-
|
|
31225
|
-
marryChildren: true,
|
|
31226
|
-
children: [{
|
|
31227
|
-
field: 'translatedPlanningAdvice.DE',
|
|
31228
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31229
|
-
isDictionary: true,
|
|
31367
|
+
additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1']
|
|
31368
|
+
}, {
|
|
31369
|
+
field: 'translatedCity1',
|
|
31370
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
|
|
31230
31371
|
cellDataType: 'withPlaceholder',
|
|
31231
31372
|
customParams: {
|
|
31232
|
-
placeHolderField: '
|
|
31233
|
-
combinedField: '
|
|
31373
|
+
placeHolderField: 'origCity1',
|
|
31374
|
+
combinedField: 'city1'
|
|
31234
31375
|
},
|
|
31235
|
-
additionalFields: ['
|
|
31376
|
+
additionalFields: ['origCity1', 'city1']
|
|
31236
31377
|
}, {
|
|
31237
|
-
field: '
|
|
31238
|
-
headerName: 'backoffice.idmEnricher.
|
|
31239
|
-
isDictionary: true,
|
|
31378
|
+
field: 'translatedIsoCountryId1',
|
|
31379
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
|
|
31240
31380
|
cellDataType: 'withPlaceholder',
|
|
31381
|
+
type: ['withPlaceholderEnum'],
|
|
31241
31382
|
customParams: {
|
|
31242
|
-
placeHolderField: '
|
|
31243
|
-
combinedField: '
|
|
31383
|
+
placeHolderField: 'origIsoCountryId1',
|
|
31384
|
+
combinedField: 'isoCountryId1',
|
|
31385
|
+
enumData: getCountryKey(t)
|
|
31244
31386
|
},
|
|
31245
|
-
additionalFields: ['
|
|
31387
|
+
additionalFields: ['origIsoCountryId1', 'isoCountryId1']
|
|
31246
31388
|
}, {
|
|
31247
|
-
field: '
|
|
31248
|
-
headerName: 'backoffice.idmEnricher.
|
|
31249
|
-
isDictionary: true,
|
|
31389
|
+
field: 'translatedContactPersonNo2',
|
|
31390
|
+
headerName: 'backoffice.idmEnricher.renaming.label.contactperson2',
|
|
31250
31391
|
cellDataType: 'withPlaceholder',
|
|
31251
31392
|
customParams: {
|
|
31252
|
-
placeHolderField: '
|
|
31253
|
-
combinedField: '
|
|
31393
|
+
placeHolderField: 'origContactPersonNo2',
|
|
31394
|
+
combinedField: 'contactPersonNo2'
|
|
31254
31395
|
},
|
|
31255
|
-
additionalFields: ['
|
|
31396
|
+
additionalFields: ['origContactPersonNo2', 'contactPersonNo2']
|
|
31256
31397
|
}, {
|
|
31257
|
-
|
|
31258
|
-
|
|
31259
|
-
isDictionary: true,
|
|
31398
|
+
headerName: 'backoffice.idmEnricher.renaming.label.contactrole2',
|
|
31399
|
+
field: 'translatedContactRole2',
|
|
31260
31400
|
cellDataType: 'withPlaceholder',
|
|
31261
31401
|
customParams: {
|
|
31262
|
-
placeHolderField: '
|
|
31263
|
-
combinedField: '
|
|
31402
|
+
placeHolderField: 'origContactRole2',
|
|
31403
|
+
combinedField: 'contactRole2'
|
|
31264
31404
|
},
|
|
31265
|
-
additionalFields: ['
|
|
31266
|
-
}
|
|
31267
|
-
|
|
31268
|
-
|
|
31269
|
-
field: 'translatedSalesNumber',
|
|
31270
|
-
cellDataType: 'withPlaceholder',
|
|
31271
|
-
customParams: {
|
|
31272
|
-
placeHolderField: 'origSalesNumber',
|
|
31273
|
-
combinedField: 'salesNumber'
|
|
31274
|
-
},
|
|
31275
|
-
additionalFields: ['origSalesNumber', 'salesNumber']
|
|
31276
|
-
}, {
|
|
31277
|
-
field: 'sequenceNo',
|
|
31278
|
-
headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
|
|
31279
|
-
editable: false,
|
|
31280
|
-
cellDataType: 'number'
|
|
31281
|
-
}, {
|
|
31282
|
-
headerName: 'backoffice.idmEnricher.renaming.label.edpnummer',
|
|
31283
|
-
field: 'translatedEdpNumber',
|
|
31284
|
-
cellDataType: 'withPlaceholder',
|
|
31285
|
-
customParams: {
|
|
31286
|
-
placeHolderField: 'origEdpNumber',
|
|
31287
|
-
combinedField: 'edpNumber'
|
|
31288
|
-
},
|
|
31289
|
-
additionalFields: ['origEdpNumber', 'edpNumber']
|
|
31290
|
-
}, {
|
|
31291
|
-
headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
|
|
31292
|
-
field: 'translatedEanNumber',
|
|
31293
|
-
cellDataType: 'withPlaceholder',
|
|
31294
|
-
customParams: {
|
|
31295
|
-
placeHolderField: 'origEanNumber',
|
|
31296
|
-
combinedField: 'eanNumber'
|
|
31297
|
-
},
|
|
31298
|
-
additionalFields: ['origEanNumber', 'eanNumber']
|
|
31299
|
-
}]
|
|
31300
|
-
};
|
|
31301
|
-
|
|
31302
|
-
var config$1 = {
|
|
31303
|
-
colDef: [{
|
|
31304
|
-
headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
|
|
31305
|
-
field: 'optionKey',
|
|
31306
|
-
required: true,
|
|
31307
|
-
editable: false,
|
|
31308
|
-
pinned: 'left'
|
|
31309
|
-
}, {
|
|
31310
|
-
headerName: 'backoffice.idmEnricher.renaming.label.optionText',
|
|
31311
|
-
marryChildren: true,
|
|
31312
|
-
children: [{
|
|
31313
|
-
field: 'translatedOptionText.DE',
|
|
31314
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31315
|
-
isDictionary: true,
|
|
31405
|
+
additionalFields: ['origContactRole2', 'contactRole2']
|
|
31406
|
+
}, {
|
|
31407
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname2',
|
|
31408
|
+
field: 'translatedContactName2',
|
|
31316
31409
|
cellDataType: 'withPlaceholder',
|
|
31317
31410
|
customParams: {
|
|
31318
|
-
placeHolderField: '
|
|
31319
|
-
combinedField: '
|
|
31320
|
-
maxLength: 60
|
|
31411
|
+
placeHolderField: 'origContactName2',
|
|
31412
|
+
combinedField: 'contactName2'
|
|
31321
31413
|
},
|
|
31322
|
-
additionalFields: ['
|
|
31323
|
-
pinned: 'left'
|
|
31414
|
+
additionalFields: ['origContactName2', 'contactName2']
|
|
31324
31415
|
}, {
|
|
31325
|
-
|
|
31326
|
-
|
|
31327
|
-
isDictionary: true,
|
|
31416
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname2',
|
|
31417
|
+
field: 'translatedFirstName2',
|
|
31328
31418
|
cellDataType: 'withPlaceholder',
|
|
31329
31419
|
customParams: {
|
|
31330
|
-
placeHolderField: '
|
|
31331
|
-
combinedField: '
|
|
31332
|
-
maxLength: 60
|
|
31420
|
+
placeHolderField: 'origFirstName2',
|
|
31421
|
+
combinedField: 'firstName2'
|
|
31333
31422
|
},
|
|
31334
|
-
additionalFields: ['
|
|
31423
|
+
additionalFields: ['origFirstName2', 'firstName2']
|
|
31335
31424
|
}, {
|
|
31336
|
-
|
|
31337
|
-
|
|
31338
|
-
isDictionary: true,
|
|
31425
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address2',
|
|
31426
|
+
field: 'translatedFormOfAddress2',
|
|
31339
31427
|
cellDataType: 'withPlaceholder',
|
|
31428
|
+
type: ['withPlaceholderEnum'],
|
|
31340
31429
|
customParams: {
|
|
31341
|
-
placeHolderField: '
|
|
31342
|
-
combinedField: '
|
|
31343
|
-
|
|
31430
|
+
placeHolderField: 'origFormOfAddress2',
|
|
31431
|
+
combinedField: 'formOfAddress2',
|
|
31432
|
+
enumData: getFormOfAddressKey(t),
|
|
31433
|
+
displayLabelTemplate: '${name} (${value})'
|
|
31344
31434
|
},
|
|
31345
|
-
additionalFields: ['
|
|
31435
|
+
additionalFields: ['origFormOfAddress2', 'formOfAddress2']
|
|
31346
31436
|
}, {
|
|
31347
|
-
|
|
31348
|
-
|
|
31349
|
-
isDictionary: true,
|
|
31437
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.department2',
|
|
31438
|
+
field: 'translatedDepartment2',
|
|
31350
31439
|
cellDataType: 'withPlaceholder',
|
|
31351
31440
|
customParams: {
|
|
31352
|
-
placeHolderField: '
|
|
31353
|
-
combinedField: '
|
|
31354
|
-
maxLength: 60
|
|
31441
|
+
placeHolderField: 'origDepartment2',
|
|
31442
|
+
combinedField: 'department2'
|
|
31355
31443
|
},
|
|
31356
|
-
additionalFields: ['
|
|
31357
|
-
}
|
|
31358
|
-
|
|
31359
|
-
|
|
31360
|
-
marryChildren: true,
|
|
31361
|
-
children: [{
|
|
31362
|
-
field: 'translatedOptionCommentText.DE',
|
|
31363
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31364
|
-
isDictionary: true,
|
|
31444
|
+
additionalFields: ['origDepartment2', 'department2']
|
|
31445
|
+
}, {
|
|
31446
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone2',
|
|
31447
|
+
field: 'translatedTelephone2',
|
|
31365
31448
|
cellDataType: 'withPlaceholder',
|
|
31366
31449
|
customParams: {
|
|
31367
|
-
placeHolderField: '
|
|
31368
|
-
combinedField: '
|
|
31450
|
+
placeHolderField: 'origTelephone2',
|
|
31451
|
+
combinedField: 'telephone2'
|
|
31369
31452
|
},
|
|
31370
|
-
additionalFields: ['
|
|
31453
|
+
additionalFields: ['origTelephone2', 'telephone2']
|
|
31371
31454
|
}, {
|
|
31372
|
-
|
|
31373
|
-
|
|
31374
|
-
isDictionary: true,
|
|
31455
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.fax2',
|
|
31456
|
+
field: 'translatedFax2',
|
|
31375
31457
|
cellDataType: 'withPlaceholder',
|
|
31376
31458
|
customParams: {
|
|
31377
|
-
placeHolderField: '
|
|
31378
|
-
combinedField: '
|
|
31459
|
+
placeHolderField: 'origFax2',
|
|
31460
|
+
combinedField: 'fax2'
|
|
31379
31461
|
},
|
|
31380
|
-
additionalFields: ['
|
|
31462
|
+
additionalFields: ['origFax2', 'fax2']
|
|
31381
31463
|
}, {
|
|
31382
|
-
|
|
31383
|
-
|
|
31384
|
-
isDictionary: true,
|
|
31464
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.email2',
|
|
31465
|
+
field: 'translatedEmail2',
|
|
31385
31466
|
cellDataType: 'withPlaceholder',
|
|
31386
31467
|
customParams: {
|
|
31387
|
-
placeHolderField: '
|
|
31388
|
-
combinedField: '
|
|
31468
|
+
placeHolderField: 'origEmail2',
|
|
31469
|
+
combinedField: 'email2'
|
|
31389
31470
|
},
|
|
31390
|
-
additionalFields: ['
|
|
31471
|
+
additionalFields: ['origEmail2', 'email2']
|
|
31391
31472
|
}, {
|
|
31392
|
-
|
|
31393
|
-
|
|
31394
|
-
|
|
31473
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.street2',
|
|
31474
|
+
field: 'translatedStreet2',
|
|
31475
|
+
cellDataType: 'withPlaceholder',
|
|
31476
|
+
customParams: {
|
|
31477
|
+
placeHolderField: 'origStreet2',
|
|
31478
|
+
combinedField: 'street2'
|
|
31479
|
+
},
|
|
31480
|
+
additionalFields: ['origStreet2', 'street2']
|
|
31481
|
+
}, {
|
|
31482
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.zip2',
|
|
31483
|
+
field: 'translatedZipCodeStreet2',
|
|
31484
|
+
cellDataType: 'withPlaceholder',
|
|
31485
|
+
customParams: {
|
|
31486
|
+
placeHolderField: 'origZipCodeStreet2',
|
|
31487
|
+
combinedField: 'zipCodeStreet2'
|
|
31488
|
+
},
|
|
31489
|
+
additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2']
|
|
31490
|
+
}, {
|
|
31491
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.city2',
|
|
31492
|
+
field: 'translatedCity2',
|
|
31493
|
+
cellDataType: 'withPlaceholder',
|
|
31494
|
+
customParams: {
|
|
31495
|
+
placeHolderField: 'origCity2',
|
|
31496
|
+
combinedField: 'city2'
|
|
31497
|
+
},
|
|
31498
|
+
additionalFields: ['origCity2', 'city2']
|
|
31499
|
+
}, {
|
|
31500
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.country2',
|
|
31501
|
+
field: 'translatedIsoCountryId2',
|
|
31502
|
+
editable: true,
|
|
31503
|
+
cellDataType: 'withPlaceholder',
|
|
31504
|
+
type: ['withPlaceholderEnum'],
|
|
31505
|
+
customParams: {
|
|
31506
|
+
placeHolderField: 'origIsoCountryId2',
|
|
31507
|
+
combinedField: 'isoCountryId2',
|
|
31508
|
+
enumData: getCountryKey(t)
|
|
31509
|
+
},
|
|
31510
|
+
additionalFields: ['origIsoCountryId2', 'isoCountryId2']
|
|
31511
|
+
}, {
|
|
31512
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename',
|
|
31513
|
+
field: 'translatedManufactureName1',
|
|
31514
|
+
cellDataType: 'withPlaceholder',
|
|
31515
|
+
customParams: {
|
|
31516
|
+
placeHolderField: 'origManufactureName1',
|
|
31517
|
+
combinedField: 'manufactureName1'
|
|
31518
|
+
},
|
|
31519
|
+
additionalFields: ['origManufactureName1', 'manufactureName1']
|
|
31520
|
+
}, {
|
|
31521
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename2',
|
|
31522
|
+
field: 'translatedManufactureName2',
|
|
31523
|
+
cellDataType: 'withPlaceholder',
|
|
31524
|
+
customParams: {
|
|
31525
|
+
placeHolderField: 'origManufactureName2',
|
|
31526
|
+
combinedField: 'manufactureName2'
|
|
31527
|
+
},
|
|
31528
|
+
additionalFields: ['origManufactureName2', 'manufactureName2']
|
|
31529
|
+
}, {
|
|
31530
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
|
|
31531
|
+
field: 'translatedEmail',
|
|
31532
|
+
cellDataType: 'withPlaceholder',
|
|
31533
|
+
customParams: {
|
|
31534
|
+
placeHolderField: 'origEmail',
|
|
31535
|
+
combinedField: 'email'
|
|
31536
|
+
},
|
|
31537
|
+
additionalFields: ['origEmail', 'email']
|
|
31538
|
+
}, {
|
|
31539
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.internetaddress',
|
|
31540
|
+
field: 'translatedInternetAddress',
|
|
31541
|
+
cellDataType: 'withPlaceholder',
|
|
31542
|
+
customParams: {
|
|
31543
|
+
placeHolderField: 'origInternetAddress',
|
|
31544
|
+
combinedField: 'internetAddress'
|
|
31545
|
+
},
|
|
31546
|
+
additionalFields: ['origInternetAddress', 'internetAddress']
|
|
31547
|
+
}, {
|
|
31548
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
|
|
31549
|
+
field: 'translatedStreet',
|
|
31395
31550
|
cellDataType: 'withPlaceholder',
|
|
31396
31551
|
customParams: {
|
|
31397
|
-
placeHolderField: '
|
|
31398
|
-
combinedField: '
|
|
31552
|
+
placeHolderField: 'origStreet',
|
|
31553
|
+
combinedField: 'street'
|
|
31399
31554
|
},
|
|
31400
|
-
additionalFields: ['
|
|
31555
|
+
additionalFields: ['origStreet', 'street']
|
|
31556
|
+
}, {
|
|
31557
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
|
|
31558
|
+
field: 'translatedZipCodeStreet',
|
|
31559
|
+
cellDataType: 'withPlaceholder',
|
|
31560
|
+
customParams: {
|
|
31561
|
+
placeHolderField: 'origZipCodeStreet',
|
|
31562
|
+
combinedField: 'zipCodeStreet'
|
|
31563
|
+
},
|
|
31564
|
+
additionalFields: ['origZipCodeStreet', 'zipCodeStreet']
|
|
31565
|
+
}, {
|
|
31566
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
|
|
31567
|
+
field: 'translatedCity',
|
|
31568
|
+
cellDataType: 'withPlaceholder',
|
|
31569
|
+
customParams: {
|
|
31570
|
+
placeHolderField: 'origCity',
|
|
31571
|
+
combinedField: 'city'
|
|
31572
|
+
},
|
|
31573
|
+
additionalFields: ['origCity', 'city']
|
|
31574
|
+
}, {
|
|
31575
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
|
|
31576
|
+
field: 'translatedContactSupplierIsoCountryId',
|
|
31577
|
+
editable: true,
|
|
31578
|
+
cellDataType: 'withPlaceholder',
|
|
31579
|
+
type: ['withPlaceholderEnum'],
|
|
31580
|
+
customParams: {
|
|
31581
|
+
placeHolderField: 'origContactSupplierIsoCountryId',
|
|
31582
|
+
combinedField: 'contactSupplierIsoCountryId',
|
|
31583
|
+
enumData: getCountryKey(t)
|
|
31584
|
+
},
|
|
31585
|
+
additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId']
|
|
31586
|
+
}, {
|
|
31587
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.zippostbox',
|
|
31588
|
+
field: 'translatedZipCodePostBox',
|
|
31589
|
+
cellDataType: 'withPlaceholder',
|
|
31590
|
+
customParams: {
|
|
31591
|
+
placeHolderField: 'origZipCodePostBox',
|
|
31592
|
+
combinedField: 'zipCodePostBox'
|
|
31593
|
+
},
|
|
31594
|
+
additionalFields: ['origZipCodePostBox', 'zipCodePostBox']
|
|
31595
|
+
}, {
|
|
31596
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.postbox',
|
|
31597
|
+
field: 'translatedPostBox',
|
|
31598
|
+
cellDataType: 'withPlaceholder',
|
|
31599
|
+
customParams: {
|
|
31600
|
+
placeHolderField: 'origPostBox',
|
|
31601
|
+
combinedField: 'postBox'
|
|
31602
|
+
},
|
|
31603
|
+
additionalFields: ['origPostBox', 'postBox']
|
|
31604
|
+
}, {
|
|
31605
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.telephoneswitchboard',
|
|
31606
|
+
field: 'translatedTelephoneSwitchboard',
|
|
31607
|
+
cellDataType: 'withPlaceholder',
|
|
31608
|
+
customParams: {
|
|
31609
|
+
placeHolderField: 'origTelephoneSwitchboard',
|
|
31610
|
+
combinedField: 'telephoneSwitchboard'
|
|
31611
|
+
},
|
|
31612
|
+
additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard']
|
|
31613
|
+
}, {
|
|
31614
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.faxswitchboard',
|
|
31615
|
+
field: 'translatedFaxSwitchboard',
|
|
31616
|
+
cellDataType: 'withPlaceholder',
|
|
31617
|
+
customParams: {
|
|
31618
|
+
placeHolderField: 'origFaxSwitchboard',
|
|
31619
|
+
combinedField: 'faxSwitchboard'
|
|
31620
|
+
},
|
|
31621
|
+
additionalFields: ['origFaxSwitchboard', 'faxSwitchboard']
|
|
31401
31622
|
}]
|
|
31402
|
-
}
|
|
31623
|
+
};
|
|
31624
|
+
};
|
|
31625
|
+
|
|
31626
|
+
var getConfig$5 = function getConfig(isoLanguageIds) {
|
|
31627
|
+
return {
|
|
31628
|
+
colDef: [{
|
|
31629
|
+
headerName: 'backoffice.idmEnricher.renaming.label.detailinfo_nr',
|
|
31630
|
+
field: 'detailInfoNo',
|
|
31631
|
+
editable: false
|
|
31632
|
+
}, createTranslatedColumnConfig('translatedExternalName', 'backoffice.idmEnricher.renaming.label.externalName', isoLanguageIds, false, 'withPlaceholder', {
|
|
31633
|
+
placeHolderField: 'origExternalName',
|
|
31634
|
+
combinedField: 'externalName'
|
|
31635
|
+
}, ['origExternalName', 'externalName']), createTranslatedColumnConfig('translatedInternalName', 'backoffice.idmEnricher.renaming.label.internalName', isoLanguageIds, false, 'withPlaceholder', {
|
|
31636
|
+
placeHolderField: 'origInternalName',
|
|
31637
|
+
combinedField: 'internalName'
|
|
31638
|
+
}, ['origInternalName', 'internalName']), createTranslatedColumnConfig('translatedToolTip', 'backoffice.idmEnricher.renaming.label.tooltip', isoLanguageIds, false, 'withPlaceholder', {
|
|
31639
|
+
placeHolderField: 'origToolTip',
|
|
31640
|
+
combinedField: 'toolTip'
|
|
31641
|
+
}, ['origToolTip', 'toolTip'])]
|
|
31642
|
+
};
|
|
31643
|
+
};
|
|
31644
|
+
|
|
31645
|
+
var getConfig$4 = function getConfig(isoLanguageIds) {
|
|
31646
|
+
return {
|
|
31647
|
+
colDef: [{
|
|
31648
|
+
headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
|
|
31649
|
+
field: 'featureNo',
|
|
31650
|
+
required: true,
|
|
31651
|
+
editable: false,
|
|
31652
|
+
pinned: 'left'
|
|
31653
|
+
}, createTranslatedColumnConfig('translatedFeatureText', 'backoffice.idmEnricher.renaming.label.featuretext', isoLanguageIds, true, 'withPlaceholder', {
|
|
31654
|
+
placeHolderField: 'origFeatureText',
|
|
31655
|
+
combinedField: 'featureText'
|
|
31656
|
+
}, ['origFeatureText', 'featureText'])]
|
|
31657
|
+
};
|
|
31658
|
+
};
|
|
31659
|
+
|
|
31660
|
+
var getConfig$3 = function getConfig(isoLanguageIds) {
|
|
31661
|
+
return {
|
|
31662
|
+
colDef: [{
|
|
31663
|
+
headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
|
|
31664
|
+
field: 'typeNo',
|
|
31665
|
+
required: true,
|
|
31666
|
+
editable: false,
|
|
31667
|
+
pinned: 'left'
|
|
31668
|
+
}, createTranslatedColumnConfig('translatedShortText', 'backoffice.idmEnricher.renaming.label.shortText', isoLanguageIds, true, 'withPlaceholder', {
|
|
31669
|
+
placeHolderField: 'origShortText',
|
|
31670
|
+
combinedField: 'shortText'
|
|
31671
|
+
}, ['origShortText', 'shortText']), createTranslatedColumnConfig('translatedFullText', 'backoffice.idmEnricher.renaming.label.fullText', isoLanguageIds, true, 'withPlaceholder', {
|
|
31672
|
+
placeHolderField: 'origFullText',
|
|
31673
|
+
combinedField: 'fullText'
|
|
31674
|
+
}, ['origFullText', 'fullText']), createTranslatedColumnConfig('translatedPlanningAdvice', 'backoffice.idmEnricher.renaming.label.planningAdvice', isoLanguageIds, true, 'withPlaceholder', {
|
|
31675
|
+
placeHolderField: 'origPlanningAdvice',
|
|
31676
|
+
combinedField: 'planningAdvice'
|
|
31677
|
+
}, ['origPlanningAdvice', 'planningAdvice']), {
|
|
31678
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
|
|
31679
|
+
field: 'translatedSalesNumber',
|
|
31680
|
+
cellDataType: 'withPlaceholder',
|
|
31681
|
+
customParams: {
|
|
31682
|
+
placeHolderField: 'origSalesNumber',
|
|
31683
|
+
combinedField: 'salesNumber'
|
|
31684
|
+
},
|
|
31685
|
+
additionalFields: ['origSalesNumber', 'salesNumber']
|
|
31686
|
+
}, {
|
|
31687
|
+
field: 'sequenceNo',
|
|
31688
|
+
headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
|
|
31689
|
+
editable: false,
|
|
31690
|
+
cellDataType: 'number'
|
|
31691
|
+
}, {
|
|
31692
|
+
headerName: 'backoffice.idmEnricher.renaming.label.edpnummer',
|
|
31693
|
+
field: 'translatedEdpNumber',
|
|
31694
|
+
cellDataType: 'withPlaceholder',
|
|
31695
|
+
customParams: {
|
|
31696
|
+
placeHolderField: 'origEdpNumber',
|
|
31697
|
+
combinedField: 'edpNumber'
|
|
31698
|
+
},
|
|
31699
|
+
additionalFields: ['origEdpNumber', 'edpNumber']
|
|
31700
|
+
}, {
|
|
31701
|
+
headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
|
|
31702
|
+
field: 'translatedEanNumber',
|
|
31703
|
+
cellDataType: 'withPlaceholder',
|
|
31704
|
+
customParams: {
|
|
31705
|
+
placeHolderField: 'origEanNumber',
|
|
31706
|
+
combinedField: 'eanNumber'
|
|
31707
|
+
},
|
|
31708
|
+
additionalFields: ['origEanNumber', 'eanNumber']
|
|
31709
|
+
}]
|
|
31710
|
+
};
|
|
31711
|
+
};
|
|
31712
|
+
|
|
31713
|
+
var getConfig$2 = function getConfig(isoLanguageIds) {
|
|
31714
|
+
return {
|
|
31715
|
+
colDef: [{
|
|
31716
|
+
headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
|
|
31717
|
+
field: 'optionKey',
|
|
31718
|
+
required: true,
|
|
31719
|
+
editable: false,
|
|
31720
|
+
pinned: 'left'
|
|
31721
|
+
}, createTranslatedColumnConfig('translatedOptionText', 'backoffice.idmEnricher.renaming.label.optionText', isoLanguageIds, true, 'withPlaceholder', {
|
|
31722
|
+
placeHolderField: 'origOptionText',
|
|
31723
|
+
combinedField: 'optionText'
|
|
31724
|
+
}, ['origOptionText', 'optionText']), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, true, 'withPlaceholder', {
|
|
31725
|
+
placeHolderField: 'origOptionCommentText',
|
|
31726
|
+
combinedField: 'optionCommentText'
|
|
31727
|
+
}, ['origOptionCommentText', 'optionCommentText'])]
|
|
31728
|
+
};
|
|
31729
|
+
};
|
|
31730
|
+
|
|
31731
|
+
var getConfig$1 = function getConfig(isoLanguageIds) {
|
|
31732
|
+
return {
|
|
31733
|
+
colDef: [{
|
|
31734
|
+
headerName: 'backoffice.idmEnricher.renaming.label.serieNo',
|
|
31735
|
+
field: 'serieNo',
|
|
31736
|
+
required: true,
|
|
31737
|
+
editable: false
|
|
31738
|
+
}, createTranslatedColumnConfig('translatedSeriesName', 'backoffice.idmEnricher.renaming.label.serieName', isoLanguageIds, false, 'withPlaceholder', {
|
|
31739
|
+
placeHolderField: 'origSeriesName',
|
|
31740
|
+
combinedField: 'seriesName'
|
|
31741
|
+
}, ['origSeriesName', 'seriesName']), createTranslatedColumnConfig('translatedSeriesFullText', 'backoffice.idmEnricher.renaming.label.serieFullText', isoLanguageIds, false, 'withPlaceholder', {
|
|
31742
|
+
placeHolderField: 'origSeriesFullText',
|
|
31743
|
+
combinedField: 'seriesFullText'
|
|
31744
|
+
}, ['origSeriesFullText', 'seriesFullText'])]
|
|
31745
|
+
};
|
|
31403
31746
|
};
|
|
31404
31747
|
|
|
31405
31748
|
function SeriesSelector$1(_ref) {
|
|
@@ -31469,76 +31812,57 @@ function FeatureSelector$1(_ref) {
|
|
|
31469
31812
|
}, packageId);
|
|
31470
31813
|
}
|
|
31471
31814
|
|
|
31472
|
-
function
|
|
31473
|
-
|
|
31474
|
-
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
31478
|
-
|
|
31479
|
-
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
// data.map((country: any) => {
|
|
31485
|
-
// const { code, ...translations } = country;
|
|
31486
|
-
// return { value: code, label: translations };
|
|
31487
|
-
// }),
|
|
31488
|
-
// );
|
|
31489
|
-
// })();
|
|
31490
|
-
// }, []);
|
|
31491
|
-
|
|
31492
|
-
var config = useMemo(function () {
|
|
31493
|
-
var config = configuration;
|
|
31494
|
-
|
|
31495
|
-
//TODO: only needed for catalog table, witch is currently not in use, not relevant for CL-Editor
|
|
31496
|
-
// config.colDef = config.colDef.map((col: any) => {
|
|
31497
|
-
// if (col.headerName) col.headerName = t(col.headerName);
|
|
31498
|
-
|
|
31499
|
-
// if ('field' in col && ['isoCountryId2', 'isoCountryId1', 'contactSupplierIsoCountryId'].includes(col.field ?? '')) {
|
|
31500
|
-
// col.customParams.options = countryCodes;
|
|
31501
|
-
// }
|
|
31502
|
-
// return col;
|
|
31503
|
-
// });
|
|
31504
|
-
return config;
|
|
31505
|
-
}, [countryCodes]);
|
|
31506
|
-
return {
|
|
31507
|
-
configuration: config,
|
|
31508
|
-
countryCodesLoaded: countryCodes.length > 0
|
|
31509
|
-
};
|
|
31510
|
-
}
|
|
31511
|
-
|
|
31815
|
+
var RenamingCatalog = function RenamingCatalog() {
|
|
31816
|
+
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31817
|
+
type: "catalogs",
|
|
31818
|
+
getConfig: getConfig$6
|
|
31819
|
+
});
|
|
31820
|
+
};
|
|
31821
|
+
var RenamingDetailInfo = function RenamingDetailInfo() {
|
|
31822
|
+
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31823
|
+
type: "detailInfos",
|
|
31824
|
+
getConfig: getConfig$5
|
|
31825
|
+
});
|
|
31826
|
+
};
|
|
31512
31827
|
var RenamingFeature = function RenamingFeature() {
|
|
31513
31828
|
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31514
31829
|
type: "features",
|
|
31515
|
-
|
|
31830
|
+
getConfig: getConfig$4
|
|
31516
31831
|
});
|
|
31517
31832
|
};
|
|
31518
31833
|
var RenamingItem = function RenamingItem() {
|
|
31519
31834
|
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31520
31835
|
type: "items",
|
|
31521
|
-
|
|
31836
|
+
getConfig: getConfig$3
|
|
31522
31837
|
});
|
|
31523
31838
|
};
|
|
31524
31839
|
var RenamingOption = function RenamingOption() {
|
|
31525
31840
|
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31526
31841
|
type: "options",
|
|
31527
|
-
|
|
31842
|
+
getConfig: getConfig$2
|
|
31843
|
+
});
|
|
31844
|
+
};
|
|
31845
|
+
var RenamingSerie = function RenamingSerie() {
|
|
31846
|
+
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31847
|
+
type: "series",
|
|
31848
|
+
getConfig: getConfig$1
|
|
31528
31849
|
});
|
|
31529
31850
|
};
|
|
31530
31851
|
var RenamingTable = function RenamingTable(_ref) {
|
|
31531
31852
|
var type = _ref.type,
|
|
31532
|
-
|
|
31853
|
+
getConfig = _ref.getConfig;
|
|
31533
31854
|
var _useTranslation = useTranslation(),
|
|
31534
|
-
t = _useTranslation.t
|
|
31855
|
+
t = _useTranslation.t,
|
|
31856
|
+
i18n = _useTranslation.i18n;
|
|
31535
31857
|
var _useModule = useModule$1(['renaming', type]),
|
|
31536
31858
|
packageId = _useModule.packageId,
|
|
31537
31859
|
organizationId = _useModule.organizationId,
|
|
31538
31860
|
updateNavigation = _useModule.updateNavigation,
|
|
31539
|
-
apiConfig = _useModule.apiConfig
|
|
31540
|
-
|
|
31541
|
-
|
|
31861
|
+
apiConfig = _useModule.apiConfig,
|
|
31862
|
+
selectedPackage = _useModule.selectedPackage;
|
|
31863
|
+
var baseConfiguration = useMemo(function () {
|
|
31864
|
+
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
|
|
31865
|
+
}, [selectedPackage, i18n.language]);
|
|
31542
31866
|
var _React$useState = React.useState(),
|
|
31543
31867
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
31544
31868
|
selectedSerie = _React$useState2[0],
|
|
@@ -31552,18 +31876,33 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
31552
31876
|
packageId: packageId
|
|
31553
31877
|
};
|
|
31554
31878
|
}, [packageId]);
|
|
31879
|
+
var prevPreFilter = useRef();
|
|
31555
31880
|
var preFilter = useMemo(function () {
|
|
31556
|
-
|
|
31557
|
-
|
|
31558
|
-
|
|
31559
|
-
|
|
31560
|
-
|
|
31561
|
-
|
|
31562
|
-
|
|
31563
|
-
|
|
31564
|
-
|
|
31565
|
-
|
|
31566
|
-
|
|
31881
|
+
if (type === 'options' && !selectedFeature) {
|
|
31882
|
+
return prevPreFilter.current;
|
|
31883
|
+
} else if (type === 'items' && selectedSerie) {
|
|
31884
|
+
var newFilter = {
|
|
31885
|
+
filterType: 'text',
|
|
31886
|
+
type: 'equals',
|
|
31887
|
+
colId: 'featureNo',
|
|
31888
|
+
filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
|
|
31889
|
+
};
|
|
31890
|
+
prevPreFilter.current = newFilter;
|
|
31891
|
+
return newFilter;
|
|
31892
|
+
}
|
|
31893
|
+
if (type === 'items' && !selectedSerie) {
|
|
31894
|
+
return prevPreFilter.current;
|
|
31895
|
+
} else if (type === 'options' && selectedFeature) {
|
|
31896
|
+
var _newFilter = {
|
|
31897
|
+
filterType: 'text',
|
|
31898
|
+
type: 'equals',
|
|
31899
|
+
colId: 'featureNo',
|
|
31900
|
+
filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
|
|
31901
|
+
};
|
|
31902
|
+
prevPreFilter.current = _newFilter;
|
|
31903
|
+
return _newFilter;
|
|
31904
|
+
}
|
|
31905
|
+
return undefined;
|
|
31567
31906
|
}, [type, selectedSerie, selectedFeature]);
|
|
31568
31907
|
var apiInterface = useMemo(function () {
|
|
31569
31908
|
return {
|
|
@@ -31595,11 +31934,8 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
31595
31934
|
};
|
|
31596
31935
|
}, [apiInterface, baseConfiguration.colDef]);
|
|
31597
31936
|
var showTable = useMemo(function () {
|
|
31598
|
-
return !['items', 'options'].includes(type) || type === 'items' &&
|
|
31599
|
-
}, [type,
|
|
31600
|
-
var gridId = useMemo(function () {
|
|
31601
|
-
return 'renaming-grid_' + type + (type === 'options' ? '_' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo) : type === 'items' ? '_' + (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo) : '');
|
|
31602
|
-
}, [type, selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo, selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]);
|
|
31937
|
+
return selectedPackage && (!['items', 'options'].includes(type) || type === 'items' && preFilter || type === 'options' && preFilter);
|
|
31938
|
+
}, [type, preFilter, selectedPackage]);
|
|
31603
31939
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
31604
31940
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
31605
31941
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -31609,9 +31945,9 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
31609
31945
|
},
|
|
31610
31946
|
children: [/*#__PURE__*/jsx(PackageSelector, {
|
|
31611
31947
|
organizationId: organizationId,
|
|
31612
|
-
|
|
31613
|
-
setSelectedPackage: function setSelectedPackage(
|
|
31614
|
-
return updateNavigation(
|
|
31948
|
+
packageId: packageId,
|
|
31949
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
31950
|
+
return updateNavigation(packageId);
|
|
31615
31951
|
},
|
|
31616
31952
|
enricherService: apiConfig.enricherService
|
|
31617
31953
|
}), type === 'items' && /*#__PURE__*/jsx(SeriesSelector$1, {
|
|
@@ -31630,7 +31966,7 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
31630
31966
|
})]
|
|
31631
31967
|
})
|
|
31632
31968
|
}), showTable && /*#__PURE__*/jsx(Spreadsheet, {
|
|
31633
|
-
gridId:
|
|
31969
|
+
gridId: 'renaming-grid_' + type,
|
|
31634
31970
|
applicationData: applicationData,
|
|
31635
31971
|
preFilter: preFilter,
|
|
31636
31972
|
configuration: configuration
|
|
@@ -31638,384 +31974,439 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
31638
31974
|
});
|
|
31639
31975
|
};
|
|
31640
31976
|
|
|
31641
|
-
|
|
31642
|
-
|
|
31643
|
-
|
|
31644
|
-
|
|
31645
|
-
|
|
31646
|
-
|
|
31647
|
-
|
|
31648
|
-
|
|
31649
|
-
|
|
31650
|
-
|
|
31651
|
-
|
|
31652
|
-
|
|
31653
|
-
|
|
31654
|
-
|
|
31655
|
-
|
|
31656
|
-
|
|
31657
|
-
|
|
31658
|
-
|
|
31659
|
-
|
|
31660
|
-
|
|
31661
|
-
|
|
31662
|
-
|
|
31663
|
-
|
|
31664
|
-
|
|
31665
|
-
|
|
31666
|
-
|
|
31667
|
-
|
|
31668
|
-
|
|
31669
|
-
|
|
31670
|
-
|
|
31671
|
-
|
|
31672
|
-
|
|
31673
|
-
|
|
31674
|
-
|
|
31675
|
-
|
|
31676
|
-
|
|
31677
|
-
|
|
31678
|
-
|
|
31679
|
-
|
|
31680
|
-
|
|
31681
|
-
|
|
31682
|
-
|
|
31683
|
-
|
|
31684
|
-
|
|
31685
|
-
|
|
31686
|
-
|
|
31687
|
-
|
|
31688
|
-
|
|
31689
|
-
|
|
31690
|
-
|
|
31691
|
-
|
|
31692
|
-
|
|
31693
|
-
|
|
31694
|
-
|
|
31695
|
-
|
|
31696
|
-
|
|
31697
|
-
|
|
31698
|
-
|
|
31699
|
-
|
|
31700
|
-
|
|
31701
|
-
|
|
31702
|
-
|
|
31703
|
-
|
|
31704
|
-
|
|
31705
|
-
|
|
31706
|
-
|
|
31707
|
-
|
|
31708
|
-
|
|
31709
|
-
|
|
31710
|
-
|
|
31711
|
-
|
|
31712
|
-
|
|
31713
|
-
|
|
31714
|
-
|
|
31715
|
-
|
|
31716
|
-
|
|
31717
|
-
|
|
31718
|
-
|
|
31719
|
-
|
|
31720
|
-
|
|
31721
|
-
|
|
31722
|
-
|
|
31723
|
-
|
|
31724
|
-
|
|
31725
|
-
|
|
31726
|
-
|
|
31727
|
-
|
|
31728
|
-
|
|
31729
|
-
|
|
31730
|
-
|
|
31731
|
-
|
|
31732
|
-
|
|
31733
|
-
|
|
31734
|
-
|
|
31735
|
-
|
|
31736
|
-
|
|
31737
|
-
|
|
31738
|
-
|
|
31739
|
-
|
|
31740
|
-
|
|
31741
|
-
|
|
31742
|
-
|
|
31743
|
-
|
|
31744
|
-
|
|
31745
|
-
|
|
31746
|
-
|
|
31747
|
-
|
|
31748
|
-
|
|
31749
|
-
|
|
31750
|
-
|
|
31751
|
-
|
|
31752
|
-
|
|
31753
|
-
|
|
31754
|
-
|
|
31755
|
-
|
|
31756
|
-
|
|
31757
|
-
|
|
31758
|
-
|
|
31759
|
-
|
|
31760
|
-
|
|
31761
|
-
|
|
31762
|
-
|
|
31763
|
-
|
|
31764
|
-
|
|
31765
|
-
|
|
31766
|
-
|
|
31767
|
-
|
|
31768
|
-
|
|
31769
|
-
|
|
31770
|
-
|
|
31771
|
-
|
|
31772
|
-
|
|
31773
|
-
|
|
31774
|
-
|
|
31775
|
-
|
|
31776
|
-
|
|
31777
|
-
|
|
31778
|
-
|
|
31779
|
-
|
|
31780
|
-
|
|
31781
|
-
|
|
31782
|
-
|
|
31783
|
-
|
|
31784
|
-
|
|
31785
|
-
|
|
31786
|
-
|
|
31787
|
-
|
|
31788
|
-
|
|
31789
|
-
|
|
31790
|
-
|
|
31791
|
-
|
|
31792
|
-
|
|
31793
|
-
|
|
31794
|
-
|
|
31795
|
-
|
|
31796
|
-
|
|
31797
|
-
|
|
31798
|
-
|
|
31799
|
-
|
|
31800
|
-
|
|
31801
|
-
|
|
31802
|
-
|
|
31803
|
-
|
|
31804
|
-
|
|
31805
|
-
|
|
31806
|
-
|
|
31807
|
-
|
|
31808
|
-
|
|
31809
|
-
|
|
31810
|
-
|
|
31811
|
-
|
|
31812
|
-
|
|
31813
|
-
|
|
31814
|
-
|
|
31815
|
-
|
|
31816
|
-
|
|
31817
|
-
|
|
31818
|
-
|
|
31819
|
-
|
|
31820
|
-
|
|
31821
|
-
|
|
31822
|
-
|
|
31823
|
-
|
|
31824
|
-
|
|
31825
|
-
|
|
31826
|
-
|
|
31827
|
-
|
|
31828
|
-
|
|
31829
|
-
|
|
31830
|
-
|
|
31831
|
-
|
|
31832
|
-
|
|
31833
|
-
|
|
31834
|
-
|
|
31835
|
-
|
|
31836
|
-
|
|
31837
|
-
|
|
31838
|
-
|
|
31839
|
-
|
|
31840
|
-
|
|
31841
|
-
|
|
31842
|
-
|
|
31843
|
-
|
|
31844
|
-
|
|
31845
|
-
|
|
31846
|
-
|
|
31847
|
-
|
|
31848
|
-
|
|
31849
|
-
|
|
31850
|
-
|
|
31851
|
-
|
|
31852
|
-
|
|
31853
|
-
|
|
31854
|
-
|
|
31855
|
-
|
|
31856
|
-
|
|
31857
|
-
|
|
31858
|
-
|
|
31859
|
-
|
|
31860
|
-
|
|
31861
|
-
|
|
31862
|
-
|
|
31863
|
-
|
|
31864
|
-
|
|
31865
|
-
|
|
31866
|
-
|
|
31867
|
-
|
|
31868
|
-
|
|
31869
|
-
|
|
31870
|
-
|
|
31871
|
-
|
|
31872
|
-
|
|
31873
|
-
|
|
31874
|
-
|
|
31875
|
-
|
|
31876
|
-
|
|
31877
|
-
|
|
31878
|
-
|
|
31879
|
-
|
|
31880
|
-
|
|
31881
|
-
|
|
31882
|
-
|
|
31883
|
-
|
|
31884
|
-
|
|
31885
|
-
|
|
31886
|
-
|
|
31887
|
-
|
|
31888
|
-
|
|
31889
|
-
|
|
31890
|
-
|
|
31891
|
-
|
|
31892
|
-
|
|
31893
|
-
|
|
31894
|
-
|
|
31895
|
-
|
|
31896
|
-
|
|
31897
|
-
|
|
31898
|
-
|
|
31899
|
-
|
|
31900
|
-
|
|
31901
|
-
|
|
31902
|
-
|
|
31903
|
-
|
|
31904
|
-
|
|
31905
|
-
|
|
31906
|
-
|
|
31907
|
-
|
|
31908
|
-
|
|
31909
|
-
|
|
31910
|
-
|
|
31911
|
-
|
|
31912
|
-
|
|
31913
|
-
|
|
31914
|
-
|
|
31915
|
-
|
|
31916
|
-
|
|
31917
|
-
|
|
31918
|
-
|
|
31919
|
-
|
|
31920
|
-
|
|
31921
|
-
|
|
31922
|
-
|
|
31923
|
-
|
|
31924
|
-
|
|
31925
|
-
|
|
31926
|
-
|
|
31927
|
-
|
|
31928
|
-
|
|
31929
|
-
|
|
31930
|
-
|
|
31931
|
-
|
|
31932
|
-
|
|
31933
|
-
|
|
31934
|
-
|
|
31935
|
-
|
|
31936
|
-
|
|
31937
|
-
|
|
31938
|
-
|
|
31939
|
-
|
|
31940
|
-
|
|
31941
|
-
|
|
31942
|
-
|
|
31943
|
-
|
|
31944
|
-
|
|
31945
|
-
|
|
31946
|
-
|
|
31947
|
-
|
|
31948
|
-
|
|
31949
|
-
|
|
31950
|
-
|
|
31951
|
-
|
|
31952
|
-
|
|
31953
|
-
|
|
31954
|
-
|
|
31955
|
-
|
|
31956
|
-
|
|
31957
|
-
|
|
31958
|
-
|
|
31959
|
-
|
|
31960
|
-
|
|
31961
|
-
|
|
31962
|
-
|
|
31963
|
-
|
|
31964
|
-
|
|
31965
|
-
|
|
31966
|
-
|
|
31967
|
-
|
|
31968
|
-
|
|
31969
|
-
|
|
31970
|
-
|
|
31971
|
-
|
|
31972
|
-
|
|
31973
|
-
|
|
31974
|
-
|
|
31975
|
-
|
|
31976
|
-
|
|
31977
|
-
|
|
31978
|
-
|
|
31979
|
-
|
|
31980
|
-
|
|
31981
|
-
|
|
31982
|
-
|
|
31983
|
-
|
|
31984
|
-
|
|
31985
|
-
|
|
31986
|
-
|
|
31987
|
-
|
|
31988
|
-
|
|
31989
|
-
|
|
31990
|
-
|
|
31991
|
-
|
|
31992
|
-
|
|
31993
|
-
|
|
31977
|
+
function getConfig(t) {
|
|
31978
|
+
return {
|
|
31979
|
+
detailInfo: {
|
|
31980
|
+
colDef: [{
|
|
31981
|
+
field: 'detailInfoNo',
|
|
31982
|
+
headerName: 'backoffice.idmEnricher.renaming.label.detailinfo_nr',
|
|
31983
|
+
editable: false,
|
|
31984
|
+
cellDataType: 'number'
|
|
31985
|
+
}, {
|
|
31986
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.classification',
|
|
31987
|
+
field: 'classification',
|
|
31988
|
+
editable: false
|
|
31989
|
+
}, {
|
|
31990
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.infoType',
|
|
31991
|
+
field: 'infoType',
|
|
31992
|
+
editable: false,
|
|
31993
|
+
cellDataType: 'enum',
|
|
31994
|
+
customParams: {
|
|
31995
|
+
enumData: getInfoTypeKey(t)
|
|
31996
|
+
}
|
|
31997
|
+
}, {
|
|
31998
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.layer',
|
|
31999
|
+
field: 'layer',
|
|
32000
|
+
editable: false,
|
|
32001
|
+
cellDataType: 'enum',
|
|
32002
|
+
customParams: {
|
|
32003
|
+
enumData: getLayerIdKey(t)
|
|
32004
|
+
}
|
|
32005
|
+
}, {
|
|
32006
|
+
field: 'url',
|
|
32007
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.url',
|
|
32008
|
+
editable: false
|
|
32009
|
+
}, {
|
|
32010
|
+
field: 'hashValue',
|
|
32011
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.hashValue',
|
|
32012
|
+
editable: false
|
|
32013
|
+
}, {
|
|
32014
|
+
field: 'isoLanguageId',
|
|
32015
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.isoLanguage',
|
|
32016
|
+
editable: false,
|
|
32017
|
+
cellDataType: 'enum',
|
|
32018
|
+
customParams: {
|
|
32019
|
+
enumData: getLanguageKey(t)
|
|
32020
|
+
}
|
|
32021
|
+
}, {
|
|
32022
|
+
field: 'mediaType',
|
|
32023
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.mediaType',
|
|
32024
|
+
editable: false
|
|
32025
|
+
}, {
|
|
32026
|
+
field: 'functionType',
|
|
32027
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.functionType',
|
|
32028
|
+
editable: false
|
|
32029
|
+
}, {
|
|
32030
|
+
field: 'externalName',
|
|
32031
|
+
headerName: 'backoffice.idmEnricher.renaming.label.externalName',
|
|
32032
|
+
editable: false,
|
|
32033
|
+
cellDataType: 'translated',
|
|
32034
|
+
isDictionary: true
|
|
32035
|
+
}, {
|
|
32036
|
+
field: 'internalName',
|
|
32037
|
+
headerName: 'backoffice.idmEnricher.renaming.label.internalName',
|
|
32038
|
+
editable: false,
|
|
32039
|
+
cellDataType: 'translated',
|
|
32040
|
+
isDictionary: true
|
|
32041
|
+
}, {
|
|
32042
|
+
field: 'toolTip',
|
|
32043
|
+
headerName: 'backoffice.idmEnricher.renaming.label.tooltip',
|
|
32044
|
+
editable: false,
|
|
32045
|
+
cellDataType: 'translated',
|
|
32046
|
+
isDictionary: true
|
|
32047
|
+
}]
|
|
32048
|
+
},
|
|
32049
|
+
feature: {
|
|
32050
|
+
colDef: [{
|
|
32051
|
+
field: 'featureNo',
|
|
32052
|
+
headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
|
|
32053
|
+
editable: false
|
|
32054
|
+
}, {
|
|
32055
|
+
field: 'featureText',
|
|
32056
|
+
headerName: 'backoffice.idmEnricher.renaming.label.featuretext',
|
|
32057
|
+
editable: false,
|
|
32058
|
+
cellDataType: 'translated',
|
|
32059
|
+
isDictionary: true
|
|
32060
|
+
}, {
|
|
32061
|
+
headerName: 'backoffice.idmEnricher.renaming.label.headerPosVariationType',
|
|
32062
|
+
field: 'headerPosVariationType',
|
|
32063
|
+
editable: false,
|
|
32064
|
+
cellDataType: 'enum',
|
|
32065
|
+
customParams: {
|
|
32066
|
+
enumData: [{
|
|
32067
|
+
name: t('backoffice.idmCatalog.features.label.vt.I'),
|
|
32068
|
+
value: 'I'
|
|
32069
|
+
}, {
|
|
32070
|
+
name: t('backoffice.idmCatalog.features.label.vt.K'),
|
|
32071
|
+
value: 'K'
|
|
32072
|
+
}, {
|
|
32073
|
+
name: t('backoffice.idmCatalog.features.label.vt.P'),
|
|
32074
|
+
value: 'P'
|
|
32075
|
+
}],
|
|
32076
|
+
displayLabelTemplate: '${name} (${value})'
|
|
32077
|
+
}
|
|
32078
|
+
}, {
|
|
32079
|
+
field: 'catalogId',
|
|
32080
|
+
headerName: 'backoffice.idmEnricher.packages.label.catalogId',
|
|
32081
|
+
editable: false
|
|
32082
|
+
}, {
|
|
32083
|
+
field: 'organizationId',
|
|
32084
|
+
editable: false,
|
|
32085
|
+
hide: true,
|
|
32086
|
+
lockVisible: true,
|
|
32087
|
+
suppressColumnsToolPanel: true,
|
|
32088
|
+
defaultValue: '${organizationId}'
|
|
32089
|
+
}, {
|
|
32090
|
+
headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
|
|
32091
|
+
field: 'sequenceNo',
|
|
32092
|
+
editable: false,
|
|
32093
|
+
cellDataType: 'number'
|
|
32094
|
+
}, {
|
|
32095
|
+
field: 'featureT',
|
|
32096
|
+
headerName: 'backoffice.idmEnricher.renaming.label.featureT',
|
|
32097
|
+
editable: false,
|
|
32098
|
+
cellDataType: 'enum',
|
|
32099
|
+
customParams: {
|
|
32100
|
+
enumData: [{
|
|
32101
|
+
name: t('backoffice.idmCatalog.features.label.featureTDic.M'),
|
|
32102
|
+
value: 'M'
|
|
32103
|
+
}, {
|
|
32104
|
+
name: t('backoffice.idmCatalog.features.label.featureTDic.C'),
|
|
32105
|
+
value: 'C'
|
|
32106
|
+
}, {
|
|
32107
|
+
name: t('backoffice.idmCatalog.features.label.featureTDic.O'),
|
|
32108
|
+
value: 'O'
|
|
32109
|
+
}],
|
|
32110
|
+
displayLabelTemplate: '${name} (${value})'
|
|
32111
|
+
}
|
|
32112
|
+
}, {
|
|
32113
|
+
field: 'measureUnit',
|
|
32114
|
+
headerName: 'backoffice.idmEnricher.renaming.label.measureUnit',
|
|
32115
|
+
editable: false
|
|
32116
|
+
}, {
|
|
32117
|
+
field: 'measureParameter',
|
|
32118
|
+
headerName: 'backoffice.idmEnricher.renaming.label.measureParameter',
|
|
32119
|
+
editable: false
|
|
32120
|
+
}]
|
|
32121
|
+
},
|
|
32122
|
+
serie: {
|
|
32123
|
+
colDef: [{
|
|
32124
|
+
field: 'serieNo',
|
|
32125
|
+
headerName: 'backoffice.idmEnricher.renaming.label.serieNo',
|
|
32126
|
+
editable: false,
|
|
32127
|
+
cellDataType: 'number'
|
|
32128
|
+
}, {
|
|
32129
|
+
field: 'seriesName',
|
|
32130
|
+
headerName: 'backoffice.idmEnricher.renaming.label.serieName',
|
|
32131
|
+
editable: false,
|
|
32132
|
+
cellDataType: 'translated',
|
|
32133
|
+
isDictionary: true
|
|
32134
|
+
}, {
|
|
32135
|
+
field: 'seriesFullText',
|
|
32136
|
+
headerName: 'backoffice.idmEnricher.renaming.label.serieFullText',
|
|
32137
|
+
editable: false,
|
|
32138
|
+
cellDataType: 'translated',
|
|
32139
|
+
isDictionary: true
|
|
32140
|
+
}, {
|
|
32141
|
+
field: 'sequenceNo',
|
|
32142
|
+
headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
|
|
32143
|
+
editable: false,
|
|
32144
|
+
cellDataType: 'number'
|
|
32145
|
+
}, {
|
|
32146
|
+
field: 'purchaseRetailId',
|
|
32147
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.purchaseRetailId',
|
|
32148
|
+
editable: false,
|
|
32149
|
+
cellDataType: 'number'
|
|
32150
|
+
}, {
|
|
32151
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.validFrom',
|
|
32152
|
+
field: 'validFrom',
|
|
32153
|
+
cellDataType: 'dateString',
|
|
32154
|
+
editable: false
|
|
32155
|
+
}, {
|
|
32156
|
+
field: 'validUntil',
|
|
32157
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.validUntil',
|
|
32158
|
+
cellDataType: 'dateString',
|
|
32159
|
+
editable: false
|
|
32160
|
+
}]
|
|
32161
|
+
},
|
|
32162
|
+
item: {
|
|
32163
|
+
colDef: [{
|
|
32164
|
+
field: 'typeNo',
|
|
32165
|
+
headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
|
|
32166
|
+
editable: false
|
|
32167
|
+
}, {
|
|
32168
|
+
headerName: 'backoffice.idmEnricher.renaming.label.shortText',
|
|
32169
|
+
field: 'shortText',
|
|
32170
|
+
editable: false,
|
|
32171
|
+
cellDataType: 'translated',
|
|
32172
|
+
isDictionary: true
|
|
32173
|
+
}, {
|
|
32174
|
+
headerName: 'backoffice.idmEnricher.renaming.label.fullText',
|
|
32175
|
+
field: 'fullText',
|
|
32176
|
+
editable: false,
|
|
32177
|
+
cellDataType: 'translated',
|
|
32178
|
+
isDictionary: true
|
|
32179
|
+
}, {
|
|
32180
|
+
headerName: 'backoffice.idmEnricher.renaming.label.edpnummer',
|
|
32181
|
+
field: 'edpNumber',
|
|
32182
|
+
editable: false
|
|
32183
|
+
}, {
|
|
32184
|
+
headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
|
|
32185
|
+
field: 'eanNumber',
|
|
32186
|
+
editable: false
|
|
32187
|
+
}, {
|
|
32188
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.itemIdentification',
|
|
32189
|
+
field: 'itemIdentification',
|
|
32190
|
+
editable: false
|
|
32191
|
+
}, {
|
|
32192
|
+
field: 'catalogPage',
|
|
32193
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.catalogPage',
|
|
32194
|
+
editable: false
|
|
32195
|
+
}, {
|
|
32196
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.validFrom',
|
|
32197
|
+
field: 'validFromDate',
|
|
32198
|
+
cellDataType: 'dateString',
|
|
32199
|
+
editable: false
|
|
32200
|
+
}, {
|
|
32201
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.validUntil',
|
|
32202
|
+
field: 'validUntilDate',
|
|
32203
|
+
cellDataType: 'dateString',
|
|
32204
|
+
editable: false
|
|
32205
|
+
}, {
|
|
32206
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.weightBrutto',
|
|
32207
|
+
field: 'weightBrutto',
|
|
32208
|
+
editable: false,
|
|
32209
|
+
cellDataType: 'number'
|
|
32210
|
+
}, {
|
|
32211
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.weightNetto',
|
|
32212
|
+
field: 'weightNetto',
|
|
32213
|
+
editable: false,
|
|
32214
|
+
cellDataType: 'number'
|
|
32215
|
+
}, {
|
|
32216
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.volume',
|
|
32217
|
+
field: 'volume',
|
|
32218
|
+
editable: false,
|
|
32219
|
+
cellDataType: 'number'
|
|
32220
|
+
}, {
|
|
32221
|
+
field: 'minimumDeliveryTime',
|
|
32222
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.minimumDeliveryTime',
|
|
32223
|
+
editable: false,
|
|
32224
|
+
cellDataType: 'number'
|
|
32225
|
+
}, {
|
|
32226
|
+
field: 'typeKey',
|
|
32227
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.typeKey',
|
|
32228
|
+
editable: false
|
|
32229
|
+
}, {
|
|
32230
|
+
field: 'eClassNo',
|
|
32231
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.eClassNo',
|
|
32232
|
+
editable: false,
|
|
32233
|
+
cellDataType: 'number'
|
|
32234
|
+
}, {
|
|
32235
|
+
field: 'partListExclusive',
|
|
32236
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.partListExclusive',
|
|
32237
|
+
editable: false,
|
|
32238
|
+
cellDataType: 'boolean'
|
|
32239
|
+
}, {
|
|
32240
|
+
field: 'sequenceNo',
|
|
32241
|
+
headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
|
|
32242
|
+
editable: false,
|
|
32243
|
+
cellDataType: 'number'
|
|
32244
|
+
}, {
|
|
32245
|
+
field: 'planningAdvice',
|
|
32246
|
+
headerName: 'backoffice.idmEnricher.renaming.label.planningAdvice',
|
|
32247
|
+
editable: false,
|
|
32248
|
+
cellDataType: 'translated',
|
|
32249
|
+
isDictionary: true
|
|
32250
|
+
}, {
|
|
32251
|
+
field: 'groupTitleDb',
|
|
32252
|
+
editable: false,
|
|
32253
|
+
cellDataType: 'translated',
|
|
32254
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.groupTitleDb',
|
|
32255
|
+
isDictionary: true
|
|
32256
|
+
}, {
|
|
32257
|
+
field: 'salesNumber',
|
|
32258
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
|
|
32259
|
+
editable: false
|
|
32260
|
+
}]
|
|
32261
|
+
},
|
|
32262
|
+
option: {
|
|
32263
|
+
colDef: [{
|
|
32264
|
+
field: 'optionKey',
|
|
32265
|
+
headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
|
|
32266
|
+
editable: false
|
|
32267
|
+
}, {
|
|
32268
|
+
headerName: 'backoffice.idmEnricher.renaming.label.optionText',
|
|
32269
|
+
field: 'optionText',
|
|
32270
|
+
editable: false,
|
|
32271
|
+
cellDataType: 'translated',
|
|
32272
|
+
isDictionary: true
|
|
32273
|
+
}, {
|
|
32274
|
+
field: 'sequenceNo',
|
|
32275
|
+
headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
|
|
32276
|
+
editable: false,
|
|
32277
|
+
cellDataType: 'number'
|
|
32278
|
+
}, {
|
|
32279
|
+
headerName: 'backoffice.idmEnricher.renaming.label.optionCommentText',
|
|
32280
|
+
field: 'optionCommentText',
|
|
32281
|
+
editable: false,
|
|
32282
|
+
cellDataType: 'translated',
|
|
32283
|
+
isDictionary: true
|
|
32284
|
+
}, {
|
|
32285
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.optionFreeText',
|
|
32286
|
+
field: 'optionFreeText',
|
|
32287
|
+
editable: false
|
|
32288
|
+
}, {
|
|
32289
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.validFrom',
|
|
32290
|
+
field: 'validFromDate',
|
|
32291
|
+
cellDataType: 'dateString',
|
|
32292
|
+
editable: false
|
|
32293
|
+
}, {
|
|
32294
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.validUntil',
|
|
32295
|
+
field: 'validUntilDate',
|
|
32296
|
+
cellDataType: 'dateString',
|
|
32297
|
+
editable: false
|
|
32298
|
+
}, {
|
|
32299
|
+
field: 'materialId',
|
|
32300
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.materialId',
|
|
32301
|
+
editable: false
|
|
32302
|
+
}, {
|
|
32303
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.materialNo',
|
|
32304
|
+
field: 'materialNo',
|
|
32305
|
+
editable: false,
|
|
32306
|
+
cellDataType: 'number'
|
|
32307
|
+
}, {
|
|
32308
|
+
field: 'materialColorR',
|
|
32309
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.materialColorR',
|
|
32310
|
+
editable: false,
|
|
32311
|
+
cellDataType: 'number'
|
|
32312
|
+
}, {
|
|
32313
|
+
field: 'materialColorG',
|
|
32314
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.materialColorG',
|
|
32315
|
+
editable: false,
|
|
32316
|
+
cellDataType: 'number'
|
|
32317
|
+
}, {
|
|
32318
|
+
field: 'materialColorB',
|
|
32319
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.materialColorB',
|
|
32320
|
+
editable: false,
|
|
32321
|
+
cellDataType: 'number'
|
|
32322
|
+
}, {
|
|
32323
|
+
field: 'measureId',
|
|
32324
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.measuerId',
|
|
32325
|
+
editable: false
|
|
32326
|
+
}, {
|
|
32327
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.measureNo',
|
|
32328
|
+
field: 'measureNo',
|
|
32329
|
+
editable: false,
|
|
32330
|
+
cellDataType: 'number'
|
|
32331
|
+
}, {
|
|
32332
|
+
field: 'measureValue',
|
|
32333
|
+
headerName: 'backoffice.idmEnricher.exclusivity.label.measureValue',
|
|
32334
|
+
editable: false,
|
|
32335
|
+
cellDataType: 'number'
|
|
32336
|
+
}, {
|
|
32337
|
+
field: 'measureUnit',
|
|
32338
|
+
headerName: 'backoffice.idmEnricher.renaming.label.measureUnit',
|
|
32339
|
+
editable: false
|
|
32340
|
+
}]
|
|
32341
|
+
}
|
|
32342
|
+
};
|
|
32343
|
+
}
|
|
31994
32344
|
|
|
32345
|
+
var ExclusivitySerie = function ExclusivitySerie() {
|
|
32346
|
+
var _useTranslation = useTranslation(),
|
|
32347
|
+
t = _useTranslation.t,
|
|
32348
|
+
i18n = _useTranslation.i18n;
|
|
32349
|
+
var config = useMemo(function () {
|
|
32350
|
+
return getConfig(t);
|
|
32351
|
+
}, [i18n.language]);
|
|
32352
|
+
return /*#__PURE__*/jsx(ExclusivityTable, {
|
|
32353
|
+
type: "eserie",
|
|
32354
|
+
config: config['serie']
|
|
32355
|
+
});
|
|
32356
|
+
};
|
|
31995
32357
|
var ExclusivityFeature = function ExclusivityFeature() {
|
|
32358
|
+
var _useTranslation2 = useTranslation(),
|
|
32359
|
+
t = _useTranslation2.t,
|
|
32360
|
+
i18n = _useTranslation2.i18n;
|
|
32361
|
+
var config = useMemo(function () {
|
|
32362
|
+
return getConfig(t);
|
|
32363
|
+
}, [i18n.language]);
|
|
31996
32364
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
|
31997
32365
|
type: "efeature",
|
|
31998
32366
|
config: config['feature']
|
|
31999
32367
|
});
|
|
32000
32368
|
};
|
|
32369
|
+
var ExclusivityExclusivityDetailInfo = function ExclusivityExclusivityDetailInfo() {
|
|
32370
|
+
var _useTranslation3 = useTranslation(),
|
|
32371
|
+
t = _useTranslation3.t,
|
|
32372
|
+
i18n = _useTranslation3.i18n;
|
|
32373
|
+
var config = useMemo(function () {
|
|
32374
|
+
return getConfig(t);
|
|
32375
|
+
}, [i18n.language]);
|
|
32376
|
+
return /*#__PURE__*/jsx(ExclusivityTable, {
|
|
32377
|
+
type: "edetailInfo",
|
|
32378
|
+
config: config['detailInfo']
|
|
32379
|
+
});
|
|
32380
|
+
};
|
|
32001
32381
|
var ExclusivitySerieItems = function ExclusivitySerieItems() {
|
|
32382
|
+
var _useTranslation4 = useTranslation(),
|
|
32383
|
+
t = _useTranslation4.t,
|
|
32384
|
+
i18n = _useTranslation4.i18n;
|
|
32385
|
+
var config = useMemo(function () {
|
|
32386
|
+
return getConfig(t);
|
|
32387
|
+
}, [i18n.language]);
|
|
32002
32388
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
|
32003
32389
|
type: "eitem",
|
|
32004
32390
|
config: config['item']
|
|
32005
32391
|
});
|
|
32006
32392
|
};
|
|
32007
32393
|
var ExclusivityFeatureOption = function ExclusivityFeatureOption() {
|
|
32394
|
+
var _useTranslation5 = useTranslation(),
|
|
32395
|
+
t = _useTranslation5.t,
|
|
32396
|
+
i18n = _useTranslation5.i18n;
|
|
32397
|
+
var config = useMemo(function () {
|
|
32398
|
+
return getConfig(t);
|
|
32399
|
+
}, [i18n.language]);
|
|
32008
32400
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
|
32009
32401
|
type: "eoption",
|
|
32010
32402
|
config: config['option']
|
|
32011
32403
|
});
|
|
32012
32404
|
};
|
|
32013
32405
|
var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
32014
|
-
var _selectedSerie$series;
|
|
32015
32406
|
var type = _ref.type,
|
|
32016
32407
|
config = _ref.config;
|
|
32017
|
-
var
|
|
32018
|
-
t =
|
|
32408
|
+
var _useTranslation6 = useTranslation(),
|
|
32409
|
+
t = _useTranslation6.t;
|
|
32019
32410
|
var _React$useState = React.useState(),
|
|
32020
32411
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
32021
32412
|
selectedSerie = _React$useState2[0],
|
|
@@ -32028,37 +32419,41 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
|
32028
32419
|
packageId = _useModule.packageId,
|
|
32029
32420
|
updateNavigation = _useModule.updateNavigation,
|
|
32030
32421
|
apiConfig = _useModule.apiConfig,
|
|
32031
|
-
organizationId = _useModule.organizationId
|
|
32032
|
-
|
|
32422
|
+
organizationId = _useModule.organizationId,
|
|
32423
|
+
selectedPackage = _useModule.selectedPackage;
|
|
32424
|
+
var apiInterface = useMemo(function () {
|
|
32425
|
+
var patchId = '${_id}';
|
|
32426
|
+
if (type === 'eitem') patchId = '${typeNo}';
|
|
32427
|
+
if (type === 'eoption') patchId = '${optionKey}';
|
|
32428
|
+
var subType = 'features';
|
|
32429
|
+
if (type === 'eserie' || type === 'eitem') subType = 'series';
|
|
32430
|
+
if (type === 'edetailInfo') subType = 'detailInfos';
|
|
32431
|
+
var listType = type === 'eitem' ? 'items' : 'options';
|
|
32033
32432
|
return {
|
|
32433
|
+
read: !['eitem', 'eoption'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
|
|
32434
|
+
update: !['eitem', 'eoption'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
|
|
32435
|
+
};
|
|
32436
|
+
}, [type]);
|
|
32437
|
+
var oldDataRef = useRef();
|
|
32438
|
+
var applicationData = useMemo(function () {
|
|
32439
|
+
if (type === 'eitem' && !selectedSerie) {
|
|
32440
|
+
return oldDataRef.current;
|
|
32441
|
+
}
|
|
32442
|
+
if (type === 'eoption' && !selectedFeature) {
|
|
32443
|
+
return oldDataRef.current;
|
|
32444
|
+
}
|
|
32445
|
+
var newData = {
|
|
32034
32446
|
type: type,
|
|
32035
32447
|
packageId: packageId,
|
|
32036
|
-
organizationId: organizationId
|
|
32448
|
+
organizationId: organizationId,
|
|
32449
|
+
subTypeId: type === 'eitem' ? selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id : selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id
|
|
32037
32450
|
};
|
|
32038
|
-
|
|
32451
|
+
oldDataRef.current = newData;
|
|
32452
|
+
return newData;
|
|
32453
|
+
}, [type, packageId, organizationId, selectedSerie, selectedFeature]);
|
|
32039
32454
|
var showTable = useMemo(function () {
|
|
32040
|
-
return
|
|
32041
|
-
}, [type,
|
|
32042
|
-
var patchId = useMemo(function () {
|
|
32043
|
-
if (type === 'eitem' && selectedSerie) return '${typeNo}';
|
|
32044
|
-
if (type === 'eoption' && selectedFeature) return '${optionKey}';
|
|
32045
|
-
return '${_id}';
|
|
32046
|
-
}, [type, selectedSerie, selectedFeature]);
|
|
32047
|
-
var subType = useMemo(function () {
|
|
32048
|
-
return type === 'eitem' ? 'series' : 'features';
|
|
32049
|
-
}, [type]);
|
|
32050
|
-
var listType = useMemo(function () {
|
|
32051
|
-
return type === 'eitem' ? 'items' : 'options';
|
|
32052
|
-
}, [type]);
|
|
32053
|
-
var subTypeId = useMemo(function () {
|
|
32054
|
-
return type === 'eitem' ? selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id : selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id;
|
|
32055
|
-
}, [type, selectedSerie, selectedFeature]);
|
|
32056
|
-
var apiInterface = useMemo(function () {
|
|
32057
|
-
return {
|
|
32058
|
-
read: !selectedSerie && !selectedFeature ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + subTypeId + '/' + listType,
|
|
32059
|
-
update: !selectedSerie && !selectedFeature ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + subTypeId + '/' + listType + '/' + patchId
|
|
32060
|
-
};
|
|
32061
|
-
}, [selectedSerie, selectedFeature, subType, subTypeId, listType, patchId]);
|
|
32455
|
+
return selectedPackage && (!['eitem', 'eoption'].includes(type) || type === 'eitem' && applicationData || type === 'eoption' && applicationData);
|
|
32456
|
+
}, [type, applicationData, selectedPackage]);
|
|
32062
32457
|
var configuration = useMemo(function () {
|
|
32063
32458
|
return {
|
|
32064
32459
|
type: 'dotnetSSM',
|
|
@@ -32098,9 +32493,9 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
|
32098
32493
|
},
|
|
32099
32494
|
children: [/*#__PURE__*/jsx(PackageSelector, {
|
|
32100
32495
|
organizationId: organizationId,
|
|
32101
|
-
|
|
32102
|
-
setSelectedPackage: function setSelectedPackage(
|
|
32103
|
-
return updateNavigation(
|
|
32496
|
+
packageId: packageId,
|
|
32497
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
32498
|
+
return updateNavigation(packageId);
|
|
32104
32499
|
},
|
|
32105
32500
|
enricherService: apiConfig.enricherService
|
|
32106
32501
|
}), type === 'eitem' && /*#__PURE__*/jsx(SeriesSelector$1, {
|
|
@@ -32119,7 +32514,7 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
|
32119
32514
|
})]
|
|
32120
32515
|
})
|
|
32121
32516
|
}), showTable && /*#__PURE__*/jsx(Spreadsheet, {
|
|
32122
|
-
gridId: 'crud-grid_exclusivity_' + type
|
|
32517
|
+
gridId: 'crud-grid_exclusivity_' + type,
|
|
32123
32518
|
applicationData: applicationData,
|
|
32124
32519
|
configuration: configuration
|
|
32125
32520
|
})]
|
|
@@ -32133,7 +32528,8 @@ function TableTabGroups () {
|
|
|
32133
32528
|
packageId = _useModule.packageId,
|
|
32134
32529
|
organizationId = _useModule.organizationId,
|
|
32135
32530
|
updateNavigation = _useModule.updateNavigation,
|
|
32136
|
-
apiConfig = _useModule.apiConfig
|
|
32531
|
+
apiConfig = _useModule.apiConfig,
|
|
32532
|
+
selectedPackage = _useModule.selectedPackage;
|
|
32137
32533
|
var applicationData = useMemo(function () {
|
|
32138
32534
|
return {
|
|
32139
32535
|
packageId: packageId,
|
|
@@ -32174,28 +32570,7 @@ function TableTabGroups () {
|
|
|
32174
32570
|
},
|
|
32175
32571
|
additionalFields: ['featureNosDisplayTexts'],
|
|
32176
32572
|
isDictionary: true
|
|
32177
|
-
}, {
|
|
32178
|
-
headerName: 'Name',
|
|
32179
|
-
marryChildren: true,
|
|
32180
|
-
required: true,
|
|
32181
|
-
children: [{
|
|
32182
|
-
field: 'name.DE',
|
|
32183
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
32184
|
-
isDictionary: true
|
|
32185
|
-
}, {
|
|
32186
|
-
field: 'name.EN',
|
|
32187
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
32188
|
-
isDictionary: true
|
|
32189
|
-
}, {
|
|
32190
|
-
field: 'name.FR',
|
|
32191
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
32192
|
-
isDictionary: true
|
|
32193
|
-
}, {
|
|
32194
|
-
field: 'name.IT',
|
|
32195
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
32196
|
-
isDictionary: true
|
|
32197
|
-
}]
|
|
32198
|
-
}, {
|
|
32573
|
+
}, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', (selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], true), {
|
|
32199
32574
|
field: 'organizationId',
|
|
32200
32575
|
cellDataType: 'string',
|
|
32201
32576
|
editable: false,
|
|
@@ -32226,7 +32601,7 @@ function TableTabGroups () {
|
|
|
32226
32601
|
cellDataType: 'objectId'
|
|
32227
32602
|
}]
|
|
32228
32603
|
};
|
|
32229
|
-
}, [apiInterface]);
|
|
32604
|
+
}, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
|
|
32230
32605
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
32231
32606
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
32232
32607
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -32236,15 +32611,15 @@ function TableTabGroups () {
|
|
|
32236
32611
|
},
|
|
32237
32612
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
32238
32613
|
organizationId: organizationId,
|
|
32239
|
-
|
|
32240
|
-
setSelectedPackage: function setSelectedPackage(
|
|
32241
|
-
return updateNavigation(
|
|
32614
|
+
packageId: packageId,
|
|
32615
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
32616
|
+
return updateNavigation(packageId);
|
|
32242
32617
|
},
|
|
32243
32618
|
enricherService: apiConfig.enricherService
|
|
32244
32619
|
})
|
|
32245
32620
|
})]
|
|
32246
32621
|
})
|
|
32247
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
32622
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
32248
32623
|
gridId: 'crud-grid_tabgroups',
|
|
32249
32624
|
applicationData: applicationData,
|
|
32250
32625
|
configuration: configuration
|
|
@@ -32259,17 +32634,18 @@ function TablePartlistPos () {
|
|
|
32259
32634
|
packageId = _useModule.packageId,
|
|
32260
32635
|
organizationId = _useModule.organizationId,
|
|
32261
32636
|
updateNavigation = _useModule.updateNavigation,
|
|
32262
|
-
apiConfig = _useModule.apiConfig
|
|
32637
|
+
apiConfig = _useModule.apiConfig,
|
|
32638
|
+
selectedPackage = _useModule.selectedPackage;
|
|
32263
32639
|
var posInvisibility = useMemo(function () {
|
|
32264
32640
|
return [{
|
|
32265
32641
|
name: t('backoffice.idmCatalogEditor.partlistpos.label.pi0'),
|
|
32266
|
-
value:
|
|
32642
|
+
value: 0
|
|
32267
32643
|
}, {
|
|
32268
32644
|
name: t('backoffice.idmCatalogEditor.partlistpos.label.pi1'),
|
|
32269
|
-
value:
|
|
32645
|
+
value: 1
|
|
32270
32646
|
}, {
|
|
32271
32647
|
name: t('backoffice.idmCatalogEditor.partlistpos.label.pi2'),
|
|
32272
|
-
value:
|
|
32648
|
+
value: 2
|
|
32273
32649
|
}];
|
|
32274
32650
|
}, [t]);
|
|
32275
32651
|
var applicationData = useMemo(function () {
|
|
@@ -32280,7 +32656,6 @@ function TablePartlistPos () {
|
|
|
32280
32656
|
}, [packageId, organizationId]);
|
|
32281
32657
|
var apiInterface = useMemo(function () {
|
|
32282
32658
|
return {
|
|
32283
|
-
//TODO: Es gibt globale Tabgroups, die vordefiniert sind und pro Enricher Paket nochmals angepasst werden können -endpoint anpassen?
|
|
32284
32659
|
read: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
|
|
32285
32660
|
create: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
|
|
32286
32661
|
restore: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
|
|
@@ -32295,103 +32670,62 @@ function TablePartlistPos () {
|
|
|
32295
32670
|
dateFormat: 'LL',
|
|
32296
32671
|
floatingFilter: true,
|
|
32297
32672
|
colDef: [{
|
|
32673
|
+
headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
|
|
32674
|
+
field: 'retailPrefix',
|
|
32675
|
+
editable: true,
|
|
32676
|
+
pinned: 'left'
|
|
32677
|
+
}, {
|
|
32678
|
+
headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
|
|
32679
|
+
field: 'retailArtilceNumber',
|
|
32680
|
+
editable: true,
|
|
32681
|
+
pinned: 'left'
|
|
32682
|
+
}, {
|
|
32298
32683
|
headerName: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
|
|
32299
32684
|
field: 'partlistKey',
|
|
32300
32685
|
editable: false
|
|
32301
32686
|
}, {
|
|
32302
32687
|
headerName: 'backoffice.idmEnricher.partlistpos.label.itemRefSerieNo',
|
|
32303
32688
|
field: 'itemRefSerieNo',
|
|
32304
|
-
cellDataType: '
|
|
32305
|
-
editable: false
|
|
32306
|
-
}, {
|
|
32307
|
-
headerName: 'backoffice.idmEnricher.properties.partlistpos.itemRefSerieNoDisplayText',
|
|
32308
|
-
marryChildren: true,
|
|
32689
|
+
cellDataType: 'lookup',
|
|
32309
32690
|
editable: false,
|
|
32310
|
-
|
|
32311
|
-
|
|
32312
|
-
|
|
32313
|
-
|
|
32314
|
-
|
|
32315
|
-
},
|
|
32316
|
-
|
|
32317
|
-
|
|
32318
|
-
isDictionary: true,
|
|
32319
|
-
editable: false
|
|
32320
|
-
}, {
|
|
32321
|
-
field: 'itemRefSerieNoDisplayText.FR',
|
|
32322
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
32323
|
-
isDictionary: true,
|
|
32324
|
-
editable: false
|
|
32325
|
-
}, {
|
|
32326
|
-
field: 'itemRefSerieNoDisplayText.IT',
|
|
32327
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
32328
|
-
isDictionary: true,
|
|
32329
|
-
editable: false
|
|
32330
|
-
}]
|
|
32691
|
+
customParams: {
|
|
32692
|
+
nameField: 'itemRefSerieNoDisplayText',
|
|
32693
|
+
filterCellType: 'number',
|
|
32694
|
+
displayLabelTemplate: '${name} (${value})',
|
|
32695
|
+
translated: true
|
|
32696
|
+
},
|
|
32697
|
+
isDictionary: true,
|
|
32698
|
+
additionalFields: ['itemRefSerieNoDisplayText']
|
|
32331
32699
|
}, {
|
|
32332
32700
|
headerName: 'backoffice.idmEnricher.partlistpos.label.itemRefTypeNo',
|
|
32333
32701
|
field: 'itemRefTypeNo',
|
|
32334
|
-
editable: false
|
|
32335
|
-
}, {
|
|
32336
|
-
headerName: 'backoffice.idmEnricher.properties.partlistpos.itemRefTypeNoDisplayText',
|
|
32337
|
-
marryChildren: true,
|
|
32338
|
-
editable: false,
|
|
32339
|
-
children: [{
|
|
32340
|
-
field: 'itemRefTypeNoDisplayText.DE',
|
|
32341
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
32342
|
-
isDictionary: true,
|
|
32343
|
-
editable: false
|
|
32344
|
-
}, {
|
|
32345
|
-
field: 'itemRefTypeNoDisplayText.EN',
|
|
32346
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
32347
|
-
isDictionary: true,
|
|
32348
|
-
editable: false
|
|
32349
|
-
}, {
|
|
32350
|
-
field: 'itemRefTypeNoDisplayText.FR',
|
|
32351
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
32352
|
-
isDictionary: true,
|
|
32353
|
-
editable: false
|
|
32354
|
-
}, {
|
|
32355
|
-
field: 'itemRefTypeNoDisplayText.IT',
|
|
32356
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
32357
|
-
isDictionary: true,
|
|
32358
|
-
editable: false
|
|
32359
|
-
}]
|
|
32360
|
-
}, {
|
|
32361
|
-
headerName: 'backoffice.idmEnricher.partlistpos.label.decisionPosCount',
|
|
32362
|
-
field: 'posCountValue',
|
|
32363
|
-
cellDataType: 'number',
|
|
32364
|
-
editable: false
|
|
32365
|
-
}, {
|
|
32366
|
-
headerName: 'backoffice.idmEnricher.partlistpos.label.decisionPosCountDisplayText',
|
|
32367
|
-
marryChildren: true,
|
|
32368
32702
|
editable: false,
|
|
32369
|
-
|
|
32370
|
-
|
|
32371
|
-
|
|
32372
|
-
|
|
32373
|
-
|
|
32374
|
-
},
|
|
32375
|
-
|
|
32376
|
-
|
|
32377
|
-
|
|
32378
|
-
|
|
32379
|
-
|
|
32380
|
-
|
|
32381
|
-
|
|
32382
|
-
|
|
32383
|
-
|
|
32384
|
-
|
|
32385
|
-
|
|
32386
|
-
|
|
32387
|
-
|
|
32388
|
-
|
|
32389
|
-
|
|
32703
|
+
cellDataType: 'lookup',
|
|
32704
|
+
customParams: {
|
|
32705
|
+
nameField: 'itemRefTypeNoDisplayText',
|
|
32706
|
+
displayLabelTemplate: '${name} (${value})',
|
|
32707
|
+
translated: true
|
|
32708
|
+
},
|
|
32709
|
+
isDictionary: true,
|
|
32710
|
+
additionalFields: ['itemRefTypeNoDisplayText']
|
|
32711
|
+
}, {
|
|
32712
|
+
headerName: 'backoffice.idmEnricher.partlistpos.label.decisionPosCount',
|
|
32713
|
+
field: 'posCountValue',
|
|
32714
|
+
cellDataType: 'lookup',
|
|
32715
|
+
editable: false,
|
|
32716
|
+
customParams: {
|
|
32717
|
+
nameField: 'decisionPosCountDisplayText',
|
|
32718
|
+
filterCellType: 'number',
|
|
32719
|
+
displayLabelTemplate: '${name} (${value})',
|
|
32720
|
+
translated: true
|
|
32721
|
+
},
|
|
32722
|
+
isDictionary: true,
|
|
32723
|
+
additionalFields: ['decisionPosCountDisplayText']
|
|
32390
32724
|
}, {
|
|
32391
32725
|
field: 'decisions',
|
|
32392
32726
|
headerName: 'backoffice.idmEnricher.partlistpos.label.decisions',
|
|
32393
32727
|
cellDataType: 'lookup',
|
|
32394
|
-
editable:
|
|
32728
|
+
editable: false,
|
|
32395
32729
|
customParams: {
|
|
32396
32730
|
nameField: 'decisionRefsDisplayTexts',
|
|
32397
32731
|
filterCellType: 'number',
|
|
@@ -32415,14 +32749,6 @@ function TablePartlistPos () {
|
|
|
32415
32749
|
displayLabelTemplate: '${name} (${value})'
|
|
32416
32750
|
},
|
|
32417
32751
|
editable: false
|
|
32418
|
-
}, {
|
|
32419
|
-
headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
|
|
32420
|
-
field: 'retailPrefix',
|
|
32421
|
-
editable: true
|
|
32422
|
-
}, {
|
|
32423
|
-
headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
|
|
32424
|
-
field: 'retailArtilceNumber',
|
|
32425
|
-
editable: true
|
|
32426
32752
|
}, {
|
|
32427
32753
|
field: 'organizationId',
|
|
32428
32754
|
cellDataType: 'string',
|
|
@@ -32464,15 +32790,15 @@ function TablePartlistPos () {
|
|
|
32464
32790
|
},
|
|
32465
32791
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
32466
32792
|
organizationId: organizationId,
|
|
32467
|
-
|
|
32468
|
-
setSelectedPackage: function setSelectedPackage(
|
|
32469
|
-
return updateNavigation(
|
|
32793
|
+
packageId: packageId,
|
|
32794
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
32795
|
+
return updateNavigation(packageId);
|
|
32470
32796
|
},
|
|
32471
32797
|
enricherService: apiConfig.enricherService
|
|
32472
32798
|
})
|
|
32473
32799
|
})]
|
|
32474
32800
|
})
|
|
32475
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
32801
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
32476
32802
|
gridId: 'crud-grid_epartlistpos',
|
|
32477
32803
|
applicationData: applicationData,
|
|
32478
32804
|
configuration: configuration
|
|
@@ -33195,6 +33521,8 @@ function Prices (_ref) {
|
|
|
33195
33521
|
return onSave;
|
|
33196
33522
|
}()
|
|
33197
33523
|
},
|
|
33524
|
+
filter: false,
|
|
33525
|
+
sortable: false,
|
|
33198
33526
|
editable: false
|
|
33199
33527
|
}].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups === null || priceFeatureGroups === void 0 ? void 0 : priceFeatureGroups.map(function (priceFeatureGroup) {
|
|
33200
33528
|
var _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
|
|
@@ -33207,6 +33535,8 @@ function Prices (_ref) {
|
|
|
33207
33535
|
headerName: priceFeatureGroupItem,
|
|
33208
33536
|
field: "prices.".concat(priceFeatureGroupItem),
|
|
33209
33537
|
editable: true,
|
|
33538
|
+
filter: false,
|
|
33539
|
+
sortable: false,
|
|
33210
33540
|
isDictionary: true,
|
|
33211
33541
|
cellDataType: 'number',
|
|
33212
33542
|
headerTooltip: (_priceFeatureGroup$ke3 = priceFeatureGroup.keysDisplayTexts) === null || _priceFeatureGroup$ke3 === void 0 ? void 0 : _priceFeatureGroup$ke3[j],
|
|
@@ -33335,14 +33665,16 @@ function Prices (_ref) {
|
|
|
33335
33665
|
|
|
33336
33666
|
function TablePriceList () {
|
|
33337
33667
|
var _useTranslation = useTranslation(),
|
|
33338
|
-
t = _useTranslation.t
|
|
33668
|
+
t = _useTranslation.t,
|
|
33669
|
+
i18n = _useTranslation.i18n;
|
|
33339
33670
|
var root = useStore();
|
|
33340
33671
|
var spreadsheetRef = useRef(null);
|
|
33341
33672
|
var _useModule = useModule$1(['pricelists']),
|
|
33342
33673
|
packageId = _useModule.packageId,
|
|
33343
33674
|
organizationId = _useModule.organizationId,
|
|
33344
33675
|
updateNavigation = _useModule.updateNavigation,
|
|
33345
|
-
apiConfig = _useModule.apiConfig
|
|
33676
|
+
apiConfig = _useModule.apiConfig,
|
|
33677
|
+
selectedPackage = _useModule.selectedPackage;
|
|
33346
33678
|
var _React$useState = React.useState(),
|
|
33347
33679
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33348
33680
|
selectedPriceList = _React$useState2[0],
|
|
@@ -33459,9 +33791,10 @@ function TablePriceList () {
|
|
|
33459
33791
|
}, {
|
|
33460
33792
|
headerName: 'backoffice.idmEnricher.pricelists.label.priceFactor',
|
|
33461
33793
|
field: 'pricefactors',
|
|
33462
|
-
cellDataType: '
|
|
33794
|
+
cellDataType: 'number',
|
|
33463
33795
|
cellRenderer: PriceFactorCellRenderer,
|
|
33464
33796
|
editable: false,
|
|
33797
|
+
filter: false,
|
|
33465
33798
|
equals: function equals(a, b) {
|
|
33466
33799
|
return !!((a === null || a === void 0 ? void 0 : a.length) === (b === null || b === void 0 ? void 0 : b.length) && a !== null && a !== void 0 && a.every(function (value, index) {
|
|
33467
33800
|
return value === (b === null || b === void 0 ? void 0 : b[index]);
|
|
@@ -33484,7 +33817,11 @@ function TablePriceList () {
|
|
|
33484
33817
|
}, {
|
|
33485
33818
|
headerName: 'backoffice.idmEnricher.pricelists.label.currency',
|
|
33486
33819
|
field: 'currency',
|
|
33487
|
-
|
|
33820
|
+
cellDataType: 'enum',
|
|
33821
|
+
editable: true,
|
|
33822
|
+
customParams: {
|
|
33823
|
+
enumData: getCurrencyKey(t)
|
|
33824
|
+
}
|
|
33488
33825
|
}, {
|
|
33489
33826
|
headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
|
|
33490
33827
|
field: 'forPublishing',
|
|
@@ -33552,7 +33889,7 @@ function TablePriceList () {
|
|
|
33552
33889
|
hide: true
|
|
33553
33890
|
}]
|
|
33554
33891
|
};
|
|
33555
|
-
}, [apiInterface]);
|
|
33892
|
+
}, [apiInterface, i18n.language]);
|
|
33556
33893
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
33557
33894
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33558
33895
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -33562,17 +33899,17 @@ function TablePriceList () {
|
|
|
33562
33899
|
},
|
|
33563
33900
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
33564
33901
|
organizationId: organizationId,
|
|
33565
|
-
|
|
33566
|
-
setSelectedPackage: function setSelectedPackage(
|
|
33567
|
-
return updateNavigation(
|
|
33902
|
+
packageId: packageId,
|
|
33903
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
33904
|
+
return updateNavigation(packageId);
|
|
33568
33905
|
},
|
|
33569
33906
|
enricherService: apiConfig.enricherService
|
|
33570
33907
|
})
|
|
33571
33908
|
})]
|
|
33572
33909
|
})
|
|
33573
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33910
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
33574
33911
|
ref: spreadsheetRef,
|
|
33575
|
-
gridId: 'crud-
|
|
33912
|
+
gridId: 'crud-grid_epricelists',
|
|
33576
33913
|
applicationData: applicationData,
|
|
33577
33914
|
configuration: configuration,
|
|
33578
33915
|
hooks: hooks
|
|
@@ -33597,6 +33934,12 @@ function Content$3() {
|
|
|
33597
33934
|
index: true,
|
|
33598
33935
|
path: "",
|
|
33599
33936
|
element: /*#__PURE__*/jsx(TablePackages, {})
|
|
33937
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33938
|
+
path: ":packageId/renaming/catalogs",
|
|
33939
|
+
element: /*#__PURE__*/jsx(RenamingCatalog, {})
|
|
33940
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33941
|
+
path: ":packageId/renaming/detailInfos",
|
|
33942
|
+
element: /*#__PURE__*/jsx(RenamingDetailInfo, {})
|
|
33600
33943
|
}), /*#__PURE__*/jsx(Route, {
|
|
33601
33944
|
path: ":packageId/renaming/features",
|
|
33602
33945
|
element: /*#__PURE__*/jsx(RenamingFeature, {})
|
|
@@ -33606,12 +33949,21 @@ function Content$3() {
|
|
|
33606
33949
|
}), /*#__PURE__*/jsx(Route, {
|
|
33607
33950
|
path: ":packageId/renaming/options",
|
|
33608
33951
|
element: /*#__PURE__*/jsx(RenamingOption, {})
|
|
33952
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33953
|
+
path: ":packageId/renaming/series",
|
|
33954
|
+
element: /*#__PURE__*/jsx(RenamingSerie, {})
|
|
33609
33955
|
}), /*#__PURE__*/jsx(Route, {
|
|
33610
33956
|
path: ":packageId/tabgroups",
|
|
33611
33957
|
element: /*#__PURE__*/jsx(TableTabGroups, {})
|
|
33958
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33959
|
+
path: ":packageId/exclusivity/eserie",
|
|
33960
|
+
element: /*#__PURE__*/jsx(ExclusivitySerie, {})
|
|
33612
33961
|
}), /*#__PURE__*/jsx(Route, {
|
|
33613
33962
|
path: ":packageId/exclusivity/eitem",
|
|
33614
33963
|
element: /*#__PURE__*/jsx(ExclusivitySerieItems, {})
|
|
33964
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33965
|
+
path: ":packageId/exclusivity/edetailInfo",
|
|
33966
|
+
element: /*#__PURE__*/jsx(ExclusivityExclusivityDetailInfo, {})
|
|
33615
33967
|
}), /*#__PURE__*/jsx(Route, {
|
|
33616
33968
|
path: ":packageId/exclusivity/efeature",
|
|
33617
33969
|
element: /*#__PURE__*/jsx(ExclusivityFeature, {})
|
|
@@ -33897,7 +34249,10 @@ function OpenModalButton (_ref) {
|
|
|
33897
34249
|
function TableCatalogs () {
|
|
33898
34250
|
var root = useStore();
|
|
33899
34251
|
var _useTranslation = useTranslation(),
|
|
33900
|
-
t = _useTranslation.t
|
|
34252
|
+
t = _useTranslation.t,
|
|
34253
|
+
i18n = _useTranslation.i18n;
|
|
34254
|
+
var _useDivaCore = useDivaCore(),
|
|
34255
|
+
userHasPermission = _useDivaCore.actions.userHasPermission;
|
|
33901
34256
|
var _useNavigation = useNavigation(),
|
|
33902
34257
|
organizationId = _useNavigation.organizationId,
|
|
33903
34258
|
apiConfig = _useNavigation.apiConfig,
|
|
@@ -33911,19 +34266,35 @@ function TableCatalogs () {
|
|
|
33911
34266
|
fileDownloadError = _React$useState4[0],
|
|
33912
34267
|
setFileDownloadError = _React$useState4[1];
|
|
33913
34268
|
var spreadsheetRef = useRef(null);
|
|
34269
|
+
var _React$useState5 = React.useState(false),
|
|
34270
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
34271
|
+
showApi2 = _React$useState6[0],
|
|
34272
|
+
setShowApi2 = _React$useState6[1];
|
|
33914
34273
|
var applicationData = useMemo(function () {
|
|
33915
34274
|
return {
|
|
33916
34275
|
organizationId: organizationId
|
|
33917
34276
|
};
|
|
33918
34277
|
}, [organizationId]);
|
|
33919
34278
|
var preFilter = useMemo(function () {
|
|
33920
|
-
|
|
34279
|
+
var orgPreFilter = {
|
|
33921
34280
|
colId: 'organizationId',
|
|
33922
34281
|
filterType: 'text',
|
|
33923
34282
|
type: 'equals',
|
|
33924
34283
|
filter: organizationId
|
|
33925
34284
|
};
|
|
33926
|
-
|
|
34285
|
+
if (!showApi2) {
|
|
34286
|
+
return {
|
|
34287
|
+
filterType: 'join',
|
|
34288
|
+
type: 'AND',
|
|
34289
|
+
conditions: [orgPreFilter, {
|
|
34290
|
+
colId: 'isApi',
|
|
34291
|
+
filterType: 'set',
|
|
34292
|
+
values: ['false']
|
|
34293
|
+
}]
|
|
34294
|
+
};
|
|
34295
|
+
}
|
|
34296
|
+
return orgPreFilter;
|
|
34297
|
+
}, [organizationId, showApi2]);
|
|
33927
34298
|
var rowActions = useMemo(function () {
|
|
33928
34299
|
return [{
|
|
33929
34300
|
icon: /*#__PURE__*/jsx(EditOutlined, {}),
|
|
@@ -34015,13 +34386,6 @@ function TableCatalogs () {
|
|
|
34015
34386
|
name: t('backoffice.idmCatalog.general.label.cm.F'),
|
|
34016
34387
|
value: 'F'
|
|
34017
34388
|
}];
|
|
34018
|
-
var formOfAddress = [{
|
|
34019
|
-
name: t('backoffice.idmCatalog.general.label.foa.f1'),
|
|
34020
|
-
value: 1
|
|
34021
|
-
}, {
|
|
34022
|
-
name: t('backoffice.idmCatalog.general.label.foa.f2'),
|
|
34023
|
-
value: 2
|
|
34024
|
-
}];
|
|
34025
34389
|
var priceDependent = [{
|
|
34026
34390
|
name: t('backoffice.idmCatalog.general.label.priceDependent.p0'),
|
|
34027
34391
|
value: false
|
|
@@ -34072,7 +34436,12 @@ function TableCatalogs () {
|
|
|
34072
34436
|
},
|
|
34073
34437
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
|
34074
34438
|
floatingFilter: true,
|
|
34075
|
-
colDef: [{
|
|
34439
|
+
colDef: [].concat(_toConsumableArray(showApi2 ? [{
|
|
34440
|
+
headerName: 'backoffice.idmCatalog.catalogs.label.isApi',
|
|
34441
|
+
field: 'isApi',
|
|
34442
|
+
cellDataType: 'boolean',
|
|
34443
|
+
editable: false
|
|
34444
|
+
}] : []), [{
|
|
34076
34445
|
headerName: 'backoffice.idmCatalog.packages.label.name',
|
|
34077
34446
|
field: 'name',
|
|
34078
34447
|
required: true
|
|
@@ -34150,14 +34519,19 @@ function TableCatalogs () {
|
|
|
34150
34519
|
editable: true,
|
|
34151
34520
|
required: true,
|
|
34152
34521
|
customParams: {
|
|
34153
|
-
enumData:
|
|
34522
|
+
enumData: getLanguageKey(t),
|
|
34154
34523
|
multiple: true
|
|
34155
34524
|
},
|
|
34156
34525
|
defaultValue: ['DE']
|
|
34157
34526
|
}, {
|
|
34158
34527
|
headerName: 'backoffice.idmCatalog.general.label.currencyKey',
|
|
34159
34528
|
field: 'currencyKey',
|
|
34529
|
+
cellDataType: 'enum',
|
|
34530
|
+
editable: true,
|
|
34160
34531
|
required: true,
|
|
34532
|
+
customParams: {
|
|
34533
|
+
enumData: getCurrencyKey(t)
|
|
34534
|
+
},
|
|
34161
34535
|
defaultValue: 'EUR'
|
|
34162
34536
|
}, {
|
|
34163
34537
|
headerName: 'backoffice.idmCatalog.general.label.fileId',
|
|
@@ -34210,7 +34584,7 @@ function TableCatalogs () {
|
|
|
34210
34584
|
editable: true,
|
|
34211
34585
|
required: true,
|
|
34212
34586
|
customParams: {
|
|
34213
|
-
enumData:
|
|
34587
|
+
enumData: getLanguageKey(t),
|
|
34214
34588
|
multiple: false
|
|
34215
34589
|
},
|
|
34216
34590
|
defaultValue: 'DE'
|
|
@@ -34239,8 +34613,13 @@ function TableCatalogs () {
|
|
|
34239
34613
|
children: [{
|
|
34240
34614
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
34241
34615
|
field: 'isoCountryId',
|
|
34616
|
+
cellDataType: 'enum',
|
|
34617
|
+
editable: true,
|
|
34242
34618
|
required: true,
|
|
34243
|
-
defaultValue: 'DE'
|
|
34619
|
+
defaultValue: 'DE',
|
|
34620
|
+
customParams: {
|
|
34621
|
+
enumData: getCountryKey(t)
|
|
34622
|
+
}
|
|
34244
34623
|
}, {
|
|
34245
34624
|
field: 'glnNo',
|
|
34246
34625
|
headerName: 'backoffice.idmCatalog.general.label.glnNo',
|
|
@@ -34320,7 +34699,7 @@ function TableCatalogs () {
|
|
|
34320
34699
|
field: 'formOfAddress1',
|
|
34321
34700
|
cellDataType: 'enum',
|
|
34322
34701
|
customParams: {
|
|
34323
|
-
enumData:
|
|
34702
|
+
enumData: getFormOfAddressKey(t),
|
|
34324
34703
|
displayLabelTemplate: '${name} (${value})'
|
|
34325
34704
|
},
|
|
34326
34705
|
required: true
|
|
@@ -34351,7 +34730,12 @@ function TableCatalogs () {
|
|
|
34351
34730
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
34352
34731
|
field: 'isoCountryId1',
|
|
34353
34732
|
required: true,
|
|
34354
|
-
defaultValue: 'DE'
|
|
34733
|
+
defaultValue: 'DE',
|
|
34734
|
+
cellDataType: 'enum',
|
|
34735
|
+
editable: true,
|
|
34736
|
+
customParams: {
|
|
34737
|
+
enumData: getCountryKey(t)
|
|
34738
|
+
}
|
|
34355
34739
|
}]
|
|
34356
34740
|
}, {
|
|
34357
34741
|
headerName: 'backoffice.idmCatalog.general.label.contact2',
|
|
@@ -34369,7 +34753,7 @@ function TableCatalogs () {
|
|
|
34369
34753
|
field: 'formOfAddress2',
|
|
34370
34754
|
cellDataType: 'enum',
|
|
34371
34755
|
customParams: {
|
|
34372
|
-
enumData:
|
|
34756
|
+
enumData: getFormOfAddressKey(t),
|
|
34373
34757
|
displayLabelTemplate: '${name} (${value})'
|
|
34374
34758
|
}
|
|
34375
34759
|
}, {
|
|
@@ -34396,7 +34780,12 @@ function TableCatalogs () {
|
|
|
34396
34780
|
field: 'city2'
|
|
34397
34781
|
}, {
|
|
34398
34782
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
34399
|
-
field: 'isoCountryId2'
|
|
34783
|
+
field: 'isoCountryId2',
|
|
34784
|
+
cellDataType: 'enum',
|
|
34785
|
+
editable: true,
|
|
34786
|
+
customParams: {
|
|
34787
|
+
enumData: getCountryKey(t)
|
|
34788
|
+
}
|
|
34400
34789
|
}]
|
|
34401
34790
|
}, {
|
|
34402
34791
|
headerName: 'backoffice.idmCatalog.general.label.priceSettings',
|
|
@@ -34534,20 +34923,32 @@ function TableCatalogs () {
|
|
|
34534
34923
|
lockVisible: true,
|
|
34535
34924
|
suppressColumnsToolPanel: true,
|
|
34536
34925
|
defaultValue: '${organizationId}'
|
|
34537
|
-
}]
|
|
34926
|
+
}])
|
|
34538
34927
|
};
|
|
34539
|
-
}, []);
|
|
34928
|
+
}, [i18n.language, showApi2]);
|
|
34540
34929
|
var handleLoadingModalOk = useCallback(function () {
|
|
34541
34930
|
setFileIsLoading(false);
|
|
34542
34931
|
}, []);
|
|
34543
34932
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
34544
34933
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
34545
34934
|
title: /*#__PURE__*/jsxs("div", {
|
|
34546
|
-
children: [t('backoffice.menu.items.label.IDMEditorTableCatalogs'), /*#__PURE__*/
|
|
34935
|
+
children: [t('backoffice.menu.items.label.IDMEditorTableCatalogs'), /*#__PURE__*/jsxs(Space$1, {
|
|
34547
34936
|
style: {
|
|
34548
34937
|
"float": 'right'
|
|
34549
34938
|
},
|
|
34550
|
-
children: /*#__PURE__*/jsx(
|
|
34939
|
+
children: [userHasPermission('idmeditor_api2') && /*#__PURE__*/jsx(Form$1.Item, {
|
|
34940
|
+
label: t('backoffice.idmCatalog.general.label.showApi2'),
|
|
34941
|
+
style: {
|
|
34942
|
+
marginRight: 10,
|
|
34943
|
+
marginBottom: 0
|
|
34944
|
+
},
|
|
34945
|
+
children: /*#__PURE__*/jsx(Switch, {
|
|
34946
|
+
checked: showApi2,
|
|
34947
|
+
onChange: function onChange(checked) {
|
|
34948
|
+
return setShowApi2(checked);
|
|
34949
|
+
}
|
|
34950
|
+
})
|
|
34951
|
+
}), /*#__PURE__*/jsx(OpenModalButton, {
|
|
34551
34952
|
title: "IDM Import",
|
|
34552
34953
|
type: "IDM_IMPORT",
|
|
34553
34954
|
idmService: apiConfig.idmService,
|
|
@@ -34556,7 +34957,7 @@ function TableCatalogs () {
|
|
|
34556
34957
|
var _spreadsheetRef$curre;
|
|
34557
34958
|
return spreadsheetRef === null || spreadsheetRef === void 0 || (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 ? void 0 : _spreadsheetRef$curre.refresh();
|
|
34558
34959
|
}
|
|
34559
|
-
})
|
|
34960
|
+
})]
|
|
34560
34961
|
})]
|
|
34561
34962
|
})
|
|
34562
34963
|
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
@@ -34575,15 +34976,20 @@ function TableCatalogs () {
|
|
|
34575
34976
|
}
|
|
34576
34977
|
|
|
34577
34978
|
function CatalogSelector(_ref) {
|
|
34578
|
-
var
|
|
34979
|
+
var catalogId = _ref.catalogId,
|
|
34579
34980
|
setSelectedCatalog = _ref.setSelectedCatalog,
|
|
34580
34981
|
idmService = _ref.idmService,
|
|
34581
34982
|
organizationId = _ref.organizationId;
|
|
34582
34983
|
var _useTranslation = useTranslation(),
|
|
34583
34984
|
t = _useTranslation.t;
|
|
34985
|
+
var value = useMemo(function () {
|
|
34986
|
+
return {
|
|
34987
|
+
_id: catalogId
|
|
34988
|
+
};
|
|
34989
|
+
}, [catalogId]);
|
|
34584
34990
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
|
34585
34991
|
apiInterface: {
|
|
34586
|
-
read: idmService + "/v3.0/catalogs?fields=name;_id&filter=organizationId==\"".concat(organizationId)
|
|
34992
|
+
read: idmService + "/v3.0/catalogs?fields=name;_id;isoLanguageIds&filter=organizationId==\"".concat(organizationId)
|
|
34587
34993
|
},
|
|
34588
34994
|
apiMapping: {
|
|
34589
34995
|
type: 'query',
|
|
@@ -34597,11 +35003,9 @@ function CatalogSelector(_ref) {
|
|
|
34597
35003
|
value: '${_id}'
|
|
34598
35004
|
},
|
|
34599
35005
|
title: t('backoffice.menu.items.label.IDMEditorTableCatalogs'),
|
|
34600
|
-
value:
|
|
34601
|
-
_id: selectedCatalog
|
|
34602
|
-
},
|
|
35006
|
+
value: value,
|
|
34603
35007
|
onChange: function onChange(value) {
|
|
34604
|
-
return setSelectedCatalog(value
|
|
35008
|
+
return setSelectedCatalog(value);
|
|
34605
35009
|
},
|
|
34606
35010
|
search: true,
|
|
34607
35011
|
style: {
|
|
@@ -34656,6 +35060,10 @@ function useModule (currentModules) {
|
|
|
34656
35060
|
var _useSearchParams = useSearchParams(),
|
|
34657
35061
|
_useSearchParams2 = _slicedToArray(_useSearchParams, 1),
|
|
34658
35062
|
searchParams = _useSearchParams2[0];
|
|
35063
|
+
var _useState = useState(),
|
|
35064
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
35065
|
+
selectedCatalog = _useState2[0],
|
|
35066
|
+
setSelectedCatalog = _useState2[1];
|
|
34659
35067
|
var menuItems = useMemo(function () {
|
|
34660
35068
|
return [{
|
|
34661
35069
|
key: 'series',
|
|
@@ -34762,7 +35170,8 @@ function useModule (currentModules) {
|
|
|
34762
35170
|
if (!catalogId) throw new Error('catalogId is required');
|
|
34763
35171
|
var updateNavigationModule = useCallback(function (currentCatalog) {
|
|
34764
35172
|
var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
|
|
34765
|
-
|
|
35173
|
+
setSelectedCatalog(currentCatalog);
|
|
35174
|
+
updateNavigation(currentCatalog._id, modules, '../');
|
|
34766
35175
|
}, [updateNavigation]);
|
|
34767
35176
|
useEffect(function () {
|
|
34768
35177
|
root.contentStore.updateAdditionalElement('catalogs', menuItems, currentModules);
|
|
@@ -34791,25 +35200,25 @@ function useModule (currentModules) {
|
|
|
34791
35200
|
updateNavigation: updateNavigationModule,
|
|
34792
35201
|
organizationId: organizationId,
|
|
34793
35202
|
apiConfig: apiConfig,
|
|
35203
|
+
selectedCatalog: selectedCatalog,
|
|
34794
35204
|
catalogId: catalogId
|
|
34795
35205
|
};
|
|
34796
35206
|
}
|
|
34797
35207
|
|
|
34798
35208
|
function Items(_ref) {
|
|
34799
35209
|
var organizationId = _ref.organizationId,
|
|
34800
|
-
|
|
35210
|
+
selectedCatalog = _ref.selectedCatalog,
|
|
34801
35211
|
apiConfig = _ref.apiConfig,
|
|
34802
35212
|
selectedSerie = _ref.selectedSerie;
|
|
34803
|
-
useStore();
|
|
34804
35213
|
var _useTranslation = useTranslation(),
|
|
34805
35214
|
t = _useTranslation.t;
|
|
34806
35215
|
var applicationData = useMemo(function () {
|
|
34807
35216
|
return {
|
|
34808
35217
|
organizationId: organizationId,
|
|
34809
|
-
catalogId:
|
|
35218
|
+
catalogId: selectedCatalog._id,
|
|
34810
35219
|
selectedSerie: selectedSerie
|
|
34811
35220
|
};
|
|
34812
|
-
}, [organizationId,
|
|
35221
|
+
}, [organizationId, selectedCatalog, selectedSerie]);
|
|
34813
35222
|
var configuration = useMemo(function () {
|
|
34814
35223
|
var itemIdentification = [{
|
|
34815
35224
|
name: t('backoffice.idmCatalogEditor.items.label.catalogArticle'),
|
|
@@ -34922,48 +35331,7 @@ function Items(_ref) {
|
|
|
34922
35331
|
cellDataType: 'number'
|
|
34923
35332
|
}, {
|
|
34924
35333
|
headerName: 'backoffice.idmCatalog.common.label.texts',
|
|
34925
|
-
children: [
|
|
34926
|
-
headerName: 'backoffice.idmCatalog.general.label.shortText',
|
|
34927
|
-
marryChildren: true,
|
|
34928
|
-
children: [{
|
|
34929
|
-
field: 'shortText.DE',
|
|
34930
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
34931
|
-
isDictionary: true,
|
|
34932
|
-
required: true
|
|
34933
|
-
}, {
|
|
34934
|
-
field: 'shortText.EN',
|
|
34935
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
34936
|
-
isDictionary: true
|
|
34937
|
-
}, {
|
|
34938
|
-
field: 'shortText.FR',
|
|
34939
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
34940
|
-
isDictionary: true
|
|
34941
|
-
}, {
|
|
34942
|
-
field: 'shortText.IT',
|
|
34943
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
34944
|
-
isDictionary: true
|
|
34945
|
-
}]
|
|
34946
|
-
}, {
|
|
34947
|
-
headerName: 'backoffice.idmCatalog.general.label.planningAdvice',
|
|
34948
|
-
marryChildren: true,
|
|
34949
|
-
children: [{
|
|
34950
|
-
field: 'planningAdvice.DE',
|
|
34951
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
34952
|
-
isDictionary: true
|
|
34953
|
-
}, {
|
|
34954
|
-
field: 'planningAdvice.EN',
|
|
34955
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
34956
|
-
isDictionary: true
|
|
34957
|
-
}, {
|
|
34958
|
-
field: 'planningAdvice.FR',
|
|
34959
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
34960
|
-
isDictionary: true
|
|
34961
|
-
}, {
|
|
34962
|
-
field: 'planningAdvice.IT',
|
|
34963
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
34964
|
-
isDictionary: true
|
|
34965
|
-
}]
|
|
34966
|
-
}]
|
|
35334
|
+
children: [createTranslatedColumnConfig('shortText', 'backoffice.idmCatalog.general.label.shortText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), createTranslatedColumnConfig('planningAdvice', 'backoffice.idmCatalog.general.label.planningAdvice', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'])]
|
|
34967
35335
|
}, {
|
|
34968
35336
|
headerName: 'backoffice.idmCatalog.items.label.articleNumbers',
|
|
34969
35337
|
children: [{
|
|
@@ -35171,7 +35539,7 @@ function Items(_ref) {
|
|
|
35171
35539
|
suppressColumnsToolPanel: true
|
|
35172
35540
|
}]
|
|
35173
35541
|
};
|
|
35174
|
-
}, []);
|
|
35542
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35175
35543
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
35176
35544
|
gridId: 'crud-grid_items',
|
|
35177
35545
|
applicationData: applicationData,
|
|
@@ -35183,6 +35551,7 @@ function TableItems () {
|
|
|
35183
35551
|
var _useTranslation = useTranslation(),
|
|
35184
35552
|
t = _useTranslation.t;
|
|
35185
35553
|
var _useModule = useModule(['items']),
|
|
35554
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35186
35555
|
catalogId = _useModule.catalogId,
|
|
35187
35556
|
updateNavigation = _useModule.updateNavigation,
|
|
35188
35557
|
apiConfig = _useModule.apiConfig,
|
|
@@ -35200,9 +35569,9 @@ function TableItems () {
|
|
|
35200
35569
|
},
|
|
35201
35570
|
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
35202
35571
|
organizationId: organizationId,
|
|
35203
|
-
|
|
35204
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
35205
|
-
return updateNavigation(
|
|
35572
|
+
catalogId: catalogId,
|
|
35573
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
35574
|
+
return updateNavigation(catalog);
|
|
35206
35575
|
},
|
|
35207
35576
|
idmService: apiConfig.idmService
|
|
35208
35577
|
}), /*#__PURE__*/jsx(SeriesSelector, {
|
|
@@ -35213,9 +35582,9 @@ function TableItems () {
|
|
|
35213
35582
|
})]
|
|
35214
35583
|
})]
|
|
35215
35584
|
})
|
|
35216
|
-
}), selectedSerie && /*#__PURE__*/jsx(Items, {
|
|
35585
|
+
}), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Items, {
|
|
35217
35586
|
organizationId: organizationId,
|
|
35218
|
-
|
|
35587
|
+
selectedCatalog: selectedCatalog,
|
|
35219
35588
|
selectedSerie: selectedSerie._id,
|
|
35220
35589
|
apiConfig: apiConfig
|
|
35221
35590
|
})]
|
|
@@ -35227,6 +35596,7 @@ function TableSeries () {
|
|
|
35227
35596
|
t = _useTranslation.t;
|
|
35228
35597
|
var root = useStore();
|
|
35229
35598
|
var _useModule = useModule(['series']),
|
|
35599
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35230
35600
|
catalogId = _useModule.catalogId,
|
|
35231
35601
|
organizationId = _useModule.organizationId,
|
|
35232
35602
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -35307,28 +35677,7 @@ function TableSeries () {
|
|
|
35307
35677
|
headerName: 'backoffice.idmCatalog.series.label.serieNo',
|
|
35308
35678
|
required: true,
|
|
35309
35679
|
cellDataType: 'number'
|
|
35310
|
-
}, {
|
|
35311
|
-
headerName: 'backoffice.idmCatalog.series.label.seriesName',
|
|
35312
|
-
marryChildren: true,
|
|
35313
|
-
children: [{
|
|
35314
|
-
field: 'seriesName.DE',
|
|
35315
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
35316
|
-
isDictionary: true,
|
|
35317
|
-
required: true
|
|
35318
|
-
}, {
|
|
35319
|
-
field: 'seriesName.EN',
|
|
35320
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
35321
|
-
isDictionary: true
|
|
35322
|
-
}, {
|
|
35323
|
-
field: 'seriesName.FR',
|
|
35324
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
35325
|
-
isDictionary: true
|
|
35326
|
-
}, {
|
|
35327
|
-
field: 'seriesName.IT',
|
|
35328
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
35329
|
-
isDictionary: true
|
|
35330
|
-
}]
|
|
35331
|
-
}, {
|
|
35680
|
+
}, createTranslatedColumnConfig('seriesName', 'backoffice.idmCatalog.series.label.seriesName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
35332
35681
|
field: 'sequenceNo',
|
|
35333
35682
|
headerName: 'backoffice.idmCatalog.series.label.sequenceNo',
|
|
35334
35683
|
required: true,
|
|
@@ -35342,27 +35691,7 @@ function TableSeries () {
|
|
|
35342
35691
|
enumData: purchaseRetailId,
|
|
35343
35692
|
displayLabelTemplate: '${name} (${value})'
|
|
35344
35693
|
}
|
|
35345
|
-
}, {
|
|
35346
|
-
headerName: 'backoffice.idmCatalog.series.label.seriesFullText',
|
|
35347
|
-
marryChildren: true,
|
|
35348
|
-
children: [{
|
|
35349
|
-
field: 'seriesFullText.DE',
|
|
35350
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
35351
|
-
isDictionary: true
|
|
35352
|
-
}, {
|
|
35353
|
-
field: 'seriesFullText.EN',
|
|
35354
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
35355
|
-
isDictionary: true
|
|
35356
|
-
}, {
|
|
35357
|
-
field: 'seriesFullText.FR',
|
|
35358
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
35359
|
-
isDictionary: true
|
|
35360
|
-
}, {
|
|
35361
|
-
field: 'seriesFullText.IT',
|
|
35362
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
35363
|
-
isDictionary: true
|
|
35364
|
-
}]
|
|
35365
|
-
}, {
|
|
35694
|
+
}, createTranslatedColumnConfig('seriesFullText', 'backoffice.idmCatalog.series.label.seriesFullText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE']), {
|
|
35366
35695
|
field: 'decisionRefs',
|
|
35367
35696
|
headerName: 'backoffice.idmCatalog.series.label.decisionRefs',
|
|
35368
35697
|
cellDataType: 'lookup',
|
|
@@ -35432,7 +35761,7 @@ function TableSeries () {
|
|
|
35432
35761
|
defaultValue: '${catalogId}'
|
|
35433
35762
|
}]
|
|
35434
35763
|
};
|
|
35435
|
-
}, []);
|
|
35764
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35436
35765
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
35437
35766
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
35438
35767
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -35442,7 +35771,7 @@ function TableSeries () {
|
|
|
35442
35771
|
},
|
|
35443
35772
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
35444
35773
|
organizationId: organizationId,
|
|
35445
|
-
|
|
35774
|
+
catalogId: catalogId,
|
|
35446
35775
|
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
35447
35776
|
return updateNavigation(id);
|
|
35448
35777
|
},
|
|
@@ -35450,96 +35779,52 @@ function TableSeries () {
|
|
|
35450
35779
|
})
|
|
35451
35780
|
})]
|
|
35452
35781
|
})
|
|
35453
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
35782
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
35454
35783
|
gridId: 'crud-grid_series',
|
|
35455
35784
|
applicationData: applicationData,
|
|
35456
35785
|
hooks: hooks,
|
|
35457
|
-
configuration: configuration
|
|
35458
|
-
})]
|
|
35459
|
-
});
|
|
35460
|
-
}
|
|
35461
|
-
|
|
35462
|
-
function Options(_ref) {
|
|
35463
|
-
var organizationId = _ref.organizationId,
|
|
35464
|
-
|
|
35465
|
-
selectedFeature = _ref.selectedFeature,
|
|
35466
|
-
apiConfig = _ref.apiConfig;
|
|
35467
|
-
var applicationData = useMemo(function () {
|
|
35468
|
-
return {
|
|
35469
|
-
organizationId: organizationId,
|
|
35470
|
-
catalogId:
|
|
35471
|
-
selectedFeature: selectedFeature
|
|
35472
|
-
};
|
|
35473
|
-
}, [organizationId,
|
|
35474
|
-
var configuration = useMemo(function () {
|
|
35475
|
-
return {
|
|
35476
|
-
type: 'dotnetSSM',
|
|
35477
|
-
idCol: 'optionKey',
|
|
35478
|
-
apiInterface: {
|
|
35479
|
-
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options',
|
|
35480
|
-
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options',
|
|
35481
|
-
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}',
|
|
35482
|
-
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}',
|
|
35483
|
-
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}'
|
|
35484
|
-
},
|
|
35485
|
-
dateFormat: 'LL',
|
|
35486
|
-
floatingFilter: true,
|
|
35487
|
-
colDef: [{
|
|
35488
|
-
field: 'optionKey',
|
|
35489
|
-
required: true,
|
|
35490
|
-
unique: true
|
|
35491
|
-
}, {
|
|
35492
|
-
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
35493
|
-
field: 'sequenceNo',
|
|
35494
|
-
cellDataType: 'number'
|
|
35495
|
-
}, {
|
|
35496
|
-
headerName: 'backoffice.idmCatalog.
|
|
35497
|
-
|
|
35498
|
-
|
|
35499
|
-
marryChildren: true,
|
|
35500
|
-
children: [{
|
|
35501
|
-
field: 'optionText.DE',
|
|
35502
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
35503
|
-
isDictionary: true,
|
|
35504
|
-
required: true
|
|
35505
|
-
}, {
|
|
35506
|
-
field: 'optionText.EN',
|
|
35507
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
35508
|
-
isDictionary: true
|
|
35509
|
-
}, {
|
|
35510
|
-
field: 'optionText.FR',
|
|
35511
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
35512
|
-
isDictionary: true
|
|
35513
|
-
}, {
|
|
35514
|
-
field: 'optionText.IT',
|
|
35515
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
35516
|
-
isDictionary: true
|
|
35517
|
-
}]
|
|
35518
|
-
}, {
|
|
35519
|
-
headerName: 'backoffice.idmCatalog.options.label.optionCommentText',
|
|
35520
|
-
marryChildren: true,
|
|
35521
|
-
children: [{
|
|
35522
|
-
field: 'optionCommentText.DE',
|
|
35523
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
35524
|
-
isDictionary: true
|
|
35525
|
-
}, {
|
|
35526
|
-
field: 'optionCommentText.EN',
|
|
35527
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
35528
|
-
isDictionary: true
|
|
35529
|
-
}, {
|
|
35530
|
-
field: 'optionCommentText.FR',
|
|
35531
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
35532
|
-
isDictionary: true
|
|
35533
|
-
}, {
|
|
35534
|
-
field: 'optionCommentText.IT',
|
|
35535
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
35536
|
-
isDictionary: true
|
|
35537
|
-
}]
|
|
35538
|
-
}, {
|
|
35539
|
-
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
|
35540
|
-
field: 'optionFreeText',
|
|
35541
|
-
cellDataType: 'boolean'
|
|
35542
|
-
}]
|
|
35786
|
+
configuration: configuration
|
|
35787
|
+
})]
|
|
35788
|
+
});
|
|
35789
|
+
}
|
|
35790
|
+
|
|
35791
|
+
function Options(_ref) {
|
|
35792
|
+
var organizationId = _ref.organizationId,
|
|
35793
|
+
selectedCatalog = _ref.selectedCatalog,
|
|
35794
|
+
selectedFeature = _ref.selectedFeature,
|
|
35795
|
+
apiConfig = _ref.apiConfig;
|
|
35796
|
+
var applicationData = useMemo(function () {
|
|
35797
|
+
return {
|
|
35798
|
+
organizationId: organizationId,
|
|
35799
|
+
catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
|
35800
|
+
selectedFeature: selectedFeature
|
|
35801
|
+
};
|
|
35802
|
+
}, [organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, selectedFeature]);
|
|
35803
|
+
var configuration = useMemo(function () {
|
|
35804
|
+
return {
|
|
35805
|
+
type: 'dotnetSSM',
|
|
35806
|
+
idCol: 'optionKey',
|
|
35807
|
+
apiInterface: {
|
|
35808
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options',
|
|
35809
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options',
|
|
35810
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}',
|
|
35811
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}',
|
|
35812
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}'
|
|
35813
|
+
},
|
|
35814
|
+
dateFormat: 'LL',
|
|
35815
|
+
floatingFilter: true,
|
|
35816
|
+
colDef: [{
|
|
35817
|
+
field: 'optionKey',
|
|
35818
|
+
required: true,
|
|
35819
|
+
unique: true
|
|
35820
|
+
}, {
|
|
35821
|
+
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
35822
|
+
field: 'sequenceNo',
|
|
35823
|
+
cellDataType: 'number'
|
|
35824
|
+
}, createTranslatedColumnConfig('optionText', 'backoffice.idmCatalog.options.label.optionText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), createTranslatedColumnConfig('optionCommentText', 'backoffice.idmCatalog.options.label.optionCommentText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE']), {
|
|
35825
|
+
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
|
35826
|
+
field: 'optionFreeText',
|
|
35827
|
+
cellDataType: 'boolean'
|
|
35543
35828
|
}, {
|
|
35544
35829
|
headerName: 'backoffice.idmCatalog.items.label.validation',
|
|
35545
35830
|
children: [{
|
|
@@ -35603,7 +35888,7 @@ function Options(_ref) {
|
|
|
35603
35888
|
editable: false
|
|
35604
35889
|
}]
|
|
35605
35890
|
};
|
|
35606
|
-
}, []);
|
|
35891
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35607
35892
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
35608
35893
|
gridId: 'crud-grid_options',
|
|
35609
35894
|
applicationData: applicationData,
|
|
@@ -35613,7 +35898,7 @@ function Options(_ref) {
|
|
|
35613
35898
|
|
|
35614
35899
|
function Features(_ref) {
|
|
35615
35900
|
var organizationId = _ref.organizationId,
|
|
35616
|
-
|
|
35901
|
+
selectedCatalog = _ref.selectedCatalog,
|
|
35617
35902
|
featureClassId = _ref.featureClassId,
|
|
35618
35903
|
apiConfig = _ref.apiConfig,
|
|
35619
35904
|
hooks = _ref.hooks;
|
|
@@ -35621,11 +35906,11 @@ function Features(_ref) {
|
|
|
35621
35906
|
t = _useTranslation.t;
|
|
35622
35907
|
var applicationData = useMemo(function () {
|
|
35623
35908
|
return {
|
|
35624
|
-
catalogId:
|
|
35909
|
+
catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
|
35625
35910
|
organizationId: organizationId,
|
|
35626
35911
|
featureClassId: featureClassId
|
|
35627
35912
|
};
|
|
35628
|
-
}, [
|
|
35913
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, featureClassId, organizationId]);
|
|
35629
35914
|
var apiInterface = useMemo(function () {
|
|
35630
35915
|
return featureClassId ? {
|
|
35631
35916
|
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
@@ -35696,28 +35981,7 @@ function Features(_ref) {
|
|
|
35696
35981
|
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
35697
35982
|
required: true,
|
|
35698
35983
|
unique: true
|
|
35699
|
-
}]), [{
|
|
35700
|
-
headerName: 'backoffice.idmCatalog.features.label.featureText',
|
|
35701
|
-
marryChildren: true,
|
|
35702
|
-
children: [{
|
|
35703
|
-
field: 'featureText.DE',
|
|
35704
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
35705
|
-
isDictionary: true,
|
|
35706
|
-
required: true
|
|
35707
|
-
}, {
|
|
35708
|
-
field: 'featureText.EN',
|
|
35709
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
35710
|
-
isDictionary: true
|
|
35711
|
-
}, {
|
|
35712
|
-
field: 'featureText.FR',
|
|
35713
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
35714
|
-
isDictionary: true
|
|
35715
|
-
}, {
|
|
35716
|
-
field: 'featureText.IT',
|
|
35717
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
35718
|
-
isDictionary: true
|
|
35719
|
-
}]
|
|
35720
|
-
}, {
|
|
35984
|
+
}]), [createTranslatedColumnConfig('featureText', 'backoffice.idmCatalog.features.label.featureText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
35721
35985
|
field: 'sequenceNo',
|
|
35722
35986
|
headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
|
|
35723
35987
|
required: true,
|
|
@@ -35784,7 +36048,7 @@ function Features(_ref) {
|
|
|
35784
36048
|
defaultValue: '${catalogId}'
|
|
35785
36049
|
}])
|
|
35786
36050
|
};
|
|
35787
|
-
}, [featureClassId, apiInterface]);
|
|
36051
|
+
}, [featureClassId, apiInterface, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35788
36052
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
35789
36053
|
gridId: 'crud-grid_features' + (featureClassId ? '_featureClass' : ''),
|
|
35790
36054
|
applicationData: applicationData,
|
|
@@ -35798,6 +36062,7 @@ function TableFeatures () {
|
|
|
35798
36062
|
t = _useTranslation.t;
|
|
35799
36063
|
var root = useStore();
|
|
35800
36064
|
var _useModule = useModule(['features']),
|
|
36065
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35801
36066
|
catalogId = _useModule.catalogId,
|
|
35802
36067
|
organizationId = _useModule.organizationId,
|
|
35803
36068
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -35852,17 +36117,17 @@ function TableFeatures () {
|
|
|
35852
36117
|
},
|
|
35853
36118
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
35854
36119
|
organizationId: organizationId,
|
|
35855
|
-
|
|
35856
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
35857
|
-
return updateNavigation(
|
|
36120
|
+
catalogId: catalogId,
|
|
36121
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36122
|
+
return updateNavigation(catalog);
|
|
35858
36123
|
},
|
|
35859
36124
|
idmService: apiConfig.idmService
|
|
35860
36125
|
})
|
|
35861
36126
|
})]
|
|
35862
36127
|
})
|
|
35863
|
-
}), /*#__PURE__*/jsx(Features, {
|
|
36128
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Features, {
|
|
35864
36129
|
organizationId: organizationId,
|
|
35865
|
-
|
|
36130
|
+
selectedCatalog: selectedCatalog,
|
|
35866
36131
|
apiConfig: apiConfig,
|
|
35867
36132
|
hooks: hooks
|
|
35868
36133
|
})]
|
|
@@ -35905,6 +36170,7 @@ function TableOptions () {
|
|
|
35905
36170
|
var _useTranslation = useTranslation(),
|
|
35906
36171
|
t = _useTranslation.t;
|
|
35907
36172
|
var _useModule = useModule(['options']),
|
|
36173
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35908
36174
|
catalogId = _useModule.catalogId,
|
|
35909
36175
|
updateNavigation = _useModule.updateNavigation,
|
|
35910
36176
|
apiConfig = _useModule.apiConfig,
|
|
@@ -35922,9 +36188,9 @@ function TableOptions () {
|
|
|
35922
36188
|
},
|
|
35923
36189
|
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
35924
36190
|
organizationId: organizationId,
|
|
35925
|
-
|
|
35926
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
35927
|
-
return updateNavigation(
|
|
36191
|
+
catalogId: catalogId,
|
|
36192
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36193
|
+
return updateNavigation(catalog);
|
|
35928
36194
|
},
|
|
35929
36195
|
idmService: apiConfig.idmService
|
|
35930
36196
|
}), /*#__PURE__*/jsx(FeatureSelector, {
|
|
@@ -35935,9 +36201,9 @@ function TableOptions () {
|
|
|
35935
36201
|
})]
|
|
35936
36202
|
})]
|
|
35937
36203
|
})
|
|
35938
|
-
}), selectedFeature && /*#__PURE__*/jsx(Options, {
|
|
36204
|
+
}), selectedFeature && selectedCatalog && /*#__PURE__*/jsx(Options, {
|
|
35939
36205
|
organizationId: organizationId,
|
|
35940
|
-
|
|
36206
|
+
selectedCatalog: selectedCatalog,
|
|
35941
36207
|
selectedFeature: selectedFeature._id,
|
|
35942
36208
|
apiConfig: apiConfig
|
|
35943
36209
|
})]
|
|
@@ -35949,6 +36215,7 @@ function TableFeatureClasses () {
|
|
|
35949
36215
|
t = _useTranslation.t;
|
|
35950
36216
|
var root = useStore();
|
|
35951
36217
|
var _useModule = useModule(['featureclasses']),
|
|
36218
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35952
36219
|
catalogId = _useModule.catalogId,
|
|
35953
36220
|
organizationId = _useModule.organizationId,
|
|
35954
36221
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -35976,7 +36243,7 @@ function TableFeatureClasses () {
|
|
|
35976
36243
|
} else {
|
|
35977
36244
|
root.contentStore.bottomToolBar.tools = [];
|
|
35978
36245
|
}
|
|
35979
|
-
}, [selectedFeatureClass]);
|
|
36246
|
+
}, [selectedFeatureClass, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id]);
|
|
35980
36247
|
useEffect(function () {
|
|
35981
36248
|
//remove features table, when featureclasses are unmounted
|
|
35982
36249
|
return function () {
|
|
@@ -35988,7 +36255,7 @@ function TableFeatureClasses () {
|
|
|
35988
36255
|
catalogId: catalogId,
|
|
35989
36256
|
organizationId: organizationId
|
|
35990
36257
|
};
|
|
35991
|
-
}, [catalogId]);
|
|
36258
|
+
}, [catalogId, organizationId]);
|
|
35992
36259
|
var hooks = useMemo(function () {
|
|
35993
36260
|
return {
|
|
35994
36261
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -36016,27 +36283,7 @@ function TableFeatureClasses () {
|
|
|
36016
36283
|
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassNo',
|
|
36017
36284
|
required: true,
|
|
36018
36285
|
cellDataType: 'number'
|
|
36019
|
-
}, {
|
|
36020
|
-
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassName',
|
|
36021
|
-
marryChildren: true,
|
|
36022
|
-
children: [{
|
|
36023
|
-
field: 'featureClassName.DE',
|
|
36024
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36025
|
-
isDictionary: true
|
|
36026
|
-
}, {
|
|
36027
|
-
field: 'featureClassName.EN',
|
|
36028
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
36029
|
-
isDictionary: true
|
|
36030
|
-
}, {
|
|
36031
|
-
field: 'featureClassName.FR',
|
|
36032
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
36033
|
-
isDictionary: true
|
|
36034
|
-
}, {
|
|
36035
|
-
field: 'featureClassName.IT',
|
|
36036
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
36037
|
-
isDictionary: true
|
|
36038
|
-
}]
|
|
36039
|
-
}, {
|
|
36286
|
+
}, createTranslatedColumnConfig('featureClassName', 'backoffice.idmCatalog.featureclasses.label.featureClassName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), {
|
|
36040
36287
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
36041
36288
|
field: 'lastUpdatedDate',
|
|
36042
36289
|
cellDataType: 'dateString',
|
|
@@ -36082,7 +36329,7 @@ function TableFeatureClasses () {
|
|
|
36082
36329
|
defaultValue: {}
|
|
36083
36330
|
}]
|
|
36084
36331
|
};
|
|
36085
|
-
}, []);
|
|
36332
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
36086
36333
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
36087
36334
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
36088
36335
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -36091,16 +36338,16 @@ function TableFeatureClasses () {
|
|
|
36091
36338
|
"float": 'right'
|
|
36092
36339
|
},
|
|
36093
36340
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
36094
|
-
|
|
36095
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
36096
|
-
return updateNavigation(
|
|
36341
|
+
catalogId: catalogId,
|
|
36342
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36343
|
+
return updateNavigation(catalog);
|
|
36097
36344
|
},
|
|
36098
36345
|
idmService: apiConfig.idmService,
|
|
36099
36346
|
organizationId: organizationId
|
|
36100
36347
|
})
|
|
36101
36348
|
})]
|
|
36102
36349
|
})
|
|
36103
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
36350
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
36104
36351
|
gridId: 'crud-grid_featureclasses',
|
|
36105
36352
|
applicationData: applicationData,
|
|
36106
36353
|
hooks: hooks,
|
|
@@ -36541,6 +36788,7 @@ function TableDecisions () {
|
|
|
36541
36788
|
var root = useStore();
|
|
36542
36789
|
var spreadsheetRef = useRef(null);
|
|
36543
36790
|
var _useModule = useModule(['decisions']),
|
|
36791
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
36544
36792
|
catalogId = _useModule.catalogId,
|
|
36545
36793
|
organizationId = _useModule.organizationId,
|
|
36546
36794
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -36587,7 +36835,7 @@ function TableDecisions () {
|
|
|
36587
36835
|
catalogId: catalogId,
|
|
36588
36836
|
organizationId: organizationId
|
|
36589
36837
|
};
|
|
36590
|
-
}, [catalogId]);
|
|
36838
|
+
}, [catalogId, organizationId]);
|
|
36591
36839
|
var hooks = useMemo(function () {
|
|
36592
36840
|
return {
|
|
36593
36841
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -36638,28 +36886,7 @@ function TableDecisions () {
|
|
|
36638
36886
|
headerName: 'backoffice.idmCatalog.decisions.label.decisionNo',
|
|
36639
36887
|
required: true,
|
|
36640
36888
|
cellDataType: 'number'
|
|
36641
|
-
}, {
|
|
36642
|
-
headerName: 'backoffice.idmCatalog.decisions.label.decisionText',
|
|
36643
|
-
marryChildren: true,
|
|
36644
|
-
children: [{
|
|
36645
|
-
field: 'decisionText.DE',
|
|
36646
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36647
|
-
isDictionary: true,
|
|
36648
|
-
required: true
|
|
36649
|
-
}, {
|
|
36650
|
-
field: 'decisionText.EN',
|
|
36651
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
36652
|
-
isDictionary: true
|
|
36653
|
-
}, {
|
|
36654
|
-
field: 'decisionText.FR',
|
|
36655
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
36656
|
-
isDictionary: true
|
|
36657
|
-
}, {
|
|
36658
|
-
field: 'decisionText.IT',
|
|
36659
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
36660
|
-
isDictionary: true
|
|
36661
|
-
}]
|
|
36662
|
-
}, {
|
|
36889
|
+
}, createTranslatedColumnConfig('decisionText', 'backoffice.idmCatalog.decisions.label.decisionText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
36663
36890
|
field: 'comment',
|
|
36664
36891
|
headerName: 'backoffice.idmCatalog.decisions.label.comment'
|
|
36665
36892
|
}, {
|
|
@@ -36743,7 +36970,7 @@ function TableDecisions () {
|
|
|
36743
36970
|
defaultValue: '${catalogId}'
|
|
36744
36971
|
}]
|
|
36745
36972
|
};
|
|
36746
|
-
}, []);
|
|
36973
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
36747
36974
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
36748
36975
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
36749
36976
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -36752,16 +36979,16 @@ function TableDecisions () {
|
|
|
36752
36979
|
"float": 'right'
|
|
36753
36980
|
},
|
|
36754
36981
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
36755
|
-
|
|
36756
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
36757
|
-
return updateNavigation(
|
|
36982
|
+
catalogId: catalogId,
|
|
36983
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36984
|
+
return updateNavigation(catalog);
|
|
36758
36985
|
},
|
|
36759
36986
|
idmService: apiConfig.idmService,
|
|
36760
36987
|
organizationId: organizationId
|
|
36761
36988
|
})
|
|
36762
36989
|
})]
|
|
36763
36990
|
})
|
|
36764
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
36991
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
36765
36992
|
gridId: 'crud-grid_decisions',
|
|
36766
36993
|
ref: spreadsheetRef,
|
|
36767
36994
|
applicationData: applicationData,
|
|
@@ -36773,97 +37000,21 @@ function TableDecisions () {
|
|
|
36773
37000
|
|
|
36774
37001
|
function TableDetailInfos () {
|
|
36775
37002
|
var _useTranslation = useTranslation(),
|
|
36776
|
-
t = _useTranslation.t
|
|
36777
|
-
|
|
37003
|
+
t = _useTranslation.t,
|
|
37004
|
+
i18n = _useTranslation.i18n;
|
|
36778
37005
|
var _useModule = useModule(['detailinfos']),
|
|
37006
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
36779
37007
|
catalogId = _useModule.catalogId,
|
|
36780
37008
|
organizationId = _useModule.organizationId,
|
|
36781
37009
|
updateNavigation = _useModule.updateNavigation,
|
|
36782
37010
|
apiConfig = _useModule.apiConfig;
|
|
36783
|
-
var _React$useState = React.useState(),
|
|
36784
|
-
_React$useState2 = _slicedToArray(_React$useState, 2);
|
|
36785
|
-
_React$useState2[0];
|
|
36786
|
-
var setSelectedDetailInfo = _React$useState2[1];
|
|
36787
37011
|
var applicationData = useMemo(function () {
|
|
36788
37012
|
return {
|
|
36789
37013
|
catalogId: catalogId,
|
|
36790
37014
|
organizationId: organizationId
|
|
36791
37015
|
};
|
|
36792
|
-
}, [catalogId]);
|
|
36793
|
-
var hooks = useMemo(function () {
|
|
36794
|
-
return {
|
|
36795
|
-
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
36796
|
-
if (event.selection.length == 1) {
|
|
36797
|
-
setSelectedDetailInfo(event.selection[0].node.data);
|
|
36798
|
-
} else {
|
|
36799
|
-
setSelectedDetailInfo(null);
|
|
36800
|
-
}
|
|
36801
|
-
}
|
|
36802
|
-
};
|
|
36803
|
-
}, []);
|
|
37016
|
+
}, [catalogId, organizationId]);
|
|
36804
37017
|
var configuration = useMemo(function () {
|
|
36805
|
-
var layerId = [{
|
|
36806
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l10'),
|
|
36807
|
-
value: 10
|
|
36808
|
-
}, {
|
|
36809
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l20'),
|
|
36810
|
-
value: 20
|
|
36811
|
-
}, {
|
|
36812
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l30'),
|
|
36813
|
-
value: 30
|
|
36814
|
-
}, {
|
|
36815
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l40'),
|
|
36816
|
-
value: 40
|
|
36817
|
-
}, {
|
|
36818
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l50'),
|
|
36819
|
-
value: 50
|
|
36820
|
-
}, {
|
|
36821
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l60'),
|
|
36822
|
-
value: 60
|
|
36823
|
-
}];
|
|
36824
|
-
var infoType = [{
|
|
36825
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i1'),
|
|
36826
|
-
value: 1
|
|
36827
|
-
}, {
|
|
36828
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i2'),
|
|
36829
|
-
value: 2
|
|
36830
|
-
}, {
|
|
36831
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i3'),
|
|
36832
|
-
value: 3
|
|
36833
|
-
}, {
|
|
36834
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i4'),
|
|
36835
|
-
value: 4
|
|
36836
|
-
}, {
|
|
36837
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i5'),
|
|
36838
|
-
value: 5
|
|
36839
|
-
}, {
|
|
36840
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i6'),
|
|
36841
|
-
value: 6
|
|
36842
|
-
}, {
|
|
36843
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i7'),
|
|
36844
|
-
value: 7
|
|
36845
|
-
}, {
|
|
36846
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i8'),
|
|
36847
|
-
value: 8
|
|
36848
|
-
}, {
|
|
36849
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i9'),
|
|
36850
|
-
value: 9
|
|
36851
|
-
}, {
|
|
36852
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i10'),
|
|
36853
|
-
value: 10
|
|
36854
|
-
}, {
|
|
36855
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i11'),
|
|
36856
|
-
value: 11
|
|
36857
|
-
}, {
|
|
36858
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i12'),
|
|
36859
|
-
value: 12
|
|
36860
|
-
}, {
|
|
36861
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i13'),
|
|
36862
|
-
value: 13
|
|
36863
|
-
}, {
|
|
36864
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i14'),
|
|
36865
|
-
value: 14
|
|
36866
|
-
}];
|
|
36867
37018
|
return {
|
|
36868
37019
|
type: 'dotnetSSM',
|
|
36869
37020
|
apiInterface: {
|
|
@@ -36876,67 +37027,7 @@ function TableDetailInfos () {
|
|
|
36876
37027
|
headerName: 'backoffice.idmCatalog.detailinfos.label.detailInfoNo',
|
|
36877
37028
|
required: true,
|
|
36878
37029
|
cellDataType: 'number'
|
|
36879
|
-
}, {
|
|
36880
|
-
headerName: 'backoffice.idmCatalog.detailinfos.label.externalName',
|
|
36881
|
-
marryChildren: true,
|
|
36882
|
-
children: [{
|
|
36883
|
-
field: 'externalName.DE',
|
|
36884
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36885
|
-
isDictionary: true
|
|
36886
|
-
}, {
|
|
36887
|
-
field: 'externalName.EN',
|
|
36888
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
36889
|
-
isDictionary: true
|
|
36890
|
-
}, {
|
|
36891
|
-
field: 'externalName.FR',
|
|
36892
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
36893
|
-
isDictionary: true
|
|
36894
|
-
}, {
|
|
36895
|
-
field: 'externalName.IT',
|
|
36896
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
36897
|
-
isDictionary: true
|
|
36898
|
-
}]
|
|
36899
|
-
}, {
|
|
36900
|
-
headerName: 'backoffice.idmCatalog.detailinfos.label.internalName',
|
|
36901
|
-
marryChildren: true,
|
|
36902
|
-
children: [{
|
|
36903
|
-
field: 'internalName.DE',
|
|
36904
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36905
|
-
isDictionary: true
|
|
36906
|
-
}, {
|
|
36907
|
-
field: 'internalName.EN',
|
|
36908
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
36909
|
-
isDictionary: true
|
|
36910
|
-
}, {
|
|
36911
|
-
field: 'internalName.FR',
|
|
36912
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
36913
|
-
isDictionary: true
|
|
36914
|
-
}, {
|
|
36915
|
-
field: 'internalName.IT',
|
|
36916
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
36917
|
-
isDictionary: true
|
|
36918
|
-
}]
|
|
36919
|
-
}, {
|
|
36920
|
-
headerName: 'backoffice.idmCatalog.detailinfos.label.toolTip',
|
|
36921
|
-
marryChildren: true,
|
|
36922
|
-
children: [{
|
|
36923
|
-
field: 'toolTip.DE',
|
|
36924
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36925
|
-
isDictionary: true
|
|
36926
|
-
}, {
|
|
36927
|
-
field: 'toolTip.EN',
|
|
36928
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
36929
|
-
isDictionary: true
|
|
36930
|
-
}, {
|
|
36931
|
-
field: 'toolTip.FR',
|
|
36932
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
36933
|
-
isDictionary: true
|
|
36934
|
-
}, {
|
|
36935
|
-
field: 'toolTip.IT',
|
|
36936
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
36937
|
-
isDictionary: true
|
|
36938
|
-
}]
|
|
36939
|
-
}, {
|
|
37030
|
+
}, createTranslatedColumnConfig('externalName', 'backoffice.idmCatalog.detailinfos.label.externalName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), createTranslatedColumnConfig('internalName', 'backoffice.idmCatalog.detailinfos.label.internalName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), createTranslatedColumnConfig('toolTip', 'backoffice.idmCatalog.detailinfos.label.toolTip', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), {
|
|
36940
37031
|
field: 'url',
|
|
36941
37032
|
headerName: 'backoffice.idmCatalog.detailinfos.label.url',
|
|
36942
37033
|
required: true
|
|
@@ -36956,7 +37047,7 @@ function TableDetailInfos () {
|
|
|
36956
37047
|
required: true,
|
|
36957
37048
|
cellDataType: 'enum',
|
|
36958
37049
|
customParams: {
|
|
36959
|
-
enumData:
|
|
37050
|
+
enumData: getInfoTypeKey(t),
|
|
36960
37051
|
displayLabelTemplate: '${name} (${value})'
|
|
36961
37052
|
}
|
|
36962
37053
|
}, {
|
|
@@ -36964,7 +37055,7 @@ function TableDetailInfos () {
|
|
|
36964
37055
|
headerName: 'backoffice.idmCatalog.detailinfos.label.layer',
|
|
36965
37056
|
cellDataType: 'enum',
|
|
36966
37057
|
customParams: {
|
|
36967
|
-
enumData:
|
|
37058
|
+
enumData: getLayerIdKey(t),
|
|
36968
37059
|
displayLabelTemplate: '${name} (${value})'
|
|
36969
37060
|
}
|
|
36970
37061
|
}, {
|
|
@@ -36974,7 +37065,7 @@ function TableDetailInfos () {
|
|
|
36974
37065
|
editable: true,
|
|
36975
37066
|
required: true,
|
|
36976
37067
|
customParams: {
|
|
36977
|
-
enumData:
|
|
37068
|
+
enumData: getLanguageKey(t),
|
|
36978
37069
|
multiple: false
|
|
36979
37070
|
},
|
|
36980
37071
|
defaultValue: 'DE'
|
|
@@ -37030,7 +37121,7 @@ function TableDetailInfos () {
|
|
|
37030
37121
|
defaultValue: '${catalogId}'
|
|
37031
37122
|
}]
|
|
37032
37123
|
};
|
|
37033
|
-
}, []);
|
|
37124
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
|
|
37034
37125
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
37035
37126
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
37036
37127
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -37040,18 +37131,17 @@ function TableDetailInfos () {
|
|
|
37040
37131
|
},
|
|
37041
37132
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
37042
37133
|
organizationId: organizationId,
|
|
37043
|
-
|
|
37044
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
37045
|
-
return updateNavigation(
|
|
37134
|
+
catalogId: catalogId,
|
|
37135
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
37136
|
+
return updateNavigation(catalog);
|
|
37046
37137
|
},
|
|
37047
37138
|
idmService: apiConfig.idmService
|
|
37048
37139
|
})
|
|
37049
37140
|
})]
|
|
37050
37141
|
})
|
|
37051
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
37052
|
-
gridId: 'crud-
|
|
37142
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
37143
|
+
gridId: 'crud-grid_detailinfos',
|
|
37053
37144
|
applicationData: applicationData,
|
|
37054
|
-
hooks: hooks,
|
|
37055
37145
|
configuration: configuration
|
|
37056
37146
|
})]
|
|
37057
37147
|
});
|
|
@@ -37267,10 +37357,11 @@ function TablePartlists () {
|
|
|
37267
37357
|
t = _useTranslation.t;
|
|
37268
37358
|
var root = useStore();
|
|
37269
37359
|
var _useModule = useModule(['partlists']),
|
|
37360
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
37270
37361
|
catalogId = _useModule.catalogId,
|
|
37271
|
-
organizationId = _useModule.organizationId,
|
|
37272
37362
|
updateNavigation = _useModule.updateNavigation,
|
|
37273
|
-
apiConfig = _useModule.apiConfig
|
|
37363
|
+
apiConfig = _useModule.apiConfig,
|
|
37364
|
+
organizationId = _useModule.organizationId;
|
|
37274
37365
|
var _React$useState = React.useState(),
|
|
37275
37366
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
37276
37367
|
selectedPartlist = _React$useState2[0],
|
|
@@ -37303,10 +37394,10 @@ function TablePartlists () {
|
|
|
37303
37394
|
}, []);
|
|
37304
37395
|
var applicationData = useMemo(function () {
|
|
37305
37396
|
return {
|
|
37306
|
-
|
|
37307
|
-
|
|
37397
|
+
organizationId: organizationId,
|
|
37398
|
+
catalogId: catalogId
|
|
37308
37399
|
};
|
|
37309
|
-
}, [
|
|
37400
|
+
}, [organizationId, catalogId]);
|
|
37310
37401
|
var hooks = useMemo(function () {
|
|
37311
37402
|
return {
|
|
37312
37403
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -37387,16 +37478,16 @@ function TablePartlists () {
|
|
|
37387
37478
|
"float": 'right'
|
|
37388
37479
|
},
|
|
37389
37480
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
37390
|
-
|
|
37391
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
37392
|
-
return updateNavigation(
|
|
37481
|
+
catalogId: catalogId,
|
|
37482
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
37483
|
+
return updateNavigation(catalog);
|
|
37393
37484
|
},
|
|
37394
37485
|
idmService: apiConfig.idmService,
|
|
37395
37486
|
organizationId: organizationId
|
|
37396
37487
|
})
|
|
37397
37488
|
})]
|
|
37398
37489
|
})
|
|
37399
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
37490
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
37400
37491
|
gridId: 'crud-grid_partlists',
|
|
37401
37492
|
applicationData: applicationData,
|
|
37402
37493
|
hooks: hooks,
|
|
@@ -37783,6 +37874,7 @@ function TablePriceFeatureGroups () {
|
|
|
37783
37874
|
var root = useStore();
|
|
37784
37875
|
var spreadsheetRef = useRef(null);
|
|
37785
37876
|
var _useModule = useModule(['pricefeaturegroups']),
|
|
37877
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
37786
37878
|
catalogId = _useModule.catalogId,
|
|
37787
37879
|
organizationId = _useModule.organizationId,
|
|
37788
37880
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -37851,7 +37943,7 @@ function TablePriceFeatureGroups () {
|
|
|
37851
37943
|
catalogId: catalogId,
|
|
37852
37944
|
organizationId: organizationId
|
|
37853
37945
|
};
|
|
37854
|
-
}, [catalogId]);
|
|
37946
|
+
}, [catalogId, organizationId]);
|
|
37855
37947
|
var hooks = useMemo(function () {
|
|
37856
37948
|
return {
|
|
37857
37949
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -37892,28 +37984,7 @@ function TablePriceFeatureGroups () {
|
|
|
37892
37984
|
headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupNo',
|
|
37893
37985
|
required: true,
|
|
37894
37986
|
cellDataType: 'number'
|
|
37895
|
-
}, {
|
|
37896
|
-
headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupText',
|
|
37897
|
-
marryChildren: true,
|
|
37898
|
-
children: [{
|
|
37899
|
-
field: 'priceFeatureGroupText.DE',
|
|
37900
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
37901
|
-
isDictionary: true,
|
|
37902
|
-
required: true
|
|
37903
|
-
}, {
|
|
37904
|
-
field: 'priceFeatureGroupText.EN',
|
|
37905
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
37906
|
-
isDictionary: true
|
|
37907
|
-
}, {
|
|
37908
|
-
field: 'priceFeatureGroupText.FR',
|
|
37909
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
37910
|
-
isDictionary: true
|
|
37911
|
-
}, {
|
|
37912
|
-
field: 'priceFeatureGroupText.IT',
|
|
37913
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
37914
|
-
isDictionary: true
|
|
37915
|
-
}]
|
|
37916
|
-
}, {
|
|
37987
|
+
}, createTranslatedColumnConfig('priceFeatureGroupText', 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
37917
37988
|
field: 'comment',
|
|
37918
37989
|
headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.comment'
|
|
37919
37990
|
}, {
|
|
@@ -37975,7 +38046,7 @@ function TablePriceFeatureGroups () {
|
|
|
37975
38046
|
additionalFields: ['featureNosDisplayTexts']
|
|
37976
38047
|
}]
|
|
37977
38048
|
};
|
|
37978
|
-
}, []);
|
|
38049
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
37979
38050
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
37980
38051
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
37981
38052
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -37984,16 +38055,16 @@ function TablePriceFeatureGroups () {
|
|
|
37984
38055
|
"float": 'right'
|
|
37985
38056
|
},
|
|
37986
38057
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
37987
|
-
|
|
37988
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
37989
|
-
return updateNavigation(
|
|
38058
|
+
catalogId: catalogId,
|
|
38059
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
38060
|
+
return updateNavigation(catalog);
|
|
37990
38061
|
},
|
|
37991
38062
|
idmService: apiConfig.idmService,
|
|
37992
38063
|
organizationId: organizationId
|
|
37993
38064
|
})
|
|
37994
38065
|
})]
|
|
37995
38066
|
})
|
|
37996
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
38067
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
37997
38068
|
gridId: 'crud-grid_pricefeaturegroups',
|
|
37998
38069
|
ref: spreadsheetRef,
|
|
37999
38070
|
applicationData: applicationData,
|
|
@@ -38007,6 +38078,7 @@ function TablePrices () {
|
|
|
38007
38078
|
var _useTranslation = useTranslation(),
|
|
38008
38079
|
t = _useTranslation.t;
|
|
38009
38080
|
var _useModule = useModule(['prices']),
|
|
38081
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
38010
38082
|
catalogId = _useModule.catalogId,
|
|
38011
38083
|
updateNavigation = _useModule.updateNavigation,
|
|
38012
38084
|
apiConfig = _useModule.apiConfig,
|
|
@@ -38056,6 +38128,11 @@ function TablePrices () {
|
|
|
38056
38128
|
additionalFields: ['typeNoDisplayText'],
|
|
38057
38129
|
isDictionary: true,
|
|
38058
38130
|
editable: false
|
|
38131
|
+
}, {
|
|
38132
|
+
field: 'partListExclusive',
|
|
38133
|
+
headerName: 'backoffice.idmCatalog.prices.label.partListExclusive',
|
|
38134
|
+
editable: false,
|
|
38135
|
+
cellDataType: 'boolean'
|
|
38059
38136
|
}].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups.map(function (priceFeatureGroup) {
|
|
38060
38137
|
var _priceFeatureGroup$ke;
|
|
38061
38138
|
return {
|
|
@@ -38109,9 +38186,9 @@ function TablePrices () {
|
|
|
38109
38186
|
},
|
|
38110
38187
|
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
38111
38188
|
organizationId: organizationId,
|
|
38112
|
-
|
|
38113
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
38114
|
-
updateNavigation(
|
|
38189
|
+
catalogId: catalogId,
|
|
38190
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
38191
|
+
updateNavigation(catalog);
|
|
38115
38192
|
setSelectedSerie(undefined);
|
|
38116
38193
|
},
|
|
38117
38194
|
idmService: apiConfig.idmService
|
|
@@ -38124,7 +38201,7 @@ function TablePrices () {
|
|
|
38124
38201
|
})]
|
|
38125
38202
|
})]
|
|
38126
38203
|
})
|
|
38127
|
-
}), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
|
|
38204
|
+
}), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
38128
38205
|
gridId: 'crud-grid_prices',
|
|
38129
38206
|
applicationData: applicationData,
|
|
38130
38207
|
configuration: configuration
|
|
@@ -39095,7 +39172,9 @@ var toolItem = "tool-item-KyKgQ";
|
|
|
39095
39172
|
var disabled = "disabled-6aIG9";
|
|
39096
39173
|
var sel = "sel-iUm8X";
|
|
39097
39174
|
var button = "button-K-0KR";
|
|
39098
|
-
var
|
|
39175
|
+
var toolbarLayout = "toolbar-layout-DUuBn";
|
|
39176
|
+
var toolbarContent = "toolbar-content-GxyU6";
|
|
39177
|
+
var css_248z$3 = ".container-BucHG {\n height: 100%;\n width: 100%;\n position: relative;\n z-index: 1001;\n overflow: auto;\n}\n\n.right--XETU .container-BucHG {\n z-index: 1003;\n}\n\n.unpinned-right-tbnNb.container-BucHG {\n right: 37px;\n position: absolute;\n}\n\n.draghandle-f5b0N {\n position: absolute;\n top: 0px;\n background-color: rgba(128, 128, 128, 0.3);\n z-index: 1002;\n}\n\n.right--XETU .draghandle-f5b0N {\n height: 100%;\n width: 2px;\n left: -1px;\n cursor: ew-resize;\n z-index: 1004;\n}\n\n.bottom-cqyfS .draghandle-f5b0N {\n height: 2px;\n width: 100%;\n cursor: ns-resize;\n}\n\n.mid-handle--qh50 {\n position: absolute;\n background-color: rgba(128, 128, 128, 0.3);\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.right--XETU .mid-handle--qh50 {\n width: 5px;\n height: 32px;\n border-left: 2px solid grey;\n border-right: 2px solid grey;\n}\n\n.bottom-cqyfS .mid-handle--qh50 {\n height: 5px;\n width: 32px;\n border-top: 2px solid gray;\n border-bottom: 2px solid gray;\n}\n\n.tools-selector-BHV3Z {\n z-index: 1000;\n display: flex;\n position: relative;\n gap: 16px;\n align-items: center;\n background-color: #f5f5f5;\n}\n\n.darkmode .tools-selector-BHV3Z {\n background-color: #001529;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.right--XETU .tools-selector-BHV3Z {\n width: 36px;\n height: 100%;\n padding-top: 16px;\n flex-direction: column;\n}\n\n.bottom-cqyfS .tools-selector-BHV3Z {\n width: 100%;\n height: 36px;\n padding-top: 0;\n flex-direction: row;\n}\n\n.tool-item-KyKgQ {\n padding: 10px;\n cursor: pointer;\n position: relative;\n}\n\n.tool-item-KyKgQ.disabled-6aIG9 {\n opacity: 0.5;\n cursor: default;\n}\n\n.right--XETU .tool-item-KyKgQ {\n writing-mode: vertical-lr;\n text-orientation: mixed;\n}\n\n.tool-item-KyKgQ::after {\n content: '';\n position: absolute;\n background-color: #0088ff;\n transition: all ease-in-out 0.2s;\n}\n\n.right--XETU .tool-item-KyKgQ::after {\n width: 3px;\n height: 0px;\n left: 1px;\n bottom: 50%;\n}\n\n.right--XETU .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.right--XETU .sel-iUm8X::after {\n height: 100%;\n bottom: 0;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ::after {\n width: 0px;\n height: 3px;\n bottom: 1px;\n left: 50%;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.bottom-cqyfS .sel-iUm8X::after {\n width: 100%;\n left: 0;\n}\n\n.button-K-0KR {\n width: 40px;\n justify-content: center;\n}\n\n.toolbar-layout-DUuBn {\n height: 100%;\n width: 100%;\n}\n\n.toolbar-content-GxyU6 {\n height: 100%;\n width: 100%;\n padding: 32px;\n display: flex;\n flex-direction: column;\n}\n";
|
|
39099
39178
|
styleInject(css_248z$3);
|
|
39100
39179
|
|
|
39101
39180
|
var wrapper$1 = "wrapper-Q13-g";
|
|
@@ -39678,19 +39757,12 @@ function ToolElement(_ref2) {
|
|
|
39678
39757
|
return tool.elementComponent;
|
|
39679
39758
|
}, [tool.id]);
|
|
39680
39759
|
return /*#__PURE__*/jsx(Layout$1, {
|
|
39681
|
-
|
|
39682
|
-
height: '100%',
|
|
39683
|
-
width: '100%'
|
|
39684
|
-
},
|
|
39760
|
+
className: toolbarLayout,
|
|
39685
39761
|
children: /*#__PURE__*/jsx(Spin$1, {
|
|
39686
39762
|
spinning: loading,
|
|
39687
39763
|
size: "large",
|
|
39688
39764
|
children: /*#__PURE__*/jsxs(Layout$1.Content, {
|
|
39689
|
-
|
|
39690
|
-
height: '100%',
|
|
39691
|
-
width: '100%',
|
|
39692
|
-
padding: 32
|
|
39693
|
-
},
|
|
39765
|
+
className: toolbarContent,
|
|
39694
39766
|
children: [Tool, C && /*#__PURE__*/jsx(C, _objectSpread$2({}, tool.elementProps), tool.id)]
|
|
39695
39767
|
})
|
|
39696
39768
|
})
|
|
@@ -39789,6 +39861,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
39789
39861
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39790
39862
|
var LOG = getLogger('Backoffice', 'Index');
|
|
39791
39863
|
var Main = function Main(props) {
|
|
39864
|
+
var _useDivaCore = useDivaCore(),
|
|
39865
|
+
organization = _useDivaCore.state.organization;
|
|
39792
39866
|
useEffect(function () {
|
|
39793
39867
|
LOG.debug('Initial render of backoffice');
|
|
39794
39868
|
}, []);
|
|
@@ -39800,7 +39874,7 @@ var Main = function Main(props) {
|
|
|
39800
39874
|
children: /*#__PURE__*/jsx(MainLayout$1, {})
|
|
39801
39875
|
}))
|
|
39802
39876
|
})
|
|
39803
|
-
});
|
|
39877
|
+
}, organization === null || organization === void 0 ? void 0 : organization._id);
|
|
39804
39878
|
};
|
|
39805
39879
|
var DivaBackoffice = {
|
|
39806
39880
|
name: 'DIVA_BACKOFFICE_NEW',
|