@pega/dx-component-builder-sdk 0.1.46 → 0.1.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/package.json
CHANGED
|
@@ -213,10 +213,10 @@ export const validateCompileAll = async (
|
|
|
213
213
|
const type = "Widget";
|
|
214
214
|
const subtype = COMPONENT_SCHEMA.subtype.widget[widgetIdx].value;
|
|
215
215
|
const prefixNoSpace = prefix.replace(/\s+/g, '');
|
|
216
|
-
let widgetNameOriginal = COMPONENT_SCHEMA.subtype.
|
|
216
|
+
let widgetNameOriginal = COMPONENT_SCHEMA.subtype.widget[widgetIdx].name;
|
|
217
217
|
let widgetName = convertIntoPascalCase(COMPONENT_SCHEMA.subtype.widget[widgetIdx].name).concat("Widget");
|
|
218
218
|
let widgetLabel = convertIntoPascalCase(COMPONENT_SCHEMA.subtype.widget[widgetIdx].name).concat(" Widget");
|
|
219
|
-
if (
|
|
219
|
+
if (widgetName.indexOf("&") >= 0) {
|
|
220
220
|
widgetName = convertIntoPascalCase(widgetNameOriginal.replace(" & ", ""));
|
|
221
221
|
}
|
|
222
222
|
const componentName = "".concat(prefixNoSpace).concat(widgetName);
|