impaktapps-ui-builder 0.0.963-CopyComponent.11 → 0.0.963-CopyComponent.12

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.
@@ -177,7 +177,7 @@ const PageMasterUiSchema = (theme) => {
177
177
  main: {
178
178
  onClick: "PasteComponent",
179
179
  size: "small",
180
- icon: "SendIcon",
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: "SendIcon",
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: "SendIcon",
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: "SendIcon",
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
  }
@@ -8338,13 +8339,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8338
8339
  },
8339
8340
  CopyComponent: function() {
8340
8341
  var _a;
8341
- lodash.exports.cloneDeep(store2.schema);
8342
8342
  const uiSchema = lodash.exports.cloneDeep(store2.uiSchema);
8343
8343
  const rowId = dynamicData2.path.split(".")[1];
8344
8344
  const parentPathOfCopiedComponent = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8345
8345
  const copiedComponentPath = parentPathOfCopiedComponent ? `${parentPathOfCopiedComponent}.elements[${rowId}]` : `elements[${rowId}]`;
8346
8346
  const formData = getFormdataFromSessionStorage(copiedComponentPath);
8347
8347
  uiSchema.elements[4].config.main.heading = formData.name;
8348
+ uiSchema.elements[1].elements[1].elements[0].elements[4].widget.config.main.disabled = true;
8348
8349
  sessionStorage.setItem("copiedConfig", JSON.stringify(formData));
8349
8350
  store2.setUiSchema(uiSchema);
8350
8351
  },
@@ -8687,7 +8688,7 @@ const EventUiSchema = (theme) => {
8687
8688
  main: {
8688
8689
  onClick: "PasteEvent",
8689
8690
  size: "small",
8690
- icon: "SendIcon",
8691
+ icon: "PasteIcon",
8691
8692
  iconLabel: "Paste",
8692
8693
  styleDefault: true
8693
8694
  },