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.
@@ -15,6 +15,7 @@ declare const _default: (funcParams: funcParamsProps) => {
15
15
  onMount: () => Promise<void>;
16
16
  onFileDownload: () => Promise<void>;
17
17
  onFileUpload: () => Promise<void>;
18
+ backHandler: () => void;
18
19
  onPaginationChange: (paginationValues: any) => Promise<any>;
19
20
  getSelectOptions: (param: any) => Promise<any>;
20
21
  onChange: () => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.407",
3
+ "version": "0.0.409",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -14,6 +14,12 @@ export const buildLineGraph = (config, componentScope) => {
14
14
  if (config.bottomLabel) {
15
15
  lineGraph.config.main.bottomLabel = config.bottomLabel;
16
16
  }
17
+ if (config.yAxisValue) {
18
+ lineGraph.config.main.yAxisValue = config.yAxisValue;
19
+ }
20
+ if (config.xAxisValue) {
21
+ lineGraph.config.main.xAxisValue = config.xAxisValue;
22
+ }
17
23
  if (config.leftLabel) {
18
24
  lineGraph.config.main.leftLabel = config.leftLabel;
19
25
  }
@@ -19,7 +19,7 @@ import { buildLabel } from "./buildLabel";
19
19
  import { buildUploadFile } from "./buildUplaodFile";
20
20
  import { buildDownloadFile } from "./buildDownloadFile";
21
21
  import { buildCard } from "./buildCard";
22
- import { buildDate } from "./buildDate";
22
+ import { buildDate, buildDateTime } from "./buildDate";
23
23
  import { buildRankCard } from "./buildRankCard";
24
24
  import { buildRollAndDice } from "./buildRollAndDice";
25
25
  import { buildTimer } from "./buildTimer";
@@ -169,7 +169,7 @@ const buildUiSchema = (config: any) => {
169
169
  const componentScope = `#/properties/${config.name}`;
170
170
  switch (config.type) {
171
171
  case "DateTime":
172
- elements = buildInputSlider(config, componentScope);
172
+ elements = buildDateTime(config, componentScope);
173
173
  break;
174
174
  case "InputSlider":
175
175
  elements = buildInputSlider(config, componentScope);
@@ -361,6 +361,8 @@ export const buildPropertiesSection = function (type: String) {
361
361
  getInputField("leftLabel", "Left Label"),
362
362
  getInputField("bottomLabel", "Bottom Label"),
363
363
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
364
+ getInputField("yAxisValue", "Y-AxisValue"),
365
+ getInputField("xAxisValue", "X-AxisValue"),
364
366
  getArrayControl("legendLabels", "label"),
365
367
  getArrayControl("pieArcColors", "color"),
366
368
  ];
@@ -106,6 +106,9 @@ export default (funcParams: funcParamsProps) => {
106
106
  onFileUpload: async function () {
107
107
  await this.callHandler("onUpload")
108
108
  },
109
+ backHandler:function(){
110
+ funcParams.store.navigate(-1)
111
+ },
109
112
  onPaginationChange: async function (paginationValues) {
110
113
  const apiBody = [
111
114
  { key: "size", value: paginationValues.pagination.pageSize },
@@ -123,7 +126,8 @@ export default (funcParams: funcParamsProps) => {
123
126
  { key: "searchValue", value: param.serachValue },
124
127
  { key: "currentValue", value: param.currentValue }
125
128
  ]
126
- return await this.updateConfigApiBody(param, apiBody)
129
+ const response = await this.updateConfigApiBody(param, apiBody);
130
+ return response?.data;
127
131
  }
128
132
  },
129
133
  onChange: async function () {