impaktapps-ui-builder 1.0.306 → 1.0.307
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 +17 -17
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -2
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +2 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +5 -2
- package/src/impaktapps-ui-builder/builder/services/event.ts +5 -9
|
@@ -7926,7 +7926,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7926
7926
|
elements: elements || []
|
|
7927
7927
|
};
|
|
7928
7928
|
};
|
|
7929
|
-
const getTextArea = (scope, heading, hideButton, layout
|
|
7929
|
+
const getTextArea = (scope, heading, hideButton, layout) => {
|
|
7930
7930
|
return {
|
|
7931
7931
|
type: "Control",
|
|
7932
7932
|
scope: `#/properties/${scope}`,
|
|
@@ -7939,8 +7939,7 @@ const getTextArea = (scope, heading, hideButton, layout, defaultValue) => {
|
|
|
7939
7939
|
label: heading,
|
|
7940
7940
|
minRows: 8,
|
|
7941
7941
|
hideButton,
|
|
7942
|
-
enableCodeEditor: true
|
|
7943
|
-
defaultValue
|
|
7942
|
+
enableCodeEditor: true
|
|
7944
7943
|
}
|
|
7945
7944
|
}
|
|
7946
7945
|
};
|
|
@@ -8947,7 +8946,7 @@ const sectionLabels = {
|
|
|
8947
8946
|
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8948
8947
|
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8949
8948
|
};
|
|
8950
|
-
function refreshPage(type, store2) {
|
|
8949
|
+
function refreshPage(type, store2, formdata) {
|
|
8951
8950
|
var _a, _b;
|
|
8952
8951
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8953
8952
|
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
@@ -8962,6 +8961,9 @@ function refreshPage(type, store2) {
|
|
|
8962
8961
|
Validation: ValidationSection
|
|
8963
8962
|
};
|
|
8964
8963
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8964
|
+
if (!(formdata == null ? void 0 : formdata.eventCode)) {
|
|
8965
|
+
store2.setFormdata((prev) => ({ ...prev, style: {} }));
|
|
8966
|
+
}
|
|
8965
8967
|
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8966
8968
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8967
8969
|
}
|
|
@@ -9108,7 +9110,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9108
9110
|
store2.setFormdata(formdata);
|
|
9109
9111
|
const schema2 = this.getSchema();
|
|
9110
9112
|
store2.setSchema(schema2);
|
|
9111
|
-
this.refreshPage(formdata == null ? void 0 : formdata.type, store2);
|
|
9113
|
+
this.refreshPage(formdata == null ? void 0 : formdata.type, store2, formdata);
|
|
9112
9114
|
},
|
|
9113
9115
|
refreshPage,
|
|
9114
9116
|
getFormdata: function() {
|
|
@@ -10207,7 +10209,7 @@ const APISection = {
|
|
|
10207
10209
|
}
|
|
10208
10210
|
]
|
|
10209
10211
|
},
|
|
10210
|
-
getTextArea("apiBody", "Transformer", true, 12
|
|
10212
|
+
getTextArea("apiBody", "Transformer", true, 12)
|
|
10211
10213
|
]
|
|
10212
10214
|
};
|
|
10213
10215
|
const refreshSectionUiSchema = {
|
|
@@ -10271,10 +10273,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10271
10273
|
const schema2 = await this.getSchema();
|
|
10272
10274
|
console.log("SettingSchema>>", schema2);
|
|
10273
10275
|
store2.setSchema(schema2);
|
|
10274
|
-
this.refreshPage(formdata.Handler, store2);
|
|
10276
|
+
this.refreshPage(formdata.Handler, store2, formdata);
|
|
10275
10277
|
},
|
|
10276
|
-
refreshPage: (handlerType, store22) => {
|
|
10277
|
-
var _a, _b, _c
|
|
10278
|
+
refreshPage: (handlerType, store22, formdata) => {
|
|
10279
|
+
var _a, _b, _c;
|
|
10278
10280
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
10279
10281
|
const schema2 = _.cloneDeep(EventSchema);
|
|
10280
10282
|
if (handlerType) {
|
|
@@ -10299,11 +10301,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10299
10301
|
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
10300
10302
|
"eventCode",
|
|
10301
10303
|
"Write Custom Code",
|
|
10302
|
-
false
|
|
10303
|
-
void 0,
|
|
10304
|
-
boilerplate
|
|
10304
|
+
false
|
|
10305
10305
|
);
|
|
10306
|
-
if (!(
|
|
10306
|
+
if (!(formdata == null ? void 0 : formdata.eventCode)) {
|
|
10307
10307
|
store22.setFormdata((prev) => ({ ...prev, eventCode: boilerplate }));
|
|
10308
10308
|
}
|
|
10309
10309
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
@@ -10315,7 +10315,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10315
10315
|
lg: 6
|
|
10316
10316
|
});
|
|
10317
10317
|
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
10318
|
-
if (!(
|
|
10318
|
+
if (!(formdata == null ? void 0 : formdata.apiBody)) {
|
|
10319
10319
|
store22.setFormdata((prev) => ({ ...prev, apiBody: boilerplate }));
|
|
10320
10320
|
}
|
|
10321
10321
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
@@ -10368,9 +10368,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10368
10368
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
10369
10369
|
}
|
|
10370
10370
|
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
10371
|
-
const path = (
|
|
10372
|
-
const id = (
|
|
10373
|
-
let pathArray = [{ label: (
|
|
10371
|
+
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
10372
|
+
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
10373
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
10374
10374
|
if (path) {
|
|
10375
10375
|
const pathArrayAll = path.split(".");
|
|
10376
10376
|
const arr = [];
|