impaktapps-ui-builder 0.0.369 → 0.0.371

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.
@@ -5871,7 +5871,6 @@ const ComponentSchema = {
5871
5871
  { title: "Card", const: "card" },
5872
5872
  { title: "CheckBox", const: "CheckBox" },
5873
5873
  { title: "Container", const: "WrapperSection" },
5874
- { title: "DataGrid", const: "DataGrid" },
5875
5874
  { title: "Date", const: "Date" },
5876
5875
  { title: "Download File", const: "DownloadFile" },
5877
5876
  { title: "Empty Box", const: "EmptyBox" },
@@ -6000,20 +5999,6 @@ const ComponentSchema = {
6000
5999
  }
6001
6000
  }
6002
6001
  },
6003
- sizeHolder: {
6004
- type: "array",
6005
- items: {
6006
- type: "object",
6007
- properties: {
6008
- keyName: {
6009
- type: "string"
6010
- },
6011
- value: {
6012
- type: "string"
6013
- }
6014
- }
6015
- }
6016
- },
6017
6002
  legendLabels: {
6018
6003
  type: "array",
6019
6004
  items: {
@@ -6705,25 +6690,6 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6705
6690
  }
6706
6691
  };
6707
6692
  };
6708
- const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
6709
- sizeHolder.options.detail.elements[1] = {
6710
- type: "Control",
6711
- scope: `#/properties/value`,
6712
- options: {
6713
- widget: "InputField"
6714
- },
6715
- config: {
6716
- layout: {
6717
- xs: 11,
6718
- sm: 11,
6719
- md: 5.5,
6720
- lg: 5.5
6721
- },
6722
- main: {
6723
- label: "Size"
6724
- }
6725
- }
6726
- };
6727
6693
  const getInputField = (scope, label) => {
6728
6694
  return {
6729
6695
  type: "Control",
@@ -6815,19 +6781,13 @@ const GraphSection = {
6815
6781
  const buildPropertiesSection = function(type) {
6816
6782
  let uiSchema = _.cloneDeep(GraphSection);
6817
6783
  switch (type) {
6818
- case "DataGrid":
6819
- uiSchema.elements = [
6820
- getRadioInputField("useWrapper", "use Item Wrapper", ["YES", "NO"]),
6821
- getInputField("elevation", "Item Wrapper Elevation")
6822
- ];
6823
- break;
6824
6784
  case "Stepper":
6825
6785
  uiSchema.elements = [
6826
6786
  getRadioInputField("resetButton", "Reset Button", ["YES", "NO"]),
6827
- getRadioInputField("defaultButtonAvailable", "Use Default Buttons ", ["YES", "NO"]),
6828
6787
  getInputField("resetText", "Reset Text"),
6829
6788
  getInputField("completeText", "Complete Text"),
6830
6789
  getSelectField("orientation", "Orientation Type"),
6790
+ EmptyBox,
6831
6791
  getArrayControl("sectionLabels", "label")
6832
6792
  ];
6833
6793
  break;
@@ -6940,8 +6900,7 @@ const buildPropertiesSection = function(type) {
6940
6900
  getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
6941
6901
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
6942
6902
  getInputField("selectKey", "Selection Key"),
6943
- getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
6944
- sizeHolder
6903
+ getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name")
6945
6904
  ];
6946
6905
  break;
6947
6906
  case "Radio":
@@ -7394,8 +7353,7 @@ const sectionLabels = {
7394
7353
  Text: ["Core", "Properties", "style", "Event", "Validation"],
7395
7354
  TextArea: ["Core", "Properties", "style", "Event", "Validation"],
7396
7355
  PopUp: ["Core", "Components", "Properties", "style"],
7397
- Stepper: ["Core", "Components", "Properties", "Event", "style"],
7398
- DataGrid: ["Core", "Components", "Properties", "Event", "style"]
7356
+ Stepper: ["Core", "Components", "Properties", "Event", "style"]
7399
7357
  };
7400
7358
  const refreshPage = (type, store2) => {
7401
7359
  var _a;
@@ -7648,7 +7606,8 @@ const EventSchema = {
7648
7606
  type: "string",
7649
7607
  oneOf: [
7650
7608
  { title: "RankProvider", const: "RankProvider" },
7651
- { title: "Download File", const: "downloadFile" }
7609
+ { title: "Download File", const: "downloadFile" },
7610
+ { title: "Download", const: "download" }
7652
7611
  ]
7653
7612
  },
7654
7613
  body: {
@@ -8241,7 +8200,7 @@ const downloadFile$1 = (obj) => {
8241
8200
  URL.revokeObjectURL(url);
8242
8201
  document.body.removeChild(link);
8243
8202
  };
8244
- const downloadBlobFile = (response2) => {
8203
+ const download = (response2) => {
8245
8204
  const url = window.URL.createObjectURL(new Blob([response2.data]));
8246
8205
  const link = document.createElement("a");
8247
8206
  link.href = url;
@@ -8665,7 +8624,7 @@ var service = (funcParams) => {
8665
8624
  }
8666
8625
  },
8667
8626
  downloadFile: downloadFile$1,
8668
- downloadBlobFile
8627
+ download
8669
8628
  };
8670
8629
  };
8671
8630
  var leaderBoard = {
@@ -9673,7 +9632,7 @@ const buildTable = (config, componentScope) => {
9673
9632
  table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
9674
9633
  }
9675
9634
  if (config.ColumnResizingAvailable) {
9676
- table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true;
9635
+ table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? true : false;
9677
9636
  }
9678
9637
  if (config.DragAvailable) {
9679
9638
  table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
@@ -10396,14 +10355,11 @@ const buildStepper = (config, componentScope) => {
10396
10355
  const stepper = _.cloneDeep(Stepper);
10397
10356
  stepper.scope = componentScope;
10398
10357
  stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
10399
- if (config.defaultButtonAvailable) {
10400
- stepper.config.main.defaultButtonAvailable = config.defaultButtonAvailable === "YES" ? true : false;
10401
- }
10402
10358
  stepper.config.main.resetText = config.resetText || "ResetData";
10403
10359
  stepper.config.main.completeText = config.completeText || "Complete Text";
10404
10360
  stepper.config.main.orientation = config.orientation || "horizontal";
10405
10361
  if (config.sectionLabels) {
10406
- stepper.config.main.steps = config.sectionLabels.map((e, i) => {
10362
+ stepper.config.main.label = config.sectionLabels.map((e, i) => {
10407
10363
  return { label: e.label, id: i };
10408
10364
  });
10409
10365
  }
@@ -10454,43 +10410,6 @@ const buildPopUp = (config, componentScope) => {
10454
10410
  }
10455
10411
  return popup;
10456
10412
  };
10457
- const dataGrid = {
10458
- "type": "Control",
10459
- "scope": "#/properties/dataGrid",
10460
- "layout": 12,
10461
- "options": {
10462
- "widget": "DataGrid"
10463
- },
10464
- elements: [],
10465
- "config": {
10466
- "main": {
10467
- elevation: 0,
10468
- useWrapper: false
10469
- },
10470
- style: {}
10471
- }
10472
- };
10473
- const buildDataGrid = (config, componentScope) => {
10474
- const DataGrid = _.cloneDeep(dataGrid);
10475
- DataGrid.scope = componentScope;
10476
- DataGrid.config.main.useWrapper = config.useWrapper === "NO" ? false : true;
10477
- if (config.elevation) {
10478
- DataGrid.config.main.elevation = +config.elevation;
10479
- }
10480
- if (config.height) {
10481
- DataGrid.config.main.height = `${config.height}px`;
10482
- }
10483
- if (config.label) {
10484
- DataGrid.config.main.label = config.label;
10485
- }
10486
- if (config.layout) {
10487
- DataGrid.config.layout = createLayoutFormat(config.layout);
10488
- }
10489
- if (config.style) {
10490
- DataGrid.config.style = JSON.parse(config.style);
10491
- }
10492
- return DataGrid;
10493
- };
10494
10413
  let schema = {
10495
10414
  type: "object",
10496
10415
  properties: {},
@@ -10609,9 +10528,6 @@ const buildUiSchema = (config) => {
10609
10528
  let elements = {};
10610
10529
  const componentScope = `#/properties/${config.name}`;
10611
10530
  switch (config.type) {
10612
- case "DataGrid":
10613
- elements = buildDataGrid(config, componentScope);
10614
- break;
10615
10531
  case "Stepper":
10616
10532
  elements = buildStepper(config, componentScope);
10617
10533
  break;
@@ -10737,25 +10653,17 @@ const buildUiSchema = (config) => {
10737
10653
  if ((config == null ? void 0 : config.type) === "LeaderBoard") {
10738
10654
  return elements;
10739
10655
  } else if (config.type == "Table") {
10740
- const sizeMap = {};
10741
- if (config.sizeHolder) {
10742
- config.sizeHolder.map((e, i) => {
10743
- sizeMap[e.keyName] = e.value;
10744
- });
10745
- }
10746
10656
  elements.elements = config.elements.map((e, elemInd) => {
10747
10657
  if (e.type) {
10748
10658
  return {
10749
10659
  accessorKey: e.name,
10750
10660
  header: e.label || e.name,
10751
- size: sizeMap[e.name] || 180,
10752
10661
  widget: buildUiSchema(e)
10753
10662
  };
10754
10663
  }
10755
10664
  return {
10756
10665
  accessorKey: e.name,
10757
- header: e.label || e.name,
10758
- size: sizeMap[e.name] || 180
10666
+ header: e.label || e.name
10759
10667
  };
10760
10668
  });
10761
10669
  } else if (config.type == "Array") {