impaktapps-ui-builder 1.0.441 → 1.0.442

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.441",
3
+ "version": "1.0.442",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -11,9 +11,15 @@ export const buildTable = (config: any, componentScope: string) => {
11
11
  if (config.lazyLoading) {
12
12
  table.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
13
13
  }
14
+ if (config.lazyLoadTree) {
15
+ table.config.main.lazyTree = config.lazyLoadTree === "YES" ? true : false;
16
+ }
14
17
  if (config.defaultColumnSize) {
15
18
  table.config.main.defaultColumnSize = config.defaultColumnSize
16
19
  }
20
+ if (config.subRowsExpansionPageSize) {
21
+ table.config.main.subRowsExpansionPageSize = config.subRowsExpansionPageSize
22
+ }
17
23
  if (config.enableRowMovement) {
18
24
  table.config.main.enableRowMovement = config.enableRowMovement === "YES" ? true : false;
19
25
  }
@@ -30,9 +36,6 @@ export const buildTable = (config: any, componentScope: string) => {
30
36
  if (config.paginateExpandedRows) {
31
37
  table.config.main.paginateExpandedRows = config.paginateExpandedRows === "YES" ? true : false;
32
38
  }
33
- if (config.treeStructure) {
34
- table.config.main.treeStructure = config.treeStructure === "YES" ? "flatTreeMap" : false;
35
- }
36
39
  if (config.SelectionAvailable) {
37
40
  table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false
38
41
  };
@@ -630,7 +630,7 @@ export const buildPropertiesSection = function (type: String) {
630
630
  getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
631
631
  getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
632
632
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
633
- getInputField("selectKey", "Selection Key"),//defaultColumnSize
633
+ getInputField("selectKey", "Selection Key"),
634
634
  getMultiSelectField("filteringOptions", "Filtering Options"),
635
635
  getSelectField("maxPageSize", "Max Page Size", [
636
636
  { label: "10", value: 10 },
@@ -648,11 +648,12 @@ export const buildPropertiesSection = function (type: String) {
648
648
  buildWrapper("Tree Table Properties", [
649
649
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
650
650
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
651
+ getRadioInputField("lazyLoadTree", "Lazy Load Tree", ["YES", "NO"]),
651
652
  // getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
652
653
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
653
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
654
654
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
655
- getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
655
+ getInputField("defaultColumnSize", "Default Column Size"),
656
+ getInputField("subRowsExpansionPageSize", "Page Size for Subrows Expansion") , emptyBox("LazyLoadingTableEmpty3")
656
657
  ]),
657
658
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
658
659
  sizeHolder,
@@ -190,7 +190,10 @@ export default (funcParams: funcParamsProps) => {
190
190
  { key: "sorting", value: paginationValues.sorting || [] },
191
191
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
192
192
  { key: "globalFilter", value: paginationValues.globalFilter ?? '' },
193
- { key: "expandedRowIds", value: paginationValues.expandedRowIds ?? [] }
193
+ { key: "expandedRowIds", value: paginationValues.expandedRowIds ?? [] },
194
+ { key: "parentId", value: paginationValues.parentId },
195
+ { key: "prevRowCount", value: paginationValues.prevRowCount },
196
+ { key: "newDataCount", value: paginationValues.newDataCount },
194
197
  ]
195
198
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
196
199
  return response?.data;