impaktapps-ui-builder 0.0.1063 → 0.0.1065
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.
- package/dist/impaktapps-ui-builder.es.js +6 -4
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -3
package/package.json
CHANGED
|
@@ -361,8 +361,8 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
361
361
|
header: cellElem.label || cellElem.name,
|
|
362
362
|
size: sizeMap[cellElem.name] || 180,
|
|
363
363
|
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
364
|
-
columnFilterModeOptions:
|
|
365
|
-
enableSorting:
|
|
364
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
365
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
366
366
|
columnKey: cellElem.columnKey
|
|
367
367
|
}
|
|
368
368
|
if (cellElem.type) {
|
|
@@ -77,6 +77,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
77
77
|
return {
|
|
78
78
|
setPage: async function () {
|
|
79
79
|
funcParams.store.setFormdata({});
|
|
80
|
+
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
80
81
|
funcParams.store.newData = {};
|
|
81
82
|
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData")
|
|
82
83
|
if (pageBasicDetailString) {
|
|
@@ -203,13 +204,14 @@ export default (funcParams: funcParamsProps) => {
|
|
|
203
204
|
],
|
|
204
205
|
}
|
|
205
206
|
);
|
|
207
|
+
eventGroups = {}
|
|
206
208
|
const schema = pageData?.schema ?? { type: "object", properties: {} };
|
|
207
209
|
eventGroups = extractEvents(config);
|
|
208
210
|
executeEventsParameters = {
|
|
209
211
|
config: {}, componentName: "",
|
|
210
212
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
211
213
|
functionsProvider: funcParams.functionsProvider,
|
|
212
|
-
serviceHolder: this, eventGroups, formDataHolder
|
|
214
|
+
serviceHolder: this, eventGroups, formDataHolder: {}
|
|
213
215
|
}
|
|
214
216
|
await executeRefreshHandler({
|
|
215
217
|
config: {}, componentName: "",
|
|
@@ -274,7 +276,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
274
276
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
275
277
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
276
278
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
277
|
-
{ key: "filters", value: paginationValues.columnFilters || [] },
|
|
279
|
+
{ key: "filters", value: paginationValues.tableColumnConfig || paginationValues.columnFilters || [] },
|
|
278
280
|
{ key: "globalFilter", value: paginationValues.globalFilter ?? '' }
|
|
279
281
|
]
|
|
280
282
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
@@ -352,7 +354,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
352
354
|
}
|
|
353
355
|
},
|
|
354
356
|
callHandler: async function (eventType: string, functionParameters?: any) {
|
|
355
|
-
const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[
|
|
357
|
+
const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
|
|
356
358
|
if (eventGroups?.[eventType]?.[path] !== undefined) {
|
|
357
359
|
Promise.all(eventGroups?.[eventType]?.[path].map((eventConfig) => {
|
|
358
360
|
executeEventsParameters.store.functionParameters = functionParameters
|