impaktapps-ui-builder 1.0.239 → 1.0.241

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.239",
3
+ "version": "1.0.241",
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
  }
@@ -624,7 +624,7 @@ export const buildPropertiesSection = function (type: String) {
624
624
  getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
625
625
  getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
626
626
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
627
- getInputField("selectKey", "Selection Key"),//defaultColumnSize
627
+ getInputField("selectKey", "Selection Key"),
628
628
  getMultiSelectField("filteringOptions", "Filtering Options"),
629
629
  getSelectField("maxPageSize", "Max Page Size", [
630
630
  { label: "10", value: 10 },
@@ -642,11 +642,13 @@ export const buildPropertiesSection = function (type: String) {
642
642
  buildWrapper("Tree Table Properties", [
643
643
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
644
644
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
645
+ getRadioInputField("lazyLoadTree", "Lazy Load Tree", ["YES", "NO"]),
645
646
  // getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
646
647
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
647
648
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
648
649
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
649
- getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
650
+ getInputField("defaultColumnSize", "Default Column Size"),
651
+ getInputField("subRowsExpansionPageSize", "Page Size for Subrows Expansion") , emptyBox("LazyLoadingTableEmpty3")
650
652
  ]),
651
653
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
652
654
  sizeHolder,
@@ -116,7 +116,7 @@ export default (funcParams: funcParamsProps) => {
116
116
  const cloneEventGroup = _.cloneDeep(eventGroups)
117
117
  if (cloneEventGroup.setStyle) {
118
118
  let finalResponse = {};
119
- const path = funcParams.dynamicData?.tableButtonPath || funcParams?.dynamicData.path?.split(".").pop();
119
+ const path = funcParams.dynamicData?.tableButtonPath || funcParams?.dynamicData?.path?.split(".")[0];
120
120
  if (cloneEventGroup?.setStyle?.[path]) {
121
121
  for (const eventConfig of cloneEventGroup?.setStyle?.[path]) {
122
122
  finalResponse = executeEvents({
@@ -187,7 +187,8 @@ export default (funcParams: funcParamsProps) => {
187
187
  { key: "sorting", value: paginationValues.sorting || [] },
188
188
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
189
189
  { key: "globalFilter", value: paginationValues.globalFilter ?? '' },
190
- { key: "expandedRowIds", value: paginationValues.expandedRowIds ?? [] }
190
+ { key: "expandedRowIds", value: paginationValues.expandedRowIds ?? [] },
191
+ { key: "subRowsPagination", value: paginationValues.subRowsPagination || [] },
191
192
  ]
192
193
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
193
194
  return response?.data;