impaktapps-ui-builder 0.0.387 → 0.0.389

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.
@@ -22,6 +22,12 @@ export declare const PageMasterSchema: {
22
22
  };
23
23
  };
24
24
  };
25
+ template: {
26
+ oneOf: {
27
+ const: string;
28
+ title: string;
29
+ }[];
30
+ };
25
31
  sectionLabels: {
26
32
  type: string;
27
33
  items: {
@@ -33,6 +33,12 @@ declare const _default: (funcParams: funcParamsProps) => {
33
33
  };
34
34
  };
35
35
  };
36
+ template: {
37
+ oneOf: {
38
+ const: string;
39
+ title: string;
40
+ }[];
41
+ };
36
42
  sectionLabels: {
37
43
  type: string;
38
44
  items: {
@@ -11,6 +11,7 @@ interface funcParamsProps {
11
11
  declare const _default: (funcParams: funcParamsProps) => {
12
12
  setPage: () => Promise<void>;
13
13
  onClick: () => Promise<void>;
14
+ onLazyLoad: () => Promise<void>;
14
15
  onFileDownload: () => Promise<void>;
15
16
  onFileUpload: () => Promise<void>;
16
17
  onPaginationChange: (paginationValues: any) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.387",
3
+ "version": "0.0.389",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -23,13 +23,13 @@ export const PageMasterSchema = {
23
23
  },
24
24
  },
25
25
  },
26
- // template: {
27
- // oneOf: [
28
- // { const: "Template-1", title: "template1" },
29
- // { const: "Template-2", title: "template2" },
30
- // { const: "Template-3", title: "template3" }
31
- // ]
32
- // },
26
+ template: {
27
+ oneOf: [
28
+ { const: "Template-1", title: "template1" },
29
+ { const: "Template-2", title: "template2" },
30
+ { const: "Template-3", title: "template3" }
31
+ ]
32
+ },
33
33
  sectionLabels: {
34
34
  type: "array",
35
35
  items: {
@@ -42,5 +42,5 @@ export const PageMasterSchema = {
42
42
  },
43
43
  }
44
44
  },
45
- required:["label","name"]
45
+ required:["template","name"]
46
46
  }
@@ -80,41 +80,25 @@ export const PageMasterUiSchema: any = {
80
80
  },
81
81
  {
82
82
  type: "Control",
83
- scope: "#/properties/label",
83
+ scope: "#/properties/template",
84
84
 
85
85
  options: {
86
- widget: "InputField",
86
+ widget: "SelectInputField",
87
87
  },
88
88
  config: {
89
89
  layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
90
90
  main: {
91
- label: "label",
91
+ label: "Template",
92
+ options: [
93
+ {const:"template1",title:"template1"},
94
+ {const:"template2",title:"template2"},
95
+ {const:"template3",title:"template3"}
96
+ ],
92
97
  color: "secondary",
93
98
  required: true,
94
99
  },
95
100
  },
96
101
  }
97
- // {
98
- // type: "Control",
99
- // scope: "#/properties/template",
100
-
101
- // options: {
102
- // widget: "SelectInputField",
103
- // },
104
- // config: {
105
- // layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
106
- // main: {
107
- // label: "Template",
108
- // options: [
109
- // {const:"template1",title:"template1"},
110
- // {const:"template2",title:"template2"},
111
- // {const:"template3",title:"template3"}
112
- // ],
113
- // color: "secondary",
114
- // required: true,
115
- // },
116
- // },
117
- // }
118
102
  ],
119
103
  },
120
104
  {
@@ -49,11 +49,18 @@ export default (funcParams: funcParamsProps) => {
49
49
  store.formData.elements = []
50
50
  }
51
51
  const response = saveFormdataInLocalStorage(store.ctx.core.data)
52
- store.navigate(
53
- `/Component?path=${`elements[${response?.elements.length}]`}&id=${id}`
54
- );
52
+ if (id) {
53
+ store.navigate(
54
+ `/Component?path=${`elements[${response?.elements.length}]`}&id=${id}`
55
+ );
56
+ }else{
57
+ store.navigate(
58
+ `/Component?path=${`elements[${response?.elements.length}]`}`
59
+ );
60
+ }
61
+
55
62
  },
56
- saveHandler: async ()=> await saveHandler(store,service,submitHandler),
63
+ saveHandler: async () => await saveHandler(store, service, submitHandler),
57
64
  Edit_Components: Component(store, dynamicData, submitHandler, service).editComponents,
58
65
  Delete_Components: Component(store, dynamicData, submitHandler, service).deleteComponents,
59
66
  eventAddHandler: function () {
@@ -91,6 +91,9 @@ export default (funcParams: funcParamsProps) => {
91
91
  onClick: async function () {
92
92
  await this.callHandler("onClick")
93
93
  },
94
+ onLazyLoad: async function () {
95
+ await this.callHandler("onLazyLoad")
96
+ },
94
97
  onFileDownload: async function () {
95
98
  await this.callHandler("onDownload")
96
99
  },