impaktapps-ui-builder 0.0.412-mtreemap.35 → 0.0.412-mtreemap.37
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 +14 -16
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +1 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +1 -2
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/event.ts +8 -8
|
@@ -6399,11 +6399,10 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6399
6399
|
heading: " "
|
|
6400
6400
|
},
|
|
6401
6401
|
style: {
|
|
6402
|
-
|
|
6402
|
+
marginLeft: theme.Spacing(2),
|
|
6403
6403
|
width: "auto",
|
|
6404
6404
|
fontSize: "12px",
|
|
6405
|
-
color: "gray"
|
|
6406
|
-
paddingTop: "10px"
|
|
6405
|
+
color: "gray"
|
|
6407
6406
|
}
|
|
6408
6407
|
}
|
|
6409
6408
|
},
|
|
@@ -7954,8 +7953,8 @@ const refreshPage = (type, store2) => {
|
|
|
7954
7953
|
Validation: ValidationSection
|
|
7955
7954
|
};
|
|
7956
7955
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
7957
|
-
UiSchema.elements[
|
|
7958
|
-
UiSchema.elements[
|
|
7956
|
+
UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
|
|
7957
|
+
UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
|
|
7959
7958
|
}
|
|
7960
7959
|
store2.setUiSchema(UiSchema);
|
|
7961
7960
|
};
|
|
@@ -8272,11 +8271,10 @@ const EventUiSchema = (theme) => {
|
|
|
8272
8271
|
heading: " "
|
|
8273
8272
|
},
|
|
8274
8273
|
style: {
|
|
8275
|
-
|
|
8274
|
+
marginLeft: theme.Spacing(2),
|
|
8276
8275
|
width: "auto",
|
|
8277
8276
|
fontSize: "12px",
|
|
8278
|
-
color: "gray"
|
|
8279
|
-
paddingTop: "10px"
|
|
8277
|
+
color: "gray"
|
|
8280
8278
|
}
|
|
8281
8279
|
}
|
|
8282
8280
|
},
|
|
@@ -8903,20 +8901,20 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8903
8901
|
const schema2 = _.cloneDeep(EventSchema);
|
|
8904
8902
|
if (handlerType) {
|
|
8905
8903
|
if (handlerType === "custom") {
|
|
8906
|
-
uiSchema.elements[
|
|
8907
|
-
uiSchema.elements[
|
|
8904
|
+
uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
|
|
8905
|
+
uiSchema.elements[1].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
|
|
8908
8906
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
8909
8907
|
} else if (handlerType === "api") {
|
|
8910
|
-
uiSchema.elements[
|
|
8911
|
-
uiSchema.elements[
|
|
8908
|
+
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
8909
|
+
uiSchema.elements[1].elements[0].elements[3] = APISection;
|
|
8912
8910
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
8913
8911
|
} else if (handlerType === "inBuiltFunction") {
|
|
8914
|
-
uiSchema.elements[
|
|
8915
|
-
uiSchema.elements[
|
|
8912
|
+
uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
|
|
8913
|
+
uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
|
|
8916
8914
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
8917
8915
|
} else if (handlerType === "refresh") {
|
|
8918
|
-
uiSchema.elements[
|
|
8919
|
-
uiSchema.elements[
|
|
8916
|
+
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
8917
|
+
uiSchema.elements[1].elements[0].elements[3] = refreshSectionUiSchema;
|
|
8920
8918
|
schema2.properties.refreshElements.required = ["value"];
|
|
8921
8919
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
8922
8920
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|