impaktapps-ui-builder 1.0.99 → 1.0.101

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.
@@ -55,7 +55,7 @@ export declare const getTextArea: (scope: string, heading: string, hideButton: b
55
55
  };
56
56
  export declare const getSelectField: (scope: string, label: string, options: {
57
57
  label: string;
58
- value: string;
58
+ value: string | number;
59
59
  }[]) => {
60
60
  type: string;
61
61
  scope: string;
@@ -72,6 +72,10 @@ export declare const getSelectField: (scope: string, label: string, options: {
72
72
  main: {
73
73
  label: string;
74
74
  type: string;
75
+ options: {
76
+ label: string;
77
+ value: string | number;
78
+ }[];
75
79
  };
76
80
  };
77
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.99",
3
+ "version": "1.0.101",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -71,5 +71,8 @@ export const buildTable = (config: any, componentScope: string) => {
71
71
  if (config.selectKey) {
72
72
  table.config.main.selectKey = config.selectKey
73
73
  }
74
+ if(config.maxPageSize){
75
+ table.config.main.maxPageSize = config.maxPageSize
76
+ }
74
77
  return table;
75
78
  };
@@ -209,7 +209,7 @@ export const getTextArea = (scope: string, heading: string, hideButton: boolean,
209
209
  },
210
210
  }
211
211
  }
212
- export const getSelectField = (scope: string, label: string, options: { label: string, value: string }[]) => {
212
+ export const getSelectField = (scope: string, label: string, options: { label: string, value: string | number }[]) => {
213
213
  return {
214
214
  type: "Control",
215
215
  scope: `#/properties/${scope}`,
@@ -222,7 +222,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
222
222
  main: {
223
223
  label: label,
224
224
  type: "text",
225
- // options: options
225
+ options: options
226
226
  },
227
227
  },
228
228
  }
@@ -479,6 +479,14 @@ export const buildPropertiesSection = function (type: String) {
479
479
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
480
480
  getInputField("selectKey", "Selection Key"),
481
481
  getMultiSelectField("filteringOptions", "Filtering Options"),
482
+ getSelectField("maxPageSize", "Max Page Size", [
483
+ { label: "10", value: 10 },
484
+ { label: "20", value: 20 },
485
+ { label: "30", value: 30 },
486
+ { label: "50", value: 50 },
487
+ { label: "100", value: 100 },
488
+ { label: "500", value: 500 }
489
+ ]),
482
490
  buildWrapper("Tree Table Properties", [
483
491
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
484
492
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),