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
|
@@ -6310,14 +6310,6 @@ const ComponentSchema = {
|
|
|
6310
6310
|
{ title: "500", const: 500 }
|
|
6311
6311
|
]
|
|
6312
6312
|
},
|
|
6313
|
-
initialDensity: {
|
|
6314
|
-
type: "string",
|
|
6315
|
-
oneOf: [
|
|
6316
|
-
{ title: "Compact", const: "compact" },
|
|
6317
|
-
{ title: "Comfortable", const: "comfortable" },
|
|
6318
|
-
{ title: "Spacious", const: "spacious" }
|
|
6319
|
-
]
|
|
6320
|
-
},
|
|
6321
6313
|
layout: {
|
|
6322
6314
|
type: "array",
|
|
6323
6315
|
items: {
|
|
@@ -7880,7 +7872,6 @@ const buildPropertiesSection = function(type) {
|
|
|
7880
7872
|
getInputField("selectKey", "Selection Key"),
|
|
7881
7873
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
7882
7874
|
getSelectField("maxPageSize", "Max Page Size"),
|
|
7883
|
-
getSelectField("initialDensity", "Initial Toggle Density"),
|
|
7884
7875
|
buildWrapper("Tree Table Properties", [
|
|
7885
7876
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
7886
7877
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
@@ -10439,23 +10430,15 @@ var service = (funcParams) => {
|
|
|
10439
10430
|
var _a, _b;
|
|
10440
10431
|
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) !== funcParams.store.newData[componentName] && ((_b = funcParams.store) == null ? void 0 : _b.newData[componentName]) !== void 0) {
|
|
10441
10432
|
for (const eventConfig of eventGroups.onChange[componentName]) {
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
}
|
|
10452
|
-
} else {
|
|
10453
|
-
await executeEvents({
|
|
10454
|
-
...executeEventsParameters,
|
|
10455
|
-
config: eventConfig,
|
|
10456
|
-
componentName
|
|
10457
|
-
});
|
|
10458
|
-
}
|
|
10433
|
+
await executeEvents({
|
|
10434
|
+
...executeEventsParameters,
|
|
10435
|
+
config: eventConfig,
|
|
10436
|
+
componentName,
|
|
10437
|
+
formDataHolder
|
|
10438
|
+
});
|
|
10439
|
+
}
|
|
10440
|
+
if (!lodash.exports.isEmpty(formDataHolder)) {
|
|
10441
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
10459
10442
|
}
|
|
10460
10443
|
}
|
|
10461
10444
|
}));
|
|
@@ -10514,25 +10497,16 @@ var service = (funcParams) => {
|
|
|
10514
10497
|
var _a, _b, _c;
|
|
10515
10498
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
|
|
10516
10499
|
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
10517
|
-
(_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
|
|
10500
|
+
(_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map(async (eventConfig) => {
|
|
10518
10501
|
executeEventsParameters.store.functionParameters = functionParameters;
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
10528
|
-
}
|
|
10529
|
-
});
|
|
10530
|
-
} else {
|
|
10531
|
-
executeEvents({
|
|
10532
|
-
...executeEventsParameters,
|
|
10533
|
-
config: eventConfig,
|
|
10534
|
-
componentName: path
|
|
10535
|
-
});
|
|
10502
|
+
await executeEvents({
|
|
10503
|
+
...executeEventsParameters,
|
|
10504
|
+
config: eventConfig,
|
|
10505
|
+
componentName: path,
|
|
10506
|
+
formDataHolder
|
|
10507
|
+
});
|
|
10508
|
+
if (!lodash.exports.isEmpty(formDataHolder)) {
|
|
10509
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
10536
10510
|
}
|
|
10537
10511
|
});
|
|
10538
10512
|
}
|
|
@@ -11217,9 +11191,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11217
11191
|
if (config2.maxPageSize) {
|
|
11218
11192
|
table.config.main.maxPageSize = config2.maxPageSize;
|
|
11219
11193
|
}
|
|
11220
|
-
if (config2.initialDensity) {
|
|
11221
|
-
table.config.main.initialDensity = config2.initialDensity;
|
|
11222
|
-
}
|
|
11223
11194
|
return table;
|
|
11224
11195
|
};
|
|
11225
11196
|
const Box = {
|