@crystaldesign/diva-backoffice 25.3.0-beta.6 → 25.3.0-beta.8

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.
Files changed (59) hide show
  1. package/build/esm/index.js +501 -940
  2. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts +3 -2
  3. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -1
  4. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +3 -2
  5. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  6. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts +3 -2
  7. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
  8. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/CatalogSelector.d.ts +4 -3
  9. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/CatalogSelector.d.ts.map +1 -1
  10. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
  11. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
  12. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
  13. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
  14. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatures/index.d.ts.map +1 -1
  15. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
  16. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts.map +1 -1
  17. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
  18. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
  19. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePrices/index.d.ts.map +1 -1
  20. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
  21. package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts +5 -0
  22. package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts.map +1 -1
  23. package/build/types/backoffice/src/ui/IDMCatalogEditor/useModule.d.ts +3 -1
  24. package/build/types/backoffice/src/ui/IDMCatalogEditor/useModule.d.ts.map +1 -1
  25. package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts +14 -0
  26. package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts.map +1 -0
  27. package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts +31 -0
  28. package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts.map +1 -0
  29. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
  30. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts +4 -3
  31. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts.map +1 -1
  32. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts.map +1 -1
  33. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +1 -1
  34. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
  35. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  36. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.d.ts.map +1 -1
  37. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  38. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
  39. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts +2 -2
  40. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
  41. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts +2 -2
  42. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts.map +1 -1
  43. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts +2 -2
  44. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts.map +1 -1
  45. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts +2 -2
  46. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts.map +1 -1
  47. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts +2 -2
  48. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts.map +1 -1
  49. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts +2 -2
  50. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
  51. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts +2 -2
  52. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts.map +1 -1
  53. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
  54. package/build/types/backoffice/src/ui/IDMEnricherEditor/types.d.ts +5 -0
  55. package/build/types/backoffice/src/ui/IDMEnricherEditor/types.d.ts.map +1 -1
  56. package/build/types/backoffice/src/ui/IDMEnricherEditor/useModule.d.ts +3 -1
  57. package/build/types/backoffice/src/ui/IDMEnricherEditor/useModule.d.ts.map +1 -1
  58. package/build/types/backoffice/src/ui/SelectSimple/useSelectSimpleData.d.ts.map +1 -1
  59. package/package.json +9 -9
@@ -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_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'),
@@ -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
- setSelected(findByValue(value, options, selectMapping));
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
- selectedPackage = _ref.selectedPackage,
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&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._id);
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',
@@ -30113,7 +30143,7 @@ function useModule$1 (currentModules) {
30113
30143
  children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
30114
30144
  })
30115
30145
  }, {
30116
- key: 'option',
30146
+ key: 'options',
30117
30147
  style: {
30118
30148
  margin: 0
30119
30149
  },
@@ -30261,7 +30291,8 @@ function useModule$1 (currentModules) {
30261
30291
  if (!packageId) throw new Error('packageId is required');
30262
30292
  var updateNavigationModule = useCallback(function (currentPackage) {
30263
30293
  var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
30264
- updateNavigation(currentPackage, modules, '../');
30294
+ updateNavigation(currentPackage._id, modules, '../');
30295
+ setSelectedPackage(currentPackage);
30265
30296
  }, [updateNavigation]);
30266
30297
  useEffect(function () {
30267
30298
  //update the navigation supmenu for the packages module to include the current package id
@@ -30292,7 +30323,51 @@ function useModule$1 (currentModules) {
30292
30323
  updateNavigation: updateNavigationModule,
30293
30324
  organizationId: organizationId,
30294
30325
  apiConfig: apiConfig,
30295
- packageId: packageId
30326
+ packageId: packageId,
30327
+ selectedPackage: selectedPackage
30328
+ };
30329
+ }
30330
+
30331
+ function createTranslatedColumnConfig(field, headerName, languages) {
30332
+ var required = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
30333
+ var cellDataType = arguments.length > 4 ? arguments[4] : undefined;
30334
+ var customParams = arguments.length > 5 ? arguments[5] : undefined;
30335
+ var additionalFields = arguments.length > 6 ? arguments[6] : undefined;
30336
+ if (languages.length == 1) {
30337
+ return {
30338
+ headerName: headerName,
30339
+ field: "".concat(field, ".").concat(languages[0]),
30340
+ required: required,
30341
+ isDictionary: true,
30342
+ cellDataType: cellDataType,
30343
+ customParams: customParams ? Object.keys(customParams).reduce(function (acc, key) {
30344
+ acc[key] = "".concat(customParams[key], ".").concat(languages[0]);
30345
+ return acc;
30346
+ }, {}) : undefined,
30347
+ additionalFields: additionalFields ? additionalFields.map(function (field) {
30348
+ return "".concat(field, ".").concat(languages[0]);
30349
+ }) : undefined
30350
+ };
30351
+ }
30352
+ return {
30353
+ headerName: headerName,
30354
+ marryChildren: true,
30355
+ children: languages.map(function (language) {
30356
+ return {
30357
+ field: "".concat(field, ".").concat(language),
30358
+ headerName: 'backoffice.idmEnricher.general.label.' + language,
30359
+ required: required,
30360
+ isDictionary: true,
30361
+ cellDataType: cellDataType,
30362
+ customParams: customParams ? Object.keys(customParams).reduce(function (acc, key) {
30363
+ acc[key] = "".concat(customParams[key], ".").concat(language);
30364
+ return acc;
30365
+ }, {}) : undefined,
30366
+ additionalFields: additionalFields ? additionalFields.map(function (field) {
30367
+ return "".concat(field, ".").concat(language);
30368
+ }) : undefined
30369
+ };
30370
+ })
30296
30371
  };
30297
30372
  }
30298
30373
 
@@ -30303,7 +30378,8 @@ function TableGroups () {
30303
30378
  packageId = _useModule.packageId,
30304
30379
  organizationId = _useModule.organizationId,
30305
30380
  updateNavigation = _useModule.updateNavigation,
30306
- apiConfig = _useModule.apiConfig;
30381
+ apiConfig = _useModule.apiConfig,
30382
+ selectedPackage = _useModule.selectedPackage;
30307
30383
  var applicationData = useMemo(function () {
30308
30384
  return {
30309
30385
  packageId: packageId,
@@ -30325,29 +30401,7 @@ function TableGroups () {
30325
30401
  apiInterface: apiInterface,
30326
30402
  dateFormat: 'LL',
30327
30403
  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
- }, {
30404
+ colDef: [createTranslatedColumnConfig('name', 'backoffice.idmEnricher.groups.label.name', (selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], true), {
30351
30405
  field: 'serieNos',
30352
30406
  headerName: 'backoffice.idmEnricher.groups.label.serieNos',
30353
30407
  cellDataType: 'lookup',
@@ -30429,7 +30483,7 @@ function TableGroups () {
30429
30483
  cellDataType: 'objectId'
30430
30484
  }]
30431
30485
  };
30432
- }, [apiInterface, t]);
30486
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
30433
30487
  return /*#__PURE__*/jsxs(Fragment, {
30434
30488
  children: [/*#__PURE__*/jsx(Descriptions$1, {
30435
30489
  title: /*#__PURE__*/jsxs("div", {
@@ -30439,15 +30493,15 @@ function TableGroups () {
30439
30493
  },
30440
30494
  children: /*#__PURE__*/jsx(PackageSelector, {
30441
30495
  organizationId: organizationId,
30442
- selectedPackage: packageId,
30443
- setSelectedPackage: function setSelectedPackage(id) {
30444
- return updateNavigation(id);
30496
+ packageId: packageId,
30497
+ setSelectedPackage: function setSelectedPackage(packageId) {
30498
+ return updateNavigation(packageId);
30445
30499
  },
30446
30500
  enricherService: apiConfig.enricherService
30447
30501
  })
30448
30502
  })]
30449
30503
  })
30450
- }), /*#__PURE__*/jsx(Spreadsheet, {
30504
+ }), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
30451
30505
  gridId: 'crud-grid_groups',
30452
30506
  applicationData: applicationData,
30453
30507
  configuration: configuration
@@ -30612,10 +30666,63 @@ function LoadingModal (_ref) {
30612
30666
  });
30613
30667
  }
30614
30668
 
30669
+ var getCurrencyKey = function getCurrencyKey(t) {
30670
+ return [{
30671
+ name: t('backoffice.idmCatalog.general.label.currencies.EUR'),
30672
+ value: 'EUR'
30673
+ }, {
30674
+ name: t('backoffice.idmCatalog.general.label.currencies.USD'),
30675
+ value: 'USD'
30676
+ }, {
30677
+ name: t('backoffice.idmCatalog.general.label.currencies.GBP'),
30678
+ value: 'GBP'
30679
+ }, {
30680
+ name: t('backoffice.idmCatalog.general.label.currencies.CHF'),
30681
+ value: 'CHF'
30682
+ }];
30683
+ };
30684
+ var getLanguageKey = function getLanguageKey(t) {
30685
+ return [{
30686
+ name: t('backoffice.idmCatalog.general.label.languages.DE'),
30687
+ value: 'DE'
30688
+ }, {
30689
+ name: t('backoffice.idmCatalog.general.label.languages.EN'),
30690
+ value: 'EN'
30691
+ }, {
30692
+ name: t('backoffice.idmCatalog.general.label.languages.FR'),
30693
+ value: 'FR'
30694
+ }, {
30695
+ name: t('backoffice.idmCatalog.general.label.languages.IT'),
30696
+ value: 'IT'
30697
+ }];
30698
+ };
30699
+ var getCountryKey = function getCountryKey(t) {
30700
+ return [{
30701
+ name: t('backoffice.idmCatalog.general.label.countries.DE'),
30702
+ value: 'DE'
30703
+ }, {
30704
+ name: t('backoffice.idmCatalog.general.label.countries.US'),
30705
+ value: 'US'
30706
+ }, {
30707
+ name: t('backoffice.idmCatalog.general.label.countries.FR'),
30708
+ value: 'FR'
30709
+ }, {
30710
+ name: t('backoffice.idmCatalog.general.label.countries.IT'),
30711
+ value: 'IT'
30712
+ }, {
30713
+ name: t('backoffice.idmCatalog.general.label.countries.GB'),
30714
+ value: 'GB'
30715
+ }, {
30716
+ name: t('backoffice.idmCatalog.general.label.countries.CH'),
30717
+ value: 'CH'
30718
+ }];
30719
+ };
30720
+
30615
30721
  function TablePackages () {
30616
30722
  var root = useStore();
30617
30723
  var _useTranslation = useTranslation(),
30618
- t = _useTranslation.t;
30724
+ t = _useTranslation.t,
30725
+ i18n = _useTranslation.i18n;
30619
30726
  var _useNavigation = useNavigation$1(),
30620
30727
  organizationId = _useNavigation.organizationId,
30621
30728
  apiConfig = _useNavigation.apiConfig,
@@ -30756,7 +30863,11 @@ function TablePackages () {
30756
30863
  read: apiConfig.idmService + '/v3.0/catalogs?organizationId=${organizationId}'
30757
30864
  },
30758
30865
  lookupValue: 'name',
30759
- lookupKey: '_id'
30866
+ lookupKey: '_id',
30867
+ additionalMappings: [{
30868
+ lookupField: 'isoLanguageIds',
30869
+ targetField: 'isoLanguageIds'
30870
+ }]
30760
30871
  },
30761
30872
  additionalFields: ['basedCatalogName']
30762
30873
  }, {
@@ -30777,9 +30888,24 @@ function TablePackages () {
30777
30888
  lookupKey: '_id',
30778
30889
  filter: function filter(rowData, lookupData) {
30779
30890
  return rowData._id !== lookupData._id;
30780
- }
30891
+ },
30892
+ additionalMappings: [{
30893
+ lookupField: 'isoLanguageIds',
30894
+ targetField: 'isoLanguageIds'
30895
+ }]
30781
30896
  },
30782
30897
  additionalFields: ['basedPackageName']
30898
+ }, {
30899
+ field: 'isoLanguageIds',
30900
+ headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
30901
+ cellDataType: 'enum',
30902
+ editable: true,
30903
+ required: true,
30904
+ customParams: {
30905
+ enumData: getLanguageKey(t),
30906
+ multiple: true
30907
+ },
30908
+ defaultValue: ['DE']
30783
30909
  }, {
30784
30910
  headerName: 'backoffice.idmEnricher.general.label.lastUpdatedDate',
30785
30911
  field: 'lastUpdatedDate',
@@ -30821,7 +30947,7 @@ function TablePackages () {
30821
30947
  defaultValue: '${organizationId}'
30822
30948
  }]
30823
30949
  };
30824
- }, [apiInterface, apiConfig]);
30950
+ }, [apiInterface, apiConfig, i18n.language]);
30825
30951
  return /*#__PURE__*/jsxs(Fragment, {
30826
30952
  children: [/*#__PURE__*/jsx(Descriptions$1, {
30827
30953
  title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
@@ -30846,7 +30972,8 @@ function TableProperties () {
30846
30972
  packageId = _useModule.packageId,
30847
30973
  organizationId = _useModule.organizationId,
30848
30974
  updateNavigation = _useModule.updateNavigation,
30849
- apiConfig = _useModule.apiConfig;
30975
+ apiConfig = _useModule.apiConfig,
30976
+ selectedPackage = _useModule.selectedPackage;
30850
30977
  var applicationData = useMemo(function () {
30851
30978
  return {
30852
30979
  packageId: packageId,
@@ -30871,8 +30998,7 @@ function TableProperties () {
30871
30998
  colDef: [{
30872
30999
  field: 'key',
30873
31000
  headerName: 'backoffice.idmEnricher.properties.label.key',
30874
- required: true,
30875
- pinned: true
31001
+ required: true
30876
31002
  }, {
30877
31003
  field: 'featureNos',
30878
31004
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
@@ -30890,8 +31016,7 @@ function TableProperties () {
30890
31016
  translated: true
30891
31017
  },
30892
31018
  additionalFields: ['featureNosDisplayTexts'],
30893
- isDictionary: true,
30894
- pinned: true
31019
+ isDictionary: true
30895
31020
  }, {
30896
31021
  field: 'optionKeys',
30897
31022
  headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
@@ -30915,53 +31040,8 @@ function TableProperties () {
30915
31040
  }
30916
31041
  },
30917
31042
  additionalFields: ['optionKeysDisplayTexts'],
30918
- isDictionary: true,
30919
- pinned: true
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
- }, {
31043
+ isDictionary: true
31044
+ }, 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
31045
  field: 'serieNos',
30966
31046
  headerName: 'backoffice.idmEnricher.renaming.label.serieNos',
30967
31047
  cellDataType: 'lookup',
@@ -31043,7 +31123,7 @@ function TableProperties () {
31043
31123
  cellDataType: 'objectId'
31044
31124
  }]
31045
31125
  };
31046
- }, [apiInterface, t]);
31126
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
31047
31127
  return /*#__PURE__*/jsxs(Fragment, {
31048
31128
  children: [/*#__PURE__*/jsx(Descriptions$1, {
31049
31129
  title: /*#__PURE__*/jsxs("div", {
@@ -31053,15 +31133,15 @@ function TableProperties () {
31053
31133
  },
31054
31134
  children: /*#__PURE__*/jsx(PackageSelector, {
31055
31135
  organizationId: organizationId,
31056
- selectedPackage: packageId,
31057
- setSelectedPackage: function setSelectedPackage(id) {
31058
- return updateNavigation(id);
31136
+ packageId: packageId,
31137
+ setSelectedPackage: function setSelectedPackage(packageId) {
31138
+ return updateNavigation(packageId);
31059
31139
  },
31060
31140
  enricherService: apiConfig.enricherService
31061
31141
  })
31062
31142
  })]
31063
31143
  })
31064
- }), /*#__PURE__*/jsx(Spreadsheet, {
31144
+ }), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
31065
31145
  gridId: 'crud-grid_properties',
31066
31146
  applicationData: applicationData,
31067
31147
  configuration: configuration
@@ -31069,337 +31149,90 @@ function TableProperties () {
31069
31149
  });
31070
31150
  }
31071
31151
 
31072
- var config$2 = {
31073
- colDef: [{
31074
- headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
31075
- field: 'featureNo',
31076
- required: true,
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,
31086
- cellDataType: 'withPlaceholder',
31087
- customParams: {
31088
- placeHolderField: 'origFeatureText.DE',
31089
- combinedField: 'featureText.DE'
31090
- },
31091
- additionalFields: ['origFeatureText.DE', 'featureText.DE'],
31152
+ var getConfig$3 = function getConfig(isoLanguageIds) {
31153
+ return {
31154
+ colDef: [{
31155
+ headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
31156
+ field: 'featureNo',
31157
+ required: true,
31158
+ editable: false,
31092
31159
  pinned: 'left'
31093
- }, {
31094
- field: 'translatedFeatureText.EN',
31095
- headerName: 'backoffice.idmEnricher.general.label.EN',
31096
- isDictionary: true,
31097
- cellDataType: 'withPlaceholder',
31098
- customParams: {
31099
- placeHolderField: 'origFeatureText.EN',
31100
- combinedField: 'featureText.EN'
31101
- },
31102
- additionalFields: ['origFeatureText.EN', 'featureText.EN']
31103
- }, {
31104
- field: 'translatedFeatureText.FR',
31105
- headerName: 'backoffice.idmEnricher.general.label.FR',
31106
- isDictionary: true,
31107
- cellDataType: 'withPlaceholder',
31108
- customParams: {
31109
- placeHolderField: 'origFeatureText.FR',
31110
- combinedField: 'featureText.FR'
31111
- },
31112
- additionalFields: ['origFeatureText.FR', 'featureText.FR']
31113
- }, {
31114
- field: 'translatedFeatureText.IT',
31115
- headerName: 'backoffice.idmEnricher.general.label.IT',
31116
- isDictionary: true,
31117
- cellDataType: 'withPlaceholder',
31118
- customParams: {
31119
- placeHolderField: 'origFeatureText.IT',
31120
- combinedField: 'featureText.IT'
31121
- },
31122
- additionalFields: ['origFeatureText.IT', 'featureText.IT']
31123
- }]
31124
- }]
31160
+ }, createTranslatedColumnConfig('translatedFeatureText', 'backoffice.idmEnricher.renaming.label.featuretext', isoLanguageIds, true, 'withPlaceholder', {
31161
+ placeHolderField: 'origFeatureText',
31162
+ combinedField: 'featureText'
31163
+ }, ['origFeatureText', 'featureText'])]
31164
+ };
31125
31165
  };
31126
31166
 
31127
- var config$1 = {
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,
31141
- cellDataType: 'withPlaceholder',
31142
- customParams: {
31143
- placeHolderField: 'origShortText.DE',
31144
- combinedField: 'shortText.DE'
31145
- },
31146
- additionalFields: ['origShortText.DE', 'shortText.DE'],
31167
+ var getConfig$2 = function getConfig(isoLanguageIds) {
31168
+ return {
31169
+ colDef: [{
31170
+ headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
31171
+ field: 'typeNo',
31172
+ required: true,
31173
+ editable: false,
31147
31174
  pinned: 'left'
31148
- }, {
31149
- field: 'translatedShortText.EN',
31150
- headerName: 'backoffice.idmEnricher.general.label.EN',
31151
- isDictionary: true,
31152
- cellDataType: 'withPlaceholder',
31153
- customParams: {
31154
- placeHolderField: 'origShortText.EN',
31155
- combinedField: 'shortText.EN'
31156
- },
31157
- additionalFields: ['origShortText.EN', 'shortText.EN']
31158
- }, {
31159
- field: 'translatedShortText.FR',
31160
- headerName: 'backoffice.idmEnricher.general.label.FR',
31161
- isDictionary: true,
31162
- cellDataType: 'withPlaceholder',
31163
- customParams: {
31164
- placeHolderField: 'origShortText.FR',
31165
- combinedField: 'shortText.FR'
31166
- },
31167
- additionalFields: ['origShortText.FR', 'shortText.FR']
31168
- }, {
31169
- field: 'translatedShortText.IT',
31170
- headerName: 'backoffice.idmEnricher.general.label.IT',
31171
- isDictionary: true,
31172
- cellDataType: 'withPlaceholder',
31173
- customParams: {
31174
- placeHolderField: 'origShortText.IT',
31175
- combinedField: 'shortText.IT'
31176
- },
31177
- additionalFields: ['origShortText.IT', 'shortText.IT']
31178
- }]
31179
- }, {
31180
- headerName: 'backoffice.idmEnricher.renaming.label.fullText',
31181
- marryChildren: true,
31182
- children: [{
31183
- field: 'translatedFullText.DE',
31184
- headerName: 'backoffice.idmEnricher.general.label.DE',
31185
- isDictionary: true,
31186
- cellDataType: 'withPlaceholder',
31187
- customParams: {
31188
- placeHolderField: 'origFullText.DE',
31189
- combinedField: 'fullText.DE'
31190
- },
31191
- additionalFields: ['origFullText.DE', 'fullText.DE']
31192
- }, {
31193
- field: 'translatedFullText.EN',
31194
- headerName: 'backoffice.idmEnricher.general.label.EN',
31195
- isDictionary: true,
31196
- cellDataType: 'withPlaceholder',
31197
- customParams: {
31198
- placeHolderField: 'origFullText.EN',
31199
- combinedField: 'fullText.EN'
31200
- },
31201
- additionalFields: ['origFullText.EN', 'fullText.EN']
31202
- }, {
31203
- field: 'translatedFullText.FR',
31204
- headerName: 'backoffice.idmEnricher.general.label.FR',
31205
- isDictionary: true,
31206
- cellDataType: 'withPlaceholder',
31207
- customParams: {
31208
- placeHolderField: 'origFullText.FR',
31209
- combinedField: 'fullText.FR'
31210
- },
31211
- additionalFields: ['origFullText.FR', 'fullText.FR']
31212
- }, {
31213
- field: 'translatedFullText.IT',
31214
- headerName: 'backoffice.idmEnricher.general.label.IT',
31215
- isDictionary: true,
31175
+ }, createTranslatedColumnConfig('translatedShortText', 'backoffice.idmEnricher.renaming.label.shortText', isoLanguageIds, true, 'withPlaceholder', {
31176
+ placeHolderField: 'origShortText',
31177
+ combinedField: 'shortText'
31178
+ }, ['origShortText', 'shortText']), createTranslatedColumnConfig('translatedFullText', 'backoffice.idmEnricher.renaming.label.fullText', isoLanguageIds, true, 'withPlaceholder', {
31179
+ placeHolderField: 'origFullText',
31180
+ combinedField: 'fullText'
31181
+ }, ['origFullText', 'fullText']), createTranslatedColumnConfig('translatedPlanningAdvice', 'backoffice.idmEnricher.renaming.label.planningAdvice', isoLanguageIds, true, 'withPlaceholder', {
31182
+ placeHolderField: 'origPlanningAdvice',
31183
+ combinedField: 'planningAdvice'
31184
+ }, ['origPlanningAdvice', 'planningAdvice']), {
31185
+ headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
31186
+ field: 'translatedSalesNumber',
31216
31187
  cellDataType: 'withPlaceholder',
31217
31188
  customParams: {
31218
- placeHolderField: 'origFullText.IT',
31219
- combinedField: 'fullText.IT'
31189
+ placeHolderField: 'origSalesNumber',
31190
+ combinedField: 'salesNumber'
31220
31191
  },
31221
- additionalFields: ['origFullText.IT', 'fullText.IT']
31222
- }]
31223
- }, {
31224
- headerName: 'backoffice.idmEnricher.renaming.label.planningAdvice',
31225
- marryChildren: true,
31226
- children: [{
31227
- field: 'translatedPlanningAdvice.DE',
31228
- headerName: 'backoffice.idmEnricher.general.label.DE',
31229
- isDictionary: true,
31230
- cellDataType: 'withPlaceholder',
31231
- customParams: {
31232
- placeHolderField: 'origPlanningAdvice.DE',
31233
- combinedField: 'planningAdvice.DE'
31234
- },
31235
- additionalFields: ['origPlanningAdvice.DE', 'planningAdvice.DE']
31192
+ additionalFields: ['origSalesNumber', 'salesNumber']
31236
31193
  }, {
31237
- field: 'translatedPlanningAdvice.EN',
31238
- headerName: 'backoffice.idmEnricher.general.label.EN',
31239
- isDictionary: true,
31240
- cellDataType: 'withPlaceholder',
31241
- customParams: {
31242
- placeHolderField: 'origPlanningAdvice.EN',
31243
- combinedField: 'planningAdvice.EN'
31244
- },
31245
- additionalFields: ['origPlanningAdvice.EN', 'planningAdvice.EN']
31194
+ field: 'sequenceNo',
31195
+ headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
31196
+ editable: false,
31197
+ cellDataType: 'number'
31246
31198
  }, {
31247
- field: 'translatedPlanningAdvice.FR',
31248
- headerName: 'backoffice.idmEnricher.general.label.FR',
31249
- isDictionary: true,
31199
+ headerName: 'backoffice.idmEnricher.renaming.label.edpnummer',
31200
+ field: 'translatedEdpNumber',
31250
31201
  cellDataType: 'withPlaceholder',
31251
31202
  customParams: {
31252
- placeHolderField: 'origPlanningAdvice.FR',
31253
- combinedField: 'planningAdvice.FR'
31203
+ placeHolderField: 'origEdpNumber',
31204
+ combinedField: 'edpNumber'
31254
31205
  },
31255
- additionalFields: ['origPlanningAdvice.FR', 'planningAdvice.FR']
31206
+ additionalFields: ['origEdpNumber', 'edpNumber']
31256
31207
  }, {
31257
- field: 'translatedPlanningAdvice.IT',
31258
- headerName: 'backoffice.idmEnricher.general.label.IT',
31259
- isDictionary: true,
31208
+ headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
31209
+ field: 'translatedEanNumber',
31260
31210
  cellDataType: 'withPlaceholder',
31261
31211
  customParams: {
31262
- placeHolderField: 'origPlanningAdvice.IT',
31263
- combinedField: 'planningAdvice.IT'
31212
+ placeHolderField: 'origEanNumber',
31213
+ combinedField: 'eanNumber'
31264
31214
  },
31265
- additionalFields: ['origPlanningAdvice.IT', 'planningAdvice.IT']
31215
+ additionalFields: ['origEanNumber', 'eanNumber']
31266
31216
  }]
31267
- }, {
31268
- headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
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
- }]
31217
+ };
31300
31218
  };
31301
31219
 
31302
- var config = {
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,
31316
- cellDataType: 'withPlaceholder',
31317
- customParams: {
31318
- placeHolderField: 'origOptionText.DE',
31319
- combinedField: 'optionText.DE',
31320
- maxLength: 60
31321
- },
31322
- additionalFields: ['origOptionText.DE', 'optionText.DE'],
31220
+ var getConfig$1 = function getConfig(isoLanguageIds) {
31221
+ return {
31222
+ colDef: [{
31223
+ headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
31224
+ field: 'optionKey',
31225
+ required: true,
31226
+ editable: false,
31323
31227
  pinned: 'left'
31324
- }, {
31325
- field: 'translatedOptionText.EN',
31326
- headerName: 'backoffice.idmEnricher.general.label.EN',
31327
- isDictionary: true,
31328
- cellDataType: 'withPlaceholder',
31329
- customParams: {
31330
- placeHolderField: 'origOptionText.EN',
31331
- combinedField: 'optionText.EN',
31332
- maxLength: 60
31333
- },
31334
- additionalFields: ['origOptionText.EN', 'optionText.EN']
31335
- }, {
31336
- field: 'translatedOptionText.FR',
31337
- headerName: 'backoffice.idmEnricher.general.label.FR',
31338
- isDictionary: true,
31339
- cellDataType: 'withPlaceholder',
31340
- customParams: {
31341
- placeHolderField: 'origOptionText.FR',
31342
- combinedField: 'optionText.FR',
31343
- maxLength: 60
31344
- },
31345
- additionalFields: ['origOptionText.FR', 'optionText.FR']
31346
- }, {
31347
- field: 'translatedOptionText.IT',
31348
- headerName: 'backoffice.idmEnricher.general.label.IT',
31349
- isDictionary: true,
31350
- cellDataType: 'withPlaceholder',
31351
- customParams: {
31352
- placeHolderField: 'origOptionText.IT',
31353
- combinedField: 'optionText.IT',
31354
- maxLength: 60
31355
- },
31356
- additionalFields: ['origOptionText.IT', 'optionText.IT']
31357
- }]
31358
- }, {
31359
- headerName: 'backoffice.idmEnricher.renaming.label.optionCommentText',
31360
- marryChildren: true,
31361
- children: [{
31362
- field: 'translatedOptionCommentText.DE',
31363
- headerName: 'backoffice.idmEnricher.general.label.DE',
31364
- isDictionary: true,
31365
- cellDataType: 'withPlaceholder',
31366
- customParams: {
31367
- placeHolderField: 'origOptionCommentText.DE',
31368
- combinedField: 'optionCommentText.DE'
31369
- },
31370
- additionalFields: ['origOptionCommentText.DE', 'optionCommentText.DE']
31371
- }, {
31372
- field: 'translatedOptionCommentText.EN',
31373
- headerName: 'backoffice.idmEnricher.general.label.EN',
31374
- isDictionary: true,
31375
- cellDataType: 'withPlaceholder',
31376
- customParams: {
31377
- placeHolderField: 'origOptionCommentText.EN',
31378
- combinedField: 'optionCommentText.EN'
31379
- },
31380
- additionalFields: ['origOptionCommentText.EN', 'optionCommentText.EN']
31381
- }, {
31382
- field: 'translatedOptionCommentText.FR',
31383
- headerName: 'backoffice.idmEnricher.general.label.FR',
31384
- isDictionary: true,
31385
- cellDataType: 'withPlaceholder',
31386
- customParams: {
31387
- placeHolderField: 'origOptionCommentText.FR',
31388
- combinedField: 'optionCommentText.FR'
31389
- },
31390
- additionalFields: ['origOptionCommentText.FR', 'optionCommentText.FR']
31391
- }, {
31392
- field: 'translatedOptionCommentText.IT',
31393
- headerName: 'backoffice.idmEnricher.general.label.IT',
31394
- isDictionary: true,
31395
- cellDataType: 'withPlaceholder',
31396
- customParams: {
31397
- placeHolderField: 'origOptionCommentText.IT',
31398
- combinedField: 'optionCommentText.IT'
31399
- },
31400
- additionalFields: ['origOptionCommentText.IT', 'optionCommentText.IT']
31401
- }]
31402
- }]
31228
+ }, createTranslatedColumnConfig('translatedOptionText', 'backoffice.idmEnricher.renaming.label.optionText', isoLanguageIds, true, 'withPlaceholder', {
31229
+ placeHolderField: 'origOptionText',
31230
+ combinedField: 'optionText'
31231
+ }, ['origOptionText', 'optionText']), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, true, 'withPlaceholder', {
31232
+ placeHolderField: 'origOptionCommentText',
31233
+ combinedField: 'optionCommentText'
31234
+ }, ['origOptionCommentText', 'optionCommentText'])]
31235
+ };
31403
31236
  };
31404
31237
 
31405
31238
  function SeriesSelector$1(_ref) {
@@ -31469,76 +31302,38 @@ function FeatureSelector$1(_ref) {
31469
31302
  }, packageId);
31470
31303
  }
31471
31304
 
31472
- function useConfiguration (configuration) {
31473
- var _useState = useState([]),
31474
- _useState2 = _slicedToArray(_useState, 2),
31475
- countryCodes = _useState2[0];
31476
- _useState2[1];
31477
- var _useTranslation = useTranslation();
31478
- _useTranslation.t;
31479
- // useEffect(() => {
31480
- // (async () => {
31481
- // const response = await fetch('/country_codes.json');
31482
- // const data = await response.json();
31483
- // setCountryCodes(
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
-
31512
31305
  var RenamingFeature = function RenamingFeature() {
31513
31306
  return /*#__PURE__*/jsx(RenamingTable, {
31514
31307
  type: "features",
31515
- config: config$2
31308
+ getConfig: getConfig$3
31516
31309
  });
31517
31310
  };
31518
31311
  var RenamingItem = function RenamingItem() {
31519
31312
  return /*#__PURE__*/jsx(RenamingTable, {
31520
31313
  type: "items",
31521
- config: config$1
31314
+ getConfig: getConfig$2
31522
31315
  });
31523
31316
  };
31524
31317
  var RenamingOption = function RenamingOption() {
31525
31318
  return /*#__PURE__*/jsx(RenamingTable, {
31526
31319
  type: "options",
31527
- config: config
31320
+ getConfig: getConfig$1
31528
31321
  });
31529
31322
  };
31530
31323
  var RenamingTable = function RenamingTable(_ref) {
31531
31324
  var type = _ref.type,
31532
- config = _ref.config;
31325
+ getConfig = _ref.getConfig;
31533
31326
  var _useTranslation = useTranslation(),
31534
31327
  t = _useTranslation.t;
31535
31328
  var _useModule = useModule$1(['renaming', type]),
31536
31329
  packageId = _useModule.packageId,
31537
31330
  organizationId = _useModule.organizationId,
31538
31331
  updateNavigation = _useModule.updateNavigation,
31539
- apiConfig = _useModule.apiConfig;
31540
- var _useConfiguration = useConfiguration(config),
31541
- baseConfiguration = _useConfiguration.configuration;
31332
+ apiConfig = _useModule.apiConfig,
31333
+ selectedPackage = _useModule.selectedPackage;
31334
+ var baseConfiguration = useMemo(function () {
31335
+ return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE']);
31336
+ }, [selectedPackage]);
31542
31337
  var _React$useState = React.useState(),
31543
31338
  _React$useState2 = _slicedToArray(_React$useState, 2),
31544
31339
  selectedSerie = _React$useState2[0],
@@ -31552,18 +31347,33 @@ var RenamingTable = function RenamingTable(_ref) {
31552
31347
  packageId: packageId
31553
31348
  };
31554
31349
  }, [packageId]);
31350
+ var prevPreFilter = useRef();
31555
31351
  var preFilter = useMemo(function () {
31556
- return type === 'options' && selectedFeature ? {
31557
- filterType: 'text',
31558
- type: 'equals',
31559
- colId: 'featureNo',
31560
- filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
31561
- } : type === 'items' && selectedSerie ? {
31562
- filterType: 'number',
31563
- type: 'equals',
31564
- colId: 'serieNo',
31565
- filter: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo
31566
- } : undefined;
31352
+ if (type === 'options' && !selectedFeature) {
31353
+ return prevPreFilter.current;
31354
+ } else if (type === 'items' && selectedSerie) {
31355
+ var newFilter = {
31356
+ filterType: 'text',
31357
+ type: 'equals',
31358
+ colId: 'featureNo',
31359
+ filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
31360
+ };
31361
+ prevPreFilter.current = newFilter;
31362
+ return newFilter;
31363
+ }
31364
+ if (type === 'items' && !selectedSerie) {
31365
+ return prevPreFilter.current;
31366
+ } else if (type === 'options' && selectedFeature) {
31367
+ var _newFilter = {
31368
+ filterType: 'text',
31369
+ type: 'equals',
31370
+ colId: 'featureNo',
31371
+ filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
31372
+ };
31373
+ prevPreFilter.current = _newFilter;
31374
+ return _newFilter;
31375
+ }
31376
+ return undefined;
31567
31377
  }, [type, selectedSerie, selectedFeature]);
31568
31378
  var apiInterface = useMemo(function () {
31569
31379
  return {
@@ -31595,8 +31405,8 @@ var RenamingTable = function RenamingTable(_ref) {
31595
31405
  };
31596
31406
  }, [apiInterface, baseConfiguration.colDef]);
31597
31407
  var showTable = useMemo(function () {
31598
- return !['items', 'options'].includes(type) || type === 'items' && selectedSerie || type === 'options' && selectedFeature;
31599
- }, [type, selectedSerie, selectedFeature]);
31408
+ return selectedPackage && (!['items', 'options'].includes(type) || type === 'items' && preFilter || type === 'options' && preFilter);
31409
+ }, [type, preFilter, selectedPackage]);
31600
31410
  return /*#__PURE__*/jsxs(Fragment, {
31601
31411
  children: [/*#__PURE__*/jsx(Descriptions$1, {
31602
31412
  title: /*#__PURE__*/jsxs("div", {
@@ -31606,9 +31416,9 @@ var RenamingTable = function RenamingTable(_ref) {
31606
31416
  },
31607
31417
  children: [/*#__PURE__*/jsx(PackageSelector, {
31608
31418
  organizationId: organizationId,
31609
- selectedPackage: packageId,
31610
- setSelectedPackage: function setSelectedPackage(id) {
31611
- return updateNavigation(id);
31419
+ packageId: packageId,
31420
+ setSelectedPackage: function setSelectedPackage(packageId) {
31421
+ return updateNavigation(packageId);
31612
31422
  },
31613
31423
  enricherService: apiConfig.enricherService
31614
31424
  }), type === 'items' && /*#__PURE__*/jsx(SeriesSelector$1, {
@@ -32056,7 +31866,6 @@ var ExclusivityFeatureOption = function ExclusivityFeatureOption() {
32056
31866
  });
32057
31867
  };
32058
31868
  var ExclusivityTable = function ExclusivityTable(_ref) {
32059
- var _selectedSerie$series;
32060
31869
  var type = _ref.type,
32061
31870
  config = _ref.config;
32062
31871
  var _useTranslation6 = useTranslation(),
@@ -32073,37 +31882,39 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
32073
31882
  packageId = _useModule.packageId,
32074
31883
  updateNavigation = _useModule.updateNavigation,
32075
31884
  apiConfig = _useModule.apiConfig,
32076
- organizationId = _useModule.organizationId;
32077
- var applicationData = useMemo(function () {
31885
+ organizationId = _useModule.organizationId,
31886
+ selectedPackage = _useModule.selectedPackage;
31887
+ var apiInterface = useMemo(function () {
31888
+ var patchId = '${_id}';
31889
+ if (type === 'eitem') patchId = '${typeNo}';
31890
+ if (type === 'eoption') patchId = '${optionKey}';
31891
+ var subType = type === 'eitem' ? 'series' : 'features';
31892
+ var listType = type === 'eitem' ? 'items' : 'options';
32078
31893
  return {
31894
+ read: !['eitem', 'eoption'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
31895
+ update: !['eitem', 'eoption'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
31896
+ };
31897
+ }, [type]);
31898
+ var oldDataRef = useRef();
31899
+ var applicationData = useMemo(function () {
31900
+ if (type === 'eitem' && !selectedSerie) {
31901
+ return oldDataRef.current;
31902
+ }
31903
+ if (type === 'eoption' && !selectedFeature) {
31904
+ return oldDataRef.current;
31905
+ }
31906
+ var newData = {
32079
31907
  type: type,
32080
31908
  packageId: packageId,
32081
- organizationId: organizationId
31909
+ organizationId: organizationId,
31910
+ subTypeId: type === 'eitem' ? selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id : selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id
32082
31911
  };
32083
- }, [type, packageId, organizationId]);
31912
+ oldDataRef.current = newData;
31913
+ return newData;
31914
+ }, [type, packageId, organizationId, selectedSerie, selectedFeature]);
32084
31915
  var showTable = useMemo(function () {
32085
- return type !== 'eitem' && type !== 'eoption' || type === 'eitem' && selectedSerie || type === 'eoption' && selectedFeature;
32086
- }, [type, selectedSerie, selectedFeature]);
32087
- var patchId = useMemo(function () {
32088
- if (type === 'eitem' && selectedSerie) return '${typeNo}';
32089
- if (type === 'eoption' && selectedFeature) return '${optionKey}';
32090
- return '${_id}';
32091
- }, [type, selectedSerie, selectedFeature]);
32092
- var subType = useMemo(function () {
32093
- return type === 'eitem' ? 'series' : 'features';
32094
- }, [type]);
32095
- var listType = useMemo(function () {
32096
- return type === 'eitem' ? 'items' : 'options';
32097
- }, [type]);
32098
- var subTypeId = useMemo(function () {
32099
- return type === 'eitem' ? selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id : selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id;
32100
- }, [type, selectedSerie, selectedFeature]);
32101
- var apiInterface = useMemo(function () {
32102
- return {
32103
- read: !selectedSerie && !selectedFeature ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + subTypeId + '/' + listType,
32104
- update: !selectedSerie && !selectedFeature ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + subTypeId + '/' + listType + '/' + patchId
32105
- };
32106
- }, [selectedSerie, selectedFeature, subType, subTypeId, listType, patchId]);
31916
+ return selectedPackage && (!['eitem', 'eoption'].includes(type) || type === 'eitem' && applicationData || type === 'eoption' && applicationData);
31917
+ }, [type, applicationData, selectedPackage]);
32107
31918
  var configuration = useMemo(function () {
32108
31919
  return {
32109
31920
  type: 'dotnetSSM',
@@ -32143,9 +31954,9 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
32143
31954
  },
32144
31955
  children: [/*#__PURE__*/jsx(PackageSelector, {
32145
31956
  organizationId: organizationId,
32146
- selectedPackage: packageId,
32147
- setSelectedPackage: function setSelectedPackage(id) {
32148
- return updateNavigation(id);
31957
+ packageId: packageId,
31958
+ setSelectedPackage: function setSelectedPackage(packageId) {
31959
+ return updateNavigation(packageId);
32149
31960
  },
32150
31961
  enricherService: apiConfig.enricherService
32151
31962
  }), type === 'eitem' && /*#__PURE__*/jsx(SeriesSelector$1, {
@@ -32164,7 +31975,7 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
32164
31975
  })]
32165
31976
  })
32166
31977
  }), showTable && /*#__PURE__*/jsx(Spreadsheet, {
32167
- gridId: 'crud-grid_exclusivity_' + type + ((_selectedSerie$series = selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.seriesName.DE) !== null && _selectedSerie$series !== void 0 ? _selectedSerie$series : ''),
31978
+ gridId: 'crud-grid_exclusivity_' + type,
32168
31979
  applicationData: applicationData,
32169
31980
  configuration: configuration
32170
31981
  })]
@@ -32178,7 +31989,8 @@ function TableTabGroups () {
32178
31989
  packageId = _useModule.packageId,
32179
31990
  organizationId = _useModule.organizationId,
32180
31991
  updateNavigation = _useModule.updateNavigation,
32181
- apiConfig = _useModule.apiConfig;
31992
+ apiConfig = _useModule.apiConfig,
31993
+ selectedPackage = _useModule.selectedPackage;
32182
31994
  var applicationData = useMemo(function () {
32183
31995
  return {
32184
31996
  packageId: packageId,
@@ -32219,28 +32031,7 @@ function TableTabGroups () {
32219
32031
  },
32220
32032
  additionalFields: ['featureNosDisplayTexts'],
32221
32033
  isDictionary: true
32222
- }, {
32223
- headerName: 'Name',
32224
- marryChildren: true,
32225
- required: true,
32226
- children: [{
32227
- field: 'name.DE',
32228
- headerName: 'backoffice.idmEnricher.general.label.DE',
32229
- isDictionary: true
32230
- }, {
32231
- field: 'name.EN',
32232
- headerName: 'backoffice.idmEnricher.general.label.EN',
32233
- isDictionary: true
32234
- }, {
32235
- field: 'name.FR',
32236
- headerName: 'backoffice.idmEnricher.general.label.FR',
32237
- isDictionary: true
32238
- }, {
32239
- field: 'name.IT',
32240
- headerName: 'backoffice.idmEnricher.general.label.IT',
32241
- isDictionary: true
32242
- }]
32243
- }, {
32034
+ }, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', (selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], true), {
32244
32035
  field: 'organizationId',
32245
32036
  cellDataType: 'string',
32246
32037
  editable: false,
@@ -32271,7 +32062,7 @@ function TableTabGroups () {
32271
32062
  cellDataType: 'objectId'
32272
32063
  }]
32273
32064
  };
32274
- }, [apiInterface]);
32065
+ }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
32275
32066
  return /*#__PURE__*/jsxs(Fragment, {
32276
32067
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32277
32068
  title: /*#__PURE__*/jsxs("div", {
@@ -32281,15 +32072,15 @@ function TableTabGroups () {
32281
32072
  },
32282
32073
  children: /*#__PURE__*/jsx(PackageSelector, {
32283
32074
  organizationId: organizationId,
32284
- selectedPackage: packageId,
32285
- setSelectedPackage: function setSelectedPackage(id) {
32286
- return updateNavigation(id);
32075
+ packageId: packageId,
32076
+ setSelectedPackage: function setSelectedPackage(packageId) {
32077
+ return updateNavigation(packageId);
32287
32078
  },
32288
32079
  enricherService: apiConfig.enricherService
32289
32080
  })
32290
32081
  })]
32291
32082
  })
32292
- }), /*#__PURE__*/jsx(Spreadsheet, {
32083
+ }), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
32293
32084
  gridId: 'crud-grid_tabgroups',
32294
32085
  applicationData: applicationData,
32295
32086
  configuration: configuration
@@ -32304,7 +32095,8 @@ function TablePartlistPos () {
32304
32095
  packageId = _useModule.packageId,
32305
32096
  organizationId = _useModule.organizationId,
32306
32097
  updateNavigation = _useModule.updateNavigation,
32307
- apiConfig = _useModule.apiConfig;
32098
+ apiConfig = _useModule.apiConfig,
32099
+ selectedPackage = _useModule.selectedPackage;
32308
32100
  var posInvisibility = useMemo(function () {
32309
32101
  return [{
32310
32102
  name: t('backoffice.idmCatalogEditor.partlistpos.label.pi0'),
@@ -32339,6 +32131,16 @@ function TablePartlistPos () {
32339
32131
  dateFormat: 'LL',
32340
32132
  floatingFilter: true,
32341
32133
  colDef: [{
32134
+ headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
32135
+ field: 'retailPrefix',
32136
+ editable: true,
32137
+ pinned: 'left'
32138
+ }, {
32139
+ headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
32140
+ field: 'retailArtilceNumber',
32141
+ editable: true,
32142
+ pinned: 'left'
32143
+ }, {
32342
32144
  headerName: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
32343
32145
  field: 'partlistKey',
32344
32146
  editable: false
@@ -32384,7 +32186,7 @@ function TablePartlistPos () {
32384
32186
  field: 'decisions',
32385
32187
  headerName: 'backoffice.idmEnricher.partlistpos.label.decisions',
32386
32188
  cellDataType: 'lookup',
32387
- editable: true,
32189
+ editable: false,
32388
32190
  customParams: {
32389
32191
  nameField: 'decisionRefsDisplayTexts',
32390
32192
  filterCellType: 'number',
@@ -32394,14 +32196,6 @@ function TablePartlistPos () {
32394
32196
  },
32395
32197
  additionalFields: ['decisionRefsDisplayTexts'],
32396
32198
  isDictionary: true
32397
- }, {
32398
- headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
32399
- field: 'retailPrefix',
32400
- editable: true
32401
- }, {
32402
- headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
32403
- field: 'retailArtilceNumber',
32404
- editable: true
32405
32199
  }, {
32406
32200
  headerName: 'backoffice.idmEnricher.partlistpos.label.posCountValue',
32407
32201
  field: 'posCountValue',
@@ -32457,15 +32251,15 @@ function TablePartlistPos () {
32457
32251
  },
32458
32252
  children: /*#__PURE__*/jsx(PackageSelector, {
32459
32253
  organizationId: organizationId,
32460
- selectedPackage: packageId,
32461
- setSelectedPackage: function setSelectedPackage(id) {
32462
- return updateNavigation(id);
32254
+ packageId: packageId,
32255
+ setSelectedPackage: function setSelectedPackage(packageId) {
32256
+ return updateNavigation(packageId);
32463
32257
  },
32464
32258
  enricherService: apiConfig.enricherService
32465
32259
  })
32466
32260
  })]
32467
32261
  })
32468
- }), /*#__PURE__*/jsx(Spreadsheet, {
32262
+ }), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
32469
32263
  gridId: 'crud-grid_epartlistpos',
32470
32264
  applicationData: applicationData,
32471
32265
  configuration: configuration
@@ -33202,6 +32996,8 @@ function Prices (_ref) {
33202
32996
  headerName: priceFeatureGroupItem,
33203
32997
  field: "prices.".concat(priceFeatureGroupItem),
33204
32998
  editable: true,
32999
+ filter: false,
33000
+ sortable: false,
33205
33001
  isDictionary: true,
33206
33002
  cellDataType: 'number',
33207
33003
  headerTooltip: (_priceFeatureGroup$ke3 = priceFeatureGroup.keysDisplayTexts) === null || _priceFeatureGroup$ke3 === void 0 ? void 0 : _priceFeatureGroup$ke3[j],
@@ -33330,14 +33126,16 @@ function Prices (_ref) {
33330
33126
 
33331
33127
  function TablePriceList () {
33332
33128
  var _useTranslation = useTranslation(),
33333
- t = _useTranslation.t;
33129
+ t = _useTranslation.t,
33130
+ i18n = _useTranslation.i18n;
33334
33131
  var root = useStore();
33335
33132
  var spreadsheetRef = useRef(null);
33336
33133
  var _useModule = useModule$1(['pricelists']),
33337
33134
  packageId = _useModule.packageId,
33338
33135
  organizationId = _useModule.organizationId,
33339
33136
  updateNavigation = _useModule.updateNavigation,
33340
- apiConfig = _useModule.apiConfig;
33137
+ apiConfig = _useModule.apiConfig,
33138
+ selectedPackage = _useModule.selectedPackage;
33341
33139
  var _React$useState = React.useState(),
33342
33140
  _React$useState2 = _slicedToArray(_React$useState, 2),
33343
33141
  selectedPriceList = _React$useState2[0],
@@ -33480,7 +33278,11 @@ function TablePriceList () {
33480
33278
  }, {
33481
33279
  headerName: 'backoffice.idmEnricher.pricelists.label.currency',
33482
33280
  field: 'currency',
33483
- editable: true
33281
+ cellDataType: 'enum',
33282
+ editable: true,
33283
+ customParams: {
33284
+ enumData: getCurrencyKey(t)
33285
+ }
33484
33286
  }, {
33485
33287
  headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
33486
33288
  field: 'forPublishing',
@@ -33548,7 +33350,7 @@ function TablePriceList () {
33548
33350
  hide: true
33549
33351
  }]
33550
33352
  };
33551
- }, [apiInterface]);
33353
+ }, [apiInterface, i18n.language]);
33552
33354
  return /*#__PURE__*/jsxs(Fragment, {
33553
33355
  children: [/*#__PURE__*/jsx(Descriptions$1, {
33554
33356
  title: /*#__PURE__*/jsxs("div", {
@@ -33558,17 +33360,17 @@ function TablePriceList () {
33558
33360
  },
33559
33361
  children: /*#__PURE__*/jsx(PackageSelector, {
33560
33362
  organizationId: organizationId,
33561
- selectedPackage: packageId,
33562
- setSelectedPackage: function setSelectedPackage(id) {
33563
- return updateNavigation(id);
33363
+ packageId: packageId,
33364
+ setSelectedPackage: function setSelectedPackage(packageId) {
33365
+ return updateNavigation(packageId);
33564
33366
  },
33565
33367
  enricherService: apiConfig.enricherService
33566
33368
  })
33567
33369
  })]
33568
33370
  })
33569
- }), /*#__PURE__*/jsx(Spreadsheet, {
33371
+ }), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
33570
33372
  ref: spreadsheetRef,
33571
- gridId: 'crud-grid_epartlistpos',
33373
+ gridId: 'crud-grid_epricelists',
33572
33374
  applicationData: applicationData,
33573
33375
  configuration: configuration,
33574
33376
  hooks: hooks
@@ -33893,7 +33695,8 @@ function OpenModalButton (_ref) {
33893
33695
  function TableCatalogs () {
33894
33696
  var root = useStore();
33895
33697
  var _useTranslation = useTranslation(),
33896
- t = _useTranslation.t;
33698
+ t = _useTranslation.t,
33699
+ i18n = _useTranslation.i18n;
33897
33700
  var _useNavigation = useNavigation(),
33898
33701
  organizationId = _useNavigation.organizationId,
33899
33702
  apiConfig = _useNavigation.apiConfig,
@@ -34146,14 +33949,19 @@ function TableCatalogs () {
34146
33949
  editable: true,
34147
33950
  required: true,
34148
33951
  customParams: {
34149
- enumData: ['DE', 'EN', 'FR', 'IT'],
33952
+ enumData: getLanguageKey(t),
34150
33953
  multiple: true
34151
33954
  },
34152
33955
  defaultValue: ['DE']
34153
33956
  }, {
34154
33957
  headerName: 'backoffice.idmCatalog.general.label.currencyKey',
34155
33958
  field: 'currencyKey',
33959
+ cellDataType: 'enum',
33960
+ editable: true,
34156
33961
  required: true,
33962
+ customParams: {
33963
+ enumData: getCurrencyKey(t)
33964
+ },
34157
33965
  defaultValue: 'EUR'
34158
33966
  }, {
34159
33967
  headerName: 'backoffice.idmCatalog.general.label.fileId',
@@ -34206,7 +34014,7 @@ function TableCatalogs () {
34206
34014
  editable: true,
34207
34015
  required: true,
34208
34016
  customParams: {
34209
- enumData: ['DE', 'EN', 'FR', 'IT'],
34017
+ enumData: getLanguageKey(t),
34210
34018
  multiple: false
34211
34019
  },
34212
34020
  defaultValue: 'DE'
@@ -34235,8 +34043,13 @@ function TableCatalogs () {
34235
34043
  children: [{
34236
34044
  headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
34237
34045
  field: 'isoCountryId',
34046
+ cellDataType: 'enum',
34047
+ editable: true,
34238
34048
  required: true,
34239
- defaultValue: 'DE'
34049
+ defaultValue: 'DE',
34050
+ customParams: {
34051
+ enumData: getCountryKey(t)
34052
+ }
34240
34053
  }, {
34241
34054
  field: 'glnNo',
34242
34055
  headerName: 'backoffice.idmCatalog.general.label.glnNo',
@@ -34347,7 +34160,12 @@ function TableCatalogs () {
34347
34160
  headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
34348
34161
  field: 'isoCountryId1',
34349
34162
  required: true,
34350
- defaultValue: 'DE'
34163
+ defaultValue: 'DE',
34164
+ cellDataType: 'enum',
34165
+ editable: true,
34166
+ customParams: {
34167
+ enumData: getCountryKey(t)
34168
+ }
34351
34169
  }]
34352
34170
  }, {
34353
34171
  headerName: 'backoffice.idmCatalog.general.label.contact2',
@@ -34392,7 +34210,12 @@ function TableCatalogs () {
34392
34210
  field: 'city2'
34393
34211
  }, {
34394
34212
  headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
34395
- field: 'isoCountryId2'
34213
+ field: 'isoCountryId2',
34214
+ cellDataType: 'enum',
34215
+ editable: true,
34216
+ customParams: {
34217
+ enumData: getCountryKey(t)
34218
+ }
34396
34219
  }]
34397
34220
  }, {
34398
34221
  headerName: 'backoffice.idmCatalog.general.label.priceSettings',
@@ -34532,7 +34355,7 @@ function TableCatalogs () {
34532
34355
  defaultValue: '${organizationId}'
34533
34356
  }]
34534
34357
  };
34535
- }, []);
34358
+ }, [i18n.language]);
34536
34359
  var handleLoadingModalOk = useCallback(function () {
34537
34360
  setFileIsLoading(false);
34538
34361
  }, []);
@@ -34571,15 +34394,20 @@ function TableCatalogs () {
34571
34394
  }
34572
34395
 
34573
34396
  function CatalogSelector(_ref) {
34574
- var selectedCatalog = _ref.selectedCatalog,
34397
+ var catalogId = _ref.catalogId,
34575
34398
  setSelectedCatalog = _ref.setSelectedCatalog,
34576
34399
  idmService = _ref.idmService,
34577
34400
  organizationId = _ref.organizationId;
34578
34401
  var _useTranslation = useTranslation(),
34579
34402
  t = _useTranslation.t;
34403
+ var value = useMemo(function () {
34404
+ return {
34405
+ _id: catalogId
34406
+ };
34407
+ }, [catalogId]);
34580
34408
  return /*#__PURE__*/jsx(SimpleSelect, {
34581
34409
  apiInterface: {
34582
- read: idmService + "/v3.0/catalogs?fields=name;_id&filter=organizationId==\"".concat(organizationId)
34410
+ read: idmService + "/v3.0/catalogs?fields=name;_id;isoLanguageIds&filter=organizationId==\"".concat(organizationId)
34583
34411
  },
34584
34412
  apiMapping: {
34585
34413
  type: 'query',
@@ -34593,11 +34421,9 @@ function CatalogSelector(_ref) {
34593
34421
  value: '${_id}'
34594
34422
  },
34595
34423
  title: t('backoffice.menu.items.label.IDMEditorTableCatalogs'),
34596
- value: {
34597
- _id: selectedCatalog
34598
- },
34424
+ value: value,
34599
34425
  onChange: function onChange(value) {
34600
- return setSelectedCatalog(value._id);
34426
+ return setSelectedCatalog(value);
34601
34427
  },
34602
34428
  search: true,
34603
34429
  style: {
@@ -34652,6 +34478,10 @@ function useModule (currentModules) {
34652
34478
  var _useSearchParams = useSearchParams(),
34653
34479
  _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
34654
34480
  searchParams = _useSearchParams2[0];
34481
+ var _useState = useState(),
34482
+ _useState2 = _slicedToArray(_useState, 2),
34483
+ selectedCatalog = _useState2[0],
34484
+ setSelectedCatalog = _useState2[1];
34655
34485
  var menuItems = useMemo(function () {
34656
34486
  return [{
34657
34487
  key: 'series',
@@ -34758,7 +34588,8 @@ function useModule (currentModules) {
34758
34588
  if (!catalogId) throw new Error('catalogId is required');
34759
34589
  var updateNavigationModule = useCallback(function (currentCatalog) {
34760
34590
  var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
34761
- updateNavigation(currentCatalog, modules, '../');
34591
+ setSelectedCatalog(currentCatalog);
34592
+ updateNavigation(currentCatalog._id, modules, '../');
34762
34593
  }, [updateNavigation]);
34763
34594
  useEffect(function () {
34764
34595
  root.contentStore.updateAdditionalElement('catalogs', menuItems, currentModules);
@@ -34787,25 +34618,25 @@ function useModule (currentModules) {
34787
34618
  updateNavigation: updateNavigationModule,
34788
34619
  organizationId: organizationId,
34789
34620
  apiConfig: apiConfig,
34621
+ selectedCatalog: selectedCatalog,
34790
34622
  catalogId: catalogId
34791
34623
  };
34792
34624
  }
34793
34625
 
34794
34626
  function Items(_ref) {
34795
34627
  var organizationId = _ref.organizationId,
34796
- catalogId = _ref.catalogId,
34628
+ selectedCatalog = _ref.selectedCatalog,
34797
34629
  apiConfig = _ref.apiConfig,
34798
34630
  selectedSerie = _ref.selectedSerie;
34799
- useStore();
34800
34631
  var _useTranslation = useTranslation(),
34801
34632
  t = _useTranslation.t;
34802
34633
  var applicationData = useMemo(function () {
34803
34634
  return {
34804
34635
  organizationId: organizationId,
34805
- catalogId: catalogId,
34636
+ catalogId: selectedCatalog._id,
34806
34637
  selectedSerie: selectedSerie
34807
34638
  };
34808
- }, [organizationId, catalogId, selectedSerie]);
34639
+ }, [organizationId, selectedCatalog, selectedSerie]);
34809
34640
  var configuration = useMemo(function () {
34810
34641
  var itemIdentification = [{
34811
34642
  name: t('backoffice.idmCatalogEditor.items.label.catalogArticle'),
@@ -34918,48 +34749,7 @@ function Items(_ref) {
34918
34749
  cellDataType: 'number'
34919
34750
  }, {
34920
34751
  headerName: 'backoffice.idmCatalog.common.label.texts',
34921
- children: [{
34922
- headerName: 'backoffice.idmCatalog.general.label.shortText',
34923
- marryChildren: true,
34924
- children: [{
34925
- field: 'shortText.DE',
34926
- headerName: 'backoffice.idmEnricher.general.label.DE',
34927
- isDictionary: true,
34928
- required: true
34929
- }, {
34930
- field: 'shortText.EN',
34931
- headerName: 'backoffice.idmEnricher.general.label.EN',
34932
- isDictionary: true
34933
- }, {
34934
- field: 'shortText.FR',
34935
- headerName: 'backoffice.idmEnricher.general.label.FR',
34936
- isDictionary: true
34937
- }, {
34938
- field: 'shortText.IT',
34939
- headerName: 'backoffice.idmEnricher.general.label.IT',
34940
- isDictionary: true
34941
- }]
34942
- }, {
34943
- headerName: 'backoffice.idmCatalog.general.label.planningAdvice',
34944
- marryChildren: true,
34945
- children: [{
34946
- field: 'planningAdvice.DE',
34947
- headerName: 'backoffice.idmEnricher.general.label.DE',
34948
- isDictionary: true
34949
- }, {
34950
- field: 'planningAdvice.EN',
34951
- headerName: 'backoffice.idmEnricher.general.label.EN',
34952
- isDictionary: true
34953
- }, {
34954
- field: 'planningAdvice.FR',
34955
- headerName: 'backoffice.idmEnricher.general.label.FR',
34956
- isDictionary: true
34957
- }, {
34958
- field: 'planningAdvice.IT',
34959
- headerName: 'backoffice.idmEnricher.general.label.IT',
34960
- isDictionary: true
34961
- }]
34962
- }]
34752
+ 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'])]
34963
34753
  }, {
34964
34754
  headerName: 'backoffice.idmCatalog.items.label.articleNumbers',
34965
34755
  children: [{
@@ -35167,7 +34957,7 @@ function Items(_ref) {
35167
34957
  suppressColumnsToolPanel: true
35168
34958
  }]
35169
34959
  };
35170
- }, []);
34960
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
35171
34961
  return /*#__PURE__*/jsx(Spreadsheet, {
35172
34962
  gridId: 'crud-grid_items',
35173
34963
  applicationData: applicationData,
@@ -35179,6 +34969,7 @@ function TableItems () {
35179
34969
  var _useTranslation = useTranslation(),
35180
34970
  t = _useTranslation.t;
35181
34971
  var _useModule = useModule(['items']),
34972
+ selectedCatalog = _useModule.selectedCatalog,
35182
34973
  catalogId = _useModule.catalogId,
35183
34974
  updateNavigation = _useModule.updateNavigation,
35184
34975
  apiConfig = _useModule.apiConfig,
@@ -35196,9 +34987,9 @@ function TableItems () {
35196
34987
  },
35197
34988
  children: [/*#__PURE__*/jsx(CatalogSelector, {
35198
34989
  organizationId: organizationId,
35199
- selectedCatalog: catalogId,
35200
- setSelectedCatalog: function setSelectedCatalog(id) {
35201
- return updateNavigation(id);
34990
+ catalogId: catalogId,
34991
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
34992
+ return updateNavigation(catalog);
35202
34993
  },
35203
34994
  idmService: apiConfig.idmService
35204
34995
  }), /*#__PURE__*/jsx(SeriesSelector, {
@@ -35209,9 +35000,9 @@ function TableItems () {
35209
35000
  })]
35210
35001
  })]
35211
35002
  })
35212
- }), selectedSerie && /*#__PURE__*/jsx(Items, {
35003
+ }), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Items, {
35213
35004
  organizationId: organizationId,
35214
- catalogId: catalogId,
35005
+ selectedCatalog: selectedCatalog,
35215
35006
  selectedSerie: selectedSerie._id,
35216
35007
  apiConfig: apiConfig
35217
35008
  })]
@@ -35223,6 +35014,7 @@ function TableSeries () {
35223
35014
  t = _useTranslation.t;
35224
35015
  var root = useStore();
35225
35016
  var _useModule = useModule(['series']),
35017
+ selectedCatalog = _useModule.selectedCatalog,
35226
35018
  catalogId = _useModule.catalogId,
35227
35019
  organizationId = _useModule.organizationId,
35228
35020
  updateNavigation = _useModule.updateNavigation,
@@ -35303,28 +35095,7 @@ function TableSeries () {
35303
35095
  headerName: 'backoffice.idmCatalog.series.label.serieNo',
35304
35096
  required: true,
35305
35097
  cellDataType: 'number'
35306
- }, {
35307
- headerName: 'backoffice.idmCatalog.series.label.seriesName',
35308
- marryChildren: true,
35309
- children: [{
35310
- field: 'seriesName.DE',
35311
- headerName: 'backoffice.idmEnricher.general.label.DE',
35312
- isDictionary: true,
35313
- required: true
35314
- }, {
35315
- field: 'seriesName.EN',
35316
- headerName: 'backoffice.idmEnricher.general.label.EN',
35317
- isDictionary: true
35318
- }, {
35319
- field: 'seriesName.FR',
35320
- headerName: 'backoffice.idmEnricher.general.label.FR',
35321
- isDictionary: true
35322
- }, {
35323
- field: 'seriesName.IT',
35324
- headerName: 'backoffice.idmEnricher.general.label.IT',
35325
- isDictionary: true
35326
- }]
35327
- }, {
35098
+ }, createTranslatedColumnConfig('seriesName', 'backoffice.idmCatalog.series.label.seriesName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
35328
35099
  field: 'sequenceNo',
35329
35100
  headerName: 'backoffice.idmCatalog.series.label.sequenceNo',
35330
35101
  required: true,
@@ -35338,27 +35109,7 @@ function TableSeries () {
35338
35109
  enumData: purchaseRetailId,
35339
35110
  displayLabelTemplate: '${name} (${value})'
35340
35111
  }
35341
- }, {
35342
- headerName: 'backoffice.idmCatalog.series.label.seriesFullText',
35343
- marryChildren: true,
35344
- children: [{
35345
- field: 'seriesFullText.DE',
35346
- headerName: 'backoffice.idmEnricher.general.label.DE',
35347
- isDictionary: true
35348
- }, {
35349
- field: 'seriesFullText.EN',
35350
- headerName: 'backoffice.idmEnricher.general.label.EN',
35351
- isDictionary: true
35352
- }, {
35353
- field: 'seriesFullText.FR',
35354
- headerName: 'backoffice.idmEnricher.general.label.FR',
35355
- isDictionary: true
35356
- }, {
35357
- field: 'seriesFullText.IT',
35358
- headerName: 'backoffice.idmEnricher.general.label.IT',
35359
- isDictionary: true
35360
- }]
35361
- }, {
35112
+ }, createTranslatedColumnConfig('seriesFullText', 'backoffice.idmCatalog.series.label.seriesFullText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE']), {
35362
35113
  field: 'decisionRefs',
35363
35114
  headerName: 'backoffice.idmCatalog.series.label.decisionRefs',
35364
35115
  cellDataType: 'lookup',
@@ -35428,7 +35179,7 @@ function TableSeries () {
35428
35179
  defaultValue: '${catalogId}'
35429
35180
  }]
35430
35181
  };
35431
- }, []);
35182
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
35432
35183
  return /*#__PURE__*/jsxs(Fragment, {
35433
35184
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35434
35185
  title: /*#__PURE__*/jsxs("div", {
@@ -35438,7 +35189,7 @@ function TableSeries () {
35438
35189
  },
35439
35190
  children: /*#__PURE__*/jsx(CatalogSelector, {
35440
35191
  organizationId: organizationId,
35441
- selectedCatalog: catalogId,
35192
+ catalogId: catalogId,
35442
35193
  setSelectedCatalog: function setSelectedCatalog(id) {
35443
35194
  return updateNavigation(id);
35444
35195
  },
@@ -35446,7 +35197,7 @@ function TableSeries () {
35446
35197
  })
35447
35198
  })]
35448
35199
  })
35449
- }), /*#__PURE__*/jsx(Spreadsheet, {
35200
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
35450
35201
  gridId: 'crud-grid_series',
35451
35202
  applicationData: applicationData,
35452
35203
  hooks: hooks,
@@ -35457,16 +35208,16 @@ function TableSeries () {
35457
35208
 
35458
35209
  function Options(_ref) {
35459
35210
  var organizationId = _ref.organizationId,
35460
- catalogId = _ref.catalogId,
35211
+ selectedCatalog = _ref.selectedCatalog,
35461
35212
  selectedFeature = _ref.selectedFeature,
35462
35213
  apiConfig = _ref.apiConfig;
35463
35214
  var applicationData = useMemo(function () {
35464
35215
  return {
35465
35216
  organizationId: organizationId,
35466
- catalogId: catalogId,
35217
+ catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
35467
35218
  selectedFeature: selectedFeature
35468
35219
  };
35469
- }, [organizationId, catalogId, selectedFeature]);
35220
+ }, [organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, selectedFeature]);
35470
35221
  var configuration = useMemo(function () {
35471
35222
  return {
35472
35223
  type: 'dotnetSSM',
@@ -35488,54 +35239,10 @@ function Options(_ref) {
35488
35239
  headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
35489
35240
  field: 'sequenceNo',
35490
35241
  cellDataType: 'number'
35491
- }, {
35492
- headerName: 'backoffice.idmCatalog.common.label.texts',
35493
- children: [{
35494
- headerName: 'backoffice.idmCatalog.options.label.optionText',
35495
- marryChildren: true,
35496
- children: [{
35497
- field: 'optionText.DE',
35498
- headerName: 'backoffice.idmEnricher.general.label.DE',
35499
- isDictionary: true,
35500
- required: true
35501
- }, {
35502
- field: 'optionText.EN',
35503
- headerName: 'backoffice.idmEnricher.general.label.EN',
35504
- isDictionary: true
35505
- }, {
35506
- field: 'optionText.FR',
35507
- headerName: 'backoffice.idmEnricher.general.label.FR',
35508
- isDictionary: true
35509
- }, {
35510
- field: 'optionText.IT',
35511
- headerName: 'backoffice.idmEnricher.general.label.IT',
35512
- isDictionary: true
35513
- }]
35514
- }, {
35515
- headerName: 'backoffice.idmCatalog.options.label.optionCommentText',
35516
- marryChildren: true,
35517
- children: [{
35518
- field: 'optionCommentText.DE',
35519
- headerName: 'backoffice.idmEnricher.general.label.DE',
35520
- isDictionary: true
35521
- }, {
35522
- field: 'optionCommentText.EN',
35523
- headerName: 'backoffice.idmEnricher.general.label.EN',
35524
- isDictionary: true
35525
- }, {
35526
- field: 'optionCommentText.FR',
35527
- headerName: 'backoffice.idmEnricher.general.label.FR',
35528
- isDictionary: true
35529
- }, {
35530
- field: 'optionCommentText.IT',
35531
- headerName: 'backoffice.idmEnricher.general.label.IT',
35532
- isDictionary: true
35533
- }]
35534
- }, {
35535
- headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
35536
- field: 'optionFreeText',
35537
- cellDataType: 'boolean'
35538
- }]
35242
+ }, 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']), {
35243
+ headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
35244
+ field: 'optionFreeText',
35245
+ cellDataType: 'boolean'
35539
35246
  }, {
35540
35247
  headerName: 'backoffice.idmCatalog.items.label.validation',
35541
35248
  children: [{
@@ -35599,7 +35306,7 @@ function Options(_ref) {
35599
35306
  editable: false
35600
35307
  }]
35601
35308
  };
35602
- }, []);
35309
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
35603
35310
  return /*#__PURE__*/jsx(Spreadsheet, {
35604
35311
  gridId: 'crud-grid_options',
35605
35312
  applicationData: applicationData,
@@ -35609,7 +35316,7 @@ function Options(_ref) {
35609
35316
 
35610
35317
  function Features(_ref) {
35611
35318
  var organizationId = _ref.organizationId,
35612
- catalogId = _ref.catalogId,
35319
+ selectedCatalog = _ref.selectedCatalog,
35613
35320
  featureClassId = _ref.featureClassId,
35614
35321
  apiConfig = _ref.apiConfig,
35615
35322
  hooks = _ref.hooks;
@@ -35617,11 +35324,11 @@ function Features(_ref) {
35617
35324
  t = _useTranslation.t;
35618
35325
  var applicationData = useMemo(function () {
35619
35326
  return {
35620
- catalogId: catalogId,
35327
+ catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
35621
35328
  organizationId: organizationId,
35622
35329
  featureClassId: featureClassId
35623
35330
  };
35624
- }, [catalogId, featureClassId, organizationId]);
35331
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, featureClassId, organizationId]);
35625
35332
  var apiInterface = useMemo(function () {
35626
35333
  return featureClassId ? {
35627
35334
  read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
@@ -35692,28 +35399,7 @@ function Features(_ref) {
35692
35399
  headerName: 'backoffice.idmCatalog.features.label.featureNo',
35693
35400
  required: true,
35694
35401
  unique: true
35695
- }]), [{
35696
- headerName: 'backoffice.idmCatalog.features.label.featureText',
35697
- marryChildren: true,
35698
- children: [{
35699
- field: 'featureText.DE',
35700
- headerName: 'backoffice.idmEnricher.general.label.DE',
35701
- isDictionary: true,
35702
- required: true
35703
- }, {
35704
- field: 'featureText.EN',
35705
- headerName: 'backoffice.idmEnricher.general.label.EN',
35706
- isDictionary: true
35707
- }, {
35708
- field: 'featureText.FR',
35709
- headerName: 'backoffice.idmEnricher.general.label.FR',
35710
- isDictionary: true
35711
- }, {
35712
- field: 'featureText.IT',
35713
- headerName: 'backoffice.idmEnricher.general.label.IT',
35714
- isDictionary: true
35715
- }]
35716
- }, {
35402
+ }]), [createTranslatedColumnConfig('featureText', 'backoffice.idmCatalog.features.label.featureText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
35717
35403
  field: 'sequenceNo',
35718
35404
  headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
35719
35405
  required: true,
@@ -35780,7 +35466,7 @@ function Features(_ref) {
35780
35466
  defaultValue: '${catalogId}'
35781
35467
  }])
35782
35468
  };
35783
- }, [featureClassId, apiInterface]);
35469
+ }, [featureClassId, apiInterface, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
35784
35470
  return /*#__PURE__*/jsx(Spreadsheet, {
35785
35471
  gridId: 'crud-grid_features' + (featureClassId ? '_featureClass' : ''),
35786
35472
  applicationData: applicationData,
@@ -35794,6 +35480,7 @@ function TableFeatures () {
35794
35480
  t = _useTranslation.t;
35795
35481
  var root = useStore();
35796
35482
  var _useModule = useModule(['features']),
35483
+ selectedCatalog = _useModule.selectedCatalog,
35797
35484
  catalogId = _useModule.catalogId,
35798
35485
  organizationId = _useModule.organizationId,
35799
35486
  updateNavigation = _useModule.updateNavigation,
@@ -35848,17 +35535,17 @@ function TableFeatures () {
35848
35535
  },
35849
35536
  children: /*#__PURE__*/jsx(CatalogSelector, {
35850
35537
  organizationId: organizationId,
35851
- selectedCatalog: catalogId,
35852
- setSelectedCatalog: function setSelectedCatalog(id) {
35853
- return updateNavigation(id);
35538
+ catalogId: catalogId,
35539
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
35540
+ return updateNavigation(catalog);
35854
35541
  },
35855
35542
  idmService: apiConfig.idmService
35856
35543
  })
35857
35544
  })]
35858
35545
  })
35859
- }), /*#__PURE__*/jsx(Features, {
35546
+ }), selectedCatalog && /*#__PURE__*/jsx(Features, {
35860
35547
  organizationId: organizationId,
35861
- catalogId: catalogId,
35548
+ selectedCatalog: selectedCatalog,
35862
35549
  apiConfig: apiConfig,
35863
35550
  hooks: hooks
35864
35551
  })]
@@ -35901,6 +35588,7 @@ function TableOptions () {
35901
35588
  var _useTranslation = useTranslation(),
35902
35589
  t = _useTranslation.t;
35903
35590
  var _useModule = useModule(['options']),
35591
+ selectedCatalog = _useModule.selectedCatalog,
35904
35592
  catalogId = _useModule.catalogId,
35905
35593
  updateNavigation = _useModule.updateNavigation,
35906
35594
  apiConfig = _useModule.apiConfig,
@@ -35918,9 +35606,9 @@ function TableOptions () {
35918
35606
  },
35919
35607
  children: [/*#__PURE__*/jsx(CatalogSelector, {
35920
35608
  organizationId: organizationId,
35921
- selectedCatalog: catalogId,
35922
- setSelectedCatalog: function setSelectedCatalog(id) {
35923
- return updateNavigation(id);
35609
+ catalogId: catalogId,
35610
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
35611
+ return updateNavigation(catalog);
35924
35612
  },
35925
35613
  idmService: apiConfig.idmService
35926
35614
  }), /*#__PURE__*/jsx(FeatureSelector, {
@@ -35931,9 +35619,9 @@ function TableOptions () {
35931
35619
  })]
35932
35620
  })]
35933
35621
  })
35934
- }), selectedFeature && /*#__PURE__*/jsx(Options, {
35622
+ }), selectedFeature && selectedCatalog && /*#__PURE__*/jsx(Options, {
35935
35623
  organizationId: organizationId,
35936
- catalogId: catalogId,
35624
+ selectedCatalog: selectedCatalog,
35937
35625
  selectedFeature: selectedFeature._id,
35938
35626
  apiConfig: apiConfig
35939
35627
  })]
@@ -35945,6 +35633,7 @@ function TableFeatureClasses () {
35945
35633
  t = _useTranslation.t;
35946
35634
  var root = useStore();
35947
35635
  var _useModule = useModule(['featureclasses']),
35636
+ selectedCatalog = _useModule.selectedCatalog,
35948
35637
  catalogId = _useModule.catalogId,
35949
35638
  organizationId = _useModule.organizationId,
35950
35639
  updateNavigation = _useModule.updateNavigation,
@@ -35972,7 +35661,7 @@ function TableFeatureClasses () {
35972
35661
  } else {
35973
35662
  root.contentStore.bottomToolBar.tools = [];
35974
35663
  }
35975
- }, [selectedFeatureClass]);
35664
+ }, [selectedFeatureClass, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id]);
35976
35665
  useEffect(function () {
35977
35666
  //remove features table, when featureclasses are unmounted
35978
35667
  return function () {
@@ -35984,7 +35673,7 @@ function TableFeatureClasses () {
35984
35673
  catalogId: catalogId,
35985
35674
  organizationId: organizationId
35986
35675
  };
35987
- }, [catalogId]);
35676
+ }, [catalogId, organizationId]);
35988
35677
  var hooks = useMemo(function () {
35989
35678
  return {
35990
35679
  onCellSelectionChanged: function onCellSelectionChanged(event) {
@@ -36012,27 +35701,7 @@ function TableFeatureClasses () {
36012
35701
  headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassNo',
36013
35702
  required: true,
36014
35703
  cellDataType: 'number'
36015
- }, {
36016
- headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassName',
36017
- marryChildren: true,
36018
- children: [{
36019
- field: 'featureClassName.DE',
36020
- headerName: 'backoffice.idmEnricher.general.label.DE',
36021
- isDictionary: true
36022
- }, {
36023
- field: 'featureClassName.EN',
36024
- headerName: 'backoffice.idmEnricher.general.label.EN',
36025
- isDictionary: true
36026
- }, {
36027
- field: 'featureClassName.FR',
36028
- headerName: 'backoffice.idmEnricher.general.label.FR',
36029
- isDictionary: true
36030
- }, {
36031
- field: 'featureClassName.IT',
36032
- headerName: 'backoffice.idmEnricher.general.label.IT',
36033
- isDictionary: true
36034
- }]
36035
- }, {
35704
+ }, createTranslatedColumnConfig('featureClassName', 'backoffice.idmCatalog.featureclasses.label.featureClassName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), {
36036
35705
  headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
36037
35706
  field: 'lastUpdatedDate',
36038
35707
  cellDataType: 'dateString',
@@ -36078,7 +35747,7 @@ function TableFeatureClasses () {
36078
35747
  defaultValue: {}
36079
35748
  }]
36080
35749
  };
36081
- }, []);
35750
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
36082
35751
  return /*#__PURE__*/jsxs(Fragment, {
36083
35752
  children: [/*#__PURE__*/jsx(Descriptions$1, {
36084
35753
  title: /*#__PURE__*/jsxs("div", {
@@ -36087,16 +35756,16 @@ function TableFeatureClasses () {
36087
35756
  "float": 'right'
36088
35757
  },
36089
35758
  children: /*#__PURE__*/jsx(CatalogSelector, {
36090
- selectedCatalog: catalogId,
36091
- setSelectedCatalog: function setSelectedCatalog(id) {
36092
- return updateNavigation(id);
35759
+ catalogId: catalogId,
35760
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
35761
+ return updateNavigation(catalog);
36093
35762
  },
36094
35763
  idmService: apiConfig.idmService,
36095
35764
  organizationId: organizationId
36096
35765
  })
36097
35766
  })]
36098
35767
  })
36099
- }), /*#__PURE__*/jsx(Spreadsheet, {
35768
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
36100
35769
  gridId: 'crud-grid_featureclasses',
36101
35770
  applicationData: applicationData,
36102
35771
  hooks: hooks,
@@ -36537,6 +36206,7 @@ function TableDecisions () {
36537
36206
  var root = useStore();
36538
36207
  var spreadsheetRef = useRef(null);
36539
36208
  var _useModule = useModule(['decisions']),
36209
+ selectedCatalog = _useModule.selectedCatalog,
36540
36210
  catalogId = _useModule.catalogId,
36541
36211
  organizationId = _useModule.organizationId,
36542
36212
  updateNavigation = _useModule.updateNavigation,
@@ -36583,7 +36253,7 @@ function TableDecisions () {
36583
36253
  catalogId: catalogId,
36584
36254
  organizationId: organizationId
36585
36255
  };
36586
- }, [catalogId]);
36256
+ }, [catalogId, organizationId]);
36587
36257
  var hooks = useMemo(function () {
36588
36258
  return {
36589
36259
  onCellSelectionChanged: function onCellSelectionChanged(event) {
@@ -36634,28 +36304,7 @@ function TableDecisions () {
36634
36304
  headerName: 'backoffice.idmCatalog.decisions.label.decisionNo',
36635
36305
  required: true,
36636
36306
  cellDataType: 'number'
36637
- }, {
36638
- headerName: 'backoffice.idmCatalog.decisions.label.decisionText',
36639
- marryChildren: true,
36640
- children: [{
36641
- field: 'decisionText.DE',
36642
- headerName: 'backoffice.idmEnricher.general.label.DE',
36643
- isDictionary: true,
36644
- required: true
36645
- }, {
36646
- field: 'decisionText.EN',
36647
- headerName: 'backoffice.idmEnricher.general.label.EN',
36648
- isDictionary: true
36649
- }, {
36650
- field: 'decisionText.FR',
36651
- headerName: 'backoffice.idmEnricher.general.label.FR',
36652
- isDictionary: true
36653
- }, {
36654
- field: 'decisionText.IT',
36655
- headerName: 'backoffice.idmEnricher.general.label.IT',
36656
- isDictionary: true
36657
- }]
36658
- }, {
36307
+ }, createTranslatedColumnConfig('decisionText', 'backoffice.idmCatalog.decisions.label.decisionText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
36659
36308
  field: 'comment',
36660
36309
  headerName: 'backoffice.idmCatalog.decisions.label.comment'
36661
36310
  }, {
@@ -36739,7 +36388,7 @@ function TableDecisions () {
36739
36388
  defaultValue: '${catalogId}'
36740
36389
  }]
36741
36390
  };
36742
- }, []);
36391
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
36743
36392
  return /*#__PURE__*/jsxs(Fragment, {
36744
36393
  children: [/*#__PURE__*/jsx(Descriptions$1, {
36745
36394
  title: /*#__PURE__*/jsxs("div", {
@@ -36748,16 +36397,16 @@ function TableDecisions () {
36748
36397
  "float": 'right'
36749
36398
  },
36750
36399
  children: /*#__PURE__*/jsx(CatalogSelector, {
36751
- selectedCatalog: catalogId,
36752
- setSelectedCatalog: function setSelectedCatalog(id) {
36753
- return updateNavigation(id);
36400
+ catalogId: catalogId,
36401
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
36402
+ return updateNavigation(catalog);
36754
36403
  },
36755
36404
  idmService: apiConfig.idmService,
36756
36405
  organizationId: organizationId
36757
36406
  })
36758
36407
  })]
36759
36408
  })
36760
- }), /*#__PURE__*/jsx(Spreadsheet, {
36409
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
36761
36410
  gridId: 'crud-grid_decisions',
36762
36411
  ref: spreadsheetRef,
36763
36412
  applicationData: applicationData,
@@ -36769,34 +36418,20 @@ function TableDecisions () {
36769
36418
 
36770
36419
  function TableDetailInfos () {
36771
36420
  var _useTranslation = useTranslation(),
36772
- t = _useTranslation.t;
36773
- useStore();
36421
+ t = _useTranslation.t,
36422
+ i18n = _useTranslation.i18n;
36774
36423
  var _useModule = useModule(['detailinfos']),
36424
+ selectedCatalog = _useModule.selectedCatalog,
36775
36425
  catalogId = _useModule.catalogId,
36776
36426
  organizationId = _useModule.organizationId,
36777
36427
  updateNavigation = _useModule.updateNavigation,
36778
36428
  apiConfig = _useModule.apiConfig;
36779
- var _React$useState = React.useState(),
36780
- _React$useState2 = _slicedToArray(_React$useState, 2);
36781
- _React$useState2[0];
36782
- var setSelectedDetailInfo = _React$useState2[1];
36783
36429
  var applicationData = useMemo(function () {
36784
36430
  return {
36785
36431
  catalogId: catalogId,
36786
36432
  organizationId: organizationId
36787
36433
  };
36788
- }, [catalogId]);
36789
- var hooks = useMemo(function () {
36790
- return {
36791
- onCellSelectionChanged: function onCellSelectionChanged(event) {
36792
- if (event.selection.length == 1) {
36793
- setSelectedDetailInfo(event.selection[0].node.data);
36794
- } else {
36795
- setSelectedDetailInfo(null);
36796
- }
36797
- }
36798
- };
36799
- }, []);
36434
+ }, [catalogId, organizationId]);
36800
36435
  var configuration = useMemo(function () {
36801
36436
  var layerId = [{
36802
36437
  name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l10'),
@@ -36872,67 +36507,7 @@ function TableDetailInfos () {
36872
36507
  headerName: 'backoffice.idmCatalog.detailinfos.label.detailInfoNo',
36873
36508
  required: true,
36874
36509
  cellDataType: 'number'
36875
- }, {
36876
- headerName: 'backoffice.idmCatalog.detailinfos.label.externalName',
36877
- marryChildren: true,
36878
- children: [{
36879
- field: 'externalName.DE',
36880
- headerName: 'backoffice.idmEnricher.general.label.DE',
36881
- isDictionary: true
36882
- }, {
36883
- field: 'externalName.EN',
36884
- headerName: 'backoffice.idmEnricher.general.label.EN',
36885
- isDictionary: true
36886
- }, {
36887
- field: 'externalName.FR',
36888
- headerName: 'backoffice.idmEnricher.general.label.FR',
36889
- isDictionary: true
36890
- }, {
36891
- field: 'externalName.IT',
36892
- headerName: 'backoffice.idmEnricher.general.label.IT',
36893
- isDictionary: true
36894
- }]
36895
- }, {
36896
- headerName: 'backoffice.idmCatalog.detailinfos.label.internalName',
36897
- marryChildren: true,
36898
- children: [{
36899
- field: 'internalName.DE',
36900
- headerName: 'backoffice.idmEnricher.general.label.DE',
36901
- isDictionary: true
36902
- }, {
36903
- field: 'internalName.EN',
36904
- headerName: 'backoffice.idmEnricher.general.label.EN',
36905
- isDictionary: true
36906
- }, {
36907
- field: 'internalName.FR',
36908
- headerName: 'backoffice.idmEnricher.general.label.FR',
36909
- isDictionary: true
36910
- }, {
36911
- field: 'internalName.IT',
36912
- headerName: 'backoffice.idmEnricher.general.label.IT',
36913
- isDictionary: true
36914
- }]
36915
- }, {
36916
- headerName: 'backoffice.idmCatalog.detailinfos.label.toolTip',
36917
- marryChildren: true,
36918
- children: [{
36919
- field: 'toolTip.DE',
36920
- headerName: 'backoffice.idmEnricher.general.label.DE',
36921
- isDictionary: true
36922
- }, {
36923
- field: 'toolTip.EN',
36924
- headerName: 'backoffice.idmEnricher.general.label.EN',
36925
- isDictionary: true
36926
- }, {
36927
- field: 'toolTip.FR',
36928
- headerName: 'backoffice.idmEnricher.general.label.FR',
36929
- isDictionary: true
36930
- }, {
36931
- field: 'toolTip.IT',
36932
- headerName: 'backoffice.idmEnricher.general.label.IT',
36933
- isDictionary: true
36934
- }]
36935
- }, {
36510
+ }, 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), {
36936
36511
  field: 'url',
36937
36512
  headerName: 'backoffice.idmCatalog.detailinfos.label.url',
36938
36513
  required: true
@@ -36970,7 +36545,7 @@ function TableDetailInfos () {
36970
36545
  editable: true,
36971
36546
  required: true,
36972
36547
  customParams: {
36973
- enumData: ['DE', 'EN', 'FR', 'IT'],
36548
+ enumData: getLanguageKey(t),
36974
36549
  multiple: false
36975
36550
  },
36976
36551
  defaultValue: 'DE'
@@ -37026,7 +36601,7 @@ function TableDetailInfos () {
37026
36601
  defaultValue: '${catalogId}'
37027
36602
  }]
37028
36603
  };
37029
- }, []);
36604
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
37030
36605
  return /*#__PURE__*/jsxs(Fragment, {
37031
36606
  children: [/*#__PURE__*/jsx(Descriptions$1, {
37032
36607
  title: /*#__PURE__*/jsxs("div", {
@@ -37036,18 +36611,17 @@ function TableDetailInfos () {
37036
36611
  },
37037
36612
  children: /*#__PURE__*/jsx(CatalogSelector, {
37038
36613
  organizationId: organizationId,
37039
- selectedCatalog: catalogId,
37040
- setSelectedCatalog: function setSelectedCatalog(id) {
37041
- return updateNavigation(id);
36614
+ catalogId: catalogId,
36615
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
36616
+ return updateNavigation(catalog);
37042
36617
  },
37043
36618
  idmService: apiConfig.idmService
37044
36619
  })
37045
36620
  })]
37046
36621
  })
37047
- }), /*#__PURE__*/jsx(Spreadsheet, {
37048
- gridId: 'crud-grid_series',
36622
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
36623
+ gridId: 'crud-grid_detailinfos',
37049
36624
  applicationData: applicationData,
37050
- hooks: hooks,
37051
36625
  configuration: configuration
37052
36626
  })]
37053
36627
  });
@@ -37263,10 +36837,11 @@ function TablePartlists () {
37263
36837
  t = _useTranslation.t;
37264
36838
  var root = useStore();
37265
36839
  var _useModule = useModule(['partlists']),
36840
+ selectedCatalog = _useModule.selectedCatalog,
37266
36841
  catalogId = _useModule.catalogId,
37267
- organizationId = _useModule.organizationId,
37268
36842
  updateNavigation = _useModule.updateNavigation,
37269
- apiConfig = _useModule.apiConfig;
36843
+ apiConfig = _useModule.apiConfig,
36844
+ organizationId = _useModule.organizationId;
37270
36845
  var _React$useState = React.useState(),
37271
36846
  _React$useState2 = _slicedToArray(_React$useState, 2),
37272
36847
  selectedPartlist = _React$useState2[0],
@@ -37299,10 +36874,10 @@ function TablePartlists () {
37299
36874
  }, []);
37300
36875
  var applicationData = useMemo(function () {
37301
36876
  return {
37302
- catalogId: catalogId,
37303
- organizationId: organizationId
36877
+ organizationId: organizationId,
36878
+ catalogId: catalogId
37304
36879
  };
37305
- }, [catalogId, organizationId]);
36880
+ }, [organizationId, catalogId]);
37306
36881
  var hooks = useMemo(function () {
37307
36882
  return {
37308
36883
  onCellSelectionChanged: function onCellSelectionChanged(event) {
@@ -37383,16 +36958,16 @@ function TablePartlists () {
37383
36958
  "float": 'right'
37384
36959
  },
37385
36960
  children: /*#__PURE__*/jsx(CatalogSelector, {
37386
- selectedCatalog: catalogId,
37387
- setSelectedCatalog: function setSelectedCatalog(id) {
37388
- return updateNavigation(id);
36961
+ catalogId: catalogId,
36962
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
36963
+ return updateNavigation(catalog);
37389
36964
  },
37390
36965
  idmService: apiConfig.idmService,
37391
36966
  organizationId: organizationId
37392
36967
  })
37393
36968
  })]
37394
36969
  })
37395
- }), /*#__PURE__*/jsx(Spreadsheet, {
36970
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
37396
36971
  gridId: 'crud-grid_partlists',
37397
36972
  applicationData: applicationData,
37398
36973
  hooks: hooks,
@@ -37779,6 +37354,7 @@ function TablePriceFeatureGroups () {
37779
37354
  var root = useStore();
37780
37355
  var spreadsheetRef = useRef(null);
37781
37356
  var _useModule = useModule(['pricefeaturegroups']),
37357
+ selectedCatalog = _useModule.selectedCatalog,
37782
37358
  catalogId = _useModule.catalogId,
37783
37359
  organizationId = _useModule.organizationId,
37784
37360
  updateNavigation = _useModule.updateNavigation,
@@ -37847,7 +37423,7 @@ function TablePriceFeatureGroups () {
37847
37423
  catalogId: catalogId,
37848
37424
  organizationId: organizationId
37849
37425
  };
37850
- }, [catalogId]);
37426
+ }, [catalogId, organizationId]);
37851
37427
  var hooks = useMemo(function () {
37852
37428
  return {
37853
37429
  onCellSelectionChanged: function onCellSelectionChanged(event) {
@@ -37888,28 +37464,7 @@ function TablePriceFeatureGroups () {
37888
37464
  headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupNo',
37889
37465
  required: true,
37890
37466
  cellDataType: 'number'
37891
- }, {
37892
- headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupText',
37893
- marryChildren: true,
37894
- children: [{
37895
- field: 'priceFeatureGroupText.DE',
37896
- headerName: 'backoffice.idmEnricher.general.label.DE',
37897
- isDictionary: true,
37898
- required: true
37899
- }, {
37900
- field: 'priceFeatureGroupText.EN',
37901
- headerName: 'backoffice.idmEnricher.general.label.EN',
37902
- isDictionary: true
37903
- }, {
37904
- field: 'priceFeatureGroupText.FR',
37905
- headerName: 'backoffice.idmEnricher.general.label.FR',
37906
- isDictionary: true
37907
- }, {
37908
- field: 'priceFeatureGroupText.IT',
37909
- headerName: 'backoffice.idmEnricher.general.label.IT',
37910
- isDictionary: true
37911
- }]
37912
- }, {
37467
+ }, createTranslatedColumnConfig('priceFeatureGroupText', 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
37913
37468
  field: 'comment',
37914
37469
  headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.comment'
37915
37470
  }, {
@@ -37971,7 +37526,7 @@ function TablePriceFeatureGroups () {
37971
37526
  additionalFields: ['featureNosDisplayTexts']
37972
37527
  }]
37973
37528
  };
37974
- }, []);
37529
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
37975
37530
  return /*#__PURE__*/jsxs(Fragment, {
37976
37531
  children: [/*#__PURE__*/jsx(Descriptions$1, {
37977
37532
  title: /*#__PURE__*/jsxs("div", {
@@ -37980,16 +37535,16 @@ function TablePriceFeatureGroups () {
37980
37535
  "float": 'right'
37981
37536
  },
37982
37537
  children: /*#__PURE__*/jsx(CatalogSelector, {
37983
- selectedCatalog: catalogId,
37984
- setSelectedCatalog: function setSelectedCatalog(id) {
37985
- return updateNavigation(id);
37538
+ catalogId: catalogId,
37539
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
37540
+ return updateNavigation(catalog);
37986
37541
  },
37987
37542
  idmService: apiConfig.idmService,
37988
37543
  organizationId: organizationId
37989
37544
  })
37990
37545
  })]
37991
37546
  })
37992
- }), /*#__PURE__*/jsx(Spreadsheet, {
37547
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
37993
37548
  gridId: 'crud-grid_pricefeaturegroups',
37994
37549
  ref: spreadsheetRef,
37995
37550
  applicationData: applicationData,
@@ -38003,6 +37558,7 @@ function TablePrices () {
38003
37558
  var _useTranslation = useTranslation(),
38004
37559
  t = _useTranslation.t;
38005
37560
  var _useModule = useModule(['prices']),
37561
+ selectedCatalog = _useModule.selectedCatalog,
38006
37562
  catalogId = _useModule.catalogId,
38007
37563
  updateNavigation = _useModule.updateNavigation,
38008
37564
  apiConfig = _useModule.apiConfig,
@@ -38052,6 +37608,11 @@ function TablePrices () {
38052
37608
  additionalFields: ['typeNoDisplayText'],
38053
37609
  isDictionary: true,
38054
37610
  editable: false
37611
+ }, {
37612
+ field: 'partListExclusive',
37613
+ headerName: 'backoffice.idmCatalog.prices.label.partListExclusive',
37614
+ editable: false,
37615
+ cellDataType: 'boolean'
38055
37616
  }].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups.map(function (priceFeatureGroup) {
38056
37617
  var _priceFeatureGroup$ke;
38057
37618
  return {
@@ -38105,9 +37666,9 @@ function TablePrices () {
38105
37666
  },
38106
37667
  children: [/*#__PURE__*/jsx(CatalogSelector, {
38107
37668
  organizationId: organizationId,
38108
- selectedCatalog: catalogId,
38109
- setSelectedCatalog: function setSelectedCatalog(id) {
38110
- updateNavigation(id);
37669
+ catalogId: catalogId,
37670
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
37671
+ updateNavigation(catalog);
38111
37672
  setSelectedSerie(undefined);
38112
37673
  },
38113
37674
  idmService: apiConfig.idmService
@@ -38120,7 +37681,7 @@ function TablePrices () {
38120
37681
  })]
38121
37682
  })]
38122
37683
  })
38123
- }), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
37684
+ }), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
38124
37685
  gridId: 'crud-grid_prices',
38125
37686
  applicationData: applicationData,
38126
37687
  configuration: configuration