@crystaldesign/diva-backoffice 24.4.0 → 24.5.0-beta.0

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 (2) hide show
  1. package/build/esm/index.js +75 -5
  2. package/package.json +2 -2
@@ -3040,27 +3040,34 @@ function loadConfiguration(t, root, config, lang) {
3040
3040
  title: t('backoffice.table.partlists.columns.GroupedFormula'),
3041
3041
  field: 'GroupedFormula',
3042
3042
  sorter: 7,
3043
- filter: 'advanced'
3043
+ filter: 'advanced',
3044
+ width: 100
3044
3045
  }, {
3045
3046
  title: t('backoffice.table.partlists.columns.Formula'),
3046
3047
  field: 'Formula',
3047
3048
  sorter: 8,
3048
- filter: 'advanced'
3049
+ filter: 'advanced',
3050
+ width: 100
3049
3051
  }, {
3050
3052
  title: t('backoffice.table.partlists.columns.RetailPrefix'),
3051
3053
  field: 'RetailPrefix',
3052
3054
  editable: true,
3053
3055
  sorter: 9,
3054
3056
  filter: 'advanced',
3055
- width: 110
3057
+ width: 100
3056
3058
  }, {
3057
3059
  title: t('backoffice.table.partlists.columns.RetailArticleNr'),
3058
3060
  field: 'RetailArticleNr',
3059
3061
  editable: true,
3060
3062
  sorter: 9,
3061
3063
  filter: 'advanced',
3062
- width: 150,
3064
+ width: 100,
3063
3065
  fixed: 'right'
3066
+ }, {
3067
+ title: 'OptionsForPrint',
3068
+ field: 'OptionsForPrint',
3069
+ editable: false,
3070
+ width: 150
3064
3071
  }],
3065
3072
  apiInterface: {
3066
3073
  read: {
@@ -4383,7 +4390,14 @@ function loadConfiguration(t, root, config, lang) {
4383
4390
  filterServerSide: true
4384
4391
  },
4385
4392
  "delete": '${mediaService}/rooms/${id}'
4386
- }
4393
+ },
4394
+ rowAction: [{
4395
+ actionType: 'Detail',
4396
+ type: 'RelationSelector',
4397
+ id: 'SelectorRoomOrganizations',
4398
+ title: t('backoffice.table.apikeys.rowAction.SelectorApiOrganizations.label'),
4399
+ label: t('backoffice.table.apikeys.rowAction.SelectorApiOrganizations.label')
4400
+ }]
4387
4401
  },
4388
4402
  TableRenderjobs: {
4389
4403
  title: t('backoffice.table.renderjobs.title'),
@@ -9278,6 +9292,62 @@ function loadConfiguration(t, root, config, lang) {
9278
9292
  AUTH_0020: t('errorcodes._source.labels.error.AUTH_0020')
9279
9293
  }
9280
9294
  },
9295
+ SelectorRoomOrganizations: {
9296
+ type: 'RelationSelector',
9297
+ searchApiInterface: {
9298
+ read: '${authService}/v2/organizations'
9299
+ },
9300
+ apiInterface: {
9301
+ read: '${mediaService}/rooms/${roomId}/organizations',
9302
+ create: '${mediaService}/rooms/${roomId}/organizations/${organizationId}',
9303
+ "delete": '${mediaService}/rooms/${roomId}/organizations/${organizationId}'
9304
+ },
9305
+ configuration: {
9306
+ download: false,
9307
+ readListMapping: {
9308
+ type: 'query',
9309
+ map: [{
9310
+ sourceField: '_id',
9311
+ targetField: 'roomId'
9312
+ }]
9313
+ },
9314
+ deleteMapping: {
9315
+ type: 'query',
9316
+ map: [{
9317
+ sourceField: '_id',
9318
+ targetField: 'roomId'
9319
+ }, {
9320
+ sourceField: 'relatedId',
9321
+ targetField: 'organizationId'
9322
+ }]
9323
+ },
9324
+ createMapping: {
9325
+ type: 'query',
9326
+ map: [{
9327
+ sourceField: '_id',
9328
+ targetField: 'roomId'
9329
+ }, {
9330
+ sourceField: 'relatedId',
9331
+ targetField: 'organizationId'
9332
+ }]
9333
+ },
9334
+ search: {
9335
+ fields: ['_id', 'displayName']
9336
+ },
9337
+ functionalities: {
9338
+ canDelete: true,
9339
+ canEdit: false
9340
+ },
9341
+ filter: {
9342
+ fields: ['_id', 'displayName'],
9343
+ type: 'default'
9344
+ },
9345
+ list: {
9346
+ title: ['displayName'],
9347
+ description: ['_id']
9348
+ }
9349
+ }
9350
+ },
9281
9351
  MediaUploadOrganizationLogoMobile: {
9282
9352
  type: 'MediaUpload',
9283
9353
  size: 'medium',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "24.4.0",
3
+ "version": "24.5.0-beta.0",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^5.15.0",
@@ -50,5 +50,5 @@
50
50
  },
51
51
  "module": "build/esm/index.js",
52
52
  "types": "./build/types/backoffice/src/index.d.ts",
53
- "gitHead": "cb5dd187c8c5a505d4ca7651b874da2aae9c5cd5"
53
+ "gitHead": "2d1e84027c967ac3e3b00dc6acb4d7632fdb5f29"
54
54
  }