impaktapps-ui-builder 0.0.412-mtreemap.34 → 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 +50 -10
- 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 +20 -74
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +21 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/event.ts +8 -8
|
@@ -6387,6 +6387,26 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6387
6387
|
type: "HorizontalLayout",
|
|
6388
6388
|
heading: "Component",
|
|
6389
6389
|
elements: [
|
|
6390
|
+
{
|
|
6391
|
+
type: "Control",
|
|
6392
|
+
scope: "#/properties/pageName",
|
|
6393
|
+
options: {
|
|
6394
|
+
widget: "Box"
|
|
6395
|
+
},
|
|
6396
|
+
config: {
|
|
6397
|
+
layout: 12,
|
|
6398
|
+
main: {
|
|
6399
|
+
heading: " "
|
|
6400
|
+
},
|
|
6401
|
+
style: {
|
|
6402
|
+
lineHeight: 0,
|
|
6403
|
+
width: "auto",
|
|
6404
|
+
fontSize: "12px",
|
|
6405
|
+
color: "gray",
|
|
6406
|
+
paddingTop: "10px"
|
|
6407
|
+
}
|
|
6408
|
+
}
|
|
6409
|
+
},
|
|
6390
6410
|
{
|
|
6391
6411
|
type: "TabLayout",
|
|
6392
6412
|
config: {
|
|
@@ -7934,8 +7954,8 @@ const refreshPage = (type, store2) => {
|
|
|
7934
7954
|
Validation: ValidationSection
|
|
7935
7955
|
};
|
|
7936
7956
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
7937
|
-
UiSchema.elements[
|
|
7938
|
-
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];
|
|
7939
7959
|
}
|
|
7940
7960
|
store2.setUiSchema(UiSchema);
|
|
7941
7961
|
};
|
|
@@ -8240,6 +8260,26 @@ const EventUiSchema = (theme) => {
|
|
|
8240
8260
|
type: "HorizontalLayout",
|
|
8241
8261
|
heading: "Component",
|
|
8242
8262
|
elements: [
|
|
8263
|
+
{
|
|
8264
|
+
type: "Control",
|
|
8265
|
+
scope: "#/properties/pageName",
|
|
8266
|
+
options: {
|
|
8267
|
+
widget: "Box"
|
|
8268
|
+
},
|
|
8269
|
+
config: {
|
|
8270
|
+
layout: 12,
|
|
8271
|
+
main: {
|
|
8272
|
+
heading: " "
|
|
8273
|
+
},
|
|
8274
|
+
style: {
|
|
8275
|
+
lineHeight: 0,
|
|
8276
|
+
width: "auto",
|
|
8277
|
+
fontSize: "12px",
|
|
8278
|
+
color: "gray",
|
|
8279
|
+
paddingTop: "10px"
|
|
8280
|
+
}
|
|
8281
|
+
}
|
|
8282
|
+
},
|
|
8243
8283
|
{
|
|
8244
8284
|
type: "TabLayout",
|
|
8245
8285
|
config: {
|
|
@@ -8863,20 +8903,20 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8863
8903
|
const schema2 = _.cloneDeep(EventSchema);
|
|
8864
8904
|
if (handlerType) {
|
|
8865
8905
|
if (handlerType === "custom") {
|
|
8866
|
-
uiSchema.elements[
|
|
8867
|
-
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);
|
|
8868
8908
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
8869
8909
|
} else if (handlerType === "api") {
|
|
8870
|
-
uiSchema.elements[
|
|
8871
|
-
uiSchema.elements[
|
|
8910
|
+
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
8911
|
+
uiSchema.elements[1].elements[0].elements[3] = APISection;
|
|
8872
8912
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
8873
8913
|
} else if (handlerType === "inBuiltFunction") {
|
|
8874
|
-
uiSchema.elements[
|
|
8875
|
-
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);
|
|
8876
8916
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
8877
8917
|
} else if (handlerType === "refresh") {
|
|
8878
|
-
uiSchema.elements[
|
|
8879
|
-
uiSchema.elements[
|
|
8918
|
+
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
8919
|
+
uiSchema.elements[1].elements[0].elements[3] = refreshSectionUiSchema;
|
|
8880
8920
|
schema2.properties.refreshElements.required = ["value"];
|
|
8881
8921
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
8882
8922
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|