impaktapps-ui-builder 0.0.963-copyElement.1000 → 0.0.963-copyElement.1002

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.
@@ -42,9 +42,6 @@ const PageMasterSchema = {
42
42
  },
43
43
  RemoveItemButton: {
44
44
  disabled: true
45
- },
46
- Paste_Icon: {
47
- disabled: true
48
45
  }
49
46
  },
50
47
  required: ["template", "name", "label"]
@@ -6548,9 +6545,6 @@ const ComponentSchema = {
6548
6545
  label: { type: "string" },
6549
6546
  RemoveItemButton: {
6550
6547
  disabled: true
6551
- },
6552
- Paste_Icon: {
6553
- disabled: true
6554
6548
  }
6555
6549
  },
6556
6550
  required: ["name"]
@@ -8316,7 +8310,7 @@ const refreshPage = (type, store2) => {
8316
8310
  }
8317
8311
  if (sessionStorage.getItem("copiedConfig")) {
8318
8312
  const formData = JSON.parse(sessionStorage.getItem("copiedConfig"));
8319
- UiSchema.elements[4].element[1].config.main.heading = `Copied Element: ${formData.name}`;
8313
+ UiSchema.elements[4].elements[1].config.main.heading = `Copied Element: ${formData.name}`;
8320
8314
  }
8321
8315
  store2.setUiSchema(UiSchema);
8322
8316
  };
@@ -8450,6 +8444,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8450
8444
  uiSchema.elements[4].config.main.heading = `Copied Element: ${formData.name}`;
8451
8445
  sessionStorage.setItem("copiedConfig", JSON.stringify(formData));
8452
8446
  store22.setSchema(schema2);
8447
+ store22.setUiSchema(uiSchema);
8453
8448
  }
8454
8449
  },
8455
8450
  PasteComponent: function(store22) {
@@ -8470,6 +8465,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8470
8465
  this.setPage();
8471
8466
  }
8472
8467
  },
8468
+ RemoveItemButton: function(store22) {
8469
+ const schema2 = lodash.exports.cloneDeep(store22.schema);
8470
+ const uiSchema = lodash.exports.cloneDeep(store22.uiSchema);
8471
+ schema2.properties.RemoveItemButton.disabled = true;
8472
+ store22.setSchema(schema2);
8473
+ store22.setUiSchema(uiSchema);
8474
+ },
8473
8475
  CopyEvent: function(store22) {
8474
8476
  var _a;
8475
8477
  const rowId = dynamicData2.path.split(".")[1];
@@ -8524,7 +8526,7 @@ var pageMaster = (funcParams) => {
8524
8526
  const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
8525
8527
  if (sessionStorage.getItem("copiedConfig")) {
8526
8528
  const formData = JSON.parse(sessionStorage.getItem("copiedConfig"));
8527
- UiSchema.elements[2].element[1].config.main.heading = `Copied Element: ${formData.name}`;
8529
+ UiSchema.elements[2].elements[1].config.main.heading = `Copied Element: ${formData.name}`;
8528
8530
  }
8529
8531
  return UiSchema;
8530
8532
  },
@@ -8601,6 +8603,7 @@ var pageMaster = (funcParams) => {
8601
8603
  Component(store2, dynamicData2, submitHandler, service2).PasteComponent(store2);
8602
8604
  },
8603
8605
  RemoveItemButton: function() {
8606
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
8604
8607
  },
8605
8608
  CopyEvent: function() {
8606
8609
  Component(store2, dynamicData2, submitHandler, service2).CopyEvent(store2);