impaktapps-ui-builder 1.0.437 → 1.0.440

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.
@@ -8697,9 +8697,9 @@ var buildConfig = (FormData) => {
8697
8697
  if (formData.events) {
8698
8698
  delete formData.events;
8699
8699
  }
8700
- if (formData.tabLabelsElements) {
8701
- component.tabLabelsElements = formData.tabLabelsElements || [];
8702
- delete formData.tabLabelsElements;
8700
+ if (formData.tabLabelElements) {
8701
+ component.tabLabelElements = formData.tabLabelElements || [];
8702
+ delete formData.tabLabelElements;
8703
8703
  }
8704
8704
  component = { ...formData, ...component };
8705
8705
  return component;
@@ -8907,7 +8907,7 @@ function refreshPage(type, store2) {
8907
8907
  Style: StyleSection,
8908
8908
  Events: EventSection(store2.theme.myTheme),
8909
8909
  Components: TableSection(store2.theme.myTheme),
8910
- TabLebelComponet: TableSection(store2.theme.myTheme, "tabLabelsElements"),
8910
+ TabLebelComponet: TableSection(store2.theme.myTheme, "tabLabelElements"),
8911
8911
  Properties: buildPropertiesSection(type),
8912
8912
  Validation: ValidationSection
8913
8913
  };
@@ -9106,8 +9106,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9106
9106
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9107
9107
  if (path) {
9108
9108
  let finalPath = `${path}`;
9109
- if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabels")) {
9110
- finalPath = `${finalPath}.tabLabelsElements[${rowId}]`;
9109
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9110
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9111
9111
  } else {
9112
9112
  finalPath = `${finalPath}.elements[${rowId}]`;
9113
9113
  }
@@ -9124,7 +9124,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9124
9124
  const rowId = sessionStorage.getItem("rowId");
9125
9125
  const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9126
9126
  if (isTabLabelElements) {
9127
- store2.formData.tabLabelsElements.splice(rowId, 1);
9127
+ store2.formData.tabLabelElements.splice(rowId, 1);
9128
9128
  } else {
9129
9129
  store2.formData.elements.splice(rowId, 1);
9130
9130
  }
@@ -9156,14 +9156,14 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9156
9156
  if (!Array.isArray(store2.formData.elements)) {
9157
9157
  store2.formData.elements = [];
9158
9158
  }
9159
- if (!Array.isArray(store2.formData.tabLabelsElements)) {
9160
- store2.formData.tabLabelsElements = [];
9159
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9160
+ store2.formData.tabLabelElements = [];
9161
9161
  }
9162
9162
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9163
9163
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9164
9164
  let finalPath = `${path}`;
9165
- if (dynamicData2.path.startsWith("tabLabels")) {
9166
- finalPath = `${finalPath}.tabLabelsElements[${store2.formData.tabLabelsElements.length}]`;
9165
+ if (dynamicData2.path.startsWith("tabLabel")) {
9166
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9167
9167
  } else {
9168
9168
  finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9169
9169
  }
@@ -9201,7 +9201,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9201
9201
  deletePopUpComponent: function() {
9202
9202
  const rowId = dynamicData2.path.split(".")[1];
9203
9203
  sessionStorage.setItem("rowId", rowId);
9204
- sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabels") ? "true" : "false");
9204
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
9205
9205
  store2.updateDialog("popUpComponentSection");
9206
9206
  },
9207
9207
  deletePopUpEvent: function() {
@@ -9248,13 +9248,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9248
9248
  if (!Array.isArray(store2.formData.events)) {
9249
9249
  store2.formData.events = [];
9250
9250
  }
9251
- if (!Array.isArray(store2.formData.tabLabelsElements)) {
9252
- store2.formData.tabLabelsElements = [];
9251
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9252
+ store2.formData.tabLabelElements = [];
9253
9253
  }
9254
9254
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9255
9255
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9256
9256
  const currentLength = {
9257
- "TabsComponent": formData.tabLabelsElements.length,
9257
+ "TabsComponent": formData.tabLabelElements.length,
9258
9258
  "Component": formData.elements.length,
9259
9259
  "Events": formData.events.length
9260
9260
  };
@@ -9294,7 +9294,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9294
9294
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9295
9295
  }
9296
9296
  if (elementType === "TabsComponent") {
9297
- return `${parentPath}.tabLabelsElements[${rowId}]`;
9297
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9298
9298
  }
9299
9299
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9300
9300
  },
@@ -13684,8 +13684,8 @@ const buildUiSchema = (config2, store2) => {
13684
13684
  });
13685
13685
  }
13686
13686
  }
13687
- if (config2.tabLabelsElements) {
13688
- elements.tabLabelsElements = config2.tabLabelsElements.map((e, elemInd) => {
13687
+ if (config2.tabLabelElements) {
13688
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13689
13689
  return buildUiSchema(e, store2);
13690
13690
  });
13691
13691
  }