impaktapps-ui-builder 0.0.368 → 0.0.370

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.
@@ -7648,7 +7648,8 @@ const EventSchema = {
7648
7648
  type: "string",
7649
7649
  oneOf: [
7650
7650
  { title: "RankProvider", const: "RankProvider" },
7651
- { title: "Download File", const: "downloadFile" }
7651
+ { title: "Download File", const: "downloadFile" },
7652
+ { title: "Download Blob File", consts: "downloadBlobFile" }
7652
7653
  ]
7653
7654
  },
7654
7655
  body: {
@@ -10454,6 +10455,43 @@ const buildPopUp = (config, componentScope) => {
10454
10455
  }
10455
10456
  return popup;
10456
10457
  };
10458
+ const dataGrid = {
10459
+ "type": "Control",
10460
+ "scope": "#/properties/dataGrid",
10461
+ "layout": 12,
10462
+ "options": {
10463
+ "widget": "DataGrid"
10464
+ },
10465
+ elements: [],
10466
+ "config": {
10467
+ "main": {
10468
+ elevation: 0,
10469
+ useWrapper: false
10470
+ },
10471
+ style: {}
10472
+ }
10473
+ };
10474
+ const buildDataGrid = (config, componentScope) => {
10475
+ const DataGrid = _.cloneDeep(dataGrid);
10476
+ DataGrid.scope = componentScope;
10477
+ DataGrid.config.main.useWrapper = config.useWrapper === "NO" ? false : true;
10478
+ if (config.elevation) {
10479
+ DataGrid.config.main.elevation = +config.elevation;
10480
+ }
10481
+ if (config.height) {
10482
+ DataGrid.config.main.height = `${config.height}px`;
10483
+ }
10484
+ if (config.label) {
10485
+ DataGrid.config.main.label = config.label;
10486
+ }
10487
+ if (config.layout) {
10488
+ DataGrid.config.layout = createLayoutFormat(config.layout);
10489
+ }
10490
+ if (config.style) {
10491
+ DataGrid.config.style = JSON.parse(config.style);
10492
+ }
10493
+ return DataGrid;
10494
+ };
10457
10495
  let schema = {
10458
10496
  type: "object",
10459
10497
  properties: {},
@@ -10572,6 +10610,9 @@ const buildUiSchema = (config) => {
10572
10610
  let elements = {};
10573
10611
  const componentScope = `#/properties/${config.name}`;
10574
10612
  switch (config.type) {
10613
+ case "DataGrid":
10614
+ elements = buildDataGrid(config, componentScope);
10615
+ break;
10575
10616
  case "Stepper":
10576
10617
  elements = buildStepper(config, componentScope);
10577
10618
  break;