impaktapps-ui-builder 0.0.963-copyElement.1001 → 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"]
@@ -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];
@@ -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);