impaktapps-ui-builder 0.0.412-mtreemap.35 → 0.0.412-mtreemap.36
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 +10 -10
- 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/services/component.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/event.ts +8 -8
|
@@ -7954,8 +7954,8 @@ const refreshPage = (type, store2) => {
|
|
|
7954
7954
|
Validation: ValidationSection
|
|
7955
7955
|
};
|
|
7956
7956
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
7957
|
-
UiSchema.elements[
|
|
7958
|
-
UiSchema.elements[
|
|
7957
|
+
UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
|
|
7958
|
+
UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
|
|
7959
7959
|
}
|
|
7960
7960
|
store2.setUiSchema(UiSchema);
|
|
7961
7961
|
};
|
|
@@ -8903,20 +8903,20 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8903
8903
|
const schema2 = _.cloneDeep(EventSchema);
|
|
8904
8904
|
if (handlerType) {
|
|
8905
8905
|
if (handlerType === "custom") {
|
|
8906
|
-
uiSchema.elements[
|
|
8907
|
-
uiSchema.elements[
|
|
8906
|
+
uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
|
|
8907
|
+
uiSchema.elements[1].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
|
|
8908
8908
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
8909
8909
|
} else if (handlerType === "api") {
|
|
8910
|
-
uiSchema.elements[
|
|
8911
|
-
uiSchema.elements[
|
|
8910
|
+
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
8911
|
+
uiSchema.elements[1].elements[0].elements[3] = APISection;
|
|
8912
8912
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
8913
8913
|
} else if (handlerType === "inBuiltFunction") {
|
|
8914
|
-
uiSchema.elements[
|
|
8915
|
-
uiSchema.elements[
|
|
8914
|
+
uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
|
|
8915
|
+
uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
|
|
8916
8916
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
8917
8917
|
} else if (handlerType === "refresh") {
|
|
8918
|
-
uiSchema.elements[
|
|
8919
|
-
uiSchema.elements[
|
|
8918
|
+
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
8919
|
+
uiSchema.elements[1].elements[0].elements[3] = refreshSectionUiSchema;
|
|
8920
8920
|
schema2.properties.refreshElements.required = ["value"];
|
|
8921
8921
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
8922
8922
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|