impaktapps-ui-builder 1.0.125 → 1.0.129
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 +49 -53
- 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/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +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/builder/services/component.ts +2 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +58 -42
|
@@ -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"]),
|
|
@@ -8474,7 +8465,7 @@ function refreshPage(type, store2) {
|
|
|
8474
8465
|
};
|
|
8475
8466
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8476
8467
|
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8477
|
-
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8468
|
+
UiSchema.elements[0].elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8478
8469
|
}
|
|
8479
8470
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8480
8471
|
const lastDotIndex = path.lastIndexOf(".");
|
|
@@ -10432,26 +10423,34 @@ var service = (funcParams) => {
|
|
|
10432
10423
|
return response == null ? void 0 : response.data;
|
|
10433
10424
|
}
|
|
10434
10425
|
},
|
|
10435
|
-
onChange:
|
|
10436
|
-
if (eventGroups.onChange)
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10426
|
+
onChange: function() {
|
|
10427
|
+
if (!eventGroups.onChange)
|
|
10428
|
+
return;
|
|
10429
|
+
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10430
|
+
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10431
|
+
var _a, _b;
|
|
10432
|
+
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) {
|
|
10433
|
+
return [];
|
|
10434
|
+
}
|
|
10435
|
+
return eventGroups.onChange[componentName].map(
|
|
10436
|
+
(eventConfig) => Promise.resolve(
|
|
10437
|
+
executeEvents({
|
|
10438
|
+
...executeEventsParameters,
|
|
10439
|
+
config: eventConfig,
|
|
10440
|
+
componentName,
|
|
10441
|
+
formDataHolder
|
|
10442
|
+
})
|
|
10443
|
+
).then(() => {
|
|
10444
|
+
if (!lodash.exports.isEmpty(formDataHolder)) {
|
|
10445
|
+
funcParams.store.setFormdata((pre) => ({
|
|
10446
|
+
...pre,
|
|
10447
|
+
...formDataHolder
|
|
10448
|
+
}));
|
|
10451
10449
|
}
|
|
10452
|
-
}
|
|
10453
|
-
|
|
10454
|
-
}
|
|
10450
|
+
})
|
|
10451
|
+
);
|
|
10452
|
+
});
|
|
10453
|
+
Promise.allSettled(promises);
|
|
10455
10454
|
},
|
|
10456
10455
|
callExecuteEvents: async function(paramValue, apiBody, eventType) {
|
|
10457
10456
|
var _a, _b;
|
|
@@ -10503,29 +10502,29 @@ var service = (funcParams) => {
|
|
|
10503
10502
|
}
|
|
10504
10503
|
},
|
|
10505
10504
|
callHandler: function(eventType, functionParameters) {
|
|
10506
|
-
var _a, _b
|
|
10507
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")
|
|
10508
|
-
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path])
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
...
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
});
|
|
10505
|
+
var _a, _b;
|
|
10506
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".").pop();
|
|
10507
|
+
if (!((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]))
|
|
10508
|
+
return;
|
|
10509
|
+
const promises = eventGroups[eventType][path].map((eventConfig) => {
|
|
10510
|
+
executeEventsParameters.store.functionParameters = functionParameters;
|
|
10511
|
+
return Promise.resolve(
|
|
10512
|
+
executeEvents({
|
|
10513
|
+
...executeEventsParameters,
|
|
10514
|
+
config: eventConfig,
|
|
10515
|
+
componentName: path,
|
|
10516
|
+
formDataHolder
|
|
10517
|
+
})
|
|
10518
|
+
).then(() => {
|
|
10519
|
+
if (!lodash.exports.isEmpty(formDataHolder)) {
|
|
10520
|
+
funcParams.store.setFormdata((pre) => ({
|
|
10521
|
+
...pre,
|
|
10522
|
+
...formDataHolder
|
|
10523
|
+
}));
|
|
10526
10524
|
}
|
|
10527
10525
|
});
|
|
10528
|
-
}
|
|
10526
|
+
});
|
|
10527
|
+
Promise.allSettled(promises);
|
|
10529
10528
|
},
|
|
10530
10529
|
downloadFile: downloadFile$1,
|
|
10531
10530
|
downloadFileFromUrl,
|
|
@@ -11207,9 +11206,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11207
11206
|
if (config2.maxPageSize) {
|
|
11208
11207
|
table.config.main.maxPageSize = config2.maxPageSize;
|
|
11209
11208
|
}
|
|
11210
|
-
if (config2.initialDensity) {
|
|
11211
|
-
table.config.main.initialDensity = config2.initialDensity;
|
|
11212
|
-
}
|
|
11213
11209
|
return table;
|
|
11214
11210
|
};
|
|
11215
11211
|
const Box = {
|