impaktapps-ui-builder 1.0.67 → 1.0.69

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.
@@ -41,20 +41,7 @@ export declare const EventSection: (theme: any) => {
41
41
  disableSelection: boolean;
42
42
  enableDrag: boolean;
43
43
  };
44
- };
45
- elements: ({
46
- accessorKey: string;
47
- header: string;
48
- type: string;
49
- size: number;
50
- widget?: undefined;
51
- field?: undefined;
52
- } | {
53
- accessorKey: string;
54
- header: string;
55
- size: number;
56
- type: string;
57
- widget: {
44
+ action: ({
58
45
  type: string;
59
46
  scope: string;
60
47
  options: {
@@ -63,27 +50,15 @@ export declare const EventSection: (theme: any) => {
63
50
  config: {
64
51
  main: {
65
52
  size: string;
66
- icon: string;
53
+ startIcon: string;
67
54
  tooltipMessage: string;
68
55
  onClick: string;
56
+ name: string;
69
57
  styleDefault?: undefined;
70
58
  };
71
- style: {
72
- fill: any;
73
- "& :hover": {
74
- fill: any;
75
- };
76
- };
77
59
  };
78
60
  accessorKeyName?: undefined;
79
- };
80
- field?: undefined;
81
- } | {
82
- accessorKey: string;
83
- header: string;
84
- size: number;
85
- type: string;
86
- widget: {
61
+ } | {
87
62
  type: string;
88
63
  scope: string;
89
64
  accessorKeyName: string;
@@ -92,27 +67,15 @@ export declare const EventSection: (theme: any) => {
92
67
  };
93
68
  config: {
94
69
  main: {
95
- icon: string;
70
+ startIcon: string;
96
71
  tooltipMessage: string;
97
72
  onClick: string;
98
- size?: undefined;
73
+ name: string;
74
+ size: string;
99
75
  styleDefault?: undefined;
100
76
  };
101
- style: {
102
- fill: any;
103
- "& :hover": {
104
- fill: any;
105
- };
106
- };
107
77
  };
108
- };
109
- field?: undefined;
110
- } | {
111
- header: string;
112
- field: string;
113
- size: number;
114
- type: string;
115
- widget: {
78
+ } | {
116
79
  type: string;
117
80
  scope: string;
118
81
  options: {
@@ -120,18 +83,23 @@ export declare const EventSection: (theme: any) => {
120
83
  };
121
84
  config: {
122
85
  main: {
123
- icon: string;
86
+ startIcon: string;
124
87
  onClick: string;
125
88
  tooltipMessage: string;
126
89
  styleDefault: boolean;
90
+ name: string;
127
91
  size?: undefined;
128
92
  };
129
- style?: undefined;
130
93
  };
131
94
  accessorKeyName?: undefined;
132
- };
133
- accessorKey?: undefined;
134
- })[];
95
+ })[];
96
+ };
97
+ elements: {
98
+ accessorKey: string;
99
+ header: string;
100
+ type: string;
101
+ size: number;
102
+ }[];
135
103
  }[];
136
104
  };
137
105
  export declare const EventSectionSchema: {
@@ -41,20 +41,7 @@ export declare const TableSection: (theme: any) => {
41
41
  disableSelection: boolean;
42
42
  enableDrag: boolean;
43
43
  };
44
- };
45
- elements: ({
46
- accessorKey: string;
47
- header: string;
48
- type: string;
49
- size: number;
50
- field?: undefined;
51
- widget?: undefined;
52
- } | {
53
- header: string;
54
- field: string;
55
- size: number;
56
- type: string;
57
- widget: {
44
+ action: ({
58
45
  type: string;
59
46
  scope: string;
60
47
  options: {
@@ -62,28 +49,15 @@ export declare const TableSection: (theme: any) => {
62
49
  };
63
50
  config: {
64
51
  main: {
65
- icon: string;
52
+ startIcon: string;
66
53
  size: string;
67
54
  onClick: string;
68
55
  tooltipMessage: string;
56
+ name: string;
69
57
  styleDefault?: undefined;
70
- disabled?: undefined;
71
- };
72
- style: {
73
- fill: any;
74
- "& :hover": {
75
- fill: any;
76
- };
77
58
  };
78
59
  };
79
- };
80
- accessorKey?: undefined;
81
- } | {
82
- header: string;
83
- field: string;
84
- size: number;
85
- type: string;
86
- widget: {
60
+ } | {
87
61
  type: string;
88
62
  scope: string;
89
63
  options: {
@@ -91,47 +65,22 @@ export declare const TableSection: (theme: any) => {
91
65
  };
92
66
  config: {
93
67
  main: {
94
- icon: string;
95
- onClick: string;
96
- tooltipMessage: string;
97
- size?: undefined;
98
- styleDefault?: undefined;
99
- disabled?: undefined;
100
- };
101
- style: {
102
- fill: any;
103
- "& :hover": {
104
- fill: any;
105
- };
106
- };
107
- };
108
- };
109
- accessorKey?: undefined;
110
- } | {
111
- header: string;
112
- field: string;
113
- size: number;
114
- type: string;
115
- widget: {
116
- type: string;
117
- scope: string;
118
- options: {
119
- widget: string;
120
- };
121
- config: {
122
- main: {
123
- icon: string;
68
+ startIcon: string;
124
69
  onClick: string;
125
70
  styleDefault: boolean;
126
- disabled: boolean;
71
+ name: string;
127
72
  size?: undefined;
128
73
  tooltipMessage?: undefined;
129
74
  };
130
- style?: undefined;
131
75
  };
132
- };
133
- accessorKey?: undefined;
134
- })[];
76
+ })[];
77
+ };
78
+ elements: {
79
+ accessorKey: string;
80
+ header: string;
81
+ type: string;
82
+ size: number;
83
+ }[];
135
84
  }[];
136
85
  };
137
86
  export declare const TableSectionSchema: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -74,95 +74,71 @@ export const EventSection = (theme)=>{
74
74
  enableDrag: true,
75
75
 
76
76
  },
77
- },
78
- elements: [
79
-
80
- {
81
- accessorKey: "eventType",
82
- header: "Event's Type",
83
- type: "string",
84
- size: 300,
85
- },
86
- {
87
- accessorKey: "Handler",
88
- header: "Handler",
89
- type: "string",
90
- size: 200,
91
- },
92
- {
93
- accessorKey: "Edit_Approve_Records",
94
- header: "Edit",
95
- size: 150,
96
- type: "action",
97
- widget: {
77
+ action: [
78
+ {
98
79
  type: "Control",
99
80
  scope: "#/properties/Edit_Records",
100
81
  options: {
101
- widget: "IconButton",
82
+ widget: "Button",
102
83
  },
103
84
  config: {
104
85
  main: {
105
86
  size: "small",
106
- icon: "TableEditIcon",
87
+ startIcon: "EditIcon",
107
88
  tooltipMessage: "Edit This Record",
108
89
  onClick: "eventEditHandler",
109
- },
110
- style: {
111
- fill: theme.palette.primary.main,
112
- "& :hover": {
113
- fill: theme.palette.primary.dark,
114
- },
90
+ name: "Edit"
115
91
  },
116
92
  },
117
93
  },
118
- },
119
- {
120
- accessorKey: "Reject_Records",
121
- header: "Delete",
122
- size: 150,
123
- type: "action",
124
- widget: {
94
+ {
125
95
  type: "Control",
126
96
  scope: "#/properties/RejectButton",
127
97
  accessorKeyName: "Reject_Records",
128
98
  options: {
129
- widget: "IconButton",
99
+ widget: "Button",
130
100
  },
131
101
  config: {
132
102
  main: {
133
- icon: "Bin",
103
+ startIcon: "Bin",
134
104
  tooltipMessage: "Reject This Record",
135
105
  onClick: "deletePopUpEvent",
136
- },
137
- style: {
138
- fill: theme.palette.primary.main,
139
- "& :hover": {
140
- fill: theme.palette.primary.dark,
141
- },
106
+ name: "Delete",
107
+ size: "small"
142
108
  },
143
109
  },
144
110
  },
145
- },
146
- {
147
- header: "Copy",
148
- field: "Copy_Event",
149
- size: 150,
150
- type: "action",
151
- widget: {
111
+ {
152
112
  type: "Control",
153
113
  scope: "#/properties/Copy_Event",
154
114
  options: {
155
- widget: "IconButton",
115
+ widget: "Button",
156
116
  },
157
117
  config: {
158
118
  main: {
159
- icon: "FileCopyIcon",
119
+ startIcon: "FileCopyIcon",
160
120
  onClick: "copyPasteElement",
161
121
  tooltipMessage: "Reject This Record",
162
- styleDefault: true,
122
+ styleDefault: false,
123
+ name: "Copy"
163
124
  },
164
125
  },
165
126
  },
127
+ ]
128
+ },
129
+ elements: [
130
+
131
+ {
132
+ accessorKey: "eventType",
133
+ header: "Event's Type",
134
+ type: "string",
135
+ size: 300,
136
+ },
137
+ {
138
+ accessorKey: "Handler",
139
+ header: "Handler",
140
+ type: "string",
141
+ size: 200,
166
142
  },
167
143
  ]
168
144
  }]}
@@ -74,93 +74,68 @@ export const TableSection = (theme) => {
74
74
  enableDrag: true,
75
75
 
76
76
  },
77
- },
78
- elements: [
79
- {
80
- accessorKey: "name",
81
- header: "Name",
82
- type: "string",
83
- size: 300,
84
- },
85
- {
86
- accessorKey: "type",
87
- header: "Type",
88
- type: "string",
89
- size: 200,
90
- },
91
- {
92
- header: "Edit Record",
93
- field: "Reject_Records",
94
- size: 150,
95
- type: "action",
96
- widget: {
77
+ action: [
78
+ {
97
79
  type: "Control",
98
80
  scope: "#/properties/RejectButton",
99
81
  options: {
100
- widget: "IconButton",
82
+ widget: "Button",
101
83
  },
102
84
  config: {
103
85
  main: {
104
- icon: "TableEditIcon",
86
+ startIcon: "EditIcon",
105
87
  size: "small",
106
88
  onClick: "editComponents",
107
89
  tooltipMessage: "Reject This Record",
108
- },
109
- style: {
110
- fill: theme.palette.primary.main,
111
- "& :hover": {
112
- fill: theme.palette.primary.dark,
113
- },
90
+ name: "Edit"
114
91
  },
115
92
  },
116
93
  },
117
- },
118
- {
119
- header: "Delete",
120
- field: "Reject_Records",
121
- size: 150,
122
- type: "action",
123
- widget: {
94
+ {
124
95
  type: "Control",
125
96
  scope: "#/properties/RejectButton",
126
97
  options: {
127
- widget: "IconButton",
98
+ widget: "Button",
128
99
  },
129
100
  config: {
130
101
  main: {
131
- icon: "Bin",
102
+ startIcon: "Bin",
132
103
  onClick: "deletePopUpComponent",
133
104
  tooltipMessage: "Reject This Record",
134
- },
135
- style: {
136
- fill: theme.palette.primary.main,
137
- "& :hover": {
138
- fill: theme.palette.primary.dark,
139
- },
105
+ name: "Delete",
106
+ size: "small"
140
107
  },
141
108
  },
142
109
  },
143
- },
144
- {
145
- header: "Copy",
146
- field: "Copy_Component",
147
- size: 150,
148
- type: "action",
149
- widget: {
110
+ {
150
111
  type: "Control",
151
112
  scope: "#/properties/Copy_Component",
152
113
  options: {
153
- widget: "IconButton",
114
+ widget: "Button",
154
115
  },
155
116
  config: {
156
117
  main: {
157
- icon: "FileCopyIcon",
118
+ startIcon: "FileCopyIcon",
158
119
  onClick: "copyPasteElement",
159
- styleDefault: true,
160
- disabled: false
120
+ styleDefault: false,
121
+ name: "Copy"
161
122
  },
162
123
  },
163
124
  },
125
+ ]
126
+ },
127
+ elements: [
128
+ {
129
+ accessorKey: "name",
130
+ header: "Name",
131
+ type: "string",
132
+ size: 300,
133
+ },
134
+ {
135
+ accessorKey: "type",
136
+ header: "Type",
137
+ type: "string",
138
+ size: 200,
164
139
  },
165
140
  ]
166
141
  }]