@crystaldesign/diva-backoffice 25.3.0-beta.7 → 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 (58) hide show
  1. package/build/esm/index.js +499 -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/components/PrefilterSelectors/PackageSelector.d.ts +4 -3
  30. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts.map +1 -1
  31. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts.map +1 -1
  32. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +1 -1
  33. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
  34. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  35. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.d.ts.map +1 -1
  36. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  37. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
  38. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts +2 -2
  39. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
  40. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts +2 -2
  41. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts.map +1 -1
  42. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts +2 -2
  43. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts.map +1 -1
  44. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts +2 -2
  45. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts.map +1 -1
  46. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts +2 -2
  47. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts.map +1 -1
  48. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts +2 -2
  49. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
  50. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts +2 -2
  51. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts.map +1 -1
  52. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
  53. package/build/types/backoffice/src/ui/IDMEnricherEditor/types.d.ts +5 -0
  54. package/build/types/backoffice/src/ui/IDMEnricherEditor/types.d.ts.map +1 -1
  55. package/build/types/backoffice/src/ui/IDMEnricherEditor/useModule.d.ts +3 -1
  56. package/build/types/backoffice/src/ui/IDMEnricherEditor/useModule.d.ts.map +1 -1
  57. package/build/types/backoffice/src/ui/SelectSimple/useSelectSimpleData.d.ts.map +1 -1
  58. 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
@@ -33332,14 +33126,16 @@ function Prices (_ref) {
33332
33126
 
33333
33127
  function TablePriceList () {
33334
33128
  var _useTranslation = useTranslation(),
33335
- t = _useTranslation.t;
33129
+ t = _useTranslation.t,
33130
+ i18n = _useTranslation.i18n;
33336
33131
  var root = useStore();
33337
33132
  var spreadsheetRef = useRef(null);
33338
33133
  var _useModule = useModule$1(['pricelists']),
33339
33134
  packageId = _useModule.packageId,
33340
33135
  organizationId = _useModule.organizationId,
33341
33136
  updateNavigation = _useModule.updateNavigation,
33342
- apiConfig = _useModule.apiConfig;
33137
+ apiConfig = _useModule.apiConfig,
33138
+ selectedPackage = _useModule.selectedPackage;
33343
33139
  var _React$useState = React.useState(),
33344
33140
  _React$useState2 = _slicedToArray(_React$useState, 2),
33345
33141
  selectedPriceList = _React$useState2[0],
@@ -33482,7 +33278,11 @@ function TablePriceList () {
33482
33278
  }, {
33483
33279
  headerName: 'backoffice.idmEnricher.pricelists.label.currency',
33484
33280
  field: 'currency',
33485
- editable: true
33281
+ cellDataType: 'enum',
33282
+ editable: true,
33283
+ customParams: {
33284
+ enumData: getCurrencyKey(t)
33285
+ }
33486
33286
  }, {
33487
33287
  headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
33488
33288
  field: 'forPublishing',
@@ -33550,7 +33350,7 @@ function TablePriceList () {
33550
33350
  hide: true
33551
33351
  }]
33552
33352
  };
33553
- }, [apiInterface]);
33353
+ }, [apiInterface, i18n.language]);
33554
33354
  return /*#__PURE__*/jsxs(Fragment, {
33555
33355
  children: [/*#__PURE__*/jsx(Descriptions$1, {
33556
33356
  title: /*#__PURE__*/jsxs("div", {
@@ -33560,17 +33360,17 @@ function TablePriceList () {
33560
33360
  },
33561
33361
  children: /*#__PURE__*/jsx(PackageSelector, {
33562
33362
  organizationId: organizationId,
33563
- selectedPackage: packageId,
33564
- setSelectedPackage: function setSelectedPackage(id) {
33565
- return updateNavigation(id);
33363
+ packageId: packageId,
33364
+ setSelectedPackage: function setSelectedPackage(packageId) {
33365
+ return updateNavigation(packageId);
33566
33366
  },
33567
33367
  enricherService: apiConfig.enricherService
33568
33368
  })
33569
33369
  })]
33570
33370
  })
33571
- }), /*#__PURE__*/jsx(Spreadsheet, {
33371
+ }), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
33572
33372
  ref: spreadsheetRef,
33573
- gridId: 'crud-grid_epartlistpos',
33373
+ gridId: 'crud-grid_epricelists',
33574
33374
  applicationData: applicationData,
33575
33375
  configuration: configuration,
33576
33376
  hooks: hooks
@@ -33895,7 +33695,8 @@ function OpenModalButton (_ref) {
33895
33695
  function TableCatalogs () {
33896
33696
  var root = useStore();
33897
33697
  var _useTranslation = useTranslation(),
33898
- t = _useTranslation.t;
33698
+ t = _useTranslation.t,
33699
+ i18n = _useTranslation.i18n;
33899
33700
  var _useNavigation = useNavigation(),
33900
33701
  organizationId = _useNavigation.organizationId,
33901
33702
  apiConfig = _useNavigation.apiConfig,
@@ -34148,14 +33949,19 @@ function TableCatalogs () {
34148
33949
  editable: true,
34149
33950
  required: true,
34150
33951
  customParams: {
34151
- enumData: ['DE', 'EN', 'FR', 'IT'],
33952
+ enumData: getLanguageKey(t),
34152
33953
  multiple: true
34153
33954
  },
34154
33955
  defaultValue: ['DE']
34155
33956
  }, {
34156
33957
  headerName: 'backoffice.idmCatalog.general.label.currencyKey',
34157
33958
  field: 'currencyKey',
33959
+ cellDataType: 'enum',
33960
+ editable: true,
34158
33961
  required: true,
33962
+ customParams: {
33963
+ enumData: getCurrencyKey(t)
33964
+ },
34159
33965
  defaultValue: 'EUR'
34160
33966
  }, {
34161
33967
  headerName: 'backoffice.idmCatalog.general.label.fileId',
@@ -34208,7 +34014,7 @@ function TableCatalogs () {
34208
34014
  editable: true,
34209
34015
  required: true,
34210
34016
  customParams: {
34211
- enumData: ['DE', 'EN', 'FR', 'IT'],
34017
+ enumData: getLanguageKey(t),
34212
34018
  multiple: false
34213
34019
  },
34214
34020
  defaultValue: 'DE'
@@ -34237,8 +34043,13 @@ function TableCatalogs () {
34237
34043
  children: [{
34238
34044
  headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
34239
34045
  field: 'isoCountryId',
34046
+ cellDataType: 'enum',
34047
+ editable: true,
34240
34048
  required: true,
34241
- defaultValue: 'DE'
34049
+ defaultValue: 'DE',
34050
+ customParams: {
34051
+ enumData: getCountryKey(t)
34052
+ }
34242
34053
  }, {
34243
34054
  field: 'glnNo',
34244
34055
  headerName: 'backoffice.idmCatalog.general.label.glnNo',
@@ -34349,7 +34160,12 @@ function TableCatalogs () {
34349
34160
  headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
34350
34161
  field: 'isoCountryId1',
34351
34162
  required: true,
34352
- defaultValue: 'DE'
34163
+ defaultValue: 'DE',
34164
+ cellDataType: 'enum',
34165
+ editable: true,
34166
+ customParams: {
34167
+ enumData: getCountryKey(t)
34168
+ }
34353
34169
  }]
34354
34170
  }, {
34355
34171
  headerName: 'backoffice.idmCatalog.general.label.contact2',
@@ -34394,7 +34210,12 @@ function TableCatalogs () {
34394
34210
  field: 'city2'
34395
34211
  }, {
34396
34212
  headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
34397
- field: 'isoCountryId2'
34213
+ field: 'isoCountryId2',
34214
+ cellDataType: 'enum',
34215
+ editable: true,
34216
+ customParams: {
34217
+ enumData: getCountryKey(t)
34218
+ }
34398
34219
  }]
34399
34220
  }, {
34400
34221
  headerName: 'backoffice.idmCatalog.general.label.priceSettings',
@@ -34534,7 +34355,7 @@ function TableCatalogs () {
34534
34355
  defaultValue: '${organizationId}'
34535
34356
  }]
34536
34357
  };
34537
- }, []);
34358
+ }, [i18n.language]);
34538
34359
  var handleLoadingModalOk = useCallback(function () {
34539
34360
  setFileIsLoading(false);
34540
34361
  }, []);
@@ -34573,15 +34394,20 @@ function TableCatalogs () {
34573
34394
  }
34574
34395
 
34575
34396
  function CatalogSelector(_ref) {
34576
- var selectedCatalog = _ref.selectedCatalog,
34397
+ var catalogId = _ref.catalogId,
34577
34398
  setSelectedCatalog = _ref.setSelectedCatalog,
34578
34399
  idmService = _ref.idmService,
34579
34400
  organizationId = _ref.organizationId;
34580
34401
  var _useTranslation = useTranslation(),
34581
34402
  t = _useTranslation.t;
34403
+ var value = useMemo(function () {
34404
+ return {
34405
+ _id: catalogId
34406
+ };
34407
+ }, [catalogId]);
34582
34408
  return /*#__PURE__*/jsx(SimpleSelect, {
34583
34409
  apiInterface: {
34584
- 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)
34585
34411
  },
34586
34412
  apiMapping: {
34587
34413
  type: 'query',
@@ -34595,11 +34421,9 @@ function CatalogSelector(_ref) {
34595
34421
  value: '${_id}'
34596
34422
  },
34597
34423
  title: t('backoffice.menu.items.label.IDMEditorTableCatalogs'),
34598
- value: {
34599
- _id: selectedCatalog
34600
- },
34424
+ value: value,
34601
34425
  onChange: function onChange(value) {
34602
- return setSelectedCatalog(value._id);
34426
+ return setSelectedCatalog(value);
34603
34427
  },
34604
34428
  search: true,
34605
34429
  style: {
@@ -34654,6 +34478,10 @@ function useModule (currentModules) {
34654
34478
  var _useSearchParams = useSearchParams(),
34655
34479
  _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
34656
34480
  searchParams = _useSearchParams2[0];
34481
+ var _useState = useState(),
34482
+ _useState2 = _slicedToArray(_useState, 2),
34483
+ selectedCatalog = _useState2[0],
34484
+ setSelectedCatalog = _useState2[1];
34657
34485
  var menuItems = useMemo(function () {
34658
34486
  return [{
34659
34487
  key: 'series',
@@ -34760,7 +34588,8 @@ function useModule (currentModules) {
34760
34588
  if (!catalogId) throw new Error('catalogId is required');
34761
34589
  var updateNavigationModule = useCallback(function (currentCatalog) {
34762
34590
  var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
34763
- updateNavigation(currentCatalog, modules, '../');
34591
+ setSelectedCatalog(currentCatalog);
34592
+ updateNavigation(currentCatalog._id, modules, '../');
34764
34593
  }, [updateNavigation]);
34765
34594
  useEffect(function () {
34766
34595
  root.contentStore.updateAdditionalElement('catalogs', menuItems, currentModules);
@@ -34789,25 +34618,25 @@ function useModule (currentModules) {
34789
34618
  updateNavigation: updateNavigationModule,
34790
34619
  organizationId: organizationId,
34791
34620
  apiConfig: apiConfig,
34621
+ selectedCatalog: selectedCatalog,
34792
34622
  catalogId: catalogId
34793
34623
  };
34794
34624
  }
34795
34625
 
34796
34626
  function Items(_ref) {
34797
34627
  var organizationId = _ref.organizationId,
34798
- catalogId = _ref.catalogId,
34628
+ selectedCatalog = _ref.selectedCatalog,
34799
34629
  apiConfig = _ref.apiConfig,
34800
34630
  selectedSerie = _ref.selectedSerie;
34801
- useStore();
34802
34631
  var _useTranslation = useTranslation(),
34803
34632
  t = _useTranslation.t;
34804
34633
  var applicationData = useMemo(function () {
34805
34634
  return {
34806
34635
  organizationId: organizationId,
34807
- catalogId: catalogId,
34636
+ catalogId: selectedCatalog._id,
34808
34637
  selectedSerie: selectedSerie
34809
34638
  };
34810
- }, [organizationId, catalogId, selectedSerie]);
34639
+ }, [organizationId, selectedCatalog, selectedSerie]);
34811
34640
  var configuration = useMemo(function () {
34812
34641
  var itemIdentification = [{
34813
34642
  name: t('backoffice.idmCatalogEditor.items.label.catalogArticle'),
@@ -34920,48 +34749,7 @@ function Items(_ref) {
34920
34749
  cellDataType: 'number'
34921
34750
  }, {
34922
34751
  headerName: 'backoffice.idmCatalog.common.label.texts',
34923
- children: [{
34924
- headerName: 'backoffice.idmCatalog.general.label.shortText',
34925
- marryChildren: true,
34926
- children: [{
34927
- field: 'shortText.DE',
34928
- headerName: 'backoffice.idmEnricher.general.label.DE',
34929
- isDictionary: true,
34930
- required: true
34931
- }, {
34932
- field: 'shortText.EN',
34933
- headerName: 'backoffice.idmEnricher.general.label.EN',
34934
- isDictionary: true
34935
- }, {
34936
- field: 'shortText.FR',
34937
- headerName: 'backoffice.idmEnricher.general.label.FR',
34938
- isDictionary: true
34939
- }, {
34940
- field: 'shortText.IT',
34941
- headerName: 'backoffice.idmEnricher.general.label.IT',
34942
- isDictionary: true
34943
- }]
34944
- }, {
34945
- headerName: 'backoffice.idmCatalog.general.label.planningAdvice',
34946
- marryChildren: true,
34947
- children: [{
34948
- field: 'planningAdvice.DE',
34949
- headerName: 'backoffice.idmEnricher.general.label.DE',
34950
- isDictionary: true
34951
- }, {
34952
- field: 'planningAdvice.EN',
34953
- headerName: 'backoffice.idmEnricher.general.label.EN',
34954
- isDictionary: true
34955
- }, {
34956
- field: 'planningAdvice.FR',
34957
- headerName: 'backoffice.idmEnricher.general.label.FR',
34958
- isDictionary: true
34959
- }, {
34960
- field: 'planningAdvice.IT',
34961
- headerName: 'backoffice.idmEnricher.general.label.IT',
34962
- isDictionary: true
34963
- }]
34964
- }]
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'])]
34965
34753
  }, {
34966
34754
  headerName: 'backoffice.idmCatalog.items.label.articleNumbers',
34967
34755
  children: [{
@@ -35169,7 +34957,7 @@ function Items(_ref) {
35169
34957
  suppressColumnsToolPanel: true
35170
34958
  }]
35171
34959
  };
35172
- }, []);
34960
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
35173
34961
  return /*#__PURE__*/jsx(Spreadsheet, {
35174
34962
  gridId: 'crud-grid_items',
35175
34963
  applicationData: applicationData,
@@ -35181,6 +34969,7 @@ function TableItems () {
35181
34969
  var _useTranslation = useTranslation(),
35182
34970
  t = _useTranslation.t;
35183
34971
  var _useModule = useModule(['items']),
34972
+ selectedCatalog = _useModule.selectedCatalog,
35184
34973
  catalogId = _useModule.catalogId,
35185
34974
  updateNavigation = _useModule.updateNavigation,
35186
34975
  apiConfig = _useModule.apiConfig,
@@ -35198,9 +34987,9 @@ function TableItems () {
35198
34987
  },
35199
34988
  children: [/*#__PURE__*/jsx(CatalogSelector, {
35200
34989
  organizationId: organizationId,
35201
- selectedCatalog: catalogId,
35202
- setSelectedCatalog: function setSelectedCatalog(id) {
35203
- return updateNavigation(id);
34990
+ catalogId: catalogId,
34991
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
34992
+ return updateNavigation(catalog);
35204
34993
  },
35205
34994
  idmService: apiConfig.idmService
35206
34995
  }), /*#__PURE__*/jsx(SeriesSelector, {
@@ -35211,9 +35000,9 @@ function TableItems () {
35211
35000
  })]
35212
35001
  })]
35213
35002
  })
35214
- }), selectedSerie && /*#__PURE__*/jsx(Items, {
35003
+ }), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Items, {
35215
35004
  organizationId: organizationId,
35216
- catalogId: catalogId,
35005
+ selectedCatalog: selectedCatalog,
35217
35006
  selectedSerie: selectedSerie._id,
35218
35007
  apiConfig: apiConfig
35219
35008
  })]
@@ -35225,6 +35014,7 @@ function TableSeries () {
35225
35014
  t = _useTranslation.t;
35226
35015
  var root = useStore();
35227
35016
  var _useModule = useModule(['series']),
35017
+ selectedCatalog = _useModule.selectedCatalog,
35228
35018
  catalogId = _useModule.catalogId,
35229
35019
  organizationId = _useModule.organizationId,
35230
35020
  updateNavigation = _useModule.updateNavigation,
@@ -35305,28 +35095,7 @@ function TableSeries () {
35305
35095
  headerName: 'backoffice.idmCatalog.series.label.serieNo',
35306
35096
  required: true,
35307
35097
  cellDataType: 'number'
35308
- }, {
35309
- headerName: 'backoffice.idmCatalog.series.label.seriesName',
35310
- marryChildren: true,
35311
- children: [{
35312
- field: 'seriesName.DE',
35313
- headerName: 'backoffice.idmEnricher.general.label.DE',
35314
- isDictionary: true,
35315
- required: true
35316
- }, {
35317
- field: 'seriesName.EN',
35318
- headerName: 'backoffice.idmEnricher.general.label.EN',
35319
- isDictionary: true
35320
- }, {
35321
- field: 'seriesName.FR',
35322
- headerName: 'backoffice.idmEnricher.general.label.FR',
35323
- isDictionary: true
35324
- }, {
35325
- field: 'seriesName.IT',
35326
- headerName: 'backoffice.idmEnricher.general.label.IT',
35327
- isDictionary: true
35328
- }]
35329
- }, {
35098
+ }, createTranslatedColumnConfig('seriesName', 'backoffice.idmCatalog.series.label.seriesName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
35330
35099
  field: 'sequenceNo',
35331
35100
  headerName: 'backoffice.idmCatalog.series.label.sequenceNo',
35332
35101
  required: true,
@@ -35340,27 +35109,7 @@ function TableSeries () {
35340
35109
  enumData: purchaseRetailId,
35341
35110
  displayLabelTemplate: '${name} (${value})'
35342
35111
  }
35343
- }, {
35344
- headerName: 'backoffice.idmCatalog.series.label.seriesFullText',
35345
- marryChildren: true,
35346
- children: [{
35347
- field: 'seriesFullText.DE',
35348
- headerName: 'backoffice.idmEnricher.general.label.DE',
35349
- isDictionary: true
35350
- }, {
35351
- field: 'seriesFullText.EN',
35352
- headerName: 'backoffice.idmEnricher.general.label.EN',
35353
- isDictionary: true
35354
- }, {
35355
- field: 'seriesFullText.FR',
35356
- headerName: 'backoffice.idmEnricher.general.label.FR',
35357
- isDictionary: true
35358
- }, {
35359
- field: 'seriesFullText.IT',
35360
- headerName: 'backoffice.idmEnricher.general.label.IT',
35361
- isDictionary: true
35362
- }]
35363
- }, {
35112
+ }, createTranslatedColumnConfig('seriesFullText', 'backoffice.idmCatalog.series.label.seriesFullText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE']), {
35364
35113
  field: 'decisionRefs',
35365
35114
  headerName: 'backoffice.idmCatalog.series.label.decisionRefs',
35366
35115
  cellDataType: 'lookup',
@@ -35430,7 +35179,7 @@ function TableSeries () {
35430
35179
  defaultValue: '${catalogId}'
35431
35180
  }]
35432
35181
  };
35433
- }, []);
35182
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
35434
35183
  return /*#__PURE__*/jsxs(Fragment, {
35435
35184
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35436
35185
  title: /*#__PURE__*/jsxs("div", {
@@ -35440,7 +35189,7 @@ function TableSeries () {
35440
35189
  },
35441
35190
  children: /*#__PURE__*/jsx(CatalogSelector, {
35442
35191
  organizationId: organizationId,
35443
- selectedCatalog: catalogId,
35192
+ catalogId: catalogId,
35444
35193
  setSelectedCatalog: function setSelectedCatalog(id) {
35445
35194
  return updateNavigation(id);
35446
35195
  },
@@ -35448,7 +35197,7 @@ function TableSeries () {
35448
35197
  })
35449
35198
  })]
35450
35199
  })
35451
- }), /*#__PURE__*/jsx(Spreadsheet, {
35200
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
35452
35201
  gridId: 'crud-grid_series',
35453
35202
  applicationData: applicationData,
35454
35203
  hooks: hooks,
@@ -35459,16 +35208,16 @@ function TableSeries () {
35459
35208
 
35460
35209
  function Options(_ref) {
35461
35210
  var organizationId = _ref.organizationId,
35462
- catalogId = _ref.catalogId,
35211
+ selectedCatalog = _ref.selectedCatalog,
35463
35212
  selectedFeature = _ref.selectedFeature,
35464
35213
  apiConfig = _ref.apiConfig;
35465
35214
  var applicationData = useMemo(function () {
35466
35215
  return {
35467
35216
  organizationId: organizationId,
35468
- catalogId: catalogId,
35217
+ catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
35469
35218
  selectedFeature: selectedFeature
35470
35219
  };
35471
- }, [organizationId, catalogId, selectedFeature]);
35220
+ }, [organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, selectedFeature]);
35472
35221
  var configuration = useMemo(function () {
35473
35222
  return {
35474
35223
  type: 'dotnetSSM',
@@ -35490,54 +35239,10 @@ function Options(_ref) {
35490
35239
  headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
35491
35240
  field: 'sequenceNo',
35492
35241
  cellDataType: 'number'
35493
- }, {
35494
- headerName: 'backoffice.idmCatalog.common.label.texts',
35495
- children: [{
35496
- headerName: 'backoffice.idmCatalog.options.label.optionText',
35497
- marryChildren: true,
35498
- children: [{
35499
- field: 'optionText.DE',
35500
- headerName: 'backoffice.idmEnricher.general.label.DE',
35501
- isDictionary: true,
35502
- required: true
35503
- }, {
35504
- field: 'optionText.EN',
35505
- headerName: 'backoffice.idmEnricher.general.label.EN',
35506
- isDictionary: true
35507
- }, {
35508
- field: 'optionText.FR',
35509
- headerName: 'backoffice.idmEnricher.general.label.FR',
35510
- isDictionary: true
35511
- }, {
35512
- field: 'optionText.IT',
35513
- headerName: 'backoffice.idmEnricher.general.label.IT',
35514
- isDictionary: true
35515
- }]
35516
- }, {
35517
- headerName: 'backoffice.idmCatalog.options.label.optionCommentText',
35518
- marryChildren: true,
35519
- children: [{
35520
- field: 'optionCommentText.DE',
35521
- headerName: 'backoffice.idmEnricher.general.label.DE',
35522
- isDictionary: true
35523
- }, {
35524
- field: 'optionCommentText.EN',
35525
- headerName: 'backoffice.idmEnricher.general.label.EN',
35526
- isDictionary: true
35527
- }, {
35528
- field: 'optionCommentText.FR',
35529
- headerName: 'backoffice.idmEnricher.general.label.FR',
35530
- isDictionary: true
35531
- }, {
35532
- field: 'optionCommentText.IT',
35533
- headerName: 'backoffice.idmEnricher.general.label.IT',
35534
- isDictionary: true
35535
- }]
35536
- }, {
35537
- headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
35538
- field: 'optionFreeText',
35539
- cellDataType: 'boolean'
35540
- }]
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'
35541
35246
  }, {
35542
35247
  headerName: 'backoffice.idmCatalog.items.label.validation',
35543
35248
  children: [{
@@ -35601,7 +35306,7 @@ function Options(_ref) {
35601
35306
  editable: false
35602
35307
  }]
35603
35308
  };
35604
- }, []);
35309
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
35605
35310
  return /*#__PURE__*/jsx(Spreadsheet, {
35606
35311
  gridId: 'crud-grid_options',
35607
35312
  applicationData: applicationData,
@@ -35611,7 +35316,7 @@ function Options(_ref) {
35611
35316
 
35612
35317
  function Features(_ref) {
35613
35318
  var organizationId = _ref.organizationId,
35614
- catalogId = _ref.catalogId,
35319
+ selectedCatalog = _ref.selectedCatalog,
35615
35320
  featureClassId = _ref.featureClassId,
35616
35321
  apiConfig = _ref.apiConfig,
35617
35322
  hooks = _ref.hooks;
@@ -35619,11 +35324,11 @@ function Features(_ref) {
35619
35324
  t = _useTranslation.t;
35620
35325
  var applicationData = useMemo(function () {
35621
35326
  return {
35622
- catalogId: catalogId,
35327
+ catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
35623
35328
  organizationId: organizationId,
35624
35329
  featureClassId: featureClassId
35625
35330
  };
35626
- }, [catalogId, featureClassId, organizationId]);
35331
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, featureClassId, organizationId]);
35627
35332
  var apiInterface = useMemo(function () {
35628
35333
  return featureClassId ? {
35629
35334
  read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
@@ -35694,28 +35399,7 @@ function Features(_ref) {
35694
35399
  headerName: 'backoffice.idmCatalog.features.label.featureNo',
35695
35400
  required: true,
35696
35401
  unique: true
35697
- }]), [{
35698
- headerName: 'backoffice.idmCatalog.features.label.featureText',
35699
- marryChildren: true,
35700
- children: [{
35701
- field: 'featureText.DE',
35702
- headerName: 'backoffice.idmEnricher.general.label.DE',
35703
- isDictionary: true,
35704
- required: true
35705
- }, {
35706
- field: 'featureText.EN',
35707
- headerName: 'backoffice.idmEnricher.general.label.EN',
35708
- isDictionary: true
35709
- }, {
35710
- field: 'featureText.FR',
35711
- headerName: 'backoffice.idmEnricher.general.label.FR',
35712
- isDictionary: true
35713
- }, {
35714
- field: 'featureText.IT',
35715
- headerName: 'backoffice.idmEnricher.general.label.IT',
35716
- isDictionary: true
35717
- }]
35718
- }, {
35402
+ }]), [createTranslatedColumnConfig('featureText', 'backoffice.idmCatalog.features.label.featureText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
35719
35403
  field: 'sequenceNo',
35720
35404
  headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
35721
35405
  required: true,
@@ -35782,7 +35466,7 @@ function Features(_ref) {
35782
35466
  defaultValue: '${catalogId}'
35783
35467
  }])
35784
35468
  };
35785
- }, [featureClassId, apiInterface]);
35469
+ }, [featureClassId, apiInterface, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
35786
35470
  return /*#__PURE__*/jsx(Spreadsheet, {
35787
35471
  gridId: 'crud-grid_features' + (featureClassId ? '_featureClass' : ''),
35788
35472
  applicationData: applicationData,
@@ -35796,6 +35480,7 @@ function TableFeatures () {
35796
35480
  t = _useTranslation.t;
35797
35481
  var root = useStore();
35798
35482
  var _useModule = useModule(['features']),
35483
+ selectedCatalog = _useModule.selectedCatalog,
35799
35484
  catalogId = _useModule.catalogId,
35800
35485
  organizationId = _useModule.organizationId,
35801
35486
  updateNavigation = _useModule.updateNavigation,
@@ -35850,17 +35535,17 @@ function TableFeatures () {
35850
35535
  },
35851
35536
  children: /*#__PURE__*/jsx(CatalogSelector, {
35852
35537
  organizationId: organizationId,
35853
- selectedCatalog: catalogId,
35854
- setSelectedCatalog: function setSelectedCatalog(id) {
35855
- return updateNavigation(id);
35538
+ catalogId: catalogId,
35539
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
35540
+ return updateNavigation(catalog);
35856
35541
  },
35857
35542
  idmService: apiConfig.idmService
35858
35543
  })
35859
35544
  })]
35860
35545
  })
35861
- }), /*#__PURE__*/jsx(Features, {
35546
+ }), selectedCatalog && /*#__PURE__*/jsx(Features, {
35862
35547
  organizationId: organizationId,
35863
- catalogId: catalogId,
35548
+ selectedCatalog: selectedCatalog,
35864
35549
  apiConfig: apiConfig,
35865
35550
  hooks: hooks
35866
35551
  })]
@@ -35903,6 +35588,7 @@ function TableOptions () {
35903
35588
  var _useTranslation = useTranslation(),
35904
35589
  t = _useTranslation.t;
35905
35590
  var _useModule = useModule(['options']),
35591
+ selectedCatalog = _useModule.selectedCatalog,
35906
35592
  catalogId = _useModule.catalogId,
35907
35593
  updateNavigation = _useModule.updateNavigation,
35908
35594
  apiConfig = _useModule.apiConfig,
@@ -35920,9 +35606,9 @@ function TableOptions () {
35920
35606
  },
35921
35607
  children: [/*#__PURE__*/jsx(CatalogSelector, {
35922
35608
  organizationId: organizationId,
35923
- selectedCatalog: catalogId,
35924
- setSelectedCatalog: function setSelectedCatalog(id) {
35925
- return updateNavigation(id);
35609
+ catalogId: catalogId,
35610
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
35611
+ return updateNavigation(catalog);
35926
35612
  },
35927
35613
  idmService: apiConfig.idmService
35928
35614
  }), /*#__PURE__*/jsx(FeatureSelector, {
@@ -35933,9 +35619,9 @@ function TableOptions () {
35933
35619
  })]
35934
35620
  })]
35935
35621
  })
35936
- }), selectedFeature && /*#__PURE__*/jsx(Options, {
35622
+ }), selectedFeature && selectedCatalog && /*#__PURE__*/jsx(Options, {
35937
35623
  organizationId: organizationId,
35938
- catalogId: catalogId,
35624
+ selectedCatalog: selectedCatalog,
35939
35625
  selectedFeature: selectedFeature._id,
35940
35626
  apiConfig: apiConfig
35941
35627
  })]
@@ -35947,6 +35633,7 @@ function TableFeatureClasses () {
35947
35633
  t = _useTranslation.t;
35948
35634
  var root = useStore();
35949
35635
  var _useModule = useModule(['featureclasses']),
35636
+ selectedCatalog = _useModule.selectedCatalog,
35950
35637
  catalogId = _useModule.catalogId,
35951
35638
  organizationId = _useModule.organizationId,
35952
35639
  updateNavigation = _useModule.updateNavigation,
@@ -35974,7 +35661,7 @@ function TableFeatureClasses () {
35974
35661
  } else {
35975
35662
  root.contentStore.bottomToolBar.tools = [];
35976
35663
  }
35977
- }, [selectedFeatureClass]);
35664
+ }, [selectedFeatureClass, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id]);
35978
35665
  useEffect(function () {
35979
35666
  //remove features table, when featureclasses are unmounted
35980
35667
  return function () {
@@ -35986,7 +35673,7 @@ function TableFeatureClasses () {
35986
35673
  catalogId: catalogId,
35987
35674
  organizationId: organizationId
35988
35675
  };
35989
- }, [catalogId]);
35676
+ }, [catalogId, organizationId]);
35990
35677
  var hooks = useMemo(function () {
35991
35678
  return {
35992
35679
  onCellSelectionChanged: function onCellSelectionChanged(event) {
@@ -36014,27 +35701,7 @@ function TableFeatureClasses () {
36014
35701
  headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassNo',
36015
35702
  required: true,
36016
35703
  cellDataType: 'number'
36017
- }, {
36018
- headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassName',
36019
- marryChildren: true,
36020
- children: [{
36021
- field: 'featureClassName.DE',
36022
- headerName: 'backoffice.idmEnricher.general.label.DE',
36023
- isDictionary: true
36024
- }, {
36025
- field: 'featureClassName.EN',
36026
- headerName: 'backoffice.idmEnricher.general.label.EN',
36027
- isDictionary: true
36028
- }, {
36029
- field: 'featureClassName.FR',
36030
- headerName: 'backoffice.idmEnricher.general.label.FR',
36031
- isDictionary: true
36032
- }, {
36033
- field: 'featureClassName.IT',
36034
- headerName: 'backoffice.idmEnricher.general.label.IT',
36035
- isDictionary: true
36036
- }]
36037
- }, {
35704
+ }, createTranslatedColumnConfig('featureClassName', 'backoffice.idmCatalog.featureclasses.label.featureClassName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), {
36038
35705
  headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
36039
35706
  field: 'lastUpdatedDate',
36040
35707
  cellDataType: 'dateString',
@@ -36080,7 +35747,7 @@ function TableFeatureClasses () {
36080
35747
  defaultValue: {}
36081
35748
  }]
36082
35749
  };
36083
- }, []);
35750
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
36084
35751
  return /*#__PURE__*/jsxs(Fragment, {
36085
35752
  children: [/*#__PURE__*/jsx(Descriptions$1, {
36086
35753
  title: /*#__PURE__*/jsxs("div", {
@@ -36089,16 +35756,16 @@ function TableFeatureClasses () {
36089
35756
  "float": 'right'
36090
35757
  },
36091
35758
  children: /*#__PURE__*/jsx(CatalogSelector, {
36092
- selectedCatalog: catalogId,
36093
- setSelectedCatalog: function setSelectedCatalog(id) {
36094
- return updateNavigation(id);
35759
+ catalogId: catalogId,
35760
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
35761
+ return updateNavigation(catalog);
36095
35762
  },
36096
35763
  idmService: apiConfig.idmService,
36097
35764
  organizationId: organizationId
36098
35765
  })
36099
35766
  })]
36100
35767
  })
36101
- }), /*#__PURE__*/jsx(Spreadsheet, {
35768
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
36102
35769
  gridId: 'crud-grid_featureclasses',
36103
35770
  applicationData: applicationData,
36104
35771
  hooks: hooks,
@@ -36539,6 +36206,7 @@ function TableDecisions () {
36539
36206
  var root = useStore();
36540
36207
  var spreadsheetRef = useRef(null);
36541
36208
  var _useModule = useModule(['decisions']),
36209
+ selectedCatalog = _useModule.selectedCatalog,
36542
36210
  catalogId = _useModule.catalogId,
36543
36211
  organizationId = _useModule.organizationId,
36544
36212
  updateNavigation = _useModule.updateNavigation,
@@ -36585,7 +36253,7 @@ function TableDecisions () {
36585
36253
  catalogId: catalogId,
36586
36254
  organizationId: organizationId
36587
36255
  };
36588
- }, [catalogId]);
36256
+ }, [catalogId, organizationId]);
36589
36257
  var hooks = useMemo(function () {
36590
36258
  return {
36591
36259
  onCellSelectionChanged: function onCellSelectionChanged(event) {
@@ -36636,28 +36304,7 @@ function TableDecisions () {
36636
36304
  headerName: 'backoffice.idmCatalog.decisions.label.decisionNo',
36637
36305
  required: true,
36638
36306
  cellDataType: 'number'
36639
- }, {
36640
- headerName: 'backoffice.idmCatalog.decisions.label.decisionText',
36641
- marryChildren: true,
36642
- children: [{
36643
- field: 'decisionText.DE',
36644
- headerName: 'backoffice.idmEnricher.general.label.DE',
36645
- isDictionary: true,
36646
- required: true
36647
- }, {
36648
- field: 'decisionText.EN',
36649
- headerName: 'backoffice.idmEnricher.general.label.EN',
36650
- isDictionary: true
36651
- }, {
36652
- field: 'decisionText.FR',
36653
- headerName: 'backoffice.idmEnricher.general.label.FR',
36654
- isDictionary: true
36655
- }, {
36656
- field: 'decisionText.IT',
36657
- headerName: 'backoffice.idmEnricher.general.label.IT',
36658
- isDictionary: true
36659
- }]
36660
- }, {
36307
+ }, createTranslatedColumnConfig('decisionText', 'backoffice.idmCatalog.decisions.label.decisionText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
36661
36308
  field: 'comment',
36662
36309
  headerName: 'backoffice.idmCatalog.decisions.label.comment'
36663
36310
  }, {
@@ -36741,7 +36388,7 @@ function TableDecisions () {
36741
36388
  defaultValue: '${catalogId}'
36742
36389
  }]
36743
36390
  };
36744
- }, []);
36391
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
36745
36392
  return /*#__PURE__*/jsxs(Fragment, {
36746
36393
  children: [/*#__PURE__*/jsx(Descriptions$1, {
36747
36394
  title: /*#__PURE__*/jsxs("div", {
@@ -36750,16 +36397,16 @@ function TableDecisions () {
36750
36397
  "float": 'right'
36751
36398
  },
36752
36399
  children: /*#__PURE__*/jsx(CatalogSelector, {
36753
- selectedCatalog: catalogId,
36754
- setSelectedCatalog: function setSelectedCatalog(id) {
36755
- return updateNavigation(id);
36400
+ catalogId: catalogId,
36401
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
36402
+ return updateNavigation(catalog);
36756
36403
  },
36757
36404
  idmService: apiConfig.idmService,
36758
36405
  organizationId: organizationId
36759
36406
  })
36760
36407
  })]
36761
36408
  })
36762
- }), /*#__PURE__*/jsx(Spreadsheet, {
36409
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
36763
36410
  gridId: 'crud-grid_decisions',
36764
36411
  ref: spreadsheetRef,
36765
36412
  applicationData: applicationData,
@@ -36771,34 +36418,20 @@ function TableDecisions () {
36771
36418
 
36772
36419
  function TableDetailInfos () {
36773
36420
  var _useTranslation = useTranslation(),
36774
- t = _useTranslation.t;
36775
- useStore();
36421
+ t = _useTranslation.t,
36422
+ i18n = _useTranslation.i18n;
36776
36423
  var _useModule = useModule(['detailinfos']),
36424
+ selectedCatalog = _useModule.selectedCatalog,
36777
36425
  catalogId = _useModule.catalogId,
36778
36426
  organizationId = _useModule.organizationId,
36779
36427
  updateNavigation = _useModule.updateNavigation,
36780
36428
  apiConfig = _useModule.apiConfig;
36781
- var _React$useState = React.useState(),
36782
- _React$useState2 = _slicedToArray(_React$useState, 2);
36783
- _React$useState2[0];
36784
- var setSelectedDetailInfo = _React$useState2[1];
36785
36429
  var applicationData = useMemo(function () {
36786
36430
  return {
36787
36431
  catalogId: catalogId,
36788
36432
  organizationId: organizationId
36789
36433
  };
36790
- }, [catalogId]);
36791
- var hooks = useMemo(function () {
36792
- return {
36793
- onCellSelectionChanged: function onCellSelectionChanged(event) {
36794
- if (event.selection.length == 1) {
36795
- setSelectedDetailInfo(event.selection[0].node.data);
36796
- } else {
36797
- setSelectedDetailInfo(null);
36798
- }
36799
- }
36800
- };
36801
- }, []);
36434
+ }, [catalogId, organizationId]);
36802
36435
  var configuration = useMemo(function () {
36803
36436
  var layerId = [{
36804
36437
  name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l10'),
@@ -36874,67 +36507,7 @@ function TableDetailInfos () {
36874
36507
  headerName: 'backoffice.idmCatalog.detailinfos.label.detailInfoNo',
36875
36508
  required: true,
36876
36509
  cellDataType: 'number'
36877
- }, {
36878
- headerName: 'backoffice.idmCatalog.detailinfos.label.externalName',
36879
- marryChildren: true,
36880
- children: [{
36881
- field: 'externalName.DE',
36882
- headerName: 'backoffice.idmEnricher.general.label.DE',
36883
- isDictionary: true
36884
- }, {
36885
- field: 'externalName.EN',
36886
- headerName: 'backoffice.idmEnricher.general.label.EN',
36887
- isDictionary: true
36888
- }, {
36889
- field: 'externalName.FR',
36890
- headerName: 'backoffice.idmEnricher.general.label.FR',
36891
- isDictionary: true
36892
- }, {
36893
- field: 'externalName.IT',
36894
- headerName: 'backoffice.idmEnricher.general.label.IT',
36895
- isDictionary: true
36896
- }]
36897
- }, {
36898
- headerName: 'backoffice.idmCatalog.detailinfos.label.internalName',
36899
- marryChildren: true,
36900
- children: [{
36901
- field: 'internalName.DE',
36902
- headerName: 'backoffice.idmEnricher.general.label.DE',
36903
- isDictionary: true
36904
- }, {
36905
- field: 'internalName.EN',
36906
- headerName: 'backoffice.idmEnricher.general.label.EN',
36907
- isDictionary: true
36908
- }, {
36909
- field: 'internalName.FR',
36910
- headerName: 'backoffice.idmEnricher.general.label.FR',
36911
- isDictionary: true
36912
- }, {
36913
- field: 'internalName.IT',
36914
- headerName: 'backoffice.idmEnricher.general.label.IT',
36915
- isDictionary: true
36916
- }]
36917
- }, {
36918
- headerName: 'backoffice.idmCatalog.detailinfos.label.toolTip',
36919
- marryChildren: true,
36920
- children: [{
36921
- field: 'toolTip.DE',
36922
- headerName: 'backoffice.idmEnricher.general.label.DE',
36923
- isDictionary: true
36924
- }, {
36925
- field: 'toolTip.EN',
36926
- headerName: 'backoffice.idmEnricher.general.label.EN',
36927
- isDictionary: true
36928
- }, {
36929
- field: 'toolTip.FR',
36930
- headerName: 'backoffice.idmEnricher.general.label.FR',
36931
- isDictionary: true
36932
- }, {
36933
- field: 'toolTip.IT',
36934
- headerName: 'backoffice.idmEnricher.general.label.IT',
36935
- isDictionary: true
36936
- }]
36937
- }, {
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), {
36938
36511
  field: 'url',
36939
36512
  headerName: 'backoffice.idmCatalog.detailinfos.label.url',
36940
36513
  required: true
@@ -36972,7 +36545,7 @@ function TableDetailInfos () {
36972
36545
  editable: true,
36973
36546
  required: true,
36974
36547
  customParams: {
36975
- enumData: ['DE', 'EN', 'FR', 'IT'],
36548
+ enumData: getLanguageKey(t),
36976
36549
  multiple: false
36977
36550
  },
36978
36551
  defaultValue: 'DE'
@@ -37028,7 +36601,7 @@ function TableDetailInfos () {
37028
36601
  defaultValue: '${catalogId}'
37029
36602
  }]
37030
36603
  };
37031
- }, []);
36604
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
37032
36605
  return /*#__PURE__*/jsxs(Fragment, {
37033
36606
  children: [/*#__PURE__*/jsx(Descriptions$1, {
37034
36607
  title: /*#__PURE__*/jsxs("div", {
@@ -37038,18 +36611,17 @@ function TableDetailInfos () {
37038
36611
  },
37039
36612
  children: /*#__PURE__*/jsx(CatalogSelector, {
37040
36613
  organizationId: organizationId,
37041
- selectedCatalog: catalogId,
37042
- setSelectedCatalog: function setSelectedCatalog(id) {
37043
- return updateNavigation(id);
36614
+ catalogId: catalogId,
36615
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
36616
+ return updateNavigation(catalog);
37044
36617
  },
37045
36618
  idmService: apiConfig.idmService
37046
36619
  })
37047
36620
  })]
37048
36621
  })
37049
- }), /*#__PURE__*/jsx(Spreadsheet, {
37050
- gridId: 'crud-grid_series',
36622
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
36623
+ gridId: 'crud-grid_detailinfos',
37051
36624
  applicationData: applicationData,
37052
- hooks: hooks,
37053
36625
  configuration: configuration
37054
36626
  })]
37055
36627
  });
@@ -37265,10 +36837,11 @@ function TablePartlists () {
37265
36837
  t = _useTranslation.t;
37266
36838
  var root = useStore();
37267
36839
  var _useModule = useModule(['partlists']),
36840
+ selectedCatalog = _useModule.selectedCatalog,
37268
36841
  catalogId = _useModule.catalogId,
37269
- organizationId = _useModule.organizationId,
37270
36842
  updateNavigation = _useModule.updateNavigation,
37271
- apiConfig = _useModule.apiConfig;
36843
+ apiConfig = _useModule.apiConfig,
36844
+ organizationId = _useModule.organizationId;
37272
36845
  var _React$useState = React.useState(),
37273
36846
  _React$useState2 = _slicedToArray(_React$useState, 2),
37274
36847
  selectedPartlist = _React$useState2[0],
@@ -37301,10 +36874,10 @@ function TablePartlists () {
37301
36874
  }, []);
37302
36875
  var applicationData = useMemo(function () {
37303
36876
  return {
37304
- catalogId: catalogId,
37305
- organizationId: organizationId
36877
+ organizationId: organizationId,
36878
+ catalogId: catalogId
37306
36879
  };
37307
- }, [catalogId, organizationId]);
36880
+ }, [organizationId, catalogId]);
37308
36881
  var hooks = useMemo(function () {
37309
36882
  return {
37310
36883
  onCellSelectionChanged: function onCellSelectionChanged(event) {
@@ -37385,16 +36958,16 @@ function TablePartlists () {
37385
36958
  "float": 'right'
37386
36959
  },
37387
36960
  children: /*#__PURE__*/jsx(CatalogSelector, {
37388
- selectedCatalog: catalogId,
37389
- setSelectedCatalog: function setSelectedCatalog(id) {
37390
- return updateNavigation(id);
36961
+ catalogId: catalogId,
36962
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
36963
+ return updateNavigation(catalog);
37391
36964
  },
37392
36965
  idmService: apiConfig.idmService,
37393
36966
  organizationId: organizationId
37394
36967
  })
37395
36968
  })]
37396
36969
  })
37397
- }), /*#__PURE__*/jsx(Spreadsheet, {
36970
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
37398
36971
  gridId: 'crud-grid_partlists',
37399
36972
  applicationData: applicationData,
37400
36973
  hooks: hooks,
@@ -37781,6 +37354,7 @@ function TablePriceFeatureGroups () {
37781
37354
  var root = useStore();
37782
37355
  var spreadsheetRef = useRef(null);
37783
37356
  var _useModule = useModule(['pricefeaturegroups']),
37357
+ selectedCatalog = _useModule.selectedCatalog,
37784
37358
  catalogId = _useModule.catalogId,
37785
37359
  organizationId = _useModule.organizationId,
37786
37360
  updateNavigation = _useModule.updateNavigation,
@@ -37849,7 +37423,7 @@ function TablePriceFeatureGroups () {
37849
37423
  catalogId: catalogId,
37850
37424
  organizationId: organizationId
37851
37425
  };
37852
- }, [catalogId]);
37426
+ }, [catalogId, organizationId]);
37853
37427
  var hooks = useMemo(function () {
37854
37428
  return {
37855
37429
  onCellSelectionChanged: function onCellSelectionChanged(event) {
@@ -37890,28 +37464,7 @@ function TablePriceFeatureGroups () {
37890
37464
  headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupNo',
37891
37465
  required: true,
37892
37466
  cellDataType: 'number'
37893
- }, {
37894
- headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupText',
37895
- marryChildren: true,
37896
- children: [{
37897
- field: 'priceFeatureGroupText.DE',
37898
- headerName: 'backoffice.idmEnricher.general.label.DE',
37899
- isDictionary: true,
37900
- required: true
37901
- }, {
37902
- field: 'priceFeatureGroupText.EN',
37903
- headerName: 'backoffice.idmEnricher.general.label.EN',
37904
- isDictionary: true
37905
- }, {
37906
- field: 'priceFeatureGroupText.FR',
37907
- headerName: 'backoffice.idmEnricher.general.label.FR',
37908
- isDictionary: true
37909
- }, {
37910
- field: 'priceFeatureGroupText.IT',
37911
- headerName: 'backoffice.idmEnricher.general.label.IT',
37912
- isDictionary: true
37913
- }]
37914
- }, {
37467
+ }, createTranslatedColumnConfig('priceFeatureGroupText', 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
37915
37468
  field: 'comment',
37916
37469
  headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.comment'
37917
37470
  }, {
@@ -37973,7 +37526,7 @@ function TablePriceFeatureGroups () {
37973
37526
  additionalFields: ['featureNosDisplayTexts']
37974
37527
  }]
37975
37528
  };
37976
- }, []);
37529
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
37977
37530
  return /*#__PURE__*/jsxs(Fragment, {
37978
37531
  children: [/*#__PURE__*/jsx(Descriptions$1, {
37979
37532
  title: /*#__PURE__*/jsxs("div", {
@@ -37982,16 +37535,16 @@ function TablePriceFeatureGroups () {
37982
37535
  "float": 'right'
37983
37536
  },
37984
37537
  children: /*#__PURE__*/jsx(CatalogSelector, {
37985
- selectedCatalog: catalogId,
37986
- setSelectedCatalog: function setSelectedCatalog(id) {
37987
- return updateNavigation(id);
37538
+ catalogId: catalogId,
37539
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
37540
+ return updateNavigation(catalog);
37988
37541
  },
37989
37542
  idmService: apiConfig.idmService,
37990
37543
  organizationId: organizationId
37991
37544
  })
37992
37545
  })]
37993
37546
  })
37994
- }), /*#__PURE__*/jsx(Spreadsheet, {
37547
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
37995
37548
  gridId: 'crud-grid_pricefeaturegroups',
37996
37549
  ref: spreadsheetRef,
37997
37550
  applicationData: applicationData,
@@ -38005,6 +37558,7 @@ function TablePrices () {
38005
37558
  var _useTranslation = useTranslation(),
38006
37559
  t = _useTranslation.t;
38007
37560
  var _useModule = useModule(['prices']),
37561
+ selectedCatalog = _useModule.selectedCatalog,
38008
37562
  catalogId = _useModule.catalogId,
38009
37563
  updateNavigation = _useModule.updateNavigation,
38010
37564
  apiConfig = _useModule.apiConfig,
@@ -38054,6 +37608,11 @@ function TablePrices () {
38054
37608
  additionalFields: ['typeNoDisplayText'],
38055
37609
  isDictionary: true,
38056
37610
  editable: false
37611
+ }, {
37612
+ field: 'partListExclusive',
37613
+ headerName: 'backoffice.idmCatalog.prices.label.partListExclusive',
37614
+ editable: false,
37615
+ cellDataType: 'boolean'
38057
37616
  }].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups.map(function (priceFeatureGroup) {
38058
37617
  var _priceFeatureGroup$ke;
38059
37618
  return {
@@ -38107,9 +37666,9 @@ function TablePrices () {
38107
37666
  },
38108
37667
  children: [/*#__PURE__*/jsx(CatalogSelector, {
38109
37668
  organizationId: organizationId,
38110
- selectedCatalog: catalogId,
38111
- setSelectedCatalog: function setSelectedCatalog(id) {
38112
- updateNavigation(id);
37669
+ catalogId: catalogId,
37670
+ setSelectedCatalog: function setSelectedCatalog(catalog) {
37671
+ updateNavigation(catalog);
38113
37672
  setSelectedSerie(undefined);
38114
37673
  },
38115
37674
  idmService: apiConfig.idmService
@@ -38122,7 +37681,7 @@ function TablePrices () {
38122
37681
  })]
38123
37682
  })]
38124
37683
  })
38125
- }), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
37684
+ }), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
38126
37685
  gridId: 'crud-grid_prices',
38127
37686
  applicationData: applicationData,
38128
37687
  configuration: configuration