@crystaldesign/diva-backoffice 25.13.0-beta.24 → 25.13.0-beta.26

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.
@@ -38572,7 +38572,7 @@ var useSeriesSelector = function useSeriesSelector(modules) {
38572
38572
  // if the extend series data is already loaded, use it
38573
38573
  isLoaded = !!((_seriesSelectorState$ = seriesSelectorState.options) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.find(function (option) {
38574
38574
  return option.value === (newSerie === null || newSerie === void 0 ? void 0 : newSerie._id);
38575
- })) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.data) !== null && _seriesSelectorState$ !== void 0 && _seriesSelectorState$.serieNo);
38575
+ })) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.data) !== null && _seriesSelectorState$ !== void 0 && _seriesSelectorState$.lastUpdatedDate);
38576
38576
  if (!isLoaded) {
38577
38577
  _context.next = 6;
38578
38578
  break;
@@ -38585,7 +38585,7 @@ var useSeriesSelector = function useSeriesSelector(modules) {
38585
38585
  api = new _default$d({
38586
38586
  type: 'SelectSimple',
38587
38587
  apiInterface: {
38588
- read: idmService + "/v3.0/catalogs/".concat(catalogId, "/series/").concat(newSerie._id, "?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts")
38588
+ read: idmService + "/v3.0/catalogs/".concat(catalogId, "/series/").concat(newSerie._id, "?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts;lastUpdatedDate")
38589
38589
  }
38590
38590
  }, root);
38591
38591
  _context.next = 10;
@@ -39928,28 +39928,32 @@ var Options = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
39928
39928
  field: 'optionFreeText',
39929
39929
  cellDataType: 'boolean'
39930
39930
  }, {
39931
- field: 'featureIds',
39931
+ field: 'featureNos',
39932
39932
  headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
39933
39933
  cellDataType: 'lookup',
39934
39934
  editable: true,
39935
39935
  required: false,
39936
39936
  customParams: {
39937
39937
  nameField: 'featureIdsDisplayTexts',
39938
- filterCellType: 'objectId',
39938
+ filterCellType: 'number',
39939
39939
  displayLabelTemplate: '${name} (${value})',
39940
39940
  apiInterface: {
39941
39941
  read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
39942
39942
  },
39943
39943
  lookupValue: 'featureText',
39944
- lookupKey: '_id',
39944
+ lookupKey: 'featureNo',
39945
39945
  lookupKeyFilterType: {
39946
39946
  type: 'equals',
39947
- filterType: 'text'
39947
+ filterType: 'number'
39948
39948
  },
39949
+ additionalMappings: [{
39950
+ lookupField: '_id',
39951
+ targetField: 'featureIds'
39952
+ }],
39949
39953
  multiple: true,
39950
39954
  translated: true
39951
39955
  },
39952
- additionalFields: ['featureIdsDisplayTexts'],
39956
+ additionalFields: ['featureIdsDisplayTexts', 'featureIds'],
39953
39957
  isDictionary: true
39954
39958
  }, {
39955
39959
  headerName: 'backoffice.idmCatalog.items.label.validation',
@@ -42100,7 +42104,8 @@ var TablePriceFeatureGroups = observer(function () {
42100
42104
  organizationId = _useModule.organizationId,
42101
42105
  apiConfig = _useModule.apiConfig,
42102
42106
  setSelectedItem = _useModule.setSelectedItem,
42103
- setSelectedSerie = _useModule.setSelectedSerie;
42107
+ setSelectedSerie = _useModule.setSelectedSerie,
42108
+ resetSeriesSelector = _useModule.resetSeriesSelector;
42104
42109
  var _React$useState = React.useState(),
42105
42110
  _React$useState2 = _slicedToArray(_React$useState, 2),
42106
42111
  selectedPriceFeatureGroup = _React$useState2[0],
@@ -42187,6 +42192,12 @@ var TablePriceFeatureGroups = observer(function () {
42187
42192
  if (current) {
42188
42193
  setSelectedPriceFeatureGroup(_objectSpread$7({}, current.data));
42189
42194
  }
42195
+ if (updates.length == 0 || updates.some(function (update) {
42196
+ var _update$oldData;
42197
+ return !((_update$oldData = update.oldData) !== null && _update$oldData !== void 0 && _update$oldData.priceFeatureGroupNo);
42198
+ })) {
42199
+ resetSeriesSelector();
42200
+ }
42190
42201
  }
42191
42202
  };
42192
42203
  }, [selectedNodeId]);
@@ -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,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAoC,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACzH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,OAAO;oBAGO,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAoLnC,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,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAoC,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACzH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,OAAO;oBAGO,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAqLnC,CAAC;AAEH,eAAe,OAAO,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;AAevE,eAAO,MAAM,uBAAuB;;CAuNlC,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;AAevE,eAAO,MAAM,uBAAuB;;CA4NlC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.13.0-beta.24",
3
+ "version": "25.13.0-beta.26",
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": "5.4.0",
17
17
  "@babel/runtime": "7.24.7",
18
- "@crystaldesign/content-box": "25.13.0-beta.24",
19
- "@crystaldesign/content-item": "25.13.0-beta.24",
20
- "@crystaldesign/diva-core": "25.13.0-beta.24",
21
- "@crystaldesign/diva-utils": "25.13.0-beta.24",
22
- "@crystaldesign/media-upload": "25.13.0-beta.24",
23
- "@crystaldesign/rtf-editor": "25.13.0-beta.24",
24
- "@crystaldesign/spreadsheet": "25.13.0-beta.24",
18
+ "@crystaldesign/content-box": "25.13.0-beta.26",
19
+ "@crystaldesign/content-item": "25.13.0-beta.26",
20
+ "@crystaldesign/diva-core": "25.13.0-beta.26",
21
+ "@crystaldesign/diva-utils": "25.13.0-beta.26",
22
+ "@crystaldesign/media-upload": "25.13.0-beta.26",
23
+ "@crystaldesign/rtf-editor": "25.13.0-beta.26",
24
+ "@crystaldesign/spreadsheet": "25.13.0-beta.26",
25
25
  "@google/model-viewer": "3.5.0",
26
26
  "ag-charts-community": "^10.1.0",
27
27
  "ag-charts-react": "^10.1.0",
@@ -51,5 +51,5 @@
51
51
  },
52
52
  "module": "build/esm/index.js",
53
53
  "types": "./build/types/backoffice/src/index.d.ts",
54
- "gitHead": "97d35874390206d56435a2e7fc35f944a1cb8d98"
54
+ "gitHead": "a26948051a769c14954c470a34168386c1106684"
55
55
  }