impaktapps-ui-builder 0.0.596 → 0.0.962

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 (55) hide show
  1. package/dist/impaktapps-ui-builder.es.js +509 -376
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +17 -17
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +1 -1
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +23 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +104 -83
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +0 -1
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +1 -1
  13. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
  14. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
  15. package/package.json +1 -1
  16. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +6 -6
  17. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  18. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +4 -0
  19. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -1
  20. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  22. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -1
  23. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -0
  24. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +23 -29
  25. package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +6 -0
  26. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +20 -12
  27. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
  28. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +10 -10
  29. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +98 -50
  30. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
  31. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +132 -90
  32. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +11 -11
  33. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -3
  34. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -2
  35. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -1
  36. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +6 -7
  37. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  38. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +3 -3
  39. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
  40. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
  41. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +3 -3
  42. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +3 -3
  43. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +32 -1
  44. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +15 -31
  45. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +18 -11
  46. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +7 -16
  47. package/src/impaktapps-ui-builder/builder/services/component.ts +15 -22
  48. package/src/impaktapps-ui-builder/builder/services/event.ts +33 -7
  49. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +12 -12
  50. package/src/impaktapps-ui-builder/builder/services/utils.ts +12 -12
  51. package/src/impaktapps-ui-builder/lib/index.ts +1 -1
  52. package/src/impaktapps-ui-builder/runtime/services/events.ts +4 -5
  53. package/src/impaktapps-ui-builder/runtime/services/service.ts +61 -62
  54. package/dist/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.d.ts +0 -15
  55. package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +0 -15
@@ -7,4 +7,4 @@ export { schema} from "../builder/build/buildUiSchema"
7
7
  export {default as buildConfig} from "../builder/build/buildConfig"
8
8
  export {default as buildUiSchema} from "../builder/build/buildUiSchema"
9
9
  export {buildSchema} from "../builder/build/buildUiSchema"
10
- export {default as clearFromLocalStorage} from "../builder/services/utils"
10
+ export {default as clearFromSessionStorage} from "../builder/services/utils"
@@ -90,7 +90,6 @@ export function getRefreshElements(eventConfig: any, eventGropus: any) {
90
90
  } else {
91
91
  if (eventGropus?.onLoad) {
92
92
  result = Object.keys(eventGropus?.onLoad)
93
- result.push(result[0]);
94
93
  }
95
94
  }
96
95
  return result;
@@ -147,7 +146,7 @@ function executeCustomHandler(params: handlersProps) {
147
146
  }
148
147
 
149
148
  function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any, service: any, formDataHolder: any) {
150
- if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)) {
149
+ if (eventConfig.type === "Select" && handlerResponse?.data && !_.isEmpty(handlerResponse?.data)) {
151
150
  store.setSchema((pre) => {
152
151
  return {
153
152
  ...pre, properties: {
@@ -159,7 +158,7 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
159
158
  }
160
159
  })
161
160
  }
162
- else if (eventConfig.type === "MultipleSelect" && !(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)) {
161
+ else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data && !_.isEmpty(handlerResponse?.data)) {
163
162
  store.setSchema((pre) => {
164
163
  return {
165
164
  ...pre, properties: {
@@ -175,7 +174,7 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
175
174
  })
176
175
  }
177
176
  else if (eventConfig.type === "page") {
178
- if ((!_.isEmpty(handlerResponse?.data)) && handlerResponse?.data) {
177
+ if (!(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)) {
179
178
  store.newData = {
180
179
  ...store.newData,
181
180
  ...handlerResponse?.data
@@ -207,7 +206,7 @@ const buildBodyFormat = (body: any[], formData: any, userValue: any, store: any)
207
206
  }
208
207
  else if (elem?.value?.startsWith("$local")) {
209
208
  const finalpath = elem.value.substring(7);
210
- const value = JSON.parse(localStorage.getItem(finalpath) || '""')
209
+ const value = JSON.parse(sessionStorage.getItem(finalpath) || '""')
211
210
  finalBody[elem.key] = value;
212
211
  }
213
212
  else if (elem?.value?.startsWith("$")) {
@@ -78,12 +78,12 @@ export default (funcParams: funcParamsProps) => {
78
78
  setPage: async function () {
79
79
  funcParams.store.setFormdata({});
80
80
  funcParams.store.newData = {};
81
- const pageBasicDetailString = localStorage.getItem("pagemasterMetaData")
81
+ const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData")
82
82
  if (pageBasicDetailString) {
83
83
  pageData = JSON.parse(pageBasicDetailString)
84
84
  } else {
85
85
  pageData = await funcParams.pageDataProvider();
86
- localStorage.setItem("pagemasterMetaData", JSON.stringify({
86
+ sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
87
87
  schema: pageData?.schema,
88
88
  uiSchema: pageData?.uiSchema, config: pageData?.config
89
89
  }))
@@ -101,22 +101,20 @@ export default (funcParams: funcParamsProps) => {
101
101
  type: "HorizontalLayout",
102
102
  config: {
103
103
  main: {
104
- direction: 'row'
104
+ direction: "row",
105
105
  },
106
106
  style: {
107
107
  flexDirection: "row",
108
108
  position: "absolute",
109
109
  bottom: 0,
110
- marginBottom: '-8px',
111
- height: 'fit-content',
112
- overflow: 'hidden',
110
+ height: "fit-content",
111
+ overflow: "hidden",
113
112
  zIndex: 1000,
114
- width: 'inherit'
115
- }
113
+ width: "inherit",
114
+ },
116
115
  },
117
116
  elements: [
118
117
  {
119
-
120
118
  type: "Control",
121
119
  scope: "#/properties/FooterText",
122
120
  options: {
@@ -124,96 +122,88 @@ export default (funcParams: funcParamsProps) => {
124
122
  },
125
123
  config: {
126
124
  main: {
127
- heading: "Copywriter@ACT21.IO"
125
+ heading: "Copywriter@ACT21.IO",
128
126
  },
129
127
  style: {
130
- color: theme?.palette?.text.disabled || "#AFAFAF",
131
- fontSize: '12px',
132
- textAlign: 'center',
133
- lineHeight: 1,
134
- width: 'fit-content',
135
- left: '50%',
136
- position: 'relative',
128
+ color: theme?.palette?.text?.disabled || "#AFAFAF",
129
+ fontSize: "12px",
130
+ textAlign: "center",
131
+ lineHeight: 2,
132
+ width: "fit-content",
133
+ left: "50%",
134
+ position: "relative",
137
135
  margin: 0,
138
136
  flexGrow: 1,
139
- height: 0
140
- }
137
+ height: 0,
138
+ transform: "translate(-50%, 0%)",
139
+ },
141
140
  },
142
141
  },
143
142
  {
144
143
  type: "Control",
145
- scope: "#/properties/backIcon",
144
+ scope: "#/properties/FooterBackIcon",
146
145
  options: {
147
146
  widget: "Box",
148
147
  },
149
148
  config: {
150
149
  main: {
151
- iconName: 'PrevIcon',
150
+ iconName: "PrevIcon",
152
151
  onClick: "backHandler",
153
- width: 'fit-content',
152
+ width: "fit-content",
154
153
  },
155
154
  style: {
156
- fill: theme.palette.primary.main,
155
+ fill: theme?.palette?.primary?.main,
157
156
  width: 20,
158
157
  height: 0,
159
- margin: 0,
158
+ // margin: 0,
160
159
  top: 0,
161
- right: '82px',
162
- position: 'absolute',
163
- fontSize: '12px',
164
- cursor: 'pointer',
165
- ':hover': {
166
- fill: theme.palette.primary.dark,
167
- }
168
- }
169
- }
160
+ right: { xs: "12px", sm: "84px" },
161
+ position: "absolute",
162
+ fontSize: "12px",
163
+ cursor: "pointer",
164
+ ":hover": {
165
+ fill: theme?.palette?.primary?.dark,
166
+ },
167
+ marginRight: "13px",
168
+ },
169
+ },
170
170
  },
171
171
  {
172
172
  type: "Control",
173
- scope: "#/properties/text",
174
-
173
+ scope: "#/properties/FooterBackHandlerText",
175
174
  options: {
176
175
  widget: "Box",
177
176
  },
178
177
  config: {
179
178
  main: {
180
179
  heading: "Previous Page",
181
- onClick: "backHandler"
180
+ onClick: "backHandler",
182
181
  },
183
182
  style: {
184
- textAlign: 'left',
183
+ display: { xs: "none", sm: "flex" },
184
+ textAlign: "left",
185
185
  lineHeight: 1,
186
186
  height: 0,
187
- width: 'fit-content',
188
- color: theme.palette.primary.main,
189
- fontSize: "12px",
190
- cursor: 'pointer',
191
- marginLeft: '2px',
192
- marginRight: 0,
187
+ width: "fit-content",
188
+ color: theme?.palette?.primary?.main,
189
+ fontSize: "14px",
190
+ cursor: "pointer",
191
+ marginLeft: "2px",
192
+
193
193
  top: 3,
194
- right: '12px',
195
- position: 'absolute',
196
- ':hover': {
197
- color: theme.palette.primary.dark,
198
- }
199
- }
194
+ right: "12px",
195
+ position: "absolute",
196
+ ":hover": {
197
+ color: theme?.palette?.primary?.dark,
198
+ },
199
+ marginRight: "4px",
200
+ },
200
201
  },
201
202
  },
202
- ]
203
+ ],
203
204
  }
204
205
  );
205
206
  const schema = pageData?.schema ?? { type: "object", properties: {} };
206
- funcParams.store.setSchema(
207
- (pre: any) => {
208
- return {
209
- ...schema, properties:
210
- { ...schema.properties, ...pre.properties, }
211
- }
212
- }
213
- )
214
- uiSchema.elements.push(notifyUiSchema);
215
- funcParams.store.setUiSchema(uiSchema);
216
- eventGroups = {}
217
207
  eventGroups = extractEvents(config);
218
208
  executeEventsParameters = {
219
209
  config: {}, componentName: "",
@@ -226,7 +216,16 @@ export default (funcParams: funcParamsProps) => {
226
216
  store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
227
217
  serviceHolder: this, eventGroups, formDataHolder
228
218
  })
229
-
219
+ funcParams.store.setSchema(
220
+ (pre: any) => {
221
+ return {
222
+ ...schema,...pre, properties:
223
+ { ...schema.properties, ...pre.properties, }
224
+ }
225
+ }
226
+ )
227
+ uiSchema.elements.push(notifyUiSchema);
228
+ funcParams.store.setUiSchema(uiSchema);
230
229
  },
231
230
  onCellRenderer: (cellParams) => {
232
231
  if (eventGroups.onCellRenderer) {
@@ -1,15 +0,0 @@
1
- declare const _default: {
2
- type: string;
3
- scope: string;
4
- options: {
5
- widget: string;
6
- };
7
- elements: any[];
8
- config: {
9
- main: {
10
- onMount: string;
11
- columns: {};
12
- };
13
- };
14
- };
15
- export default _default;
@@ -1,15 +0,0 @@
1
- export default {
2
- type: "Control",
3
- scope: "#/properties/LazyLoadingTable",
4
- options: {
5
- widget: "LazyLoadingTable",
6
- },
7
- elements:[],
8
- config: {
9
- main: {
10
- onMount:"onMount",
11
- columns: {
12
- },
13
- },
14
- },
15
- };