impaktapps-ui-builder 0.0.1058 → 0.0.1060

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.
@@ -11848,7 +11848,9 @@ const ArrayDetailUiSchema = {
11848
11848
  type: "Control",
11849
11849
  scope: "#/properties/adjustments",
11850
11850
  layout: 11.5,
11851
- elements: []
11851
+ options: {
11852
+ elements: []
11853
+ }
11852
11854
  };
11853
11855
  const buildArray = (config2, componentScope2) => {
11854
11856
  let array = _.cloneDeep(ArrayUiSchema);
@@ -12199,7 +12201,6 @@ function buildRule(configObj, tableName, arrayHolderName) {
12199
12201
  if (arrayHolderName) {
12200
12202
  if ((_c = (_b = (_a = schema.properties) == null ? void 0 : _a[tableName]) == null ? void 0 : _b.items) == null ? void 0 : _c.properties) {
12201
12203
  if (!((_g = (_f = (_e = (_d = schema.properties) == null ? void 0 : _d[tableName]) == null ? void 0 : _e.items) == null ? void 0 : _f.properties) == null ? void 0 : _g[configObj.name])) {
12202
- schema.properties[tableName].items.properties[configObj.name] = {};
12203
12204
  if (configObj.type === "Select" && ((_h = configObj.value) == null ? void 0 : _h.length) > 0) {
12204
12205
  schema.properties[tableName].items.properties[configObj.name] = {
12205
12206
  oneOf: configObj.value.map((e) => {
@@ -12214,6 +12215,8 @@ function buildRule(configObj, tableName, arrayHolderName) {
12214
12215
  })
12215
12216
  }
12216
12217
  };
12218
+ } else {
12219
+ schema.properties[tableName].items.properties[configObj.name] = { type: "string" };
12217
12220
  }
12218
12221
  }
12219
12222
  }
@@ -12510,7 +12513,7 @@ const buildUiSchema = (config2, store2) => {
12510
12513
  return buildUiSchema(e, store2);
12511
12514
  });
12512
12515
  if (config2.detailView === "Yes") {
12513
- elements.elements = ArrayElements;
12516
+ elements.options.elements = ArrayElements;
12514
12517
  } else {
12515
12518
  elements.options.detail.elements = ArrayElements;
12516
12519
  }