impaktapps-ui-builder 1.0.437 → 1.0.438
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.
- package/dist/impaktapps-ui-builder.es.js +15 -15
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/component.ts +10 -10
|
@@ -8697,9 +8697,9 @@ var buildConfig = (FormData) => {
|
|
|
8697
8697
|
if (formData.events) {
|
|
8698
8698
|
delete formData.events;
|
|
8699
8699
|
}
|
|
8700
|
-
if (formData.
|
|
8701
|
-
component.
|
|
8702
|
-
delete formData.
|
|
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, "
|
|
8910
|
+
TabLebelComponet: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8911
8911
|
Properties: buildPropertiesSection(type),
|
|
8912
8912
|
Validation: ValidationSection
|
|
8913
8913
|
};
|
|
@@ -9107,7 +9107,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9107
9107
|
if (path) {
|
|
9108
9108
|
let finalPath = `${path}`;
|
|
9109
9109
|
if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabels")) {
|
|
9110
|
-
finalPath = `${finalPath}.
|
|
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.
|
|
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.
|
|
9160
|
-
store2.formData.
|
|
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
9165
|
if (dynamicData2.path.startsWith("tabLabels")) {
|
|
9166
|
-
finalPath = `${finalPath}.
|
|
9166
|
+
finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
|
|
9167
9167
|
} else {
|
|
9168
9168
|
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9169
9169
|
}
|
|
@@ -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.
|
|
9252
|
-
store2.formData.
|
|
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.
|
|
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}.
|
|
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.
|
|
13688
|
-
elements.
|
|
13687
|
+
if (config2.tabLabelElements) {
|
|
13688
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13689
13689
|
return buildUiSchema(e, store2);
|
|
13690
13690
|
});
|
|
13691
13691
|
}
|