impaktapps-ui-builder 0.0.95 → 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,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: {},
@@ -10222,7 +10225,7 @@ const BarGraph = {
10222
10225
  config: {
10223
10226
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10224
10227
  main: {},
10225
- style: { containerStyle: {} }
10228
+ style: { containerStyle: {}, labelStyle: {} }
10226
10229
  }
10227
10230
  };
10228
10231
  const PieGraph = {
@@ -10285,7 +10288,9 @@ const HorizontalBarGraph = {
10285
10288
  main: {
10286
10289
  type: "HorizontalBarGraph"
10287
10290
  },
10288
- style: {}
10291
+ style: {
10292
+ labelStyle: {}
10293
+ }
10289
10294
  }
10290
10295
  };
10291
10296
  const buildHorizontalBarGraph = (config, componentScope) => {
@@ -10319,6 +10324,15 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10319
10324
  }
10320
10325
  };
10321
10326
  }
10327
+ if (config.leftMargin) {
10328
+ horizontalBarGraph.config.style = {
10329
+ labelStyle: {
10330
+ margin: {
10331
+ left: config.leftMargin
10332
+ }
10333
+ }
10334
+ };
10335
+ }
10322
10336
  if (config.bottomLabel) {
10323
10337
  horizontalBarGraph.config.main.bottomLabel = config.bottomLabel;
10324
10338
  }
@@ -10475,12 +10489,29 @@ const buildStackbarGraph = (config, componentScope) => {
10475
10489
  if (config.height) {
10476
10490
  barGraph.config.style.containerStyle.height = config.height;
10477
10491
  }
10492
+ if (config.leftMargin) {
10493
+ barGraph.config.style = {
10494
+ labelStyle: {
10495
+ margin: {
10496
+ left: config.leftMargin
10497
+ }
10498
+ }
10499
+ };
10500
+ }
10478
10501
  if (config.bottomLabel) {
10479
10502
  barGraph.config.main.bottomLabel = config.bottomLabel;
10480
10503
  }
10481
10504
  if (config.leftLabel) {
10482
10505
  barGraph.config.main.leftLabel = config.leftLabel;
10483
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
+ }
10484
10515
  barGraph.scope = componentScope;
10485
10516
  return barGraph;
10486
10517
  };
@@ -10641,7 +10672,7 @@ var Button = {
10641
10672
  styleDefault: false,
10642
10673
  icon: "",
10643
10674
  onClick: "onClick",
10644
- size: "medium"
10675
+ size: "small"
10645
10676
  },
10646
10677
  style: {}
10647
10678
  }
@@ -10736,8 +10767,11 @@ const buildTable = (config, componentScope) => {
10736
10767
  if (config.downloadAllData) {
10737
10768
  table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
10738
10769
  }
10739
- if (config.disableFilters) {
10740
- 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;
10741
10775
  }
10742
10776
  if (config.disableSorting) {
10743
10777
  table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
@@ -10830,10 +10864,7 @@ const buildUploadFile = (config, componentScope) => {
10830
10864
  UploadFile.scope = componentScope;
10831
10865
  UploadFile.config.main.label = config.label;
10832
10866
  if (config.layout) {
10833
- UploadFile.config.layout = config.layout;
10834
- }
10835
- if (config.layout) {
10836
- uploadFile.config.layout = createLayoutFormat(config.layout);
10867
+ UploadFile.config.layout = createLayoutFormat(config.layout);
10837
10868
  }
10838
10869
  if (config.style) {
10839
10870
  UploadFile.config.style = config.style;
@@ -11243,6 +11274,12 @@ const buildTextArea = (config, componentScope) => {
11243
11274
  if (config.placeholder) {
11244
11275
  textArea.config.main.placeholder = config.placeholder;
11245
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
+ }
11246
11283
  textArea.scope = componentScope;
11247
11284
  return textArea;
11248
11285
  };
@@ -11302,6 +11339,15 @@ const buildLineGraph = (config, componentScope) => {
11302
11339
  if (config.height) {
11303
11340
  lineGraph.config.style.containerStyle.height = config.height;
11304
11341
  }
11342
+ if (config.leftMargin) {
11343
+ lineGraph.config.style = {
11344
+ labelStyle: {
11345
+ margin: {
11346
+ left: config.leftMargin
11347
+ }
11348
+ }
11349
+ };
11350
+ }
11305
11351
  if (config.bottomLabel) {
11306
11352
  lineGraph.config.main.bottomLabel = config.bottomLabel;
11307
11353
  }
@@ -11326,6 +11372,14 @@ const buildLineGraph = (config, componentScope) => {
11326
11372
  if (config.pieArcColors) {
11327
11373
  lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11328
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
+ }
11329
11383
  lineGraph.scope = componentScope;
11330
11384
  return lineGraph;
11331
11385
  };