@crystaldesign/diva-backoffice 24.14.0-beta.2 → 24.14.0-beta.4

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.
@@ -29558,7 +29558,8 @@ function PublishCustomCell (_ref) {
29558
29558
  var data = _ref.data,
29559
29559
  apiConfig = _ref.apiConfig,
29560
29560
  context = _ref.context,
29561
- api = _ref.api;
29561
+ api = _ref.api,
29562
+ node = _ref.node;
29562
29563
  var _useTranslation = useTranslation(),
29563
29564
  t = _useTranslation.t;
29564
29565
  var _React$useState = React.useState(false),
@@ -29573,35 +29574,51 @@ function PublishCustomCell (_ref) {
29573
29574
  while (1) switch (_context.prev = _context.next) {
29574
29575
  case 0:
29575
29576
  isLoading(true);
29577
+ _context.prev = 1;
29576
29578
  if (!publish) {
29577
- _context.next = 6;
29579
+ _context.next = 7;
29578
29580
  break;
29579
29581
  }
29580
- _context.next = 4;
29582
+ _context.next = 5;
29581
29583
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
29582
29584
  update: apiConfig.enricherService + '/packages/${_id}/publish',
29583
29585
  usePut: true
29584
29586
  });
29585
- case 4:
29586
- _context.next = 8;
29587
+ case 5:
29588
+ _context.next = 9;
29587
29589
  break;
29588
- case 6:
29589
- _context.next = 8;
29590
+ case 7:
29591
+ _context.next = 9;
29590
29592
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
29591
29593
  update: apiConfig.enricherService + '/packages/${_id}/unpublish',
29592
29594
  usePut: true
29593
29595
  });
29594
- case 8:
29596
+ case 9:
29595
29597
  context === null || context === void 0 || context.reset({
29596
29598
  context: context,
29597
29599
  api: api
29598
29600
  });
29601
+ _context.next = 15;
29602
+ break;
29603
+ case 12:
29604
+ _context.prev = 12;
29605
+ _context.t0 = _context["catch"](1);
29606
+ context.onError({
29607
+ context: context,
29608
+ api: api,
29609
+ error: _context.t0,
29610
+ errorText: 'Error on publish/unpublish',
29611
+ node: node
29612
+ });
29613
+ case 15:
29614
+ _context.prev = 15;
29599
29615
  isLoading(false);
29600
- case 10:
29616
+ return _context.finish(15);
29617
+ case 18:
29601
29618
  case "end":
29602
29619
  return _context.stop();
29603
29620
  }
29604
- }, _callee);
29621
+ }, _callee, null, [[1, 12, 15, 18]]);
29605
29622
  }));
29606
29623
  return function onChange(_x) {
29607
29624
  return _ref2.apply(this, arguments);
@@ -29891,7 +29908,7 @@ function useModule$1 (currentModules) {
29891
29908
  },
29892
29909
  icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
29893
29910
  label: /*#__PURE__*/jsx(Link, {
29894
- to: 'catalogs/idm/packages/' + packageId + '/renaming/features' + (searchParams ? '?' + searchParams.toString() : ''),
29911
+ to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/features' + (searchParams ? '?' + searchParams.toString() : ''),
29895
29912
  children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
29896
29913
  })
29897
29914
  }, {
@@ -29901,7 +29918,7 @@ function useModule$1 (currentModules) {
29901
29918
  },
29902
29919
  icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
29903
29920
  label: /*#__PURE__*/jsx(Link, {
29904
- to: 'catalogs/idm/packages/' + packageId + '/renaming/options' + (searchParams ? '?' + searchParams.toString() : ''),
29921
+ to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/options' + (searchParams ? '?' + searchParams.toString() : ''),
29905
29922
  children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOption')
29906
29923
  })
29907
29924
  }, {
@@ -29911,7 +29928,7 @@ function useModule$1 (currentModules) {
29911
29928
  },
29912
29929
  icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
29913
29930
  label: /*#__PURE__*/jsx(Link, {
29914
- to: 'catalogs/idm/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
29931
+ to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
29915
29932
  children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
29916
29933
  })
29917
29934
  }
@@ -29933,7 +29950,7 @@ function useModule$1 (currentModules) {
29933
29950
  },
29934
29951
  icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
29935
29952
  label: /*#__PURE__*/jsx(Link, {
29936
- to: 'catalogs/idm/packages/' + packageId + '/tabgroups' + (searchParams ? '?' + searchParams.toString() : ''),
29953
+ to: 'catalogs/idmeditor/packages/' + packageId + '/tabgroups' + (searchParams ? '?' + searchParams.toString() : ''),
29937
29954
  children: t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups')
29938
29955
  })
29939
29956
  }, {
@@ -29963,7 +29980,7 @@ function useModule$1 (currentModules) {
29963
29980
  },
29964
29981
  icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
29965
29982
  label: /*#__PURE__*/jsx(Link, {
29966
- to: 'catalogs/idm/packages/' + packageId + '/exclusivity/efeature' + (searchParams ? '?' + searchParams.toString() : ''),
29983
+ to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/efeature' + (searchParams ? '?' + searchParams.toString() : ''),
29967
29984
  children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
29968
29985
  })
29969
29986
  }, {
@@ -29973,7 +29990,7 @@ function useModule$1 (currentModules) {
29973
29990
  },
29974
29991
  icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
29975
29992
  label: /*#__PURE__*/jsx(Link, {
29976
- to: 'catalogs/idm/packages/' + packageId + '/exclusivity/eoption' + (searchParams ? '?' + searchParams.toString() : ''),
29993
+ to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eoption' + (searchParams ? '?' + searchParams.toString() : ''),
29977
29994
  children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOption')
29978
29995
  })
29979
29996
  }, {
@@ -29983,7 +30000,7 @@ function useModule$1 (currentModules) {
29983
30000
  },
29984
30001
  icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
29985
30002
  label: /*#__PURE__*/jsx(Link, {
29986
- to: 'catalogs/idm/packages/' + packageId + '/exclusivity/eitem' + (searchParams ? '?' + searchParams.toString() : ''),
30003
+ to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eitem' + (searchParams ? '?' + searchParams.toString() : ''),
29987
30004
  children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
29988
30005
  })
29989
30006
  }
@@ -30005,7 +30022,7 @@ function useModule$1 (currentModules) {
30005
30022
  },
30006
30023
  icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
30007
30024
  label: /*#__PURE__*/jsx(Link, {
30008
- to: 'catalogs/idm/packages/' + packageId + '/properties' + (searchParams ? '?' + searchParams.toString() : ''),
30025
+ to: 'catalogs/idmeditor/packages/' + packageId + '/properties' + (searchParams ? '?' + searchParams.toString() : ''),
30009
30026
  children: t('backoffice.menu.items.label.IDMEnricherEditorTableProperties')
30010
30027
  })
30011
30028
  }];
@@ -30148,7 +30165,8 @@ function TableProperties () {
30148
30165
  field: 'name.DE',
30149
30166
  headerName: 'backoffice.idmEnricher.general.label.DE',
30150
30167
  isDictionary: true,
30151
- pinned: true
30168
+ pinned: true,
30169
+ required: true
30152
30170
  }, {
30153
30171
  field: 'name.EN',
30154
30172
  headerName: 'backoffice.idmEnricher.general.label.EN',
@@ -30169,7 +30187,8 @@ function TableProperties () {
30169
30187
  field: 'value.DE',
30170
30188
  headerName: 'backoffice.idmEnricher.general.label.DE',
30171
30189
  isDictionary: true,
30172
- pinned: true
30190
+ pinned: true,
30191
+ required: true
30173
30192
  }, {
30174
30193
  field: 'value.EN',
30175
30194
  headerName: 'backoffice.idmEnricher.general.label.EN',
@@ -32208,11 +32227,14 @@ function TableItems () {
32208
32227
  dateFormat: 'LL',
32209
32228
  floatingFilter: true,
32210
32229
  colDef: [{
32211
- field: 'typeNo'
32230
+ field: 'typeNo',
32231
+ required: true,
32232
+ unique: true
32212
32233
  }, {
32213
32234
  headerName: 'backoffice.idmCatalogEditor.items.label.priceTypeRef',
32214
32235
  field: 'priceTypeRef',
32215
- cellDataType: 'number'
32236
+ cellDataType: 'number',
32237
+ required: true
32216
32238
  }, {
32217
32239
  headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
32218
32240
  field: 'sequenceNo',
@@ -32225,7 +32247,8 @@ function TableItems () {
32225
32247
  children: [{
32226
32248
  field: 'shortText.DE',
32227
32249
  headerName: 'backoffice.idmEnricher.general.label.DE',
32228
- isDictionary: true
32250
+ isDictionary: true,
32251
+ required: true
32229
32252
  }, {
32230
32253
  field: 'shortText.EN',
32231
32254
  headerName: 'backoffice.idmEnricher.general.label.EN',
@@ -32279,7 +32302,8 @@ function TableItems () {
32279
32302
  displayTexts: itemIdentificationDic,
32280
32303
  values: Object.keys(itemIdentificationDic),
32281
32304
  displayLabelTemplate: '${name} (${value})'
32282
- }
32305
+ },
32306
+ required: true
32283
32307
  }]
32284
32308
  }, {
32285
32309
  headerName: 'backoffice.idmCatalog.items.label.common',
@@ -32291,7 +32315,13 @@ function TableItems () {
32291
32315
  displayTexts: typeKeyDic,
32292
32316
  values: Object.keys(typeKeyDic),
32293
32317
  displayLabelTemplate: '${name} (${value})'
32294
- }
32318
+ },
32319
+ required: true
32320
+ }, {
32321
+ headerName: 'backoffice.idmCatalogEditor.items.label.featureClassRefNo',
32322
+ field: 'featureClassRefNo',
32323
+ cellDataType: 'number',
32324
+ required: true
32295
32325
  }, {
32296
32326
  headerName: 'backoffice.idmCatalogEditor.items.label.eClassNo',
32297
32327
  field: 'eClassNo',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,CAAC,OAAO,gCAmXb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,CAAC,OAAO,gCA+Xb"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DivaCustomCellRendererProps } from '@crystaldesign/spreadsheet';
3
3
  import { ApiConfig } from '@crystaldesign/diva-core';
4
- export default function ({ data, apiConfig, context, api }: DivaCustomCellRendererProps<any, any, {
4
+ export default function ({ data, apiConfig, context, api, node }: DivaCustomCellRendererProps<any, any, {
5
5
  apiConfig: ApiConfig;
6
6
  }>): "" | React.JSX.Element;
7
7
  //# sourceMappingURL=PublishCustomCell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublishCustomCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAOzE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAErE,MAAM,CAAC,OAAO,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC,0BA6C1H"}
1
+ {"version":3,"file":"PublishCustomCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAOzE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAErE,MAAM,CAAC,OAAO,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC,0BAkDhI"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,gCAuOb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,gCAyOb"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "24.14.0-beta.2",
3
+ "version": "24.14.0-beta.4",
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": "24.14.0-beta.2",
19
- "@crystaldesign/content-item": "24.14.0-beta.2",
20
- "@crystaldesign/diva-core": "24.14.0-beta.2",
21
- "@crystaldesign/diva-utils": "24.14.0-beta.2",
22
- "@crystaldesign/media-upload": "24.14.0-beta.2",
23
- "@crystaldesign/rtf-editor": "24.14.0-beta.2",
24
- "@crystaldesign/spreadsheet": "24.14.0-beta.2",
18
+ "@crystaldesign/content-box": "24.14.0-beta.4",
19
+ "@crystaldesign/content-item": "24.14.0-beta.4",
20
+ "@crystaldesign/diva-core": "24.14.0-beta.4",
21
+ "@crystaldesign/diva-utils": "24.14.0-beta.4",
22
+ "@crystaldesign/media-upload": "24.14.0-beta.4",
23
+ "@crystaldesign/rtf-editor": "24.14.0-beta.4",
24
+ "@crystaldesign/spreadsheet": "24.14.0-beta.4",
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": "bf4dd1179781c57cd7497f5e89a25e1b68cb9f98"
54
+ "gitHead": "ad7372f08ba6790c647237701b79c907ebb72ba1"
55
55
  }