impaktapps-ui-builder 0.0.101-alpha.22 → 0.0.101-alpha.24
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 -14
- 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/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +10 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/services/event.ts +3 -4
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
export declare const emptyBox: (scope: string, layout?: any) => {
|
|
2
|
+
type: string;
|
|
3
|
+
scope: string;
|
|
4
|
+
options: {
|
|
5
|
+
widget: string;
|
|
6
|
+
};
|
|
7
|
+
config: {
|
|
8
|
+
layout: any;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
1
11
|
export declare const getRadioInputField: (scope: String, label: String, options: string[]) => {
|
|
2
12
|
type: string;
|
|
3
13
|
scope: string;
|
package/package.json
CHANGED
|
@@ -3,10 +3,9 @@ import { EventUiSchema } from "../elements/UiSchema/event/uiSchema";
|
|
|
3
3
|
import Component from "./component";
|
|
4
4
|
import { okHandler, saveFormdataInSessionStorage, saveHandler, getFormdataFromSessionStorage } from "./utils";
|
|
5
5
|
import { APISection } from "../build/uischema/apiSection";
|
|
6
|
-
import { getRadioInputField, getSelectField, getTextArea } from "../build/uischema/buildPropertiesSection";
|
|
6
|
+
import { emptyBox, getRadioInputField, getSelectField, getTextArea } from "../build/uischema/buildPropertiesSection";
|
|
7
7
|
import { refreshSectionUiSchema } from "../build/uischema/refresh";
|
|
8
8
|
import _ from "lodash";
|
|
9
|
-
import emptyBox from "../build/uischema/emptyBox";
|
|
10
9
|
|
|
11
10
|
export default (
|
|
12
11
|
store: any,
|
|
@@ -46,7 +45,7 @@ export default (
|
|
|
46
45
|
schema.required = ["eventType", "Handler", "eventCode"]
|
|
47
46
|
|
|
48
47
|
} else if (handlerType === "api") {
|
|
49
|
-
uiSchema.elements[0].elements[0].elements[2] = emptyBox;
|
|
48
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox("emptyBox", {xs: 0,sm: 0,md: 4,lg: 6});
|
|
50
49
|
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
51
50
|
schema.required = ["eventType", "Handler", "method", "path"]
|
|
52
51
|
} else if (handlerType === "inBuiltFunction") {
|
|
@@ -72,7 +71,7 @@ export default (
|
|
|
72
71
|
uiSchema.elements[0].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
|
|
73
72
|
schema.required = ["eventType", "Handler", "inBuiltFunctionType"]
|
|
74
73
|
} else if (handlerType === "refresh") {
|
|
75
|
-
uiSchema.elements[0].elements[0].elements[2] = emptyBox;
|
|
74
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox("emptyBox", {xs: 0,sm: 0,md: 4,lg: 6});
|
|
76
75
|
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
77
76
|
schema.properties.refreshElements.required = ["value"]
|
|
78
77
|
schema.properties.refreshElements.items.required = ["value"]
|