impaktapps-ui-builder 0.0.368 → 0.0.369

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.
@@ -0,0 +1 @@
1
+ export declare const buildDataGrid: (config: any, componentScope: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.368",
3
+ "version": "0.0.369",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -29,6 +29,9 @@ export const buildDataGrid = (config, componentScope) => {
29
29
  if (config.elevation) {
30
30
  DataGrid.config.main.elevation = +config.elevation;
31
31
  }
32
+ if (config.height) {
33
+ DataGrid.config.main.height = `${config.height}px`;
34
+ }
32
35
  if (config.label) {
33
36
  DataGrid.config.main.label = config.label;
34
37
  }
@@ -36,6 +36,7 @@ import { buildAdhaarField, buildPanField } from "./buildAadharCard";
36
36
  import { buildFileInput } from "./buildFileInput";
37
37
  import { buildStepper } from "./buildStepper";
38
38
  import { buildPopUp } from "./buildPop";
39
+ import { buildDataGrid } from "./buildDataGrid";
39
40
  export let schema = {
40
41
  type: "object",
41
42
  properties: {},
@@ -166,6 +167,9 @@ const buildUiSchema = (config: any) => {
166
167
  let elements: any = {};
167
168
  const componentScope = `#/properties/${config.name}`;
168
169
  switch (config.type) {
170
+ case "DataGrid":
171
+ elements = buildDataGrid(config, componentScope);
172
+ break;
169
173
  case "Stepper":
170
174
  elements = buildStepper(config, componentScope);
171
175
  break;
@@ -36,6 +36,7 @@ export default (
36
36
  uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
37
37
  { label: "RankProvider", value: "RankProvider" },
38
38
  { label: "Download File", value: "downloadFile" },
39
+ { label: "Download Blob File", value: "downloadBlobFile" }
39
40
  ])
40
41
  uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
41
42
  schema.required = ["eventType", "Handler", "inBuiltFunctionType"]