impaktapps-ui-builder 0.0.412-hi → 0.0.412-mtreemap.1

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 (41) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1238 -1392
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +9 -9
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +35 -2
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +10 -12
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +15 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +70 -121
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +1 -108
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +53 -102
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +17 -2
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
  13. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
  14. package/package.json +1 -1
  15. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -1
  16. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +30 -26
  17. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +11 -2
  18. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +6 -6
  19. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
  20. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +50 -27
  21. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +29 -48
  22. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +9 -10
  23. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +16 -26
  24. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +1 -6
  25. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  26. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +99 -125
  27. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +109 -108
  28. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  29. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +2 -12
  30. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -6
  31. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +85 -57
  32. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -6
  33. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  34. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
  35. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +311 -286
  36. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +367 -362
  37. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +380 -284
  38. package/src/impaktapps-ui-builder/builder/services/component.ts +18 -18
  39. package/src/impaktapps-ui-builder/builder/services/event.ts +8 -8
  40. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +1 -1
  41. package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -2
@@ -43,25 +43,25 @@ const sectionLabels = {
43
43
 
44
44
 
45
45
 
46
- export const refreshPage = (type: string, store: any) => {
47
- const UiSchema = _.cloneDeep(componentBasicUiSchema)
48
- if (type) {
49
- const sectionUiSchema = {
50
- Core: CoreSection,
51
- Value: ValueTab,
52
- Style: StyleSection,
53
- Event: EventSection,
54
- Components: TableSection,
55
- Properties: buildPropertiesSection(type),
56
- Validation: ValidationSection
57
-
58
- }
59
- const elements = sectionLabels[type]?.map(e => sectionUiSchema[e]);
60
- UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
61
- UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
62
-
46
+ export const refreshPage = (type:string,store:any) => {
47
+ const UiSchema = _.cloneDeep(componentBasicUiSchema(store.theme.myTheme))
48
+ if(type){
49
+ const sectionUiSchema = {
50
+ Core: CoreSection,
51
+ Value: ValueTab,
52
+ style: StyleSection,
53
+ Event: EventSection,
54
+ Components: TableSection,
55
+ Properties: buildPropertiesSection(type),
56
+ Validation:ValidationSection
57
+
63
58
  }
64
- store.setUiSchema(UiSchema);
59
+ const elements = sectionLabels[type]?.map(e => sectionUiSchema[e]);
60
+ UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "style","Event","Validation"];
61
+ UiSchema.elements[0].elements = elements || [CoreSection, StyleSection,EventSection,ValidationSection];
62
+
63
+ }
64
+ store.setUiSchema(UiSchema);
65
65
  }
66
66
 
67
67
  export default (store: any, dynamicData: any, submitHandler: any, service: any) => {
@@ -24,28 +24,28 @@ export default (
24
24
  this.refreshPage(formdata.Handler, store)
25
25
  },
26
26
  refreshPage: (handlerType: any, store: any) => {
27
- const uiSchema = _.cloneDeep(EventUiSchema);
27
+ const uiSchema = _.cloneDeep(EventUiSchema(store.theme.myTheme));
28
28
  const schema: any = _.cloneDeep(EventSchema)
29
29
  if (handlerType) {
30
30
  if (handlerType === "custom") {
31
31
  uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync","Run in Sync",["Yes","No"])
32
32
  uiSchema.elements[1].elements[0].elements[3] = emptyBox;
33
- uiSchema.elements[1].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false)
33
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false)
34
34
  schema.required = ["eventType", "Handler", "eventCode"]
35
35
 
36
36
  } else if (handlerType === "api") {
37
- uiSchema.elements[1].elements[0].elements[2] = APISection;
37
+ uiSchema.elements[0].elements[0].elements[3] = APISection;
38
38
  schema.required = ["eventType", "Handler", "method", "path"]
39
39
  } else if (handlerType === "inBuiltFunction") {
40
- uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
40
+ uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
41
41
  { label: "RankProvider", value: "RankProvider" },
42
42
  { label: "Download File", value: "downloadFile" },
43
43
  { label: "Download Blob File", value: "downloadBlobFile" }
44
44
  ])
45
- uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
45
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, 12);
46
46
  schema.required = ["eventType", "Handler", "inBuiltFunctionType"]
47
47
  } else if (handlerType === "refresh") {
48
- uiSchema.elements[1].elements[0].elements[2] = refreshSectionUiSchema;
48
+ uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
49
49
  schema.properties.refreshElements.required = ["value"]
50
50
  schema.properties.refreshElements.items.required = ["value"]
51
51
  schema.required = ["eventType", "Handler", "refreshElements"]
@@ -62,8 +62,8 @@ export default (
62
62
  },
63
63
 
64
64
  getFormData: Component(store, dynamicData, submitHandler, service).getFormdata,
65
- getUiSchema: function () {
66
- return EventUiSchema;
65
+ getUiSchema: async function () {
66
+ return await EventUiSchema(store.theme.myTheme);
67
67
  },
68
68
  getSchema: () => {
69
69
  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;
@@ -1,6 +1,6 @@
1
1
  import _, { isEmpty } from "lodash";
2
2
  import { doDownload, downloadFile } from "./downloadFile";
3
- import { executeEvents, executeRefreshHandler } from "./events";
3
+ import { asyncOperation, executeEvents, executeRefreshHandler } from "./events";
4
4
  import { handlersProps } from "./interface";
5
5
  let compType: string;
6
6
  let eventGroups: any = {};
@@ -101,7 +101,7 @@ export default (funcParams: funcParamsProps) => {
101
101
  await executeRefreshHandler({
102
102
  config: {}, componentName: "",
103
103
  store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
104
- serviceHolder: this, eventGroups
104
+ serviceHolder: this, eventGroups,formDataHolder
105
105
  })
106
106
  const jsonres = await fetch('https://jsonplaceholder.typicode.com/todos/1');
107
107
  const result = await jsonres.json()