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

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: {},
@@ -10222,8 +10224,11 @@ const BarGraph = {
10222
10224
  },
10223
10225
  config: {
10224
10226
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10225
- main: {},
10226
- style: { containerStyle: {} }
10227
+ main: {
10228
+ type: "BarGraph",
10229
+ legendLabels: null
10230
+ },
10231
+ style: { containerStyle: {}, labelStyle: {} }
10227
10232
  }
10228
10233
  };
10229
10234
  const PieGraph = {
@@ -10235,7 +10240,8 @@ const PieGraph = {
10235
10240
  config: {
10236
10241
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10237
10242
  main: {
10238
- type: "PieGraph"
10243
+ type: "PieGraph",
10244
+ legendLabels: null
10239
10245
  },
10240
10246
  style: {}
10241
10247
  }
@@ -10250,22 +10256,7 @@ const LineGraph = {
10250
10256
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10251
10257
  main: {
10252
10258
  type: "LineGraph",
10253
- header: "Quartely Incentive in Thousand",
10254
- bottomLabel: "Years",
10255
- leftLabel: "Incentive",
10256
- gridHidden: true,
10257
- numHidden: false,
10258
- tooltipDataKey: ["MAMA New Project", "Second", "Third"],
10259
- axisLeft: true,
10260
- axisBottom: true,
10261
- hideLeftAxisLine: false,
10262
- hideBottomAxisLine: false,
10263
- legend: {
10264
- labelColor: "green",
10265
- direction: "row",
10266
- align: "right",
10267
- colorRectWidth: 20
10268
- }
10259
+ legendLabels: null
10269
10260
  },
10270
10261
  style: {
10271
10262
  containerStyle: {},
@@ -10284,9 +10275,12 @@ const HorizontalBarGraph = {
10284
10275
  config: {
10285
10276
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10286
10277
  main: {
10287
- type: "HorizontalBarGraph"
10278
+ type: "HorizontalBarGraph",
10279
+ legendLabels: null
10288
10280
  },
10289
- style: {}
10281
+ style: {
10282
+ labelStyle: {}
10283
+ }
10290
10284
  }
10291
10285
  };
10292
10286
  const buildHorizontalBarGraph = (config, componentScope) => {
@@ -10304,8 +10298,11 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10304
10298
  if (config.bottomAxisAngle) {
10305
10299
  horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
10306
10300
  }
10307
- if (config.barColor) {
10308
- horizontalBarGraph.config.barStyle.color = config.barColor;
10301
+ if (config.legendLabels) {
10302
+ horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
10303
+ }
10304
+ if (config.pieArcColors) {
10305
+ horizontalBarGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10309
10306
  }
10310
10307
  if (config.xAxisValue) {
10311
10308
  horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
@@ -10448,7 +10445,7 @@ const buildPieGraph = (config, componentScope) => {
10448
10445
  pieGraph.scope = componentScope;
10449
10446
  pieGraph.config.main.header = config.heading;
10450
10447
  if (config.legendLabels) {
10451
- pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
10448
+ pieGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
10452
10449
  }
10453
10450
  if (config.xAxisValue) {
10454
10451
  pieGraph.config.main.xAxisValue = config.xAxisValue;
@@ -10476,8 +10473,11 @@ const buildStackbarGraph = (config, componentScope) => {
10476
10473
  }
10477
10474
  barGraph.config.main.type = config.graphType;
10478
10475
  barGraph.config.main.header = config.heading;
10479
- if (config.barColor) {
10480
- barGraph.config.barStyle.color = config.barColor;
10476
+ if (config.legendLabels) {
10477
+ barGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
10478
+ }
10479
+ if (config.pieArcColors) {
10480
+ barGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10481
10481
  }
10482
10482
  if (config.xAxisValue) {
10483
10483
  barGraph.config.main.xAxisValue = config.xAxisValue;
@@ -10500,6 +10500,14 @@ const buildStackbarGraph = (config, componentScope) => {
10500
10500
  if (config.leftLabel) {
10501
10501
  barGraph.config.main.leftLabel = config.leftLabel;
10502
10502
  }
10503
+ if (config.leftLabelMargin) {
10504
+ barGraph.config.style.labelStyle.margin = {
10505
+ left: config.leftLabelMargin
10506
+ };
10507
+ }
10508
+ if (config.leftLabelOffset) {
10509
+ barGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
10510
+ }
10503
10511
  barGraph.scope = componentScope;
10504
10512
  return barGraph;
10505
10513
  };
@@ -10660,7 +10668,7 @@ var Button = {
10660
10668
  styleDefault: false,
10661
10669
  icon: "",
10662
10670
  onClick: "onClick",
10663
- size: "medium"
10671
+ size: "small"
10664
10672
  },
10665
10673
  style: {}
10666
10674
  }
@@ -10755,8 +10763,11 @@ const buildTable = (config, componentScope) => {
10755
10763
  if (config.downloadAllData) {
10756
10764
  table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
10757
10765
  }
10758
- if (config.disableFilters) {
10759
- table.config.main.disableFilters = config.disableFilters === "YES" ? true : false;
10766
+ if (config.disableGlobalSearch) {
10767
+ table.config.main.disableGlobalSearch = config.disableGlobalSearch === "YES" ? true : false;
10768
+ }
10769
+ if (config.disableColumnFilter) {
10770
+ table.config.main.disableColumnFilter = config.disableColumnFilter === "YES" ? true : false;
10760
10771
  }
10761
10772
  if (config.disableSorting) {
10762
10773
  table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
@@ -10849,10 +10860,7 @@ const buildUploadFile = (config, componentScope) => {
10849
10860
  UploadFile.scope = componentScope;
10850
10861
  UploadFile.config.main.label = config.label;
10851
10862
  if (config.layout) {
10852
- UploadFile.config.layout = config.layout;
10853
- }
10854
- if (config.layout) {
10855
- uploadFile.config.layout = createLayoutFormat(config.layout);
10863
+ UploadFile.config.layout = createLayoutFormat(config.layout);
10856
10864
  }
10857
10865
  if (config.style) {
10858
10866
  UploadFile.config.style = config.style;
@@ -11262,6 +11270,12 @@ const buildTextArea = (config, componentScope) => {
11262
11270
  if (config.placeholder) {
11263
11271
  textArea.config.main.placeholder = config.placeholder;
11264
11272
  }
11273
+ if (config.enableCodeEditor) {
11274
+ textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false;
11275
+ }
11276
+ if (config.codeEditorLanguage) {
11277
+ textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
11278
+ }
11265
11279
  textArea.scope = componentScope;
11266
11280
  return textArea;
11267
11281
  };
@@ -11349,11 +11363,19 @@ const buildLineGraph = (config, componentScope) => {
11349
11363
  lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
11350
11364
  }
11351
11365
  if (config.legendLabels) {
11352
- lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
11366
+ lineGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
11353
11367
  }
11354
11368
  if (config.pieArcColors) {
11355
11369
  lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11356
11370
  }
11371
+ if (config.leftLabelMargin) {
11372
+ lineGraph.config.style.labelStyle.margin = {
11373
+ left: config.leftLabelMargin
11374
+ };
11375
+ }
11376
+ if (config.leftLabelOffset) {
11377
+ lineGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
11378
+ }
11357
11379
  lineGraph.scope = componentScope;
11358
11380
  return lineGraph;
11359
11381
  };