@crystaldesign/diva-backoffice 25.13.0-beta.46 → 25.13.0-beta.47
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.
package/build/esm/index.js
CHANGED
|
@@ -43543,6 +43543,9 @@ function CollectionMembers(_ref) {
|
|
|
43543
43543
|
var collection = _ref.collection,
|
|
43544
43544
|
organizationId = _ref.organizationId,
|
|
43545
43545
|
apiConfig = _ref.apiConfig;
|
|
43546
|
+
var _useTranslation = useTranslation(),
|
|
43547
|
+
t = _useTranslation.t,
|
|
43548
|
+
i18n = _useTranslation.i18n;
|
|
43546
43549
|
var applicationData = useMemo(function () {
|
|
43547
43550
|
return {
|
|
43548
43551
|
organizationId: organizationId,
|
|
@@ -43582,16 +43585,29 @@ function CollectionMembers(_ref) {
|
|
|
43582
43585
|
lookupValue: 'name',
|
|
43583
43586
|
lookupKey: '_id',
|
|
43584
43587
|
multiple: false,
|
|
43585
|
-
translated: false
|
|
43588
|
+
translated: false,
|
|
43589
|
+
//add it to the row context, so it can be used in the validator but will not be saved to the server
|
|
43590
|
+
additionalMappings: [{
|
|
43591
|
+
lookupField: 'published',
|
|
43592
|
+
targetField: '__diva_context.additionalData.published'
|
|
43593
|
+
}]
|
|
43586
43594
|
},
|
|
43587
43595
|
additionalFields: ['enricherPackageName'],
|
|
43588
|
-
isDictionary: false
|
|
43596
|
+
isDictionary: false,
|
|
43597
|
+
cellValueValidator: function cellValueValidator(_ref2) {
|
|
43598
|
+
var _data$__diva_context;
|
|
43599
|
+
var data = _ref2.data;
|
|
43600
|
+
if (!((_data$__diva_context = data.__diva_context) !== null && _data$__diva_context !== void 0 && (_data$__diva_context = _data$__diva_context.additionalData) !== null && _data$__diva_context !== void 0 && (_data$__diva_context = _data$__diva_context.published) !== null && _data$__diva_context !== void 0 && _data$__diva_context[organizationId])) {
|
|
43601
|
+
return t('backoffice.idmCatalogEditor.collection.enricherPackage.notPublishedError');
|
|
43602
|
+
}
|
|
43603
|
+
return undefined;
|
|
43604
|
+
}
|
|
43589
43605
|
}, {
|
|
43590
43606
|
field: 'serieNos',
|
|
43591
43607
|
headerName: 'backoffice.idmCatalogEditor.collectionmembers.label.serieNos',
|
|
43592
43608
|
cellDataType: 'lookup',
|
|
43593
|
-
editable: function editable(
|
|
43594
|
-
var data =
|
|
43609
|
+
editable: function editable(_ref3) {
|
|
43610
|
+
var data = _ref3.data;
|
|
43595
43611
|
return data.enricherPackageId;
|
|
43596
43612
|
},
|
|
43597
43613
|
customParams: {
|
|
@@ -43619,7 +43635,7 @@ function CollectionMembers(_ref) {
|
|
|
43619
43635
|
cellDataType: 'objectId'
|
|
43620
43636
|
}]
|
|
43621
43637
|
};
|
|
43622
|
-
}, [apiInterface]);
|
|
43638
|
+
}, [apiInterface, i18n.language]);
|
|
43623
43639
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
43624
43640
|
gridId: 'crud-grid_collectionmembers',
|
|
43625
43641
|
applicationData: applicationData,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionMembers.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCollectionEditor/Tables/CollectionMembers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"CollectionMembers.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCollectionEditor/Tables/CollectionMembers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,MAAM,4BAA4B,CAAC;AAEjF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,UAAU,EACV,cAAc,EACd,SAAS,GACV,EAAE;IACD,UAAU,EAAE,GAAG,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC,qBA6FA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "25.13.0-beta.
|
|
3
|
+
"version": "25.13.0-beta.47",
|
|
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.13.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "25.13.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "25.13.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "25.13.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "25.13.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "25.13.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "25.13.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "25.13.0-beta.47",
|
|
19
|
+
"@crystaldesign/content-item": "25.13.0-beta.47",
|
|
20
|
+
"@crystaldesign/diva-core": "25.13.0-beta.47",
|
|
21
|
+
"@crystaldesign/diva-utils": "25.13.0-beta.47",
|
|
22
|
+
"@crystaldesign/media-upload": "25.13.0-beta.47",
|
|
23
|
+
"@crystaldesign/rtf-editor": "25.13.0-beta.47",
|
|
24
|
+
"@crystaldesign/spreadsheet": "25.13.0-beta.47",
|
|
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": "
|
|
54
|
+
"gitHead": "96030d86292ff07de5e5f42a1b99c8482152ab64"
|
|
55
55
|
}
|