impaktapps-ui-builder 0.0.96 → 0.0.97-alpha.5

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.
@@ -7350,7 +7350,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
7350
7350
  main: {
7351
7351
  heading,
7352
7352
  minRows: 8,
7353
- hideButton
7353
+ hideButton,
7354
+ enableCodeEditor: true
7354
7355
  }
7355
7356
  }
7356
7357
  };
@@ -7456,8 +7457,8 @@ const buildPropertiesSection = function(type) {
7456
7457
  case "TextArea":
7457
7458
  uiSchema.elements = [
7458
7459
  getInputField("placeholder", "Placeholder"),
7459
- emptyBox$1("TextAreaEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7460
- emptyBox$1("TextAreaEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
7460
+ getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
7461
+ getInputField("codeEditorLanguage", "Enter Code Language")
7461
7462
  ];
7462
7463
  break;
7463
7464
  case "SpeedoMeter":
@@ -7533,6 +7534,8 @@ const buildPropertiesSection = function(type) {
7533
7534
  getSelectField("graphType", "Graph Type"),
7534
7535
  getInputField("leftLabel", "Left Label"),
7535
7536
  getInputField("bottomLabel", "Bottom Label"),
7537
+ getInputField("leftLabelMargin", "Left Label Margin"),
7538
+ getInputField("leftLabelOffset", "Left Label Offset"),
7536
7539
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
7537
7540
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7538
7541
  getInputField("yAxisValue", "Y-AxisValue"),
@@ -7569,7 +7572,8 @@ const buildPropertiesSection = function(type) {
7569
7572
  getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
7570
7573
  getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
7571
7574
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
7572
- getRadioInputField("disableFilters", "Disable Filter", ["YES", "NO"]),
7575
+ getRadioInputField("disableGlobalSearch", "Disable Global Search", ["YES", "NO"]),
7576
+ getRadioInputField("disableColumnFilter", "Disable Column Filter", ["YES", "NO"]),
7573
7577
  getRadioInputField("disableSorting", "Disable Sorting", ["YES", "NO"]),
7574
7578
  getRadioInputField("disableEditColumn", "Disable Edit Column", ["YES", "NO"]),
7575
7579
  getRadioInputField("disableFullScreenToggle", "Disable Full Screen", ["YES", "NO"]),
@@ -7578,7 +7582,6 @@ const buildPropertiesSection = function(type) {
7578
7582
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
7579
7583
  getInputField("selectKey", "Selection Key"),
7580
7584
  getMultiSelectField("filteringOptions", "Filtering Options"),
7581
- emptyBox$1("LazyLoadingTableEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
7582
7585
  buildWrapper("Tree Table Properties", [
7583
7586
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7584
7587
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -9270,7 +9273,7 @@ function executeCustomHandler(params) {
9270
9273
  }
9271
9274
  }
9272
9275
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
9273
- if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9276
+ if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9274
9277
  store2.setSchema((pre) => {
9275
9278
  var _a;
9276
9279
  return {
@@ -9284,7 +9287,7 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9284
9287
  }
9285
9288
  };
9286
9289
  });
9287
- } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9290
+ } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9288
9291
  store2.setSchema((pre) => {
9289
9292
  var _a;
9290
9293
  return {
@@ -9467,7 +9470,7 @@ var service = (funcParams) => {
9467
9470
  };
9468
9471
  return {
9469
9472
  setPage: async function() {
9470
- var _a, _b, _c, _d;
9473
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
9471
9474
  funcParams.store.setFormdata({});
9472
9475
  funcParams.store.newData = {};
9473
9476
  const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
@@ -9499,7 +9502,6 @@ var service = (funcParams) => {
9499
9502
  flexDirection: "row",
9500
9503
  position: "absolute",
9501
9504
  bottom: 0,
9502
- marginBottom: "-8px",
9503
9505
  height: "fit-content",
9504
9506
  overflow: "hidden",
9505
9507
  zIndex: 1e3,
@@ -9518,7 +9520,7 @@ var service = (funcParams) => {
9518
9520
  heading: "Copywriter@ACT21.IO"
9519
9521
  },
9520
9522
  style: {
9521
- color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
9523
+ color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
9522
9524
  fontSize: "12px",
9523
9525
  textAlign: "center",
9524
9526
  lineHeight: 2,
@@ -9528,13 +9530,13 @@ var service = (funcParams) => {
9528
9530
  margin: 0,
9529
9531
  flexGrow: 1,
9530
9532
  height: 0,
9531
- transform: "translate(-50%,0%)"
9533
+ transform: "translate(-50%, 0%)"
9532
9534
  }
9533
9535
  }
9534
9536
  },
9535
9537
  {
9536
9538
  type: "Control",
9537
- scope: "#/properties/backIcon",
9539
+ scope: "#/properties/FooterBackIcon",
9538
9540
  options: {
9539
9541
  widget: "Box"
9540
9542
  },
@@ -9545,24 +9547,24 @@ var service = (funcParams) => {
9545
9547
  width: "fit-content"
9546
9548
  },
9547
9549
  style: {
9548
- fill: theme.palette.primary.main,
9550
+ fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
9549
9551
  width: 20,
9550
9552
  height: 0,
9551
- margin: 0,
9552
9553
  top: 0,
9553
9554
  right: { xs: "12px", sm: "84px" },
9554
9555
  position: "absolute",
9555
9556
  fontSize: "12px",
9556
9557
  cursor: "pointer",
9557
9558
  ":hover": {
9558
- fill: theme.palette.primary.dark
9559
- }
9559
+ fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
9560
+ },
9561
+ marginRight: "13px"
9560
9562
  }
9561
9563
  }
9562
9564
  },
9563
9565
  {
9564
9566
  type: "Control",
9565
- scope: "#/properties/text",
9567
+ scope: "#/properties/FooterBackHandlerText",
9566
9568
  options: {
9567
9569
  widget: "Box"
9568
9570
  },
@@ -9577,24 +9579,24 @@ var service = (funcParams) => {
9577
9579
  lineHeight: 1,
9578
9580
  height: 0,
9579
9581
  width: "fit-content",
9580
- color: theme.palette.primary.main,
9581
- fontSize: "12px",
9582
+ color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
9583
+ fontSize: "14px",
9582
9584
  cursor: "pointer",
9583
9585
  marginLeft: "2px",
9584
- marginRight: 0,
9585
9586
  top: 3,
9586
9587
  right: "12px",
9587
9588
  position: "absolute",
9588
9589
  ":hover": {
9589
- color: theme.palette.primary.dark
9590
- }
9590
+ color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
9591
+ },
9592
+ marginRight: "4px"
9591
9593
  }
9592
9594
  }
9593
9595
  }
9594
9596
  ]
9595
9597
  }
9596
9598
  );
9597
- const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
9599
+ const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
9598
9600
  eventGroups = extractEvents(config);
9599
9601
  executeEventsParameters = {
9600
9602
  config: {},
@@ -10223,7 +10225,7 @@ const BarGraph = {
10223
10225
  config: {
10224
10226
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10225
10227
  main: {},
10226
- style: { containerStyle: {} }
10228
+ style: { containerStyle: {}, labelStyle: {} }
10227
10229
  }
10228
10230
  };
10229
10231
  const PieGraph = {
@@ -10286,7 +10288,9 @@ const HorizontalBarGraph = {
10286
10288
  main: {
10287
10289
  type: "HorizontalBarGraph"
10288
10290
  },
10289
- style: {}
10291
+ style: {
10292
+ labelStyle: {}
10293
+ }
10290
10294
  }
10291
10295
  };
10292
10296
  const buildHorizontalBarGraph = (config, componentScope) => {
@@ -10500,6 +10504,14 @@ const buildStackbarGraph = (config, componentScope) => {
10500
10504
  if (config.leftLabel) {
10501
10505
  barGraph.config.main.leftLabel = config.leftLabel;
10502
10506
  }
10507
+ if (config.leftLabelMargin) {
10508
+ barGraph.config.style.labelStyle.margin = {
10509
+ left: config.leftLabelMargin
10510
+ };
10511
+ }
10512
+ if (config.leftLabelOffset) {
10513
+ barGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
10514
+ }
10503
10515
  barGraph.scope = componentScope;
10504
10516
  return barGraph;
10505
10517
  };
@@ -10660,7 +10672,7 @@ var Button = {
10660
10672
  styleDefault: false,
10661
10673
  icon: "",
10662
10674
  onClick: "onClick",
10663
- size: "medium"
10675
+ size: "small"
10664
10676
  },
10665
10677
  style: {}
10666
10678
  }
@@ -10755,8 +10767,11 @@ const buildTable = (config, componentScope) => {
10755
10767
  if (config.downloadAllData) {
10756
10768
  table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
10757
10769
  }
10758
- if (config.disableFilters) {
10759
- table.config.main.disableFilters = config.disableFilters === "YES" ? true : false;
10770
+ if (config.disableGlobalSearch) {
10771
+ table.config.main.disableGlobalSearch = config.disableGlobalSearch === "YES" ? true : false;
10772
+ }
10773
+ if (config.disableColumnFilter) {
10774
+ table.config.main.disableColumnFilter = config.disableColumnFilter === "YES" ? true : false;
10760
10775
  }
10761
10776
  if (config.disableSorting) {
10762
10777
  table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
@@ -10849,10 +10864,7 @@ const buildUploadFile = (config, componentScope) => {
10849
10864
  UploadFile.scope = componentScope;
10850
10865
  UploadFile.config.main.label = config.label;
10851
10866
  if (config.layout) {
10852
- UploadFile.config.layout = config.layout;
10853
- }
10854
- if (config.layout) {
10855
- uploadFile.config.layout = createLayoutFormat(config.layout);
10867
+ UploadFile.config.layout = createLayoutFormat(config.layout);
10856
10868
  }
10857
10869
  if (config.style) {
10858
10870
  UploadFile.config.style = config.style;
@@ -11262,6 +11274,12 @@ const buildTextArea = (config, componentScope) => {
11262
11274
  if (config.placeholder) {
11263
11275
  textArea.config.main.placeholder = config.placeholder;
11264
11276
  }
11277
+ if (config.enableCodeEditor) {
11278
+ textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false;
11279
+ }
11280
+ if (config.codeEditorLanguage) {
11281
+ textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
11282
+ }
11265
11283
  textArea.scope = componentScope;
11266
11284
  return textArea;
11267
11285
  };
@@ -11354,6 +11372,14 @@ const buildLineGraph = (config, componentScope) => {
11354
11372
  if (config.pieArcColors) {
11355
11373
  lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11356
11374
  }
11375
+ if (config.leftLabelMargin) {
11376
+ lineGraph.config.style.labelStyle.margin = {
11377
+ left: config.leftLabelMargin
11378
+ };
11379
+ }
11380
+ if (config.leftLabelOffset) {
11381
+ lineGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
11382
+ }
11357
11383
  lineGraph.scope = componentScope;
11358
11384
  return lineGraph;
11359
11385
  };