@crystaldesign/diva-backoffice 25.14.0-beta.4 → 25.14.0-beta.40

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 (38) hide show
  1. package/build/esm/index.js +601 -137
  2. package/build/types/backoffice/src/Configuration.d.ts +4 -2
  3. package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
  4. package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
  5. package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
  6. package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts.map +1 -1
  7. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
  8. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionGroupOptions.d.ts.map +1 -1
  9. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
  10. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
  11. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePrices/index.d.ts.map +1 -1
  12. package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/CollectionMembers.d.ts.map +1 -1
  13. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  14. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
  15. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/Tables/Features.d.ts +5 -0
  16. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/Tables/Features.d.ts.map +1 -0
  17. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/index.d.ts +9 -0
  18. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/index.d.ts.map +1 -0
  19. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/modules/TableFeatures/index.d.ts +5 -0
  20. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/modules/TableFeatures/index.d.ts.map +1 -0
  21. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/types.d.ts +5 -0
  22. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/types.d.ts.map +1 -0
  23. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/useNavigation.d.ts +6 -0
  24. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/useNavigation.d.ts.map +1 -0
  25. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/Tables/Options.d.ts +5 -0
  26. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/Tables/Options.d.ts.map +1 -0
  27. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/index.d.ts +9 -0
  28. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/index.d.ts.map +1 -0
  29. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/modules/TableOptions/index.d.ts +5 -0
  30. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/modules/TableOptions/index.d.ts.map +1 -0
  31. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/types.d.ts +5 -0
  32. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/types.d.ts.map +1 -0
  33. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/useNavigation.d.ts +6 -0
  34. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/useNavigation.d.ts.map +1 -0
  35. package/build/types/backoffice/src/ui/SelectSimple/useSelectSimpleData.d.ts.map +1 -1
  36. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/MediaViewerCell/index.d.ts.map +1 -1
  37. package/build/types/backoffice/src/ui/Table/BaseTable/index.d.ts.map +1 -1
  38. package/package.json +9 -9
@@ -3899,7 +3899,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
3899
3899
  rule: [{
3900
3900
  match: {
3901
3901
  sourceField: 'catalogItem',
3902
- value: undefined
3902
+ value: null
3903
3903
  }
3904
3904
  }],
3905
3905
  download: [{
@@ -5271,12 +5271,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
5271
5271
  sorter: 2,
5272
5272
  filter: 'advanced',
5273
5273
  align: 'center'
5274
- }, {
5275
- title: t('backoffice.table.mediastorage.columns.title.cacheFolderName'),
5276
- field: 'cacheFolderName',
5277
- sorter: 3,
5278
- filter: 'advanced',
5279
- align: 'center'
5280
5274
  }, {
5281
5275
  title: t('backoffice.table.mediastorage.columns.title.publicUrl'),
5282
5276
  field: 'publicUrl',
@@ -5308,10 +5302,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
5308
5302
  title: t('backoffice.table.mediastorage.columns.title.pathNumLevels'),
5309
5303
  field: 'pathNumLevels',
5310
5304
  hidden: true
5311
- }, {
5312
- title: t('backoffice.table.mediastorage.columns.title.cacheFolderName'),
5313
- field: 'cacheFolderName',
5314
- hidden: true
5315
5305
  }, {
5316
5306
  title: t('backoffice.table.mediastorage.columns.title.s3Bucket'),
5317
5307
  field: 's3Bucket',
@@ -5424,9 +5414,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
5424
5414
  }, {
5425
5415
  targetField: 'pathNumLevels',
5426
5416
  sourceField: 'pathNumLevels'
5427
- }, {
5428
- targetField: 'cacheFolderName',
5429
- sourceField: 'cacheFolderName'
5430
5417
  }, {
5431
5418
  targetField: 's3Bucket',
5432
5419
  sourceField: 's3Bucket'
@@ -7353,9 +7340,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7353
7340
  label: t('backoffice.form.updatemediastorage.items.pathNumLevels'),
7354
7341
  name: 'pathNumLevels',
7355
7342
  type: 'number'
7356
- }, {
7357
- label: t('backoffice.form.updatemediastorage.items.cacheFolderName'),
7358
- name: 'cacheFolderName'
7359
7343
  }, {
7360
7344
  label: t('backoffice.form.updatemediastorage.items.s3Bucket'),
7361
7345
  name: 's3Bucket'
@@ -7414,9 +7398,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7414
7398
  label: t('backoffice.form.createmediastorage.items.pathNumLevels'),
7415
7399
  name: 'pathNumLevels',
7416
7400
  type: 'number'
7417
- }, {
7418
- label: t('backoffice.form.createmediastorage.items.cacheFolderName'),
7419
- name: 'cacheFolderName'
7420
7401
  }, {
7421
7402
  label: t('backoffice.form.createmediastorage.items.s3Bucket'),
7422
7403
  name: 's3Bucket'
@@ -7874,7 +7855,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7874
7855
  allowedTypes: ['image/*'],
7875
7856
  mediaItemRefField: 'mediaItemRefPreviewImage',
7876
7857
  urlField: 'previewImage',
7877
- functionType: 'CAT'
7858
+ functionType: 'RPI'
7878
7859
  }, {
7879
7860
  name: 'isGlobal',
7880
7861
  label: t('backoffice.table.prompts.columns.isGlobal'),
@@ -7967,7 +7948,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7967
7948
  allowedTypes: ['image/*'],
7968
7949
  mediaItemRefField: 'mediaItemRefPreviewImage',
7969
7950
  urlField: 'previewImage',
7970
- functionType: 'CAT',
7951
+ functionType: 'RPI',
7971
7952
  readonly: true
7972
7953
  }, {
7973
7954
  name: 'isGlobal',
@@ -9081,6 +9062,16 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9081
9062
  onSave: function onSave(data) {
9082
9063
  return data;
9083
9064
  }
9065
+ }, {
9066
+ name: ['settings', 'makeApiKey'],
9067
+ label: t('backoffice.form.organizationdetails.items.settings.makeApiKey'),
9068
+ permission: 'backoffice_admin_organizations',
9069
+ type: 'input'
9070
+ }, {
9071
+ name: ['settings', 'leadTableApiKey'],
9072
+ label: t('backoffice.form.organizationdetails.items.settings.leadTableApiKey'),
9073
+ permission: 'backoffice_admin_organizations',
9074
+ type: 'input'
9084
9075
  }, {
9085
9076
  type: 'subTitle',
9086
9077
  name: t('backoffice.form.organizationdetails.socialUrls'),
@@ -9215,14 +9206,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9215
9206
  label: t('backoffice.form.organizationdetails.items.settings.externalContactUrl'),
9216
9207
  tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
9217
9208
  type: 'input'
9218
- }, {
9219
- name: t('backoffice.subtitle.ai'),
9220
- type: 'subTitle',
9221
- orientation: 'left',
9222
- style: {
9223
- marginBottom: '40px'
9224
- },
9225
- permission: 'backoffice_admin_organizations'
9226
9209
  }, {
9227
9210
  name: ['settings', 'aiSettings', 'monthlyOrgRenderingLimit'],
9228
9211
  label: t('backoffice.form.organizationdetails.items.ai.monthlyOrgRenderingLimit'),
@@ -9230,7 +9213,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9230
9213
  permission: 'backoffice_admin_organizations',
9231
9214
  tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
9232
9215
  hidden: function hidden(data) {
9233
- return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9216
+ return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
9234
9217
  },
9235
9218
  disabled: function disabled(data) {
9236
9219
  var _data$settings;
@@ -9296,7 +9279,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9296
9279
  permission: 'backoffice_admin_organizations',
9297
9280
  tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
9298
9281
  hidden: function hidden(data) {
9299
- return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9282
+ return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
9300
9283
  },
9301
9284
  disabled: function disabled(data) {
9302
9285
  var _data$settings2;
@@ -9310,7 +9293,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9310
9293
  permission: 'backoffice_admin_organizations',
9311
9294
  tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
9312
9295
  hidden: function hidden(data) {
9313
- return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9296
+ return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
9314
9297
  },
9315
9298
  disabled: function disabled(data) {
9316
9299
  var _data$settings3;
@@ -9324,7 +9307,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9324
9307
  permission: 'backoffice_admin_organizations',
9325
9308
  tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
9326
9309
  hidden: function hidden(data) {
9327
- return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9310
+ return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
9328
9311
  },
9329
9312
  disabled: function disabled(data) {
9330
9313
  var _data$settings4;
@@ -9338,7 +9321,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9338
9321
  permission: 'backoffice_admin_organizations',
9339
9322
  tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
9340
9323
  hidden: function hidden(data) {
9341
- return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9324
+ return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
9342
9325
  },
9343
9326
  disabled: function disabled(data) {
9344
9327
  var _data$settings5;
@@ -9352,7 +9335,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9352
9335
  permission: 'backoffice_admin_organizations',
9353
9336
  tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
9354
9337
  hidden: function hidden(data) {
9355
- return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9338
+ return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
9356
9339
  },
9357
9340
  disabled: function disabled(data) {
9358
9341
  var _data$settings6;
@@ -9366,7 +9349,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9366
9349
  permission: 'backoffice_admin_organizations',
9367
9350
  tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
9368
9351
  hidden: function hidden(data) {
9369
- return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9352
+ return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
9370
9353
  },
9371
9354
  helpText: 'anonymous enduser limit'
9372
9355
  }, {
@@ -9376,7 +9359,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9376
9359
  permission: 'backoffice_admin_organizations',
9377
9360
  tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
9378
9361
  hidden: function hidden(data) {
9379
- return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9362
+ return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
9380
9363
  },
9381
9364
  helpText: 'logged in enduser limit'
9382
9365
  }, {
@@ -9386,7 +9369,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9386
9369
  permission: 'backoffice_admin_organizations',
9387
9370
  tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
9388
9371
  hidden: function hidden(data) {
9389
- return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9372
+ return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
9390
9373
  }
9391
9374
  }, {
9392
9375
  name: ['settings', 'aiSettings', 'noLimit'],
@@ -9396,7 +9379,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9396
9379
  tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
9397
9380
  defaultValue: false,
9398
9381
  hidden: function hidden(data) {
9399
- return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9382
+ return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
9400
9383
  }
9401
9384
  },
9402
9385
  // Theme Configuration
@@ -9640,7 +9623,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9640
9623
  mediaItemRefField: 'mediaItemRefImage',
9641
9624
  urlField: 'image',
9642
9625
  label: t('backoffice.form.api2servers.items.url'),
9643
- functionType: 'CAT',
9626
+ functionType: 'CI_INF',
9644
9627
  hidden: function hidden(d) {
9645
9628
  return (d === null || d === void 0 ? void 0 : d.type) !== 'Image' && d !== undefined;
9646
9629
  },
@@ -9661,7 +9644,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9661
9644
  mediaItemRefField: 'mediaItemRefVideo',
9662
9645
  urlField: 'video',
9663
9646
  label: t('backoffice.form.api2servers.items.url'),
9664
- functionType: 'INF',
9647
+ functionType: 'CI_INF',
9665
9648
  hidden: function hidden(d) {
9666
9649
  return (d === null || d === void 0 ? void 0 : d.type) !== 'Video';
9667
9650
  },
@@ -10323,9 +10306,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10323
10306
  }, {
10324
10307
  value: '3DEXPORT',
10325
10308
  label: '3DEXPORT'
10326
- }, {
10327
- value: 'SPIN',
10328
- label: 'SPIN'
10329
10309
  }, {
10330
10310
  value: 'AR',
10331
10311
  label: 'AR'
@@ -10530,13 +10510,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10530
10510
  label: t('backoffice.form.renderjob.itemSelector'),
10531
10511
  mode: 'single',
10532
10512
  type: 'select',
10533
- values: ['HQ', 'AR', 'MASTER', '3DEXPORT', 'SPIN', 'CUTOUT'],
10513
+ values: ['HQ', 'AR', 'MASTER', '3DEXPORT', 'CUTOUT'],
10534
10514
  readonly: {
10535
10515
  field: 'state',
10536
10516
  op: 'gt',
10537
10517
  value: 3
10538
10518
  },
10539
- placeholder: 'z.B.: HQ, AR, SPIN'
10519
+ placeholder: 'z.B.: HQ, AR'
10540
10520
  },
10541
10521
  items: [[{
10542
10522
  name: '_id',
@@ -13414,6 +13394,14 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
13414
13394
  create: '${adminService}/cache/invalidate'
13415
13395
  }
13416
13396
  },
13397
+ ButtonAiServiceCache: {
13398
+ type: 'CustomButton',
13399
+ text: t('backoffice.ButtonAnalyticsServiceCache'),
13400
+ resetAfterTime: 3,
13401
+ apiInterface: {
13402
+ create: '${aiService}/cache/invalidate'
13403
+ }
13404
+ },
13417
13405
  ButtonAnalyticsServiceCache: {
13418
13406
  type: 'CustomButton',
13419
13407
  text: t('backoffice.ButtonAnalyticsServiceCache'),
@@ -13526,6 +13514,11 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
13526
13514
  isTitle: true,
13527
13515
  text: 'Admin Service'
13528
13516
  },
13517
+ LabelAiService: {
13518
+ type: 'CustomText',
13519
+ isTitle: true,
13520
+ text: 'Ai Service'
13521
+ },
13529
13522
  LabelAnalyticsService: {
13530
13523
  type: 'CustomText',
13531
13524
  isTitle: true,
@@ -14054,6 +14047,15 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
14054
14047
  id: 'ButtonAdminServiceCache',
14055
14048
  type: 'CustomButton'
14056
14049
  }]
14050
+ }, {
14051
+ type: 'SideBySide',
14052
+ items: [{
14053
+ id: 'LabelAiService',
14054
+ type: 'CustomText'
14055
+ }, {
14056
+ id: 'ButtonAiServiceCache',
14057
+ type: 'CustomButton'
14058
+ }]
14057
14059
  }, {
14058
14060
  type: 'SideBySide',
14059
14061
  items: [{
@@ -14172,12 +14174,18 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
14172
14174
  IDMFeaturesEditor: {
14173
14175
  type: 'IDMFeaturesEditor'
14174
14176
  },
14177
+ IDMOrganizationFeaturesEditor: {
14178
+ type: 'IDMOrganizationFeaturesEditor'
14179
+ },
14180
+ IDMOrganizationOptionsEditor: {
14181
+ type: 'IDMOrganizationOptionsEditor'
14182
+ },
14175
14183
  MediaTable: {
14176
14184
  type: 'MediaTable'
14177
14185
  }
14178
14186
  };
14179
14187
  }
14180
- var functionTypeValues = ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV'];
14188
+ var functionTypeValues = ['PROD', 'PROD_MILIEU', 'PROD_DETAIL', 'SHO', 'AR_INFO', 'ART', 'LOG', 'BAN', 'INF', 'OTH'];
14181
14189
 
14182
14190
  function styleInject(css, ref) {
14183
14191
  if ( ref === void 0 ) ref = {};
@@ -15312,6 +15320,20 @@ var menu = [{
15312
15320
  permission: 'idm_global_features',
15313
15321
  icon: 'HistoryOutlined',
15314
15322
  haSubRoutes: false
15323
+ }, {
15324
+ id: 'IDMOrganizationFeaturesEditor',
15325
+ path: 'organizationfeatures',
15326
+ label: 'backoffice.menu.items.label.IDMOrganizationFeatures',
15327
+ permission: 'idm_catalogs',
15328
+ icon: 'HistoryOutlined',
15329
+ haSubRoutes: false
15330
+ }, {
15331
+ id: 'IDMOrganizationOptionsEditor',
15332
+ path: 'organizationoptions',
15333
+ label: 'backoffice.menu.items.label.IDMOrganizationOptions',
15334
+ permission: 'idm_catalogs',
15335
+ icon: 'HistoryOutlined',
15336
+ haSubRoutes: false
15315
15337
  }, {
15316
15338
  id: 'IDMCatalogEditor',
15317
15339
  path: 'catalogs',
@@ -18498,6 +18520,19 @@ function useSelectSimpleData (_ref) {
18498
18520
  });
18499
18521
  return selected.value;
18500
18522
  }, [selected]);
18523
+
18524
+ //initialize the selected value if it is not set yet and handle race condition between value and options
18525
+ useEffect(function () {
18526
+ if (value && options && selected == undefined) {
18527
+ var sel = findByValue(value, options, selectMapping);
18528
+ if (sel) {
18529
+ var selectedValues = Array.isArray(sel) ? sel.map(function (item) {
18530
+ return item.value;
18531
+ }) : sel.value;
18532
+ onSelectionChanged(selectedValues, sel);
18533
+ }
18534
+ }
18535
+ }, [value, options]);
18501
18536
  var setLoadedOptions = function setLoadedOptions(options) {
18502
18537
  var _options$;
18503
18538
  setOptions(options);
@@ -27366,16 +27401,27 @@ var TableWrapper = function TableWrapper(_ref) {
27366
27401
  return sel == dt._id;
27367
27402
  });
27368
27403
  });
27369
- if (!data || data.length == 0) {
27404
+ // Ensure each data row exposes catalogItem for rule evaluation
27405
+ if (data && data.length > 0) {
27406
+ data = data.map(function (dt) {
27407
+ var _ref2, _dt$catalogItem;
27408
+ return _objectSpread$G(_objectSpread$G({}, dt), {}, {
27409
+ catalogItem: (_ref2 = (_dt$catalogItem = dt.catalogItem) !== null && _dt$catalogItem !== void 0 ? _dt$catalogItem : state.catalogItem) !== null && _ref2 !== void 0 ? _ref2 : null
27410
+ });
27411
+ });
27412
+ } else {
27413
+ var _state$catalogItem;
27414
+ // Normalize empty selection
27370
27415
  data = [{
27371
- catalogItem: state.catalogItem
27416
+ catalogItem: (_state$catalogItem = state.catalogItem) !== null && _state$catalogItem !== void 0 ? _state$catalogItem : null
27372
27417
  }];
27373
27418
  }
27374
- return !aplyRules({
27419
+ var ruleResult = aplyRules({
27375
27420
  data: data,
27376
27421
  rootStore: root,
27377
27422
  rules: action.rule
27378
27423
  });
27424
+ return !ruleResult.applied;
27379
27425
  }
27380
27426
  function checkPermission(permission) {
27381
27427
  if (!permission) return true;
@@ -27423,17 +27469,17 @@ var TableWrapper = function TableWrapper(_ref) {
27423
27469
  icon: /*#__PURE__*/jsx(DownloadOutlined$1, {}),
27424
27470
  size: "middle",
27425
27471
  onClick: function onClick() {
27426
- var _state$catalogItem, _state$catalogItem2, _state$catalogItem3;
27472
+ var _state$catalogItem2, _state$catalogItem3, _state$catalogItem4;
27427
27473
  var selectedData = state.data.filter(function (dt) {
27428
27474
  return state.selected.includes(dt._id);
27429
27475
  });
27430
27476
  root.downloadStore.openDownload({
27431
27477
  data: selectedData.length ? selectedData : state.mappingData,
27432
27478
  action: action,
27433
- catalogCodex: (_state$catalogItem = state.catalogItem) === null || _state$catalogItem === void 0 ? void 0 : _state$catalogItem.codex,
27434
- dealerId: (_state$catalogItem2 = state.catalogItem) === null || _state$catalogItem2 === void 0 ? void 0 : _state$catalogItem2.dealerId,
27479
+ catalogCodex: (_state$catalogItem2 = state.catalogItem) === null || _state$catalogItem2 === void 0 ? void 0 : _state$catalogItem2.codex,
27480
+ dealerId: (_state$catalogItem3 = state.catalogItem) === null || _state$catalogItem3 === void 0 ? void 0 : _state$catalogItem3.dealerId,
27435
27481
  currentUrl: state.currentFetchUrl,
27436
- sessionGuid: (_state$catalogItem3 = state.catalogItem) === null || _state$catalogItem3 === void 0 ? void 0 : _state$catalogItem3.sessionGuid
27482
+ sessionGuid: (_state$catalogItem4 = state.catalogItem) === null || _state$catalogItem4 === void 0 ? void 0 : _state$catalogItem4.sessionGuid
27437
27483
  });
27438
27484
  },
27439
27485
  children: (_action$label = action.label) !== null && _action$label !== void 0 ? _action$label : t('backoffice.basetable.download')
@@ -27619,17 +27665,17 @@ var TableWrapper = function TableWrapper(_ref) {
27619
27665
  });
27620
27666
  };
27621
27667
  var BaseTable = observer(TableWrapper);
27622
- function DeleteButton(_ref2) {
27623
- var _ref2$selected = _ref2.selected,
27624
- selected = _ref2$selected === void 0 ? [] : _ref2$selected,
27625
- total = _ref2.total,
27626
- _ref2$min = _ref2.min,
27627
- min = _ref2$min === void 0 ? 0 : _ref2$min,
27628
- deleting = _ref2.deleting,
27629
- onDelete = _ref2.onDelete,
27630
- disabled = _ref2.disabled,
27631
- label = _ref2.label,
27632
- labelDialog = _ref2.labelDialog;
27668
+ function DeleteButton(_ref3) {
27669
+ var _ref3$selected = _ref3.selected,
27670
+ selected = _ref3$selected === void 0 ? [] : _ref3$selected,
27671
+ total = _ref3.total,
27672
+ _ref3$min = _ref3.min,
27673
+ min = _ref3$min === void 0 ? 0 : _ref3$min,
27674
+ deleting = _ref3.deleting,
27675
+ onDelete = _ref3.onDelete,
27676
+ disabled = _ref3.disabled,
27677
+ label = _ref3.label,
27678
+ labelDialog = _ref3.labelDialog;
27633
27679
  var _useTranslation2 = useTranslation(),
27634
27680
  t = _useTranslation2.t;
27635
27681
  var hasSelected = (selected === null || selected === void 0 ? void 0 : selected.length) > 0;
@@ -27657,16 +27703,16 @@ function DeleteButton(_ref2) {
27657
27703
  })
27658
27704
  });
27659
27705
  }
27660
- function CopyButton(_ref3) {
27706
+ function CopyButton(_ref4) {
27661
27707
  var _state$configuration$24;
27662
- var state = _ref3.state;
27708
+ var state = _ref4.state;
27663
27709
  var root = useStore();
27664
27710
  new _default$d({
27665
27711
  apiInterface: state.configuration.apiInterface,
27666
27712
  type: 'Table'
27667
27713
  }, root);
27668
27714
  var onCopy = /*#__PURE__*/function () {
27669
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
27715
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
27670
27716
  var _state$configuration$21;
27671
27717
  var copyAction, _iterator3, _step3, selectedRow;
27672
27718
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -27703,11 +27749,11 @@ function CopyButton(_ref3) {
27703
27749
  }, _callee);
27704
27750
  }));
27705
27751
  return function onCopy() {
27706
- return _ref4.apply(this, arguments);
27752
+ return _ref5.apply(this, arguments);
27707
27753
  };
27708
27754
  }();
27709
27755
  var onCopyAction = /*#__PURE__*/function () {
27710
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
27756
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
27711
27757
  var _state$configuration$22, _state$configuration$23;
27712
27758
  var copyAction, id, data;
27713
27759
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
@@ -27768,7 +27814,7 @@ function CopyButton(_ref3) {
27768
27814
  }, _callee3);
27769
27815
  }));
27770
27816
  return function onCopyAction() {
27771
- return _ref5.apply(this, arguments);
27817
+ return _ref6.apply(this, arguments);
27772
27818
  };
27773
27819
  }();
27774
27820
  var _useTranslation3 = useTranslation(),
@@ -27780,11 +27826,11 @@ function CopyButton(_ref3) {
27780
27826
  children: t('backoffice.basetable.copy')
27781
27827
  });
27782
27828
  }
27783
- function BulkAction(_ref6) {
27829
+ function BulkAction(_ref7) {
27784
27830
  var _state$selected3;
27785
- var action = _ref6.action,
27786
- state = _ref6.state,
27787
- progressBar = _ref6.progressBar;
27831
+ var action = _ref7.action,
27832
+ state = _ref7.state,
27833
+ progressBar = _ref7.progressBar;
27788
27834
  var root = useStore();
27789
27835
  var _useTranslation4 = useTranslation(),
27790
27836
  t = _useTranslation4.t;
@@ -27869,7 +27915,7 @@ function BulkAction(_ref6) {
27869
27915
  return true;
27870
27916
  };
27871
27917
  var callback = /*#__PURE__*/function () {
27872
- var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(updatedData) {
27918
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(updatedData) {
27873
27919
  var _action$callback;
27874
27920
  var apiInterface, data, i, dataEntry;
27875
27921
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
@@ -27963,7 +28009,7 @@ function BulkAction(_ref6) {
27963
28009
  }, _callee4, null, [[2, 37]]);
27964
28010
  }));
27965
28011
  return function callback(_x2) {
27966
- return _ref7.apply(this, arguments);
28012
+ return _ref8.apply(this, arguments);
27967
28013
  };
27968
28014
  }();
27969
28015
  return /*#__PURE__*/jsx(Popover, {
@@ -27993,8 +28039,8 @@ function BulkAction(_ref6) {
27993
28039
  }, 'edit')
27994
28040
  });
27995
28041
  }
27996
- function SelectionText(_ref8) {
27997
- var selected = _ref8.selected;
28042
+ function SelectionText(_ref9) {
28043
+ var selected = _ref9.selected;
27998
28044
  var _useTranslation5 = useTranslation(),
27999
28045
  t = _useTranslation5.t;
28000
28046
  if (!(selected !== null && selected !== void 0 && selected.length)) {
@@ -32765,6 +32811,12 @@ var useTools = function useTools(_ref) {
32765
32811
  }
32766
32812
  return undefined;
32767
32813
  }, [serie]);
32814
+ var initItem = useMemo(function () {
32815
+ if (item) {
32816
+ return item.typeNo;
32817
+ }
32818
+ return undefined;
32819
+ }, [item]);
32768
32820
  var createConfigurator = function createConfigurator() {
32769
32821
  var parameters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
32770
32822
  return createTool({
@@ -32779,30 +32831,33 @@ var useTools = function useTools(_ref) {
32779
32831
  }, parameters),
32780
32832
  elementProps: onlyPlaceholder ? {
32781
32833
  onlyPlaceholder: true
32782
- } : catalogId ? _objectSpread$o({
32834
+ } : catalogId ? _objectSpread$o(_objectSpread$o({
32783
32835
  // open configurator for idm catalog
32784
32836
  useIDMService: true,
32785
32837
  catalogId: catalogId,
32786
32838
  showCatalogSelection: true,
32787
- initItem: item === null || item === void 0 ? void 0 : item.typeNo,
32788
32839
  setSerie: setSerie,
32789
32840
  setArticle: setArticle
32790
- }, initSerie ? {
32841
+ }, initItem ? {
32842
+ initItem: initItem
32843
+ } : {}), initSerie ? {
32791
32844
  initSerie: initSerie
32792
- } : {}) : isApi2 ? {
32845
+ } : {}) : isApi2 ? _objectSpread$o({
32793
32846
  // open configurator for api2 package (configurator light)
32794
- loadMask: true,
32795
- initItem: item === null || item === void 0 ? void 0 : item.typeNo
32796
- } : _objectSpread$o({
32847
+ loadMask: true
32848
+ }, initItem ? {
32849
+ initItem: initItem
32850
+ } : {}) : _objectSpread$o(_objectSpread$o({
32797
32851
  // open configurator for idm package
32798
32852
  useEnricherService: true,
32799
32853
  loadPackage: true,
32800
32854
  packageId: packageId,
32801
32855
  showCatalogSelection: true,
32802
- initItem: item === null || item === void 0 ? void 0 : item.typeNo,
32803
32856
  setSerie: setSerie,
32804
32857
  setArticle: setArticle
32805
- }, initSerie ? {
32858
+ }, initItem ? {
32859
+ initItem: initItem
32860
+ } : {}), initSerie ? {
32806
32861
  initSerie: initSerie
32807
32862
  } : {})
32808
32863
  });
@@ -32869,7 +32924,7 @@ var useTools = function useTools(_ref) {
32869
32924
  return tool.id;
32870
32925
  })) || []));
32871
32926
  };
32872
- }, [mainInformationWindowCodex, catalogId, packageId, conditionalTools, onlyPlaceholder]);
32927
+ }, [mainInformationWindowCodex, catalogId, packageId, conditionalTools, onlyPlaceholder, item, serie]);
32873
32928
  return {
32874
32929
  updateConfigurator: updateConfigurator,
32875
32930
  updateInformationWindow: updateInformationWindow
@@ -33811,6 +33866,9 @@ var TablePackages = observer(function () {
33811
33866
  apiInterface: {
33812
33867
  read: apiConfig.authService + "/organizations/".concat(organizationId, "/related")
33813
33868
  },
33869
+ filter: function filter(_, lookupData) {
33870
+ return lookupData._id !== organizationId;
33871
+ },
33814
33872
  lookupValue: 'displayName',
33815
33873
  lookupKey: '_id',
33816
33874
  serverType: 'nodejs',
@@ -33956,18 +34014,26 @@ var TableProperties = observer(function () {
33956
34014
  additionalFields: ['featureNosDisplayTexts'],
33957
34015
  isDictionary: true
33958
34016
  }, {
33959
- field: 'optionKeys',
34017
+ field: 'optionIds',
33960
34018
  headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
33961
34019
  cellDataType: 'lookup',
33962
34020
  editable: !viewOnly,
33963
34021
  customParams: {
33964
34022
  nameField: 'optionKeysDisplayTexts',
33965
- displayLabelTemplate: '${name} (${value})',
34023
+ displayLabelTemplate: '${name} (${optionKeys}) in Features: ${optionFeatureNos}',
34024
+ lookupLabelTemplate: '${name} (${optionKey}) in Features: ${featureNos}',
33966
34025
  apiInterface: {
33967
34026
  read: apiConfig.enricherService + '/packages/${packageId}/lookup/options'
33968
34027
  },
33969
34028
  lookupValue: 'optionText',
33970
- lookupKey: 'optionKey',
34029
+ lookupKey: '_id',
34030
+ additionalMappings: [{
34031
+ lookupField: 'optionKey',
34032
+ targetField: 'optionKeys'
34033
+ }, {
34034
+ lookupField: 'featureNos',
34035
+ targetField: 'optionFeatureNos'
34036
+ }],
33971
34037
  multiple: true,
33972
34038
  translated: true,
33973
34039
  filter: {
@@ -33977,7 +34043,7 @@ var TableProperties = observer(function () {
33977
34043
  filter: '${featureNos}'
33978
34044
  }
33979
34045
  },
33980
- additionalFields: ['optionKeysDisplayTexts'],
34046
+ additionalFields: ['optionKeysDisplayTexts', 'optionKeys', 'optionFeatureNos'],
33981
34047
  isDictionary: true
33982
34048
  }, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.properties.label.name', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, true), createTranslatedColumnConfig('value', 'backoffice.idmEnricher.properties.label.value', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, true), {
33983
34049
  field: 'serieNos',
@@ -37361,10 +37427,10 @@ function IDMEnricherEditor (_ref) {
37361
37427
  display: 'flex',
37362
37428
  flexDirection: 'column'
37363
37429
  },
37364
- children: /*#__PURE__*/jsx(Content$5, {})
37430
+ children: /*#__PURE__*/jsx(Content$7, {})
37365
37431
  });
37366
37432
  }
37367
- function Content$5() {
37433
+ function Content$7() {
37368
37434
  return /*#__PURE__*/jsxs(Routes, {
37369
37435
  children: [/*#__PURE__*/jsx(Route, {
37370
37436
  index: true,
@@ -38970,6 +39036,16 @@ var TableCatalogs = observer(function () {
38970
39036
  headerName: 'backoffice.idmCatalog.general.label.postBox',
38971
39037
  field: 'postBox',
38972
39038
  regex: '[0-9a-zA-Z]{0,10}'
39039
+ }, {
39040
+ headerName: 'backoffice.idmCatalog.general.label.contactSupplierIsoCountryId',
39041
+ field: 'contactSupplierIsoCountryId',
39042
+ cellDataType: 'enum',
39043
+ editable: true,
39044
+ required: true,
39045
+ defaultValue: 'DE',
39046
+ customParams: {
39047
+ enumData: getCountryKey(t)
39048
+ }
38973
39049
  }, {
38974
39050
  headerName: 'backoffice.idmCatalog.general.label.telephone',
38975
39051
  field: 'telephoneSwitchboard',
@@ -39097,11 +39173,13 @@ var TableCatalogs = observer(function () {
39097
39173
  children: [{
39098
39174
  headerName: 'backoffice.idmCatalog.general.label.priceTypeNo',
39099
39175
  field: 'priceTypeNo',
39100
- cellDataType: 'number'
39176
+ cellDataType: 'number',
39177
+ required: true
39101
39178
  }, {
39102
39179
  headerName: 'backoffice.idmCatalog.general.label.widthX',
39103
39180
  field: 'widthX',
39104
39181
  cellDataType: 'enum',
39182
+ required: true,
39105
39183
  customParams: {
39106
39184
  enumData: priceDependent,
39107
39185
  displayLabelTemplate: '${name} (${value})'
@@ -39110,6 +39188,7 @@ var TableCatalogs = observer(function () {
39110
39188
  headerName: 'backoffice.idmCatalog.general.label.depthY',
39111
39189
  field: 'depthY',
39112
39190
  cellDataType: 'enum',
39191
+ required: true,
39113
39192
  customParams: {
39114
39193
  enumData: priceDependent,
39115
39194
  displayLabelTemplate: '${name} (${value})'
@@ -39118,6 +39197,7 @@ var TableCatalogs = observer(function () {
39118
39197
  headerName: 'backoffice.idmCatalog.general.label.heightZ',
39119
39198
  field: 'heightZ',
39120
39199
  cellDataType: 'enum',
39200
+ required: true,
39121
39201
  customParams: {
39122
39202
  enumData: priceDependent,
39123
39203
  displayLabelTemplate: '${name} (${value})'
@@ -39126,6 +39206,7 @@ var TableCatalogs = observer(function () {
39126
39206
  headerName: 'backoffice.idmCatalog.general.label.basicUnit',
39127
39207
  field: 'basicUnit',
39128
39208
  cellDataType: 'enum',
39209
+ required: true,
39129
39210
  customParams: {
39130
39211
  enumData: unit,
39131
39212
  displayLabelTemplate: '${name} (${value})'
@@ -39134,6 +39215,7 @@ var TableCatalogs = observer(function () {
39134
39215
  headerName: 'backoffice.idmCatalog.general.label.roundingUnit',
39135
39216
  field: 'roundingUnit',
39136
39217
  cellDataType: 'enum',
39218
+ required: true,
39137
39219
  customParams: {
39138
39220
  enumData: unit,
39139
39221
  displayLabelTemplate: '${name} (${value})'
@@ -39142,6 +39224,7 @@ var TableCatalogs = observer(function () {
39142
39224
  headerName: 'backoffice.idmCatalog.general.label.roundingType',
39143
39225
  field: 'roundingType',
39144
39226
  cellDataType: 'enum',
39227
+ required: true,
39145
39228
  customParams: {
39146
39229
  enumData: roundingType,
39147
39230
  displayLabelTemplate: '${name} (${value})'
@@ -39149,7 +39232,8 @@ var TableCatalogs = observer(function () {
39149
39232
  }, {
39150
39233
  headerName: 'backoffice.idmCatalog.general.label.basicPriceDependent',
39151
39234
  field: 'basicPriceDependent',
39152
- cellDataType: 'boolean'
39235
+ cellDataType: 'boolean',
39236
+ required: true
39153
39237
  }, {
39154
39238
  headerName: 'backoffice.idmCatalog.general.label.priceTypeFormula',
39155
39239
  field: 'priceTypeFormula'
@@ -40390,7 +40474,7 @@ var TableSeries = observer(function () {
40390
40474
  });
40391
40475
  });
40392
40476
 
40393
- var Features$1 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
40477
+ var Features$2 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
40394
40478
  var organizationId = _ref.organizationId,
40395
40479
  selectedCatalog = _ref.selectedCatalog,
40396
40480
  featureClassId = _ref.featureClassId,
@@ -40464,7 +40548,7 @@ var Features$1 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
40464
40548
  displayLabelTemplate: '${value}',
40465
40549
  lookupLabelTemplate: '${name} (${value})',
40466
40550
  apiInterface: {
40467
- read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
40551
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/allfeatures'
40468
40552
  },
40469
40553
  lookupKey: 'featureNo',
40470
40554
  lookupValue: 'featureText',
@@ -40582,7 +40666,7 @@ var Features$1 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
40582
40666
  }, featureClassId ? featureClassId : 'features');
40583
40667
  });
40584
40668
 
40585
- function Features(_ref) {
40669
+ function Features$1(_ref) {
40586
40670
  var readOnly = _ref.readOnly;
40587
40671
  var _useTranslation = useTranslation();
40588
40672
  _useTranslation.t;
@@ -40646,7 +40730,7 @@ function Features(_ref) {
40646
40730
  }, 'features');
40647
40731
  }
40648
40732
 
40649
- var TableFeatures$1 = observer(function () {
40733
+ var TableFeatures$2 = observer(function () {
40650
40734
  var _useDivaCore = useDivaCore(),
40651
40735
  jwt = _useDivaCore.state.jwt;
40652
40736
  var _useTranslation = useTranslation(),
@@ -40665,7 +40749,7 @@ var TableFeatures$1 = observer(function () {
40665
40749
  conditionalTools: [{
40666
40750
  id: 'globalfeatures',
40667
40751
  name: t('backoffice.menu.features.label.IDMGlobalFeatures'),
40668
- elementComponent: Features,
40752
+ elementComponent: Features$1,
40669
40753
  elementProps: {
40670
40754
  readOnly: true
40671
40755
  },
@@ -40746,7 +40830,7 @@ var TableFeatures$1 = observer(function () {
40746
40830
  })]
40747
40831
  })]
40748
40832
  })
40749
- }), selectedCatalog && /*#__PURE__*/jsx(Features$1, {
40833
+ }), selectedCatalog && /*#__PURE__*/jsx(Features$2, {
40750
40834
  organizationId: organizationId,
40751
40835
  selectedCatalog: selectedCatalog,
40752
40836
  hooks: hooks,
@@ -40756,7 +40840,7 @@ var TableFeatures$1 = observer(function () {
40756
40840
  });
40757
40841
  });
40758
40842
 
40759
- var Options = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
40843
+ var Options$1 = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
40760
40844
  var organizationId = _ref.organizationId,
40761
40845
  selectedCatalog = _ref.selectedCatalog,
40762
40846
  apiConfig = _ref.apiConfig,
@@ -40920,7 +41004,7 @@ var Options = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
40920
41004
  });
40921
41005
  });
40922
41006
 
40923
- var TableOptions = observer(function () {
41007
+ var TableOptions$1 = observer(function () {
40924
41008
  var _selectedCatalog$name;
40925
41009
  var _useTranslation = useTranslation(),
40926
41010
  t = _useTranslation.t;
@@ -40991,7 +41075,7 @@ var TableOptions = observer(function () {
40991
41075
  })]
40992
41076
  })]
40993
41077
  })
40994
- }), selectedCatalog && /*#__PURE__*/jsx(Options, {
41078
+ }), selectedCatalog && /*#__PURE__*/jsx(Options$1, {
40995
41079
  organizationId: organizationId,
40996
41080
  selectedCatalog: selectedCatalog,
40997
41081
  hooks: hooks,
@@ -41022,7 +41106,7 @@ var TableFeatureClasses = observer(function () {
41022
41106
  conditionalTools: [{
41023
41107
  id: 'features',
41024
41108
  name: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
41025
- elementComponent: Features$1,
41109
+ elementComponent: Features$2,
41026
41110
  elementProps: {
41027
41111
  organizationId: organizationId,
41028
41112
  selectedCatalog: selectedCatalog,
@@ -41708,7 +41792,7 @@ function OptionCombinations(_ref) {
41708
41792
  editorElementProps: {
41709
41793
  nameField: 'featureRefsDisplayTexts',
41710
41794
  apiInterface: {
41711
- read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
41795
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/allfeatures'
41712
41796
  },
41713
41797
  filter: function filter(_, lookupData) {
41714
41798
  var _decision$featureRefs8;
@@ -41733,10 +41817,31 @@ function OptionCombinations(_ref) {
41733
41817
  },
41734
41818
  defaultValue: []
41735
41819
  }] : decision.decisionType == 3 ? [{
41736
- headerName: 'backoffice.idmCatalog.optionCombinations.label.actions',
41820
+ headerName: 'backoffice.idmCatalog.optionCombinations.label.setPosCountValue',
41737
41821
  field: 'actions',
41738
- cellDataType: 'array',
41739
- defaultValue: []
41822
+ cellDataType: 'number',
41823
+ required: true,
41824
+ customParams: {
41825
+ useParser: true,
41826
+ useFormatter: true
41827
+ },
41828
+ valueFormatter: function valueFormatter(_ref2) {
41829
+ _ref2.data;
41830
+ var value = _ref2.value;
41831
+ if (Array.isArray(value)) {
41832
+ var action = value === null || value === void 0 ? void 0 : value.find(function (action) {
41833
+ return action.startsWith('SET_POS_COUNT_VALUE');
41834
+ });
41835
+ return action ? Number(action.split(':')[1]) : undefined;
41836
+ }
41837
+ return value;
41838
+ },
41839
+ valueParser: function valueParser(_ref3) {
41840
+ var newValue = _ref3.newValue;
41841
+ if (newValue == '') return undefined;
41842
+ return ["SET_POS_COUNT_VALUE:".concat(newValue)];
41843
+ },
41844
+ additionalFields: ['projectActions']
41740
41845
  }] : []), [{
41741
41846
  headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
41742
41847
  field: 'sequence',
@@ -41764,13 +41869,6 @@ function OptionCombinations(_ref) {
41764
41869
  field: '_id',
41765
41870
  editable: false,
41766
41871
  cellDataType: 'objectId'
41767
- }, {
41768
- field: 'organizationId',
41769
- editable: false,
41770
- hide: true,
41771
- lockVisible: true,
41772
- suppressColumnsToolPanel: true,
41773
- defaultValue: '${organizationId}'
41774
41872
  }, {
41775
41873
  field: 'catalogId',
41776
41874
  editable: false,
@@ -41927,7 +42025,7 @@ var TableDecisions = observer(function () {
41927
42025
  nameField: 'featureRefsDisplayTexts',
41928
42026
  displayLabelTemplate: '${name} (${value})',
41929
42027
  apiInterface: {
41930
- read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
42028
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/allfeatures'
41931
42029
  },
41932
42030
  lookupValue: 'featureText',
41933
42031
  lookupKey: 'featureNo',
@@ -42246,6 +42344,7 @@ function PartlistPos(_ref) {
42246
42344
  cellDataType: 'number'
42247
42345
  }, {
42248
42346
  field: 'itemRefSerieNo',
42347
+ required: true,
42249
42348
  headerName: 'backoffice.idmCatalog.partlistpos.label.itemRefSerieNo',
42250
42349
  cellDataType: 'lookup',
42251
42350
  editable: true,
@@ -42273,6 +42372,7 @@ function PartlistPos(_ref) {
42273
42372
  isDictionary: true
42274
42373
  }, {
42275
42374
  field: 'itemRefTypeNo',
42375
+ required: true,
42276
42376
  headerName: 'backoffice.idmCatalog.partlistpos.label.itemRefTypeNo',
42277
42377
  cellDataType: 'lookup',
42278
42378
  customParams: {
@@ -42289,8 +42389,9 @@ function PartlistPos(_ref) {
42289
42389
  additionalFields: ['itemRefTypeNoDisplayText'],
42290
42390
  isDictionary: true,
42291
42391
  editable: function editable(_ref2) {
42292
- var data = _ref2.data;
42293
- return !!data.itemRefSerieNo;
42392
+ var data = _ref2.data,
42393
+ context = _ref2.context;
42394
+ return (context === null || context === void 0 ? void 0 : context.isPasting) || !!data.itemRefSerieNo;
42294
42395
  }
42295
42396
  }, {
42296
42397
  field: 'decisions',
@@ -42679,7 +42780,7 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
42679
42780
  editorElementProps: {
42680
42781
  nameField: 'featureNosDisplayTexts',
42681
42782
  apiInterface: {
42682
- read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
42783
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/allfeatures'
42683
42784
  },
42684
42785
  filter: function filter(_, lookupData) {
42685
42786
  var _priceFeatureGroup$fe7;
@@ -42866,7 +42967,7 @@ function PriceFeatureGroupFinishes(_ref) {
42866
42967
  editorElementProps: {
42867
42968
  nameField: 'featureNosDisplayTexts',
42868
42969
  apiInterface: {
42869
- read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
42970
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/allfeatures'
42870
42971
  },
42871
42972
  filter: function filter(_, lookupData) {
42872
42973
  var _priceFeatureGroup$fe7;
@@ -43220,6 +43321,7 @@ var TablePrices = observer(function () {
43220
43321
  cellDataType: 'lookup',
43221
43322
  customParams: {
43222
43323
  nameField: 'typeNo',
43324
+ filterCellType: 'objectId',
43223
43325
  displayLabelTemplate: '${name} (${value})',
43224
43326
  apiInterface: {
43225
43327
  read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${serieId}/items'
@@ -43227,7 +43329,7 @@ var TablePrices = observer(function () {
43227
43329
  lookupValue: 'typeNo',
43228
43330
  lookupKey: '_id',
43229
43331
  multiple: false,
43230
- translated: true
43332
+ translated: false
43231
43333
  },
43232
43334
  additionalFields: ['typeNo'],
43233
43335
  editable: false
@@ -43350,7 +43452,8 @@ function Items(_ref) {
43350
43452
  create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/optiongroups/${selectedOptionGroup}/options',
43351
43453
  restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/optiongroups/${selectedOptionGroup}/options/${optionKey}',
43352
43454
  "delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/optiongroups/${selectedOptionGroup}/options/${optionKey}',
43353
- update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/optiongroups/${selectedOptionGroup}/options/${optionKey}'
43455
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/optiongroups/${selectedOptionGroup}/options/${optionKey}',
43456
+ bulk: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/optiongroups/${selectedOptionGroup}/options/bulk'
43354
43457
  },
43355
43458
  dateFormat: 'DD.MM.YYYY, HH:mm:ss',
43356
43459
  floatingFilter: true,
@@ -43508,10 +43611,10 @@ function IDMCatalogEditor (_ref) {
43508
43611
  display: 'flex',
43509
43612
  flexDirection: 'column'
43510
43613
  },
43511
- children: /*#__PURE__*/jsx(Content$4, {})
43614
+ children: /*#__PURE__*/jsx(Content$6, {})
43512
43615
  });
43513
43616
  }
43514
- function Content$4() {
43617
+ function Content$6() {
43515
43618
  return /*#__PURE__*/jsxs(Routes, {
43516
43619
  children: [/*#__PURE__*/jsx(Route, {
43517
43620
  index: true,
@@ -43524,10 +43627,10 @@ function Content$4() {
43524
43627
  element: /*#__PURE__*/jsx(TableItems, {})
43525
43628
  }), /*#__PURE__*/jsx(Route, {
43526
43629
  path: ":catalogId/features",
43527
- element: /*#__PURE__*/jsx(TableFeatures$1, {})
43630
+ element: /*#__PURE__*/jsx(TableFeatures$2, {})
43528
43631
  }), /*#__PURE__*/jsx(Route, {
43529
43632
  path: ":catalogId/options",
43530
- element: /*#__PURE__*/jsx(TableOptions, {})
43633
+ element: /*#__PURE__*/jsx(TableOptions$1, {})
43531
43634
  }), /*#__PURE__*/jsx(Route, {
43532
43635
  path: ":catalogId/optiongroups",
43533
43636
  element: /*#__PURE__*/jsx(TableOptionGroups, {})
@@ -43617,15 +43720,16 @@ function CollectionMembers(_ref) {
43617
43720
  headerName: 'backoffice.idmCatalogEditor.collectionmembers.label.serieNos',
43618
43721
  cellDataType: 'lookup',
43619
43722
  editable: function editable(_ref2) {
43620
- var data = _ref2.data;
43621
- return data.enricherPackageId;
43723
+ var data = _ref2.data,
43724
+ context = _ref2.context;
43725
+ return (context === null || context === void 0 ? void 0 : context.isPasting) || !!data.enricherPackageId;
43622
43726
  },
43623
43727
  customParams: {
43624
43728
  nameField: 'serieNosDisplayTexts',
43625
43729
  filterCellType: 'number',
43626
43730
  displayLabelTemplate: '${name} (${value})',
43627
43731
  apiInterface: {
43628
- read: apiConfig.enricherService + '/packages/${enricherPackageId}/lookup/series'
43732
+ read: apiConfig.enricherService + '/live/v3.0/catalogs/${__diva_context.additionalData.published.' + organizationId + '.liveCatalogId}/series'
43629
43733
  },
43630
43734
  lookupValue: 'seriesName',
43631
43735
  lookupKey: 'serieNo',
@@ -43835,10 +43939,10 @@ function IDMCollectionEditor(_ref) {
43835
43939
  display: 'flex',
43836
43940
  flexDirection: 'column'
43837
43941
  },
43838
- children: /*#__PURE__*/jsx(Content$3, {})
43942
+ children: /*#__PURE__*/jsx(Content$5, {})
43839
43943
  });
43840
43944
  }
43841
- function Content$3() {
43945
+ function Content$5() {
43842
43946
  return /*#__PURE__*/jsx(Routes, {
43843
43947
  children: /*#__PURE__*/jsx(Route, {
43844
43948
  index: true,
@@ -43848,9 +43952,174 @@ function Content$3() {
43848
43952
  });
43849
43953
  }
43850
43954
 
43955
+ var TableFeatures$1 = observer(function () {
43956
+ var _useTranslation = useTranslation(),
43957
+ t = _useTranslation.t;
43958
+ return /*#__PURE__*/jsxs(Fragment, {
43959
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
43960
+ title: /*#__PURE__*/jsx("div", {
43961
+ children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures')
43962
+ })
43963
+ }), /*#__PURE__*/jsx(Features$1, {})]
43964
+ });
43965
+ });
43966
+
43967
+ function IDMFeaturesEditor(_ref) {
43968
+ _objectDestructuringEmpty(_ref);
43969
+ return /*#__PURE__*/jsx("div", {
43970
+ style: {
43971
+ height: '85vh',
43972
+ display: 'flex',
43973
+ flexDirection: 'column'
43974
+ },
43975
+ children: /*#__PURE__*/jsx(Content$4, {})
43976
+ });
43977
+ }
43978
+ function Content$4() {
43979
+ return /*#__PURE__*/jsx(Routes, {
43980
+ children: /*#__PURE__*/jsx(Route, {
43981
+ index: true,
43982
+ path: "",
43983
+ element: /*#__PURE__*/jsx(TableFeatures$1, {})
43984
+ })
43985
+ });
43986
+ }
43987
+
43988
+ function Features(_ref) {
43989
+ var readOnly = _ref.readOnly;
43990
+ var root = useStore();
43991
+ var apiConfig = root.configurationStore.apiConfig;
43992
+ var organizationId = root.dataStore.organizationId;
43993
+ var applicationData = useMemo(function () {
43994
+ return {
43995
+ organizationId: organizationId
43996
+ };
43997
+ }, [organizationId]);
43998
+ var _useTranslation = useTranslation(),
43999
+ t = _useTranslation.t;
44000
+ var configuration = useMemo(function () {
44001
+ var _root$dataStore$curre;
44002
+ var headerPosVariationType = [{
44003
+ name: t('backoffice.idmCatalog.features.label.vt.I'),
44004
+ value: 'I'
44005
+ }, {
44006
+ name: t('backoffice.idmCatalog.features.label.vt.K'),
44007
+ value: 'K'
44008
+ }, {
44009
+ name: t('backoffice.idmCatalog.features.label.vt.P'),
44010
+ value: 'P'
44011
+ }];
44012
+ var featureT = [{
44013
+ name: t('backoffice.idmCatalog.features.label.featureTDic.M'),
44014
+ value: 'M'
44015
+ }, {
44016
+ name: t('backoffice.idmCatalog.features.label.featureTDic.C'),
44017
+ value: 'C'
44018
+ }, {
44019
+ name: t('backoffice.idmCatalog.features.label.featureTDic.O'),
44020
+ value: 'O'
44021
+ }];
44022
+ return {
44023
+ type: 'dotnetSSM',
44024
+ apiInterface: {
44025
+ read: apiConfig.idmService + '/v3.0/${organizationId}/features',
44026
+ create: readOnly ? undefined : apiConfig.idmService + '/v3.0/${organizationId}/features',
44027
+ restore: readOnly ? undefined : apiConfig.idmService + '/v3.0/${organizationId}/features/${_id}/restore',
44028
+ "delete": readOnly ? undefined : apiConfig.idmService + '/v3.0/${organizationId}/features/${_id}',
44029
+ update: readOnly ? undefined : apiConfig.idmService + '/v3.0/${organizationId}/features/${_id}',
44030
+ bulk: readOnly ? undefined : apiConfig.idmService + '/v3.0/${organizationId}/features/bulk'
44031
+ },
44032
+ dateFormat: 'DD.MM.YYYY, HH:mm:ss',
44033
+ colDef: [{
44034
+ field: 'featureNo',
44035
+ headerName: 'backoffice.idmCatalog.features.label.featureNo',
44036
+ required: true,
44037
+ unique: true
44038
+ }, createTranslatedColumnConfig('featureText', 'backoffice.idmCatalog.features.label.featureText', (_root$dataStore$curre = root.dataStore.currentOrganization) === null || _root$dataStore$curre === void 0 ? void 0 : _root$dataStore$curre.settings.languages, true), {
44039
+ field: 'sequenceNo',
44040
+ headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
44041
+ required: true,
44042
+ cellDataType: 'number'
44043
+ }, {
44044
+ field: 'headerPosVariationType',
44045
+ headerName: 'backoffice.idmCatalog.features.label.headerPosVariationType',
44046
+ required: true,
44047
+ cellDataType: 'enum',
44048
+ customParams: {
44049
+ enumData: headerPosVariationType,
44050
+ displayLabelTemplate: '${name} (${value})'
44051
+ }
44052
+ }, {
44053
+ field: 'featureT',
44054
+ headerName: 'backoffice.idmCatalog.features.label.featureT',
44055
+ cellDataType: 'enum',
44056
+ customParams: {
44057
+ enumData: featureT,
44058
+ displayLabelTemplate: '${name} (${value})'
44059
+ }
44060
+ }, {
44061
+ field: 'measureUnit',
44062
+ headerName: 'backoffice.idmCatalog.features.label.measureUnit'
44063
+ }, {
44064
+ field: 'measureParameter',
44065
+ headerName: 'backoffice.idmCatalog.features.label.measureParameter'
44066
+ }, {
44067
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
44068
+ field: 'lastUpdatedDate',
44069
+ cellDataType: 'dateString',
44070
+ editable: false
44071
+ }, {
44072
+ headerName: 'backoffice.idmCatalog.general.label.createdDate',
44073
+ field: 'createdDate',
44074
+ cellDataType: 'dateString',
44075
+ editable: false
44076
+ }, {
44077
+ headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
44078
+ field: 'createdByDisplayText',
44079
+ editable: false
44080
+ }, {
44081
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
44082
+ field: 'lastUpdatedByDisplayText',
44083
+ editable: false
44084
+ }, {
44085
+ headerName: 'backoffice.idmCatalog.general.label._id',
44086
+ field: '_id',
44087
+ editable: false,
44088
+ cellDataType: 'objectId'
44089
+ }, {
44090
+ field: 'organizationId',
44091
+ editable: false,
44092
+ hide: true,
44093
+ lockVisible: true,
44094
+ suppressColumnsToolPanel: true,
44095
+ defaultValue: '${organizationId}'
44096
+ }]
44097
+ };
44098
+ }, []);
44099
+ return /*#__PURE__*/jsx(Spreadsheet, {
44100
+ gridId: 'crud-grid_global_features',
44101
+ applicationData: applicationData,
44102
+ configuration: configuration
44103
+ }, 'features');
44104
+ }
44105
+
43851
44106
  var TableFeatures = observer(function () {
43852
44107
  var _useTranslation = useTranslation(),
43853
44108
  t = _useTranslation.t;
44109
+ useTools({
44110
+ conditionalTools: [{
44111
+ id: 'globalfeatures',
44112
+ name: t('backoffice.menu.features.label.IDMGlobalFeatures'),
44113
+ elementComponent: Features$1,
44114
+ elementProps: {
44115
+ readOnly: true
44116
+ },
44117
+ where: 'right',
44118
+ condition: function condition() {
44119
+ return true;
44120
+ }
44121
+ }]
44122
+ });
43854
44123
  return /*#__PURE__*/jsxs(Fragment, {
43855
44124
  children: [/*#__PURE__*/jsx(Descriptions$1, {
43856
44125
  title: /*#__PURE__*/jsx("div", {
@@ -43860,7 +44129,196 @@ var TableFeatures = observer(function () {
43860
44129
  });
43861
44130
  });
43862
44131
 
43863
- function IDMFeaturesEditor(_ref) {
44132
+ function IDMOrganizationFeaturesEditor(_ref) {
44133
+ _objectDestructuringEmpty(_ref);
44134
+ return /*#__PURE__*/jsx("div", {
44135
+ style: {
44136
+ height: '85vh',
44137
+ display: 'flex',
44138
+ flexDirection: 'column'
44139
+ },
44140
+ children: /*#__PURE__*/jsx(Content$3, {})
44141
+ });
44142
+ }
44143
+ function Content$3() {
44144
+ return /*#__PURE__*/jsx(Routes, {
44145
+ children: /*#__PURE__*/jsx(Route, {
44146
+ index: true,
44147
+ path: "",
44148
+ element: /*#__PURE__*/jsx(TableFeatures, {})
44149
+ })
44150
+ });
44151
+ }
44152
+
44153
+ function Options(_ref) {
44154
+ var _root$dataStore$curre;
44155
+ var readOnly = _ref.readOnly;
44156
+ var root = useStore();
44157
+ var apiConfig = root.configurationStore.apiConfig;
44158
+ var organizationId = root.dataStore.organizationId;
44159
+ var languages = (_root$dataStore$curre = root.dataStore.currentOrganization) === null || _root$dataStore$curre === void 0 ? void 0 : _root$dataStore$curre.settings.languages;
44160
+ var applicationData = useMemo(function () {
44161
+ return {
44162
+ organizationId: organizationId
44163
+ };
44164
+ }, [organizationId]);
44165
+ var _useTranslation = useTranslation();
44166
+ _useTranslation.t;
44167
+ var configuration = useMemo(function () {
44168
+ return {
44169
+ type: 'dotnetSSM',
44170
+ apiInterface: {
44171
+ read: apiConfig.idmService + '/v3.0/${organizationId}/options',
44172
+ create: readOnly ? undefined : apiConfig.idmService + '/v3.0/${organizationId}/options',
44173
+ restore: readOnly ? undefined : apiConfig.idmService + '/v3.0/${organizationId}/options/${_id}/restore',
44174
+ "delete": readOnly ? undefined : apiConfig.idmService + '/v3.0/${organizationId}/options/${_id}',
44175
+ update: readOnly ? undefined : apiConfig.idmService + '/v3.0/${organizationId}/options/${_id}',
44176
+ bulk: readOnly ? undefined : apiConfig.idmService + '/v3.0/${organizationId}/options/bulk'
44177
+ },
44178
+ dateFormat: 'DD.MM.YYYY, HH:mm:ss',
44179
+ colDef: [{
44180
+ field: 'optionKey',
44181
+ required: true
44182
+ }, {
44183
+ headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
44184
+ field: 'sequenceNo',
44185
+ cellDataType: 'number'
44186
+ }, createTranslatedColumnConfig('optionText', 'backoffice.idmCatalog.options.label.optionText', languages, true), createTranslatedColumnConfig('optionCommentText', 'backoffice.idmCatalog.options.label.optionCommentText', languages), {
44187
+ headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
44188
+ field: 'optionFreeText',
44189
+ cellDataType: 'boolean'
44190
+ }, {
44191
+ field: 'featureNos',
44192
+ headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
44193
+ cellDataType: 'lookup',
44194
+ editable: true,
44195
+ required: false,
44196
+ customParams: {
44197
+ nameField: 'featureIdsDisplayTexts',
44198
+ filterCellType: 'number',
44199
+ displayLabelTemplate: '${name} (${value})',
44200
+ apiInterface: {
44201
+ read: apiConfig.idmService + '/v3.0/${organizationId}/features'
44202
+ },
44203
+ lookupValue: 'featureText',
44204
+ lookupKey: 'featureNo',
44205
+ lookupKeyFilterType: {
44206
+ type: 'equals',
44207
+ filterType: 'number'
44208
+ },
44209
+ additionalMappings: [{
44210
+ lookupField: '_id',
44211
+ targetField: 'featureIds'
44212
+ }],
44213
+ multiple: true,
44214
+ translated: true
44215
+ },
44216
+ additionalFields: ['featureIdsDisplayTexts', 'featureIds'],
44217
+ isDictionary: true
44218
+ }, {
44219
+ headerName: 'backoffice.idmCatalog.items.label.validation',
44220
+ children: [{
44221
+ headerName: 'backoffice.idmCatalog.general.label.validFromDate',
44222
+ field: 'validFromDate',
44223
+ cellDataType: 'dateString',
44224
+ customParams: {
44225
+ dateFormat: 'DD.MM.YYYY'
44226
+ }
44227
+ }, {
44228
+ headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
44229
+ field: 'validUntilDate',
44230
+ cellDataType: 'dateString',
44231
+ customParams: {
44232
+ dateFormat: 'DD.MM.YYYY'
44233
+ }
44234
+ }]
44235
+ }, {
44236
+ headerName: 'backoffice.idmCatalog.options.label.material',
44237
+ children: [{
44238
+ headerName: 'backoffice.idmCatalog.options.label.materialNo',
44239
+ field: 'materialNo',
44240
+ editable: false
44241
+ }, {
44242
+ headerName: 'backoffice.idmCatalog.options.label.materialColorR',
44243
+ field: 'materialColorR',
44244
+ cellDataType: 'number'
44245
+ }, {
44246
+ headerName: 'backoffice.idmCatalog.options.label.materialColorG',
44247
+ field: 'materialColorG',
44248
+ cellDataType: 'number'
44249
+ }, {
44250
+ headerName: 'backoffice.idmCatalog.options.label.materialColorB',
44251
+ field: 'materialColorB',
44252
+ cellDataType: 'number'
44253
+ }]
44254
+ }, {
44255
+ headerName: 'backoffice.idmCatalog.options.label.measurement',
44256
+ children: [{
44257
+ headerName: 'backoffice.idmCatalog.options.label.measureNo',
44258
+ field: 'measureNo',
44259
+ cellDataType: 'number',
44260
+ editable: false
44261
+ }, {
44262
+ headerName: 'backoffice.idmCatalog.options.label.measureValue',
44263
+ field: 'measureValue',
44264
+ cellDataType: 'number'
44265
+ }, {
44266
+ headerName: 'backoffice.idmCatalog.options.label.measureUnit',
44267
+ field: 'measureUnit'
44268
+ }]
44269
+ }, {
44270
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
44271
+ field: 'lastUpdatedDate',
44272
+ cellDataType: 'dateString',
44273
+ editable: false
44274
+ }, {
44275
+ headerName: 'backoffice.idmCatalog.general.label.createdDate',
44276
+ field: 'createdDate',
44277
+ cellDataType: 'dateString',
44278
+ editable: false
44279
+ }, {
44280
+ headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
44281
+ field: 'createdByDisplayText',
44282
+ editable: false
44283
+ }, {
44284
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
44285
+ field: 'lastUpdatedByDisplayText',
44286
+ editable: false
44287
+ }, {
44288
+ headerName: 'backoffice.idmCatalog.general.label._id',
44289
+ field: '_id',
44290
+ editable: false,
44291
+ cellDataType: 'objectId'
44292
+ }, {
44293
+ field: 'organizationId',
44294
+ editable: false,
44295
+ hide: true,
44296
+ lockVisible: true,
44297
+ suppressColumnsToolPanel: true,
44298
+ defaultValue: '${organizationId}'
44299
+ }]
44300
+ };
44301
+ }, []);
44302
+ return /*#__PURE__*/jsx(Spreadsheet, {
44303
+ gridId: 'crud-grid_global_features',
44304
+ applicationData: applicationData,
44305
+ configuration: configuration
44306
+ }, 'features');
44307
+ }
44308
+
44309
+ var TableOptions = observer(function () {
44310
+ var _useTranslation = useTranslation(),
44311
+ t = _useTranslation.t;
44312
+ return /*#__PURE__*/jsxs(Fragment, {
44313
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
44314
+ title: /*#__PURE__*/jsx("div", {
44315
+ children: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions')
44316
+ })
44317
+ }), /*#__PURE__*/jsx(Options, {})]
44318
+ });
44319
+ });
44320
+
44321
+ function IDMOrganizationOptionsEditor(_ref) {
43864
44322
  _objectDestructuringEmpty(_ref);
43865
44323
  return /*#__PURE__*/jsx("div", {
43866
44324
  style: {
@@ -43876,7 +44334,7 @@ function Content$2() {
43876
44334
  children: /*#__PURE__*/jsx(Route, {
43877
44335
  index: true,
43878
44336
  path: "",
43879
- element: /*#__PURE__*/jsx(TableFeatures, {})
44337
+ element: /*#__PURE__*/jsx(TableOptions, {})
43880
44338
  })
43881
44339
  });
43882
44340
  }
@@ -44438,6 +44896,12 @@ var ContentCard = observer(function (_ref3) {
44438
44896
  }, configId), configuration.type == 'IDMFeaturesEditor' && /*#__PURE__*/jsx(IDMFeaturesEditor, {
44439
44897
  configuration: configuration,
44440
44898
  id: configId
44899
+ }, configId), configuration.type == 'IDMOrganizationFeaturesEditor' && /*#__PURE__*/jsx(IDMOrganizationFeaturesEditor, {
44900
+ configuration: configuration,
44901
+ id: configId
44902
+ }, configId), configuration.type == 'IDMOrganizationOptionsEditor' && /*#__PURE__*/jsx(IDMOrganizationOptionsEditor, {
44903
+ configuration: configuration,
44904
+ id: configId
44441
44905
  }, configId), configuration.type == 'MediaTable' && /*#__PURE__*/jsx(MediaTable, {
44442
44906
  configuration: configuration,
44443
44907
  id: configId