@crystaldesign/diva-backoffice 25.15.0-beta.7 → 25.15.0-beta.8

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.
@@ -4509,8 +4509,14 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
4509
4509
  targetField: 'previewImage',
4510
4510
  sourceField: 'previewImage'
4511
4511
  }, {
4512
- targetField: 'organizationId',
4513
- globalValue: 'organizationId'
4512
+ targetField: 'previewImageRef',
4513
+ sourceField: 'previewImageRef'
4514
+ }, {
4515
+ targetField: 'previewImageId',
4516
+ sourceField: 'previewImageId'
4517
+ }, {
4518
+ targetField: 'isGlobal',
4519
+ sourceField: 'isGlobal'
4514
4520
  }]
4515
4521
  }
4516
4522
  },
@@ -4562,13 +4568,25 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
4562
4568
  type: 'media',
4563
4569
  width: 100,
4564
4570
  align: 'center'
4571
+ }, {
4572
+ title: t('backoffice.table.prompts.columns.isGlobal'),
4573
+ field: 'isGlobal',
4574
+ sorter: 1,
4575
+ filter: 'advanced',
4576
+ type: 'boolean',
4577
+ width: 150
4578
+ }, {
4579
+ title: t('backoffice.table.prompts.columns.organizations'),
4580
+ field: 'organizations',
4581
+ type: 'boolean',
4582
+ width: 150
4565
4583
  }, {
4566
4584
  title: t('backoffice.table.prompts.columns.archived'),
4567
4585
  field: 'archived',
4568
4586
  sorter: 1,
4569
4587
  filter: 'advanced',
4570
4588
  type: 'boolean',
4571
- width: 140
4589
+ width: 150
4572
4590
  }, {
4573
4591
  title: t('backoffice.table.prompts.columns.defaultPrompt'),
4574
4592
  field: 'defaultPrompt',
@@ -4595,12 +4613,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
4595
4613
  sorter: 1,
4596
4614
  filter: 'advanced',
4597
4615
  width: 200
4598
- }, {
4599
- title: t('backoffice.table.medien.columns.title.organizationId'),
4600
- field: 'organizationId',
4601
- sorter: 1,
4602
- filter: 'advanced',
4603
- width: 160
4604
4616
  }],
4605
4617
  rowAction: [{
4606
4618
  actionType: 'Detail',
@@ -4616,20 +4628,19 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
4616
4628
  id: 'FormShowPrompt',
4617
4629
  title: t('backoffice.table.prompt.show'),
4618
4630
  label: t('backoffice.show')
4631
+ }, {
4632
+ actionType: 'Detail',
4633
+ type: 'RelationSelector',
4634
+ id: 'SelectorPromptOrganizations',
4635
+ title: t('backoffice.table.apikeys.rowAction.SelectorApiOrganizations.label'),
4636
+ label: t('backoffice.table.apikeys.rowAction.SelectorApiOrganizations.label')
4619
4637
  }],
4620
4638
  apiInterface: {
4621
4639
  read: {
4622
- list: '${aiService}/prompts?organizationId=${organizationId}',
4640
+ list: '${aiService}/prompts',
4623
4641
  filterServerSide: true
4624
4642
  },
4625
4643
  "delete": '${aiService}/prompts/${id}'
4626
- },
4627
- mapping: {
4628
- type: 'query',
4629
- map: [{
4630
- globalValue: 'organizationId',
4631
- targetField: 'organizationId'
4632
- }]
4633
4644
  }
4634
4645
  },
4635
4646
  TableApplicationTranslations: {
@@ -7865,9 +7876,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7865
7876
  label: t('backoffice.table.prompts.columns.archived'),
7866
7877
  type: 'checkbox',
7867
7878
  defaultValue: false
7868
- }, {
7869
- name: 'organizationId',
7870
- hidden: true
7871
7879
  }]
7872
7880
  },
7873
7881
  FormShowPrompt: {
@@ -7959,9 +7967,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7959
7967
  label: t('backoffice.table.prompts.columns.archived'),
7960
7968
  type: 'checkbox',
7961
7969
  readonly: true
7962
- }, {
7963
- name: 'organizationId',
7964
- hidden: true
7965
7970
  }]
7966
7971
  },
7967
7972
  FormOrganizationUserDetails: {
@@ -8653,6 +8658,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8653
8658
  hidden: function hidden(data) {
8654
8659
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8655
8660
  }
8661
+ }, {
8662
+ name: 'impressumUrl',
8663
+ label: t('backoffice.form.organizationdetails.items.impressumUrl'),
8664
+ type: 'input',
8665
+ hidden: function hidden(data) {
8666
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8667
+ }
8656
8668
  }, {
8657
8669
  name: t('backoffice.subtitle.advanced'),
8658
8670
  type: 'subTitle',
@@ -13246,6 +13258,62 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
13246
13258
  }
13247
13259
  }
13248
13260
  },
13261
+ SelectorPromptOrganizations: {
13262
+ type: 'RelationSelector',
13263
+ searchApiInterface: {
13264
+ read: '${authService}/v2/organizations'
13265
+ },
13266
+ apiInterface: {
13267
+ read: '${aiService}/prompts/${promptId}/organizations',
13268
+ create: '${aiService}/prompts/${promptId}/organizations/${organizationId}',
13269
+ "delete": '${aiService}/prompts/${promptId}/organizations/${organizationId}'
13270
+ },
13271
+ configuration: {
13272
+ download: false,
13273
+ readListMapping: {
13274
+ type: 'query',
13275
+ map: [{
13276
+ sourceField: '_id',
13277
+ targetField: 'promptId'
13278
+ }]
13279
+ },
13280
+ deleteMapping: {
13281
+ type: 'query',
13282
+ map: [{
13283
+ sourceField: '_id',
13284
+ targetField: 'promptId'
13285
+ }, {
13286
+ sourceField: 'relatedId',
13287
+ targetField: 'organizationId'
13288
+ }]
13289
+ },
13290
+ createMapping: {
13291
+ type: 'query',
13292
+ map: [{
13293
+ sourceField: '_id',
13294
+ targetField: 'promptId'
13295
+ }, {
13296
+ sourceField: 'relatedId',
13297
+ targetField: 'organizationId'
13298
+ }]
13299
+ },
13300
+ search: {
13301
+ fields: ['_id', 'displayName']
13302
+ },
13303
+ functionalities: {
13304
+ canDelete: true,
13305
+ canEdit: false
13306
+ },
13307
+ filter: {
13308
+ fields: ['_id', 'displayName'],
13309
+ type: 'default'
13310
+ },
13311
+ list: {
13312
+ title: ['displayName'],
13313
+ description: ['_id']
13314
+ }
13315
+ }
13316
+ },
13249
13317
  MediaUploadOrganizationLogoMobile: {
13250
13318
  type: 'MediaUpload',
13251
13319
  size: 'medium',
@@ -15255,12 +15323,6 @@ var menu = [{
15255
15323
  path: 'contentitems',
15256
15324
  label: 'backoffice.menu.items.label.ContentItems',
15257
15325
  icon: 'OrderedListOutlined'
15258
- }, {
15259
- id: 'TablePrompts',
15260
- path: 'prompts',
15261
- label: 'backoffice.menu.items.label.Prompts',
15262
- icon: 'OpenAIOutlined',
15263
- permission: 'backoffice_prompts'
15264
15326
  }, {
15265
15327
  id: 'idmTables',
15266
15328
  path: 'idm',
@@ -15438,6 +15500,12 @@ var menu = [{
15438
15500
  label: 'backoffice.menu.items.label.userAdmin',
15439
15501
  icon: 'UserOutlined',
15440
15502
  permission: 'backoffice_admin_users'
15503
+ }, {
15504
+ id: 'TablePrompts',
15505
+ path: 'prompts',
15506
+ label: 'backoffice.menu.items.label.Prompts',
15507
+ icon: 'OpenAIOutlined',
15508
+ permission: 'backoffice_prompts'
15441
15509
  }, {
15442
15510
  id: 'mediaAdmin',
15443
15511
  path: 'assetmanager',
@@ -20686,8 +20754,8 @@ function Media (_ref) {
20686
20754
  value = _ref.value,
20687
20755
  state = _ref.state,
20688
20756
  absoluteName = _ref.absoluteName;
20689
- var mediaItemRefIdPath = item.mediaItemRefField ? absoluteName.slice(0, -1).concat(item.mediaItemRefField) : undefined;
20690
- var urlPath = item.urlField ? absoluteName.slice(0, -1).concat(item.urlField) : undefined;
20757
+ var mediaItemRefIdPath = Array.isArray(absoluteName) && item.mediaItemRefField ? absoluteName.slice(0, -1).concat(item.mediaItemRefField) : item.mediaItemRefField;
20758
+ var urlPath = Array.isArray(absoluteName) && item.urlField ? absoluteName.slice(0, -1).concat(item.urlField) : item.urlField;
20691
20759
  var mediaItemRefId = mediaItemRefIdPath ? state.getData(mediaItemRefIdPath, state.data) : undefined;
20692
20760
  var url = urlPath ? state.getData(urlPath, state.data) : undefined;
20693
20761
  var _React$useState = React.useState(),
@@ -1 +1 @@
1
- {"version":3,"file":"ContentStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContentStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,wBAAwB,CAAC;AAI7E,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAInE,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO;IAWA,OAAO,CAAC,IAAI;IAVxB,OAAO,CAAC,MAAM,CAC8F;IAC5G,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,uBAAuB,CAA+C;IAC9E,SAAgB,YAAY,EAAE,YAAY,CAAC;IAC3C,SAAgB,aAAa,EAAE,YAAY,CAAC;gBAExB,IAAI,EAAE,SAAS;IAcnC,QAAQ;IAmCR,IAAI,KAAK,6BAER;IAED,IAAI,YAAY,4BAEf;IAED,IAAI,YAAY,4BAEf;IAED,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;IAc1E,uBAAuB,CAAC,GAAG,EAAE,MAAM;IAInC,IAAI,sBAAsB,IAAI;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAEpE;IAED,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW;IAKxC,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE;QAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,CAAC,EAAE,IAAI;IA+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AE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,KAAK,qBAkEnE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Form/Fields/Media/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,eAAe,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC5C,CAAC;AAEF,MAAM,CAAC,OAAO,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,KAAK,qBAmEnE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.15.0-beta.7",
3
+ "version": "25.15.0-beta.8",
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.15.0-beta.7",
19
- "@crystaldesign/content-item": "25.15.0-beta.7",
20
- "@crystaldesign/diva-core": "25.15.0-beta.7",
21
- "@crystaldesign/diva-utils": "25.15.0-beta.7",
22
- "@crystaldesign/media-upload": "25.15.0-beta.7",
23
- "@crystaldesign/rtf-editor": "25.15.0-beta.7",
24
- "@crystaldesign/spreadsheet": "25.15.0-beta.7",
18
+ "@crystaldesign/content-box": "25.15.0-beta.8",
19
+ "@crystaldesign/content-item": "25.15.0-beta.8",
20
+ "@crystaldesign/diva-core": "25.15.0-beta.8",
21
+ "@crystaldesign/diva-utils": "25.15.0-beta.8",
22
+ "@crystaldesign/media-upload": "25.15.0-beta.8",
23
+ "@crystaldesign/rtf-editor": "25.15.0-beta.8",
24
+ "@crystaldesign/spreadsheet": "25.15.0-beta.8",
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": "4115a6d1e7f58df77a09d14b452f4d7d5d3057b9"
54
+ "gitHead": "85a8d5856b362cbf78cee9869fad15c4254a93fd"
55
55
  }