@crystaldesign/diva-backoffice 25.4.0-beta.50 → 25.4.0-beta.52

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.
@@ -30631,12 +30631,14 @@ function createTranslatedColumnConfig(field, headerName, languages) {
30631
30631
  var cellDataType = arguments.length > 4 ? arguments[4] : undefined;
30632
30632
  var customParams = arguments.length > 5 ? arguments[5] : undefined;
30633
30633
  var additionalFields = arguments.length > 6 ? arguments[6] : undefined;
30634
+ var editable = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : true;
30634
30635
  var langs = languages !== null && languages !== void 0 && languages.length ? languages : ['DE'];
30635
30636
  if (langs.length == 1) {
30636
30637
  return {
30637
30638
  headerName: headerName,
30638
30639
  field: "".concat(field, ".").concat(langs[0]),
30639
30640
  required: required,
30641
+ editable: editable,
30640
30642
  isDictionary: true,
30641
30643
  cellDataType: cellDataType,
30642
30644
  customParams: customParams ? Object.keys(customParams).reduce(function (acc, key) {
@@ -30656,6 +30658,7 @@ function createTranslatedColumnConfig(field, headerName, languages) {
30656
30658
  field: "".concat(field, ".").concat(language),
30657
30659
  headerName: 'backoffice.idmEnricher.general.label.' + language,
30658
30660
  required: required,
30661
+ editable: editable,
30659
30662
  isDictionary: true,
30660
30663
  cellDataType: cellDataType,
30661
30664
  customParams: customParams ? Object.keys(customParams).reduce(function (acc, key) {
@@ -35888,13 +35891,12 @@ function Items$1(_ref) {
35888
35891
  }];
35889
35892
  return {
35890
35893
  type: 'dotnetSSM',
35891
- idCol: 'typeNo',
35892
35894
  apiInterface: {
35893
35895
  read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items',
35894
35896
  create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items',
35895
- restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items/${typeNo}',
35896
- "delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items/${typeNo}',
35897
- update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items/${typeNo}'
35897
+ restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items/${_id}',
35898
+ "delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items/${_id}',
35899
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items/${_id}'
35898
35900
  },
35899
35901
  dateFormat: 'DD.MM.YYYY, HH:mm:ss',
35900
35902
  floatingFilter: true,
@@ -36114,6 +36116,11 @@ function Items$1(_ref) {
36114
36116
  hide: true,
36115
36117
  lockVisible: true,
36116
36118
  suppressColumnsToolPanel: true
36119
+ }, {
36120
+ headerName: 'backoffice.idmCatalog.general.label._id',
36121
+ field: '_id',
36122
+ editable: false,
36123
+ cellDataType: 'objectId'
36117
36124
  }]
36118
36125
  };
36119
36126
  }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
@@ -39018,7 +39025,7 @@ var TablePrices = observer(function () {
39018
39025
  var apiInterface = useMemo(function () {
39019
39026
  return {
39020
39027
  read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${serieId}/prices',
39021
- update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${serieId}/items/${typeNo}/prices',
39028
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${serieId}/items/${itemId}/prices',
39022
39029
  usePut: true
39023
39030
  };
39024
39031
  }, []);
@@ -39026,29 +39033,28 @@ var TablePrices = observer(function () {
39026
39033
  var _priceFeatureGroups$m;
39027
39034
  return {
39028
39035
  type: 'dotnetSSM',
39029
- idCol: 'typeNo',
39036
+ idCol: 'itemId',
39030
39037
  apiInterface: apiInterface,
39031
39038
  dateFormat: 'DD.MM.YYYY, HH:mm:ss',
39032
39039
  floatingFilter: true,
39033
39040
  colDef: [{
39034
- field: 'typeNo',
39041
+ field: 'itemId',
39035
39042
  headerName: 'backoffice.idmCatalog.prices.label.typeNo',
39036
39043
  cellDataType: 'lookup',
39037
39044
  customParams: {
39038
- nameField: 'typeNoDisplayText',
39045
+ nameField: 'typeNo',
39039
39046
  displayLabelTemplate: '${name} (${value})',
39040
39047
  apiInterface: {
39041
39048
  read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${serieId}/items'
39042
39049
  },
39043
- lookupValue: 'shortText',
39044
- lookupKey: 'typeNo',
39050
+ lookupValue: 'typeNo',
39051
+ lookupKey: '_id',
39045
39052
  multiple: false,
39046
39053
  translated: true
39047
39054
  },
39048
- additionalFields: ['typeNoDisplayText'],
39049
- isDictionary: true,
39055
+ additionalFields: ['typeNo'],
39050
39056
  editable: false
39051
- }, {
39057
+ }, createTranslatedColumnConfig('typeNoDisplayText', 'backoffice.idmCatalog.general.label.shortText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false, undefined, undefined, undefined, false), {
39052
39058
  field: 'partListExclusive',
39053
39059
  headerName: 'backoffice.idmCatalog.prices.label.partListExclusive',
39054
39060
  editable: false,
@@ -1 +1 @@
1
- {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,cAAc,EACd,eAAe,EACf,SAAS,EACT,aAAa,GACd,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC;CACtB,qBAkTA"}
1
+ {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,cAAc,EACd,eAAe,EACf,SAAS,EACT,aAAa,GACd,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC;CACtB,qBAuTA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePrices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,eAAO,MAAM,WAAW;;CA2HtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePrices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAcvC,eAAO,MAAM,WAAW;;CAoItB,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { CellDataTypes } from 'packages/spreadsheet/src/components';
2
- export default function createTranslatedColumnConfig(field: string, headerName: string, languages?: string[], required?: boolean, cellDataType?: CellDataTypes, customParams?: any, additionalFields?: string[]): {
2
+ export default function createTranslatedColumnConfig(field: string, headerName: string, languages?: string[], required?: boolean, cellDataType?: CellDataTypes, customParams?: any, additionalFields?: string[], editable?: boolean): {
3
3
  headerName: string;
4
4
  field: string;
5
5
  required: boolean;
6
+ editable: boolean;
6
7
  isDictionary: boolean;
7
8
  cellDataType: string | undefined;
8
9
  customParams: any;
@@ -16,6 +17,7 @@ export default function createTranslatedColumnConfig(field: string, headerName:
16
17
  field: string;
17
18
  headerName: string;
18
19
  required: boolean;
20
+ editable: boolean;
19
21
  isDictionary: boolean;
20
22
  cellDataType: string | undefined;
21
23
  customParams: any;
@@ -23,6 +25,7 @@ export default function createTranslatedColumnConfig(field: string, headerName:
23
25
  }[];
24
26
  field?: undefined;
25
27
  required?: undefined;
28
+ editable?: undefined;
26
29
  isDictionary?: undefined;
27
30
  cellDataType?: undefined;
28
31
  customParams?: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"createTranslatedColumnConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/createTranslatedColumnConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAClD,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,EAAE,EACpB,QAAQ,GAAE,OAAe,EACzB,YAAY,CAAC,EAAE,aAAa,EAC5B,YAAY,CAAC,EAAE,GAAG,EAClB,gBAAgB,CAAC,EAAE,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsC5B"}
1
+ {"version":3,"file":"createTranslatedColumnConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/createTranslatedColumnConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAClD,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,EAAE,EACpB,QAAQ,GAAE,OAAe,EACzB,YAAY,CAAC,EAAE,aAAa,EAC5B,YAAY,CAAC,EAAE,GAAG,EAClB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAC3B,QAAQ,GAAE,OAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.4.0-beta.50",
3
+ "version": "25.4.0-beta.52",
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.4.0-beta.50",
19
- "@crystaldesign/content-item": "25.4.0-beta.50",
20
- "@crystaldesign/diva-core": "25.4.0-beta.50",
21
- "@crystaldesign/diva-utils": "25.4.0-beta.50",
22
- "@crystaldesign/media-upload": "25.4.0-beta.50",
23
- "@crystaldesign/rtf-editor": "25.4.0-beta.50",
24
- "@crystaldesign/spreadsheet": "25.4.0-beta.50",
18
+ "@crystaldesign/content-box": "25.4.0-beta.52",
19
+ "@crystaldesign/content-item": "25.4.0-beta.52",
20
+ "@crystaldesign/diva-core": "25.4.0-beta.52",
21
+ "@crystaldesign/diva-utils": "25.4.0-beta.52",
22
+ "@crystaldesign/media-upload": "25.4.0-beta.52",
23
+ "@crystaldesign/rtf-editor": "25.4.0-beta.52",
24
+ "@crystaldesign/spreadsheet": "25.4.0-beta.52",
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": "5426ba0aa5b211a7c0d96ec770dda28bc80f58d8"
54
+ "gitHead": "88580e46964cde8e16712327988fcbbcc8ecc544"
55
55
  }