@crystaldesign/diva-backoffice 26.12.1 → 26.12.2-rc.1
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 +23 -7
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts +2 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/package.json +12 -12
package/build/esm/index.js
CHANGED
|
@@ -89236,8 +89236,9 @@ function buildPropertyColumn(_ref) {
|
|
|
89236
89236
|
var value = editorKind === 'checkbox' && typeof newValue === 'string' ? decodePropertyValue(encoding, newValue) : newValue;
|
|
89237
89237
|
return encodePropertyValue(encoding, value);
|
|
89238
89238
|
};
|
|
89239
|
-
// The
|
|
89240
|
-
//
|
|
89239
|
+
// The grid edits read-only (readOnlyEdit): ag-grid never calls this valueSetter, a field column stores what the
|
|
89240
|
+
// control hands over. The text editor hands over the valueParser's spelling; the checkbox hands over a raw
|
|
89241
|
+
// boolean, which is why the checkbox column below is a computed one.
|
|
89241
89242
|
var codecColumn = {
|
|
89242
89243
|
headerName: headerLabel,
|
|
89243
89244
|
field: field,
|
|
@@ -89276,8 +89277,23 @@ function buildPropertyColumn(_ref) {
|
|
|
89276
89277
|
};
|
|
89277
89278
|
if (editorKind === 'checkbox') {
|
|
89278
89279
|
return _objectSpread$d(_objectSpread$d({}, codecColumn), {}, {
|
|
89280
|
+
// No field of its own: as a field column it stored the checkbox's raw boolean ({"DE": true}), which a
|
|
89281
|
+
// `== '1'` parser reads as off. Every write of a computed column - checkbox, paste, fill handle, agent - goes
|
|
89282
|
+
// through cellEditToRowUpdate. The colId is the field path, so loading, sorting, filtering and the remembered
|
|
89283
|
+
// column state stay as they were.
|
|
89284
|
+
field: undefined,
|
|
89285
|
+
colId: field,
|
|
89286
|
+
additionalFields: [field].concat(additionalFields),
|
|
89287
|
+
cellEditToRowUpdate: function cellEditToRowUpdate(_ref2) {
|
|
89288
|
+
var _data$translatedProp2;
|
|
89289
|
+
var newValue = _ref2.newValue,
|
|
89290
|
+
data = _ref2.data;
|
|
89291
|
+
// a cleared cell removes the pack's own value, so the inherited one is in force again
|
|
89292
|
+
var encoded = newValue === undefined || newValue === null ? undefined : storedSpellingOf(newValue);
|
|
89293
|
+
if ((data === null || data === void 0 || (_data$translatedProp2 = data.translatedProp) === null || _data$translatedProp2 === void 0 || (_data$translatedProp2 = _data$translatedProp2[key]) === null || _data$translatedProp2 === void 0 ? void 0 : _data$translatedProp2[lang]) === encoded) return undefined;
|
|
89294
|
+
return _defineProperty({}, field, encoded);
|
|
89295
|
+
},
|
|
89279
89296
|
cellDataType: 'boolean',
|
|
89280
|
-
defaultValue: false,
|
|
89281
89297
|
// A checkbox has no expanded editor, so the stored string is otherwise invisible - the tooltip is where
|
|
89282
89298
|
// you see what a flag actually holds when it looks wrong.
|
|
89283
89299
|
tooltipValueGetter: function tooltipValueGetter(params) {
|
|
@@ -103576,7 +103592,7 @@ var TablePackages = observer(function () {
|
|
|
103576
103592
|
var data = _ref.data;
|
|
103577
103593
|
return canEditPackage && !isReleaseWithdrawn(data, organizationId);
|
|
103578
103594
|
}, [canEditPackage, organizationId]);
|
|
103579
|
-
// the base of a package is chosen when the row is created;
|
|
103595
|
+
// the base package of a package is chosen when the row is created; its lookup stays editable on new rows only
|
|
103580
103596
|
var isNewRow = useCallback(function (params) {
|
|
103581
103597
|
var _params$data;
|
|
103582
103598
|
return !((_params$data = params.data) !== null && _params$data !== void 0 && _params$data._id);
|
|
@@ -103878,11 +103894,11 @@ var TablePackages = observer(function () {
|
|
|
103878
103894
|
headerName: 'backoffice.idmEnricher.packages.label.catalogId',
|
|
103879
103895
|
field: 'basedCatalogId',
|
|
103880
103896
|
cellDataType: 'lookup',
|
|
103897
|
+
// an own package can switch its catalog later on (e.g. to another version of the same catalog, see the filter
|
|
103898
|
+
// below); a foreign row is never written to - its first edit derives a package that is based on a package
|
|
103881
103899
|
editable: function editable(_ref8) {
|
|
103882
103900
|
var data = _ref8.data;
|
|
103883
|
-
return
|
|
103884
|
-
data: data
|
|
103885
|
-
}) && !data.basedPackageId;
|
|
103901
|
+
return !isForeignPackage(data, organizationId) && !data.basedPackageId;
|
|
103886
103902
|
},
|
|
103887
103903
|
customParams: {
|
|
103888
103904
|
filterCellType: 'objectId',
|
|
@@ -11,11 +11,11 @@ export interface AccessoryCell {
|
|
|
11
11
|
typeNo: string;
|
|
12
12
|
/** Whether the relation is active at all - the checkbox of the grid cell. */
|
|
13
13
|
active: boolean;
|
|
14
|
-
/**
|
|
14
|
+
/** Pflichtanzahl, published as MANDATORY_QUANTITY - the binding minimum in the planner. */
|
|
15
15
|
mandatoryQuantity?: number;
|
|
16
16
|
/** IDM set (MANDATORY_ITEM_GROUP.SET_NO) the mandatory reference belongs to - set iff a quantity is. */
|
|
17
17
|
mandatorySetNo?: number;
|
|
18
|
-
/**
|
|
18
|
+
/** Empfohlene Anzahl, published as OPTIONAL_QUANTITY - a non-binding suggestion, no cap. */
|
|
19
19
|
optionalQuantity?: number;
|
|
20
20
|
/** IDM set (OPTIONAL_ITEM_GROUP.SET_NO) the optional reference belongs to - set iff a quantity is. */
|
|
21
21
|
optionalSetNo?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"additionalItemsCodec.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0FAA0F;AAC1F,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,+EAA+E;AAC/E,eAAO,MAAM,UAAU,IAAI,CAAC;AAE5B,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,MAAM,EAAE,OAAO,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"additionalItemsCodec.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0FAA0F;AAC1F,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,+EAA+E;AAC/E,eAAO,MAAM,UAAU,IAAI,CAAC;AAE5B,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,MAAM,EAAE,OAAO,CAAC;IAChB,2FAA2F;IAC3F,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wGAAwG;IACxG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sGAAsG;IACtG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAgBD,iHAAiH;AACjH,MAAM,WAAW,OAAO;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAcD,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAE3D;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CA6BjF;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EACpC,SAAS,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAC9C,QAAQ,EAAE,MAAM,aAAa,EAC7B,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,iCAuBpC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAqC1H;AAED,yGAAyG;AACzG,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAS7E;AAED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,YAIjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyColumn.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"propertyColumn.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAA2D,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACjH,OAAO,EAML,KAAK,gBAAgB,EAEtB,MAAM,kCAAkC,CAAC;AAG1C,8IAA8I;AAC9I,eAAO,MAAM,oBAAoB,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAA;CASzF,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,8HAA8H;IAC9H,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,EAAE,SAAS,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,kBAAkB,GAAG,UAAU,CAAC,GAAG,CAAC,CAsF1H"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map
CHANGED
|
@@ -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;AA2CpD;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;
|
|
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;AA2CpD;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;CAykBxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "26.12.1",
|
|
3
|
+
"version": "26.12.2-rc.1",
|
|
4
4
|
"description": "Ant Design backoffice shell (configuration modules) and the Diva Data Engine component hosting the IDM and enricher editors.",
|
|
5
5
|
"license": "COMMERCIAL",
|
|
6
6
|
"devDependencies": {
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@ant-design/icons": "6.3.4",
|
|
18
18
|
"@babel/runtime": "7.24.7",
|
|
19
|
-
"@crystaldesign/classification": "26.12.1",
|
|
20
|
-
"@crystaldesign/content-box": "26.12.1",
|
|
21
|
-
"@crystaldesign/content-item": "26.12.1",
|
|
22
|
-
"@crystaldesign/diva-agent": "26.12.1",
|
|
23
|
-
"@crystaldesign/diva-core": "26.12.1",
|
|
24
|
-
"@crystaldesign/diva-utils": "26.12.1",
|
|
25
|
-
"@crystaldesign/mass-configurator": "26.12.1",
|
|
26
|
-
"@crystaldesign/media-upload": "26.12.1",
|
|
27
|
-
"@crystaldesign/rtf-editor": "26.12.1",
|
|
28
|
-
"@crystaldesign/spreadsheet": "26.12.1",
|
|
19
|
+
"@crystaldesign/classification": "26.12.2-rc.1",
|
|
20
|
+
"@crystaldesign/content-box": "26.12.2-rc.1",
|
|
21
|
+
"@crystaldesign/content-item": "26.12.2-rc.1",
|
|
22
|
+
"@crystaldesign/diva-agent": "26.12.2-rc.1",
|
|
23
|
+
"@crystaldesign/diva-core": "26.12.2-rc.1",
|
|
24
|
+
"@crystaldesign/diva-utils": "26.12.2-rc.1",
|
|
25
|
+
"@crystaldesign/mass-configurator": "26.12.2-rc.1",
|
|
26
|
+
"@crystaldesign/media-upload": "26.12.2-rc.1",
|
|
27
|
+
"@crystaldesign/rtf-editor": "26.12.2-rc.1",
|
|
28
|
+
"@crystaldesign/spreadsheet": "26.12.2-rc.1",
|
|
29
29
|
"@dnd-kit/core": "^6.1.0",
|
|
30
30
|
"@dnd-kit/sortable": "^8.0.0",
|
|
31
31
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
},
|
|
60
60
|
"module": "build/esm/index.js",
|
|
61
61
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "48792def9e62b7501d090b883307ce197c283537"
|
|
63
63
|
}
|