impaktapps-ui-builder 1.0.125-testL.1 → 1.0.125-testL.10

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.
@@ -112,8 +112,16 @@ export default function Card(theme: any): {
112
112
  margin: string;
113
113
  marginLeft: string;
114
114
  height: number;
115
+ marginTop?: undefined;
115
116
  position?: undefined;
116
117
  left?: undefined;
118
+ whiteSpace?: undefined;
119
+ overflowX?: undefined;
120
+ overflowY?: undefined;
121
+ scrollbarWidth?: undefined;
122
+ msOverflowStyle?: undefined;
123
+ maxWidth?: undefined;
124
+ "&::-webkit-scrollbar"?: undefined;
117
125
  };
118
126
  };
119
127
  options: {
@@ -138,8 +146,18 @@ export default function Card(theme: any): {
138
146
  justifyContent: string;
139
147
  width: string;
140
148
  margin: string;
149
+ marginTop: string;
141
150
  position: string;
142
151
  left: string;
152
+ whiteSpace: string;
153
+ overflowX: string;
154
+ overflowY: string;
155
+ scrollbarWidth: string;
156
+ msOverflowStyle: string;
157
+ maxWidth: string;
158
+ "&::-webkit-scrollbar": {
159
+ display: string;
160
+ };
143
161
  marginLeft?: undefined;
144
162
  height?: undefined;
145
163
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.125-testL.1",
3
+ "version": "1.0.125-testL.10",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -274,7 +274,17 @@ const buildUiSchema = (config: any, store?: any) => {
274
274
 
275
275
  if (config?.elements) {
276
276
  if (config?.type === "LeaderBoard") {
277
- return elements;
277
+ const rowElements = []
278
+ config.elements.filter((cellElem, elemInd) => {
279
+ const commonProperties = {
280
+ accessorKey: cellElem.name,
281
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
282
+ header: cellElem.label || cellElem.name,
283
+ columnKey: cellElem.columnKey
284
+ }
285
+ rowElements.push({ ...commonProperties })
286
+ })
287
+ elements.elements = rowElements;
278
288
  }
279
289
  else if (config.type == "ColumnGroup") {
280
290
  const sizeMap = {}
@@ -123,14 +123,24 @@ export default function Card(theme){
123
123
  style: {
124
124
  color: "black",
125
125
  display: "flex",
126
- fontSize: { xs: "24px", md: "28px" },
126
+ fontSize: { xs: "24px", md: "25px" },
127
127
  fontWeight: "bold",
128
128
  background: "inherit",
129
129
  justifyContent: "flex-start",
130
130
  width: "auto",
131
131
  margin: "-8px",
132
+ marginTop: "-6px",
132
133
  position: "absolute",
133
- left: "24px"
134
+ left: "7px",
135
+ whiteSpace: "nowrap",
136
+ overflowX: "auto",
137
+ overflowY: "hidden",
138
+ scrollbarWidth: "none",
139
+ msOverflowStyle: "none",
140
+ maxWidth: "calc(100% + 20px)",
141
+ "&::-webkit-scrollbar": {
142
+ display: "none",
143
+ }
134
144
  },
135
145
  // layout: 11,
136
146
  },