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

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 +349 -297
  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/buildBasicUiSchema.d.ts +1 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +12 -10
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +5 -5
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
  10. package/package.json +1 -1
  11. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +2 -2
  12. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +27 -26
  13. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +2 -0
  14. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
  15. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +39 -38
  16. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -9
  17. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +21 -28
  18. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -8
  19. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +155 -102
  20. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +14 -0
  22. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +1 -1
  23. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
  24. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  25. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +318 -285
  26. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  27. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +346 -208
  28. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +70 -23
  29. package/src/impaktapps-ui-builder/builder/services/component.ts +17 -17
  30. package/src/impaktapps-ui-builder/builder/services/event.ts +7 -5
  31. package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
@@ -1,3 +1,5 @@
1
+ import { getSelectField } from "../../../build/uischema/buildPropertiesSection";
2
+
1
3
  export const EventUiSchema: any = (theme) => {
2
4
  const uiSchema = {
3
5
  type: "HorizontalLayout",
@@ -106,33 +108,77 @@ export const EventUiSchema: any = (theme) => {
106
108
  },
107
109
  },
108
110
  },
111
+ getSelectField("Handler", "Handler", [
112
+ { label: "Custom", value: "custom" },
113
+ { label: "Api", value: "api" },
114
+ { label: "Inbuilt Function", value: "inBuiltFunction" },
115
+ { label: "Refresh", value: "refresh" },
116
+ ]),
109
117
  {
110
118
  type: "Control",
111
- scope: `#/properties/Handler`,
112
-
119
+ scope: "#/properties/EmptyBox",
113
120
  options: {
114
- widget: "SelectInputField",
121
+ widget: "EmptyBox",
115
122
  },
116
123
  config: {
117
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
118
- main: {
119
- label: "Handler",
120
- type: "text",
121
- },
124
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
122
125
  },
123
126
  },
124
- {
125
- type: "Control",
126
- scope: "#/properties/emptyBox",
127
- options: {
128
- widget: "EmptyBox"
129
- },
130
- config: {
131
- layout: { xs: 0, sm: 4 }
132
- }
133
- }
134
127
  ],
135
128
  },
129
+ // {
130
+ // type: "WrapperLayout",
131
+ // config: {
132
+ // main: {
133
+ // // label: "Success Case Event",
134
+ // // divider: true,
135
+ // },
136
+ // wrapperStyle: {
137
+ // border: "1px solid gray"
138
+ // },
139
+ // },
140
+ // elements: [
141
+ // {
142
+ // type: "Control",
143
+ // scope: "#/properties/heading",
144
+
145
+ // options: {
146
+ // widget: "Box",
147
+ // },
148
+ // config: {
149
+ // layout: 8,
150
+ // main: {
151
+ // heading: "Response Event",
152
+ // },
153
+ // style: {
154
+ // fontFamily: "Roboto",
155
+ // fontWeight: "500",
156
+ // paddingLeft: "-10px",
157
+ // fontSize: "20px",
158
+ // },
159
+ // },
160
+ // },
161
+ // {
162
+ // type: "Control",
163
+ // scope: "#/properties/AddButton",
164
+ // options: {
165
+ // widget: "IconButton",
166
+ // },
167
+ // config: {
168
+ // layout: 3,
169
+ // main: {
170
+ // icon: "AddIcon",
171
+ // styleDefault: true,
172
+ // size: "small",
173
+ // onClick: "addEvent",
174
+ // tooltipMessage: "Back",
175
+ // },
176
+ // style: {
177
+ // float: "right",
178
+ // },
179
+ // },
180
+ // },
181
+
136
182
  {
137
183
  type: "Control",
138
184
  scope: "#/properties/events",
@@ -195,7 +241,7 @@ export const EventUiSchema: any = (theme) => {
195
241
  },
196
242
  config: {
197
243
  main: {
198
- // color: "info",
244
+ color: "info",
199
245
  size: "small",
200
246
  icon: "EditIcon",
201
247
  tooltipMessage: "Edit This Record",
@@ -227,6 +273,7 @@ export const EventUiSchema: any = (theme) => {
227
273
  },
228
274
  },
229
275
  ]
276
+ // }]
230
277
  }
231
278
  ],
232
279
  },
@@ -323,7 +370,7 @@ export const EventUiSchema: any = (theme) => {
323
370
  },
324
371
  elements: [
325
372
  {
326
-
373
+
327
374
  type: "Control",
328
375
  scope: "#/properties/FooterText",
329
376
  options: {
@@ -378,7 +425,7 @@ export const EventUiSchema: any = (theme) => {
378
425
  {
379
426
  type: "Control",
380
427
  scope: "#/properties/text",
381
-
428
+
382
429
  options: {
383
430
  widget: "Box",
384
431
  },
@@ -410,5 +457,5 @@ export const EventUiSchema: any = (theme) => {
410
457
  }
411
458
  ],
412
459
  };
413
- return uiSchema
414
- }
460
+ return uiSchema;
461
+ }
@@ -43,25 +43,25 @@ const sectionLabels = {
43
43
 
44
44
 
45
45
 
46
- export const refreshPage = (type:string,store:any) => {
46
+ export const refreshPage = (type: string, store: any) => {
47
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
-
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[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
61
+ UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
62
+
58
63
  }
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);
64
+ store.setUiSchema(UiSchema);
65
65
  }
66
66
 
67
67
  export default (store: any, dynamicData: any, submitHandler: any, service: any) => {
@@ -28,12 +28,13 @@ export default (
28
28
  const schema: any = _.cloneDeep(EventSchema)
29
29
  if (handlerType) {
30
30
  if (handlerType === "custom") {
31
- uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync","Run in Sync",["Yes","No"])
32
- uiSchema.elements[1].elements[0].elements[3] = emptyBox;
31
+ uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync","Run in Sync",["Yes","No"])
32
+ // uiSchema.elements[0].elements[0].elements[3] = emptyBox;
33
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[0].elements[0].elements[2] = emptyBox;
37
38
  uiSchema.elements[0].elements[0].elements[3] = APISection;
38
39
  schema.required = ["eventType", "Handler", "method", "path"]
39
40
  } else if (handlerType === "inBuiltFunction") {
@@ -42,9 +43,10 @@ export default (
42
43
  { label: "Download File", value: "downloadFile" },
43
44
  { label: "Download Blob File", value: "downloadBlobFile" }
44
45
  ])
45
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, 12);
46
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
46
47
  schema.required = ["eventType", "Handler", "inBuiltFunctionType"]
47
48
  } else if (handlerType === "refresh") {
49
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox;
48
50
  uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
49
51
  schema.properties.refreshElements.required = ["value"]
50
52
  schema.properties.refreshElements.items.required = ["value"]
@@ -62,8 +64,8 @@ export default (
62
64
  },
63
65
 
64
66
  getFormData: Component(store, dynamicData, submitHandler, service).getFormdata,
65
- getUiSchema: async function () {
66
- return await EventUiSchema(store.theme.myTheme);
67
+ getUiSchema: function () {
68
+ return EventUiSchema;
67
69
  },
68
70
  getSchema: () => {
69
71
  return EventSchema;
@@ -1,6 +1,6 @@
1
1
  import _, { isEmpty } from "lodash";
2
2
  import { doDownload, downloadFile } from "./downloadFile";
3
- import { asyncOperation, executeEvents, executeRefreshHandler } from "./events";
3
+ import { executeEvents, executeRefreshHandler } from "./events";
4
4
  import { handlersProps } from "./interface";
5
5
  let compType: string;
6
6
  let eventGroups: any = {};