@crystaldesign/diva-backoffice 26.12.0-beta.2 → 26.12.0-beta.3

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.
@@ -38126,6 +38126,21 @@ var TablePackages = observer(function () {
38126
38126
  field: "published.".concat(organizationId, ".publishedByDisplayText"),
38127
38127
  editable: false,
38128
38128
  isDictionary: 1
38129
+ }, {
38130
+ // computed by the package list endpoint, not stored - so it can neither be sorted nor filtered server-side
38131
+ headerName: 'backoffice.idmEnricher.packages.label.usedInCollections',
38132
+ field: 'usedInCollections',
38133
+ editable: false,
38134
+ sortable: false,
38135
+ filter: false,
38136
+ valueGetter: function valueGetter(_ref12) {
38137
+ var _data$usedInCollectio;
38138
+ var data = _ref12.data;
38139
+ return ((_data$usedInCollectio = data === null || data === void 0 ? void 0 : data.usedInCollections) !== null && _data$usedInCollectio !== void 0 ? _data$usedInCollectio : []).map(function (c) {
38140
+ var _c$name;
38141
+ return DivaUtils.getLocals((_c$name = c.name) !== null && _c$name !== void 0 ? _c$name : {}, i18n.language);
38142
+ }).filter(Boolean).join(', ');
38143
+ }
38129
38144
  }, {
38130
38145
  headerName: 'backoffice.idmEnricher.general.label._id',
38131
38146
  field: '_id',
@@ -54881,11 +54896,19 @@ function TableCollections () {
54881
54896
  },
54882
54897
  onDataUpdated: function onDataUpdated(_ref) {
54883
54898
  var updates = _ref.updates;
54899
+ // a removed row has no node any more when the hook fires; its data still carries the id (the row id of this grid)
54884
54900
  var current = updates.find(function (update) {
54885
- return update.node.id == selectedNodeId;
54901
+ var _update$node;
54902
+ return ((_update$node = update.node) === null || _update$node === void 0 ? void 0 : _update$node.id) && update.node.id == selectedNodeId;
54886
54903
  });
54887
54904
  if (current) {
54888
54905
  setSelectedCollection(current.data);
54906
+ } else if (updates.some(function (update) {
54907
+ var _update$data;
54908
+ return !update.node && ((_update$data = update.data) === null || _update$data === void 0 ? void 0 : _update$data._id) == selectedNodeId;
54909
+ })) {
54910
+ setSelectedCollection(undefined);
54911
+ setSelectedNodeId(undefined);
54889
54912
  }
54890
54913
  }
54891
54914
  };
@@ -54912,6 +54935,12 @@ function TableCollections () {
54912
54935
  cellDataType: 'boolean',
54913
54936
  editable: true,
54914
54937
  defaultValue: true
54938
+ }, {
54939
+ // set by the publish for the collection it creates automatically for the manufacturer of a catalog
54940
+ headerName: 'backoffice.idmEnricher.collections.label.isSupplierCollection',
54941
+ field: 'isSupplierCollection',
54942
+ cellDataType: 'boolean',
54943
+ editable: false
54915
54944
  }, {
54916
54945
  headerName: 'backoffice.idmEnricher.collections.label.name',
54917
54946
  marryChildren: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCollectionEditor/modules/TableCollections/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AASlD,MAAM,CAAC,OAAO,gCA4Mb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCollectionEditor/modules/TableCollections/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AASlD,MAAM,CAAC,OAAO,gCAuNb"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAgCpD,eAAO,MAAM,aAAa;;CAwdxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAiCpD,eAAO,MAAM,aAAa;;CAqexB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "26.12.0-beta.2",
3
+ "version": "26.12.0-beta.3",
4
4
  "description": "Ant Design backoffice shell: configuration plus the IDM and enricher editors.",
5
5
  "license": "COMMERCIAL",
6
6
  "devDependencies": {
@@ -16,14 +16,14 @@
16
16
  "dependencies": {
17
17
  "@ant-design/icons": "6.3.4",
18
18
  "@babel/runtime": "7.24.7",
19
- "@crystaldesign/content-box": "26.12.0-beta.2",
20
- "@crystaldesign/content-item": "26.12.0-beta.2",
21
- "@crystaldesign/diva-agent": "26.12.0-beta.2",
22
- "@crystaldesign/diva-core": "26.12.0-beta.2",
23
- "@crystaldesign/diva-utils": "26.12.0-beta.2",
24
- "@crystaldesign/media-upload": "26.12.0-beta.2",
25
- "@crystaldesign/rtf-editor": "26.12.0-beta.2",
26
- "@crystaldesign/spreadsheet": "26.12.0-beta.2",
19
+ "@crystaldesign/content-box": "26.12.0-beta.3",
20
+ "@crystaldesign/content-item": "26.12.0-beta.3",
21
+ "@crystaldesign/diva-agent": "26.12.0-beta.3",
22
+ "@crystaldesign/diva-core": "26.12.0-beta.3",
23
+ "@crystaldesign/diva-utils": "26.12.0-beta.3",
24
+ "@crystaldesign/media-upload": "26.12.0-beta.3",
25
+ "@crystaldesign/rtf-editor": "26.12.0-beta.3",
26
+ "@crystaldesign/spreadsheet": "26.12.0-beta.3",
27
27
  "@dnd-kit/core": "^6.1.0",
28
28
  "@dnd-kit/sortable": "^8.0.0",
29
29
  "@dnd-kit/utilities": "^3.2.2",
@@ -57,5 +57,5 @@
57
57
  },
58
58
  "module": "build/esm/index.js",
59
59
  "types": "./build/types/backoffice/src/index.d.ts",
60
- "gitHead": "8d5d90340389f63400e7132ee77ae87d970da4c9"
60
+ "gitHead": "312438387ce4d1fe172606411bdd40d1fa3653ff"
61
61
  }