impaktapps-ui-builder 0.0.95 → 0.0.97-alpha.10

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,12 +7534,15 @@ 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"),
7539
7542
  getInputField("xAxisValue", "X-AxisValue"),
7540
7543
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7541
- emptyBox$1("GraphEmpty1", { xs: 0, sm: 6, md: 6, lg: 0 }),
7544
+ getInputField("leftMargin", "Left Margin"),
7545
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7542
7546
  getArrayControl("legendLabels", "label"),
7543
7547
  getArrayControl("pieArcColors", "color")
7544
7548
  ];
@@ -7568,7 +7572,8 @@ const buildPropertiesSection = function(type) {
7568
7572
  getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
7569
7573
  getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
7570
7574
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
7571
- getRadioInputField("disableFilters", "Disable Filter", ["YES", "NO"]),
7575
+ getRadioInputField("disableGlobalSearch", "Disable Global Search", ["YES", "NO"]),
7576
+ getRadioInputField("disableColumnFilter", "Disable Column Filter", ["YES", "NO"]),
7572
7577
  getRadioInputField("disableSorting", "Disable Sorting", ["YES", "NO"]),
7573
7578
  getRadioInputField("disableEditColumn", "Disable Edit Column", ["YES", "NO"]),
7574
7579
  getRadioInputField("disableFullScreenToggle", "Disable Full Screen", ["YES", "NO"]),
@@ -7577,7 +7582,6 @@ const buildPropertiesSection = function(type) {
7577
7582
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
7578
7583
  getInputField("selectKey", "Selection Key"),
7579
7584
  getMultiSelectField("filteringOptions", "Filtering Options"),
7580
- emptyBox$1("LazyLoadingTableEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
7581
7585
  buildWrapper("Tree Table Properties", [
7582
7586
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7583
7587
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -9269,7 +9273,7 @@ function executeCustomHandler(params) {
9269
9273
  }
9270
9274
  }
9271
9275
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
9272
- 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)) {
9273
9277
  store2.setSchema((pre) => {
9274
9278
  var _a;
9275
9279
  return {
@@ -9283,7 +9287,7 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9283
9287
  }
9284
9288
  };
9285
9289
  });
9286
- } 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)) {
9287
9291
  store2.setSchema((pre) => {
9288
9292
  var _a;
9289
9293
  return {
@@ -9466,7 +9470,7 @@ var service = (funcParams) => {
9466
9470
  };
9467
9471
  return {
9468
9472
  setPage: async function() {
9469
- var _a, _b, _c, _d;
9473
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
9470
9474
  funcParams.store.setFormdata({});
9471
9475
  funcParams.store.newData = {};
9472
9476
  const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
@@ -9498,7 +9502,6 @@ var service = (funcParams) => {
9498
9502
  flexDirection: "row",
9499
9503
  position: "absolute",
9500
9504
  bottom: 0,
9501
- marginBottom: "-8px",
9502
9505
  height: "fit-content",
9503
9506
  overflow: "hidden",
9504
9507
  zIndex: 1e3,
@@ -9517,7 +9520,7 @@ var service = (funcParams) => {
9517
9520
  heading: "Copywriter@ACT21.IO"
9518
9521
  },
9519
9522
  style: {
9520
- 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",
9521
9524
  fontSize: "12px",
9522
9525
  textAlign: "center",
9523
9526
  lineHeight: 2,
@@ -9527,13 +9530,13 @@ var service = (funcParams) => {
9527
9530
  margin: 0,
9528
9531
  flexGrow: 1,
9529
9532
  height: 0,
9530
- transform: "translate(-50%,0%)"
9533
+ transform: "translate(-50%, 0%)"
9531
9534
  }
9532
9535
  }
9533
9536
  },
9534
9537
  {
9535
9538
  type: "Control",
9536
- scope: "#/properties/backIcon",
9539
+ scope: "#/properties/FooterBackIcon",
9537
9540
  options: {
9538
9541
  widget: "Box"
9539
9542
  },
@@ -9544,24 +9547,24 @@ var service = (funcParams) => {
9544
9547
  width: "fit-content"
9545
9548
  },
9546
9549
  style: {
9547
- 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,
9548
9551
  width: 20,
9549
9552
  height: 0,
9550
- margin: 0,
9551
9553
  top: 0,
9552
9554
  right: { xs: "12px", sm: "84px" },
9553
9555
  position: "absolute",
9554
9556
  fontSize: "12px",
9555
9557
  cursor: "pointer",
9556
9558
  ":hover": {
9557
- fill: theme.palette.primary.dark
9558
- }
9559
+ fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
9560
+ },
9561
+ marginRight: "13px"
9559
9562
  }
9560
9563
  }
9561
9564
  },
9562
9565
  {
9563
9566
  type: "Control",
9564
- scope: "#/properties/text",
9567
+ scope: "#/properties/FooterBackHandlerText",
9565
9568
  options: {
9566
9569
  widget: "Box"
9567
9570
  },
@@ -9576,24 +9579,24 @@ var service = (funcParams) => {
9576
9579
  lineHeight: 1,
9577
9580
  height: 0,
9578
9581
  width: "fit-content",
9579
- color: theme.palette.primary.main,
9580
- 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",
9581
9584
  cursor: "pointer",
9582
9585
  marginLeft: "2px",
9583
- marginRight: 0,
9584
9586
  top: 3,
9585
9587
  right: "12px",
9586
9588
  position: "absolute",
9587
9589
  ":hover": {
9588
- color: theme.palette.primary.dark
9589
- }
9590
+ color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
9591
+ },
9592
+ marginRight: "4px"
9590
9593
  }
9591
9594
  }
9592
9595
  }
9593
9596
  ]
9594
9597
  }
9595
9598
  );
9596
- 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: {} };
9597
9600
  eventGroups = extractEvents(config);
9598
9601
  executeEventsParameters = {
9599
9602
  config: {},
@@ -10221,8 +10224,10 @@ const BarGraph = {
10221
10224
  },
10222
10225
  config: {
10223
10226
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10224
- main: {},
10225
- style: { containerStyle: {} }
10227
+ main: {
10228
+ legendLabels: null
10229
+ },
10230
+ style: { containerStyle: {}, labelStyle: {} }
10226
10231
  }
10227
10232
  };
10228
10233
  const PieGraph = {
@@ -10234,7 +10239,8 @@ const PieGraph = {
10234
10239
  config: {
10235
10240
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10236
10241
  main: {
10237
- type: "PieGraph"
10242
+ type: "PieGraph",
10243
+ legendLabels: null
10238
10244
  },
10239
10245
  style: {}
10240
10246
  }
@@ -10249,22 +10255,7 @@ const LineGraph = {
10249
10255
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10250
10256
  main: {
10251
10257
  type: "LineGraph",
10252
- header: "Quartely Incentive in Thousand",
10253
- bottomLabel: "Years",
10254
- leftLabel: "Incentive",
10255
- gridHidden: true,
10256
- numHidden: false,
10257
- tooltipDataKey: ["MAMA New Project", "Second", "Third"],
10258
- axisLeft: true,
10259
- axisBottom: true,
10260
- hideLeftAxisLine: false,
10261
- hideBottomAxisLine: false,
10262
- legend: {
10263
- labelColor: "green",
10264
- direction: "row",
10265
- align: "right",
10266
- colorRectWidth: 20
10267
- }
10258
+ legendLabels: null
10268
10259
  },
10269
10260
  style: {
10270
10261
  containerStyle: {},
@@ -10283,9 +10274,12 @@ const HorizontalBarGraph = {
10283
10274
  config: {
10284
10275
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10285
10276
  main: {
10286
- type: "HorizontalBarGraph"
10277
+ type: "HorizontalBarGraph",
10278
+ legendLabels: null
10287
10279
  },
10288
- style: {}
10280
+ style: {
10281
+ labelStyle: {}
10282
+ }
10289
10283
  }
10290
10284
  };
10291
10285
  const buildHorizontalBarGraph = (config, componentScope) => {
@@ -10303,8 +10297,11 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10303
10297
  if (config.bottomAxisAngle) {
10304
10298
  horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
10305
10299
  }
10306
- if (config.barColor) {
10307
- horizontalBarGraph.config.barStyle.color = config.barColor;
10300
+ if (config.legendLabels) {
10301
+ horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
10302
+ }
10303
+ if (config.pieArcColors) {
10304
+ horizontalBarGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10308
10305
  }
10309
10306
  if (config.xAxisValue) {
10310
10307
  horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
@@ -10319,6 +10316,15 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10319
10316
  }
10320
10317
  };
10321
10318
  }
10319
+ if (config.leftMargin) {
10320
+ horizontalBarGraph.config.style = {
10321
+ labelStyle: {
10322
+ margin: {
10323
+ left: config.leftMargin
10324
+ }
10325
+ }
10326
+ };
10327
+ }
10322
10328
  if (config.bottomLabel) {
10323
10329
  horizontalBarGraph.config.main.bottomLabel = config.bottomLabel;
10324
10330
  }
@@ -10438,7 +10444,7 @@ const buildPieGraph = (config, componentScope) => {
10438
10444
  pieGraph.scope = componentScope;
10439
10445
  pieGraph.config.main.header = config.heading;
10440
10446
  if (config.legendLabels) {
10441
- pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
10447
+ pieGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
10442
10448
  }
10443
10449
  if (config.xAxisValue) {
10444
10450
  pieGraph.config.main.xAxisValue = config.xAxisValue;
@@ -10466,8 +10472,11 @@ const buildStackbarGraph = (config, componentScope) => {
10466
10472
  }
10467
10473
  barGraph.config.main.type = config.graphType;
10468
10474
  barGraph.config.main.header = config.heading;
10469
- if (config.barColor) {
10470
- barGraph.config.barStyle.color = config.barColor;
10475
+ if (config.legendLabels) {
10476
+ barGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
10477
+ }
10478
+ if (config.pieArcColors) {
10479
+ barGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10471
10480
  }
10472
10481
  if (config.xAxisValue) {
10473
10482
  barGraph.config.main.xAxisValue = config.xAxisValue;
@@ -10475,12 +10484,29 @@ const buildStackbarGraph = (config, componentScope) => {
10475
10484
  if (config.height) {
10476
10485
  barGraph.config.style.containerStyle.height = config.height;
10477
10486
  }
10487
+ if (config.leftMargin) {
10488
+ barGraph.config.style = {
10489
+ labelStyle: {
10490
+ margin: {
10491
+ left: config.leftMargin
10492
+ }
10493
+ }
10494
+ };
10495
+ }
10478
10496
  if (config.bottomLabel) {
10479
10497
  barGraph.config.main.bottomLabel = config.bottomLabel;
10480
10498
  }
10481
10499
  if (config.leftLabel) {
10482
10500
  barGraph.config.main.leftLabel = config.leftLabel;
10483
10501
  }
10502
+ if (config.leftLabelMargin) {
10503
+ barGraph.config.style.labelStyle.margin = {
10504
+ left: config.leftLabelMargin
10505
+ };
10506
+ }
10507
+ if (config.leftLabelOffset) {
10508
+ barGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
10509
+ }
10484
10510
  barGraph.scope = componentScope;
10485
10511
  return barGraph;
10486
10512
  };
@@ -10641,7 +10667,7 @@ var Button = {
10641
10667
  styleDefault: false,
10642
10668
  icon: "",
10643
10669
  onClick: "onClick",
10644
- size: "medium"
10670
+ size: "small"
10645
10671
  },
10646
10672
  style: {}
10647
10673
  }
@@ -10736,8 +10762,11 @@ const buildTable = (config, componentScope) => {
10736
10762
  if (config.downloadAllData) {
10737
10763
  table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
10738
10764
  }
10739
- if (config.disableFilters) {
10740
- table.config.main.disableFilters = config.disableFilters === "YES" ? true : false;
10765
+ if (config.disableGlobalSearch) {
10766
+ table.config.main.disableGlobalSearch = config.disableGlobalSearch === "YES" ? true : false;
10767
+ }
10768
+ if (config.disableColumnFilter) {
10769
+ table.config.main.disableColumnFilter = config.disableColumnFilter === "YES" ? true : false;
10741
10770
  }
10742
10771
  if (config.disableSorting) {
10743
10772
  table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
@@ -10830,10 +10859,7 @@ const buildUploadFile = (config, componentScope) => {
10830
10859
  UploadFile.scope = componentScope;
10831
10860
  UploadFile.config.main.label = config.label;
10832
10861
  if (config.layout) {
10833
- UploadFile.config.layout = config.layout;
10834
- }
10835
- if (config.layout) {
10836
- uploadFile.config.layout = createLayoutFormat(config.layout);
10862
+ UploadFile.config.layout = createLayoutFormat(config.layout);
10837
10863
  }
10838
10864
  if (config.style) {
10839
10865
  UploadFile.config.style = config.style;
@@ -11243,6 +11269,12 @@ const buildTextArea = (config, componentScope) => {
11243
11269
  if (config.placeholder) {
11244
11270
  textArea.config.main.placeholder = config.placeholder;
11245
11271
  }
11272
+ if (config.enableCodeEditor) {
11273
+ textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false;
11274
+ }
11275
+ if (config.codeEditorLanguage) {
11276
+ textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
11277
+ }
11246
11278
  textArea.scope = componentScope;
11247
11279
  return textArea;
11248
11280
  };
@@ -11302,6 +11334,15 @@ const buildLineGraph = (config, componentScope) => {
11302
11334
  if (config.height) {
11303
11335
  lineGraph.config.style.containerStyle.height = config.height;
11304
11336
  }
11337
+ if (config.leftMargin) {
11338
+ lineGraph.config.style = {
11339
+ labelStyle: {
11340
+ margin: {
11341
+ left: config.leftMargin
11342
+ }
11343
+ }
11344
+ };
11345
+ }
11305
11346
  if (config.bottomLabel) {
11306
11347
  lineGraph.config.main.bottomLabel = config.bottomLabel;
11307
11348
  }
@@ -11321,11 +11362,19 @@ const buildLineGraph = (config, componentScope) => {
11321
11362
  lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
11322
11363
  }
11323
11364
  if (config.legendLabels) {
11324
- lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
11365
+ lineGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
11325
11366
  }
11326
11367
  if (config.pieArcColors) {
11327
11368
  lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11328
11369
  }
11370
+ if (config.leftLabelMargin) {
11371
+ lineGraph.config.style.labelStyle.margin = {
11372
+ left: config.leftLabelMargin
11373
+ };
11374
+ }
11375
+ if (config.leftLabelOffset) {
11376
+ lineGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
11377
+ }
11329
11378
  lineGraph.scope = componentScope;
11330
11379
  return lineGraph;
11331
11380
  };