impaktapps-ui-builder 0.0.382-alpha.208 → 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.
Files changed (31) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1234 -1284
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +14 -14
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +18 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +15 -18
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +70 -121
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +53 -102
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +17 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
  11. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
  12. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +0 -2
  13. package/package.json +1 -1
  14. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +28 -26
  15. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +24 -25
  16. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +16 -36
  17. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +1 -6
  18. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  19. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +78 -51
  20. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -6
  22. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +84 -56
  23. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -6
  24. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  25. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
  26. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +344 -266
  27. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +362 -440
  28. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +415 -284
  29. package/src/impaktapps-ui-builder/builder/services/component.ts +3 -9
  30. package/src/impaktapps-ui-builder/builder/services/event.ts +8 -8
  31. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +1 -8
@@ -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[1].config.main.tabLabels = sectionLabels[type] || ["Core", "style","Event","Validation"];
58
- UiSchema.elements[1].elements = elements || [CoreSection, StyleSection,EventSection,ValidationSection];
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[1].elements[0].elements[2] = getTextArea("eventCode", "Write Custom Code", false)
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[1].elements[0].elements[2] = APISection;
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[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
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[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
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[1].elements[0].elements[2] = refreshSectionUiSchema;
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,17 +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
81
  }
89
82
  };