@crystaldesign/diva-backoffice 25.1.0-beta.23 → 25.1.0-beta.24

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.
@@ -33153,6 +33153,16 @@ function useModule (currentModules) {
33153
33153
  to: 'catalogs/idmeditor/catalogs/' + catalogId + '/decisions' + (searchParams ? '?' + searchParams.toString() : ''),
33154
33154
  children: t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions')
33155
33155
  })
33156
+ }, {
33157
+ key: 'detailinfos',
33158
+ style: {
33159
+ margin: 0
33160
+ },
33161
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
33162
+ label: /*#__PURE__*/jsx(Link, {
33163
+ to: 'catalogs/idmeditor/catalogs/' + catalogId + '/detailinfos' + (searchParams ? '?' + searchParams.toString() : ''),
33164
+ children: t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos')
33165
+ })
33156
33166
  }];
33157
33167
  }, [catalogId]);
33158
33168
  if (!catalogId) throw new Error('catalogId is required');
@@ -34577,6 +34587,290 @@ function TableDecisions () {
34577
34587
  });
34578
34588
  }
34579
34589
 
34590
+ function TableDetailInfos () {
34591
+ var _useTranslation = useTranslation(),
34592
+ t = _useTranslation.t;
34593
+ var root = useStore();
34594
+ var _useModule = useModule(['detailinfos']),
34595
+ catalogId = _useModule.catalogId,
34596
+ organizationId = _useModule.organizationId,
34597
+ updateNavigation = _useModule.updateNavigation,
34598
+ apiConfig = _useModule.apiConfig;
34599
+ var layerId = [{
34600
+ name: t('backoffice.idmCatalog.detailinfos.label.layer.l10'),
34601
+ value: 10
34602
+ }, {
34603
+ name: t('backoffice.idmCatalog.detailinfos.label.layer.l20'),
34604
+ value: 20
34605
+ }, {
34606
+ name: t('backoffice.idmCatalog.detailinfos.label.layer.l30'),
34607
+ value: 30
34608
+ }, {
34609
+ name: t('backoffice.idmCatalog.detailinfos.label.layer.l40'),
34610
+ value: 40
34611
+ }, {
34612
+ name: t('backoffice.idmCatalog.detailinfos.label.layer.l50'),
34613
+ value: 50
34614
+ }, {
34615
+ name: t('backoffice.idmCatalog.detailinfos.label.layer.l60'),
34616
+ value: 60
34617
+ }];
34618
+ var infoType = [{
34619
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i1'),
34620
+ value: 1
34621
+ }, {
34622
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i2'),
34623
+ value: 2
34624
+ }, {
34625
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i3'),
34626
+ value: 3
34627
+ }, {
34628
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i4'),
34629
+ value: 4
34630
+ }, {
34631
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i5'),
34632
+ value: 5
34633
+ }, {
34634
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i6'),
34635
+ value: 6
34636
+ }, {
34637
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i7'),
34638
+ value: 7
34639
+ }, {
34640
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i8'),
34641
+ value: 8
34642
+ }, {
34643
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i9'),
34644
+ value: 9
34645
+ }, {
34646
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i10'),
34647
+ value: 10
34648
+ }, {
34649
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i11'),
34650
+ value: 11
34651
+ }, {
34652
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i12'),
34653
+ value: 12
34654
+ }, {
34655
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i13'),
34656
+ value: 13
34657
+ }, {
34658
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i14'),
34659
+ value: 14
34660
+ }];
34661
+ var _React$useState = React.useState(),
34662
+ _React$useState2 = _slicedToArray(_React$useState, 2),
34663
+ selectedDetailInfo = _React$useState2[0],
34664
+ setSelectedDetailInfo = _React$useState2[1];
34665
+ useEffect(function () {
34666
+ root.contentStore.bottomToolBar.tools = [];
34667
+ return function () {
34668
+ root.contentStore.bottomToolBar.tools = [];
34669
+ };
34670
+ }, [selectedDetailInfo]);
34671
+ var applicationData = useMemo(function () {
34672
+ return {
34673
+ catalogId: catalogId,
34674
+ organizationId: organizationId
34675
+ };
34676
+ }, [catalogId]);
34677
+ return /*#__PURE__*/jsxs(Fragment, {
34678
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
34679
+ title: /*#__PURE__*/jsxs("div", {
34680
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos'), /*#__PURE__*/jsx(Space$1, {
34681
+ style: {
34682
+ "float": 'right'
34683
+ },
34684
+ children: /*#__PURE__*/jsx(CatalogSelector, {
34685
+ organizationId: organizationId,
34686
+ selectedCatalog: catalogId,
34687
+ setSelectedCatalog: function setSelectedCatalog(id) {
34688
+ return updateNavigation(id);
34689
+ },
34690
+ idmService: apiConfig.idmService
34691
+ })
34692
+ })]
34693
+ })
34694
+ }), /*#__PURE__*/jsx(Spreadsheet, {
34695
+ gridId: 'crud-grid_series',
34696
+ applicationData: applicationData,
34697
+ hooks: {
34698
+ onCellSelectionChanged: function onCellSelectionChanged(event) {
34699
+ if (event.selection.length == 1) {
34700
+ setSelectedDetailInfo(event.selection[0].node.data);
34701
+ } else {
34702
+ setSelectedDetailInfo(null);
34703
+ }
34704
+ }
34705
+ },
34706
+ configuration: {
34707
+ type: 'dotnetSSM',
34708
+ apiInterface: {
34709
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos',
34710
+ create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos',
34711
+ restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos/${_id}',
34712
+ "delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos/${_id}',
34713
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos/${_id}'
34714
+ },
34715
+ dateFormat: 'LL',
34716
+ colDef: [{
34717
+ field: 'detailInfoNo',
34718
+ headerName: 'backoffice.idmCatalog.detailinfos.label.detailInfoNo',
34719
+ required: true,
34720
+ cellDataType: 'number'
34721
+ }, {
34722
+ headerName: 'backoffice.idmCatalog.detailinfos.label.externalName',
34723
+ marryChildren: true,
34724
+ children: [{
34725
+ field: 'externalName.DE',
34726
+ headerName: 'backoffice.idmEnricher.general.label.DE',
34727
+ isDictionary: true,
34728
+ required: true
34729
+ }, {
34730
+ field: 'externalName.EN',
34731
+ headerName: 'backoffice.idmEnricher.general.label.EN',
34732
+ isDictionary: true
34733
+ }, {
34734
+ field: 'externalName.FR',
34735
+ headerName: 'backoffice.idmEnricher.general.label.FR',
34736
+ isDictionary: true
34737
+ }, {
34738
+ field: 'externalName.IT',
34739
+ headerName: 'backoffice.idmEnricher.general.label.IT',
34740
+ isDictionary: true
34741
+ }]
34742
+ }, {
34743
+ headerName: 'backoffice.idmCatalog.detailinfos.label.internalName',
34744
+ marryChildren: true,
34745
+ children: [{
34746
+ field: 'internalName.DE',
34747
+ headerName: 'backoffice.idmEnricher.general.label.DE',
34748
+ isDictionary: true,
34749
+ required: true
34750
+ }, {
34751
+ field: 'internalName.EN',
34752
+ headerName: 'backoffice.idmEnricher.general.label.EN',
34753
+ isDictionary: true
34754
+ }, {
34755
+ field: 'internalName.FR',
34756
+ headerName: 'backoffice.idmEnricher.general.label.FR',
34757
+ isDictionary: true
34758
+ }, {
34759
+ field: 'internalName.IT',
34760
+ headerName: 'backoffice.idmEnricher.general.label.IT',
34761
+ isDictionary: true
34762
+ }]
34763
+ }, {
34764
+ headerName: 'backoffice.idmCatalog.detailinfos.label.toolTip',
34765
+ marryChildren: true,
34766
+ children: [{
34767
+ field: 'toolTip.DE',
34768
+ headerName: 'backoffice.idmEnricher.general.label.DE',
34769
+ isDictionary: true,
34770
+ required: true
34771
+ }, {
34772
+ field: 'toolTip.EN',
34773
+ headerName: 'backoffice.idmEnricher.general.label.EN',
34774
+ isDictionary: true
34775
+ }, {
34776
+ field: 'toolTip.FR',
34777
+ headerName: 'backoffice.idmEnricher.general.label.FR',
34778
+ isDictionary: true
34779
+ }, {
34780
+ field: 'toolTip.IT',
34781
+ headerName: 'backoffice.idmEnricher.general.label.IT',
34782
+ isDictionary: true
34783
+ }]
34784
+ }, {
34785
+ field: 'url',
34786
+ headerName: 'backoffice.idmCatalog.detailinfos.label.url',
34787
+ required: true
34788
+ }, {
34789
+ field: 'classification',
34790
+ headerName: 'backoffice.idmCatalog.detailinfos.label.classification',
34791
+ required: true
34792
+ }, {
34793
+ field: 'mediaType',
34794
+ headerName: 'backoffice.idmCatalog.detailinfos.label.mediaType'
34795
+ }, {
34796
+ field: 'functionType',
34797
+ headerName: 'backoffice.idmCatalog.detailinfos.label.functionType'
34798
+ }, {
34799
+ field: 'infoType',
34800
+ headerName: 'backoffice.idmCatalog.detailinfos.label.infoType',
34801
+ required: true,
34802
+ cellDataType: 'enum',
34803
+ customParams: {
34804
+ enumData: infoType,
34805
+ displayLabelTemplate: '${name} (${value})'
34806
+ }
34807
+ }, {
34808
+ field: 'layer',
34809
+ headerName: 'backoffice.idmCatalog.detailinfos.label.layer',
34810
+ cellDataType: 'enum',
34811
+ customParams: {
34812
+ enumData: layerId,
34813
+ displayLabelTemplate: '${name} (${value})'
34814
+ }
34815
+ }, {
34816
+ field: 'isoLanguageId',
34817
+ headerName: 'backoffice.idmCatalog.detailinfos.label.isoLanguageId',
34818
+ required: true
34819
+ }, {
34820
+ field: 'hashValue',
34821
+ headerName: 'backoffice.idmCatalog.detailinfos.label.hashValue',
34822
+ required: true
34823
+ }, {
34824
+ field: 'error',
34825
+ headerName: 'backoffice.idmCatalog.detailinfos.label.error'
34826
+ }, {
34827
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
34828
+ field: 'lastUpdatedDate',
34829
+ cellDataType: 'dateString',
34830
+ editable: false
34831
+ }, {
34832
+ headerName: 'backoffice.idmCatalog.general.label.createdDate',
34833
+ field: 'createdDate',
34834
+ cellDataType: 'dateString',
34835
+ editable: false
34836
+ }, {
34837
+ headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
34838
+ field: 'createdByDisplayText',
34839
+ editable: false
34840
+ }, {
34841
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
34842
+ field: 'lastUpdatedByDisplayText',
34843
+ editable: false
34844
+ }, {
34845
+ headerName: 'backoffice.idmCatalog.general.label._id',
34846
+ field: '_id',
34847
+ editable: false
34848
+ }, {
34849
+ headerName: 'backoffice.idmCatalog.detailinfos.label.mediaItemId',
34850
+ field: 'mediaItemId'
34851
+ }, {
34852
+ headerName: 'backoffice.idmCatalog.detailinfos.label.mediaItemRefId',
34853
+ field: 'mediaItemRefId'
34854
+ }, {
34855
+ field: 'organizationId',
34856
+ editable: false,
34857
+ hide: true,
34858
+ lockVisible: true,
34859
+ suppressColumnsToolPanel: true,
34860
+ defaultValue: '${organizationId}'
34861
+ }, {
34862
+ field: 'catalogId',
34863
+ editable: false,
34864
+ hide: true,
34865
+ lockVisible: true,
34866
+ suppressColumnsToolPanel: true,
34867
+ defaultValue: '${catalogId}'
34868
+ }]
34869
+ }
34870
+ })]
34871
+ });
34872
+ }
34873
+
34580
34874
  function IDMCatalogEditor (_ref) {
34581
34875
  _objectDestructuringEmpty(_ref);
34582
34876
  return /*#__PURE__*/jsx("div", {
@@ -34612,6 +34906,9 @@ function Content$1() {
34612
34906
  }), /*#__PURE__*/jsx(Route, {
34613
34907
  path: ":catalogId/decisions",
34614
34908
  element: /*#__PURE__*/jsx(TableDecisions, {})
34909
+ }), /*#__PURE__*/jsx(Route, {
34910
+ path: ":catalogId/detailinfos",
34911
+ element: /*#__PURE__*/jsx(TableDetailInfos, {})
34615
34912
  })]
34616
34913
  });
34617
34914
  }
@@ -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;AAQxD,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;AASxD,UAAU,KAAK;IACb,aAAa,EAAE,6BAA6B,CAAC;IAC7C,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/IDMCatalogEditor/modules/TableDetailInfos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AASlD,MAAM,CAAC,OAAO,gCA4Rb"}
@@ -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;uCA2E5B,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;uCAqF5B,MAAM,YAAW,MAAM,EAAE;;;;EAmC7C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.1.0-beta.23",
3
+ "version": "25.1.0-beta.24",
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.23",
19
- "@crystaldesign/content-item": "25.1.0-beta.23",
20
- "@crystaldesign/diva-core": "25.1.0-beta.23",
21
- "@crystaldesign/diva-utils": "25.1.0-beta.23",
22
- "@crystaldesign/media-upload": "25.1.0-beta.23",
23
- "@crystaldesign/rtf-editor": "25.1.0-beta.23",
24
- "@crystaldesign/spreadsheet": "25.1.0-beta.23",
18
+ "@crystaldesign/content-box": "25.1.0-beta.24",
19
+ "@crystaldesign/content-item": "25.1.0-beta.24",
20
+ "@crystaldesign/diva-core": "25.1.0-beta.24",
21
+ "@crystaldesign/diva-utils": "25.1.0-beta.24",
22
+ "@crystaldesign/media-upload": "25.1.0-beta.24",
23
+ "@crystaldesign/rtf-editor": "25.1.0-beta.24",
24
+ "@crystaldesign/spreadsheet": "25.1.0-beta.24",
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": "ff53b26885fd17451da28ade846ddad8256aae00"
54
+ "gitHead": "927342e1261ebe315286b38621f3e76d48ad3aa4"
55
55
  }