@crystaldesign/diva-backoffice 25.14.0-beta.41 → 25.14.0-beta.42

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 (2) hide show
  1. package/build/esm/index.js +24 -16
  2. package/package.json +9 -9
@@ -42807,7 +42807,29 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
42807
42807
  }, {
42808
42808
  headerName: 'backoffice.idmCatalog.priceFeatureGroupPercentageSurcharge.label.priceFeatureGroups',
42809
42809
  field: 'priceFeatureGroups',
42810
- cellDataType: 'array'
42810
+ cellDataType: 'lookup',
42811
+ customParams: {
42812
+ nameField: 'pricefeaturegroupsDisplayTexts',
42813
+ apiInterface: {
42814
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/pricefeaturegroups'
42815
+ },
42816
+ lookupValue: 'priceFeatureGroupText',
42817
+ lookupKey: 'priceFeatureGroupNo',
42818
+ lookupKeyFilterType: {
42819
+ type: 'equals',
42820
+ filterType: 'text'
42821
+ },
42822
+ multiple: true,
42823
+ translated: true,
42824
+ filter: function filter(_, lookupData) {
42825
+ return priceFeatureGroup.priceFeatureGroupNo !== lookupData.priceFeatureGroupNo && !lookupData.isPercentage;
42826
+ },
42827
+ additionalMappings: [{
42828
+ lookupField: 'isPercentage',
42829
+ targetField: '__diva_context.additionalData.isPercentage'
42830
+ }]
42831
+ },
42832
+ additionalFields: ['pricefeaturegroupsDisplayTexts']
42811
42833
  }, {
42812
42834
  headerName: 'backoffice.idmCatalog.priceGroupFinishes.label.validFromDate',
42813
42835
  field: 'validFromDate',
@@ -42840,20 +42862,6 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
42840
42862
  field: '_id',
42841
42863
  editable: false,
42842
42864
  cellDataType: 'objectId'
42843
- }, {
42844
- field: 'organizationId',
42845
- editable: false,
42846
- hide: true,
42847
- lockVisible: true,
42848
- suppressColumnsToolPanel: true,
42849
- defaultValue: '${organizationId}'
42850
- }, {
42851
- field: 'catalogId',
42852
- editable: false,
42853
- hide: true,
42854
- lockVisible: true,
42855
- suppressColumnsToolPanel: true,
42856
- defaultValue: '${catalogId}'
42857
42865
  }, {
42858
42866
  field: 'optionsSetRefs',
42859
42867
  hide: true,
@@ -43118,7 +43126,7 @@ var TablePriceFeatureGroups = observer(function () {
43118
43126
  setNodeDataValue: setNodeDataValue,
43119
43127
  setIsPercentage: setIsPercentage
43120
43128
  },
43121
- disabled: isPercentage === false,
43129
+ disabled: isPercentage === false || (selectedPriceFeatureGroup === null || selectedPriceFeatureGroup === void 0 ? void 0 : selectedPriceFeatureGroup.additionalPrice) == false,
43122
43130
  condition: function condition() {
43123
43131
  return (selectedPriceFeatureGroup === null || selectedPriceFeatureGroup === void 0 ? void 0 : selectedPriceFeatureGroup._id) !== undefined;
43124
43132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.14.0-beta.41",
3
+ "version": "25.14.0-beta.42",
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.14.0-beta.41",
19
- "@crystaldesign/content-item": "25.14.0-beta.41",
20
- "@crystaldesign/diva-core": "25.14.0-beta.41",
21
- "@crystaldesign/diva-utils": "25.14.0-beta.41",
22
- "@crystaldesign/media-upload": "25.14.0-beta.41",
23
- "@crystaldesign/rtf-editor": "25.14.0-beta.41",
24
- "@crystaldesign/spreadsheet": "25.14.0-beta.41",
18
+ "@crystaldesign/content-box": "25.14.0-beta.42",
19
+ "@crystaldesign/content-item": "25.14.0-beta.42",
20
+ "@crystaldesign/diva-core": "25.14.0-beta.42",
21
+ "@crystaldesign/diva-utils": "25.14.0-beta.42",
22
+ "@crystaldesign/media-upload": "25.14.0-beta.42",
23
+ "@crystaldesign/rtf-editor": "25.14.0-beta.42",
24
+ "@crystaldesign/spreadsheet": "25.14.0-beta.42",
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": "0061f37cf525dcc7017bfbd037fade12cbaa5419"
54
+ "gitHead": "7f1a2db44a42cb0620e78a39886b95c014732029"
55
55
  }