@crystaldesign/diva-backoffice 25.1.0-beta.29 → 25.1.0-beta.30

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.
@@ -30087,6 +30087,42 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
30087
30087
  });
30088
30088
  var Spreadsheet = observer(SpreadsheetWrapper);
30089
30089
 
30090
+ function PackageSelector(_ref) {
30091
+ var selectedPackage = _ref.selectedPackage,
30092
+ setSelectedPackage = _ref.setSelectedPackage,
30093
+ enricherService = _ref.enricherService,
30094
+ organizationId = _ref.organizationId;
30095
+ var _useTranslation = useTranslation(),
30096
+ t = _useTranslation.t;
30097
+ return /*#__PURE__*/jsx(SimpleSelect, {
30098
+ apiInterface: {
30099
+ read: enricherService + "/packages?filter=organizationId==\"".concat(organizationId, "\"")
30100
+ },
30101
+ apiMapping: {
30102
+ type: 'query',
30103
+ map: [{
30104
+ globalValue: 'organizationId',
30105
+ targetField: 'organizationId'
30106
+ }]
30107
+ },
30108
+ selectMapping: {
30109
+ label: '${name}',
30110
+ value: '${_id}'
30111
+ },
30112
+ title: t('backoffice.idmEnricher.packages.label.packageId'),
30113
+ value: {
30114
+ _id: selectedPackage
30115
+ },
30116
+ onChange: function onChange(value) {
30117
+ return setSelectedPackage(value._id);
30118
+ },
30119
+ search: true,
30120
+ style: {
30121
+ width: 200
30122
+ }
30123
+ });
30124
+ }
30125
+
30090
30126
  function useNavigation$1 () {
30091
30127
  var root = useStore();
30092
30128
  var _useSearchParams = useSearchParams(),
@@ -30114,6 +30150,375 @@ function useNavigation$1 () {
30114
30150
  };
30115
30151
  }
30116
30152
 
30153
+ function useModule$1 (currentModules) {
30154
+ var root = useStore();
30155
+ var _useTranslation = useTranslation(),
30156
+ t = _useTranslation.t;
30157
+ var _useNavigation = useNavigation$1(),
30158
+ updateNavigation = _useNavigation.updateNavigation,
30159
+ organizationId = _useNavigation.organizationId,
30160
+ apiConfig = _useNavigation.apiConfig,
30161
+ packageId = _useNavigation.packageId;
30162
+ var location = useLocation();
30163
+ var _useSearchParams = useSearchParams(),
30164
+ _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
30165
+ searchParams = _useSearchParams2[0];
30166
+ var menuItems = useMemo(function () {
30167
+ return [{
30168
+ key: 'renaming',
30169
+ style: {
30170
+ margin: 0
30171
+ },
30172
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30173
+ label: t('backoffice.menu.items.label.IDMEnricherEditorTableRenaming'),
30174
+ children: [
30175
+ //TODO: Add the other renaming modules when the full enricher is in use, not relevant for CL-Editor
30176
+ // {
30177
+ // key: 'catalogs',
30178
+ // style: { margin: 0 },
30179
+ // icon: <ApartmentOutlined />,
30180
+ // label: (
30181
+ // <Link to={'catalogs/packages/' + packageId + '/renaming/catalog' + (searchParams ? '?' + searchParams.toString() : '')}>
30182
+ // {t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingCatalog')}
30183
+ // </Link>
30184
+ // ),
30185
+ // },
30186
+ // {
30187
+ // key: 'detailInfos',
30188
+ // style: { margin: 0 },
30189
+ // icon: <ApartmentOutlined />,
30190
+ // label: (
30191
+ // <Link to={'catalogs/packages/' + packageId + '/renaming/detailInfos' + (searchParams ? '?' + searchParams.toString() : '')}>
30192
+ // {t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfo')}
30193
+ // </Link>
30194
+ // ),
30195
+ // },
30196
+ {
30197
+ key: 'features',
30198
+ style: {
30199
+ margin: 0
30200
+ },
30201
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30202
+ label: /*#__PURE__*/jsx(Link, {
30203
+ to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/features' + (searchParams ? '?' + searchParams.toString() : ''),
30204
+ children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
30205
+ })
30206
+ }, {
30207
+ key: 'option',
30208
+ style: {
30209
+ margin: 0
30210
+ },
30211
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30212
+ label: /*#__PURE__*/jsx(Link, {
30213
+ to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/options' + (searchParams ? '?' + searchParams.toString() : ''),
30214
+ children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOption')
30215
+ })
30216
+ }, {
30217
+ key: 'items',
30218
+ style: {
30219
+ margin: 0
30220
+ },
30221
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30222
+ label: /*#__PURE__*/jsx(Link, {
30223
+ to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
30224
+ children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
30225
+ })
30226
+ }
30227
+ // {
30228
+ // key: 'serie',
30229
+ // style: { margin: 0 },
30230
+ // icon: <ApartmentOutlined />,
30231
+ // label: (
30232
+ // <Link to={'catalogs/packages/' + packageId + '/renaming/series' + (searchParams ? '?' + searchParams.toString() : '')}>
30233
+ // {t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSerie')}
30234
+ // </Link>
30235
+ // ),
30236
+ // },
30237
+ ]
30238
+ }, {
30239
+ key: 'tabgroups',
30240
+ style: {
30241
+ margin: 0
30242
+ },
30243
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30244
+ label: /*#__PURE__*/jsx(Link, {
30245
+ to: 'catalogs/idmeditor/packages/' + packageId + '/tabgroups' + (searchParams ? '?' + searchParams.toString() : ''),
30246
+ children: t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups')
30247
+ })
30248
+ }, {
30249
+ key: 'exclusivity',
30250
+ style: {
30251
+ margin: 0
30252
+ },
30253
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30254
+ label: t('backoffice.menu.items.label.IDMEnricherEditorTableExclusivity'),
30255
+ children: [
30256
+ //TODO: Add the other exclusivity modules when the full enricher is in use, not relevant for CL-Editor
30257
+
30258
+ // {
30259
+ // key: 'edetailInfo',
30260
+ // style: { margin: 0 },
30261
+ // icon: <ApartmentOutlined />,
30262
+ // label: (
30263
+ // <Link to={'catalogs/packages/' + packageId + '/exclusivity/edetailInfo' + (searchParams ? '?' + searchParams.toString() : '')}>
30264
+ // {t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfo')}
30265
+ // </Link>
30266
+ // ),
30267
+ // },
30268
+ {
30269
+ key: 'efeature',
30270
+ style: {
30271
+ margin: 0
30272
+ },
30273
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30274
+ label: /*#__PURE__*/jsx(Link, {
30275
+ to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/efeature' + (searchParams ? '?' + searchParams.toString() : ''),
30276
+ children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
30277
+ })
30278
+ }, {
30279
+ key: 'eoption',
30280
+ style: {
30281
+ margin: 0
30282
+ },
30283
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30284
+ label: /*#__PURE__*/jsx(Link, {
30285
+ to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eoption' + (searchParams ? '?' + searchParams.toString() : ''),
30286
+ children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOption')
30287
+ })
30288
+ }, {
30289
+ key: 'eitem',
30290
+ style: {
30291
+ margin: 0
30292
+ },
30293
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30294
+ label: /*#__PURE__*/jsx(Link, {
30295
+ to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eitem' + (searchParams ? '?' + searchParams.toString() : ''),
30296
+ children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
30297
+ })
30298
+ }
30299
+ // {
30300
+ // key: 'eserie',
30301
+ // style: { margin: 0 },
30302
+ // icon: <ApartmentOutlined />,
30303
+ // label: (
30304
+ // <Link to={'catalogs/packages/' + packageId + '/exclusivity/eserie' + (searchParams ? '?' + searchParams.toString() : '')}>
30305
+ // {t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSerie')}
30306
+ // </Link>
30307
+ // ),
30308
+ // },
30309
+ ]
30310
+ }, {
30311
+ key: 'properties',
30312
+ style: {
30313
+ margin: 0
30314
+ },
30315
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30316
+ label: /*#__PURE__*/jsx(Link, {
30317
+ to: 'catalogs/idmeditor/packages/' + packageId + '/properties' + (searchParams ? '?' + searchParams.toString() : ''),
30318
+ children: t('backoffice.menu.items.label.IDMEnricherEditorTableProperties')
30319
+ })
30320
+ }, {
30321
+ key: 'groups',
30322
+ style: {
30323
+ margin: 0
30324
+ },
30325
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30326
+ label: /*#__PURE__*/jsx(Link, {
30327
+ to: 'catalogs/idmeditor/packages/' + packageId + '/groups' + (searchParams ? '?' + searchParams.toString() : ''),
30328
+ children: t('backoffice.menu.items.label.IDMEnricherEditorTableGroups')
30329
+ })
30330
+ }];
30331
+ }, [packageId]);
30332
+ if (!packageId) throw new Error('packageId is required');
30333
+ var updateNavigationModule = useCallback(function (currentPackage) {
30334
+ var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
30335
+ updateNavigation(currentPackage, modules, '../');
30336
+ }, [updateNavigation]);
30337
+ useEffect(function () {
30338
+ //update the navigation supmenu for the packages module to include the current package id
30339
+
30340
+ root.contentStore.updateAdditionalElement('packages', menuItems, currentModules);
30341
+ }, [menuItems, location.pathname]);
30342
+
30343
+ //updating tools
30344
+
30345
+ useEffect(function () {
30346
+ var tools = [];
30347
+ if (packageId) tools.push({
30348
+ name: 'Konfigurator',
30349
+ parameters: {
30350
+ packageId: packageId
30351
+ },
30352
+ type: 'Configurator',
30353
+ id: 'WYSIWYG',
30354
+ startWidth: 600,
30355
+ defaultPinned: true
30356
+ });
30357
+ root.contentStore.rightToolBar.tools = tools;
30358
+ return function () {
30359
+ root.contentStore.rightToolBar.tools = [];
30360
+ };
30361
+ }, [packageId]);
30362
+ return {
30363
+ updateNavigation: updateNavigationModule,
30364
+ organizationId: organizationId,
30365
+ apiConfig: apiConfig,
30366
+ packageId: packageId
30367
+ };
30368
+ }
30369
+
30370
+ function TableGroups () {
30371
+ var _useTranslation = useTranslation(),
30372
+ t = _useTranslation.t;
30373
+ var _useModule = useModule$1(['groups']),
30374
+ packageId = _useModule.packageId,
30375
+ organizationId = _useModule.organizationId,
30376
+ updateNavigation = _useModule.updateNavigation,
30377
+ apiConfig = _useModule.apiConfig;
30378
+ var applicationData = useMemo(function () {
30379
+ return {
30380
+ packageId: packageId,
30381
+ organizationId: organizationId
30382
+ };
30383
+ }, [packageId]);
30384
+ return /*#__PURE__*/jsxs(Fragment, {
30385
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
30386
+ title: /*#__PURE__*/jsxs("div", {
30387
+ children: [t('backoffice.menu.items.label.IDMEnricherEditorTableGroups'), /*#__PURE__*/jsx(Space$1, {
30388
+ style: {
30389
+ "float": 'right'
30390
+ },
30391
+ children: /*#__PURE__*/jsx(PackageSelector, {
30392
+ organizationId: organizationId,
30393
+ selectedPackage: packageId,
30394
+ setSelectedPackage: function setSelectedPackage(id) {
30395
+ return updateNavigation(id);
30396
+ },
30397
+ enricherService: apiConfig.enricherService
30398
+ })
30399
+ })]
30400
+ })
30401
+ }), /*#__PURE__*/jsx(Spreadsheet, {
30402
+ gridId: 'crud-grid_groups',
30403
+ applicationData: applicationData,
30404
+ configuration: {
30405
+ type: 'dotnetSSM',
30406
+ apiInterface: {
30407
+ read: apiConfig.enricherService + '/packages/${packageId}/groups',
30408
+ create: apiConfig.enricherService + '/packages/${packageId}/groups',
30409
+ restore: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
30410
+ "delete": apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
30411
+ update: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}'
30412
+ },
30413
+ dateFormat: 'LL',
30414
+ floatingFilter: true,
30415
+ colDef: [{
30416
+ headerName: 'backoffice.idmEnricher.groups.label.name',
30417
+ marryChildren: true,
30418
+ children: [{
30419
+ field: 'name.DE',
30420
+ headerName: 'backoffice.idmEnricher.general.label.DE',
30421
+ isDictionary: true,
30422
+ pinned: true,
30423
+ required: true
30424
+ }, {
30425
+ field: 'name.EN',
30426
+ headerName: 'backoffice.idmEnricher.general.label.EN',
30427
+ isDictionary: true
30428
+ }, {
30429
+ field: 'name.FR',
30430
+ headerName: 'backoffice.idmEnricher.general.label.FR',
30431
+ isDictionary: true
30432
+ }, {
30433
+ field: 'name.IT',
30434
+ headerName: 'backoffice.idmEnricher.general.label.IT',
30435
+ isDictionary: true
30436
+ }]
30437
+ }, {
30438
+ field: 'serieNos',
30439
+ headerName: 'backoffice.idmEnricher.groups.label.serieNos',
30440
+ cellDataType: 'lookup',
30441
+ editable: true,
30442
+ customParams: {
30443
+ filterCellType: 'number',
30444
+ nameField: 'serieNosDisplayTexts',
30445
+ displayLabelTemplate: '${name} (${value})',
30446
+ apiInterface: {
30447
+ read: apiConfig.enricherService + '/packages/${packageId}/lookup/series'
30448
+ },
30449
+ lookupValue: 'seriesName',
30450
+ lookupKey: 'serieNo',
30451
+ lookupKeyFilterType: {
30452
+ type: 'equals',
30453
+ filterType: 'number'
30454
+ },
30455
+ multiple: true,
30456
+ translated: true
30457
+ },
30458
+ additionalFields: ['serieNosDisplayTexts'],
30459
+ isDictionary: true
30460
+ }, {
30461
+ field: 'typeNos',
30462
+ headerName: 'backoffice.idmEnricher.groups.label.typeNos',
30463
+ cellDataType: 'lookup',
30464
+ editable: true,
30465
+ customParams: {
30466
+ nameField: 'typeNosDisplayTexts',
30467
+ displayLabelTemplate: '${name} (${value})',
30468
+ apiInterface: {
30469
+ read: apiConfig.enricherService + '/packages/${packageId}/lookup/items'
30470
+ },
30471
+ lookupValue: 'shortText',
30472
+ lookupKey: 'typeNo',
30473
+ multiple: true,
30474
+ translated: true
30475
+ },
30476
+ additionalFields: ['typeNosDisplayTexts'],
30477
+ isDictionary: true,
30478
+ cellValueValidator: function cellValueValidator(_ref) {
30479
+ var _data$serieNos;
30480
+ var value = _ref.value,
30481
+ data = _ref.data;
30482
+ if (value !== null && value !== void 0 && value.length && !((_data$serieNos = data['serieNos']) !== null && _data$serieNos !== void 0 && _data$serieNos.length)) {
30483
+ return t('backoffice.idmEnricher.properties.error.typeNos');
30484
+ }
30485
+ return undefined;
30486
+ }
30487
+ }, {
30488
+ field: 'organizationId',
30489
+ editable: false,
30490
+ hide: true,
30491
+ lockVisible: true,
30492
+ suppressColumnsToolPanel: true,
30493
+ defaultValue: '${organizationId}'
30494
+ }, {
30495
+ headerName: 'backoffice.idmEnricher.general.label.lastUpdatedDate',
30496
+ field: 'lastUpdatedDate',
30497
+ cellDataType: 'dateString',
30498
+ editable: false
30499
+ }, {
30500
+ headerName: 'backoffice.idmEnricher.general.label.createdDate',
30501
+ field: 'createdDate',
30502
+ cellDataType: 'dateString',
30503
+ editable: false
30504
+ }, {
30505
+ headerName: 'backoffice.idmEnricher.general.label.createdBy',
30506
+ field: 'createdByDisplayText',
30507
+ editable: false
30508
+ }, {
30509
+ headerName: 'backoffice.idmEnricher.general.label.lastUpdatedBy',
30510
+ field: 'lastUpdatedByDisplayText',
30511
+ editable: false
30512
+ }, {
30513
+ headerName: 'backoffice.idmEnricher.general.label._id',
30514
+ field: '_id',
30515
+ editable: false
30516
+ }]
30517
+ }
30518
+ })]
30519
+ });
30520
+ }
30521
+
30117
30522
  function PublishCustomCell (_ref) {
30118
30523
  var data = _ref.data,
30119
30524
  apiConfig = _ref.apiConfig,
@@ -30493,249 +30898,6 @@ function TablePackages () {
30493
30898
  });
30494
30899
  }
30495
30900
 
30496
- function PackageSelector(_ref) {
30497
- var selectedPackage = _ref.selectedPackage,
30498
- setSelectedPackage = _ref.setSelectedPackage,
30499
- enricherService = _ref.enricherService,
30500
- organizationId = _ref.organizationId;
30501
- var _useTranslation = useTranslation(),
30502
- t = _useTranslation.t;
30503
- return /*#__PURE__*/jsx(SimpleSelect, {
30504
- apiInterface: {
30505
- read: enricherService + "/packages?filter=organizationId==\"".concat(organizationId, "\"")
30506
- },
30507
- apiMapping: {
30508
- type: 'query',
30509
- map: [{
30510
- globalValue: 'organizationId',
30511
- targetField: 'organizationId'
30512
- }]
30513
- },
30514
- selectMapping: {
30515
- label: '${name}',
30516
- value: '${_id}'
30517
- },
30518
- title: t('backoffice.idmEnricher.packages.label.packageId'),
30519
- value: {
30520
- _id: selectedPackage
30521
- },
30522
- onChange: function onChange(value) {
30523
- return setSelectedPackage(value._id);
30524
- },
30525
- search: true,
30526
- style: {
30527
- width: 200
30528
- }
30529
- });
30530
- }
30531
-
30532
- function useModule$1 (currentModules) {
30533
- var root = useStore();
30534
- var _useTranslation = useTranslation(),
30535
- t = _useTranslation.t;
30536
- var _useNavigation = useNavigation$1(),
30537
- updateNavigation = _useNavigation.updateNavigation,
30538
- organizationId = _useNavigation.organizationId,
30539
- apiConfig = _useNavigation.apiConfig,
30540
- packageId = _useNavigation.packageId;
30541
- var location = useLocation();
30542
- var _useSearchParams = useSearchParams(),
30543
- _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
30544
- searchParams = _useSearchParams2[0];
30545
- var menuItems = useMemo(function () {
30546
- return [{
30547
- key: 'renaming',
30548
- style: {
30549
- margin: 0
30550
- },
30551
- icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30552
- label: t('backoffice.menu.items.label.IDMEnricherEditorTableRenaming'),
30553
- children: [
30554
- //TODO: Add the other renaming modules when the full enricher is in use, not relevant for CL-Editor
30555
- // {
30556
- // key: 'catalogs',
30557
- // style: { margin: 0 },
30558
- // icon: <ApartmentOutlined />,
30559
- // label: (
30560
- // <Link to={'catalogs/packages/' + packageId + '/renaming/catalog' + (searchParams ? '?' + searchParams.toString() : '')}>
30561
- // {t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingCatalog')}
30562
- // </Link>
30563
- // ),
30564
- // },
30565
- // {
30566
- // key: 'detailInfos',
30567
- // style: { margin: 0 },
30568
- // icon: <ApartmentOutlined />,
30569
- // label: (
30570
- // <Link to={'catalogs/packages/' + packageId + '/renaming/detailInfos' + (searchParams ? '?' + searchParams.toString() : '')}>
30571
- // {t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfo')}
30572
- // </Link>
30573
- // ),
30574
- // },
30575
- {
30576
- key: 'features',
30577
- style: {
30578
- margin: 0
30579
- },
30580
- icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30581
- label: /*#__PURE__*/jsx(Link, {
30582
- to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/features' + (searchParams ? '?' + searchParams.toString() : ''),
30583
- children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
30584
- })
30585
- }, {
30586
- key: 'option',
30587
- style: {
30588
- margin: 0
30589
- },
30590
- icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30591
- label: /*#__PURE__*/jsx(Link, {
30592
- to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/options' + (searchParams ? '?' + searchParams.toString() : ''),
30593
- children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOption')
30594
- })
30595
- }, {
30596
- key: 'items',
30597
- style: {
30598
- margin: 0
30599
- },
30600
- icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30601
- label: /*#__PURE__*/jsx(Link, {
30602
- to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
30603
- children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
30604
- })
30605
- }
30606
- // {
30607
- // key: 'serie',
30608
- // style: { margin: 0 },
30609
- // icon: <ApartmentOutlined />,
30610
- // label: (
30611
- // <Link to={'catalogs/packages/' + packageId + '/renaming/series' + (searchParams ? '?' + searchParams.toString() : '')}>
30612
- // {t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSerie')}
30613
- // </Link>
30614
- // ),
30615
- // },
30616
- ]
30617
- }, {
30618
- key: 'tabgroups',
30619
- style: {
30620
- margin: 0
30621
- },
30622
- icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30623
- label: /*#__PURE__*/jsx(Link, {
30624
- to: 'catalogs/idmeditor/packages/' + packageId + '/tabgroups' + (searchParams ? '?' + searchParams.toString() : ''),
30625
- children: t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups')
30626
- })
30627
- }, {
30628
- key: 'exclusivity',
30629
- style: {
30630
- margin: 0
30631
- },
30632
- icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30633
- label: t('backoffice.menu.items.label.IDMEnricherEditorTableExclusivity'),
30634
- children: [
30635
- //TODO: Add the other exclusivity modules when the full enricher is in use, not relevant for CL-Editor
30636
-
30637
- // {
30638
- // key: 'edetailInfo',
30639
- // style: { margin: 0 },
30640
- // icon: <ApartmentOutlined />,
30641
- // label: (
30642
- // <Link to={'catalogs/packages/' + packageId + '/exclusivity/edetailInfo' + (searchParams ? '?' + searchParams.toString() : '')}>
30643
- // {t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfo')}
30644
- // </Link>
30645
- // ),
30646
- // },
30647
- {
30648
- key: 'efeature',
30649
- style: {
30650
- margin: 0
30651
- },
30652
- icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30653
- label: /*#__PURE__*/jsx(Link, {
30654
- to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/efeature' + (searchParams ? '?' + searchParams.toString() : ''),
30655
- children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
30656
- })
30657
- }, {
30658
- key: 'eoption',
30659
- style: {
30660
- margin: 0
30661
- },
30662
- icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30663
- label: /*#__PURE__*/jsx(Link, {
30664
- to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eoption' + (searchParams ? '?' + searchParams.toString() : ''),
30665
- children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOption')
30666
- })
30667
- }, {
30668
- key: 'eitem',
30669
- style: {
30670
- margin: 0
30671
- },
30672
- icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30673
- label: /*#__PURE__*/jsx(Link, {
30674
- to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eitem' + (searchParams ? '?' + searchParams.toString() : ''),
30675
- children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
30676
- })
30677
- }
30678
- // {
30679
- // key: 'eserie',
30680
- // style: { margin: 0 },
30681
- // icon: <ApartmentOutlined />,
30682
- // label: (
30683
- // <Link to={'catalogs/packages/' + packageId + '/exclusivity/eserie' + (searchParams ? '?' + searchParams.toString() : '')}>
30684
- // {t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSerie')}
30685
- // </Link>
30686
- // ),
30687
- // },
30688
- ]
30689
- }, {
30690
- key: 'properties',
30691
- style: {
30692
- margin: 0
30693
- },
30694
- icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30695
- label: /*#__PURE__*/jsx(Link, {
30696
- to: 'catalogs/idmeditor/packages/' + packageId + '/properties' + (searchParams ? '?' + searchParams.toString() : ''),
30697
- children: t('backoffice.menu.items.label.IDMEnricherEditorTableProperties')
30698
- })
30699
- }];
30700
- }, [packageId]);
30701
- if (!packageId) throw new Error('packageId is required');
30702
- var updateNavigationModule = useCallback(function (currentPackage) {
30703
- var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
30704
- updateNavigation(currentPackage, modules, '../');
30705
- }, [updateNavigation]);
30706
- useEffect(function () {
30707
- //update the navigation supmenu for the packages module to include the current package id
30708
-
30709
- root.contentStore.updateAdditionalElement('packages', menuItems, currentModules);
30710
- }, [menuItems, location.pathname]);
30711
-
30712
- //updating tools
30713
-
30714
- useEffect(function () {
30715
- var tools = [];
30716
- if (packageId) tools.push({
30717
- name: 'Konfigurator',
30718
- parameters: {
30719
- packageId: packageId
30720
- },
30721
- type: 'Configurator',
30722
- id: 'WYSIWYG',
30723
- startWidth: 600,
30724
- defaultPinned: true
30725
- });
30726
- root.contentStore.rightToolBar.tools = tools;
30727
- return function () {
30728
- root.contentStore.rightToolBar.tools = [];
30729
- };
30730
- }, [packageId]);
30731
- return {
30732
- updateNavigation: updateNavigationModule,
30733
- organizationId: organizationId,
30734
- apiConfig: apiConfig,
30735
- packageId: packageId
30736
- };
30737
- }
30738
-
30739
30901
  function TableProperties () {
30740
30902
  var _useTranslation = useTranslation(),
30741
30903
  t = _useTranslation.t;
@@ -32136,6 +32298,9 @@ function Content$2() {
32136
32298
  }), /*#__PURE__*/jsx(Route, {
32137
32299
  path: ":packageId/properties",
32138
32300
  element: /*#__PURE__*/jsx(TableProperties, {})
32301
+ }), /*#__PURE__*/jsx(Route, {
32302
+ path: ":packageId/groups",
32303
+ element: /*#__PURE__*/jsx(TableGroups, {})
32139
32304
  })]
32140
32305
  });
32141
32306
  }
@@ -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/TableGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,gCAgKb"}
@@ -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;uCAoK5B,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;uCA8K5B,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.29",
3
+ "version": "25.1.0-beta.30",
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.29",
19
- "@crystaldesign/content-item": "25.1.0-beta.29",
20
- "@crystaldesign/diva-core": "25.1.0-beta.29",
21
- "@crystaldesign/diva-utils": "25.1.0-beta.29",
22
- "@crystaldesign/media-upload": "25.1.0-beta.29",
23
- "@crystaldesign/rtf-editor": "25.1.0-beta.29",
24
- "@crystaldesign/spreadsheet": "25.1.0-beta.29",
18
+ "@crystaldesign/content-box": "25.1.0-beta.30",
19
+ "@crystaldesign/content-item": "25.1.0-beta.30",
20
+ "@crystaldesign/diva-core": "25.1.0-beta.30",
21
+ "@crystaldesign/diva-utils": "25.1.0-beta.30",
22
+ "@crystaldesign/media-upload": "25.1.0-beta.30",
23
+ "@crystaldesign/rtf-editor": "25.1.0-beta.30",
24
+ "@crystaldesign/spreadsheet": "25.1.0-beta.30",
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": "b22d20b2862ba31cdf43c9afa9d4f43e8831a351"
54
+ "gitHead": "ca34bcb415e552de31f9acdcdd8375dd69f69bf8"
55
55
  }