impaktapps-ui-builder 0.0.409-v → 0.0.409-w

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.
@@ -10179,7 +10179,7 @@ var Card = {
10179
10179
  scope: "#/properties/programType",
10180
10180
  config: {
10181
10181
  main: {
10182
- url: "$"
10182
+ url: "https://www.svgrepo.com/show/500606/loading.svg"
10183
10183
  },
10184
10184
  style: {
10185
10185
  color: "#f5effc",
@@ -11180,7 +11180,23 @@ const buildUiSchema = (config) => {
11180
11180
  if (config == null ? void 0 : config.elements) {
11181
11181
  if ((config == null ? void 0 : config.type) === "LeaderBoard") {
11182
11182
  return elements;
11183
- } else if (config.type == "Table" || config.type == "ColumnGroup") {
11183
+ } else if (config.type == "ColumnGroup") {
11184
+ const sizeMap = {};
11185
+ if (config.sizeHolder) {
11186
+ config.sizeHolder.map((e, i) => {
11187
+ sizeMap[e.keyName] = e.value;
11188
+ });
11189
+ }
11190
+ elements.elements = config.elements.map((cellElem, elemInd) => {
11191
+ return {
11192
+ accessorKey: cellElem.name,
11193
+ header: cellElem.label || cellElem.name,
11194
+ size: sizeMap[cellElem.name] || 180,
11195
+ type: cellElem.columnFormat,
11196
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
11197
+ };
11198
+ });
11199
+ } else if (config.type == "Table") {
11184
11200
  const sizeMap = {};
11185
11201
  if (config.sizeHolder) {
11186
11202
  config.sizeHolder.map((e, i) => {