impaktapps-ui-builder 1.0.147-test.17 → 1.0.147-test.20

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.147-test.17",
3
+ "version": "1.0.147-test.20",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -5,7 +5,11 @@ import { createLayoutFormat } from "./buildConfig";
5
5
  export const buildCard = (config,componentScope,store) =>{
6
6
  const card: any = _.cloneDeep(Card(store.theme.myTheme));
7
7
  if (config.style) {
8
+ const parsedStyle = JSON.parse(config.style);
8
9
  card.config.wrapperStyle = JSON.parse(config.style)
10
+ card.elements[1].config.style = { ...card.elements[1].config.style, ...(parsedStyle.labelStyle ?? {})};
11
+ card.elements[3].config.style = { ...card.elements[3].config.style, ...(parsedStyle.descriptionStyle ?? {})};
12
+ card.elements[2].config.style = { ...card.elements[2].config.style, ...(parsedStyle.valueStyle ?? {})};
9
13
  }
10
14
  card.elements[2].scope = `#/properties/${config.name}/properties/value`;
11
15
  card.elements[0].scope = `#/properties/${config.name}/properties/url`;
@@ -27,8 +31,9 @@ export const buildCard = (config,componentScope,store) =>{
27
31
  if(config.description){
28
32
  card.elements[3].config.main.heading = config.description;
29
33
  }
30
- if(config.value){
31
- card.elements[2].config.main.heading = config.value;
34
+ if(config.cardValue){
35
+ card.elements[2].config.main.heading = config.cardValue;
32
36
  }
37
+
33
38
  return card;
34
39
  }
@@ -396,7 +396,7 @@ export const buildPropertiesSection = function (type: String) {
396
396
  uiSchema.elements = [
397
397
  getInputField("url", "Image Url"),
398
398
  getInputField("label", "Label"),
399
- getInputField("value", "Value"),
399
+ getInputField("cardValue", "Value"),
400
400
  getInputField("titleIcon", "Unicode of Icon for title"),
401
401
  getInputField("description", "Description"),
402
402
  emptyBox("cardEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
@@ -508,7 +508,7 @@ export const buildPropertiesSection = function (type: String) {
508
508
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
509
509
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
510
510
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
511
- getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
511
+ getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3", { xs: 0, sm: 0, md: 4, lg: 6 })
512
512
  ]),
513
513
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
514
514
  sizeHolder,
@@ -107,7 +107,7 @@ export default function Card(theme){
107
107
  style: {
108
108
  color: "black",
109
109
  display: "flex",
110
- fontSize: { xs: "22px", md: "30px" },
110
+ fontSize: { xs: "22px", md: "27px" },
111
111
  fontWeight: "450",
112
112
  background: "inherit",
113
113
  justifyContent: "flex-start",