impaktapps-ui-builder 1.0.241 → 1.0.243

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.241",
3
+ "version": "1.0.243",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -17,6 +17,7 @@ const PopUP = {
17
17
  },
18
18
  main: {
19
19
  label: "PopUp",
20
+ onClose:"onClose",
20
21
  fullScreen:false,
21
22
  fullWidth:false,
22
23
  maxWidth:false,
@@ -11,15 +11,9 @@ 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
- }
17
14
  if (config.defaultColumnSize) {
18
15
  table.config.main.defaultColumnSize = config.defaultColumnSize
19
16
  }
20
- if (config.subRowsExpansionPageSize) {
21
- table.config.main.subRowsExpansionPageSize = config.subRowsExpansionPageSize
22
- }
23
17
  if (config.enableRowMovement) {
24
18
  table.config.main.enableRowMovement = config.enableRowMovement === "YES" ? true : false;
25
19
  }
@@ -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"),
627
+ getInputField("selectKey", "Selection Key"),//defaultColumnSize
628
628
  getMultiSelectField("filteringOptions", "Filtering Options"),
629
629
  getSelectField("maxPageSize", "Max Page Size", [
630
630
  { label: "10", value: 10 },
@@ -642,13 +642,11 @@ 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"]),
646
645
  // getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
647
646
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
648
647
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
649
648
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
650
- getInputField("defaultColumnSize", "Default Column Size"),
651
- getInputField("subRowsExpansionPageSize", "Page Size for Subrows Expansion") , emptyBox("LazyLoadingTableEmpty3")
649
+ getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
652
650
  ]),
653
651
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
654
652
  sizeHolder,
@@ -1,5 +1,3 @@
1
- import { title } from "process";
2
-
3
1
  export const EventSchema = {
4
2
  type: "object",
5
3
  properties: {
@@ -55,8 +53,9 @@ export const EventSchema = {
55
53
  { title: "Row Movement", const: "onRowMovement" },
56
54
  { title: "Download", const: "onDownload" },
57
55
  { title: "Fail", const: "Fail" },
56
+ { title: "onClose", const: "onClose" },
58
57
  { title: "Key Down", const: "onKeyDown" },
59
- { title: "Set Style", const: "setStyle" },
58
+ { title: "Set Style", const: "setStyle" },
60
59
 
61
60
  ]
62
61
  },
@@ -37,7 +37,7 @@ const sectionLabels = {
37
37
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
38
38
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
39
39
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
40
- PopUp: ["Core", "Components", "Properties", "Style"],
40
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
41
41
  PopOver: ["Core", "Components", "Properties", "Style"],
42
42
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
43
43
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
@@ -52,7 +52,6 @@ const sectionLabels = {
52
52
  Camera: ["Core", "Properties", "Events", "Style", "Validation"],
53
53
  OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"],
54
54
  }
55
-
56
55
  export function refreshPage(type: string, store: any) {
57
56
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store.theme.myTheme))
58
57
  const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
@@ -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(".")[0];
119
+ const path = funcParams.dynamicData?.tableButtonPath || funcParams?.dynamicData.path?.split(".").pop();
120
120
  if (cloneEventGroup?.setStyle?.[path]) {
121
121
  for (const eventConfig of cloneEventGroup?.setStyle?.[path]) {
122
122
  finalResponse = executeEvents({
@@ -187,8 +187,7 @@ 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 ?? [] },
191
- { key: "subRowsPagination", value: paginationValues.subRowsPagination || [] },
190
+ { key: "expandedRowIds", value: paginationValues.expandedRowIds ?? [] }
192
191
  ]
193
192
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
194
193
  return response?.data;