impaktapps-ui-builder 1.0.425 → 1.0.427

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.
@@ -8258,11 +8258,12 @@ const buildPropertiesSection = function(type) {
8258
8258
  buildWrapper("Tree Table Properties", [
8259
8259
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8260
8260
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
8261
+ getRadioInputField("lazyLoadTree", "Lazy Load Tree", ["YES", "NO"]),
8261
8262
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
8262
8263
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
8263
8264
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8264
8265
  getInputField("defaultColumnSize", "Default Column Size"),
8265
- ,
8266
+ getInputField("subRowsExpansionPageSize", "Page Size for Subrows Expansion"),
8266
8267
  emptyBox$1("LazyLoadingTableEmpty3")
8267
8268
  ]),
8268
8269
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
@@ -8282,18 +8283,16 @@ const buildPropertiesSection = function(type) {
8282
8283
  case "Select":
8283
8284
  uiSchema.elements = [
8284
8285
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8285
- getInputField("pageSize", "Single Page Size"),
8286
8286
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
8287
8287
  getSelectField("variant", "Variant"),
8288
8288
  getInputField("toolTip", "Tooltip"),
8289
8289
  getSelectField("toolTipPosition", "Tooltip Position"),
8290
- emptyBox$1("SelectEmpty", { xs: 0, sm: 0, md: 0, lg: 6 })
8290
+ emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
8291
8291
  ];
8292
8292
  break;
8293
8293
  case "MultipleSelect":
8294
8294
  uiSchema.elements = [
8295
8295
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8296
- getInputField("pageSize", "Single Page Size"),
8297
8296
  getSelectField("variant", "Variant"),
8298
8297
  getInputField("toolTip", "Tooltip"),
8299
8298
  getSelectField("toolTipPosition", "Tooltip Position")
@@ -10933,28 +10932,33 @@ var service = (funcParams) => {
10933
10932
  { key: "sorting", value: paginationValues.sorting || [] },
10934
10933
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10935
10934
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10936
- { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10935
+ { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] },
10936
+ { key: "subRowsPagination", value: paginationValues.subRowsPagination || [] },
10937
+ { key: "loadChildOnly", value: paginationValues.loadChildOnly || false },
10938
+ { key: "parentId", value: paginationValues.parentId },
10939
+ { key: "prevRowCount", value: paginationValues.prevRowCount },
10940
+ { key: "newDataCount", value: paginationValues.newDataCount }
10937
10941
  ];
10938
10942
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10939
10943
  return response == null ? void 0 : response.data;
10940
10944
  },
10941
10945
  getSelectOptions: async function(param) {
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;
10946
+ if (param.serachValue !== "" && param.serachValue !== void 0) {
10947
+ const apiBody = [
10948
+ { key: "searchValue", value: param.serachValue },
10949
+ { key: "currentValue", value: param.currentValue }
10950
+ ];
10951
+ const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10952
+ return response == null ? void 0 : response.data;
10953
+ }
10950
10954
  },
10951
10955
  onChange: function() {
10952
10956
  if (!eventGroups.onChange)
10953
10957
  return;
10954
10958
  const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10955
10959
  const promises = ChangeEventsKeysArray.flatMap((componentName) => {
10956
- var _a, _b;
10957
- if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName] || ((_b = funcParams.store) == null ? void 0 : _b.newData[componentName]) === void 0) {
10960
+ var _a;
10961
+ if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
10958
10962
  return [];
10959
10963
  }
10960
10964
  return eventGroups.onChange[componentName].map(
@@ -11641,9 +11645,6 @@ const buildSelect = (config2, componentScope2) => {
11641
11645
  }
11642
11646
  if (config2.lazyLoading) {
11643
11647
  selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11644
- if (config2.lazyLoading === "YES" && config2.pageSize) {
11645
- selectInputField.config.main.pageSize = config2.pageSize;
11646
- }
11647
11648
  }
11648
11649
  if (config2.variant) {
11649
11650
  selectInputField.config.main.variant = config2.variant;
@@ -11749,9 +11750,15 @@ const buildTable = (config2, componentScope2) => {
11749
11750
  if (config2.lazyLoading) {
11750
11751
  table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11751
11752
  }
11753
+ if (config2.lazyLoadTree) {
11754
+ table.config.main.lazyTree = config2.lazyLoadTree === "YES" ? true : false;
11755
+ }
11752
11756
  if (config2.defaultColumnSize) {
11753
11757
  table.config.main.defaultColumnSize = config2.defaultColumnSize;
11754
11758
  }
11759
+ if (config2.subRowsExpansionPageSize) {
11760
+ table.config.main.subRowsExpansionPageSize = config2.subRowsExpansionPageSize;
11761
+ }
11755
11762
  if (config2.enableRowMovement) {
11756
11763
  table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11757
11764
  }
@@ -12347,9 +12354,6 @@ const buildMultiSelect = (config2, componentScope2) => {
12347
12354
  }
12348
12355
  if (config2.lazyLoading) {
12349
12356
  multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
12350
- if (config2.lazyLoading === "YES" && config2.pageSize) {
12351
- multipleSelect.config.main.pageSize = config2.pageSize;
12352
- }
12353
12357
  }
12354
12358
  if (config2.toolTip) {
12355
12359
  multipleSelect.config.main.toolTip = config2.toolTip;