impaktapps-ui-builder 0.0.402 → 0.0.404
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 +21 -11
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +3 -3
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +2 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +9 -6
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import Table from "./uischema/table";
|
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import buildUiSchema from "./buildUiSchema";
|
|
4
4
|
import lazyLoadingTable from "./uischema/lazyLoadingTable";
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
export const buildTable = (config: any, componentScope: string) => {
|
|
7
7
|
const table: any = _.cloneDeep(Table);
|
|
8
8
|
table.scope = componentScope;
|
|
@@ -315,10 +315,12 @@ const buildUiSchema = (config: any) => {
|
|
|
315
315
|
accessorKey: e.name,
|
|
316
316
|
header: e.label || e.name,
|
|
317
317
|
size: sizeMap[e.name]|| 180,
|
|
318
|
+
type:e.type,
|
|
318
319
|
widget: buildUiSchema(e)
|
|
319
320
|
}
|
|
320
321
|
}
|
|
321
322
|
return {
|
|
323
|
+
type:e.type,
|
|
322
324
|
accessorKey: e.name,
|
|
323
325
|
header: e.label || e.name,
|
|
324
326
|
size: sizeMap[e.name]|| 180
|
|
@@ -37,7 +37,14 @@ export const ComponentSchema: any = {
|
|
|
37
37
|
{ title: "Text", const: "Text" },
|
|
38
38
|
{ title: "Text Area", const: "TextArea" },
|
|
39
39
|
{ title: "Timer", const: "Timer" },
|
|
40
|
-
{ title: "Upload File", const: "UploadFile" },
|
|
40
|
+
{ title: "Upload File", const: "UploadFile" },
|
|
41
|
+
{ title: "Text Area", const: "TextArea" },
|
|
42
|
+
{ title: "Timer", const: "Timer" },
|
|
43
|
+
{ title: "Upload File", const: "UploadFile" },
|
|
44
|
+
{ title: "Date Column", const: "date" },
|
|
45
|
+
{ title: "DateTime Column", const: "dateTime" },
|
|
46
|
+
{ title: "Amount Column", const: "amount" },
|
|
47
|
+
]
|
|
41
48
|
},
|
|
42
49
|
orientation:{
|
|
43
50
|
oneOf: [
|
|
@@ -220,7 +220,7 @@ export function getRefreshElements(eventConfig: any, eventGropus: any) {
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
|
|
223
|
-
function asyncOperation() {
|
|
223
|
+
export function asyncOperation() {
|
|
224
224
|
return new Promise((resolve, reject) => {
|
|
225
225
|
setTimeout(() => {
|
|
226
226
|
const success = true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _, { isEmpty } from "lodash";
|
|
2
2
|
import { doDownload, downloadFile } from "./downloadFile";
|
|
3
|
-
import { executeEvents, executeRefreshHandler } from "./events";
|
|
3
|
+
import { asyncOperation, executeEvents, executeRefreshHandler } from "./events";
|
|
4
4
|
import { handlersProps } from "./interface";
|
|
5
5
|
let compType: string;
|
|
6
6
|
let eventGroups: any = {};
|
|
@@ -69,12 +69,19 @@ export default (funcParams: funcParamsProps) => {
|
|
|
69
69
|
return {
|
|
70
70
|
setPage: async function () {
|
|
71
71
|
funcParams.store.setFormdata({});
|
|
72
|
+
const demoData = await asyncOperation();
|
|
72
73
|
executeEventsParameters = {
|
|
73
74
|
config: {}, componentName: "",
|
|
74
75
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
75
76
|
functionsProvider: funcParams.functionsProvider,
|
|
76
77
|
serviceHolder: this, eventGroups
|
|
77
78
|
}
|
|
79
|
+
await executeRefreshHandler({
|
|
80
|
+
config: {}, componentName: "",
|
|
81
|
+
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
82
|
+
serviceHolder: this, eventGroups
|
|
83
|
+
})
|
|
84
|
+
const demoData2 = await asyncOperation();
|
|
78
85
|
funcParams.store.setSchema(
|
|
79
86
|
(pre: any) => {
|
|
80
87
|
return {
|
|
@@ -85,11 +92,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
85
92
|
)
|
|
86
93
|
funcParams.uiSchema.elements.push(notifyUiSchema);
|
|
87
94
|
funcParams.store.setUiSchema(funcParams.uiSchema);
|
|
88
|
-
|
|
89
|
-
config: {}, componentName: "",
|
|
90
|
-
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
91
|
-
serviceHolder: this, eventGroups
|
|
92
|
-
})
|
|
95
|
+
|
|
93
96
|
},
|
|
94
97
|
onClick: async function () {
|
|
95
98
|
await this.callHandler("onClick")
|