impaktapps-ui-builder 1.0.237 → 1.0.238-lazyTree.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.
@@ -8250,11 +8250,12 @@ const buildPropertiesSection = function(type) {
8250
8250
  buildWrapper("Tree Table Properties", [
8251
8251
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8252
8252
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
8253
+ getRadioInputField("lazyLoadTree", "Lazy Load Tree", ["YES", "NO"]),
8253
8254
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
8254
8255
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
8255
8256
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8256
8257
  getInputField("defaultColumnSize", "Default Column Size"),
8257
- ,
8258
+ getInputField("subRowsExpansionPageSize", "Page Size for Subrows Expansion"),
8258
8259
  emptyBox$1("LazyLoadingTableEmpty3")
8259
8260
  ]),
8260
8261
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
@@ -8294,7 +8295,7 @@ const buildPropertiesSection = function(type) {
8294
8295
  getSelectField("variant", "Variant"),
8295
8296
  getInputField("toolTip", "Tooltip"),
8296
8297
  getSelectField("toolTipPosition", "Tooltip Position"),
8297
- emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8298
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8298
8299
  ];
8299
8300
  break;
8300
8301
  case "DateTime":
@@ -8302,7 +8303,7 @@ const buildPropertiesSection = function(type) {
8302
8303
  getSelectField("variant", "Variant"),
8303
8304
  getInputField("toolTip", "Tooltip"),
8304
8305
  getSelectField("toolTipPosition", "Tooltip Position"),
8305
- emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8306
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8306
8307
  ];
8307
8308
  break;
8308
8309
  case "Thought":
@@ -9447,7 +9448,8 @@ const EventSchema = {
9447
9448
  { title: "Row Movement", const: "onRowMovement" },
9448
9449
  { title: "Download", const: "onDownload" },
9449
9450
  { title: "Fail", const: "Fail" },
9450
- { title: "Key Down", const: "onKeyDown" }
9451
+ { title: "Key Down", const: "onKeyDown" },
9452
+ { title: "Set Style", const: "setStyle" }
9451
9453
  ]
9452
9454
  },
9453
9455
  Handler: {
@@ -10833,6 +10835,25 @@ var service = (funcParams) => {
10833
10835
  funcParams.store.setUiSchema(uiSchema);
10834
10836
  });
10835
10837
  },
10838
+ getStyle: () => {
10839
+ var _a, _b, _c, _d, _e;
10840
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10841
+ if (cloneEventGroup.setStyle) {
10842
+ let finalResponse = {};
10843
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
10844
+ if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10845
+ for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _e[path]) {
10846
+ finalResponse = executeEvents({
10847
+ ...executeEventsParameters,
10848
+ config: eventConfig,
10849
+ componentName: path
10850
+ });
10851
+ }
10852
+ return finalResponse;
10853
+ }
10854
+ }
10855
+ return {};
10856
+ },
10836
10857
  onCellRenderer: (cellParams) => {
10837
10858
  var _a, _b, _c, _d, _e;
10838
10859
  const cloneEventGroup = _.cloneDeep(eventGroups);
@@ -10892,7 +10913,8 @@ var service = (funcParams) => {
10892
10913
  { key: "sorting", value: paginationValues.sorting || [] },
10893
10914
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10894
10915
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10895
- { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10916
+ { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] },
10917
+ { key: "subRowsPagination", value: paginationValues.subRowsPagination || [] }
10896
10918
  ];
10897
10919
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10898
10920
  return response == null ? void 0 : response.data;
@@ -11689,9 +11711,15 @@ const buildTable = (config2, componentScope2) => {
11689
11711
  if (config2.lazyLoading) {
11690
11712
  table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11691
11713
  }
11714
+ if (config2.lazyLoadTree) {
11715
+ table.config.main.lazyTree = config2.lazyLoadTree === "YES" ? true : false;
11716
+ }
11692
11717
  if (config2.defaultColumnSize) {
11693
11718
  table.config.main.defaultColumnSize = config2.defaultColumnSize;
11694
11719
  }
11720
+ if (config2.subRowsExpansionPageSize) {
11721
+ table.config.main.subRowsExpansionPageSize = config2.subRowsExpansionPageSize;
11722
+ }
11695
11723
  if (config2.enableRowMovement) {
11696
11724
  table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11697
11725
  }
@@ -12139,9 +12167,6 @@ const DateTime = {
12139
12167
  const buildDate = (config2, componentScope2) => {
12140
12168
  const dateInputField = _.cloneDeep(DateInputField);
12141
12169
  dateInputField.config.main.label = config2.label;
12142
- if (config2.errorMessage) {
12143
- dateInputField.config.main.errorMessage = config2.errorMessage;
12144
- }
12145
12170
  dateInputField.scope = componentScope2;
12146
12171
  if (config2.layout) {
12147
12172
  dateInputField.config.layout = createLayoutFormat(config2.layout);
@@ -12163,9 +12188,6 @@ const buildDate = (config2, componentScope2) => {
12163
12188
  const buildDateTime = (config2, componentScope2) => {
12164
12189
  const dateTimeInputField = _.cloneDeep(DateTime);
12165
12190
  dateTimeInputField.config.main.label = config2.label;
12166
- if (config2.errorMessage) {
12167
- dateTimeInputField.config.main.errorMessage = config2.errorMessage;
12168
- }
12169
12191
  dateTimeInputField.scope = componentScope2;
12170
12192
  if (config2.layout) {
12171
12193
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);