@acorex/platform 21.0.0-next.64 → 21.0.0-next.65
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/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +24 -2
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-common.d.ts +1 -1
- package/types/acorex-platform-workflow.d.ts +2 -0
|
@@ -17371,15 +17371,37 @@ function mapDelegatedParameterDefinitionsToWidgetProperties(defs) {
|
|
|
17371
17371
|
}
|
|
17372
17372
|
: defaultGroup;
|
|
17373
17373
|
const defaultStr = d.defaultValue !== undefined && d.defaultValue !== null ? String(d.defaultValue) : undefined;
|
|
17374
|
+
const title = (d.title?.trim() || d.name);
|
|
17375
|
+
const desc = typeof d.description === 'string' ? d.description.trim() : '';
|
|
17376
|
+
const widgetType = d.interface?.name?.trim() ? d.interface.name.trim() : 'text-editor';
|
|
17377
|
+
if (widgetType !== 'text-editor') {
|
|
17378
|
+
const property = {
|
|
17379
|
+
name: d.name,
|
|
17380
|
+
title,
|
|
17381
|
+
...(desc ? { description: desc } : {}),
|
|
17382
|
+
group,
|
|
17383
|
+
schema: {
|
|
17384
|
+
dataType: 'string',
|
|
17385
|
+
defaultValue: defaultStr,
|
|
17386
|
+
interface: {
|
|
17387
|
+
path: `options.${d.name}`,
|
|
17388
|
+
name: d.name,
|
|
17389
|
+
type: widgetType,
|
|
17390
|
+
options: d.interface?.options ?? {},
|
|
17391
|
+
},
|
|
17392
|
+
},
|
|
17393
|
+
visible: true,
|
|
17394
|
+
};
|
|
17395
|
+
return property;
|
|
17396
|
+
}
|
|
17374
17397
|
const p = createStringProperty({
|
|
17375
17398
|
name: d.name,
|
|
17376
|
-
title
|
|
17399
|
+
title,
|
|
17377
17400
|
path: `options.${d.name}`,
|
|
17378
17401
|
group,
|
|
17379
17402
|
visible: true,
|
|
17380
17403
|
defaultValue: defaultStr,
|
|
17381
17404
|
});
|
|
17382
|
-
const desc = typeof d.description === 'string' ? d.description.trim() : '';
|
|
17383
17405
|
return desc ? { ...p, description: desc } : p;
|
|
17384
17406
|
});
|
|
17385
17407
|
}
|