@crystaldesign/diva-backoffice 26.6.0-beta.15 → 26.6.0-beta.17

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.
@@ -35848,6 +35848,188 @@ var getItemTypeKey = function getItemTypeKey(t) {
35848
35848
  }];
35849
35849
  };
35850
35850
 
35851
+ /**
35852
+ * Returns an array of item type class options with translated names
35853
+ *
35854
+ * @param t - Translation function from i18next
35855
+ * @returns Array of item type objects with name and value properties
35856
+ */
35857
+ var getItemTypeKeyClass = function getItemTypeKeyClass(t) {
35858
+ return [{
35859
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass000'),
35860
+ value: 0
35861
+ }, {
35862
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass100'),
35863
+ value: 100
35864
+ }, {
35865
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass110'),
35866
+ value: 110
35867
+ }, {
35868
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass120'),
35869
+ value: 120
35870
+ }, {
35871
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass130'),
35872
+ value: 130
35873
+ }, {
35874
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass140'),
35875
+ value: 140
35876
+ }, {
35877
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass150'),
35878
+ value: 150
35879
+ }, {
35880
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass160'),
35881
+ value: 160
35882
+ }, {
35883
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass170'),
35884
+ value: 170
35885
+ }, {
35886
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass200'),
35887
+ value: 200
35888
+ }, {
35889
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass210'),
35890
+ value: 210
35891
+ }, {
35892
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass220'),
35893
+ value: 220
35894
+ }, {
35895
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass230'),
35896
+ value: 230
35897
+ }, {
35898
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass240'),
35899
+ value: 240
35900
+ }, {
35901
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass250'),
35902
+ value: 250
35903
+ }, {
35904
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass260'),
35905
+ value: 260
35906
+ }, {
35907
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass300'),
35908
+ value: 300
35909
+ }, {
35910
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass310'),
35911
+ value: 310
35912
+ }, {
35913
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass320'),
35914
+ value: 320
35915
+ }, {
35916
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass330'),
35917
+ value: 330
35918
+ }, {
35919
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass340'),
35920
+ value: 340
35921
+ }, {
35922
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass400'),
35923
+ value: 400
35924
+ }, {
35925
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass410'),
35926
+ value: 410
35927
+ }, {
35928
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass420'),
35929
+ value: 420
35930
+ }, {
35931
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass430'),
35932
+ value: 430
35933
+ }, {
35934
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass440'),
35935
+ value: 440
35936
+ }, {
35937
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass450'),
35938
+ value: 450
35939
+ }, {
35940
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass460'),
35941
+ value: 460
35942
+ }, {
35943
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass470'),
35944
+ value: 470
35945
+ }, {
35946
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass500'),
35947
+ value: 500
35948
+ }, {
35949
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass510'),
35950
+ value: 510
35951
+ }, {
35952
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass520'),
35953
+ value: 520
35954
+ }, {
35955
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass600'),
35956
+ value: 600
35957
+ }, {
35958
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass610'),
35959
+ value: 610
35960
+ }, {
35961
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass620'),
35962
+ value: 620
35963
+ }, {
35964
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass630'),
35965
+ value: 630
35966
+ }, {
35967
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass640'),
35968
+ value: 640
35969
+ }, {
35970
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass650'),
35971
+ value: 650
35972
+ }, {
35973
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass660'),
35974
+ value: 660
35975
+ }, {
35976
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass670'),
35977
+ value: 670
35978
+ }, {
35979
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass700'),
35980
+ value: 700
35981
+ }, {
35982
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass710'),
35983
+ value: 710
35984
+ }, {
35985
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass720'),
35986
+ value: 720
35987
+ }, {
35988
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass800'),
35989
+ value: 800
35990
+ }, {
35991
+ name: t('backoffice.idmCatalogEditor.items.label.tkclass810'),
35992
+ value: 810
35993
+ }];
35994
+ };
35995
+
35996
+ /**
35997
+ * Returns an array of item type info options with translated names
35998
+ *
35999
+ * @param t - Translation function from i18next
36000
+ * @returns Array of item type objects with name and value properties
36001
+ */
36002
+ var getItemTypeKeyInfo = function getItemTypeKeyInfo(t) {
36003
+ return [{
36004
+ name: t('backoffice.idmCatalogEditor.items.label.tkinfo000'),
36005
+ value: 0
36006
+ }, {
36007
+ name: t('backoffice.idmCatalogEditor.items.label.tkinfo010'),
36008
+ value: 10
36009
+ }, {
36010
+ name: t('backoffice.idmCatalogEditor.items.label.tkinfo020'),
36011
+ value: 20
36012
+ }, {
36013
+ name: t('backoffice.idmCatalogEditor.items.label.tkinfo030'),
36014
+ value: 30
36015
+ }, {
36016
+ name: t('backoffice.idmCatalogEditor.items.label.tkinfo040'),
36017
+ value: 40
36018
+ }, {
36019
+ name: t('backoffice.idmCatalogEditor.items.label.tkinfo050'),
36020
+ value: 50
36021
+ }, {
36022
+ name: t('backoffice.idmCatalogEditor.items.label.tkinfo060'),
36023
+ value: 60
36024
+ }, {
36025
+ name: t('backoffice.idmCatalogEditor.items.label.tkinfo070'),
36026
+ value: 70
36027
+ }, {
36028
+ name: t('backoffice.idmCatalogEditor.items.label.tkinfo080'),
36029
+ value: 80
36030
+ }];
36031
+ };
36032
+
35851
36033
  /**
35852
36034
  * Custom hook for managing loading, error, and warning modals
35853
36035
  *
@@ -41363,6 +41545,25 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
41363
41545
  name: t('backoffice.idmCatalog.general.label.cm.F'),
41364
41546
  value: 'F'
41365
41547
  }];
41548
+ var branchIds = [{
41549
+ name: t('backoffice.idmCatalog.general.label.bi.C'),
41550
+ value: 'C'
41551
+ }, {
41552
+ name: t('backoffice.idmCatalog.general.label.bi.M'),
41553
+ value: 'M'
41554
+ }, {
41555
+ name: t('backoffice.idmCatalog.general.label.bi.O'),
41556
+ value: 'O'
41557
+ }, {
41558
+ name: t('backoffice.idmCatalog.general.label.bi.P'),
41559
+ value: 'P'
41560
+ }, {
41561
+ name: t('backoffice.idmCatalog.general.label.bi.W'),
41562
+ value: 'W'
41563
+ }, {
41564
+ name: t('backoffice.idmCatalog.general.label.bi.Z'),
41565
+ value: 'Z'
41566
+ }];
41366
41567
  var priceDependent = [{
41367
41568
  name: t('backoffice.idmCatalog.general.label.priceDependent.p0'),
41368
41569
  value: false
@@ -41571,7 +41772,15 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
41571
41772
  },
41572
41773
  required: catalog.major === 3,
41573
41774
  defaultValue: 'K'
41574
- }, {
41775
+ }].concat(_toConsumableArray(catalog.major === 4 ? [{
41776
+ headerName: 'backoffice.idmCatalog.general.label.branchId',
41777
+ field: 'branchId',
41778
+ cellDataType: 'enum',
41779
+ customParams: {
41780
+ enumData: branchIds,
41781
+ displayLabelTemplate: '${name} (${value})'
41782
+ }
41783
+ }] : []), [{
41575
41784
  headerName: 'backoffice.idmCatalog.general.label.catalogMergeType',
41576
41785
  field: 'catalogMergeType',
41577
41786
  cellDataType: 'boolean',
@@ -41614,7 +41823,7 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
41614
41823
  multiple: false
41615
41824
  },
41616
41825
  defaultValue: 'DE'
41617
- }]
41826
+ }])
41618
41827
  }, {
41619
41828
  headerName: 'backoffice.idmCatalog.general.label.identity',
41620
41829
  children: [{
@@ -41644,6 +41853,13 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
41644
41853
  headerName: 'backoffice.idmCatalog.general.label.catalogMinorNo',
41645
41854
  field: 'catalogMinorNo',
41646
41855
  cellDataType: 'number'
41856
+ }, {
41857
+ headerName: 'backoffice.idmCatalog.general.label.fileReleaseDate',
41858
+ field: 'fileReleaseDate',
41859
+ cellDataType: 'dateString',
41860
+ customParams: {
41861
+ dateFormat: 'DD.MM.YYYY'
41862
+ }
41647
41863
  }] : []))
41648
41864
  }, {
41649
41865
  headerName: 'backoffice.idmCatalog.general.label.supplier',
@@ -43117,7 +43333,32 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
43117
43333
  displayLabelTemplate: '${name} (${value})'
43118
43334
  },
43119
43335
  required: true
43336
+ }].concat(_toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? [{
43337
+ headerName: 'backoffice.idmCatalog.general.items.typeKeyClass',
43338
+ field: 'tkClass',
43339
+ cellDataType: 'enum',
43340
+ customParams: {
43341
+ enumData: getItemTypeKeyClass(t),
43342
+ displayLabelTemplate: '${name} (${value})'
43343
+ }
43120
43344
  }, {
43345
+ headerName: 'backoffice.idmCatalog.general.items.typeKeyInfo',
43346
+ field: 'tkInfo',
43347
+ cellDataType: 'enum',
43348
+ customParams: {
43349
+ enumData: getItemTypeKeyInfo(t),
43350
+ displayLabelTemplate: '${name} (${value})'
43351
+ }
43352
+ }, {
43353
+ headerName: 'backoffice.idmCatalog.general.items.productionCountryIds',
43354
+ field: 'productionCountryIds',
43355
+ cellDataType: 'enum',
43356
+ customParams: {
43357
+ enumData: getCountryKey(t),
43358
+ displayLabelTemplate: '${name} (${value})',
43359
+ multiple: true
43360
+ }
43361
+ }] : []), [{
43121
43362
  headerName: 'backoffice.idmCatalogEditor.items.label.featureClassRefNo',
43122
43363
  field: 'featureClassRefNo',
43123
43364
  cellDataType: 'lookup',
@@ -43150,7 +43391,11 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
43150
43391
  headerName: 'backoffice.idmCatalogEditor.items.label.minimumDeliveryTime',
43151
43392
  field: 'minimumDeliveryTime',
43152
43393
  cellDataType: 'number'
43153
- }]
43394
+ }], _toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? [{
43395
+ headerName: 'backoffice.idmCatalogEditor.items.label.minimumPrice',
43396
+ field: 'minimumPrice',
43397
+ cellDataType: 'number'
43398
+ }] : []))
43154
43399
  }, {
43155
43400
  headerName: 'backoffice.idmCatalog.items.label.configurator',
43156
43401
  children: [{
@@ -43272,6 +43517,55 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
43272
43517
  field: 'depthBasicShapeStepSize',
43273
43518
  cellDataType: 'number'
43274
43519
  }]
43520
+ }, {
43521
+ field: 'itemRefSerieId',
43522
+ headerName: 'backoffice.idmCatalog.partlistpos.label.itemRefSerieId',
43523
+ cellDataType: 'lookup',
43524
+ editable: true,
43525
+ customParams: {
43526
+ filterCellType: 'number',
43527
+ nameField: 'itemRefSerieNoDisplayText',
43528
+ displayLabelTemplate: '${name} (${value})',
43529
+ apiInterface: {
43530
+ read: apiConfig.idmService + '/catalogs/${catalogId}/series'
43531
+ },
43532
+ lookupValue: 'seriesName',
43533
+ lookupKey: 'serieNo',
43534
+ lookupKeyFilterType: {
43535
+ type: 'equals',
43536
+ filterType: 'number'
43537
+ },
43538
+ additionalMappings: [{
43539
+ lookupField: '_id',
43540
+ targetField: 'itemRefSerieId'
43541
+ }],
43542
+ multiple: false,
43543
+ translated: true
43544
+ },
43545
+ additionalFields: ['itemRefSerieNoDisplayText', 'itemRefSerieId'],
43546
+ isDictionary: true
43547
+ }, {
43548
+ field: 'itemRefTypeNo',
43549
+ headerName: 'backoffice.idmCatalog.partlistpos.label.itemRefTypeNo',
43550
+ cellDataType: 'lookup',
43551
+ customParams: {
43552
+ nameField: 'itemRefTypeNoDisplayText',
43553
+ displayLabelTemplate: '${name} (${value})',
43554
+ apiInterface: {
43555
+ read: apiConfig.idmService + '/catalogs/${catalogId}/series/${itemRefSerieId}/items'
43556
+ },
43557
+ lookupValue: 'shortText',
43558
+ lookupKey: 'typeNo',
43559
+ multiple: false,
43560
+ translated: true
43561
+ },
43562
+ additionalFields: ['itemRefTypeNoDisplayText'],
43563
+ isDictionary: true,
43564
+ editable: function editable(_ref2) {
43565
+ var data = _ref2.data,
43566
+ context = _ref2.context;
43567
+ return (context === null || context === void 0 ? void 0 : context.isPasting) || !!data.itemRefSerieId;
43568
+ }
43275
43569
  }, {
43276
43570
  headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
43277
43571
  field: 'lastUpdatedDate',
@@ -43304,7 +43598,7 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
43304
43598
  cellDataType: 'objectId'
43305
43599
  }]
43306
43600
  };
43307
- }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
43601
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major, i18n.language]);
43308
43602
  return /*#__PURE__*/jsx(Spreadsheet, {
43309
43603
  ref: ref,
43310
43604
  gridId: 'crud-grid_items',
@@ -43732,7 +44026,7 @@ var TableSeries = observer(function () {
43732
44026
  enumData: purchaseRetailId,
43733
44027
  displayLabelTemplate: '${name} (${value})'
43734
44028
  }
43735
- }, createTranslatedColumnConfig('seriesFullText', 'backoffice.idmCatalog.series.label.seriesFullText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds), {
44029
+ }, createTranslatedColumnConfig('seriesFullText', 'backoffice.idmCatalog.series.label.seriesFullText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds)], _toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? [createTranslatedColumnConfig('planningAdvice', 'backoffice.idmCatalog.series.label.planningAdvice', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds)] : []), [{
43736
44030
  headerName: 'backoffice.idmCatalog.series.label.mainImage',
43737
44031
  field: 'mainImage',
43738
44032
  cellDataType: 'asset',
@@ -43846,7 +44140,21 @@ var TableSeries = observer(function () {
43846
44140
  customParams: {
43847
44141
  dateFormat: 'DD.MM.YYYY'
43848
44142
  }
44143
+ }], _toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? [{
44144
+ headerName: 'backoffice.idmCatalog.series.label.optionalConnection',
44145
+ field: 'optionalConnection',
44146
+ cellDataType: 'boolean',
44147
+ defaultValue: false
43849
44148
  }, {
44149
+ headerName: 'backoffice.idmCatalog.series.label.scope',
44150
+ field: 'scope'
44151
+ }, {
44152
+ headerName: 'backoffice.idmCatalog.series.label.model',
44153
+ field: 'model'
44154
+ }, {
44155
+ headerName: 'backoffice.idmCatalog.series.label.serviceUrl',
44156
+ field: 'serviceUrl'
44157
+ }] : []), [{
43850
44158
  headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
43851
44159
  field: 'lastUpdatedDate',
43852
44160
  cellDataType: 'dateString',
@@ -44270,7 +44578,7 @@ var Options$1 = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
44270
44578
  headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
44271
44579
  field: 'sequenceNo',
44272
44580
  cellDataType: 'number'
44273
- }, createTranslatedColumnConfig('optionText', 'backoffice.idmCatalog.options.label.optionText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, true), createTranslatedColumnConfig('optionCommentText', 'backoffice.idmCatalog.options.label.optionCommentText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds)].concat(_toConsumableArray(isIdm4 ? [] : [{
44581
+ }, createTranslatedColumnConfig('optionText', 'backoffice.idmCatalog.options.label.optionText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, true)].concat(_toConsumableArray(isIdm4 ? [createTranslatedColumnConfig('optionCustomerText', 'backoffice.idmCatalog.options.label.optionCustomerText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds)] : []), [createTranslatedColumnConfig('optionCommentText', 'backoffice.idmCatalog.options.label.optionCommentText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds)], _toConsumableArray(isIdm4 ? [] : [{
44274
44582
  headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
44275
44583
  field: 'optionFreeText',
44276
44584
  cellDataType: 'boolean',
@@ -44454,7 +44762,11 @@ var Options$1 = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
44454
44762
  dateFormat: 'DD.MM.YYYY'
44455
44763
  }
44456
44764
  }]
44457
- }], _toConsumableArray(isIdm4 ? [] : [{
44765
+ }], _toConsumableArray(isIdm4 ? [{
44766
+ headerName: 'backoffice.idmCatalog.options.label.connectionType',
44767
+ field: 'connectionType',
44768
+ cellDataType: 'boolean'
44769
+ }] : [{
44458
44770
  headerName: 'backoffice.idmCatalog.options.label.material',
44459
44771
  children: [{
44460
44772
  headerName: 'backoffice.idmCatalog.options.label.materialNo',
@@ -47546,7 +47858,11 @@ var TableDetailInfos = observer(function () {
47546
47858
  enumData: getLayerIdKey(t),
47547
47859
  displayLabelTemplate: '${name} (${value})'
47548
47860
  }
47549
- }, {
47861
+ }].concat(_toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? [{
47862
+ field: 'dpi',
47863
+ headerName: 'backoffice.idmCatalog.detailinfos.label.dpi',
47864
+ cellDataType: 'number'
47865
+ }] : []), [{
47550
47866
  field: 'isoLanguageId',
47551
47867
  headerName: 'backoffice.idmCatalog.detailinfos.label.isoLanguageId',
47552
47868
  cellDataType: 'enum',
@@ -47607,9 +47923,9 @@ var TableDetailInfos = observer(function () {
47607
47923
  lockVisible: true,
47608
47924
  suppressColumnsToolPanel: true,
47609
47925
  defaultValue: '${catalogId}'
47610
- }]
47926
+ }])
47611
47927
  };
47612
- }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
47928
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major, i18n.language]);
47613
47929
  return /*#__PURE__*/jsxs(Fragment, {
47614
47930
  children: [/*#__PURE__*/jsx(Descriptions$1, {
47615
47931
  title: /*#__PURE__*/jsxs("div", {
@@ -47688,6 +48004,29 @@ function PartlistPos(_ref) {
47688
48004
  value: 2
47689
48005
  }];
47690
48006
  }, []);
48007
+ if (catalog.major === 4) {
48008
+ visibility = useMemo(function () {
48009
+ return [{
48010
+ name: t('backoffice.idmCatalog.partlistpos.label.visiblityDic.v0'),
48011
+ value: 0
48012
+ }, {
48013
+ name: t('backoffice.idmCatalog.partlistpos.label.visiblityDic.v1'),
48014
+ value: 1
48015
+ }];
48016
+ }, []);
48017
+ }
48018
+ var configurationMode = useMemo(function () {
48019
+ return [{
48020
+ name: t('backoffice.idmCatalog.partlistpos.label.configurationModeDic.v0'),
48021
+ value: 0
48022
+ }, {
48023
+ name: t('backoffice.idmCatalog.partlistpos.label.configurationModeDic.v1'),
48024
+ value: 1
48025
+ }, {
48026
+ name: t('backoffice.idmCatalog.partlistpos.label.configurationModeDic.v2'),
48027
+ value: 2
48028
+ }];
48029
+ }, []);
47691
48030
  var applicationData = useMemo(function () {
47692
48031
  return {
47693
48032
  catalogId: catalog._id,
@@ -47912,7 +48251,25 @@ function PartlistPos(_ref) {
47912
48251
  enumData: visibility,
47913
48252
  displayLabelTemplate: '${name} (${value})'
47914
48253
  }
48254
+ }], _toConsumableArray((catalog === null || catalog === void 0 ? void 0 : catalog.major) === 4 ? [{
48255
+ headerName: 'backoffice.idmCatalog.partlistpos.label.configurationMode',
48256
+ field: 'configurationMode',
48257
+ defaultValue: 0,
48258
+ editable: true,
48259
+ cellDataType: 'enum',
48260
+ customParams: {
48261
+ enumData: configurationMode,
48262
+ displayLabelTemplate: '${name} (${value})'
48263
+ }
48264
+ }, {
48265
+ field: 'includeInOrder',
48266
+ headerName: 'backoffice.idmCatalog.partlist.label.includeInOrder',
48267
+ cellDataType: 'boolean',
48268
+ defaultValue: true
47915
48269
  }, {
48270
+ field: 'partListGroup',
48271
+ headerName: 'backoffice.idmCatalog.partlist.label.partListGroup'
48272
+ }] : []), [{
47916
48273
  headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
47917
48274
  field: 'lastUpdatedDate',
47918
48275
  cellDataType: 'dateString',
@@ -47957,7 +48314,7 @@ function PartlistPos(_ref) {
47957
48314
  defaultValue: {}
47958
48315
  }])
47959
48316
  };
47960
- }, [addFeature, apiConfig.idmService, apiInterface, catalog._id, partlist, removeFeature, visibility]);
48317
+ }, [addFeature, apiConfig.idmService, apiInterface, catalog._id, catalog.major, partlist, removeFeature, visibility]);
47961
48318
  return /*#__PURE__*/jsxs(Fragment, {
47962
48319
  children: [/*#__PURE__*/jsx(Descriptions$1, {
47963
48320
  title: /*#__PURE__*/jsx("div", {
@@ -48194,7 +48551,12 @@ var TablePartlists = observer(function () {
48194
48551
  }, {
48195
48552
  field: 'comment',
48196
48553
  headerName: 'backoffice.idmCatalog.partlist.label.comment'
48197
- }, {
48554
+ }].concat(_toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? [{
48555
+ field: 'includeInOrder',
48556
+ headerName: 'backoffice.idmCatalog.partlist.label.includeInOrder',
48557
+ cellDataType: 'boolean',
48558
+ defaultValue: true
48559
+ }] : []), [{
48198
48560
  field: 'featureRefs',
48199
48561
  headerName: 'backoffice.idmCatalogEditor.items.label.featureRefs',
48200
48562
  cellDataType: 'lookup',
@@ -48249,9 +48611,9 @@ var TablePartlists = observer(function () {
48249
48611
  lockVisible: true,
48250
48612
  suppressColumnsToolPanel: true,
48251
48613
  defaultValue: '${catalogId}'
48252
- }]
48614
+ }])
48253
48615
  };
48254
- }, [apiInterface]);
48616
+ }, [apiInterface, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major, apiConfig.idmService]);
48255
48617
  return /*#__PURE__*/jsxs(Fragment, {
48256
48618
  children: [/*#__PURE__*/jsx(Descriptions$1, {
48257
48619
  title: /*#__PURE__*/jsxs("div", {
@@ -69,4 +69,24 @@ export declare const getItemTypeKey: (t: TFunction) => {
69
69
  name: string;
70
70
  value: number;
71
71
  }[];
72
+ /**
73
+ * Returns an array of item type class options with translated names
74
+ *
75
+ * @param t - Translation function from i18next
76
+ * @returns Array of item type objects with name and value properties
77
+ */
78
+ export declare const getItemTypeKeyClass: (t: TFunction) => {
79
+ name: string;
80
+ value: number;
81
+ }[];
82
+ /**
83
+ * Returns an array of item type info options with translated names
84
+ *
85
+ * @param t - Translation function from i18next
86
+ * @returns Array of item type objects with name and value properties
87
+ */
88
+ export declare const getItemTypeKeyInfo: (t: TFunction) => {
89
+ name: string;
90
+ value: number;
91
+ }[];
72
92
  //# sourceMappingURL=commonEnums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commonEnums.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/CommonComponents/commonEnums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,MAAO,SAAS;;;GAQzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,MAAO,SAAS;;;GAG/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,MAAO,SAAS;;;GAOzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAkB1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GA2B1C,CAAC"}
1
+ {"version":3,"file":"commonEnums.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/CommonComponents/commonEnums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,MAAO,SAAS;;;GAQzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,MAAO,SAAS;;;GAG/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,MAAO,SAAS;;;GAOzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAkB1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GA2B1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,MAAO,SAAS;;;GA8C/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,MAAO,SAAS;;;GAU9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CatalogVersions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/CatalogVersions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAgC,mBAAmB,EAAoB,MAAM,4BAA4B,CAAC;AAWjH,MAAM,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAEnH,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEhI,QAAA,MAAM,QAAQ;oBAGM,MAAM;eACX,SAAS;aACX,UAAU;eACR,OAAO;yBACG,oBAAoB;IACzC,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;6CA60BzB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CatalogVersions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/CatalogVersions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAgC,mBAAmB,EAAoB,MAAM,4BAA4B,CAAC;AAWjH,MAAM,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAEnH,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEhI,QAAA,MAAM,QAAQ;oBAGM,MAAM;eACX,SAAS;aACX,UAAU;eACR,OAAO;yBACG,oBAAoB;IACzC,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;6CA22BzB,CAAC;AAEH,eAAe,QAAQ,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,wFAwZT,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,wFA0eT,CAAC;AAIH,eAAe,KAAK,CAAC"}
@@ -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;6CAqUnC,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;6CAoVnC,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;AAQnH,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,qBA4WA"}
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;AAQnH,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,qBAwZA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAelD,eAAO,MAAM,gBAAgB;;CA4M3B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAelD,eAAO,MAAM,gBAAgB;;CAqN3B,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;;CAiOzB,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;;CA2OzB,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;;CAiVtB,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;;CA0WtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "26.6.0-beta.15",
3
+ "version": "26.6.0-beta.17",
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.6.0-beta.15",
19
- "@crystaldesign/content-item": "26.6.0-beta.15",
20
- "@crystaldesign/diva-core": "26.6.0-beta.15",
21
- "@crystaldesign/diva-utils": "26.6.0-beta.15",
22
- "@crystaldesign/media-upload": "26.6.0-beta.15",
23
- "@crystaldesign/rtf-editor": "26.6.0-beta.15",
24
- "@crystaldesign/spreadsheet": "26.6.0-beta.15",
18
+ "@crystaldesign/content-box": "26.6.0-beta.17",
19
+ "@crystaldesign/content-item": "26.6.0-beta.17",
20
+ "@crystaldesign/diva-core": "26.6.0-beta.17",
21
+ "@crystaldesign/diva-utils": "26.6.0-beta.17",
22
+ "@crystaldesign/media-upload": "26.6.0-beta.17",
23
+ "@crystaldesign/rtf-editor": "26.6.0-beta.17",
24
+ "@crystaldesign/spreadsheet": "26.6.0-beta.17",
25
25
  "@google/genai": "^1.22.0",
26
26
  "@google/model-viewer": "3.5.0",
27
27
  "ag-charts-community": "^10.1.0",
@@ -53,5 +53,5 @@
53
53
  },
54
54
  "module": "build/esm/index.js",
55
55
  "types": "./build/types/backoffice/src/index.d.ts",
56
- "gitHead": "fb0727127b7d8d9a4cb6a22b42d92816766dad96"
56
+ "gitHead": "5c6eea48decf63e7b2938cfac014c5822b6a679a"
57
57
  }