impaktapps-ui-builder 0.0.407 → 0.0.409

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.
@@ -7018,6 +7018,8 @@ const buildPropertiesSection = function(type) {
7018
7018
  getInputField("leftLabel", "Left Label"),
7019
7019
  getInputField("bottomLabel", "Bottom Label"),
7020
7020
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7021
+ getInputField("yAxisValue", "Y-AxisValue"),
7022
+ getInputField("xAxisValue", "X-AxisValue"),
7021
7023
  getArrayControl("legendLabels", "label"),
7022
7024
  getArrayControl("pieArcColors", "color")
7023
7025
  ];
@@ -8706,6 +8708,9 @@ var service = (funcParams) => {
8706
8708
  onFileUpload: async function() {
8707
8709
  await this.callHandler("onUpload");
8708
8710
  },
8711
+ backHandler: function() {
8712
+ funcParams.store.navigate(-1);
8713
+ },
8709
8714
  onPaginationChange: async function(paginationValues) {
8710
8715
  var _a;
8711
8716
  const apiBody = [
@@ -8724,7 +8729,8 @@ var service = (funcParams) => {
8724
8729
  { key: "searchValue", value: param.serachValue },
8725
8730
  { key: "currentValue", value: param.currentValue }
8726
8731
  ];
8727
- return await this.updateConfigApiBody(param, apiBody);
8732
+ const response2 = await this.updateConfigApiBody(param, apiBody);
8733
+ return response2 == null ? void 0 : response2.data;
8728
8734
  }
8729
8735
  },
8730
8736
  onChange: async function() {
@@ -10122,6 +10128,25 @@ var DateInputField = {
10122
10128
  }
10123
10129
  }
10124
10130
  };
10131
+ const DateTime = {
10132
+ type: "Control",
10133
+ scope: "#/properties/date",
10134
+ options: {
10135
+ widget: "DateTimeInputField"
10136
+ },
10137
+ config: {
10138
+ layout: {
10139
+ xs: 11,
10140
+ sm: 11,
10141
+ md: 5.5,
10142
+ lg: 5.5
10143
+ },
10144
+ main: {
10145
+ label: "DateTime",
10146
+ type: "date"
10147
+ }
10148
+ }
10149
+ };
10125
10150
  const buildDate = (config, componentScope) => {
10126
10151
  const dateInputField = _.cloneDeep(DateInputField);
10127
10152
  dateInputField.config.main.label = config.label;
@@ -10132,6 +10157,16 @@ const buildDate = (config, componentScope) => {
10132
10157
  }
10133
10158
  return dateInputField;
10134
10159
  };
10160
+ const buildDateTime = (config, componentScope) => {
10161
+ const dateTimeInputField = _.cloneDeep(DateTime);
10162
+ dateTimeInputField.config.main.label = config.label;
10163
+ dateTimeInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
10164
+ dateTimeInputField.scope = componentScope;
10165
+ if (config.layout) {
10166
+ dateTimeInputField.config.layout = createLayoutFormat(config.layout);
10167
+ }
10168
+ return dateTimeInputField;
10169
+ };
10135
10170
  var RankCard = {
10136
10171
  type: "Control",
10137
10172
  scope: "#/properties/path",
@@ -10368,6 +10403,12 @@ const buildLineGraph = (config, componentScope) => {
10368
10403
  if (config.bottomLabel) {
10369
10404
  lineGraph.config.main.bottomLabel = config.bottomLabel;
10370
10405
  }
10406
+ if (config.yAxisValue) {
10407
+ lineGraph.config.main.yAxisValue = config.yAxisValue;
10408
+ }
10409
+ if (config.xAxisValue) {
10410
+ lineGraph.config.main.xAxisValue = config.xAxisValue;
10411
+ }
10371
10412
  if (config.leftLabel) {
10372
10413
  lineGraph.config.main.leftLabel = config.leftLabel;
10373
10414
  }
@@ -10816,7 +10857,7 @@ const buildUiSchema = (config) => {
10816
10857
  const componentScope = `#/properties/${config.name}`;
10817
10858
  switch (config.type) {
10818
10859
  case "DateTime":
10819
- elements = buildInputSlider(config, componentScope);
10860
+ elements = buildDateTime(config, componentScope);
10820
10861
  break;
10821
10862
  case "InputSlider":
10822
10863
  elements = buildInputSlider(config, componentScope);