impaktapps-ui-builder 0.0.382-alpha.207 → 0.0.382-alpha.21
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 +1234 -1285
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +14 -14
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +18 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +15 -18
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +70 -121
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +53 -102
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +17 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +0 -3
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +28 -26
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +24 -25
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +16 -36
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +1 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +78 -51
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +84 -56
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +344 -266
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +362 -441
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +415 -284
- package/src/impaktapps-ui-builder/builder/services/component.ts +3 -9
- package/src/impaktapps-ui-builder/builder/services/event.ts +8 -8
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +1 -12
|
@@ -41,7 +41,7 @@ const sectionLabels = {
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
export const refreshPage = (type:string,store:any) => {
|
|
44
|
-
const UiSchema = _.cloneDeep(componentBasicUiSchema)
|
|
44
|
+
const UiSchema = _.cloneDeep(componentBasicUiSchema(store.theme.myTheme))
|
|
45
45
|
if(type){
|
|
46
46
|
const sectionUiSchema = {
|
|
47
47
|
Core: CoreSection,
|
|
@@ -54,8 +54,8 @@ export const refreshPage = (type:string,store:any) => {
|
|
|
54
54
|
|
|
55
55
|
}
|
|
56
56
|
const elements = sectionLabels[type]?.map(e => sectionUiSchema[e]);
|
|
57
|
-
UiSchema.elements[
|
|
58
|
-
UiSchema.elements[
|
|
57
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "style","Event","Validation"];
|
|
58
|
+
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection,EventSection,ValidationSection];
|
|
59
59
|
|
|
60
60
|
}
|
|
61
61
|
store.setUiSchema(UiSchema);
|
|
@@ -112,12 +112,6 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
112
112
|
const data = path ? _.get(response, path) : response;
|
|
113
113
|
store.setFormdata(data);
|
|
114
114
|
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
115
|
deleteEvent: function () {
|
|
122
116
|
const path = store.searchParams?.get("path");
|
|
123
117
|
const rowId = dynamicData.path.split(".")[1];
|
|
@@ -22,26 +22,26 @@ export default (
|
|
|
22
22
|
this.refreshPage(formdata.Handler, store)
|
|
23
23
|
},
|
|
24
24
|
refreshPage: (handlerType: any, store: any) => {
|
|
25
|
-
const uiSchema = _.cloneDeep(EventUiSchema);
|
|
25
|
+
const uiSchema = _.cloneDeep(EventUiSchema(store.theme.myTheme));
|
|
26
26
|
const schema: any = _.cloneDeep(EventSchema)
|
|
27
27
|
if (handlerType) {
|
|
28
28
|
if (handlerType === "custom") {
|
|
29
|
-
uiSchema.elements[
|
|
29
|
+
uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false)
|
|
30
30
|
schema.required = ["eventType", "Handler", "eventCode"]
|
|
31
31
|
|
|
32
32
|
} else if (handlerType === "api") {
|
|
33
|
-
uiSchema.elements[
|
|
33
|
+
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
34
34
|
schema.required = ["eventType", "Handler", "method", "path"]
|
|
35
35
|
} else if (handlerType === "inBuiltFunction") {
|
|
36
|
-
uiSchema.elements[
|
|
36
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
|
|
37
37
|
{ label: "RankProvider", value: "RankProvider" },
|
|
38
38
|
{ label: "Download File", value: "downloadFile" },
|
|
39
39
|
{ label: "Download Blob File", value: "downloadBlobFile" }
|
|
40
40
|
])
|
|
41
|
-
uiSchema.elements[
|
|
41
|
+
uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, 12);
|
|
42
42
|
schema.required = ["eventType", "Handler", "inBuiltFunctionType"]
|
|
43
43
|
} else if (handlerType === "refresh") {
|
|
44
|
-
uiSchema.elements[
|
|
44
|
+
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
45
45
|
schema.properties.refreshElements.required = ["value"]
|
|
46
46
|
schema.properties.refreshElements.items.required = ["value"]
|
|
47
47
|
schema.required = ["eventType", "Handler", "refreshElements"]
|
|
@@ -52,8 +52,8 @@ export default (
|
|
|
52
52
|
},
|
|
53
53
|
|
|
54
54
|
getFormData: Component(store, dynamicData, submitHandler, service).getFormdata,
|
|
55
|
-
getUiSchema: function () {
|
|
56
|
-
return EventUiSchema;
|
|
55
|
+
getUiSchema: async function () {
|
|
56
|
+
return await EventUiSchema(store.theme.myTheme);
|
|
57
57
|
},
|
|
58
58
|
getSchema: () => {
|
|
59
59
|
return EventSchema;
|
|
@@ -34,7 +34,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
34
34
|
return config
|
|
35
35
|
},
|
|
36
36
|
getUiSchema: function () {
|
|
37
|
-
return PageMasterUiSchema;
|
|
37
|
+
return PageMasterUiSchema(store.theme.myTheme);
|
|
38
38
|
},
|
|
39
39
|
getSchema: () => {
|
|
40
40
|
return PageMasterSchema;
|
|
@@ -73,21 +73,10 @@ export default (funcParams: funcParamsProps) => {
|
|
|
73
73
|
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
|
|
74
74
|
},
|
|
75
75
|
deleteEvent: function () {
|
|
76
|
-
// store.updateDialog("popUp");
|
|
77
76
|
const rowId = dynamicData.path.split(".")[1];
|
|
78
77
|
store.formData.events.splice(rowId, 1);
|
|
79
78
|
const response = saveFormdataInLocalStorage(store.ctx.core.data)
|
|
80
79
|
store.setFormdata(response);
|
|
81
80
|
},
|
|
82
|
-
deletePopUpEvent: function(){
|
|
83
|
-
store.updateDialog("popUpEvent");
|
|
84
|
-
},
|
|
85
|
-
deletePopUpComponent: function(){
|
|
86
|
-
store.updateDialog("popUpComponent");
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
testDelComp: function(){
|
|
90
|
-
console.log("yes fun called");
|
|
91
|
-
}
|
|
92
81
|
}
|
|
93
82
|
};
|