@crystaldesign/diva-backoffice 25.1.0-beta.31 → 25.1.0-beta.33

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.
@@ -30317,6 +30317,16 @@ function useModule$1 (currentModules) {
30317
30317
  to: 'catalogs/idmeditor/packages/' + packageId + '/properties' + (searchParams ? '?' + searchParams.toString() : ''),
30318
30318
  children: t('backoffice.menu.items.label.IDMEnricherEditorTableProperties')
30319
30319
  })
30320
+ }, {
30321
+ key: 'partlistpos',
30322
+ style: {
30323
+ margin: 0
30324
+ },
30325
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30326
+ label: /*#__PURE__*/jsx(Link, {
30327
+ to: 'catalogs/idmeditor/packages/' + packageId + '/partlistpos' + (searchParams ? '?' + searchParams.toString() : ''),
30328
+ children: t('backoffice.menu.partlistpos.label.IDMEnricherEditorTablePartlistPos')
30329
+ })
30320
30330
  }, {
30321
30331
  key: 'groups',
30322
30332
  style: {
@@ -32257,6 +32267,228 @@ function TableTabGroups () {
32257
32267
  });
32258
32268
  }
32259
32269
 
32270
+ function TablePartlistPos () {
32271
+ var _useTranslation = useTranslation(),
32272
+ t = _useTranslation.t;
32273
+ var _useModule = useModule$1(['epartlistpos']),
32274
+ packageId = _useModule.packageId,
32275
+ organizationId = _useModule.organizationId,
32276
+ updateNavigation = _useModule.updateNavigation,
32277
+ apiConfig = _useModule.apiConfig;
32278
+ var posInvisibility = [{
32279
+ name: t('backoffice.idmCatalogEditor.partlistpos.label.pi0'),
32280
+ value: '0'
32281
+ }, {
32282
+ name: t('backoffice.idmCatalogEditor.partlistpos.label.pi1'),
32283
+ value: '1'
32284
+ }, {
32285
+ name: t('backoffice.idmCatalogEditor.partlistpos.label.pi2'),
32286
+ value: '2'
32287
+ }];
32288
+ var applicationData = useMemo(function () {
32289
+ return {
32290
+ packageId: packageId,
32291
+ organizationId: organizationId
32292
+ };
32293
+ }, [packageId, organizationId]);
32294
+ return /*#__PURE__*/jsxs(Fragment, {
32295
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
32296
+ title: /*#__PURE__*/jsxs("div", {
32297
+ children: [t('backoffice.menu.items.label.IDMEnricherEditorTablePartlistPos'), /*#__PURE__*/jsx(Space$1, {
32298
+ style: {
32299
+ "float": 'right'
32300
+ },
32301
+ children: /*#__PURE__*/jsx(PackageSelector, {
32302
+ organizationId: organizationId,
32303
+ selectedPackage: packageId,
32304
+ setSelectedPackage: function setSelectedPackage(id) {
32305
+ return updateNavigation(id);
32306
+ },
32307
+ enricherService: apiConfig.enricherService
32308
+ })
32309
+ })]
32310
+ })
32311
+ }), /*#__PURE__*/jsx(Spreadsheet, {
32312
+ gridId: 'crud-grid_epartlistpos',
32313
+ applicationData: applicationData,
32314
+ configuration: {
32315
+ type: 'dotnetSSM',
32316
+ apiInterface: {
32317
+ //TODO: Es gibt globale Tabgroups, die vordefiniert sind und pro Enricher Paket nochmals angepasst werden können -endpoint anpassen?
32318
+ read: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
32319
+ create: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
32320
+ restore: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
32321
+ "delete": apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
32322
+ update: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}'
32323
+ },
32324
+ dateFormat: 'LL',
32325
+ floatingFilter: true,
32326
+ colDef: [{
32327
+ field: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
32328
+ cellDataType: 'string',
32329
+ editable: false
32330
+ }, {
32331
+ headerName: 'backoffice.idmEnricher.partlistpos.label.itemRefSerieNo',
32332
+ field: 'itemRefSerieNo',
32333
+ cellDataType: 'number',
32334
+ editable: false
32335
+ }, {
32336
+ headerName: 'backoffice.idmEnricher.properties.partlistpos.itemRefSerieNoDisplayText',
32337
+ marryChildren: true,
32338
+ editable: false,
32339
+ children: [{
32340
+ field: 'itemRefSerieNoDisplayText.DE',
32341
+ headerName: 'backoffice.idmEnricher.general.label.DE',
32342
+ isDictionary: true,
32343
+ editable: false
32344
+ }, {
32345
+ field: 'itemRefSerieNoDisplayText.EN',
32346
+ headerName: 'backoffice.idmEnricher.general.label.EN',
32347
+ isDictionary: true,
32348
+ editable: false
32349
+ }, {
32350
+ field: 'itemRefSerieNoDisplayText.FR',
32351
+ headerName: 'backoffice.idmEnricher.general.label.FR',
32352
+ isDictionary: true,
32353
+ editable: false
32354
+ }, {
32355
+ field: 'itemRefSerieNoDisplayText.IT',
32356
+ headerName: 'backoffice.idmEnricher.general.label.IT',
32357
+ isDictionary: true,
32358
+ editable: false
32359
+ }]
32360
+ }, {
32361
+ headerName: 'backoffice.idmEnricher.partlistpos.label.itemRefTypeNo',
32362
+ cellDataType: 'string',
32363
+ editable: false
32364
+ }, {
32365
+ headerName: 'backoffice.idmEnricher.properties.partlistpos.itemRefTypeNoDisplayText',
32366
+ marryChildren: true,
32367
+ editable: false,
32368
+ children: [{
32369
+ field: 'itemRefTypeNoDisplayText.DE',
32370
+ headerName: 'backoffice.idmEnricher.general.label.DE',
32371
+ isDictionary: true,
32372
+ editable: false
32373
+ }, {
32374
+ field: 'itemRefTypeNoDisplayText.EN',
32375
+ headerName: 'backoffice.idmEnricher.general.label.EN',
32376
+ isDictionary: true,
32377
+ editable: false
32378
+ }, {
32379
+ field: 'itemRefTypeNoDisplayText.FR',
32380
+ headerName: 'backoffice.idmEnricher.general.label.FR',
32381
+ isDictionary: true,
32382
+ editable: false
32383
+ }, {
32384
+ field: 'itemRefTypeNoDisplayText.IT',
32385
+ headerName: 'backoffice.idmEnricher.general.label.IT',
32386
+ isDictionary: true,
32387
+ editable: false
32388
+ }]
32389
+ }, {
32390
+ headerName: 'backoffice.idmEnricher.partlistpos.label.decisionPosCount',
32391
+ field: 'posCountValue',
32392
+ cellDataType: 'number',
32393
+ editable: false
32394
+ }, {
32395
+ headerName: 'backoffice.idmEnricher.partlistpos.label.decisionPosCountDisplayText',
32396
+ marryChildren: true,
32397
+ editable: false,
32398
+ children: [{
32399
+ field: 'decisionPosCountDisplayText.DE',
32400
+ headerName: 'backoffice.idmEnricher.general.label.DE',
32401
+ isDictionary: true,
32402
+ editable: false
32403
+ }, {
32404
+ field: 'decisionPosCountDisplayText.EN',
32405
+ headerName: 'backoffice.idmEnricher.general.label.EN',
32406
+ isDictionary: true,
32407
+ editable: false
32408
+ }, {
32409
+ field: 'decisionPosCountDisplayText.FR',
32410
+ headerName: 'backoffice.idmEnricher.general.label.FR',
32411
+ isDictionary: true,
32412
+ editable: false
32413
+ }, {
32414
+ field: 'decisionPosCountDisplayText.IT',
32415
+ headerName: 'backoffice.idmEnricher.general.label.IT',
32416
+ isDictionary: true,
32417
+ editable: false
32418
+ }]
32419
+ }, {
32420
+ field: 'decisions',
32421
+ headerName: 'backoffice.idmEnricher.partlistpos.label.decisions',
32422
+ cellDataType: 'lookup',
32423
+ editable: true,
32424
+ customParams: {
32425
+ nameField: 'decisionRefsDisplayTexts',
32426
+ filterCellType: 'number',
32427
+ displayLabelTemplate: '${name} (${value})',
32428
+ multiple: true,
32429
+ translated: true
32430
+ },
32431
+ additionalFields: ['decisionRefsDisplayTexts'],
32432
+ isDictionary: true
32433
+ }, {
32434
+ headerName: 'backoffice.idmEnricher.partlistpos.label.posCountValue',
32435
+ field: 'posCountValue',
32436
+ cellDataType: 'number',
32437
+ editable: false
32438
+ }, {
32439
+ headerName: 'backoffice.idmEnricher.general.partlistpos.label.posInvisibility',
32440
+ field: 'posInvisibility',
32441
+ cellDataType: 'enum',
32442
+ customParams: {
32443
+ enumData: posInvisibility,
32444
+ displayLabelTemplate: '${name} (${value})'
32445
+ },
32446
+ editable: false
32447
+ }, {
32448
+ headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
32449
+ field: 'retailPrefix',
32450
+ cellDataType: 'string',
32451
+ editable: true
32452
+ }, {
32453
+ headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
32454
+ field: 'retailArtilceNumber',
32455
+ cellDataType: 'string',
32456
+ editable: true
32457
+ }, {
32458
+ field: 'organizationId',
32459
+ cellDataType: 'string',
32460
+ editable: false,
32461
+ hide: true,
32462
+ defaultValue: '${organizationId}'
32463
+ }, {
32464
+ headerName: 'backoffice.idmEnricher.general.label.lastUpdatedDate',
32465
+ field: 'lastUpdatedDate',
32466
+ cellDataType: 'dateString',
32467
+ editable: false
32468
+ }, {
32469
+ headerName: 'backoffice.idmEnricher.general.label.createdDate',
32470
+ field: 'createdDate',
32471
+ cellDataType: 'dateString',
32472
+ editable: false
32473
+ }, {
32474
+ headerName: 'backoffice.idmEnricher.general.label.createdBy',
32475
+ field: 'createdByDisplayText',
32476
+ editable: false
32477
+ }, {
32478
+ headerName: 'backoffice.idmEnricher.general.label.lastUpdatedBy',
32479
+ field: 'lastUpdatedByDisplayText',
32480
+ editable: false
32481
+ }, {
32482
+ headerName: 'backoffice.idmEnricher.general.label._id',
32483
+ field: '_id',
32484
+ editable: false,
32485
+ cellDataType: 'objectId'
32486
+ }]
32487
+ }
32488
+ })]
32489
+ });
32490
+ }
32491
+
32260
32492
  function IDMEnricherEditor (_ref) {
32261
32493
  _objectDestructuringEmpty(_ref);
32262
32494
  return /*#__PURE__*/jsx("div", {
@@ -32298,6 +32530,9 @@ function Content$2() {
32298
32530
  }), /*#__PURE__*/jsx(Route, {
32299
32531
  path: ":packageId/properties",
32300
32532
  element: /*#__PURE__*/jsx(TableProperties, {})
32533
+ }), /*#__PURE__*/jsx(Route, {
32534
+ path: ":packageId/partlistpos",
32535
+ element: /*#__PURE__*/jsx(TablePartlistPos, {})
32301
32536
  }), /*#__PURE__*/jsx(Route, {
32302
32537
  path: ":packageId/groups",
32303
32538
  element: /*#__PURE__*/jsx(TableGroups, {})
@@ -33332,6 +33567,16 @@ function useModule (currentModules) {
33332
33567
  to: 'catalogs/idmeditor/catalogs/' + catalogId + '/detailinfos' + (searchParams ? '?' + searchParams.toString() : ''),
33333
33568
  children: t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos')
33334
33569
  })
33570
+ }, {
33571
+ key: 'partlists',
33572
+ style: {
33573
+ margin: 0
33574
+ },
33575
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
33576
+ label: /*#__PURE__*/jsx(Link, {
33577
+ to: 'catalogs/idmeditor/catalogs/' + catalogId + '/partlists' + (searchParams ? '?' + searchParams.toString() : ''),
33578
+ children: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists')
33579
+ })
33335
33580
  }];
33336
33581
  }, [catalogId]);
33337
33582
  if (!catalogId) throw new Error('catalogId is required');
@@ -34448,7 +34693,6 @@ function TableOptions () {
34448
34693
  }
34449
34694
 
34450
34695
  function TableFeatureClasses () {
34451
- var _root$contentStore$bo, _root$contentStore$ri;
34452
34696
  var _useTranslation = useTranslation(),
34453
34697
  t = _useTranslation.t;
34454
34698
  var root = useStore();
@@ -34594,10 +34838,7 @@ function TableFeatureClasses () {
34594
34838
  }, {
34595
34839
  field: 'featureRefs'
34596
34840
  }]
34597
- },
34598
- refSecondaryGrids: [(_root$contentStore$bo = root.contentStore.bottomToolBar.toolbarElement) !== null && _root$contentStore$bo !== void 0 ? _root$contentStore$bo : undefined, (_root$contentStore$ri = root.contentStore.rightToolBar.toolbarElement) !== null && _root$contentStore$ri !== void 0 ? _root$contentStore$ri : undefined].filter(function (element) {
34599
- return element !== undefined;
34600
- })
34841
+ }
34601
34842
  })]
34602
34843
  });
34603
34844
  }
@@ -34968,6 +35209,10 @@ function OptionCombinations(_ref8) {
34968
35209
  customParams: {
34969
35210
  expandedEditor: OptionCombinationsExpandedEditor
34970
35211
  }
35212
+ }] : decision.decisionType == 3 ? [{
35213
+ headerName: 'backoffice.idmCatalog.optionCombinations.label.actions',
35214
+ field: 'actions',
35215
+ cellDataType: 'text'
34971
35216
  }] : []), [{
34972
35217
  headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
34973
35218
  field: 'lastUpdatedDate',
@@ -35519,6 +35764,333 @@ function TableDetailInfos () {
35519
35764
  });
35520
35765
  }
35521
35766
 
35767
+ function PartlistPos(_ref) {
35768
+ var organizationId = _ref.organizationId,
35769
+ catalogId = _ref.catalogId,
35770
+ partlistId = _ref.partlistId,
35771
+ apiConfig = _ref.apiConfig,
35772
+ hooks = _ref.hooks;
35773
+ var _useTranslation = useTranslation(),
35774
+ t = _useTranslation.t;
35775
+ var visibility = [{
35776
+ name: t('backoffice.idmCatalog.partlistpos.label.visiblityDic.v0'),
35777
+ value: 0
35778
+ }, {
35779
+ name: t('backoffice.idmCatalog.partlistpos.label.visiblityDic.v1'),
35780
+ value: 1
35781
+ }];
35782
+ var applicationData = useMemo(function () {
35783
+ return {
35784
+ catalogId: catalogId,
35785
+ organizationId: organizationId,
35786
+ partlistId: partlistId
35787
+ };
35788
+ }, [catalogId, partlistId, organizationId]);
35789
+ var apiInterface = {
35790
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists/${partlistId}/partlistpos',
35791
+ create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists/${partlistId}/partlistpos',
35792
+ restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists/${partlistId}/partlistpos',
35793
+ "delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists/${partlistId}/partlistpos/${_id}',
35794
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists/${partlistId}/partlistpos/${_id}'
35795
+ };
35796
+ return /*#__PURE__*/jsx(Spreadsheet, {
35797
+ gridId: 'crud-grid_partlistpos',
35798
+ applicationData: applicationData,
35799
+ hooks: hooks,
35800
+ configuration: {
35801
+ type: 'dotnetSSM',
35802
+ apiInterface: apiInterface,
35803
+ dateFormat: 'LL',
35804
+ colDef: [{
35805
+ field: 'sequenceNo',
35806
+ headerName: 'backoffice.idmCatalog.partlistpos.label.sequenceNo',
35807
+ required: true,
35808
+ cellDataType: 'number'
35809
+ }, {
35810
+ field: 'itemRefSerieNo',
35811
+ headerName: 'backoffice.idmCatalog.partlistpos.label.itemRefSerieNo',
35812
+ cellDataType: 'lookup',
35813
+ editable: true,
35814
+ customParams: {
35815
+ filterCellType: 'number',
35816
+ nameField: 'itemRefSerieNoDisplayText',
35817
+ displayLabelTemplate: '${name} (${value})',
35818
+ apiInterface: {
35819
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series'
35820
+ },
35821
+ lookupValue: 'seriesName',
35822
+ lookupKey: 'serieNo',
35823
+ lookupKeyFilterType: {
35824
+ type: 'equals',
35825
+ filterType: 'number'
35826
+ },
35827
+ additionalMappings: [{
35828
+ lookupField: '_id',
35829
+ targetField: 'itemRefSerieId'
35830
+ }],
35831
+ multiple: false,
35832
+ translated: true
35833
+ },
35834
+ additionalFields: ['itemRefSerieNoDisplayText', 'itemRefSerieId'],
35835
+ isDictionary: true
35836
+ }, {
35837
+ field: 'itemRefTypeNo',
35838
+ headerName: 'backoffice.idmCatalog.partlistpos.label.itemRefTypeNo',
35839
+ cellDataType: 'lookup',
35840
+ customParams: {
35841
+ nameField: 'itemRefTypeNoDisplayText',
35842
+ displayLabelTemplate: '${name} (${value})',
35843
+ apiInterface: {
35844
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${itemRefSerieId}/items'
35845
+ },
35846
+ lookupValue: 'shortText',
35847
+ lookupKey: 'typeNo',
35848
+ multiple: false,
35849
+ translated: true
35850
+ },
35851
+ additionalFields: ['itemRefTypeNoDisplayText'],
35852
+ isDictionary: true,
35853
+ editable: function editable(_ref2) {
35854
+ var data = _ref2.data;
35855
+ return !!data.itemRefSerieNo;
35856
+ }
35857
+ }, {
35858
+ field: 'decisions',
35859
+ headerName: 'backoffice.idmCatalog.partlistpos.label.decisions',
35860
+ cellDataType: 'lookup',
35861
+ editable: true,
35862
+ customParams: {
35863
+ filterCellType: 'number',
35864
+ nameField: 'decisionRefsDisplayTexts',
35865
+ displayLabelTemplate: '${name} (${value})',
35866
+ apiInterface: {
35867
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions'
35868
+ },
35869
+ lookupValue: 'decisionText',
35870
+ lookupKey: 'decisionNo',
35871
+ lookupKeyFilterType: {
35872
+ type: 'equals',
35873
+ filterType: 'number'
35874
+ },
35875
+ multiple: true,
35876
+ translated: true
35877
+ },
35878
+ additionalFields: ['decisionRefsDisplayTexts'],
35879
+ isDictionary: true
35880
+ }, {
35881
+ field: 'decisionPosCount',
35882
+ headerName: 'backoffice.idmCatalog.partlistpos.label.decisionPosCount',
35883
+ cellDataType: 'lookup',
35884
+ editable: true,
35885
+ customParams: {
35886
+ filterCellType: 'number',
35887
+ nameField: 'decisionPosCountDisplayText',
35888
+ displayLabelTemplate: '${name} (${value})',
35889
+ apiInterface: {
35890
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions'
35891
+ },
35892
+ lookupValue: 'decisionText',
35893
+ lookupKey: 'decisionNo',
35894
+ lookupKeyFilterType: {
35895
+ type: 'equals',
35896
+ filterType: 'number'
35897
+ },
35898
+ multiple: false,
35899
+ translated: true
35900
+ },
35901
+ additionalFields: ['decisionPosCountDisplayText'],
35902
+ isDictionary: true
35903
+ }, {
35904
+ headerName: 'backoffice.idmCatalog.partlistpos.label.posCountValue',
35905
+ field: 'posCountValue',
35906
+ cellDataType: 'number',
35907
+ defaultValue: 1,
35908
+ editable: true,
35909
+ required: true
35910
+ }, {
35911
+ headerName: 'backoffice.idmCatalog.partlistpos.label.posInvisibility',
35912
+ field: 'posInvisibility',
35913
+ defaultValue: 0,
35914
+ editable: true,
35915
+ cellDataType: 'enum',
35916
+ customParams: {
35917
+ enumData: visibility,
35918
+ displayLabelTemplate: '${name} (${value})'
35919
+ }
35920
+ }, {
35921
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
35922
+ field: 'lastUpdatedDate',
35923
+ cellDataType: 'dateString',
35924
+ editable: false
35925
+ }, {
35926
+ headerName: 'backoffice.idmCatalog.general.label.createdDate',
35927
+ field: 'createdDate',
35928
+ cellDataType: 'dateString',
35929
+ editable: false
35930
+ }, {
35931
+ headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
35932
+ field: 'createdByDisplayText',
35933
+ editable: false
35934
+ }, {
35935
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
35936
+ field: 'lastUpdatedByDisplayText',
35937
+ editable: false
35938
+ }, {
35939
+ headerName: 'backoffice.idmCatalog.general.label._id',
35940
+ field: '_id',
35941
+ editable: false
35942
+ }, {
35943
+ field: 'organizationId',
35944
+ editable: false,
35945
+ hide: true,
35946
+ lockVisible: true,
35947
+ suppressColumnsToolPanel: true,
35948
+ defaultValue: '${organizationId}'
35949
+ }, {
35950
+ field: 'catalogId',
35951
+ editable: false,
35952
+ hide: true,
35953
+ lockVisible: true,
35954
+ suppressColumnsToolPanel: true,
35955
+ defaultValue: '${catalogId}'
35956
+ }]
35957
+ }
35958
+ });
35959
+ }
35960
+
35961
+ function TablePartlists () {
35962
+ var _useTranslation = useTranslation(),
35963
+ t = _useTranslation.t;
35964
+ var root = useStore();
35965
+ var _useModule = useModule(['partlists']),
35966
+ catalogId = _useModule.catalogId,
35967
+ organizationId = _useModule.organizationId,
35968
+ updateNavigation = _useModule.updateNavigation,
35969
+ apiConfig = _useModule.apiConfig;
35970
+ var _React$useState = React.useState(),
35971
+ _React$useState2 = _slicedToArray(_React$useState, 2),
35972
+ selectedPartlist = _React$useState2[0],
35973
+ setSelectedPartlist = _React$useState2[1];
35974
+ useEffect(function () {
35975
+ if (selectedPartlist !== null && selectedPartlist !== void 0 && selectedPartlist._id) {
35976
+ root.contentStore.bottomToolBar.tools = [{
35977
+ id: 'partlistpos',
35978
+ name: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlistpos'),
35979
+ element: /*#__PURE__*/jsx(PartlistPos, {
35980
+ organizationId: organizationId,
35981
+ catalogId: catalogId,
35982
+ apiConfig: apiConfig,
35983
+ partlistId: selectedPartlist._id
35984
+ }),
35985
+ startWidth: 300,
35986
+ defaultPinned: false,
35987
+ defaultOpen: false
35988
+ }];
35989
+ } else {
35990
+ root.contentStore.bottomToolBar.tools = [];
35991
+ }
35992
+ }, [selectedPartlist]);
35993
+ useEffect(function () {
35994
+ //remove partilstpos table, when partlists are unmounted
35995
+ return function () {
35996
+ root.contentStore.bottomToolBar.tools = [];
35997
+ };
35998
+ }, []);
35999
+ var applicationData = useMemo(function () {
36000
+ return {
36001
+ catalogId: catalogId,
36002
+ organizationId: organizationId
36003
+ };
36004
+ }, [catalogId]);
36005
+ return /*#__PURE__*/jsxs(Fragment, {
36006
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
36007
+ title: /*#__PURE__*/jsxs("div", {
36008
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists'), /*#__PURE__*/jsx(Space$1, {
36009
+ style: {
36010
+ "float": 'right'
36011
+ },
36012
+ children: /*#__PURE__*/jsx(CatalogSelector, {
36013
+ selectedCatalog: catalogId,
36014
+ setSelectedCatalog: function setSelectedCatalog(id) {
36015
+ return updateNavigation(id);
36016
+ },
36017
+ idmService: apiConfig.idmService,
36018
+ organizationId: organizationId
36019
+ })
36020
+ })]
36021
+ })
36022
+ }), /*#__PURE__*/jsx(Spreadsheet, {
36023
+ gridId: 'crud-grid_partlists',
36024
+ applicationData: applicationData,
36025
+ hooks: {
36026
+ onCellSelectionChanged: function onCellSelectionChanged(event) {
36027
+ if (event.selection.length == 1) {
36028
+ setSelectedPartlist(event.selection[0].node.data);
36029
+ } else {
36030
+ setSelectedPartlist(null);
36031
+ }
36032
+ }
36033
+ },
36034
+ configuration: {
36035
+ type: 'dotnetSSM',
36036
+ apiInterface: {
36037
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists',
36038
+ create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists',
36039
+ restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists/${_id}',
36040
+ "delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists/${_id}',
36041
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists/${_id}'
36042
+ },
36043
+ dateFormat: 'LL',
36044
+ colDef: [{
36045
+ field: 'partlistKey',
36046
+ headerName: 'backoffice.idmCatalog.partlist.label.partlistKey',
36047
+ required: true
36048
+ }, {
36049
+ field: 'comment',
36050
+ headerName: 'backoffice.idmCatalog.partlist.label.comment',
36051
+ required: true
36052
+ }, {
36053
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
36054
+ field: 'lastUpdatedDate',
36055
+ cellDataType: 'dateString',
36056
+ editable: false
36057
+ }, {
36058
+ headerName: 'backoffice.idmCatalog.general.label.createdDate',
36059
+ field: 'createdDate',
36060
+ cellDataType: 'dateString',
36061
+ editable: false
36062
+ }, {
36063
+ headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
36064
+ field: 'createdByDisplayText',
36065
+ editable: false
36066
+ }, {
36067
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
36068
+ field: 'lastUpdatedByDisplayText',
36069
+ editable: false
36070
+ }, {
36071
+ headerName: 'backoffice.idmCatalog.general.label._id',
36072
+ field: '_id',
36073
+ editable: false
36074
+ }, {
36075
+ field: 'organizationId',
36076
+ editable: false,
36077
+ hide: true,
36078
+ lockVisible: true,
36079
+ suppressColumnsToolPanel: true,
36080
+ defaultValue: '${organizationId}'
36081
+ }, {
36082
+ field: 'catalogId',
36083
+ editable: false,
36084
+ hide: true,
36085
+ lockVisible: true,
36086
+ suppressColumnsToolPanel: true,
36087
+ defaultValue: '${catalogId}'
36088
+ }]
36089
+ }
36090
+ })]
36091
+ });
36092
+ }
36093
+
35522
36094
  function IDMCatalogEditor (_ref) {
35523
36095
  _objectDestructuringEmpty(_ref);
35524
36096
  return /*#__PURE__*/jsx("div", {
@@ -35554,6 +36126,9 @@ function Content$1() {
35554
36126
  }), /*#__PURE__*/jsx(Route, {
35555
36127
  path: ":catalogId/decisions",
35556
36128
  element: /*#__PURE__*/jsx(TableDecisions, {})
36129
+ }), /*#__PURE__*/jsx(Route, {
36130
+ path: ":catalogId/partlists",
36131
+ element: /*#__PURE__*/jsx(TablePartlists, {})
35557
36132
  }), /*#__PURE__*/jsx(Route, {
35558
36133
  path: ":catalogId/detailinfos",
35559
36134
  element: /*#__PURE__*/jsx(TableDetailInfos, {})
@@ -1 +1 @@
1
- {"version":3,"file":"OptionCombinations.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAgOrE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,qBA0JA"}
1
+ {"version":3,"file":"OptionCombinations.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAgOrE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,qBAkKA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ApiConfig } from '@crystaldesign/diva-core';
3
+ import { DivaSpreadsheetHooks } from '@crystaldesign/spreadsheet';
4
+ export default function PartlistPos({ organizationId, catalogId, partlistId, apiConfig, hooks, }: {
5
+ organizationId: string;
6
+ catalogId: string;
7
+ partlistId?: string;
8
+ apiConfig: ApiConfig;
9
+ hooks?: DivaSpreadsheetHooks<any>;
10
+ }): React.JSX.Element;
11
+ //# sourceMappingURL=PartlistPos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PartlistPos.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PartlistPos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,SAAS,EACT,UAAU,EACV,SAAS,EACT,KAAK,GACN,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC,qBA8LA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AASxD,UAAU,KAAK;IACb,aAAa,EAAE,6BAA6B,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAUxD,UAAU,KAAK;IACb,aAAa,EAAE,6BAA6B,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAUlD,MAAM,CAAC,OAAO,gCAsKb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAUlD,MAAM,CAAC,OAAO,gCAkKb"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export default function (): React.JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePartlists/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAUlD,MAAM,CAAC,OAAO,gCA0Ib"}
@@ -1 +1 @@
1
- {"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/useModule.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;uCAqF5B,MAAM,YAAW,MAAM,EAAE;;;;EAmC7C"}
1
+ {"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/useModule.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;uCA+F5B,MAAM,YAAW,MAAM,EAAE;;;;EAmC7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMEnricherEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAEzD,UAAU,KAAK;IACb,aAAa,EAAE,8BAA8B,CAAC;IAC9C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMEnricherEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAGzD,UAAU,KAAK;IACb,aAAa,EAAE,8BAA8B,CAAC;IAC9C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export default function (): React.JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,gCA2Pb"}
@@ -1 +1 @@
1
- {"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMEnricherEditor/useModule.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;uCA8K5B,MAAM,YAAW,MAAM,EAAE;;;;EAqC7C"}
1
+ {"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMEnricherEditor/useModule.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;uCAyL5B,MAAM,YAAW,MAAM,EAAE;;;;EAqC7C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.1.0-beta.31",
3
+ "version": "25.1.0-beta.33",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^6.5.0",
@@ -15,13 +15,13 @@
15
15
  "dependencies": {
16
16
  "@ant-design/icons": "5.4.0",
17
17
  "@babel/runtime": "7.24.7",
18
- "@crystaldesign/content-box": "25.1.0-beta.31",
19
- "@crystaldesign/content-item": "25.1.0-beta.31",
20
- "@crystaldesign/diva-core": "25.1.0-beta.31",
21
- "@crystaldesign/diva-utils": "25.1.0-beta.31",
22
- "@crystaldesign/media-upload": "25.1.0-beta.31",
23
- "@crystaldesign/rtf-editor": "25.1.0-beta.31",
24
- "@crystaldesign/spreadsheet": "25.1.0-beta.31",
18
+ "@crystaldesign/content-box": "25.1.0-beta.33",
19
+ "@crystaldesign/content-item": "25.1.0-beta.33",
20
+ "@crystaldesign/diva-core": "25.1.0-beta.33",
21
+ "@crystaldesign/diva-utils": "25.1.0-beta.33",
22
+ "@crystaldesign/media-upload": "25.1.0-beta.33",
23
+ "@crystaldesign/rtf-editor": "25.1.0-beta.33",
24
+ "@crystaldesign/spreadsheet": "25.1.0-beta.33",
25
25
  "@google/model-viewer": "3.5.0",
26
26
  "ag-charts-community": "^10.1.0",
27
27
  "ag-charts-react": "^10.1.0",
@@ -51,5 +51,5 @@
51
51
  },
52
52
  "module": "build/esm/index.js",
53
53
  "types": "./build/types/backoffice/src/index.d.ts",
54
- "gitHead": "a4fae46716a876b447db9375f6f0d16533f2f303"
54
+ "gitHead": "a1955f9b8104a0c5bb6266270bef8abeb10b2c17"
55
55
  }