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.
@@ -7943,6 +7943,7 @@ const buildPropertiesSection = function(type) {
7943
7943
  getInputField("nameKey", "Key for Name"),
7944
7944
  getInputField("imageKey", "Key for Image"),
7945
7945
  getInputField("scoreKey", "Key for comparing parameter"),
7946
+ getRadioInputField("isScoreAmount", "Is Score an Amount", ["YES", "No"]),
7946
7947
  emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 })
7947
7948
  ];
7948
7949
  break;
@@ -10787,6 +10788,9 @@ const buildLeaderBoard = (config2) => {
10787
10788
  if (config2.scoreKey) {
10788
10789
  LeaderBoard.config.main.scoreKey = config2.scoreKey;
10789
10790
  }
10791
+ if (config2.isScoreAmountType) {
10792
+ LeaderBoard.config.main.isScoreAmount = config2.isScoreAmount === "YES" ? true : false;
10793
+ }
10790
10794
  if (config2.layout) {
10791
10795
  LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
10792
10796
  }
@@ -12799,7 +12803,7 @@ const buildUiSchema = (config2, store2) => {
12799
12803
  if (config2 == null ? void 0 : config2.elements) {
12800
12804
  if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
12801
12805
  const rowElements = [];
12802
- config2.elements.filter((cellElem, elemInd) => {
12806
+ config2.elements.map((cellElem) => {
12803
12807
  const commonProperties = {
12804
12808
  accessorKey: cellElem.name,
12805
12809
  type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,