impaktapps-ui-builder 0.0.412-mtreemap.3 → 0.0.412-mtreemap.31

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 (48) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1189 -585
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  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/button.d.ts +1 -6
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +12 -10
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +5 -5
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +2 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -5
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +25 -1
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  15. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +3 -2
  16. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  17. package/package.json +1 -1
  18. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +2 -2
  19. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +4 -4
  20. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +27 -26
  22. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +2 -0
  23. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  24. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -5
  25. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +2 -2
  26. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +48 -66
  27. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
  28. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -9
  29. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +21 -28
  30. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -8
  31. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +107 -103
  32. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  33. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -118
  34. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -5
  35. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +14 -0
  36. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +93 -137
  37. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +1 -1
  38. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
  39. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  40. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +487 -283
  41. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  42. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +515 -204
  43. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +104 -98
  44. package/src/impaktapps-ui-builder/builder/services/component.ts +39 -21
  45. package/src/impaktapps-ui-builder/builder/services/event.ts +16 -6
  46. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
  47. package/src/impaktapps-ui-builder/runtime/services/events.ts +28 -34
  48. package/src/impaktapps-ui-builder/runtime/services/service.ts +112 -4
@@ -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 = {};
@@ -89,6 +89,116 @@ export default (funcParams: funcParamsProps) => {
89
89
  }
90
90
  const config = pageData?.config;
91
91
  const uiSchema = pageData?.uiSchema;
92
+ window.localStorage.setItem("pageName", config.label);
93
+ window.dispatchEvent(new Event('pageNameChanged'))
94
+ const theme = funcParams?.store?.theme?.myTheme;
95
+ uiSchema.elements.push(
96
+
97
+ {
98
+ type: "HorizontalLayout",
99
+ config: {
100
+ main: {
101
+ direction: 'row'
102
+ },
103
+ style: {
104
+ flexDirection: "row",
105
+ position: "absolute",
106
+ bottom: 0,
107
+ marginBottom: '-8px',
108
+ height: 'fit-content',
109
+ overflow: 'hidden',
110
+ zIndex: 1000,
111
+ width: 'inherit'
112
+ }
113
+ },
114
+ elements: [
115
+ {
116
+
117
+ type: "Control",
118
+ scope: "#/properties/FooterText",
119
+ options: {
120
+ widget: "Box",
121
+ },
122
+ config: {
123
+ main: {
124
+ heading: "Copywriter@ACT21.IO"
125
+ },
126
+ style: {
127
+ color: theme?.palette?.text.disabled || "#AFAFAF",
128
+ fontSize: '12px',
129
+ textAlign: 'center',
130
+ lineHeight: 1,
131
+ width: 'fit-content',
132
+ left: '50%',
133
+ position: 'relative',
134
+ margin: 0,
135
+ flexGrow: 1,
136
+ height: 0
137
+ }
138
+ },
139
+ },
140
+ {
141
+ type: "Control",
142
+ scope: "#/properties/backIcon",
143
+ options: {
144
+ widget: "Box",
145
+ },
146
+ config: {
147
+ main: {
148
+ iconName: 'PrevIcon',
149
+ onClick: "backHandler",
150
+ width: 'fit-content',
151
+ },
152
+ style: {
153
+ fill: theme.palette.primary.main,
154
+ width: 20,
155
+ height: 0,
156
+ margin: 0,
157
+ top: 0,
158
+ right: '82px',
159
+ position: 'absolute',
160
+ fontSize: '12px',
161
+ cursor: 'pointer',
162
+ ':hover': {
163
+ fill: theme.palette.primary.dark,
164
+ }
165
+ }
166
+ }
167
+ },
168
+ {
169
+ type: "Control",
170
+ scope: "#/properties/text",
171
+
172
+ options: {
173
+ widget: "Box",
174
+ },
175
+ config: {
176
+ main: {
177
+ heading: "Previous Page",
178
+ onClick: "backHandler"
179
+ },
180
+ style: {
181
+ textAlign: 'left',
182
+ lineHeight: 1,
183
+ height: 0,
184
+ width: 'fit-content',
185
+ color: theme.palette.primary.main,
186
+ fontSize: "12px",
187
+ cursor: 'pointer',
188
+ marginLeft: '2px',
189
+ marginRight: 0,
190
+ top: 3,
191
+ right: '12px',
192
+ position: 'absolute',
193
+ ':hover': {
194
+ color: theme.palette.primary.dark,
195
+ }
196
+ }
197
+ },
198
+ },
199
+ ]
200
+ }
201
+ );
92
202
  const schema = pageData?.schema ?? { type: "object", properties: {} };
93
203
  eventGroups = {}
94
204
  eventGroups = extractEvents(config);
@@ -101,10 +211,8 @@ export default (funcParams: funcParamsProps) => {
101
211
  await executeRefreshHandler({
102
212
  config: {}, componentName: "",
103
213
  store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
104
- serviceHolder: this, eventGroups,formDataHolder
214
+ serviceHolder: this, eventGroups, formDataHolder
105
215
  })
106
- const jsonres = await fetch('https://jsonplaceholder.typicode.com/todos/1');
107
- const result = await jsonres.json()
108
216
  funcParams.store.setSchema(
109
217
  (pre: any) => {
110
218
  return {