impaktapps-ui-builder 0.0.409-o → 0.0.409-p

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.
@@ -5913,7 +5913,8 @@ const ComponentSchema = {
5913
5913
  { title: "Upload File", const: "UploadFile" },
5914
5914
  { title: "Timer", const: "Timer" },
5915
5915
  { title: "Upload File", const: "UploadFile" },
5916
- { title: "TreeMap", const: "TreeMap" }
5916
+ { title: "TreeMap", const: "TreeMap" },
5917
+ { title: "ColumnGroup", const: "ColumnGroup" }
5917
5918
  ]
5918
5919
  },
5919
5920
  columnFormat: {
@@ -6314,27 +6315,6 @@ const componentBasicUiSchema = {
6314
6315
  }
6315
6316
  }
6316
6317
  },
6317
- {
6318
- type: "Control",
6319
- scope: "#/properties/parent",
6320
- options: {
6321
- widget: "InputField"
6322
- },
6323
- config: {
6324
- layout: {
6325
- xs: 12,
6326
- sm: 12,
6327
- md: 6,
6328
- lg: 6
6329
- },
6330
- main: {
6331
- label: "parent",
6332
- options: [],
6333
- color: "secondary",
6334
- required: true
6335
- }
6336
- }
6337
- },
6338
6318
  {
6339
6319
  type: "Control",
6340
6320
  scope: "#/properties/columnFormat",
@@ -6547,27 +6527,6 @@ const CoreSection = {
6547
6527
  }
6548
6528
  }
6549
6529
  },
6550
- {
6551
- type: "Control",
6552
- scope: "#/properties/parent",
6553
- options: {
6554
- widget: "InputField"
6555
- },
6556
- config: {
6557
- layout: {
6558
- xs: 12,
6559
- sm: 12,
6560
- md: 6,
6561
- lg: 6
6562
- },
6563
- main: {
6564
- label: "parent",
6565
- options: [],
6566
- color: "secondary",
6567
- required: true
6568
- }
6569
- }
6570
- },
6571
6530
  {
6572
6531
  type: "Control",
6573
6532
  scope: "#/properties/columnFormat",
@@ -7598,7 +7557,8 @@ const sectionLabels = {
7598
7557
  Stepper: ["Core", "Components", "Properties", "Event", "Style"],
7599
7558
  DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
7600
7559
  InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
7601
- TreeMap: ["Core", "Components", "Properties", "Event", "Style"]
7560
+ TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
7561
+ ColumnGroup: ["Core", "Components"]
7602
7562
  };
7603
7563
  const refreshPage = (type, store2) => {
7604
7564
  var _a;
@@ -10485,8 +10445,10 @@ const buildMultiSelect = (config, componentScope) => {
10485
10445
  const buildBasicUiSchema = (config) => {
10486
10446
  return {
10487
10447
  "type": "HorizontalLayout",
10488
- pageName: `${config.name}`,
10489
- scope: `${config.name}`,
10448
+ pageName: config.name,
10449
+ name: config.name,
10450
+ accessorKey: config.name,
10451
+ header: config.label || config.name,
10490
10452
  "elements": []
10491
10453
  };
10492
10454
  };
@@ -11202,6 +11164,13 @@ const buildUiSchema = (config) => {
11202
11164
  case "Timer":
11203
11165
  elements = buildTimer(config, componentScope);
11204
11166
  break;
11167
+ case "ColumnGroup":
11168
+ elements = {
11169
+ accessorKey: config.name,
11170
+ header: config.label || config.name,
11171
+ elements: []
11172
+ };
11173
+ break;
11205
11174
  case "MultipleSelect":
11206
11175
  elements = buildMultiSelect(config, componentScope);
11207
11176
  break;
@@ -11219,55 +11188,32 @@ const buildUiSchema = (config) => {
11219
11188
  if (config == null ? void 0 : config.elements) {
11220
11189
  if ((config == null ? void 0 : config.type) === "LeaderBoard") {
11221
11190
  return elements;
11222
- } else if (config.type == "Table") {
11223
- let nodeProvider2 = function(element) {
11224
- if (element.type) {
11225
- return {
11226
- accessorKey: element.name,
11227
- type: element.columnFormat,
11228
- header: element.label || element.name,
11229
- size: sizeMap[element.name] || 180,
11230
- widget: buildUiSchema(element)
11231
- };
11232
- }
11233
- return {
11234
- accessorKey: element.name,
11235
- type: element.columnFormat,
11236
- header: element.label || element.name,
11237
- size: sizeMap[element.name] || 180
11238
- };
11239
- }, buildHierarchy2 = function(elements2, parentName = null) {
11240
- const result = [];
11241
- for (const element of elements2) {
11242
- if ((element == null ? void 0 : element.parent) === parentName) {
11243
- const children = buildHierarchy2(elements2, element.name);
11244
- const node = nodeProvider2(element);
11245
- if (children.length > 0) {
11246
- node.columns = children;
11247
- node.type = "group";
11248
- }
11249
- result.push(node);
11250
- }
11251
- }
11252
- return result;
11253
- }, transformConfigToOutput2 = function(config2) {
11254
- const output = [];
11255
- const hierarchy = buildHierarchy2(config2.elements, config2.name);
11256
- for (const element of config2.elements) {
11257
- const parentExists = config2.elements.some((e) => e.name === element.parent);
11258
- if (!parentExists && element.parent !== config2.name) {
11259
- output.push(nodeProvider2(element));
11260
- }
11261
- }
11262
- return [...hierarchy, ...output];
11263
- };
11191
+ } else if (config.type == "Table" || config.type == "ColumnGroup") {
11264
11192
  const sizeMap = {};
11265
11193
  if (config.sizeHolder) {
11266
11194
  config.sizeHolder.map((e, i) => {
11267
11195
  sizeMap[e.keyName] = e.value;
11268
11196
  });
11269
11197
  }
11270
- elements.elements = transformConfigToOutput2(config);
11198
+ elements.elements = config.elements.map((cellElem, elemInd) => {
11199
+ if (cellElem.type) {
11200
+ return {
11201
+ accessorKey: cellElem.name,
11202
+ header: cellElem.label || cellElem.name,
11203
+ size: sizeMap[cellElem.name] || 180,
11204
+ type: cellElem.columnFormat,
11205
+ widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem) : void 0,
11206
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
11207
+ };
11208
+ } else {
11209
+ return {
11210
+ accessorKey: cellElem.name,
11211
+ type: cellElem.columnFormat,
11212
+ header: cellElem.label || cellElem.name,
11213
+ size: sizeMap[cellElem.name] || 180
11214
+ };
11215
+ }
11216
+ });
11271
11217
  } else if (config.type == "Array") {
11272
11218
  elements.options.detail.elements = config.elements.map((e, elemInd) => {
11273
11219
  return buildUiSchema(e);