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.
- package/dist/impaktapps-ui-builder.es.js +40 -0
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildDataGrid.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/services/event.ts +1 -0
|
@@ -10454,6 +10454,43 @@ const buildPopUp = (config, componentScope) => {
|
|
|
10454
10454
|
}
|
|
10455
10455
|
return popup;
|
|
10456
10456
|
};
|
|
10457
|
+
const dataGrid = {
|
|
10458
|
+
"type": "Control",
|
|
10459
|
+
"scope": "#/properties/dataGrid",
|
|
10460
|
+
"layout": 12,
|
|
10461
|
+
"options": {
|
|
10462
|
+
"widget": "DataGrid"
|
|
10463
|
+
},
|
|
10464
|
+
elements: [],
|
|
10465
|
+
"config": {
|
|
10466
|
+
"main": {
|
|
10467
|
+
elevation: 0,
|
|
10468
|
+
useWrapper: false
|
|
10469
|
+
},
|
|
10470
|
+
style: {}
|
|
10471
|
+
}
|
|
10472
|
+
};
|
|
10473
|
+
const buildDataGrid = (config, componentScope) => {
|
|
10474
|
+
const DataGrid = _.cloneDeep(dataGrid);
|
|
10475
|
+
DataGrid.scope = componentScope;
|
|
10476
|
+
DataGrid.config.main.useWrapper = config.useWrapper === "NO" ? false : true;
|
|
10477
|
+
if (config.elevation) {
|
|
10478
|
+
DataGrid.config.main.elevation = +config.elevation;
|
|
10479
|
+
}
|
|
10480
|
+
if (config.height) {
|
|
10481
|
+
DataGrid.config.main.height = `${config.height}px`;
|
|
10482
|
+
}
|
|
10483
|
+
if (config.label) {
|
|
10484
|
+
DataGrid.config.main.label = config.label;
|
|
10485
|
+
}
|
|
10486
|
+
if (config.layout) {
|
|
10487
|
+
DataGrid.config.layout = createLayoutFormat(config.layout);
|
|
10488
|
+
}
|
|
10489
|
+
if (config.style) {
|
|
10490
|
+
DataGrid.config.style = JSON.parse(config.style);
|
|
10491
|
+
}
|
|
10492
|
+
return DataGrid;
|
|
10493
|
+
};
|
|
10457
10494
|
let schema = {
|
|
10458
10495
|
type: "object",
|
|
10459
10496
|
properties: {},
|
|
@@ -10572,6 +10609,9 @@ const buildUiSchema = (config) => {
|
|
|
10572
10609
|
let elements = {};
|
|
10573
10610
|
const componentScope = `#/properties/${config.name}`;
|
|
10574
10611
|
switch (config.type) {
|
|
10612
|
+
case "DataGrid":
|
|
10613
|
+
elements = buildDataGrid(config, componentScope);
|
|
10614
|
+
break;
|
|
10575
10615
|
case "Stepper":
|
|
10576
10616
|
elements = buildStepper(config, componentScope);
|
|
10577
10617
|
break;
|