impaktapps-ui-builder 1.0.124 → 1.0.125

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.
@@ -6310,6 +6310,14 @@ 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
+ },
6313
6321
  layout: {
6314
6322
  type: "array",
6315
6323
  items: {
@@ -7872,6 +7880,7 @@ const buildPropertiesSection = function(type) {
7872
7880
  getInputField("selectKey", "Selection Key"),
7873
7881
  getMultiSelectField("filteringOptions", "Filtering Options"),
7874
7882
  getSelectField("maxPageSize", "Max Page Size"),
7883
+ getSelectField("initialDensity", "Initial Toggle Density"),
7875
7884
  buildWrapper("Tree Table Properties", [
7876
7885
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7877
7886
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -10436,9 +10445,9 @@ var service = (funcParams) => {
10436
10445
  componentName,
10437
10446
  formDataHolder
10438
10447
  });
10439
- }
10440
- if (!lodash.exports.isEmpty(formDataHolder)) {
10441
- funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10448
+ if (eventConfig.Handler === "refresh") {
10449
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10450
+ }
10442
10451
  }
10443
10452
  }
10444
10453
  }));
@@ -10497,16 +10506,23 @@ var service = (funcParams) => {
10497
10506
  var _a, _b, _c;
10498
10507
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
10499
10508
  if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
10500
- (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map(async (eventConfig) => {
10509
+ (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
10501
10510
  executeEventsParameters.store.functionParameters = functionParameters;
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 }));
10511
+ if (eventConfig.Handler === "refresh") {
10512
+ executeEvents({
10513
+ ...executeEventsParameters,
10514
+ config: eventConfig,
10515
+ componentName: path,
10516
+ formDataHolder
10517
+ }).then((res) => {
10518
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10519
+ });
10520
+ } else {
10521
+ executeEvents({
10522
+ ...executeEventsParameters,
10523
+ config: eventConfig,
10524
+ componentName: path
10525
+ });
10510
10526
  }
10511
10527
  });
10512
10528
  }
@@ -11191,6 +11207,9 @@ const buildTable = (config2, componentScope2) => {
11191
11207
  if (config2.maxPageSize) {
11192
11208
  table.config.main.maxPageSize = config2.maxPageSize;
11193
11209
  }
11210
+ if (config2.initialDensity) {
11211
+ table.config.main.initialDensity = config2.initialDensity;
11212
+ }
11194
11213
  return table;
11195
11214
  };
11196
11215
  const Box = {