@ghentcdh/crouton-core 0.0.1-alpha.79 → 0.0.1-alpha.80
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/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3214,6 +3214,9 @@ var injectEnumValues = (columns, enums) => {
|
|
|
3214
3214
|
if (!("emitObject" in options)) options.emitObject = true;
|
|
3215
3215
|
if (!("displayKey" in options)) options.displayKey = "label";
|
|
3216
3216
|
col.fieldInput.options = options;
|
|
3217
|
+
if (options.emitObject !== false && !col.displayKey) {
|
|
3218
|
+
col.displayKey = options.displayKey;
|
|
3219
|
+
}
|
|
3217
3220
|
}
|
|
3218
3221
|
};
|
|
3219
3222
|
|
|
@@ -3687,7 +3690,6 @@ var buildViewsPayload = (config, baseUrl) => {
|
|
|
3687
3690
|
}
|
|
3688
3691
|
])
|
|
3689
3692
|
);
|
|
3690
|
-
const baseAction = `${baseUri}${config.route}`;
|
|
3691
3693
|
return {
|
|
3692
3694
|
id: config.id ?? config.route,
|
|
3693
3695
|
name: config.name,
|
|
@@ -3700,8 +3702,8 @@ var buildViewsPayload = (config, baseUrl) => {
|
|
|
3700
3702
|
operations,
|
|
3701
3703
|
display: config.display,
|
|
3702
3704
|
schemas,
|
|
3703
|
-
actions: resolveActions(
|
|
3704
|
-
tableActions: resolveTableActions(
|
|
3705
|
+
actions: resolveActions(baseUri, config.actions),
|
|
3706
|
+
tableActions: resolveTableActions(baseUri, config.tableActions),
|
|
3705
3707
|
...pickExtensions2(config)
|
|
3706
3708
|
};
|
|
3707
3709
|
};
|
|
@@ -3718,6 +3720,7 @@ var buildSubResourceViewsPayload = (config, sub, baseUrl) => {
|
|
|
3718
3720
|
idField: sub.idField ?? "id",
|
|
3719
3721
|
idType: sub.idType ?? "string",
|
|
3720
3722
|
...sub.modalSize && { modalSize: sub.modalSize },
|
|
3723
|
+
...sub.display && { display: sub.display },
|
|
3721
3724
|
// ponytail: cast because JsonOperationsSchema uses boolean|{security?} but buildSubResourceOperations wants boolean
|
|
3722
3725
|
operations: buildSubResourceOperations(sub.operations, childUri, sub.idField ?? "id"),
|
|
3723
3726
|
schemas: Object.fromEntries(
|