impaktapps-ui-builder 1.0.138 → 1.0.140

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.138",
3
+ "version": "1.0.140",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -37,6 +37,9 @@ export const buildLeaderBoard = (config) => {
37
37
  if (config.scoreKey) {
38
38
  LeaderBoard.config.main.scoreKey = config.scoreKey;
39
39
  }
40
+ if(config.isScoreAmountType){
41
+ LeaderBoard.config.main.isScoreAmount = config.isScoreAmount === "YES" ? true : false;
42
+ }
40
43
  if (config.layout) {
41
44
  LeaderBoard.config.layout = createLayoutFormat(config.layout, config.type);
42
45
  }
@@ -275,7 +275,7 @@ const buildUiSchema = (config: any, store?: any) => {
275
275
  if (config?.elements) {
276
276
  if (config?.type === "LeaderBoard") {
277
277
  const rowElements = []
278
- config.elements.filter((cellElem, elemInd) => {
278
+ config.elements.map((cellElem) => {
279
279
  const commonProperties = {
280
280
  accessorKey: cellElem.name,
281
281
  type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
@@ -374,6 +374,7 @@ export const buildPropertiesSection = function (type: String) {
374
374
  getInputField("nameKey", "Key for Name"),
375
375
  getInputField("imageKey", "Key for Image"),
376
376
  getInputField("scoreKey", "Key for comparing parameter"),
377
+ getRadioInputField("isScoreAmount", "Is Score an Amount", ["YES", "No"]),
377
378
  emptyBox("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 }),
378
379
  ];
379
380
  break;