impaktapps-ui-builder 0.0.390 → 0.0.391

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": "0.0.390",
3
+ "version": "0.0.391",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -1,20 +1,22 @@
1
1
  import leaderBoard from "./uischema/leaderBoard";
2
- import buildUiSchema from "./buildUiSchema";
2
+ import buildUiSchema from "./buildUiSchema";
3
3
  import _ from "lodash";
4
+ import { createLayoutFormat } from "./buildConfig";
4
5
 
5
6
 
6
7
  export const buildLeaderBoard = (config) => {
7
- const LeaderBoard:any = _.cloneDeep(leaderBoard)
8
+ const LeaderBoard: any = _.cloneDeep(leaderBoard)
8
9
  if (config.elements) {
9
10
  const modifyColumns = config.elements.map((e, i) => {
10
11
  if (!e.type) {
11
- return {accessorKey: e.name, header: e.label||e.name, }
12
+ return { accessorKey: e.name, header: e.label || e.name, }
12
13
  }
13
- const widgetSchema = {widget:buildUiSchema(e), accessorKey: e.name,header: e.label||e.name, };
14
- return {...widgetSchema };
14
+ const widgetSchema = { widget: buildUiSchema(e), accessorKey: e.name, header: e.label || e.name, };
15
+ return { ...widgetSchema };
15
16
  })
16
17
  LeaderBoard.elements[9].elements = modifyColumns;
17
18
  }
19
+ LeaderBoard.config.main.label = config.label
18
20
  if (config.name) {
19
21
  LeaderBoard.elements[0].scope = `#/properties/${config.name}/properties/firstImage`;
20
22
  LeaderBoard.elements[3].scope = `#/properties/${config.name}/properties/firstName`
@@ -34,7 +36,7 @@ export const buildLeaderBoard = (config) => {
34
36
  LeaderBoard.elements[2].config.main.url = config.thirdImage;
35
37
  }
36
38
  if (config.layout) {
37
- LeaderBoard.config.layout = config.layout;
39
+ LeaderBoard.config.layout = createLayoutFormat(config.layout);
38
40
  }
39
41
  return LeaderBoard
40
42
  }
@@ -1,9 +1,11 @@
1
1
  import Tabsection from "./uischema/tabsection";
2
2
  import _ from "lodash";
3
- import buildUiSchema from "./buildUiSchema";
4
-
3
+
5
4
  export const buildTabSection = (config:any,componentScope:string) => {
6
5
  const tab: any = _.cloneDeep(Tabsection);
6
+ if(config.orientation){
7
+ tab.config.main.orientation = config.orientation === "YES" ?'vertical':'horizontal';
8
+ }
7
9
  if (config.sectionLabels) {
8
10
  tab.config.main.tabLabels = config.sectionLabels.map(e => e.label);
9
11
  }
@@ -371,6 +371,7 @@ export const buildPropertiesSection = function (type: String) {
371
371
 
372
372
  case "TabSection":
373
373
  uiSchema.elements = [
374
+ getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),EmptyBox,
374
375
  getArrayControl("sectionLabels", "label"),
375
376
  ]
376
377
  break;