impaktapps-ui-builder 0.0.963-CopyComponent.11 → 0.0.963-CopyComponent.13
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 +15 -10
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +3 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +2 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +2 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +9 -5
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +1 -1
|
@@ -177,7 +177,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
177
177
|
main: {
|
|
178
178
|
onClick: "PasteComponent",
|
|
179
179
|
size: "small",
|
|
180
|
-
icon: "
|
|
180
|
+
icon: "PasteIcon",
|
|
181
181
|
iconLabel: "Paste",
|
|
182
182
|
styleDefault: true
|
|
183
183
|
},
|
|
@@ -309,7 +309,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
309
309
|
main: {
|
|
310
310
|
onClick: "PasteEvent",
|
|
311
311
|
size: "small",
|
|
312
|
-
icon: "
|
|
312
|
+
icon: "PasteIcon",
|
|
313
313
|
iconLabel: "Paste",
|
|
314
314
|
styleDefault: true
|
|
315
315
|
},
|
|
@@ -7199,7 +7199,7 @@ const EventSection = (theme) => {
|
|
|
7199
7199
|
main: {
|
|
7200
7200
|
onClick: "PasteEvent",
|
|
7201
7201
|
size: "small",
|
|
7202
|
-
icon: "
|
|
7202
|
+
icon: "PasteIcon",
|
|
7203
7203
|
iconLabel: "Paste",
|
|
7204
7204
|
styleDefault: true
|
|
7205
7205
|
},
|
|
@@ -7827,7 +7827,7 @@ const TableSection = (theme) => {
|
|
|
7827
7827
|
main: {
|
|
7828
7828
|
onClick: "PasteComponent",
|
|
7829
7829
|
size: "small",
|
|
7830
|
-
icon: "
|
|
7830
|
+
icon: "PasteIcon",
|
|
7831
7831
|
iconLabel: "Paste",
|
|
7832
7832
|
styleDefault: true
|
|
7833
7833
|
},
|
|
@@ -7910,7 +7910,8 @@ const TableSection = (theme) => {
|
|
|
7910
7910
|
main: {
|
|
7911
7911
|
icon: "FileCopyIcon",
|
|
7912
7912
|
onClick: "CopyComponent",
|
|
7913
|
-
styleDefault: true
|
|
7913
|
+
styleDefault: true,
|
|
7914
|
+
disabled: false
|
|
7914
7915
|
}
|
|
7915
7916
|
}
|
|
7916
7917
|
}
|
|
@@ -8336,16 +8337,20 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8336
8337
|
sessionStorage.setItem("rowId", rowId);
|
|
8337
8338
|
store2.updateDialog("popUpEventSection");
|
|
8338
8339
|
},
|
|
8339
|
-
CopyComponent: function() {
|
|
8340
|
+
CopyComponent: function(ComponentUiSchema) {
|
|
8340
8341
|
var _a;
|
|
8341
|
-
lodash.exports.cloneDeep(
|
|
8342
|
-
|
|
8342
|
+
const schema2 = lodash.exports.cloneDeep(ComponentSchema);
|
|
8343
|
+
console.log("schema", schema2);
|
|
8344
|
+
const uiSchema = lodash.exports.cloneDeep(ComponentUiSchema || store2.uiSchema);
|
|
8345
|
+
schema2.properties.CopyComponent.disabled = true;
|
|
8343
8346
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8344
8347
|
const parentPathOfCopiedComponent = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8345
8348
|
const copiedComponentPath = parentPathOfCopiedComponent ? `${parentPathOfCopiedComponent}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
8346
8349
|
const formData = getFormdataFromSessionStorage(copiedComponentPath);
|
|
8347
8350
|
uiSchema.elements[4].config.main.heading = formData.name;
|
|
8351
|
+
uiSchema.elements[1].elements[1].elements[0].elements[4].widget.config.main.disabled = true;
|
|
8348
8352
|
sessionStorage.setItem("copiedConfig", JSON.stringify(formData));
|
|
8353
|
+
store2.setSchema(schema2);
|
|
8349
8354
|
store2.setUiSchema(uiSchema);
|
|
8350
8355
|
},
|
|
8351
8356
|
PasteComponent: function() {
|
|
@@ -8485,7 +8490,7 @@ var pageMaster = (funcParams) => {
|
|
|
8485
8490
|
sessionStorage.setItem("rowId", rowId);
|
|
8486
8491
|
store2.updateDialog("popUpPageMasterEvent");
|
|
8487
8492
|
},
|
|
8488
|
-
CopyComponent: Component(store2, dynamicData2, submitHandler, service2).CopyComponent,
|
|
8493
|
+
CopyComponent: Component(store2, dynamicData2, submitHandler, service2).CopyComponent(store2.uiSchema),
|
|
8489
8494
|
PasteComponent: Component(store2, dynamicData2, submitHandler, service2).PasteComponent,
|
|
8490
8495
|
CopyEvent: Component(store2, dynamicData2, submitHandler, service2).CopyEvent,
|
|
8491
8496
|
PasteEvent: Component(store2, dynamicData2, submitHandler, service2).PasteEvent
|
|
@@ -8687,7 +8692,7 @@ const EventUiSchema = (theme) => {
|
|
|
8687
8692
|
main: {
|
|
8688
8693
|
onClick: "PasteEvent",
|
|
8689
8694
|
size: "small",
|
|
8690
|
-
icon: "
|
|
8695
|
+
icon: "PasteIcon",
|
|
8691
8696
|
iconLabel: "Paste",
|
|
8692
8697
|
styleDefault: true
|
|
8693
8698
|
},
|