@crystaldesign/diva-backoffice 25.3.0-beta.1 → 25.3.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/esm/index.js +1561 -1494
- 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/OptionCombinations.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/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.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
|
@@ -5227,7 +5227,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5227
5227
|
sorter: 8,
|
|
5228
5228
|
width: 150
|
|
5229
5229
|
}, {
|
|
5230
|
-
title: 'variants',
|
|
5230
|
+
title: t('backoffice.table.rooms.columns.variants'),
|
|
5231
5231
|
field: 'variants',
|
|
5232
5232
|
hidden: true
|
|
5233
5233
|
}],
|
|
@@ -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'),
|
|
@@ -10851,66 +10870,66 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
10851
10870
|
},
|
|
10852
10871
|
items: [{
|
|
10853
10872
|
name: 'isExclusive',
|
|
10854
|
-
label: '
|
|
10873
|
+
label: t('backoffice.form.room.isExclusiv'),
|
|
10855
10874
|
type: 'checkbox'
|
|
10856
10875
|
}, {
|
|
10857
|
-
|
|
10858
|
-
|
|
10876
|
+
label: t('backoffice.form.room.id'),
|
|
10877
|
+
name: 'id',
|
|
10859
10878
|
type: 'input',
|
|
10860
10879
|
readonly: true
|
|
10861
10880
|
}, {
|
|
10881
|
+
label: t('backoffice.form.room.blenderVersion'),
|
|
10862
10882
|
name: 'blenderVersion',
|
|
10863
|
-
label: 'Blender Version',
|
|
10864
10883
|
type: 'input',
|
|
10865
10884
|
readonly: true
|
|
10866
10885
|
}, {
|
|
10886
|
+
label: t('backoffice.form.room.mainCategory'),
|
|
10867
10887
|
name: 'mainCategory',
|
|
10868
|
-
label: 'Haupt Kategorie',
|
|
10869
10888
|
type: 'input'
|
|
10870
10889
|
}, {
|
|
10890
|
+
label: t('bacoffice.form.room.name'),
|
|
10871
10891
|
name: 'name',
|
|
10872
|
-
label: 'Name',
|
|
10873
10892
|
type: 'input'
|
|
10874
10893
|
}, {
|
|
10894
|
+
label: t('backoffice.form.room.variants'),
|
|
10875
10895
|
name: 'variants',
|
|
10876
|
-
label: 'variants',
|
|
10877
10896
|
value: 'variants',
|
|
10878
10897
|
type: 'array',
|
|
10879
10898
|
disablePushOrPop: true,
|
|
10880
10899
|
items: [{
|
|
10881
10900
|
type: 'subTitle',
|
|
10882
10901
|
name: 'Variante',
|
|
10883
|
-
label: '
|
|
10902
|
+
label: t('backoffice.form.room.variante')
|
|
10884
10903
|
}, {
|
|
10885
10904
|
type: 'input',
|
|
10886
10905
|
name: 'name',
|
|
10887
|
-
label: '
|
|
10906
|
+
label: t('backoffice.form.room.variantName')
|
|
10888
10907
|
}, {
|
|
10889
10908
|
type: 'input',
|
|
10890
10909
|
name: 'description',
|
|
10891
|
-
label: '
|
|
10910
|
+
label: t('backoffice.form.room.variantDescription')
|
|
10892
10911
|
}, {
|
|
10893
10912
|
type: 'select',
|
|
10894
10913
|
name: 'compatibleColors',
|
|
10895
|
-
label: '
|
|
10914
|
+
label: t('backoffice.form.room.variantCompatibleColors'),
|
|
10896
10915
|
mode: 'multiple',
|
|
10897
10916
|
allowClear: true,
|
|
10898
10917
|
values: ['black', 'silver', 'gray', 'white', 'maroon', 'red', 'purple', 'fuchsia', 'green', 'lime', 'olive', 'yellow', 'navy', 'blue', 'teal', 'aqua']
|
|
10899
10918
|
}, {
|
|
10900
10919
|
type: 'checkbox',
|
|
10901
|
-
|
|
10920
|
+
label: t('backoffice.form.room.default'),
|
|
10902
10921
|
readonly: true,
|
|
10903
|
-
|
|
10922
|
+
name: 'default'
|
|
10904
10923
|
}, {
|
|
10905
10924
|
type: 'input',
|
|
10906
|
-
|
|
10907
|
-
|
|
10925
|
+
label: t('backoffice.form.room.sceneName'),
|
|
10926
|
+
name: 'sceneName'
|
|
10908
10927
|
}, {
|
|
10909
10928
|
type: 'select',
|
|
10910
|
-
|
|
10929
|
+
label: t('backoffice.form.room.style'),
|
|
10911
10930
|
mode: 'multiple',
|
|
10912
10931
|
allowCreate: true,
|
|
10913
|
-
|
|
10932
|
+
name: 'style'
|
|
10914
10933
|
}]
|
|
10915
10934
|
}]
|
|
10916
10935
|
},
|
|
@@ -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',
|
|
31550
|
+
cellDataType: 'withPlaceholder',
|
|
31551
|
+
customParams: {
|
|
31552
|
+
placeHolderField: 'origStreet',
|
|
31553
|
+
combinedField: 'street'
|
|
31554
|
+
},
|
|
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',
|
|
31395
31616
|
cellDataType: 'withPlaceholder',
|
|
31396
31617
|
customParams: {
|
|
31397
|
-
placeHolderField: '
|
|
31398
|
-
combinedField: '
|
|
31618
|
+
placeHolderField: 'origFaxSwitchboard',
|
|
31619
|
+
combinedField: 'faxSwitchboard'
|
|
31399
31620
|
},
|
|
31400
|
-
additionalFields: ['
|
|
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,30 +32570,8 @@ 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
|
-
cellDataType: 'string',
|
|
32201
32575
|
editable: false,
|
|
32202
32576
|
hide: true,
|
|
32203
32577
|
defaultValue: '${organizationId}'
|
|
@@ -32226,7 +32600,7 @@ function TableTabGroups () {
|
|
|
32226
32600
|
cellDataType: 'objectId'
|
|
32227
32601
|
}]
|
|
32228
32602
|
};
|
|
32229
|
-
}, [apiInterface]);
|
|
32603
|
+
}, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
|
|
32230
32604
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
32231
32605
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
32232
32606
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -32236,15 +32610,15 @@ function TableTabGroups () {
|
|
|
32236
32610
|
},
|
|
32237
32611
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
32238
32612
|
organizationId: organizationId,
|
|
32239
|
-
|
|
32240
|
-
setSelectedPackage: function setSelectedPackage(
|
|
32241
|
-
return updateNavigation(
|
|
32613
|
+
packageId: packageId,
|
|
32614
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
32615
|
+
return updateNavigation(packageId);
|
|
32242
32616
|
},
|
|
32243
32617
|
enricherService: apiConfig.enricherService
|
|
32244
32618
|
})
|
|
32245
32619
|
})]
|
|
32246
32620
|
})
|
|
32247
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
32621
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
32248
32622
|
gridId: 'crud-grid_tabgroups',
|
|
32249
32623
|
applicationData: applicationData,
|
|
32250
32624
|
configuration: configuration
|
|
@@ -32259,17 +32633,18 @@ function TablePartlistPos () {
|
|
|
32259
32633
|
packageId = _useModule.packageId,
|
|
32260
32634
|
organizationId = _useModule.organizationId,
|
|
32261
32635
|
updateNavigation = _useModule.updateNavigation,
|
|
32262
|
-
apiConfig = _useModule.apiConfig
|
|
32636
|
+
apiConfig = _useModule.apiConfig,
|
|
32637
|
+
selectedPackage = _useModule.selectedPackage;
|
|
32263
32638
|
var posInvisibility = useMemo(function () {
|
|
32264
32639
|
return [{
|
|
32265
32640
|
name: t('backoffice.idmCatalogEditor.partlistpos.label.pi0'),
|
|
32266
|
-
value:
|
|
32641
|
+
value: 0
|
|
32267
32642
|
}, {
|
|
32268
32643
|
name: t('backoffice.idmCatalogEditor.partlistpos.label.pi1'),
|
|
32269
|
-
value:
|
|
32644
|
+
value: 1
|
|
32270
32645
|
}, {
|
|
32271
32646
|
name: t('backoffice.idmCatalogEditor.partlistpos.label.pi2'),
|
|
32272
|
-
value:
|
|
32647
|
+
value: 2
|
|
32273
32648
|
}];
|
|
32274
32649
|
}, [t]);
|
|
32275
32650
|
var applicationData = useMemo(function () {
|
|
@@ -32280,7 +32655,6 @@ function TablePartlistPos () {
|
|
|
32280
32655
|
}, [packageId, organizationId]);
|
|
32281
32656
|
var apiInterface = useMemo(function () {
|
|
32282
32657
|
return {
|
|
32283
|
-
//TODO: Es gibt globale Tabgroups, die vordefiniert sind und pro Enricher Paket nochmals angepasst werden können -endpoint anpassen?
|
|
32284
32658
|
read: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
|
|
32285
32659
|
create: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
|
|
32286
32660
|
restore: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
|
|
@@ -32295,103 +32669,62 @@ function TablePartlistPos () {
|
|
|
32295
32669
|
dateFormat: 'LL',
|
|
32296
32670
|
floatingFilter: true,
|
|
32297
32671
|
colDef: [{
|
|
32672
|
+
headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
|
|
32673
|
+
field: 'retailPrefix',
|
|
32674
|
+
editable: true,
|
|
32675
|
+
pinned: 'left'
|
|
32676
|
+
}, {
|
|
32677
|
+
headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
|
|
32678
|
+
field: 'retailArtilceNumber',
|
|
32679
|
+
editable: true,
|
|
32680
|
+
pinned: 'left'
|
|
32681
|
+
}, {
|
|
32298
32682
|
headerName: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
|
|
32299
32683
|
field: 'partlistKey',
|
|
32300
32684
|
editable: false
|
|
32301
32685
|
}, {
|
|
32302
32686
|
headerName: 'backoffice.idmEnricher.partlistpos.label.itemRefSerieNo',
|
|
32303
32687
|
field: 'itemRefSerieNo',
|
|
32304
|
-
cellDataType: '
|
|
32305
|
-
editable: false
|
|
32306
|
-
}, {
|
|
32307
|
-
headerName: 'backoffice.idmEnricher.properties.partlistpos.itemRefSerieNoDisplayText',
|
|
32308
|
-
marryChildren: true,
|
|
32688
|
+
cellDataType: 'lookup',
|
|
32309
32689
|
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
|
-
}]
|
|
32690
|
+
customParams: {
|
|
32691
|
+
nameField: 'itemRefSerieNoDisplayText',
|
|
32692
|
+
filterCellType: 'number',
|
|
32693
|
+
displayLabelTemplate: '${name} (${value})',
|
|
32694
|
+
translated: true
|
|
32695
|
+
},
|
|
32696
|
+
isDictionary: true,
|
|
32697
|
+
additionalFields: ['itemRefSerieNoDisplayText']
|
|
32331
32698
|
}, {
|
|
32332
32699
|
headerName: 'backoffice.idmEnricher.partlistpos.label.itemRefTypeNo',
|
|
32333
32700
|
field: 'itemRefTypeNo',
|
|
32334
|
-
editable: false
|
|
32335
|
-
}, {
|
|
32336
|
-
headerName: 'backoffice.idmEnricher.properties.partlistpos.itemRefTypeNoDisplayText',
|
|
32337
|
-
marryChildren: true,
|
|
32338
32701
|
editable: false,
|
|
32339
|
-
|
|
32340
|
-
|
|
32341
|
-
|
|
32342
|
-
|
|
32343
|
-
|
|
32344
|
-
},
|
|
32345
|
-
|
|
32346
|
-
|
|
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
|
-
}]
|
|
32702
|
+
cellDataType: 'lookup',
|
|
32703
|
+
customParams: {
|
|
32704
|
+
nameField: 'itemRefTypeNoDisplayText',
|
|
32705
|
+
displayLabelTemplate: '${name} (${value})',
|
|
32706
|
+
translated: true
|
|
32707
|
+
},
|
|
32708
|
+
isDictionary: true,
|
|
32709
|
+
additionalFields: ['itemRefTypeNoDisplayText']
|
|
32360
32710
|
}, {
|
|
32361
32711
|
headerName: 'backoffice.idmEnricher.partlistpos.label.decisionPosCount',
|
|
32362
32712
|
field: 'posCountValue',
|
|
32363
|
-
cellDataType: '
|
|
32364
|
-
editable: false
|
|
32365
|
-
}, {
|
|
32366
|
-
headerName: 'backoffice.idmEnricher.partlistpos.label.decisionPosCountDisplayText',
|
|
32367
|
-
marryChildren: true,
|
|
32713
|
+
cellDataType: 'lookup',
|
|
32368
32714
|
editable: false,
|
|
32369
|
-
|
|
32370
|
-
|
|
32371
|
-
|
|
32372
|
-
|
|
32373
|
-
|
|
32374
|
-
},
|
|
32375
|
-
|
|
32376
|
-
|
|
32377
|
-
isDictionary: true,
|
|
32378
|
-
editable: false
|
|
32379
|
-
}, {
|
|
32380
|
-
field: 'decisionPosCountDisplayText.FR',
|
|
32381
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
32382
|
-
isDictionary: true,
|
|
32383
|
-
editable: false
|
|
32384
|
-
}, {
|
|
32385
|
-
field: 'decisionPosCountDisplayText.IT',
|
|
32386
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
32387
|
-
isDictionary: true,
|
|
32388
|
-
editable: false
|
|
32389
|
-
}]
|
|
32715
|
+
customParams: {
|
|
32716
|
+
nameField: 'decisionPosCountDisplayText',
|
|
32717
|
+
filterCellType: 'number',
|
|
32718
|
+
displayLabelTemplate: '${name} (${value})',
|
|
32719
|
+
translated: true
|
|
32720
|
+
},
|
|
32721
|
+
isDictionary: true,
|
|
32722
|
+
additionalFields: ['decisionPosCountDisplayText']
|
|
32390
32723
|
}, {
|
|
32391
32724
|
field: 'decisions',
|
|
32392
32725
|
headerName: 'backoffice.idmEnricher.partlistpos.label.decisions',
|
|
32393
32726
|
cellDataType: 'lookup',
|
|
32394
|
-
editable:
|
|
32727
|
+
editable: false,
|
|
32395
32728
|
customParams: {
|
|
32396
32729
|
nameField: 'decisionRefsDisplayTexts',
|
|
32397
32730
|
filterCellType: 'number',
|
|
@@ -32415,17 +32748,8 @@ function TablePartlistPos () {
|
|
|
32415
32748
|
displayLabelTemplate: '${name} (${value})'
|
|
32416
32749
|
},
|
|
32417
32750
|
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
32751
|
}, {
|
|
32427
32752
|
field: 'organizationId',
|
|
32428
|
-
cellDataType: 'string',
|
|
32429
32753
|
editable: false,
|
|
32430
32754
|
hide: true,
|
|
32431
32755
|
defaultValue: '${organizationId}'
|
|
@@ -32464,15 +32788,15 @@ function TablePartlistPos () {
|
|
|
32464
32788
|
},
|
|
32465
32789
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
32466
32790
|
organizationId: organizationId,
|
|
32467
|
-
|
|
32468
|
-
setSelectedPackage: function setSelectedPackage(
|
|
32469
|
-
return updateNavigation(
|
|
32791
|
+
packageId: packageId,
|
|
32792
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
32793
|
+
return updateNavigation(packageId);
|
|
32470
32794
|
},
|
|
32471
32795
|
enricherService: apiConfig.enricherService
|
|
32472
32796
|
})
|
|
32473
32797
|
})]
|
|
32474
32798
|
})
|
|
32475
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
32799
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
32476
32800
|
gridId: 'crud-grid_epartlistpos',
|
|
32477
32801
|
applicationData: applicationData,
|
|
32478
32802
|
configuration: configuration
|
|
@@ -33195,6 +33519,8 @@ function Prices (_ref) {
|
|
|
33195
33519
|
return onSave;
|
|
33196
33520
|
}()
|
|
33197
33521
|
},
|
|
33522
|
+
filter: false,
|
|
33523
|
+
sortable: false,
|
|
33198
33524
|
editable: false
|
|
33199
33525
|
}].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups === null || priceFeatureGroups === void 0 ? void 0 : priceFeatureGroups.map(function (priceFeatureGroup) {
|
|
33200
33526
|
var _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
|
|
@@ -33207,6 +33533,8 @@ function Prices (_ref) {
|
|
|
33207
33533
|
headerName: priceFeatureGroupItem,
|
|
33208
33534
|
field: "prices.".concat(priceFeatureGroupItem),
|
|
33209
33535
|
editable: true,
|
|
33536
|
+
filter: false,
|
|
33537
|
+
sortable: false,
|
|
33210
33538
|
isDictionary: true,
|
|
33211
33539
|
cellDataType: 'number',
|
|
33212
33540
|
headerTooltip: (_priceFeatureGroup$ke3 = priceFeatureGroup.keysDisplayTexts) === null || _priceFeatureGroup$ke3 === void 0 ? void 0 : _priceFeatureGroup$ke3[j],
|
|
@@ -33335,14 +33663,16 @@ function Prices (_ref) {
|
|
|
33335
33663
|
|
|
33336
33664
|
function TablePriceList () {
|
|
33337
33665
|
var _useTranslation = useTranslation(),
|
|
33338
|
-
t = _useTranslation.t
|
|
33666
|
+
t = _useTranslation.t,
|
|
33667
|
+
i18n = _useTranslation.i18n;
|
|
33339
33668
|
var root = useStore();
|
|
33340
33669
|
var spreadsheetRef = useRef(null);
|
|
33341
33670
|
var _useModule = useModule$1(['pricelists']),
|
|
33342
33671
|
packageId = _useModule.packageId,
|
|
33343
33672
|
organizationId = _useModule.organizationId,
|
|
33344
33673
|
updateNavigation = _useModule.updateNavigation,
|
|
33345
|
-
apiConfig = _useModule.apiConfig
|
|
33674
|
+
apiConfig = _useModule.apiConfig,
|
|
33675
|
+
selectedPackage = _useModule.selectedPackage;
|
|
33346
33676
|
var _React$useState = React.useState(),
|
|
33347
33677
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33348
33678
|
selectedPriceList = _React$useState2[0],
|
|
@@ -33459,9 +33789,10 @@ function TablePriceList () {
|
|
|
33459
33789
|
}, {
|
|
33460
33790
|
headerName: 'backoffice.idmEnricher.pricelists.label.priceFactor',
|
|
33461
33791
|
field: 'pricefactors',
|
|
33462
|
-
cellDataType: '
|
|
33792
|
+
cellDataType: 'number',
|
|
33463
33793
|
cellRenderer: PriceFactorCellRenderer,
|
|
33464
33794
|
editable: false,
|
|
33795
|
+
filter: false,
|
|
33465
33796
|
equals: function equals(a, b) {
|
|
33466
33797
|
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
33798
|
return value === (b === null || b === void 0 ? void 0 : b[index]);
|
|
@@ -33484,7 +33815,11 @@ function TablePriceList () {
|
|
|
33484
33815
|
}, {
|
|
33485
33816
|
headerName: 'backoffice.idmEnricher.pricelists.label.currency',
|
|
33486
33817
|
field: 'currency',
|
|
33487
|
-
|
|
33818
|
+
cellDataType: 'enum',
|
|
33819
|
+
editable: true,
|
|
33820
|
+
customParams: {
|
|
33821
|
+
enumData: getCurrencyKey(t)
|
|
33822
|
+
}
|
|
33488
33823
|
}, {
|
|
33489
33824
|
headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
|
|
33490
33825
|
field: 'forPublishing',
|
|
@@ -33502,13 +33837,11 @@ function TablePriceList () {
|
|
|
33502
33837
|
cellDataType: 'dateString'
|
|
33503
33838
|
}, {
|
|
33504
33839
|
field: 'packageId',
|
|
33505
|
-
cellDataType: 'string',
|
|
33506
33840
|
editable: false,
|
|
33507
33841
|
hide: true,
|
|
33508
33842
|
defaultValue: '${packageId}'
|
|
33509
33843
|
}, {
|
|
33510
33844
|
field: 'organizationId',
|
|
33511
|
-
cellDataType: 'string',
|
|
33512
33845
|
editable: false,
|
|
33513
33846
|
hide: true,
|
|
33514
33847
|
defaultValue: '${organizationId}'
|
|
@@ -33552,7 +33885,7 @@ function TablePriceList () {
|
|
|
33552
33885
|
hide: true
|
|
33553
33886
|
}]
|
|
33554
33887
|
};
|
|
33555
|
-
}, [apiInterface]);
|
|
33888
|
+
}, [apiInterface, i18n.language]);
|
|
33556
33889
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
33557
33890
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33558
33891
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -33562,17 +33895,17 @@ function TablePriceList () {
|
|
|
33562
33895
|
},
|
|
33563
33896
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
33564
33897
|
organizationId: organizationId,
|
|
33565
|
-
|
|
33566
|
-
setSelectedPackage: function setSelectedPackage(
|
|
33567
|
-
return updateNavigation(
|
|
33898
|
+
packageId: packageId,
|
|
33899
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
33900
|
+
return updateNavigation(packageId);
|
|
33568
33901
|
},
|
|
33569
33902
|
enricherService: apiConfig.enricherService
|
|
33570
33903
|
})
|
|
33571
33904
|
})]
|
|
33572
33905
|
})
|
|
33573
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33906
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
33574
33907
|
ref: spreadsheetRef,
|
|
33575
|
-
gridId: 'crud-
|
|
33908
|
+
gridId: 'crud-grid_epricelists',
|
|
33576
33909
|
applicationData: applicationData,
|
|
33577
33910
|
configuration: configuration,
|
|
33578
33911
|
hooks: hooks
|
|
@@ -33597,6 +33930,12 @@ function Content$3() {
|
|
|
33597
33930
|
index: true,
|
|
33598
33931
|
path: "",
|
|
33599
33932
|
element: /*#__PURE__*/jsx(TablePackages, {})
|
|
33933
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33934
|
+
path: ":packageId/renaming/catalogs",
|
|
33935
|
+
element: /*#__PURE__*/jsx(RenamingCatalog, {})
|
|
33936
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33937
|
+
path: ":packageId/renaming/detailInfos",
|
|
33938
|
+
element: /*#__PURE__*/jsx(RenamingDetailInfo, {})
|
|
33600
33939
|
}), /*#__PURE__*/jsx(Route, {
|
|
33601
33940
|
path: ":packageId/renaming/features",
|
|
33602
33941
|
element: /*#__PURE__*/jsx(RenamingFeature, {})
|
|
@@ -33606,12 +33945,21 @@ function Content$3() {
|
|
|
33606
33945
|
}), /*#__PURE__*/jsx(Route, {
|
|
33607
33946
|
path: ":packageId/renaming/options",
|
|
33608
33947
|
element: /*#__PURE__*/jsx(RenamingOption, {})
|
|
33948
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33949
|
+
path: ":packageId/renaming/series",
|
|
33950
|
+
element: /*#__PURE__*/jsx(RenamingSerie, {})
|
|
33609
33951
|
}), /*#__PURE__*/jsx(Route, {
|
|
33610
33952
|
path: ":packageId/tabgroups",
|
|
33611
33953
|
element: /*#__PURE__*/jsx(TableTabGroups, {})
|
|
33954
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33955
|
+
path: ":packageId/exclusivity/eserie",
|
|
33956
|
+
element: /*#__PURE__*/jsx(ExclusivitySerie, {})
|
|
33612
33957
|
}), /*#__PURE__*/jsx(Route, {
|
|
33613
33958
|
path: ":packageId/exclusivity/eitem",
|
|
33614
33959
|
element: /*#__PURE__*/jsx(ExclusivitySerieItems, {})
|
|
33960
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33961
|
+
path: ":packageId/exclusivity/edetailInfo",
|
|
33962
|
+
element: /*#__PURE__*/jsx(ExclusivityExclusivityDetailInfo, {})
|
|
33615
33963
|
}), /*#__PURE__*/jsx(Route, {
|
|
33616
33964
|
path: ":packageId/exclusivity/efeature",
|
|
33617
33965
|
element: /*#__PURE__*/jsx(ExclusivityFeature, {})
|
|
@@ -33897,7 +34245,10 @@ function OpenModalButton (_ref) {
|
|
|
33897
34245
|
function TableCatalogs () {
|
|
33898
34246
|
var root = useStore();
|
|
33899
34247
|
var _useTranslation = useTranslation(),
|
|
33900
|
-
t = _useTranslation.t
|
|
34248
|
+
t = _useTranslation.t,
|
|
34249
|
+
i18n = _useTranslation.i18n;
|
|
34250
|
+
var _useDivaCore = useDivaCore(),
|
|
34251
|
+
userHasPermission = _useDivaCore.actions.userHasPermission;
|
|
33901
34252
|
var _useNavigation = useNavigation(),
|
|
33902
34253
|
organizationId = _useNavigation.organizationId,
|
|
33903
34254
|
apiConfig = _useNavigation.apiConfig,
|
|
@@ -33911,19 +34262,35 @@ function TableCatalogs () {
|
|
|
33911
34262
|
fileDownloadError = _React$useState4[0],
|
|
33912
34263
|
setFileDownloadError = _React$useState4[1];
|
|
33913
34264
|
var spreadsheetRef = useRef(null);
|
|
34265
|
+
var _React$useState5 = React.useState(false),
|
|
34266
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
34267
|
+
showApi2 = _React$useState6[0],
|
|
34268
|
+
setShowApi2 = _React$useState6[1];
|
|
33914
34269
|
var applicationData = useMemo(function () {
|
|
33915
34270
|
return {
|
|
33916
34271
|
organizationId: organizationId
|
|
33917
34272
|
};
|
|
33918
34273
|
}, [organizationId]);
|
|
33919
34274
|
var preFilter = useMemo(function () {
|
|
33920
|
-
|
|
34275
|
+
var orgPreFilter = {
|
|
33921
34276
|
colId: 'organizationId',
|
|
33922
34277
|
filterType: 'text',
|
|
33923
34278
|
type: 'equals',
|
|
33924
34279
|
filter: organizationId
|
|
33925
34280
|
};
|
|
33926
|
-
|
|
34281
|
+
if (!showApi2) {
|
|
34282
|
+
return {
|
|
34283
|
+
filterType: 'join',
|
|
34284
|
+
type: 'AND',
|
|
34285
|
+
conditions: [orgPreFilter, {
|
|
34286
|
+
colId: 'isApi',
|
|
34287
|
+
filterType: 'set',
|
|
34288
|
+
values: ['false']
|
|
34289
|
+
}]
|
|
34290
|
+
};
|
|
34291
|
+
}
|
|
34292
|
+
return orgPreFilter;
|
|
34293
|
+
}, [organizationId, showApi2]);
|
|
33927
34294
|
var rowActions = useMemo(function () {
|
|
33928
34295
|
return [{
|
|
33929
34296
|
icon: /*#__PURE__*/jsx(EditOutlined, {}),
|
|
@@ -34015,13 +34382,6 @@ function TableCatalogs () {
|
|
|
34015
34382
|
name: t('backoffice.idmCatalog.general.label.cm.F'),
|
|
34016
34383
|
value: 'F'
|
|
34017
34384
|
}];
|
|
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
34385
|
var priceDependent = [{
|
|
34026
34386
|
name: t('backoffice.idmCatalog.general.label.priceDependent.p0'),
|
|
34027
34387
|
value: false
|
|
@@ -34072,7 +34432,12 @@ function TableCatalogs () {
|
|
|
34072
34432
|
},
|
|
34073
34433
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
|
34074
34434
|
floatingFilter: true,
|
|
34075
|
-
colDef: [{
|
|
34435
|
+
colDef: [].concat(_toConsumableArray(showApi2 ? [{
|
|
34436
|
+
headerName: 'backoffice.idmCatalog.catalogs.label.isApi',
|
|
34437
|
+
field: 'isApi',
|
|
34438
|
+
cellDataType: 'boolean',
|
|
34439
|
+
editable: false
|
|
34440
|
+
}] : []), [{
|
|
34076
34441
|
headerName: 'backoffice.idmCatalog.packages.label.name',
|
|
34077
34442
|
field: 'name',
|
|
34078
34443
|
required: true
|
|
@@ -34150,14 +34515,19 @@ function TableCatalogs () {
|
|
|
34150
34515
|
editable: true,
|
|
34151
34516
|
required: true,
|
|
34152
34517
|
customParams: {
|
|
34153
|
-
enumData:
|
|
34518
|
+
enumData: getLanguageKey(t),
|
|
34154
34519
|
multiple: true
|
|
34155
34520
|
},
|
|
34156
34521
|
defaultValue: ['DE']
|
|
34157
34522
|
}, {
|
|
34158
34523
|
headerName: 'backoffice.idmCatalog.general.label.currencyKey',
|
|
34159
34524
|
field: 'currencyKey',
|
|
34525
|
+
cellDataType: 'enum',
|
|
34526
|
+
editable: true,
|
|
34160
34527
|
required: true,
|
|
34528
|
+
customParams: {
|
|
34529
|
+
enumData: getCurrencyKey(t)
|
|
34530
|
+
},
|
|
34161
34531
|
defaultValue: 'EUR'
|
|
34162
34532
|
}, {
|
|
34163
34533
|
headerName: 'backoffice.idmCatalog.general.label.fileId',
|
|
@@ -34210,7 +34580,7 @@ function TableCatalogs () {
|
|
|
34210
34580
|
editable: true,
|
|
34211
34581
|
required: true,
|
|
34212
34582
|
customParams: {
|
|
34213
|
-
enumData:
|
|
34583
|
+
enumData: getLanguageKey(t),
|
|
34214
34584
|
multiple: false
|
|
34215
34585
|
},
|
|
34216
34586
|
defaultValue: 'DE'
|
|
@@ -34239,8 +34609,13 @@ function TableCatalogs () {
|
|
|
34239
34609
|
children: [{
|
|
34240
34610
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
34241
34611
|
field: 'isoCountryId',
|
|
34612
|
+
cellDataType: 'enum',
|
|
34613
|
+
editable: true,
|
|
34242
34614
|
required: true,
|
|
34243
|
-
defaultValue: 'DE'
|
|
34615
|
+
defaultValue: 'DE',
|
|
34616
|
+
customParams: {
|
|
34617
|
+
enumData: getCountryKey(t)
|
|
34618
|
+
}
|
|
34244
34619
|
}, {
|
|
34245
34620
|
field: 'glnNo',
|
|
34246
34621
|
headerName: 'backoffice.idmCatalog.general.label.glnNo',
|
|
@@ -34320,7 +34695,7 @@ function TableCatalogs () {
|
|
|
34320
34695
|
field: 'formOfAddress1',
|
|
34321
34696
|
cellDataType: 'enum',
|
|
34322
34697
|
customParams: {
|
|
34323
|
-
enumData:
|
|
34698
|
+
enumData: getFormOfAddressKey(t),
|
|
34324
34699
|
displayLabelTemplate: '${name} (${value})'
|
|
34325
34700
|
},
|
|
34326
34701
|
required: true
|
|
@@ -34351,7 +34726,12 @@ function TableCatalogs () {
|
|
|
34351
34726
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
34352
34727
|
field: 'isoCountryId1',
|
|
34353
34728
|
required: true,
|
|
34354
|
-
defaultValue: 'DE'
|
|
34729
|
+
defaultValue: 'DE',
|
|
34730
|
+
cellDataType: 'enum',
|
|
34731
|
+
editable: true,
|
|
34732
|
+
customParams: {
|
|
34733
|
+
enumData: getCountryKey(t)
|
|
34734
|
+
}
|
|
34355
34735
|
}]
|
|
34356
34736
|
}, {
|
|
34357
34737
|
headerName: 'backoffice.idmCatalog.general.label.contact2',
|
|
@@ -34369,7 +34749,7 @@ function TableCatalogs () {
|
|
|
34369
34749
|
field: 'formOfAddress2',
|
|
34370
34750
|
cellDataType: 'enum',
|
|
34371
34751
|
customParams: {
|
|
34372
|
-
enumData:
|
|
34752
|
+
enumData: getFormOfAddressKey(t),
|
|
34373
34753
|
displayLabelTemplate: '${name} (${value})'
|
|
34374
34754
|
}
|
|
34375
34755
|
}, {
|
|
@@ -34396,7 +34776,12 @@ function TableCatalogs () {
|
|
|
34396
34776
|
field: 'city2'
|
|
34397
34777
|
}, {
|
|
34398
34778
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
34399
|
-
field: 'isoCountryId2'
|
|
34779
|
+
field: 'isoCountryId2',
|
|
34780
|
+
cellDataType: 'enum',
|
|
34781
|
+
editable: true,
|
|
34782
|
+
customParams: {
|
|
34783
|
+
enumData: getCountryKey(t)
|
|
34784
|
+
}
|
|
34400
34785
|
}]
|
|
34401
34786
|
}, {
|
|
34402
34787
|
headerName: 'backoffice.idmCatalog.general.label.priceSettings',
|
|
@@ -34534,20 +34919,32 @@ function TableCatalogs () {
|
|
|
34534
34919
|
lockVisible: true,
|
|
34535
34920
|
suppressColumnsToolPanel: true,
|
|
34536
34921
|
defaultValue: '${organizationId}'
|
|
34537
|
-
}]
|
|
34922
|
+
}])
|
|
34538
34923
|
};
|
|
34539
|
-
}, []);
|
|
34924
|
+
}, [i18n.language, showApi2]);
|
|
34540
34925
|
var handleLoadingModalOk = useCallback(function () {
|
|
34541
34926
|
setFileIsLoading(false);
|
|
34542
34927
|
}, []);
|
|
34543
34928
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
34544
34929
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
34545
34930
|
title: /*#__PURE__*/jsxs("div", {
|
|
34546
|
-
children: [t('backoffice.menu.items.label.IDMEditorTableCatalogs'), /*#__PURE__*/
|
|
34931
|
+
children: [t('backoffice.menu.items.label.IDMEditorTableCatalogs'), /*#__PURE__*/jsxs(Space$1, {
|
|
34547
34932
|
style: {
|
|
34548
34933
|
"float": 'right'
|
|
34549
34934
|
},
|
|
34550
|
-
children: /*#__PURE__*/jsx(
|
|
34935
|
+
children: [userHasPermission('idmeditor_api2') && /*#__PURE__*/jsx(Form$1.Item, {
|
|
34936
|
+
label: t('backoffice.idmCatalog.general.label.showApi2'),
|
|
34937
|
+
style: {
|
|
34938
|
+
marginRight: 10,
|
|
34939
|
+
marginBottom: 0
|
|
34940
|
+
},
|
|
34941
|
+
children: /*#__PURE__*/jsx(Switch, {
|
|
34942
|
+
checked: showApi2,
|
|
34943
|
+
onChange: function onChange(checked) {
|
|
34944
|
+
return setShowApi2(checked);
|
|
34945
|
+
}
|
|
34946
|
+
})
|
|
34947
|
+
}), /*#__PURE__*/jsx(OpenModalButton, {
|
|
34551
34948
|
title: "IDM Import",
|
|
34552
34949
|
type: "IDM_IMPORT",
|
|
34553
34950
|
idmService: apiConfig.idmService,
|
|
@@ -34556,7 +34953,7 @@ function TableCatalogs () {
|
|
|
34556
34953
|
var _spreadsheetRef$curre;
|
|
34557
34954
|
return spreadsheetRef === null || spreadsheetRef === void 0 || (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 ? void 0 : _spreadsheetRef$curre.refresh();
|
|
34558
34955
|
}
|
|
34559
|
-
})
|
|
34956
|
+
})]
|
|
34560
34957
|
})]
|
|
34561
34958
|
})
|
|
34562
34959
|
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
@@ -34575,15 +34972,20 @@ function TableCatalogs () {
|
|
|
34575
34972
|
}
|
|
34576
34973
|
|
|
34577
34974
|
function CatalogSelector(_ref) {
|
|
34578
|
-
var
|
|
34975
|
+
var catalogId = _ref.catalogId,
|
|
34579
34976
|
setSelectedCatalog = _ref.setSelectedCatalog,
|
|
34580
34977
|
idmService = _ref.idmService,
|
|
34581
34978
|
organizationId = _ref.organizationId;
|
|
34582
34979
|
var _useTranslation = useTranslation(),
|
|
34583
34980
|
t = _useTranslation.t;
|
|
34981
|
+
var value = useMemo(function () {
|
|
34982
|
+
return {
|
|
34983
|
+
_id: catalogId
|
|
34984
|
+
};
|
|
34985
|
+
}, [catalogId]);
|
|
34584
34986
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
|
34585
34987
|
apiInterface: {
|
|
34586
|
-
read: idmService + "/v3.0/catalogs?fields=name;_id&filter=organizationId==\"".concat(organizationId)
|
|
34988
|
+
read: idmService + "/v3.0/catalogs?fields=name;_id;isoLanguageIds&filter=organizationId==\"".concat(organizationId)
|
|
34587
34989
|
},
|
|
34588
34990
|
apiMapping: {
|
|
34589
34991
|
type: 'query',
|
|
@@ -34597,11 +34999,9 @@ function CatalogSelector(_ref) {
|
|
|
34597
34999
|
value: '${_id}'
|
|
34598
35000
|
},
|
|
34599
35001
|
title: t('backoffice.menu.items.label.IDMEditorTableCatalogs'),
|
|
34600
|
-
value:
|
|
34601
|
-
_id: selectedCatalog
|
|
34602
|
-
},
|
|
35002
|
+
value: value,
|
|
34603
35003
|
onChange: function onChange(value) {
|
|
34604
|
-
return setSelectedCatalog(value
|
|
35004
|
+
return setSelectedCatalog(value);
|
|
34605
35005
|
},
|
|
34606
35006
|
search: true,
|
|
34607
35007
|
style: {
|
|
@@ -34656,6 +35056,10 @@ function useModule (currentModules) {
|
|
|
34656
35056
|
var _useSearchParams = useSearchParams(),
|
|
34657
35057
|
_useSearchParams2 = _slicedToArray(_useSearchParams, 1),
|
|
34658
35058
|
searchParams = _useSearchParams2[0];
|
|
35059
|
+
var _useState = useState(),
|
|
35060
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
35061
|
+
selectedCatalog = _useState2[0],
|
|
35062
|
+
setSelectedCatalog = _useState2[1];
|
|
34659
35063
|
var menuItems = useMemo(function () {
|
|
34660
35064
|
return [{
|
|
34661
35065
|
key: 'series',
|
|
@@ -34762,7 +35166,8 @@ function useModule (currentModules) {
|
|
|
34762
35166
|
if (!catalogId) throw new Error('catalogId is required');
|
|
34763
35167
|
var updateNavigationModule = useCallback(function (currentCatalog) {
|
|
34764
35168
|
var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
|
|
34765
|
-
|
|
35169
|
+
setSelectedCatalog(currentCatalog);
|
|
35170
|
+
updateNavigation(currentCatalog._id, modules, '../');
|
|
34766
35171
|
}, [updateNavigation]);
|
|
34767
35172
|
useEffect(function () {
|
|
34768
35173
|
root.contentStore.updateAdditionalElement('catalogs', menuItems, currentModules);
|
|
@@ -34791,25 +35196,25 @@ function useModule (currentModules) {
|
|
|
34791
35196
|
updateNavigation: updateNavigationModule,
|
|
34792
35197
|
organizationId: organizationId,
|
|
34793
35198
|
apiConfig: apiConfig,
|
|
35199
|
+
selectedCatalog: selectedCatalog,
|
|
34794
35200
|
catalogId: catalogId
|
|
34795
35201
|
};
|
|
34796
35202
|
}
|
|
34797
35203
|
|
|
34798
35204
|
function Items(_ref) {
|
|
34799
35205
|
var organizationId = _ref.organizationId,
|
|
34800
|
-
|
|
35206
|
+
selectedCatalog = _ref.selectedCatalog,
|
|
34801
35207
|
apiConfig = _ref.apiConfig,
|
|
34802
35208
|
selectedSerie = _ref.selectedSerie;
|
|
34803
|
-
useStore();
|
|
34804
35209
|
var _useTranslation = useTranslation(),
|
|
34805
35210
|
t = _useTranslation.t;
|
|
34806
35211
|
var applicationData = useMemo(function () {
|
|
34807
35212
|
return {
|
|
34808
35213
|
organizationId: organizationId,
|
|
34809
|
-
catalogId:
|
|
35214
|
+
catalogId: selectedCatalog._id,
|
|
34810
35215
|
selectedSerie: selectedSerie
|
|
34811
35216
|
};
|
|
34812
|
-
}, [organizationId,
|
|
35217
|
+
}, [organizationId, selectedCatalog, selectedSerie]);
|
|
34813
35218
|
var configuration = useMemo(function () {
|
|
34814
35219
|
var itemIdentification = [{
|
|
34815
35220
|
name: t('backoffice.idmCatalogEditor.items.label.catalogArticle'),
|
|
@@ -34922,48 +35327,7 @@ function Items(_ref) {
|
|
|
34922
35327
|
cellDataType: 'number'
|
|
34923
35328
|
}, {
|
|
34924
35329
|
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
|
-
}]
|
|
35330
|
+
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
35331
|
}, {
|
|
34968
35332
|
headerName: 'backoffice.idmCatalog.items.label.articleNumbers',
|
|
34969
35333
|
children: [{
|
|
@@ -35171,7 +35535,7 @@ function Items(_ref) {
|
|
|
35171
35535
|
suppressColumnsToolPanel: true
|
|
35172
35536
|
}]
|
|
35173
35537
|
};
|
|
35174
|
-
}, []);
|
|
35538
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35175
35539
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
35176
35540
|
gridId: 'crud-grid_items',
|
|
35177
35541
|
applicationData: applicationData,
|
|
@@ -35183,6 +35547,7 @@ function TableItems () {
|
|
|
35183
35547
|
var _useTranslation = useTranslation(),
|
|
35184
35548
|
t = _useTranslation.t;
|
|
35185
35549
|
var _useModule = useModule(['items']),
|
|
35550
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35186
35551
|
catalogId = _useModule.catalogId,
|
|
35187
35552
|
updateNavigation = _useModule.updateNavigation,
|
|
35188
35553
|
apiConfig = _useModule.apiConfig,
|
|
@@ -35200,9 +35565,9 @@ function TableItems () {
|
|
|
35200
35565
|
},
|
|
35201
35566
|
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
35202
35567
|
organizationId: organizationId,
|
|
35203
|
-
|
|
35204
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
35205
|
-
return updateNavigation(
|
|
35568
|
+
catalogId: catalogId,
|
|
35569
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
35570
|
+
return updateNavigation(catalog);
|
|
35206
35571
|
},
|
|
35207
35572
|
idmService: apiConfig.idmService
|
|
35208
35573
|
}), /*#__PURE__*/jsx(SeriesSelector, {
|
|
@@ -35213,9 +35578,9 @@ function TableItems () {
|
|
|
35213
35578
|
})]
|
|
35214
35579
|
})]
|
|
35215
35580
|
})
|
|
35216
|
-
}), selectedSerie && /*#__PURE__*/jsx(Items, {
|
|
35581
|
+
}), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Items, {
|
|
35217
35582
|
organizationId: organizationId,
|
|
35218
|
-
|
|
35583
|
+
selectedCatalog: selectedCatalog,
|
|
35219
35584
|
selectedSerie: selectedSerie._id,
|
|
35220
35585
|
apiConfig: apiConfig
|
|
35221
35586
|
})]
|
|
@@ -35227,6 +35592,7 @@ function TableSeries () {
|
|
|
35227
35592
|
t = _useTranslation.t;
|
|
35228
35593
|
var root = useStore();
|
|
35229
35594
|
var _useModule = useModule(['series']),
|
|
35595
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35230
35596
|
catalogId = _useModule.catalogId,
|
|
35231
35597
|
organizationId = _useModule.organizationId,
|
|
35232
35598
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -35243,7 +35609,7 @@ function TableSeries () {
|
|
|
35243
35609
|
elementComponent: Items,
|
|
35244
35610
|
elementProps: {
|
|
35245
35611
|
organizationId: organizationId,
|
|
35246
|
-
|
|
35612
|
+
selectedCatalog: selectedCatalog,
|
|
35247
35613
|
selectedSerie: selectedSerie._id,
|
|
35248
35614
|
apiConfig: apiConfig
|
|
35249
35615
|
},
|
|
@@ -35307,28 +35673,7 @@ function TableSeries () {
|
|
|
35307
35673
|
headerName: 'backoffice.idmCatalog.series.label.serieNo',
|
|
35308
35674
|
required: true,
|
|
35309
35675
|
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
|
-
}, {
|
|
35676
|
+
}, createTranslatedColumnConfig('seriesName', 'backoffice.idmCatalog.series.label.seriesName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
35332
35677
|
field: 'sequenceNo',
|
|
35333
35678
|
headerName: 'backoffice.idmCatalog.series.label.sequenceNo',
|
|
35334
35679
|
required: true,
|
|
@@ -35342,27 +35687,7 @@ function TableSeries () {
|
|
|
35342
35687
|
enumData: purchaseRetailId,
|
|
35343
35688
|
displayLabelTemplate: '${name} (${value})'
|
|
35344
35689
|
}
|
|
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
|
-
}, {
|
|
35690
|
+
}, createTranslatedColumnConfig('seriesFullText', 'backoffice.idmCatalog.series.label.seriesFullText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE']), {
|
|
35366
35691
|
field: 'decisionRefs',
|
|
35367
35692
|
headerName: 'backoffice.idmCatalog.series.label.decisionRefs',
|
|
35368
35693
|
cellDataType: 'lookup',
|
|
@@ -35432,7 +35757,7 @@ function TableSeries () {
|
|
|
35432
35757
|
defaultValue: '${catalogId}'
|
|
35433
35758
|
}]
|
|
35434
35759
|
};
|
|
35435
|
-
}, []);
|
|
35760
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35436
35761
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
35437
35762
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
35438
35763
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -35442,7 +35767,7 @@ function TableSeries () {
|
|
|
35442
35767
|
},
|
|
35443
35768
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
35444
35769
|
organizationId: organizationId,
|
|
35445
|
-
|
|
35770
|
+
catalogId: catalogId,
|
|
35446
35771
|
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
35447
35772
|
return updateNavigation(id);
|
|
35448
35773
|
},
|
|
@@ -35450,7 +35775,7 @@ function TableSeries () {
|
|
|
35450
35775
|
})
|
|
35451
35776
|
})]
|
|
35452
35777
|
})
|
|
35453
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
35778
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
35454
35779
|
gridId: 'crud-grid_series',
|
|
35455
35780
|
applicationData: applicationData,
|
|
35456
35781
|
hooks: hooks,
|
|
@@ -35461,16 +35786,16 @@ function TableSeries () {
|
|
|
35461
35786
|
|
|
35462
35787
|
function Options(_ref) {
|
|
35463
35788
|
var organizationId = _ref.organizationId,
|
|
35464
|
-
|
|
35789
|
+
selectedCatalog = _ref.selectedCatalog,
|
|
35465
35790
|
selectedFeature = _ref.selectedFeature,
|
|
35466
35791
|
apiConfig = _ref.apiConfig;
|
|
35467
35792
|
var applicationData = useMemo(function () {
|
|
35468
35793
|
return {
|
|
35469
35794
|
organizationId: organizationId,
|
|
35470
|
-
catalogId:
|
|
35795
|
+
catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
|
35471
35796
|
selectedFeature: selectedFeature
|
|
35472
35797
|
};
|
|
35473
|
-
}, [organizationId,
|
|
35798
|
+
}, [organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, selectedFeature]);
|
|
35474
35799
|
var configuration = useMemo(function () {
|
|
35475
35800
|
return {
|
|
35476
35801
|
type: 'dotnetSSM',
|
|
@@ -35492,54 +35817,10 @@ function Options(_ref) {
|
|
|
35492
35817
|
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
35493
35818
|
field: 'sequenceNo',
|
|
35494
35819
|
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
|
-
}]
|
|
35820
|
+
}, 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']), {
|
|
35821
|
+
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
|
35822
|
+
field: 'optionFreeText',
|
|
35823
|
+
cellDataType: 'boolean'
|
|
35543
35824
|
}, {
|
|
35544
35825
|
headerName: 'backoffice.idmCatalog.items.label.validation',
|
|
35545
35826
|
children: [{
|
|
@@ -35603,7 +35884,7 @@ function Options(_ref) {
|
|
|
35603
35884
|
editable: false
|
|
35604
35885
|
}]
|
|
35605
35886
|
};
|
|
35606
|
-
}, []);
|
|
35887
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35607
35888
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
35608
35889
|
gridId: 'crud-grid_options',
|
|
35609
35890
|
applicationData: applicationData,
|
|
@@ -35613,7 +35894,7 @@ function Options(_ref) {
|
|
|
35613
35894
|
|
|
35614
35895
|
function Features(_ref) {
|
|
35615
35896
|
var organizationId = _ref.organizationId,
|
|
35616
|
-
|
|
35897
|
+
selectedCatalog = _ref.selectedCatalog,
|
|
35617
35898
|
featureClassId = _ref.featureClassId,
|
|
35618
35899
|
apiConfig = _ref.apiConfig,
|
|
35619
35900
|
hooks = _ref.hooks;
|
|
@@ -35621,11 +35902,11 @@ function Features(_ref) {
|
|
|
35621
35902
|
t = _useTranslation.t;
|
|
35622
35903
|
var applicationData = useMemo(function () {
|
|
35623
35904
|
return {
|
|
35624
|
-
catalogId:
|
|
35905
|
+
catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
|
35625
35906
|
organizationId: organizationId,
|
|
35626
35907
|
featureClassId: featureClassId
|
|
35627
35908
|
};
|
|
35628
|
-
}, [
|
|
35909
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, featureClassId, organizationId]);
|
|
35629
35910
|
var apiInterface = useMemo(function () {
|
|
35630
35911
|
return featureClassId ? {
|
|
35631
35912
|
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
@@ -35696,28 +35977,7 @@ function Features(_ref) {
|
|
|
35696
35977
|
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
35697
35978
|
required: true,
|
|
35698
35979
|
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
|
-
}, {
|
|
35980
|
+
}]), [createTranslatedColumnConfig('featureText', 'backoffice.idmCatalog.features.label.featureText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
35721
35981
|
field: 'sequenceNo',
|
|
35722
35982
|
headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
|
|
35723
35983
|
required: true,
|
|
@@ -35784,7 +36044,7 @@ function Features(_ref) {
|
|
|
35784
36044
|
defaultValue: '${catalogId}'
|
|
35785
36045
|
}])
|
|
35786
36046
|
};
|
|
35787
|
-
}, [featureClassId, apiInterface]);
|
|
36047
|
+
}, [featureClassId, apiInterface, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35788
36048
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
35789
36049
|
gridId: 'crud-grid_features' + (featureClassId ? '_featureClass' : ''),
|
|
35790
36050
|
applicationData: applicationData,
|
|
@@ -35798,6 +36058,7 @@ function TableFeatures () {
|
|
|
35798
36058
|
t = _useTranslation.t;
|
|
35799
36059
|
var root = useStore();
|
|
35800
36060
|
var _useModule = useModule(['features']),
|
|
36061
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35801
36062
|
catalogId = _useModule.catalogId,
|
|
35802
36063
|
organizationId = _useModule.organizationId,
|
|
35803
36064
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -35814,7 +36075,7 @@ function TableFeatures () {
|
|
|
35814
36075
|
elementComponent: Options,
|
|
35815
36076
|
elementProps: {
|
|
35816
36077
|
organizationId: organizationId,
|
|
35817
|
-
|
|
36078
|
+
selectedCatalog: selectedCatalog,
|
|
35818
36079
|
selectedFeature: selectedFeature._id,
|
|
35819
36080
|
apiConfig: apiConfig
|
|
35820
36081
|
},
|
|
@@ -35852,17 +36113,17 @@ function TableFeatures () {
|
|
|
35852
36113
|
},
|
|
35853
36114
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
35854
36115
|
organizationId: organizationId,
|
|
35855
|
-
|
|
35856
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
35857
|
-
return updateNavigation(
|
|
36116
|
+
catalogId: catalogId,
|
|
36117
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36118
|
+
return updateNavigation(catalog);
|
|
35858
36119
|
},
|
|
35859
36120
|
idmService: apiConfig.idmService
|
|
35860
36121
|
})
|
|
35861
36122
|
})]
|
|
35862
36123
|
})
|
|
35863
|
-
}), /*#__PURE__*/jsx(Features, {
|
|
36124
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Features, {
|
|
35864
36125
|
organizationId: organizationId,
|
|
35865
|
-
|
|
36126
|
+
selectedCatalog: selectedCatalog,
|
|
35866
36127
|
apiConfig: apiConfig,
|
|
35867
36128
|
hooks: hooks
|
|
35868
36129
|
})]
|
|
@@ -35905,6 +36166,7 @@ function TableOptions () {
|
|
|
35905
36166
|
var _useTranslation = useTranslation(),
|
|
35906
36167
|
t = _useTranslation.t;
|
|
35907
36168
|
var _useModule = useModule(['options']),
|
|
36169
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35908
36170
|
catalogId = _useModule.catalogId,
|
|
35909
36171
|
updateNavigation = _useModule.updateNavigation,
|
|
35910
36172
|
apiConfig = _useModule.apiConfig,
|
|
@@ -35922,9 +36184,9 @@ function TableOptions () {
|
|
|
35922
36184
|
},
|
|
35923
36185
|
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
35924
36186
|
organizationId: organizationId,
|
|
35925
|
-
|
|
35926
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
35927
|
-
return updateNavigation(
|
|
36187
|
+
catalogId: catalogId,
|
|
36188
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36189
|
+
return updateNavigation(catalog);
|
|
35928
36190
|
},
|
|
35929
36191
|
idmService: apiConfig.idmService
|
|
35930
36192
|
}), /*#__PURE__*/jsx(FeatureSelector, {
|
|
@@ -35935,9 +36197,9 @@ function TableOptions () {
|
|
|
35935
36197
|
})]
|
|
35936
36198
|
})]
|
|
35937
36199
|
})
|
|
35938
|
-
}), selectedFeature && /*#__PURE__*/jsx(Options, {
|
|
36200
|
+
}), selectedFeature && selectedCatalog && /*#__PURE__*/jsx(Options, {
|
|
35939
36201
|
organizationId: organizationId,
|
|
35940
|
-
|
|
36202
|
+
selectedCatalog: selectedCatalog,
|
|
35941
36203
|
selectedFeature: selectedFeature._id,
|
|
35942
36204
|
apiConfig: apiConfig
|
|
35943
36205
|
})]
|
|
@@ -35949,6 +36211,7 @@ function TableFeatureClasses () {
|
|
|
35949
36211
|
t = _useTranslation.t;
|
|
35950
36212
|
var root = useStore();
|
|
35951
36213
|
var _useModule = useModule(['featureclasses']),
|
|
36214
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35952
36215
|
catalogId = _useModule.catalogId,
|
|
35953
36216
|
organizationId = _useModule.organizationId,
|
|
35954
36217
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -35965,7 +36228,7 @@ function TableFeatureClasses () {
|
|
|
35965
36228
|
elementComponent: Features,
|
|
35966
36229
|
elementProps: {
|
|
35967
36230
|
organizationId: organizationId,
|
|
35968
|
-
|
|
36231
|
+
selectedCatalog: selectedCatalog,
|
|
35969
36232
|
apiConfig: apiConfig,
|
|
35970
36233
|
featureClassId: selectedFeatureClass._id
|
|
35971
36234
|
},
|
|
@@ -35976,7 +36239,7 @@ function TableFeatureClasses () {
|
|
|
35976
36239
|
} else {
|
|
35977
36240
|
root.contentStore.bottomToolBar.tools = [];
|
|
35978
36241
|
}
|
|
35979
|
-
}, [selectedFeatureClass]);
|
|
36242
|
+
}, [selectedFeatureClass, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id]);
|
|
35980
36243
|
useEffect(function () {
|
|
35981
36244
|
//remove features table, when featureclasses are unmounted
|
|
35982
36245
|
return function () {
|
|
@@ -35988,7 +36251,7 @@ function TableFeatureClasses () {
|
|
|
35988
36251
|
catalogId: catalogId,
|
|
35989
36252
|
organizationId: organizationId
|
|
35990
36253
|
};
|
|
35991
|
-
}, [catalogId]);
|
|
36254
|
+
}, [catalogId, organizationId]);
|
|
35992
36255
|
var hooks = useMemo(function () {
|
|
35993
36256
|
return {
|
|
35994
36257
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -36016,27 +36279,7 @@ function TableFeatureClasses () {
|
|
|
36016
36279
|
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassNo',
|
|
36017
36280
|
required: true,
|
|
36018
36281
|
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
|
-
}, {
|
|
36282
|
+
}, createTranslatedColumnConfig('featureClassName', 'backoffice.idmCatalog.featureclasses.label.featureClassName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), {
|
|
36040
36283
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
36041
36284
|
field: 'lastUpdatedDate',
|
|
36042
36285
|
cellDataType: 'dateString',
|
|
@@ -36082,7 +36325,7 @@ function TableFeatureClasses () {
|
|
|
36082
36325
|
defaultValue: {}
|
|
36083
36326
|
}]
|
|
36084
36327
|
};
|
|
36085
|
-
}, []);
|
|
36328
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
36086
36329
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
36087
36330
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
36088
36331
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -36091,16 +36334,16 @@ function TableFeatureClasses () {
|
|
|
36091
36334
|
"float": 'right'
|
|
36092
36335
|
},
|
|
36093
36336
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
36094
|
-
|
|
36095
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
36096
|
-
return updateNavigation(
|
|
36337
|
+
catalogId: catalogId,
|
|
36338
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36339
|
+
return updateNavigation(catalog);
|
|
36097
36340
|
},
|
|
36098
36341
|
idmService: apiConfig.idmService,
|
|
36099
36342
|
organizationId: organizationId
|
|
36100
36343
|
})
|
|
36101
36344
|
})]
|
|
36102
36345
|
})
|
|
36103
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
36346
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
36104
36347
|
gridId: 'crud-grid_featureclasses',
|
|
36105
36348
|
applicationData: applicationData,
|
|
36106
36349
|
hooks: hooks,
|
|
@@ -36444,7 +36687,6 @@ function OptionCombinations(_ref8) {
|
|
|
36444
36687
|
field: 'featureRefs',
|
|
36445
36688
|
editable: false,
|
|
36446
36689
|
filter: false,
|
|
36447
|
-
lockPosition: 'left',
|
|
36448
36690
|
headerComponent: 'editColumnHeader',
|
|
36449
36691
|
headerComponentParams: {
|
|
36450
36692
|
onChange: addFeature,
|
|
@@ -36541,6 +36783,7 @@ function TableDecisions () {
|
|
|
36541
36783
|
var root = useStore();
|
|
36542
36784
|
var spreadsheetRef = useRef(null);
|
|
36543
36785
|
var _useModule = useModule(['decisions']),
|
|
36786
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
36544
36787
|
catalogId = _useModule.catalogId,
|
|
36545
36788
|
organizationId = _useModule.organizationId,
|
|
36546
36789
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -36587,7 +36830,7 @@ function TableDecisions () {
|
|
|
36587
36830
|
catalogId: catalogId,
|
|
36588
36831
|
organizationId: organizationId
|
|
36589
36832
|
};
|
|
36590
|
-
}, [catalogId]);
|
|
36833
|
+
}, [catalogId, organizationId]);
|
|
36591
36834
|
var hooks = useMemo(function () {
|
|
36592
36835
|
return {
|
|
36593
36836
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -36638,28 +36881,7 @@ function TableDecisions () {
|
|
|
36638
36881
|
headerName: 'backoffice.idmCatalog.decisions.label.decisionNo',
|
|
36639
36882
|
required: true,
|
|
36640
36883
|
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
|
-
}, {
|
|
36884
|
+
}, createTranslatedColumnConfig('decisionText', 'backoffice.idmCatalog.decisions.label.decisionText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
36663
36885
|
field: 'comment',
|
|
36664
36886
|
headerName: 'backoffice.idmCatalog.decisions.label.comment'
|
|
36665
36887
|
}, {
|
|
@@ -36743,7 +36965,7 @@ function TableDecisions () {
|
|
|
36743
36965
|
defaultValue: '${catalogId}'
|
|
36744
36966
|
}]
|
|
36745
36967
|
};
|
|
36746
|
-
}, []);
|
|
36968
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
36747
36969
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
36748
36970
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
36749
36971
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -36752,16 +36974,16 @@ function TableDecisions () {
|
|
|
36752
36974
|
"float": 'right'
|
|
36753
36975
|
},
|
|
36754
36976
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
36755
|
-
|
|
36756
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
36757
|
-
return updateNavigation(
|
|
36977
|
+
catalogId: catalogId,
|
|
36978
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36979
|
+
return updateNavigation(catalog);
|
|
36758
36980
|
},
|
|
36759
36981
|
idmService: apiConfig.idmService,
|
|
36760
36982
|
organizationId: organizationId
|
|
36761
36983
|
})
|
|
36762
36984
|
})]
|
|
36763
36985
|
})
|
|
36764
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
36986
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
36765
36987
|
gridId: 'crud-grid_decisions',
|
|
36766
36988
|
ref: spreadsheetRef,
|
|
36767
36989
|
applicationData: applicationData,
|
|
@@ -36773,97 +36995,21 @@ function TableDecisions () {
|
|
|
36773
36995
|
|
|
36774
36996
|
function TableDetailInfos () {
|
|
36775
36997
|
var _useTranslation = useTranslation(),
|
|
36776
|
-
t = _useTranslation.t
|
|
36777
|
-
|
|
36998
|
+
t = _useTranslation.t,
|
|
36999
|
+
i18n = _useTranslation.i18n;
|
|
36778
37000
|
var _useModule = useModule(['detailinfos']),
|
|
37001
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
36779
37002
|
catalogId = _useModule.catalogId,
|
|
36780
37003
|
organizationId = _useModule.organizationId,
|
|
36781
37004
|
updateNavigation = _useModule.updateNavigation,
|
|
36782
37005
|
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
37006
|
var applicationData = useMemo(function () {
|
|
36788
37007
|
return {
|
|
36789
37008
|
catalogId: catalogId,
|
|
36790
37009
|
organizationId: organizationId
|
|
36791
37010
|
};
|
|
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
|
-
}, []);
|
|
37011
|
+
}, [catalogId, organizationId]);
|
|
36804
37012
|
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
37013
|
return {
|
|
36868
37014
|
type: 'dotnetSSM',
|
|
36869
37015
|
apiInterface: {
|
|
@@ -36876,67 +37022,7 @@ function TableDetailInfos () {
|
|
|
36876
37022
|
headerName: 'backoffice.idmCatalog.detailinfos.label.detailInfoNo',
|
|
36877
37023
|
required: true,
|
|
36878
37024
|
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
|
-
}, {
|
|
37025
|
+
}, 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
37026
|
field: 'url',
|
|
36941
37027
|
headerName: 'backoffice.idmCatalog.detailinfos.label.url',
|
|
36942
37028
|
required: true
|
|
@@ -36956,7 +37042,7 @@ function TableDetailInfos () {
|
|
|
36956
37042
|
required: true,
|
|
36957
37043
|
cellDataType: 'enum',
|
|
36958
37044
|
customParams: {
|
|
36959
|
-
enumData:
|
|
37045
|
+
enumData: getInfoTypeKey(t),
|
|
36960
37046
|
displayLabelTemplate: '${name} (${value})'
|
|
36961
37047
|
}
|
|
36962
37048
|
}, {
|
|
@@ -36964,7 +37050,7 @@ function TableDetailInfos () {
|
|
|
36964
37050
|
headerName: 'backoffice.idmCatalog.detailinfos.label.layer',
|
|
36965
37051
|
cellDataType: 'enum',
|
|
36966
37052
|
customParams: {
|
|
36967
|
-
enumData:
|
|
37053
|
+
enumData: getLayerIdKey(t),
|
|
36968
37054
|
displayLabelTemplate: '${name} (${value})'
|
|
36969
37055
|
}
|
|
36970
37056
|
}, {
|
|
@@ -36974,7 +37060,7 @@ function TableDetailInfos () {
|
|
|
36974
37060
|
editable: true,
|
|
36975
37061
|
required: true,
|
|
36976
37062
|
customParams: {
|
|
36977
|
-
enumData:
|
|
37063
|
+
enumData: getLanguageKey(t),
|
|
36978
37064
|
multiple: false
|
|
36979
37065
|
},
|
|
36980
37066
|
defaultValue: 'DE'
|
|
@@ -37030,7 +37116,7 @@ function TableDetailInfos () {
|
|
|
37030
37116
|
defaultValue: '${catalogId}'
|
|
37031
37117
|
}]
|
|
37032
37118
|
};
|
|
37033
|
-
}, []);
|
|
37119
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
|
|
37034
37120
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
37035
37121
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
37036
37122
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -37040,18 +37126,17 @@ function TableDetailInfos () {
|
|
|
37040
37126
|
},
|
|
37041
37127
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
37042
37128
|
organizationId: organizationId,
|
|
37043
|
-
|
|
37044
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
37045
|
-
return updateNavigation(
|
|
37129
|
+
catalogId: catalogId,
|
|
37130
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
37131
|
+
return updateNavigation(catalog);
|
|
37046
37132
|
},
|
|
37047
37133
|
idmService: apiConfig.idmService
|
|
37048
37134
|
})
|
|
37049
37135
|
})]
|
|
37050
37136
|
})
|
|
37051
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
37052
|
-
gridId: 'crud-
|
|
37137
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
37138
|
+
gridId: 'crud-grid_detailinfos',
|
|
37053
37139
|
applicationData: applicationData,
|
|
37054
|
-
hooks: hooks,
|
|
37055
37140
|
configuration: configuration
|
|
37056
37141
|
})]
|
|
37057
37142
|
});
|
|
@@ -37267,10 +37352,11 @@ function TablePartlists () {
|
|
|
37267
37352
|
t = _useTranslation.t;
|
|
37268
37353
|
var root = useStore();
|
|
37269
37354
|
var _useModule = useModule(['partlists']),
|
|
37355
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
37270
37356
|
catalogId = _useModule.catalogId,
|
|
37271
|
-
organizationId = _useModule.organizationId,
|
|
37272
37357
|
updateNavigation = _useModule.updateNavigation,
|
|
37273
|
-
apiConfig = _useModule.apiConfig
|
|
37358
|
+
apiConfig = _useModule.apiConfig,
|
|
37359
|
+
organizationId = _useModule.organizationId;
|
|
37274
37360
|
var _React$useState = React.useState(),
|
|
37275
37361
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
37276
37362
|
selectedPartlist = _React$useState2[0],
|
|
@@ -37303,10 +37389,10 @@ function TablePartlists () {
|
|
|
37303
37389
|
}, []);
|
|
37304
37390
|
var applicationData = useMemo(function () {
|
|
37305
37391
|
return {
|
|
37306
|
-
|
|
37307
|
-
|
|
37392
|
+
organizationId: organizationId,
|
|
37393
|
+
catalogId: catalogId
|
|
37308
37394
|
};
|
|
37309
|
-
}, [
|
|
37395
|
+
}, [organizationId, catalogId]);
|
|
37310
37396
|
var hooks = useMemo(function () {
|
|
37311
37397
|
return {
|
|
37312
37398
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -37387,16 +37473,16 @@ function TablePartlists () {
|
|
|
37387
37473
|
"float": 'right'
|
|
37388
37474
|
},
|
|
37389
37475
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
37390
|
-
|
|
37391
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
37392
|
-
return updateNavigation(
|
|
37476
|
+
catalogId: catalogId,
|
|
37477
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
37478
|
+
return updateNavigation(catalog);
|
|
37393
37479
|
},
|
|
37394
37480
|
idmService: apiConfig.idmService,
|
|
37395
37481
|
organizationId: organizationId
|
|
37396
37482
|
})
|
|
37397
37483
|
})]
|
|
37398
37484
|
})
|
|
37399
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
37485
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
37400
37486
|
gridId: 'crud-grid_partlists',
|
|
37401
37487
|
applicationData: applicationData,
|
|
37402
37488
|
hooks: hooks,
|
|
@@ -37502,7 +37588,6 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
|
37502
37588
|
field: 'featureNos',
|
|
37503
37589
|
editable: false,
|
|
37504
37590
|
filter: false,
|
|
37505
|
-
lockPosition: 'left',
|
|
37506
37591
|
headerComponent: 'editColumnHeader',
|
|
37507
37592
|
headerComponentParams: {
|
|
37508
37593
|
onChange: addFeature,
|
|
@@ -37683,7 +37768,6 @@ function PriceFeatureGroupFinishes(_ref) {
|
|
|
37683
37768
|
field: 'featureNos',
|
|
37684
37769
|
editable: false,
|
|
37685
37770
|
filter: false,
|
|
37686
|
-
lockPosition: 'left',
|
|
37687
37771
|
headerComponent: 'editColumnHeader',
|
|
37688
37772
|
headerComponentParams: {
|
|
37689
37773
|
onChange: addFeature,
|
|
@@ -37783,6 +37867,7 @@ function TablePriceFeatureGroups () {
|
|
|
37783
37867
|
var root = useStore();
|
|
37784
37868
|
var spreadsheetRef = useRef(null);
|
|
37785
37869
|
var _useModule = useModule(['pricefeaturegroups']),
|
|
37870
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
37786
37871
|
catalogId = _useModule.catalogId,
|
|
37787
37872
|
organizationId = _useModule.organizationId,
|
|
37788
37873
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -37851,7 +37936,7 @@ function TablePriceFeatureGroups () {
|
|
|
37851
37936
|
catalogId: catalogId,
|
|
37852
37937
|
organizationId: organizationId
|
|
37853
37938
|
};
|
|
37854
|
-
}, [catalogId]);
|
|
37939
|
+
}, [catalogId, organizationId]);
|
|
37855
37940
|
var hooks = useMemo(function () {
|
|
37856
37941
|
return {
|
|
37857
37942
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -37892,28 +37977,7 @@ function TablePriceFeatureGroups () {
|
|
|
37892
37977
|
headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupNo',
|
|
37893
37978
|
required: true,
|
|
37894
37979
|
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
|
-
}, {
|
|
37980
|
+
}, createTranslatedColumnConfig('priceFeatureGroupText', 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
37917
37981
|
field: 'comment',
|
|
37918
37982
|
headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.comment'
|
|
37919
37983
|
}, {
|
|
@@ -37975,7 +38039,7 @@ function TablePriceFeatureGroups () {
|
|
|
37975
38039
|
additionalFields: ['featureNosDisplayTexts']
|
|
37976
38040
|
}]
|
|
37977
38041
|
};
|
|
37978
|
-
}, []);
|
|
38042
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
37979
38043
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
37980
38044
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
37981
38045
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -37984,16 +38048,16 @@ function TablePriceFeatureGroups () {
|
|
|
37984
38048
|
"float": 'right'
|
|
37985
38049
|
},
|
|
37986
38050
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
37987
|
-
|
|
37988
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
37989
|
-
return updateNavigation(
|
|
38051
|
+
catalogId: catalogId,
|
|
38052
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
38053
|
+
return updateNavigation(catalog);
|
|
37990
38054
|
},
|
|
37991
38055
|
idmService: apiConfig.idmService,
|
|
37992
38056
|
organizationId: organizationId
|
|
37993
38057
|
})
|
|
37994
38058
|
})]
|
|
37995
38059
|
})
|
|
37996
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
38060
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
37997
38061
|
gridId: 'crud-grid_pricefeaturegroups',
|
|
37998
38062
|
ref: spreadsheetRef,
|
|
37999
38063
|
applicationData: applicationData,
|
|
@@ -38007,6 +38071,7 @@ function TablePrices () {
|
|
|
38007
38071
|
var _useTranslation = useTranslation(),
|
|
38008
38072
|
t = _useTranslation.t;
|
|
38009
38073
|
var _useModule = useModule(['prices']),
|
|
38074
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
38010
38075
|
catalogId = _useModule.catalogId,
|
|
38011
38076
|
updateNavigation = _useModule.updateNavigation,
|
|
38012
38077
|
apiConfig = _useModule.apiConfig,
|
|
@@ -38056,6 +38121,11 @@ function TablePrices () {
|
|
|
38056
38121
|
additionalFields: ['typeNoDisplayText'],
|
|
38057
38122
|
isDictionary: true,
|
|
38058
38123
|
editable: false
|
|
38124
|
+
}, {
|
|
38125
|
+
field: 'partListExclusive',
|
|
38126
|
+
headerName: 'backoffice.idmCatalog.prices.label.partListExclusive',
|
|
38127
|
+
editable: false,
|
|
38128
|
+
cellDataType: 'boolean'
|
|
38059
38129
|
}].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups.map(function (priceFeatureGroup) {
|
|
38060
38130
|
var _priceFeatureGroup$ke;
|
|
38061
38131
|
return {
|
|
@@ -38109,9 +38179,9 @@ function TablePrices () {
|
|
|
38109
38179
|
},
|
|
38110
38180
|
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
38111
38181
|
organizationId: organizationId,
|
|
38112
|
-
|
|
38113
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
38114
|
-
updateNavigation(
|
|
38182
|
+
catalogId: catalogId,
|
|
38183
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
38184
|
+
updateNavigation(catalog);
|
|
38115
38185
|
setSelectedSerie(undefined);
|
|
38116
38186
|
},
|
|
38117
38187
|
idmService: apiConfig.idmService
|
|
@@ -38124,7 +38194,7 @@ function TablePrices () {
|
|
|
38124
38194
|
})]
|
|
38125
38195
|
})]
|
|
38126
38196
|
})
|
|
38127
|
-
}), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
|
|
38197
|
+
}), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
38128
38198
|
gridId: 'crud-grid_prices',
|
|
38129
38199
|
applicationData: applicationData,
|
|
38130
38200
|
configuration: configuration
|
|
@@ -39095,7 +39165,9 @@ var toolItem = "tool-item-KyKgQ";
|
|
|
39095
39165
|
var disabled = "disabled-6aIG9";
|
|
39096
39166
|
var sel = "sel-iUm8X";
|
|
39097
39167
|
var button = "button-K-0KR";
|
|
39098
|
-
var
|
|
39168
|
+
var toolbarLayout = "toolbar-layout-DUuBn";
|
|
39169
|
+
var toolbarContent = "toolbar-content-GxyU6";
|
|
39170
|
+
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
39171
|
styleInject(css_248z$3);
|
|
39100
39172
|
|
|
39101
39173
|
var wrapper$1 = "wrapper-Q13-g";
|
|
@@ -39678,19 +39750,12 @@ function ToolElement(_ref2) {
|
|
|
39678
39750
|
return tool.elementComponent;
|
|
39679
39751
|
}, [tool.id]);
|
|
39680
39752
|
return /*#__PURE__*/jsx(Layout$1, {
|
|
39681
|
-
|
|
39682
|
-
height: '100%',
|
|
39683
|
-
width: '100%'
|
|
39684
|
-
},
|
|
39753
|
+
className: toolbarLayout,
|
|
39685
39754
|
children: /*#__PURE__*/jsx(Spin$1, {
|
|
39686
39755
|
spinning: loading,
|
|
39687
39756
|
size: "large",
|
|
39688
39757
|
children: /*#__PURE__*/jsxs(Layout$1.Content, {
|
|
39689
|
-
|
|
39690
|
-
height: '100%',
|
|
39691
|
-
width: '100%',
|
|
39692
|
-
padding: 32
|
|
39693
|
-
},
|
|
39758
|
+
className: toolbarContent,
|
|
39694
39759
|
children: [Tool, C && /*#__PURE__*/jsx(C, _objectSpread$2({}, tool.elementProps), tool.id)]
|
|
39695
39760
|
})
|
|
39696
39761
|
})
|
|
@@ -39789,6 +39854,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
39789
39854
|
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
39855
|
var LOG = getLogger('Backoffice', 'Index');
|
|
39791
39856
|
var Main = function Main(props) {
|
|
39857
|
+
var _useDivaCore = useDivaCore(),
|
|
39858
|
+
organization = _useDivaCore.state.organization;
|
|
39792
39859
|
useEffect(function () {
|
|
39793
39860
|
LOG.debug('Initial render of backoffice');
|
|
39794
39861
|
}, []);
|
|
@@ -39800,7 +39867,7 @@ var Main = function Main(props) {
|
|
|
39800
39867
|
children: /*#__PURE__*/jsx(MainLayout$1, {})
|
|
39801
39868
|
}))
|
|
39802
39869
|
})
|
|
39803
|
-
});
|
|
39870
|
+
}, organization === null || organization === void 0 ? void 0 : organization._id);
|
|
39804
39871
|
};
|
|
39805
39872
|
var DivaBackoffice = {
|
|
39806
39873
|
name: 'DIVA_BACKOFFICE_NEW',
|