impaktapps-ui-builder 0.0.963-copyElement.1028 → 0.0.963-copyElement.1030
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/impaktapps-ui-builder.es.js +4 -8
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +3 -3
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -3
- package/src/impaktapps-ui-builder/builder/services/event.ts +3 -5
|
@@ -8498,9 +8498,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8498
8498
|
},
|
|
8499
8499
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8500
8500
|
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8501
|
-
const
|
|
8502
|
-
const componentName = completePath[completePath.length - 2];
|
|
8503
|
-
const elementHeading = formData.name ? `Copied Element: ${formData.name}` : `Copied Event: ${componentName} Event Type: ${formData.eventType} `;
|
|
8501
|
+
const elementHeading = formData.name ? `Copied Element: ${formData.name}` : `Event Type: ${formData.eventType} `;
|
|
8504
8502
|
uiSchema.elements[2].elements[1].config.main.heading = elementHeading;
|
|
8505
8503
|
}
|
|
8506
8504
|
};
|
|
@@ -9488,16 +9486,14 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9488
9486
|
...functionsName
|
|
9489
9487
|
];
|
|
9490
9488
|
}
|
|
9489
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
9490
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
|
|
9491
|
+
}
|
|
9491
9492
|
store22.setSchema(schema2);
|
|
9492
9493
|
store22.setUiSchema(uiSchema);
|
|
9493
9494
|
},
|
|
9494
9495
|
getFormData: Component(store2, dynamicData2, submitHandler, service2).getFormdata,
|
|
9495
9496
|
getUiSchema: function() {
|
|
9496
|
-
const UiSchema = _.cloneDeep(EventUiSchema(store2.theme.myTheme));
|
|
9497
|
-
if (sessionStorage.getItem("copiedConfig")) {
|
|
9498
|
-
Component(store2, dynamicData2, submitHandler, service2).ElementPathSetter(UiSchema);
|
|
9499
|
-
}
|
|
9500
|
-
store2.setUiSchema(UiSchema);
|
|
9501
9497
|
return EventUiSchema;
|
|
9502
9498
|
},
|
|
9503
9499
|
getSchema: () => {
|