@crystaldesign/diva-backoffice 26.8.0-beta.33 → 26.8.0-beta.35

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 (25) hide show
  1. package/build/esm/index.js +107 -44
  2. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -1
  3. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts.map +1 -1
  4. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  5. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts +2 -1
  6. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
  7. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
  8. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
  9. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts +2 -1
  10. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
  11. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts +2 -1
  12. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
  13. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/FeatureSelector.d.ts.map +1 -1
  14. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
  15. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
  16. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
  17. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
  18. package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts +1 -0
  19. package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts.map +1 -1
  20. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/FeatureSelector.d.ts.map +1 -1
  21. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
  22. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
  23. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
  24. package/build/types/backoffice/src/utils/downloadHandler.d.ts.map +1 -1
  25. package/package.json +9 -9
@@ -24450,7 +24450,7 @@ function downloadFile(_x4, _x5, _x6, _x7) {
24450
24450
  }
24451
24451
  function _downloadFile() {
24452
24452
  _downloadFile = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url, jwt, accept, fileName) {
24453
- var response, blob, downloadLink, fileURL;
24453
+ var response, message, body, blob, downloadLink, fileURL;
24454
24454
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
24455
24455
  while (1) switch (_context3.prev = _context3.next) {
24456
24456
  case 0:
@@ -24464,14 +24464,29 @@ function _downloadFile() {
24464
24464
  case 2:
24465
24465
  response = _context3.sent;
24466
24466
  if (response.ok) {
24467
- _context3.next = 5;
24467
+ _context3.next = 15;
24468
24468
  break;
24469
24469
  }
24470
- throw new Error("Failed to fetch the file: ".concat(response.statusText));
24471
- case 5:
24472
- _context3.next = 7;
24470
+ message = response.statusText;
24471
+ _context3.prev = 5;
24472
+ _context3.next = 8;
24473
+ return response.json();
24474
+ case 8:
24475
+ body = _context3.sent;
24476
+ if (typeof (body === null || body === void 0 ? void 0 : body.error) === 'string') {
24477
+ message = body.error;
24478
+ }
24479
+ _context3.next = 14;
24480
+ break;
24481
+ case 12:
24482
+ _context3.prev = 12;
24483
+ _context3.t0 = _context3["catch"](5);
24484
+ case 14:
24485
+ throw new Error(message);
24486
+ case 15:
24487
+ _context3.next = 17;
24473
24488
  return response.blob();
24474
- case 7:
24489
+ case 17:
24475
24490
  blob = _context3.sent;
24476
24491
  downloadLink = document.createElement('a');
24477
24492
  fileURL = URL.createObjectURL(blob);
@@ -24483,11 +24498,11 @@ function _downloadFile() {
24483
24498
  // Clean up
24484
24499
  document.body.removeChild(downloadLink);
24485
24500
  URL.revokeObjectURL(fileURL);
24486
- case 16:
24501
+ case 26:
24487
24502
  case "end":
24488
24503
  return _context3.stop();
24489
24504
  }
24490
- }, _callee3);
24505
+ }, _callee3, null, [[5, 12]]);
24491
24506
  }));
24492
24507
  return _downloadFile.apply(this, arguments);
24493
24508
  }
@@ -35316,11 +35331,13 @@ var TableGroups = observer(function () {
35316
35331
  item: selectedItem
35317
35332
  });
35318
35333
  var applicationData = useMemo(function () {
35334
+ var _selectedPackage$isoL;
35319
35335
  return {
35320
35336
  packageId: packageId,
35321
- organizationId: organizationId
35337
+ organizationId: organizationId,
35338
+ defaultLanguage: (selectedPackage === null || selectedPackage === void 0 || (_selectedPackage$isoL = selectedPackage.isoLanguageIds) === null || _selectedPackage$isoL === void 0 ? void 0 : _selectedPackage$isoL[0]) || 'DE'
35322
35339
  };
35323
- }, [packageId, organizationId]);
35340
+ }, [packageId, organizationId, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
35324
35341
  var apiInterface = useMemo(function () {
35325
35342
  return {
35326
35343
  read: apiConfig.enricherService + '/packages/${packageId}/groups',
@@ -37132,11 +37149,13 @@ var TableProperties = observer(function () {
37132
37149
  item: selectedItem
37133
37150
  });
37134
37151
  var applicationData = useMemo(function () {
37152
+ var _selectedPackage$isoL;
37135
37153
  return {
37136
37154
  packageId: packageId,
37137
- organizationId: organizationId
37155
+ organizationId: organizationId,
37156
+ defaultLanguage: (selectedPackage === null || selectedPackage === void 0 || (_selectedPackage$isoL = selectedPackage.isoLanguageIds) === null || _selectedPackage$isoL === void 0 ? void 0 : _selectedPackage$isoL[0]) || 'DE'
37138
37157
  };
37139
- }, [packageId, organizationId]);
37158
+ }, [packageId, organizationId, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
37140
37159
  var apiInterface = useMemo(function () {
37141
37160
  return {
37142
37161
  read: apiConfig.enricherService + '/packages/${packageId}/properties',
@@ -38757,11 +38776,13 @@ var TableTabGroups = observer(function () {
38757
38776
  item: selectedItem
38758
38777
  });
38759
38778
  var applicationData = useMemo(function () {
38779
+ var _selectedPackage$isoL;
38760
38780
  return {
38761
38781
  packageId: packageId,
38762
- organizationId: organizationId
38782
+ organizationId: organizationId,
38783
+ defaultLanguage: (selectedPackage === null || selectedPackage === void 0 || (_selectedPackage$isoL = selectedPackage.isoLanguageIds) === null || _selectedPackage$isoL === void 0 ? void 0 : _selectedPackage$isoL[0]) || 'DE'
38763
38784
  };
38764
- }, [packageId, organizationId]);
38785
+ }, [packageId, organizationId, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
38765
38786
  var apiInterface = useMemo(function () {
38766
38787
  return {
38767
38788
  //TODO: Es gibt globale Tabgroups, die vordefiniert sind und pro Enricher Paket nochmals angepasst werden können -endpoint anpassen?
@@ -41990,7 +42011,7 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
41990
42011
  case 21:
41991
42012
  _context.prev = 21;
41992
42013
  _context.t0 = _context["catch"](15);
41993
- showErrorModal('File download failed:' + _context.t0);
42014
+ showErrorModal('File download failed: ' + (_context.t0 instanceof Error ? _context.t0.message : String(_context.t0)));
41994
42015
  case 24:
41995
42016
  _context.prev = 24;
41996
42017
  clearTimeout(alertTimeout);
@@ -42029,7 +42050,7 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
42029
42050
  case 9:
42030
42051
  _context2.prev = 9;
42031
42052
  _context2.t0 = _context2["catch"](3);
42032
- showErrorModal('File download failed:' + _context2.t0);
42053
+ showErrorModal('File download failed: ' + (_context2.t0 instanceof Error ? _context2.t0.message : String(_context2.t0)));
42033
42054
  case 12:
42034
42055
  _context2.prev = 12;
42035
42056
  clearTimeout(alertTimeout);
@@ -42881,7 +42902,7 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
42881
42902
  case 21:
42882
42903
  _context.prev = 21;
42883
42904
  _context.t0 = _context["catch"](15);
42884
- showErrorModal('File download failed:' + _context.t0);
42905
+ showErrorModal('File download failed: ' + (_context.t0 instanceof Error ? _context.t0.message : String(_context.t0)));
42885
42906
  case 24:
42886
42907
  _context.prev = 24;
42887
42908
  clearTimeout(alertTimeout);
@@ -42920,7 +42941,7 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
42920
42941
  case 9:
42921
42942
  _context2.prev = 9;
42922
42943
  _context2.t0 = _context2["catch"](3);
42923
- showErrorModal('File download failed:' + _context2.t0);
42944
+ showErrorModal('File download failed: ' + (_context2.t0 instanceof Error ? _context2.t0.message : String(_context2.t0)));
42924
42945
  case 12:
42925
42946
  _context2.prev = 12;
42926
42947
  clearTimeout(alertTimeout);
@@ -43449,7 +43470,7 @@ var CatalogSelector = function CatalogSelector(_ref) {
43449
43470
  return /*#__PURE__*/jsx(SimpleSelect, {
43450
43471
  sharedState: catalogSelectorState,
43451
43472
  apiInterface: {
43452
- read: "".concat(idmService, "/catalogs?fields=name;_id;isoLanguageIds;major&filter=organizationId==\"").concat(organizationId, "\"")
43473
+ read: "".concat(idmService, "/catalogs?fields=name;_id;isoLanguageIds;major;fallBackLanguage&filter=organizationId==\"").concat(organizationId, "\"")
43453
43474
  },
43454
43475
  apiMapping: {
43455
43476
  type: 'query',
@@ -43503,6 +43524,15 @@ var SeriesSelector = function SeriesSelector(_ref) {
43503
43524
  }, catalogId);
43504
43525
  };
43505
43526
  var SeriesSelector$1 = observer(SeriesSelector);
43527
+
43528
+ /** Resolves a translated dictionary value (e.g. `{ DE: '...', FR: '...' }`) to a plain string, falling back to the catalog's default language, then German. */
43529
+ function resolveTranslatedText$1(value, language, catalog) {
43530
+ var _catalog$isoLanguageI, _ref2, _ref3, _value$language;
43531
+ if (value == null) return '';
43532
+ if (_typeof(value) !== 'object') return value;
43533
+ var fallbackLanguage = (catalog === null || catalog === void 0 ? void 0 : catalog.fallBackLanguage) || (catalog === null || catalog === void 0 || (_catalog$isoLanguageI = catalog.isoLanguageIds) === null || _catalog$isoLanguageI === void 0 ? void 0 : _catalog$isoLanguageI[0]);
43534
+ return (_ref2 = (_ref3 = (_value$language = value[language]) !== null && _value$language !== void 0 ? _value$language : fallbackLanguage && value[fallbackLanguage]) !== null && _ref3 !== void 0 ? _ref3 : value.DE) !== null && _ref2 !== void 0 ? _ref2 : '';
43535
+ }
43506
43536
  var useSeriesSelector = function useSeriesSelector(modules) {
43507
43537
  var _useTranslation2 = useTranslation(),
43508
43538
  i18n = _useTranslation2.i18n;
@@ -43510,6 +43540,7 @@ var useSeriesSelector = function useSeriesSelector(modules) {
43510
43540
  var _useCatalogContext = useCatalogContext(modules),
43511
43541
  catalogId = _useCatalogContext.catalogId,
43512
43542
  idmService = _useCatalogContext.idmService,
43543
+ selectedCatalog = _useCatalogContext.selectedCatalog,
43513
43544
  selectedSerie = _useCatalogContext.selectedSerie,
43514
43545
  setSelectedSerie = _useCatalogContext.setSelectedSerie,
43515
43546
  seriesSelectorState = _useCatalogContext.seriesSelectorState;
@@ -43517,18 +43548,23 @@ var useSeriesSelector = function useSeriesSelector(modules) {
43517
43548
  _useState2 = _slicedToArray(_useState, 2),
43518
43549
  selected = _useState2[0],
43519
43550
  setSelected = _useState2[1];
43551
+
43552
+ // Query the full seriesName dictionary (not narrowed to the current language) so a catalog that doesn't have
43553
+ // the current UI language still returns a value to fall back to.
43520
43554
  var apiInterface = {
43521
- read: idmService + "/catalogs/".concat(catalogId, "/series?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo")
43555
+ read: idmService + "/catalogs/".concat(catalogId, "/series?fields=seriesName;_id;serieNo")
43522
43556
  };
43523
43557
  var selectMapping = {
43524
- label: "${seriesName.".concat(i18n.language.toLocaleUpperCase(), "} (${serieNo})"),
43558
+ label: function label(data) {
43559
+ return "".concat(resolveTranslatedText$1(data.seriesName, i18n.language.toLocaleUpperCase(), selectedCatalog), " (").concat(data.serieNo, ")");
43560
+ },
43525
43561
  value: '${_id}'
43526
43562
  };
43527
43563
  useEffect(function () {
43528
43564
  setSelected(selectedSerie);
43529
43565
  }, [selectedSerie]);
43530
43566
  var fetchSerie = /*#__PURE__*/function () {
43531
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(newSerie) {
43567
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(newSerie) {
43532
43568
  var _seriesSelectorState$, _seriesSelectorState$2;
43533
43569
  var isLoaded, api, serie, option;
43534
43570
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -43556,7 +43592,7 @@ var useSeriesSelector = function useSeriesSelector(modules) {
43556
43592
  api = new _default$c({
43557
43593
  type: 'SelectSimple',
43558
43594
  apiInterface: {
43559
- read: idmService + "/catalogs/".concat(catalogId, "/series/").concat(newSerie._id, "?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts;lastUpdatedDate")
43595
+ read: idmService + "/catalogs/".concat(catalogId, "/series/").concat(newSerie._id, "?fields=seriesName;_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts;lastUpdatedDate")
43560
43596
  }
43561
43597
  }, root);
43562
43598
  _context.next = 10;
@@ -43579,7 +43615,7 @@ var useSeriesSelector = function useSeriesSelector(modules) {
43579
43615
  }, _callee);
43580
43616
  }));
43581
43617
  return function fetchSerie(_x) {
43582
- return _ref2.apply(this, arguments);
43618
+ return _ref4.apply(this, arguments);
43583
43619
  };
43584
43620
  }();
43585
43621
  var onChange = function onChange(value) {
@@ -43768,12 +43804,14 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
43768
43804
  t = _useTranslation.t,
43769
43805
  i18n = _useTranslation.i18n;
43770
43806
  var applicationData = useMemo(function () {
43807
+ var _selectedCatalog$isoL;
43771
43808
  return {
43772
43809
  organizationId: organizationId,
43773
43810
  catalogId: selectedCatalog._id,
43774
43811
  catalogName: selectedCatalog.name,
43775
43812
  selectedSerieId: selectedSerie._id,
43776
- selectedSerieNo: selectedSerie.serieNo
43813
+ selectedSerieNo: selectedSerie.serieNo,
43814
+ defaultLanguage: selectedCatalog.fallBackLanguage || ((_selectedCatalog$isoL = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL === void 0 ? void 0 : _selectedCatalog$isoL[0]) || 'DE'
43777
43815
  };
43778
43816
  }, [organizationId, selectedCatalog, selectedSerie]);
43779
43817
  var configuration = useMemo(function () {
@@ -44519,11 +44557,13 @@ var TableSeries = observer(function () {
44519
44557
  }]
44520
44558
  });
44521
44559
  var applicationData = useMemo(function () {
44560
+ var _selectedCatalog$isoL;
44522
44561
  return {
44523
44562
  catalogId: catalogId,
44524
- organizationId: organizationId
44563
+ organizationId: organizationId,
44564
+ defaultLanguage: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage) || (selectedCatalog === null || selectedCatalog === void 0 || (_selectedCatalog$isoL = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL === void 0 ? void 0 : _selectedCatalog$isoL[0]) || 'DE'
44525
44565
  };
44526
- }, [catalogId, organizationId]);
44566
+ }, [catalogId, organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
44527
44567
  var catalogMajor = (_selectedCatalog$majo = selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) !== null && _selectedCatalog$majo !== void 0 ? _selectedCatalog$majo : catalogMajorFetched;
44528
44568
  var hooks = useMemo(function () {
44529
44569
  return {
@@ -44812,11 +44852,13 @@ var Features$2 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
44812
44852
  var _useTranslation = useTranslation(),
44813
44853
  t = _useTranslation.t;
44814
44854
  var applicationData = useMemo(function () {
44855
+ var _selectedCatalog$isoL;
44815
44856
  return {
44816
44857
  catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
44817
- organizationId: organizationId
44858
+ organizationId: organizationId,
44859
+ defaultLanguage: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage) || (selectedCatalog === null || selectedCatalog === void 0 || (_selectedCatalog$isoL = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL === void 0 ? void 0 : _selectedCatalog$isoL[0]) || 'DE'
44818
44860
  };
44819
- }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, organizationId]);
44861
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
44820
44862
  var apiInterface = useMemo(function () {
44821
44863
  return {
44822
44864
  read: apiConfig.idmService + '/catalogs/${catalogId}/features',
@@ -45137,11 +45179,13 @@ var Options$1 = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
45137
45179
  i18n = _useTranslation.i18n;
45138
45180
  var isIdm4 = (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4;
45139
45181
  var applicationData = useMemo(function () {
45182
+ var _selectedCatalog$isoL;
45140
45183
  return {
45141
45184
  organizationId: organizationId,
45142
- catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id
45185
+ catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
45186
+ defaultLanguage: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage) || (selectedCatalog === null || selectedCatalog === void 0 || (_selectedCatalog$isoL = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL === void 0 ? void 0 : _selectedCatalog$isoL[0]) || 'DE'
45143
45187
  };
45144
- }, [organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id]);
45188
+ }, [organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
45145
45189
  var configuration = useMemo(function () {
45146
45190
  return {
45147
45191
  type: 'dotnetSSM',
@@ -45517,12 +45561,14 @@ var FeaturesWithFeatureClass = /*#__PURE__*/forwardRef(function FeaturesWithFeat
45517
45561
  var _useTranslation = useTranslation(),
45518
45562
  t = _useTranslation.t;
45519
45563
  var applicationData = useMemo(function () {
45564
+ var _selectedCatalog$isoL;
45520
45565
  return {
45521
45566
  catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
45522
45567
  organizationId: organizationId,
45523
- featureClassId: featureClassId
45568
+ featureClassId: featureClassId,
45569
+ defaultLanguage: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage) || (selectedCatalog === null || selectedCatalog === void 0 || (_selectedCatalog$isoL = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL === void 0 ? void 0 : _selectedCatalog$isoL[0]) || 'DE'
45524
45570
  };
45525
- }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, featureClassId, organizationId]);
45571
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, featureClassId, organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
45526
45572
  var apiInterface = useMemo(function () {
45527
45573
  return {
45528
45574
  read: apiConfig.idmService + '/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
@@ -47911,6 +47957,7 @@ function OptionSetRefExpandedEditor(_ref) {
47911
47957
  function OptionCombinations(_ref) {
47912
47958
  var decision = _ref.decision,
47913
47959
  catalogId = _ref.catalogId,
47960
+ defaultLanguage = _ref.defaultLanguage,
47914
47961
  apiConfig = _ref.apiConfig,
47915
47962
  setNodeDataValue = _ref.setNodeDataValue;
47916
47963
  var _useTranslation = useTranslation(),
@@ -47941,9 +47988,10 @@ function OptionCombinations(_ref) {
47941
47988
  var applicationData = useMemo(function () {
47942
47989
  return {
47943
47990
  catalogId: catalogId,
47944
- decisionId: decision._id
47991
+ decisionId: decision._id,
47992
+ defaultLanguage: defaultLanguage
47945
47993
  };
47946
- }, [catalogId, decision._id]);
47994
+ }, [catalogId, decision._id, defaultLanguage]);
47947
47995
  var apiInterface = useMemo(function () {
47948
47996
  return {
47949
47997
  read: apiConfig.idmService + '/catalogs/${catalogId}/decisions/${decisionId}/optioncombinations',
@@ -48107,6 +48155,7 @@ function OptionCombinations(_ref) {
48107
48155
  }
48108
48156
 
48109
48157
  var TableDecisions = observer(function () {
48158
+ var _selectedCatalog$isoL;
48110
48159
  var _useTranslation = useTranslation(),
48111
48160
  t = _useTranslation.t;
48112
48161
  var spreadsheetRef = useRef(null);
@@ -48144,6 +48193,7 @@ var TableDecisions = observer(function () {
48144
48193
  elementProps: {
48145
48194
  decision: selectedDecision,
48146
48195
  catalogId: catalogId,
48196
+ defaultLanguage: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage) || (selectedCatalog === null || selectedCatalog === void 0 || (_selectedCatalog$isoL = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL === void 0 ? void 0 : _selectedCatalog$isoL[0]) || 'DE',
48147
48197
  apiConfig: apiConfig,
48148
48198
  setNodeDataValue: setNodeDataValue
48149
48199
  },
@@ -48153,11 +48203,13 @@ var TableDecisions = observer(function () {
48153
48203
  }]
48154
48204
  });
48155
48205
  var applicationData = useMemo(function () {
48206
+ var _selectedCatalog$isoL2;
48156
48207
  return {
48157
48208
  catalogId: catalogId,
48158
- organizationId: organizationId
48209
+ organizationId: organizationId,
48210
+ defaultLanguage: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage) || (selectedCatalog === null || selectedCatalog === void 0 || (_selectedCatalog$isoL2 = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL2 === void 0 ? void 0 : _selectedCatalog$isoL2[0]) || 'DE'
48159
48211
  };
48160
- }, [catalogId, organizationId]);
48212
+ }, [catalogId, organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
48161
48213
  var hooks = useMemo(function () {
48162
48214
  return {
48163
48215
  onCellSelectionChanged: function onCellSelectionChanged(event) {
@@ -48618,10 +48670,12 @@ function PartlistPos(_ref2) {
48618
48670
  }];
48619
48671
  }, []);
48620
48672
  var applicationData = useMemo(function () {
48673
+ var _catalog$isoLanguageI;
48621
48674
  return {
48622
48675
  catalogId: catalog._id,
48623
48676
  organizationId: organizationId,
48624
- partlistId: partlist._id
48677
+ partlistId: partlist._id,
48678
+ defaultLanguage: catalog.fallBackLanguage || ((_catalog$isoLanguageI = catalog.isoLanguageIds) === null || _catalog$isoLanguageI === void 0 ? void 0 : _catalog$isoLanguageI[0]) || 'DE'
48625
48679
  };
48626
48680
  }, [catalog, partlist, organizationId]);
48627
48681
  var apiInterface = useMemo(function () {
@@ -49095,11 +49149,13 @@ var TablePartlists = observer(function () {
49095
49149
  }]
49096
49150
  });
49097
49151
  var applicationData = useMemo(function () {
49152
+ var _selectedCatalog$isoL;
49098
49153
  return {
49099
49154
  organizationId: organizationId,
49100
- catalogId: catalogId
49155
+ catalogId: catalogId,
49156
+ defaultLanguage: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage) || (selectedCatalog === null || selectedCatalog === void 0 || (_selectedCatalog$isoL = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL === void 0 ? void 0 : _selectedCatalog$isoL[0]) || 'DE'
49101
49157
  };
49102
- }, [organizationId, catalogId]);
49158
+ }, [organizationId, catalogId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
49103
49159
  var hooks = useMemo(function () {
49104
49160
  return {
49105
49161
  onCellSelectionChanged: function onCellSelectionChanged(event) {
@@ -49247,6 +49303,7 @@ function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t
49247
49303
  function PriceFeatureGroupPercentageSurcharge(_ref) {
49248
49304
  var priceFeatureGroup = _ref.priceFeatureGroup,
49249
49305
  catalogId = _ref.catalogId,
49306
+ defaultLanguage = _ref.defaultLanguage,
49250
49307
  apiConfig = _ref.apiConfig,
49251
49308
  setNodeDataValue = _ref.setNodeDataValue,
49252
49309
  setIsPercentage = _ref.setIsPercentage;
@@ -49291,9 +49348,10 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
49291
49348
  var applicationData = useMemo(function () {
49292
49349
  return {
49293
49350
  catalogId: catalogId,
49294
- priceFeatureGroupId: priceFeatureGroup._id
49351
+ priceFeatureGroupId: priceFeatureGroup._id,
49352
+ defaultLanguage: defaultLanguage
49295
49353
  };
49296
- }, [catalogId, priceFeatureGroup._id]);
49354
+ }, [catalogId, priceFeatureGroup._id, defaultLanguage]);
49297
49355
  var apiInterface = useMemo(function () {
49298
49356
  return {
49299
49357
  read: apiConfig.idmService + '/catalogs/${catalogId}/pricefeaturegroups/${priceFeatureGroupId}/percentagesurcharges',
@@ -49450,6 +49508,7 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
49450
49508
  function PriceFeatureGroupFinishes(_ref) {
49451
49509
  var priceFeatureGroup = _ref.priceFeatureGroup,
49452
49510
  catalogId = _ref.catalogId,
49511
+ defaultLanguage = _ref.defaultLanguage,
49453
49512
  apiConfig = _ref.apiConfig,
49454
49513
  setNodeDataValue = _ref.setNodeDataValue,
49455
49514
  setIsPercentage = _ref.setIsPercentage;
@@ -49489,9 +49548,10 @@ function PriceFeatureGroupFinishes(_ref) {
49489
49548
  var applicationData = useMemo(function () {
49490
49549
  return {
49491
49550
  catalogId: catalogId,
49492
- priceFeatureGroupId: priceFeatureGroup._id
49551
+ priceFeatureGroupId: priceFeatureGroup._id,
49552
+ defaultLanguage: defaultLanguage
49493
49553
  };
49494
- }, [catalogId, priceFeatureGroup._id]);
49554
+ }, [catalogId, priceFeatureGroup._id, defaultLanguage]);
49495
49555
  var hooks = useMemo(function () {
49496
49556
  return {
49497
49557
  onDataUpdated: function onDataUpdated(event) {
@@ -49641,6 +49701,7 @@ function PriceFeatureGroupFinishes(_ref) {
49641
49701
  function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
49642
49702
  function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
49643
49703
  var TablePriceFeatureGroups = observer(function () {
49704
+ var _selectedCatalog$isoL, _selectedCatalog$isoL2;
49644
49705
  var _useTranslation = useTranslation(),
49645
49706
  t = _useTranslation.t;
49646
49707
  var root = useStore();
@@ -49685,6 +49746,7 @@ var TablePriceFeatureGroups = observer(function () {
49685
49746
  elementProps: {
49686
49747
  priceFeatureGroup: selectedPriceFeatureGroup,
49687
49748
  catalogId: catalogId,
49749
+ defaultLanguage: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage) || (selectedCatalog === null || selectedCatalog === void 0 || (_selectedCatalog$isoL = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL === void 0 ? void 0 : _selectedCatalog$isoL[0]) || 'DE',
49688
49750
  apiConfig: apiConfig,
49689
49751
  setNodeDataValue: setNodeDataValue,
49690
49752
  setIsPercentage: setIsPercentage
@@ -49700,6 +49762,7 @@ var TablePriceFeatureGroups = observer(function () {
49700
49762
  elementProps: {
49701
49763
  priceFeatureGroup: selectedPriceFeatureGroup,
49702
49764
  catalogId: catalogId,
49765
+ defaultLanguage: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage) || (selectedCatalog === null || selectedCatalog === void 0 || (_selectedCatalog$isoL2 = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL2 === void 0 ? void 0 : _selectedCatalog$isoL2[0]) || 'DE',
49703
49766
  apiConfig: apiConfig,
49704
49767
  setNodeDataValue: setNodeDataValue,
49705
49768
  setIsPercentage: setIsPercentage
@@ -1 +1 @@
1
- {"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,QAAQ;oBAGM,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CA4KnC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,QAAQ;oBAGM,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CA6KnC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturesWithFeatureClass.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,wBAAwB;oBAGV,MAAM;qBACL,WAAW;oBACZ,MAAM;eACX,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CA+JnC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"FeaturesWithFeatureClass.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,wBAAwB;oBAGV,MAAM;qBACL,WAAW;oBACZ,MAAM;eACX,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAgKnC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,UAAU,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC;AAED,QAAA,MAAM,KAAK,wFAgfT,CAAC;AAIH,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,UAAU,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC;AAED,QAAA,MAAM,KAAK,wFAifT,CAAC;AAIH,eAAe,KAAK,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
- export default function OptionCombinations({ decision, catalogId, apiConfig, setNodeDataValue, }: {
3
+ export default function OptionCombinations({ decision, catalogId, defaultLanguage, apiConfig, setNodeDataValue, }: {
4
4
  decision: any;
5
5
  catalogId: string;
6
+ defaultLanguage?: string;
6
7
  apiConfig: ApiConfig;
7
8
  setNodeDataValue: (data: Record<string, any>) => boolean;
8
9
  }): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAQrE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,qBA0MA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAQrE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,qBA2MA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,OAAO;oBAGO,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAkXnC,CAAC;AAEH,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,OAAO;oBAGO,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAmXnC,CAAC;AAEH,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PartlistPos.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PartlistPos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAqC,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAmD,MAAM,4BAA4B,CAAC;AAenH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,gCAAgC,EAChC,uBAA2B,GAC5B,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,gHAAgH;IAChH,gCAAgC,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,0FAA0F;IAC1F,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,qBAiaA"}
1
+ {"version":3,"file":"PartlistPos.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PartlistPos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAqC,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAmD,MAAM,4BAA4B,CAAC;AAenH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,gCAAgC,EAChC,uBAA2B,GAC5B,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,gHAAgH;IAChH,gCAAgC,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,0FAA0F;IAC1F,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,qBAkaA"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
- export default function PriceFeatureGroupFinishes({ priceFeatureGroup, catalogId, apiConfig, setNodeDataValue, setIsPercentage, }: {
3
+ export default function PriceFeatureGroupFinishes({ priceFeatureGroup, catalogId, defaultLanguage, apiConfig, setNodeDataValue, setIsPercentage, }: {
4
4
  priceFeatureGroup: any;
5
5
  catalogId: string;
6
+ defaultLanguage?: string;
6
7
  apiConfig: ApiConfig;
7
8
  setNodeDataValue: (data: Record<string, any>) => boolean;
8
9
  setIsPercentage: (isPercentage?: boolean) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"PriceFeatureGroupFinishes.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAKrE,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAwMA"}
1
+ {"version":3,"file":"PriceFeatureGroupFinishes.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAKrE,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAyMA"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
- export default function PriceFeatureGroupPercentageSurcharge({ priceFeatureGroup, catalogId, apiConfig, setNodeDataValue, setIsPercentage, }: {
3
+ export default function PriceFeatureGroupPercentageSurcharge({ priceFeatureGroup, catalogId, defaultLanguage, apiConfig, setNodeDataValue, setIsPercentage, }: {
4
4
  priceFeatureGroup: any;
5
5
  catalogId: string;
6
+ defaultLanguage?: string;
6
7
  apiConfig: ApiConfig;
7
8
  setNodeDataValue: (data: Record<string, any>) => boolean;
8
9
  setIsPercentage: (isPercentage?: boolean) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"PriceFeatureGroupPercentageSurcharge.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAAC,EAC3D,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAkNA"}
1
+ {"version":3,"file":"PriceFeatureGroupPercentageSurcharge.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAAC,EAC3D,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAmNA"}
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureSelector.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/components/PrefilterSelectors/FeatureSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;uCAMY;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE;;;AA0B3D,wBAAyC"}
1
+ {"version":3,"file":"FeatureSelector.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/components/PrefilterSelectors/FeatureSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;uCAcY;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE;;;AA4B3D,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDecisions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAcvE,eAAO,MAAM,cAAc;;CA2OzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDecisions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAcvE,eAAO,MAAM,cAAc;;CA6OzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePartlists/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAa5D,eAAO,MAAM,cAAc;;CA2OzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePartlists/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAa5D,eAAO,MAAM,cAAc;;CA4OzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,eAAO,MAAM,uBAAuB;;CA0OlC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,eAAO,MAAM,uBAAuB;;CA4OlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableSeries/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAe5D,eAAO,MAAM,WAAW;;CA0WtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableSeries/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAe5D,eAAO,MAAM,WAAW;;CA2WtB,CAAC"}
@@ -8,5 +8,6 @@ export interface CatalogData {
8
8
  isoLanguageIds: string[];
9
9
  /** Present when loaded from catalog list (e.g. fields include major). */
10
10
  major?: number;
11
+ fallBackLanguage?: string;
11
12
  }
12
13
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,6BAA8B,SAAQ,sBAAsB;IAC3E,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AACD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,6BAA8B,SAAQ,sBAAsB;IAC3E,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AACD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureSelector.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PrefilterSelectors/FeatureSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,QAAQ,GAAG,eAAe,CAAC;CACrC;gDAE8C,oBAAoB;;;AAkCnE,wBAAyC"}
1
+ {"version":3,"file":"FeatureSelector.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PrefilterSelectors/FeatureSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,QAAQ,GAAG,eAAe,CAAC;CACrC;gDAU8C,oBAAoB;;;AA8BnE,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,WAAW;;CAgJtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,WAAW;;CAiJtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,eAAO,MAAM,eAAe;;CA4M1B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,eAAO,MAAM,eAAe;;CA6M1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableTabGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,eAAO,MAAM,cAAc;;CAwHzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableTabGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,eAAO,MAAM,cAAc;;CAyHzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"downloadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/utils/downloadHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAO3C,UAAU,oBAAoB;IAC5B,GAAG,EAAE,QAAQ,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,WAAW,EAAE,GAAG,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC;AAED,UAAU,YAAa,SAAQ,oBAAoB;IACjD,MAAM,EAAE,MAAM,CAAC;CAChB;AAuBD,eAAO,MAAM,eAAe,gBAAuB,YAAY,kBAkB9D,CAAC;AAEF,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBAsB5F"}
1
+ {"version":3,"file":"downloadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/utils/downloadHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAO3C,UAAU,oBAAoB;IAC5B,GAAG,EAAE,QAAQ,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,WAAW,EAAE,GAAG,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC;AAED,UAAU,YAAa,SAAQ,oBAAoB;IACjD,MAAM,EAAE,MAAM,CAAC;CAChB;AAuBD,eAAO,MAAM,eAAe,gBAAuB,YAAY,kBAkB9D,CAAC;AAEF,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBA+B5F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "26.8.0-beta.33",
3
+ "version": "26.8.0-beta.35",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^6.5.0",
@@ -15,13 +15,13 @@
15
15
  "dependencies": {
16
16
  "@ant-design/icons": "6.1.0",
17
17
  "@babel/runtime": "7.24.7",
18
- "@crystaldesign/content-box": "26.8.0-beta.33",
19
- "@crystaldesign/content-item": "26.8.0-beta.33",
20
- "@crystaldesign/diva-core": "26.8.0-beta.33",
21
- "@crystaldesign/diva-utils": "26.8.0-beta.33",
22
- "@crystaldesign/media-upload": "26.8.0-beta.33",
23
- "@crystaldesign/rtf-editor": "26.8.0-beta.33",
24
- "@crystaldesign/spreadsheet": "26.8.0-beta.33",
18
+ "@crystaldesign/content-box": "26.8.0-beta.35",
19
+ "@crystaldesign/content-item": "26.8.0-beta.35",
20
+ "@crystaldesign/diva-core": "26.8.0-beta.35",
21
+ "@crystaldesign/diva-utils": "26.8.0-beta.35",
22
+ "@crystaldesign/media-upload": "26.8.0-beta.35",
23
+ "@crystaldesign/rtf-editor": "26.8.0-beta.35",
24
+ "@crystaldesign/spreadsheet": "26.8.0-beta.35",
25
25
  "@dnd-kit/core": "^6.1.0",
26
26
  "@dnd-kit/sortable": "^8.0.0",
27
27
  "@dnd-kit/utilities": "^3.2.2",
@@ -56,5 +56,5 @@
56
56
  },
57
57
  "module": "build/esm/index.js",
58
58
  "types": "./build/types/backoffice/src/index.d.ts",
59
- "gitHead": "696c66511f4a3c5e7a9a51976fd41acb4b6af8e1"
59
+ "gitHead": "28782b1146c621314fb2440d6a49d77960ddec89"
60
60
  }