impaktapps-ui-builder 1.0.147-test.2 → 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.
@@ -6331,6 +6331,7 @@ const ComponentSchema = {
6331
6331
  maxPageSize: {
6332
6332
  type: "number",
6333
6333
  oneOf: [
6334
+ { title: "5", const: 5 },
6334
6335
  { title: "10", const: 10 },
6335
6336
  { title: "20", const: 20 },
6336
6337
  { title: "30", const: 30 },
@@ -7968,7 +7969,7 @@ const buildPropertiesSection = function(type) {
7968
7969
  uiSchema.elements = [
7969
7970
  getInputField("url", "Image Url"),
7970
7971
  getInputField("label", "Label"),
7971
- getInputField("value", "Value"),
7972
+ getInputField("cardValue", "Value"),
7972
7973
  getInputField("titleIcon", "Unicode of Icon for title"),
7973
7974
  getInputField("description", "Description"),
7974
7975
  emptyBox$1("cardEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
@@ -8042,11 +8043,14 @@ const buildPropertiesSection = function(type) {
8042
8043
  getRadioInputField("disableFullScreenToggle", "Disable Full Screen", ["YES", "NO"]),
8043
8044
  getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
8044
8045
  getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
8046
+ getRadioInputField("disableTopToolbar", "Disable Top Toolbar", ["YES", "NO"]),
8047
+ getRadioInputField("disableBottomToolbar", "Disable Bottom Toolbar", ["YES", "NO"]),
8045
8048
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
8046
8049
  getInputField("selectKey", "Selection Key"),
8047
8050
  getMultiSelectField("filteringOptions", "Filtering Options"),
8048
8051
  getSelectField("maxPageSize", "Max Page Size"),
8049
8052
  getSelectField("initialDensity", "Initial Toggle Density"),
8053
+ emptyBox$1("emptyBoxTable", { xs: 6, sm: 6, md: 0, lg: 3 }),
8050
8054
  buildWrapper("Tree Table Properties", [
8051
8055
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8052
8056
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -8055,7 +8059,7 @@ const buildPropertiesSection = function(type) {
8055
8059
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8056
8060
  getInputField("defaultColumnSize", "Default Column Size"),
8057
8061
  ,
8058
- emptyBox$1("LazyLoadingTableEmpty3")
8062
+ emptyBox$1("LazyLoadingTableEmpty3", { xs: 0, sm: 0, md: 4, lg: 6 })
8059
8063
  ]),
8060
8064
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
8061
8065
  sizeHolder,
@@ -10962,6 +10966,9 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10962
10966
  if (config.disableLeftLabel) {
10963
10967
  horizontalBarGraph.config.main.disableLeftLabel = config.disableLeftLabel === "YES" ? true : false;
10964
10968
  }
10969
+ if (config.style) {
10970
+ horizontalBarGraph.config.style = JSON.parse(config.style);
10971
+ }
10965
10972
  return horizontalBarGraph;
10966
10973
  };
10967
10974
  var SpeedoMeter = {
@@ -11082,6 +11089,9 @@ const buildPieGraph = (config, componentScope) => {
11082
11089
  if (config.pieArcColors) {
11083
11090
  pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11084
11091
  }
11092
+ if (config.style) {
11093
+ pieGraph.config.style = JSON.parse(config.style);
11094
+ }
11085
11095
  return pieGraph;
11086
11096
  };
11087
11097
  const buildStackbarGraph = (config, componentScope) => {
@@ -11128,6 +11138,9 @@ const buildStackbarGraph = (config, componentScope) => {
11128
11138
  if (config.disableLeftLabel) {
11129
11139
  barGraph.config.main.disableLeftLabel = config.disableLeftLabel === "YES" ? true : false;
11130
11140
  }
11141
+ if (config.style) {
11142
+ barGraph.config.style = JSON.parse(config.style);
11143
+ }
11131
11144
  barGraph.scope = componentScope;
11132
11145
  return barGraph;
11133
11146
  };
@@ -11284,6 +11297,9 @@ const buildSelect = (config, componentScope) => {
11284
11297
  if (config.layout) {
11285
11298
  selectInputField.config.layout = createLayoutFormat(config.layout);
11286
11299
  }
11300
+ if (config.style) {
11301
+ selectInputField.config.style = JSON.parse(config.style);
11302
+ }
11287
11303
  selectInputField.scope = componentScope;
11288
11304
  return selectInputField;
11289
11305
  };
@@ -11427,6 +11443,12 @@ const buildTable = (config, componentScope) => {
11427
11443
  if (config.disableDownloadFile) {
11428
11444
  table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false;
11429
11445
  }
11446
+ if (config.disableTopToolbar) {
11447
+ table.config.main.disableTopToolbar = config.disableTopToolbar === "YES" ? true : false;
11448
+ }
11449
+ if (config.disableBottomToolbar) {
11450
+ table.config.main.disableBottomToolbar = config.disableBottomToolbar === "YES" ? true : false;
11451
+ }
11430
11452
  if (config.disablePagination) {
11431
11453
  table.config.main.disablePagination = config.disablePagination === "YES" ? true : false;
11432
11454
  }
@@ -11556,15 +11578,16 @@ function Card(theme) {
11556
11578
  position: "relative",
11557
11579
  top: "50%",
11558
11580
  transform: "translateY(-50%)",
11559
- marginBottom: 0
11581
+ marginBottom: 0,
11582
+ borderRadius: "8px"
11560
11583
  },
11561
11584
  componentsBoxStyle: {
11562
11585
  boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11563
11586
  flexDirection: "column",
11587
+ overflow: "hidden",
11564
11588
  flexWrap: "nowrap",
11565
11589
  width: "100% !important",
11566
11590
  background: "transparent",
11567
- border: `1.5px solid ${theme.palette.primary.light}`,
11568
11591
  borderRadius: "8px",
11569
11592
  padding: "20px 20px 20px 14px",
11570
11593
  height: "100%",
@@ -11572,11 +11595,7 @@ function Card(theme) {
11572
11595
  position: "relative",
11573
11596
  marginLeft: "0px",
11574
11597
  "&: hover": {
11575
- background: `${theme.palette.primary.main}`,
11576
- border: `1.5px solid black`,
11577
- "& p": {
11578
- color: "white"
11579
- }
11598
+ background: `${theme.palette.primary.main}`
11580
11599
  }
11581
11600
  }
11582
11601
  },
@@ -11650,7 +11669,7 @@ function Card(theme) {
11650
11669
  style: {
11651
11670
  color: "black",
11652
11671
  display: "flex",
11653
- fontSize: { xs: "22px", md: "30px" },
11672
+ fontSize: { xs: "22px", md: "27px" },
11654
11673
  fontWeight: "450",
11655
11674
  background: "inherit",
11656
11675
  justifyContent: "flex-start",
@@ -11661,6 +11680,7 @@ function Card(theme) {
11661
11680
  maxWidth: "200px",
11662
11681
  whiteSpace: "nowrap",
11663
11682
  overflowX: "auto",
11683
+ overflowY: "hidden",
11664
11684
  scrollbarWidth: "none",
11665
11685
  "&::-webkit-scrollbar": {
11666
11686
  display: "none"
@@ -11704,9 +11724,14 @@ function Card(theme) {
11704
11724
  return uiSchema;
11705
11725
  }
11706
11726
  const buildCard = (config, componentScope, store2) => {
11727
+ var _a, _b, _c;
11707
11728
  const card = _.cloneDeep(Card(store2.theme.myTheme));
11708
11729
  if (config.style) {
11730
+ const parsedStyle = JSON.parse(config.style);
11709
11731
  card.config.wrapperStyle = JSON.parse(config.style);
11732
+ card.elements[1].config.style = { ...card.elements[1].config.style, ...(_a = parsedStyle.labelStyle) != null ? _a : {} };
11733
+ card.elements[3].config.style = { ...card.elements[3].config.style, ...(_b = parsedStyle.descriptionStyle) != null ? _b : {} };
11734
+ card.elements[2].config.style = { ...card.elements[2].config.style, ...(_c = parsedStyle.valueStyle) != null ? _c : {} };
11710
11735
  }
11711
11736
  card.elements[2].scope = `#/properties/${config.name}/properties/value`;
11712
11737
  card.elements[0].scope = `#/properties/${config.name}/properties/url`;
@@ -11724,8 +11749,8 @@ const buildCard = (config, componentScope, store2) => {
11724
11749
  if (config.description) {
11725
11750
  card.elements[3].config.main.heading = config.description;
11726
11751
  }
11727
- if (config.value) {
11728
- card.elements[2].config.main.heading = config.value;
11752
+ if (config.cardValue) {
11753
+ card.elements[2].config.main.heading = config.cardValue;
11729
11754
  }
11730
11755
  return card;
11731
11756
  };
@@ -11892,6 +11917,9 @@ const buildMultiSelect = (config, componentScope) => {
11892
11917
  if (config.lazyLoading) {
11893
11918
  multipleSelect.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11894
11919
  }
11920
+ if (config.style) {
11921
+ multipleSelect.config.style = JSON.parse(config.style);
11922
+ }
11895
11923
  return multipleSelect;
11896
11924
  };
11897
11925
  const buildBasicUiSchema = (config) => {
@@ -12043,6 +12071,9 @@ const buildLineGraph = (config, componentScope) => {
12043
12071
  if (config.pieArcColors) {
12044
12072
  lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
12045
12073
  }
12074
+ if (config.style) {
12075
+ lineGraph.config.style = JSON.parse(config.style);
12076
+ }
12046
12077
  lineGraph.scope = componentScope;
12047
12078
  return lineGraph;
12048
12079
  };