impaktapps-ui-builder 1.0.123 → 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/dist/impaktapps-ui-builder.es.js +18 -47
- 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/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +0 -5
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -8
- package/src/impaktapps-ui-builder/runtime/services/service.ts +18 -36
package/package.json
CHANGED
|
@@ -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: {
|
|
@@ -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
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
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
|
}
|