impaktapps-ui-builder 0.0.963-copyElement.1011 → 0.0.963-copyElement.1013

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.
@@ -8330,7 +8330,11 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8330
8330
  return getFormdataFromSessionStorage(path);
8331
8331
  },
8332
8332
  getSchema: function() {
8333
- return ComponentSchema;
8333
+ const schema2 = _.cloneDeep(ComponentSchema);
8334
+ if (sessionStorage.getItem("copiedConfig")) {
8335
+ schema2.properties.RemoveItemButton.disabled = false;
8336
+ }
8337
+ return schema2;
8334
8338
  },
8335
8339
  okHandler: () => okHandler(store2),
8336
8340
  saveHandler: async () => await saveHandler(store2, service2, submitHandler, "PageMaster"),
@@ -8447,7 +8451,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8447
8451
  store2.setUiSchema(uiSchema);
8448
8452
  }
8449
8453
  },
8450
- PasteComponent: function(paramStore = store2, setPage = this.setPage) {
8454
+ PasteComponent: function(paramStore = store2, setPage = this.setPage.bind(this)) {
8451
8455
  var _a;
8452
8456
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8453
8457
  dynamicData2.path.split(".")[1];
@@ -8532,7 +8536,11 @@ var pageMaster = (funcParams) => {
8532
8536
  return UiSchema;
8533
8537
  },
8534
8538
  getSchema: () => {
8535
- return PageMasterSchema;
8539
+ const schema2 = _.cloneDeep(PageMasterSchema);
8540
+ if (sessionStorage.getItem("copiedConfig")) {
8541
+ schema2.properties.RemoveItemButton.disabled = false;
8542
+ }
8543
+ return schema2;
8536
8544
  },
8537
8545
  backHandler: () => {
8538
8546
  sessionStorage.removeItem("pageFormdata");
@@ -8601,7 +8609,8 @@ var pageMaster = (funcParams) => {
8601
8609
  Component(store2, dynamicData2, submitHandler, service2).CopyComponent(store2);
8602
8610
  },
8603
8611
  PasteComponent: function() {
8604
- Component(store2, dynamicData2, submitHandler, service2).PasteComponent(store2, this.setPage);
8612
+ const component = Component(store2, dynamicData2, submitHandler, service2);
8613
+ component.PasteComponent(store2, this.setPage.bind(this));
8605
8614
  },
8606
8615
  RemoveItemButton: function() {
8607
8616
  Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);