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.
@@ -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"]),
@@ -8871,16 +8862,7 @@ var pageMaster = (funcParams) => {
8871
8862
  );
8872
8863
  }
8873
8864
  },
8874
- saveHandler: async () => {
8875
- if (store2.ctx.core.errors.length > 0) {
8876
- store2.setValidation("ValidateAndShow");
8877
- store2.setNotify({
8878
- FailMessage: "Errors on page",
8879
- Fail: true
8880
- });
8881
- } else
8882
- await saveHandler(store2, service2, submitHandler);
8883
- },
8865
+ saveHandler: async () => await saveHandler(store2, service2, submitHandler),
8884
8866
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
8885
8867
  Delete_Components: async function() {
8886
8868
  await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
@@ -10448,23 +10430,15 @@ var service = (funcParams) => {
10448
10430
  var _a, _b;
10449
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) {
10450
10432
  for (const eventConfig of eventGroups.onChange[componentName]) {
10451
- if (eventConfig.Handler === "refresh") {
10452
- await executeEvents({
10453
- ...executeEventsParameters,
10454
- config: eventConfig,
10455
- componentName,
10456
- formDataHolder
10457
- });
10458
- if (!lodash.exports.isEmpty(formDataHolder)) {
10459
- funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10460
- }
10461
- } else {
10462
- await executeEvents({
10463
- ...executeEventsParameters,
10464
- config: eventConfig,
10465
- componentName
10466
- });
10467
- }
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 }));
10468
10442
  }
10469
10443
  }
10470
10444
  }));
@@ -10523,25 +10497,16 @@ var service = (funcParams) => {
10523
10497
  var _a, _b, _c;
10524
10498
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
10525
10499
  if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
10526
- (_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) => {
10527
10501
  executeEventsParameters.store.functionParameters = functionParameters;
10528
- if (eventConfig.Handler === "refresh") {
10529
- executeEvents({
10530
- ...executeEventsParameters,
10531
- config: eventConfig,
10532
- componentName: path,
10533
- formDataHolder
10534
- }).then((res) => {
10535
- if (!lodash.exports.isEmpty(formDataHolder)) {
10536
- funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10537
- }
10538
- });
10539
- } else {
10540
- executeEvents({
10541
- ...executeEventsParameters,
10542
- config: eventConfig,
10543
- componentName: path
10544
- });
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 }));
10545
10510
  }
10546
10511
  });
10547
10512
  }
@@ -11226,9 +11191,6 @@ const buildTable = (config2, componentScope2) => {
11226
11191
  if (config2.maxPageSize) {
11227
11192
  table.config.main.maxPageSize = config2.maxPageSize;
11228
11193
  }
11229
- if (config2.initialDensity) {
11230
- table.config.main.initialDensity = config2.initialDensity;
11231
- }
11232
11194
  return table;
11233
11195
  };
11234
11196
  const Box = {