impaktapps-ui-builder 0.0.963-copyElement.1003 → 0.0.963-copyElement.1005
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 +3 -3
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +3 -3
|
@@ -8426,7 +8426,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8426
8426
|
sessionStorage.setItem("rowId", rowId);
|
|
8427
8427
|
store2.updateDialog("popUpEventSection");
|
|
8428
8428
|
},
|
|
8429
|
-
CopyComponent: function(paramStore) {
|
|
8429
|
+
CopyComponent: function(paramStore = store2) {
|
|
8430
8430
|
var _a;
|
|
8431
8431
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8432
8432
|
store2.setNotify({
|
|
@@ -8441,13 +8441,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8441
8441
|
const parentPathOfCopiedComponent = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8442
8442
|
const copiedComponentPath = parentPathOfCopiedComponent ? `${parentPathOfCopiedComponent}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
8443
8443
|
const formData = getFormdataFromSessionStorage(copiedComponentPath);
|
|
8444
|
-
uiSchema.elements[4].config.main.heading = `Copied Element: ${formData.name}`;
|
|
8444
|
+
uiSchema.elements[4].elements[1].config.main.heading = `Copied Element: ${formData.name}`;
|
|
8445
8445
|
sessionStorage.setItem("copiedConfig", JSON.stringify(formData));
|
|
8446
8446
|
store2.setSchema(schema2);
|
|
8447
8447
|
store2.setUiSchema(uiSchema);
|
|
8448
8448
|
}
|
|
8449
8449
|
},
|
|
8450
|
-
PasteComponent: function(paramStore) {
|
|
8450
|
+
PasteComponent: function(paramStore = store2) {
|
|
8451
8451
|
var _a;
|
|
8452
8452
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8453
8453
|
const formData = getFormdataFromSessionStorage(path);
|