impaktapps-ui-builder 1.0.414 → 1.0.421-lazyAuto.1

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.
@@ -6657,7 +6657,8 @@ const ComponentSchema = {
6657
6657
  title: "Stack Horizontal Bar Graph",
6658
6658
  const: "HorizontalStackBarGraph"
6659
6659
  },
6660
- { title: "Area Graph", const: "AreaGraph" }
6660
+ { title: "Area Graph", const: "AreaGraph" },
6661
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6661
6662
  ]
6662
6663
  },
6663
6664
  iconName: {
@@ -7816,7 +7817,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7816
7817
  ]
7817
7818
  };
7818
7819
  };
7819
- const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel) => {
7820
+ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
7820
7821
  return {
7821
7822
  type: "Control",
7822
7823
  scope: `#/properties/${parentScope}`,
@@ -7825,7 +7826,9 @@ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScop
7825
7826
  },
7826
7827
  config: {
7827
7828
  layout: 12,
7828
- main: {},
7829
+ main: {
7830
+ label: arrayLabel
7831
+ },
7829
7832
  style: {
7830
7833
  marginLeft: "-24px",
7831
7834
  marginBottom: "24px !important",
@@ -8191,22 +8194,24 @@ const buildPropertiesSection = function(type) {
8191
8194
  getInputField("subHeader", "Sub Header"),
8192
8195
  getSelectField("graphType", "Graph Type"),
8193
8196
  getInputField("leftLabel", "Left Label"),
8197
+ getInputField("rightLabel", "Right Label"),
8194
8198
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
8195
8199
  getInputField("bottomLabel", "Bottom Label"),
8196
8200
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
8197
8201
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
8198
8202
  getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
8199
- getInputField("yAxisValue", "Y-AxisValue"),
8200
- getInputField("xAxisValue", "X-AxisValue"),
8203
+ getInputField("yAxisValue", "Y-Axis Key"),
8204
+ getInputField("xAxisValue", "X-Axis Key"),
8201
8205
  getSelectField("xAxisType", "X-AxisType"),
8202
8206
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8203
8207
  getInputField("leftMargin", "Left Margin"),
8204
- getInputField("xAxisTickCount", "X Axis TickCount"),
8205
8208
  getInputField("yAxisTickCount", "Y Axis TickCount"),
8206
8209
  getSelectField("xAxisFormatType", "X Axis Format Type"),
8207
- emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
8208
- getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label"),
8209
- getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color")
8210
+ getInputField("growthRateKey", "Growth Rate Key"),
8211
+ getInputField("tooltipUnit", "Tooltip Unit"),
8212
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
8213
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8214
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
8210
8215
  ];
8211
8216
  break;
8212
8217
  case "WrapperSection":
@@ -8218,7 +8223,9 @@ const buildPropertiesSection = function(type) {
8218
8223
  getInputField("rowSpacing", "Row Spacing"),
8219
8224
  getInputField("columnSpacing", "Column Spacing"),
8220
8225
  getInputField("spacing", "Spacing"),
8221
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
8226
+ getInputField("iconUrl", "Icon Url"),
8227
+ emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
8228
+ emptyBox$1("WrapperSectionEmpty2")
8222
8229
  ];
8223
8230
  break;
8224
8231
  case "TabSection":
@@ -8251,12 +8258,11 @@ const buildPropertiesSection = function(type) {
8251
8258
  buildWrapper("Tree Table Properties", [
8252
8259
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8253
8260
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
8254
- getRadioInputField("lazyLoadTree", "Lazy Load Tree", ["YES", "NO"]),
8255
8261
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
8256
8262
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
8257
8263
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8258
8264
  getInputField("defaultColumnSize", "Default Column Size"),
8259
- getInputField("subRowsExpansionPageSize", "Page Size for Subrows Expansion"),
8265
+ ,
8260
8266
  emptyBox$1("LazyLoadingTableEmpty3")
8261
8267
  ]),
8262
8268
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
@@ -8276,16 +8282,18 @@ const buildPropertiesSection = function(type) {
8276
8282
  case "Select":
8277
8283
  uiSchema.elements = [
8278
8284
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8285
+ getInputField("pageSize", "Single Page Size"),
8279
8286
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
8280
8287
  getSelectField("variant", "Variant"),
8281
8288
  getInputField("toolTip", "Tooltip"),
8282
8289
  getSelectField("toolTipPosition", "Tooltip Position"),
8283
- emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
8290
+ emptyBox$1("SelectEmpty", { xs: 0, sm: 0, md: 0, lg: 6 })
8284
8291
  ];
8285
8292
  break;
8286
8293
  case "MultipleSelect":
8287
8294
  uiSchema.elements = [
8288
8295
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8296
+ getInputField("pageSize", "Single Page Size"),
8289
8297
  getSelectField("variant", "Variant"),
8290
8298
  getInputField("toolTip", "Tooltip"),
8291
8299
  getSelectField("toolTipPosition", "Tooltip Position")
@@ -10925,25 +10933,20 @@ var service = (funcParams) => {
10925
10933
  { key: "sorting", value: paginationValues.sorting || [] },
10926
10934
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10927
10935
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10928
- { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] },
10929
- { key: "subRowsPagination", value: paginationValues.subRowsPagination || [] },
10930
- { key: "loadChildOnly", value: paginationValues.loadChildOnly || false },
10931
- { key: "parentId", value: paginationValues.parentId },
10932
- { key: "prevRowCount", value: paginationValues.prevRowCount },
10933
- { key: "newDataCount", value: paginationValues.newDataCount }
10936
+ { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10934
10937
  ];
10935
10938
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10936
10939
  return response == null ? void 0 : response.data;
10937
10940
  },
10938
10941
  getSelectOptions: async function(param) {
10939
- if (param.serachValue !== "" && param.serachValue !== void 0) {
10940
- const apiBody = [
10941
- { key: "searchValue", value: param.serachValue },
10942
- { key: "currentValue", value: param.currentValue }
10943
- ];
10944
- const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10945
- return response == null ? void 0 : response.data;
10946
- }
10942
+ const apiBody = [
10943
+ { key: "searchValue", value: param.serachValue },
10944
+ { key: "currentValue", value: param.currentValue },
10945
+ { key: "currentPage", value: param.currentPage },
10946
+ { key: "limit", value: param.limit }
10947
+ ];
10948
+ const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10949
+ return response == null ? void 0 : response.data;
10947
10950
  },
10948
10951
  onChange: function() {
10949
10952
  if (!eventGroups.onChange)
@@ -11249,6 +11252,21 @@ const AreaBarGraph = {
11249
11252
  style: { containerStyle: {}, labelStyle: { margin: {} } }
11250
11253
  }
11251
11254
  };
11255
+ const StackBarLineG = {
11256
+ type: "Control",
11257
+ scope: "#/properties/graph",
11258
+ options: {
11259
+ widget: "Graph"
11260
+ },
11261
+ config: {
11262
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11263
+ main: {
11264
+ type: "StackBarLineGraph",
11265
+ legendLabels: null
11266
+ },
11267
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11268
+ }
11269
+ };
11252
11270
  const buildHorizontalBarGraph = (config2, componentScope2) => {
11253
11271
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
11254
11272
  horizontalBarGraph.scope = componentScope2;
@@ -11533,6 +11551,7 @@ const buildWrapperSection = (config2, componentScope2) => {
11533
11551
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11534
11552
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11535
11553
  wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11554
+ wrapper.config.main.icon = config2.iconUrl;
11536
11555
  wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11537
11556
  wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11538
11557
  wrapper.config.main.spacing = Number(config2.spacing);
@@ -11622,6 +11641,9 @@ const buildSelect = (config2, componentScope2) => {
11622
11641
  }
11623
11642
  if (config2.lazyLoading) {
11624
11643
  selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11644
+ if (config2.lazyLoading === "YES" && config2.pageSize) {
11645
+ selectInputField.config.main.pageSize = config2.pageSize;
11646
+ }
11625
11647
  }
11626
11648
  if (config2.variant) {
11627
11649
  selectInputField.config.main.variant = config2.variant;
@@ -11727,15 +11749,9 @@ const buildTable = (config2, componentScope2) => {
11727
11749
  if (config2.lazyLoading) {
11728
11750
  table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11729
11751
  }
11730
- if (config2.lazyLoadTree) {
11731
- table.config.main.lazyTree = config2.lazyLoadTree === "YES" ? true : false;
11732
- }
11733
11752
  if (config2.defaultColumnSize) {
11734
11753
  table.config.main.defaultColumnSize = config2.defaultColumnSize;
11735
11754
  }
11736
- if (config2.subRowsExpansionPageSize) {
11737
- table.config.main.subRowsExpansionPageSize = config2.subRowsExpansionPageSize;
11738
- }
11739
11755
  if (config2.enableRowMovement) {
11740
11756
  table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11741
11757
  }
@@ -12331,6 +12347,9 @@ const buildMultiSelect = (config2, componentScope2) => {
12331
12347
  }
12332
12348
  if (config2.lazyLoading) {
12333
12349
  multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
12350
+ if (config2.lazyLoading === "YES" && config2.pageSize) {
12351
+ multipleSelect.config.main.pageSize = config2.pageSize;
12352
+ }
12334
12353
  }
12335
12354
  if (config2.toolTip) {
12336
12355
  multipleSelect.config.main.toolTip = config2.toolTip;
@@ -13023,9 +13042,6 @@ const buildAreaGraph = (config2, componentScope2) => {
13023
13042
  if (config2.xAxisFormatType) {
13024
13043
  AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13025
13044
  }
13026
- if (config2.xAxisTickCount) {
13027
- AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13028
- }
13029
13045
  if (config2.yAxisTickCount) {
13030
13046
  AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13031
13047
  }
@@ -13051,6 +13067,68 @@ const buildAreaGraph = (config2, componentScope2) => {
13051
13067
  }
13052
13068
  return AreaGraph;
13053
13069
  };
13070
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13071
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13072
+ StackBarLineGraph.scope = componentScope2;
13073
+ if (config2.layout) {
13074
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13075
+ }
13076
+ StackBarLineGraph.config.main.type = config2.graphType;
13077
+ StackBarLineGraph.scope = componentScope2;
13078
+ StackBarLineGraph.config.main.header = config2.heading;
13079
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13080
+ if (config2.legendHide) {
13081
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13082
+ }
13083
+ if (config2.bottomAxisAngle) {
13084
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13085
+ }
13086
+ if (config2.legendLabels) {
13087
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13088
+ }
13089
+ if (config2.legendDirection) {
13090
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13091
+ }
13092
+ if (config2.height) {
13093
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13094
+ }
13095
+ if (config2.pieArcColors) {
13096
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13097
+ }
13098
+ if (config2.yAxisTickCount) {
13099
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13100
+ }
13101
+ if (config2.xAxisValue) {
13102
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13103
+ }
13104
+ if (config2.xAxisType) {
13105
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13106
+ }
13107
+ if (config2.bottomLabel) {
13108
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13109
+ }
13110
+ if (config2.leftLabel) {
13111
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13112
+ }
13113
+ if (config2.rightLabel) {
13114
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13115
+ }
13116
+ if (config2.disableLeftLabel) {
13117
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13118
+ }
13119
+ if (config2.growthRateKey) {
13120
+ StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
13121
+ }
13122
+ if (config2.tooltipUnit) {
13123
+ StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
13124
+ }
13125
+ if (config2.leftMargin) {
13126
+ StackBarLineGraph.config.style.labelStyle.margin = {
13127
+ left: config2.leftMargin
13128
+ };
13129
+ }
13130
+ return StackBarLineGraph;
13131
+ };
13054
13132
  const cameraUiSchema = {
13055
13133
  type: "Control",
13056
13134
  scope: "#/properties/camera",
@@ -13416,6 +13494,9 @@ const buildUiSchema = (config2, store2) => {
13416
13494
  case "AreaGraph":
13417
13495
  elements = buildAreaGraph(config2, componentScope2);
13418
13496
  break;
13497
+ case "StackBarLineGraph":
13498
+ elements = buildStackBarLineGraph(config2, componentScope2);
13499
+ break;
13419
13500
  default:
13420
13501
  elements = buildStackbarGraph(config2, componentScope2);
13421
13502
  break;