@crystaldesign/diva-backoffice 26.8.0-beta.20 → 26.8.0-beta.22

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.
@@ -36087,6 +36087,175 @@ var getItemTypeKey = function getItemTypeKey(t) {
36087
36087
  }];
36088
36088
  };
36089
36089
 
36090
+ /**
36091
+ * Returns an array of item type options with translated names for IDM catalog version 4.1
36092
+ *
36093
+ * @param t - Translation function from i18next
36094
+ * @returns Array of item type objects with name and value properties
36095
+ */
36096
+ var getItemTypeKey41 = function getItemTypeKey41(t) {
36097
+ return [{
36098
+ name: t('backoffice.idmCatalogEditor.items.label.sessel'),
36099
+ value: 1
36100
+ }, {
36101
+ name: t('backoffice.idmCatalogEditor.items.label.clubchair'),
36102
+ value: 2
36103
+ }, {
36104
+ name: t('backoffice.idmCatalogEditor.items.label.relaxSessel'),
36105
+ value: 3
36106
+ }, {
36107
+ name: t('backoffice.idmCatalogEditor.items.label.longChair'),
36108
+ value: 4
36109
+ }, {
36110
+ name: t('backoffice.idmCatalogEditor.items.label.sofa'),
36111
+ value: 5
36112
+ }, {
36113
+ name: t('backoffice.idmCatalogEditor.items.label.polsterZwischenelement'),
36114
+ value: 6
36115
+ }, {
36116
+ name: t('backoffice.idmCatalogEditor.items.label.polsterEcke'),
36117
+ value: 7
36118
+ }, {
36119
+ name: t('backoffice.idmCatalogEditor.items.label.einzelliege'),
36120
+ value: 8
36121
+ }, {
36122
+ name: t('backoffice.idmCatalogEditor.items.label.polsterHocker'),
36123
+ value: 9
36124
+ }, {
36125
+ name: t('backoffice.idmCatalogEditor.items.label.kissen'),
36126
+ value: 10
36127
+ }, {
36128
+ name: t('backoffice.idmCatalogEditor.items.label.polsterAnstelltisch'),
36129
+ value: 11
36130
+ }, {
36131
+ name: t('backoffice.idmCatalogEditor.items.label.polsterKombinationen'),
36132
+ value: 13
36133
+ }, {
36134
+ name: t('backoffice.idmCatalogEditor.items.label.polsterAbschlusselement'),
36135
+ value: 14
36136
+ }, {
36137
+ name: t('backoffice.idmCatalogEditor.items.label.bettsofa'),
36138
+ value: 15
36139
+ }, {
36140
+ name: t('backoffice.idmCatalogEditor.items.label.fussbank'),
36141
+ value: 18
36142
+ }, {
36143
+ name: t('backoffice.idmCatalogEditor.items.label.kopfstuetze'),
36144
+ value: 19
36145
+ }, {
36146
+ name: t('backoffice.idmCatalogEditor.items.label.teppiche'),
36147
+ value: 21
36148
+ }, {
36149
+ name: t('backoffice.idmCatalogEditor.items.label.metrage'),
36150
+ value: 25
36151
+ }, {
36152
+ name: t('backoffice.idmCatalogEditor.items.label.korpuselement'),
36153
+ value: 1010
36154
+ }, {
36155
+ name: t('backoffice.idmCatalogEditor.items.label.schrank'),
36156
+ value: 1020
36157
+ }, {
36158
+ name: t('backoffice.idmCatalogEditor.items.label.vitrine'),
36159
+ value: 1030
36160
+ }, {
36161
+ name: t('backoffice.idmCatalogEditor.items.label.regal'),
36162
+ value: 1040
36163
+ }, {
36164
+ name: t('backoffice.idmCatalogEditor.items.label.highboardSideboard'),
36165
+ value: 1050
36166
+ }, {
36167
+ name: t('backoffice.idmCatalogEditor.items.label.tvPhonoMedienmoebel'),
36168
+ value: 1060
36169
+ }, {
36170
+ name: t('backoffice.idmCatalogEditor.items.label.front'),
36171
+ value: 1070
36172
+ }, {
36173
+ name: t('backoffice.idmCatalogEditor.items.label.regalsystemelement'),
36174
+ value: 1080
36175
+ }, {
36176
+ name: t('backoffice.idmCatalogEditor.items.label.konsoleKommode'),
36177
+ value: 1090
36178
+ }, {
36179
+ name: t('backoffice.idmCatalogEditor.items.label.couchtischBeistelltisch'),
36180
+ value: 1100
36181
+ }, {
36182
+ name: t('backoffice.idmCatalogEditor.items.label.esstisch'),
36183
+ value: 1110
36184
+ }, {
36185
+ name: t('backoffice.idmCatalogEditor.items.label.schreibtisch'),
36186
+ value: 1120
36187
+ }, {
36188
+ name: t('backoffice.idmCatalogEditor.items.label.sekretaer'),
36189
+ value: 1130
36190
+ }, {
36191
+ name: t('backoffice.idmCatalogEditor.items.label.stuhl41'),
36192
+ value: 1140
36193
+ }, {
36194
+ name: t('backoffice.idmCatalogEditor.items.label.hockerBarhocker'),
36195
+ value: 1150
36196
+ }, {
36197
+ name: t('backoffice.idmCatalogEditor.items.label.eckbankBank'),
36198
+ value: 1160
36199
+ }, {
36200
+ name: t('backoffice.idmCatalogEditor.items.label.kinderSpielmoebel'),
36201
+ value: 1170
36202
+ }, {
36203
+ name: t('backoffice.idmCatalogEditor.items.label.bett'),
36204
+ value: 1180
36205
+ }, {
36206
+ name: t('backoffice.idmCatalogEditor.items.label.matratzeLattenrost'),
36207
+ value: 1190
36208
+ }, {
36209
+ name: t('backoffice.idmCatalogEditor.items.label.nachttisch'),
36210
+ value: 1200
36211
+ }, {
36212
+ name: t('backoffice.idmCatalogEditor.items.label.rollStandcontainer'),
36213
+ value: 1210
36214
+ }, {
36215
+ name: t('backoffice.idmCatalogEditor.items.label.thekenanlagen'),
36216
+ value: 1220
36217
+ }, {
36218
+ name: t('backoffice.idmCatalogEditor.items.label.garderobeDielenmoebel'),
36219
+ value: 1230
36220
+ }, {
36221
+ name: t('backoffice.idmCatalogEditor.items.label.schuhschrank'),
36222
+ value: 1240
36223
+ }, {
36224
+ name: t('backoffice.idmCatalogEditor.items.label.truhen'),
36225
+ value: 1250
36226
+ }, {
36227
+ name: t('backoffice.idmCatalogEditor.items.label.spiegel'),
36228
+ value: 1260
36229
+ }, {
36230
+ name: t('backoffice.idmCatalogEditor.items.label.paneel'),
36231
+ value: 1270
36232
+ }, {
36233
+ name: t('backoffice.idmCatalogEditor.items.label.sockelFussgestell'),
36234
+ value: 1280
36235
+ }, {
36236
+ name: t('backoffice.idmCatalogEditor.items.label.abdeckplatte'),
36237
+ value: 1290
36238
+ }, {
36239
+ name: t('backoffice.idmCatalogEditor.items.label.kranzleiste'),
36240
+ value: 1300
36241
+ }, {
36242
+ name: t('backoffice.idmCatalogEditor.items.label.beleuchtung'),
36243
+ value: 1310
36244
+ }, {
36245
+ name: t('backoffice.idmCatalogEditor.items.label.kombinationSet'),
36246
+ value: 1320
36247
+ }, {
36248
+ name: t('backoffice.idmCatalogEditor.items.label.blendeAusgleichsstueck'),
36249
+ value: 1330
36250
+ }, {
36251
+ name: t('backoffice.idmCatalogEditor.items.label.zubehoer41'),
36252
+ value: 1340
36253
+ }, {
36254
+ name: t('backoffice.idmCatalogEditor.items.label.sonstige41'),
36255
+ value: 1350
36256
+ }];
36257
+ };
36258
+
36090
36259
  /**
36091
36260
  * Returns an array of item type class options with translated names
36092
36261
  *
@@ -43710,7 +43879,7 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
43710
43879
  field: 'typeKey',
43711
43880
  cellDataType: 'enum',
43712
43881
  customParams: {
43713
- enumData: getItemTypeKey(t),
43882
+ enumData: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? getItemTypeKey41(t) : getItemTypeKey(t),
43714
43883
  displayLabelTemplate: '${name} (${value})'
43715
43884
  },
43716
43885
  required: true
@@ -48331,17 +48500,23 @@ var TableDetailInfos = observer(function () {
48331
48500
  });
48332
48501
  });
48333
48502
 
48334
- function PartlistPos(_ref) {
48503
+ function resolveTranslatedText(value, language) {
48504
+ var _ref, _value$language;
48505
+ if (value == null) return '';
48506
+ if (_typeof(value) === 'object') return (_ref = (_value$language = value[language]) !== null && _value$language !== void 0 ? _value$language : value.DE) !== null && _ref !== void 0 ? _ref : '';
48507
+ return value;
48508
+ }
48509
+ function PartlistPos(_ref2) {
48335
48510
  var _partlist$lastUpdated;
48336
- var organizationId = _ref.organizationId,
48337
- catalog = _ref.catalog,
48338
- partlist = _ref.partlist,
48339
- apiConfig = _ref.apiConfig,
48340
- hooks = _ref.hooks,
48341
- setNodeDataValue = _ref.setNodeDataValue,
48342
- onPartlistPosExcelImportComplete = _ref.onPartlistPosExcelImportComplete,
48343
- _ref$spreadsheetRemou = _ref.spreadsheetRemountNonce,
48344
- spreadsheetRemountNonce = _ref$spreadsheetRemou === void 0 ? 0 : _ref$spreadsheetRemou;
48511
+ var organizationId = _ref2.organizationId,
48512
+ catalog = _ref2.catalog,
48513
+ partlist = _ref2.partlist,
48514
+ apiConfig = _ref2.apiConfig,
48515
+ hooks = _ref2.hooks,
48516
+ setNodeDataValue = _ref2.setNodeDataValue,
48517
+ onPartlistPosExcelImportComplete = _ref2.onPartlistPosExcelImportComplete,
48518
+ _ref2$spreadsheetRemo = _ref2.spreadsheetRemountNonce,
48519
+ spreadsheetRemountNonce = _ref2$spreadsheetRemo === void 0 ? 0 : _ref2$spreadsheetRemo;
48345
48520
  var _useTranslation = useTranslation(),
48346
48521
  t = _useTranslation.t;
48347
48522
  var addFeature = useCallback(function (value) {
@@ -48496,8 +48671,8 @@ function PartlistPos(_ref) {
48496
48671
  useParser: true,
48497
48672
  useFormatter: true
48498
48673
  },
48499
- valueFormatter: function valueFormatter(_ref2) {
48500
- var value = _ref2.value;
48674
+ valueFormatter: function valueFormatter(_ref3) {
48675
+ var value = _ref3.value;
48501
48676
  if (Array.isArray(value)) {
48502
48677
  var _action$split$;
48503
48678
  var action = value.find(function (a) {
@@ -48507,8 +48682,8 @@ function PartlistPos(_ref) {
48507
48682
  }
48508
48683
  return '';
48509
48684
  },
48510
- valueParser: function valueParser(_ref3) {
48511
- var newValue = _ref3.newValue;
48685
+ valueParser: function valueParser(_ref4) {
48686
+ var newValue = _ref4.newValue;
48512
48687
  if (newValue == '') return undefined;
48513
48688
  return ["SET_POS_COUNT_VALUE:".concat(newValue)];
48514
48689
  },
@@ -48571,20 +48746,31 @@ function PartlistPos(_ref) {
48571
48746
  cellDataType: 'lookup',
48572
48747
  customParams: {
48573
48748
  nameField: 'itemRefTypeNoDisplayText',
48574
- displayLabelTemplate: '${name} (${value})',
48749
+ displayLabelTemplate: function displayLabelTemplate(data, language) {
48750
+ var fullText = resolveTranslatedText(data.itemRefTypeNoFullText, language);
48751
+ return "".concat(data.name, " (").concat(data.value, ")").concat(fullText ? " \u2013 ".concat(fullText) : '');
48752
+ },
48753
+ lookupLabelTemplate: function lookupLabelTemplate(data, language) {
48754
+ var fullText = resolveTranslatedText(data.fullText, language);
48755
+ return "".concat(data.name, " (").concat(data.value, ")").concat(fullText ? " \u2013 ".concat(fullText) : '');
48756
+ },
48575
48757
  apiInterface: {
48576
48758
  read: apiConfig.idmService + '/catalogs/${catalogId}/series/${itemRefSerieId}/items'
48577
48759
  },
48578
48760
  lookupValue: 'shortText',
48579
48761
  lookupKey: 'typeNo',
48580
48762
  multiple: false,
48581
- translated: true
48763
+ translated: true,
48764
+ additionalMappings: [{
48765
+ lookupField: 'fullText',
48766
+ targetField: 'itemRefTypeNoFullText'
48767
+ }]
48582
48768
  },
48583
- additionalFields: ['itemRefTypeNoDisplayText'],
48769
+ additionalFields: ['itemRefTypeNoDisplayText', 'itemRefTypeNoFullText'],
48584
48770
  isDictionary: true,
48585
- editable: function editable(_ref4) {
48586
- var data = _ref4.data,
48587
- context = _ref4.context;
48771
+ editable: function editable(_ref5) {
48772
+ var data = _ref5.data,
48773
+ context = _ref5.context;
48588
48774
  return (context === null || context === void 0 ? void 0 : context.isPasting) || !!data.itemRefSerieNo;
48589
48775
  }
48590
48776
  }, {
@@ -69,6 +69,16 @@ export declare const getItemTypeKey: (t: TFunction) => {
69
69
  name: string;
70
70
  value: number;
71
71
  }[];
72
+ /**
73
+ * Returns an array of item type options with translated names for IDM catalog version 4.1
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 getItemTypeKey41: (t: TFunction) => {
79
+ name: string;
80
+ value: number;
81
+ }[];
72
82
  /**
73
83
  * Returns an array of item type class options with translated names
74
84
  *
@@ -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;;;;;G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;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,MAAO,SAAS;;;GAsD5C,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":"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,qBAyZA"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "26.8.0-beta.20",
3
+ "version": "26.8.0-beta.22",
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.20",
19
- "@crystaldesign/content-item": "26.8.0-beta.20",
20
- "@crystaldesign/diva-core": "26.8.0-beta.20",
21
- "@crystaldesign/diva-utils": "26.8.0-beta.20",
22
- "@crystaldesign/media-upload": "26.8.0-beta.20",
23
- "@crystaldesign/rtf-editor": "26.8.0-beta.20",
24
- "@crystaldesign/spreadsheet": "26.8.0-beta.20",
18
+ "@crystaldesign/content-box": "26.8.0-beta.22",
19
+ "@crystaldesign/content-item": "26.8.0-beta.22",
20
+ "@crystaldesign/diva-core": "26.8.0-beta.22",
21
+ "@crystaldesign/diva-utils": "26.8.0-beta.22",
22
+ "@crystaldesign/media-upload": "26.8.0-beta.22",
23
+ "@crystaldesign/rtf-editor": "26.8.0-beta.22",
24
+ "@crystaldesign/spreadsheet": "26.8.0-beta.22",
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": "7c7563ae8147f6cef058d613a9245db455f4d080"
59
+ "gitHead": "511496dfe266c15b8bdf23ef19584d10cab99146"
60
60
  }