impaktapps-ui-builder 1.0.123-testValidation → 1.0.124

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.123-testValidation",
3
+ "version": "1.0.124",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -77,8 +77,5 @@ export const buildTable = (config: any, componentScope: string) => {
77
77
  if (config.maxPageSize) {
78
78
  table.config.main.maxPageSize = config.maxPageSize
79
79
  }
80
- if(config.initialDensity){
81
- table.config.main.initialDensity = config.initialDensity
82
- }
83
80
  return table;
84
81
  };
@@ -487,11 +487,6 @@ export const buildPropertiesSection = function (type: String) {
487
487
  { label: "100", value: 100 },
488
488
  { label: "500", value: 500 }
489
489
  ]),
490
- getSelectField("initialDensity", "Initial Toggle Density", [
491
- { label: "Compact", value: "compact" },
492
- { label: "Comfortable", value: "comfortable" },
493
- { label: "Spacious", value: "spacious" }
494
- ]),
495
490
  buildWrapper("Tree Table Properties", [
496
491
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
497
492
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -94,14 +94,6 @@ export const ComponentSchema: any = {
94
94
  { title: "500", const: 500 }
95
95
  ]
96
96
  },
97
- initialDensity:{
98
- type: "string",
99
- oneOf: [
100
- { title: "Compact", const: "compact" },
101
- { title: "Comfortable", const: "comfortable" },
102
- { title: "Spacious", const: "spacious" }
103
- ]
104
- },
105
97
  layout: {
106
98
  type: "array",
107
99
  items: {
@@ -68,15 +68,7 @@ export default (funcParams: funcParamsProps) => {
68
68
  }
69
69
 
70
70
  },
71
- saveHandler: async () => {
72
- if (store.ctx.core.errors.length > 0) {
73
- store.setValidation("ValidateAndShow");
74
- store.setNotify({
75
- FailMessage: "Errors on page",
76
- Fail: true,
77
- });
78
- }else await saveHandler(store, service, submitHandler);
79
- },
71
+ saveHandler: async () => await saveHandler(store, service, submitHandler),
80
72
  Edit_Components: Component(store, dynamicData, submitHandler, service).editComponents,
81
73
 
82
74
  Delete_Components: async function () {
@@ -192,24 +192,15 @@ export default (funcParams: funcParamsProps) => {
192
192
  funcParams.store?.newData[componentName] !== undefined
193
193
  ) {
194
194
  for (const eventConfig of eventGroups.onChange[componentName]) {
195
-
196
- if (eventConfig.Handler === "refresh") {
197
- await executeEvents({
198
- ...executeEventsParameters,
199
- config: eventConfig,
200
- componentName,
201
- formDataHolder: formDataHolder
202
- })
203
- if (!isEmpty(formDataHolder)) {
204
- funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
205
- }
206
- } else {
207
- await executeEvents({
208
- ...executeEventsParameters,
209
- config: eventConfig,
210
- componentName,
211
- })
212
- }
195
+ await executeEvents({
196
+ ...executeEventsParameters,
197
+ config: eventConfig,
198
+ componentName,
199
+ formDataHolder:formDataHolder
200
+ })
201
+ }
202
+ if (!isEmpty(formDataHolder)) {
203
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
213
204
  }
214
205
  }
215
206
  }))
@@ -261,25 +252,16 @@ export default (funcParams: funcParamsProps) => {
261
252
  callHandler: function (eventType: string, functionParameters?: any) {
262
253
  const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
263
254
  if (eventGroups?.[eventType]?.[path] !== undefined) {
264
- (eventGroups?.[eventType]?.[path].map((eventConfig) => {
255
+ (eventGroups?.[eventType]?.[path].map(async (eventConfig) => {
265
256
  executeEventsParameters.store.functionParameters = functionParameters
266
- if (eventConfig.Handler === "refresh") {
267
- executeEvents({
268
- ...executeEventsParameters,
269
- config: eventConfig,
270
- componentName: path,
271
- formDataHolder: formDataHolder
272
- }).then((res) => {
273
- if (!isEmpty(formDataHolder)) {
274
- funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
275
- }
276
- });
277
- } else {
278
- executeEvents({
279
- ...executeEventsParameters,
280
- config: eventConfig,
281
- componentName: path
282
- })
257
+ await executeEvents({
258
+ ...executeEventsParameters,
259
+ config: eventConfig,
260
+ componentName: path,
261
+ formDataHolder: formDataHolder
262
+ })
263
+ if (!isEmpty(formDataHolder)) {
264
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
283
265
  }
284
266
  }))
285
267
  }