impaktapps-ui-builder 0.0.342 → 0.0.343

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.
@@ -2,17 +2,17 @@ export declare const refreshPage: (type: string, store: any) => void;
2
2
  declare const _default: (store: any, dynamicData: any, submitHandler: any, service: any) => {
3
3
  setPage: () => Promise<void>;
4
4
  refreshPage: (type: string, store: any) => void;
5
- getFormdata: () => Promise<any>;
5
+ getFormdata: () => any;
6
6
  getSchema: () => any;
7
- okHandler: () => Promise<void>;
7
+ okHandler: () => void;
8
8
  savePageHandler: () => Promise<void>;
9
9
  onChange: () => void;
10
- editComponents: () => Promise<void>;
11
- deleteComponents: () => Promise<void>;
12
- deleteEvent: () => Promise<void>;
13
- widgetAddClickHandler: () => Promise<void>;
14
- eventEditHandler: () => Promise<void>;
15
- eventAddHandler: () => Promise<void>;
10
+ editComponents: () => void;
11
+ deleteComponents: () => void;
12
+ deleteEvent: () => void;
13
+ widgetAddClickHandler: () => void;
14
+ eventEditHandler: () => void;
15
+ eventAddHandler: () => void;
16
16
  backHandler: () => void;
17
17
  };
18
18
  export default _default;
@@ -1,9 +1,9 @@
1
1
  declare const _default: (store: any, dynamicData: any, submitHandler: any, service: any) => {
2
2
  setPage: () => Promise<void>;
3
3
  refreshPage: (handlerType: any, store: any) => void;
4
- getFormData: () => Promise<any>;
5
- getUiSchema: () => Promise<any>;
6
- getSchema: () => Promise<{
4
+ getFormData: () => any;
5
+ getUiSchema: () => any;
6
+ getSchema: () => {
7
7
  type: string;
8
8
  properties: {
9
9
  headers: {
@@ -75,13 +75,13 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
75
75
  };
76
76
  };
77
77
  required: string[];
78
- }>;
78
+ };
79
79
  savePageHandler: () => Promise<void>;
80
80
  onChange: () => void;
81
- okHandler: () => Promise<void>;
82
- addEvent: () => Promise<void>;
83
- editEvent: () => Promise<void>;
84
- deleteEvent: () => Promise<void>;
81
+ okHandler: () => void;
82
+ addEvent: () => void;
83
+ editEvent: () => void;
84
+ deleteEvent: () => void;
85
85
  backHandler: () => void;
86
86
  };
87
87
  export default _default;
@@ -8,8 +8,8 @@ interface funcParamsProps {
8
8
  }
9
9
  declare const _default: (funcParams: funcParamsProps) => {
10
10
  setPage: () => Promise<void>;
11
- getFormdata: () => Promise<any>;
12
- getUiSchema: () => Promise<any>;
11
+ getFormdata: () => any;
12
+ getUiSchema: () => any;
13
13
  getSchema: () => {
14
14
  type: string;
15
15
  properties: {
@@ -49,12 +49,12 @@ declare const _default: (funcParams: funcParamsProps) => {
49
49
  required: string[];
50
50
  };
51
51
  backHandler: () => void;
52
- onAddClickHandler: () => Promise<void>;
52
+ onAddClickHandler: () => void;
53
53
  savePageHandler: () => Promise<void>;
54
- Edit_Components: () => Promise<void>;
55
- Delete_Components: () => Promise<void>;
56
- eventAddHandler: () => Promise<void>;
57
- editEvent: () => Promise<void>;
58
- deleteEvent: () => Promise<void>;
54
+ Edit_Components: () => void;
55
+ Delete_Components: () => void;
56
+ eventAddHandler: () => void;
57
+ editEvent: () => void;
58
+ deleteEvent: () => void;
59
59
  };
60
60
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.342",
3
+ "version": "0.0.343",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -70,14 +70,14 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
70
70
 
71
71
  },
72
72
  refreshPage:refreshPage,
73
- getFormdata: async function () {
73
+ getFormdata: function () {
74
74
  const path = store.searchParams?.get("path");
75
75
  return getFormdataFromLocalStorage(path)
76
76
  },
77
77
  getSchema: function () {
78
78
  return ComponentSchema;
79
79
  },
80
- okHandler: async function () {
80
+ okHandler: function () {
81
81
  const path = store.searchParams?.get("path");
82
82
  console.log(store.ctx.core.errors)
83
83
  if (_.isEmpty(store.ctx.core.errors)) {
@@ -124,7 +124,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
124
124
  this.refreshPage(store?.newData?.type,store);
125
125
  }
126
126
  },
127
- editComponents: async function () {
127
+ editComponents: function () {
128
128
  const rowId = dynamicData.path.split(".")[1];
129
129
  const path = store.searchParams?.get("path");
130
130
  const id = store.searchParams?.get("id");
@@ -139,7 +139,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
139
139
  store.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`)
140
140
  }
141
141
  },
142
- deleteComponents: async function () {
142
+ deleteComponents: function () {
143
143
  const path = store.searchParams?.get("path");
144
144
  const rowId = dynamicData.path.split(".")[1];
145
145
  store.formData.elements.splice(rowId, 1);
@@ -147,14 +147,14 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
147
147
  const data = path ? _.get(response, path) : response;
148
148
  store.setFormdata(data);
149
149
  },
150
- deleteEvent: async function () {
150
+ deleteEvent: function () {
151
151
  const path = store.searchParams?.get("path");
152
152
  const rowId = dynamicData.path.split(".")[1];
153
153
  store.formData.events.splice(rowId, 1);
154
154
  const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
155
155
  store.setFormdata(_.get(response, path));
156
156
  },
157
- widgetAddClickHandler: async function () {
157
+ widgetAddClickHandler: function () {
158
158
  if (!Array.isArray(store.formData.elements)) {
159
159
  store.formData.elements = []
160
160
  }
@@ -166,7 +166,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
166
166
  this.setPage()
167
167
 
168
168
  },
169
- eventEditHandler: async function () {
169
+ eventEditHandler: function () {
170
170
  const rowId = dynamicData.path.split(".")[1];
171
171
  const path = store.searchParams?.get("path");
172
172
  const id = store.searchParams?.get("id");
@@ -174,7 +174,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
174
174
  const finalPath = `${path}.events[${rowId}]`
175
175
  store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
176
176
  },
177
- eventAddHandler: async function () {
177
+ eventAddHandler: function () {
178
178
  const path = store.searchParams?.get("path");
179
179
  const id = store.searchParams?.get("id");
180
180
  if (!Array.isArray(store.formData.events)) {
@@ -52,10 +52,10 @@ export default (
52
52
  },
53
53
 
54
54
  getFormData: Component(store, dynamicData,submitHandler,service).getFormdata,
55
- getUiSchema: async function () {
55
+ getUiSchema: function () {
56
56
  return EventUiSchema;
57
57
  },
58
- getSchema: async () => {
58
+ getSchema: () => {
59
59
  return EventSchema;
60
60
  },
61
61
  savePageHandler: async () => {
@@ -89,7 +89,7 @@ export default (
89
89
  },
90
90
 
91
91
  okHandler: Component(store, dynamicData,submitHandler,service).okHandler,
92
- addEvent: async function () {
92
+ addEvent: function () {
93
93
  const path = store.searchParams?.get("path");
94
94
  if (!Array.isArray(store.formData.events)) {
95
95
  store.formData.events = []
@@ -100,7 +100,7 @@ export default (
100
100
  store.setSearchParams(store.searchParams)
101
101
  this.setPage()
102
102
  },
103
- editEvent: async function () {
103
+ editEvent: function () {
104
104
  const rowId = dynamicData.path.split(".")[1];
105
105
  const path = store.searchParams?.get("path");
106
106
  saveFormdataInLocalStorage(store.ctx.core.data, path)
@@ -36,7 +36,7 @@ export default (funcParams: funcParamsProps) => {
36
36
  store.setSchema(schema);
37
37
  store.setUiSchema(uiSchema);
38
38
  },
39
- getFormdata: async function () {
39
+ getFormdata: function () {
40
40
  const id = store.searchParams?.get("id");
41
41
  const formData = getFormdataFromLocalStorage()
42
42
  if (formData) {
@@ -45,7 +45,7 @@ export default (funcParams: funcParamsProps) => {
45
45
  saveFormdataInLocalStorage(config)
46
46
  return config
47
47
  },
48
- getUiSchema: async function () {
48
+ getUiSchema: function () {
49
49
  return PageMasterUiSchema;
50
50
  },
51
51
  getSchema: () => {
@@ -55,7 +55,7 @@ export default (funcParams: funcParamsProps) => {
55
55
  localStorage.removeItem("pageFormdata")
56
56
  store.navigate("/PageMasterRecords");
57
57
  },
58
- onAddClickHandler: async function () {
58
+ onAddClickHandler: function () {
59
59
  const id = store.searchParams?.get("id");
60
60
  if (!Array.isArray(store.formData.elements)) {
61
61
  store.formData.elements = []
@@ -86,7 +86,7 @@ export default (funcParams: funcParamsProps) => {
86
86
  },
87
87
  Edit_Components: Component(store, dynamicData, submitHandler, service).editComponents,
88
88
  Delete_Components: Component(store, dynamicData, submitHandler, service).deleteComponents,
89
- eventAddHandler: async function () {
89
+ eventAddHandler: function () {
90
90
  const id = store.searchParams?.get("id");
91
91
  if (!Array.isArray(store.formData.events)) {
92
92
  store.formData.events = []
@@ -95,14 +95,14 @@ export default (funcParams: funcParamsProps) => {
95
95
  const finalPath = `events[${store.formData.events.length}]`
96
96
  store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
97
97
  },
98
- editEvent: async function () {
98
+ editEvent: function () {
99
99
  const rowId = dynamicData.path.split(".")[1];
100
100
  const id = store.searchParams?.get("id");
101
101
  saveFormdataInLocalStorage(store.ctx.core.data)
102
102
  const finalPath = `events[${rowId}]`
103
103
  store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
104
104
  },
105
- deleteEvent: async function () {
105
+ deleteEvent: function () {
106
106
  const rowId = dynamicData.path.split(".")[1];
107
107
  store.formData.events.splice(rowId, 1);
108
108
  const response = saveFormdataInLocalStorage(store.ctx.core.data)