impaktapps-ui-builder 0.0.376 → 0.0.377
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 +36 -6
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStepper.ts +5 -2
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +16 -8
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +4 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +14 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -0
- package/src/impaktapps-ui-builder/builder/services/event.ts +1 -0
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +8 -8
- package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -2
|
@@ -6018,6 +6018,20 @@ const ComponentSchema = {
|
|
|
6018
6018
|
}
|
|
6019
6019
|
}
|
|
6020
6020
|
},
|
|
6021
|
+
sizeHolder: {
|
|
6022
|
+
type: "array",
|
|
6023
|
+
items: {
|
|
6024
|
+
type: "object",
|
|
6025
|
+
properties: {
|
|
6026
|
+
keyName: {
|
|
6027
|
+
type: "string"
|
|
6028
|
+
},
|
|
6029
|
+
value: {
|
|
6030
|
+
type: "string"
|
|
6031
|
+
}
|
|
6032
|
+
}
|
|
6033
|
+
}
|
|
6034
|
+
},
|
|
6021
6035
|
legendLabels: {
|
|
6022
6036
|
type: "array",
|
|
6023
6037
|
items: {
|
|
@@ -6882,10 +6896,10 @@ const buildPropertiesSection = function(type) {
|
|
|
6882
6896
|
case "Stepper":
|
|
6883
6897
|
uiSchema.elements = [
|
|
6884
6898
|
getRadioInputField("resetButton", "Reset Button", ["YES", "NO"]),
|
|
6899
|
+
getRadioInputField("defaultButtonAvailable", "Use Default Buttons ", ["YES", "NO"]),
|
|
6885
6900
|
getInputField("resetText", "Reset Text"),
|
|
6886
6901
|
getInputField("completeText", "Complete Text"),
|
|
6887
6902
|
getSelectField("orientation", "Orientation Type"),
|
|
6888
|
-
EmptyBox,
|
|
6889
6903
|
getArrayControl("sectionLabels", "label")
|
|
6890
6904
|
];
|
|
6891
6905
|
break;
|
|
@@ -6998,7 +7012,8 @@ const buildPropertiesSection = function(type) {
|
|
|
6998
7012
|
getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
|
|
6999
7013
|
getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
|
|
7000
7014
|
getInputField("selectKey", "Selection Key"),
|
|
7001
|
-
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name")
|
|
7015
|
+
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
7016
|
+
sizeHolder
|
|
7002
7017
|
];
|
|
7003
7018
|
break;
|
|
7004
7019
|
case "Radio":
|
|
@@ -7451,7 +7466,8 @@ const sectionLabels = {
|
|
|
7451
7466
|
Text: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7452
7467
|
TextArea: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7453
7468
|
PopUp: ["Core", "Components", "Properties", "style"],
|
|
7454
|
-
Stepper: ["Core", "Components", "Properties", "Event", "style"]
|
|
7469
|
+
Stepper: ["Core", "Components", "Properties", "Event", "style"],
|
|
7470
|
+
DataGrid: ["Core", "Components", "Properties", "Event", "style"]
|
|
7455
7471
|
};
|
|
7456
7472
|
const refreshPage = (type, store2) => {
|
|
7457
7473
|
var _a;
|
|
@@ -9547,6 +9563,9 @@ const buildWrapperSection = (config, componentScope) => {
|
|
|
9547
9563
|
if (config.style) {
|
|
9548
9564
|
wrapper.config.style = JSON.parse(config.style);
|
|
9549
9565
|
}
|
|
9566
|
+
if (config.layout) {
|
|
9567
|
+
wrapper.config.layout = createLayoutFormat(config.layout);
|
|
9568
|
+
}
|
|
9550
9569
|
return wrapper;
|
|
9551
9570
|
};
|
|
9552
9571
|
var TextInputField = {
|
|
@@ -9730,7 +9749,7 @@ const buildTable = (config, componentScope) => {
|
|
|
9730
9749
|
table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
|
|
9731
9750
|
}
|
|
9732
9751
|
if (config.ColumnResizingAvailable) {
|
|
9733
|
-
table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ?
|
|
9752
|
+
table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true;
|
|
9734
9753
|
}
|
|
9735
9754
|
if (config.DragAvailable) {
|
|
9736
9755
|
table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
|
|
@@ -10453,11 +10472,14 @@ const buildStepper = (config, componentScope) => {
|
|
|
10453
10472
|
const stepper = _.cloneDeep(Stepper);
|
|
10454
10473
|
stepper.scope = componentScope;
|
|
10455
10474
|
stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
|
|
10475
|
+
if (config.defaultButtonAvailable) {
|
|
10476
|
+
stepper.config.main.defaultButtonAvailable = config.defaultButtonAvailable === "YES" ? true : false;
|
|
10477
|
+
}
|
|
10456
10478
|
stepper.config.main.resetText = config.resetText || "ResetData";
|
|
10457
10479
|
stepper.config.main.completeText = config.completeText || "Complete Text";
|
|
10458
10480
|
stepper.config.main.orientation = config.orientation || "horizontal";
|
|
10459
10481
|
if (config.sectionLabels) {
|
|
10460
|
-
stepper.config.main.
|
|
10482
|
+
stepper.config.main.steps = config.sectionLabels.map((e, i) => {
|
|
10461
10483
|
return { label: e.label, id: i };
|
|
10462
10484
|
});
|
|
10463
10485
|
}
|
|
@@ -10797,17 +10819,25 @@ const buildUiSchema = (config) => {
|
|
|
10797
10819
|
if ((config == null ? void 0 : config.type) === "LeaderBoard") {
|
|
10798
10820
|
return elements;
|
|
10799
10821
|
} else if (config.type == "Table") {
|
|
10822
|
+
const sizeMap = {};
|
|
10823
|
+
if (config.sizeHolder) {
|
|
10824
|
+
config.sizeHolder.map((e, i) => {
|
|
10825
|
+
sizeMap[e.keyName] = e.value;
|
|
10826
|
+
});
|
|
10827
|
+
}
|
|
10800
10828
|
elements.elements = config.elements.map((e, elemInd) => {
|
|
10801
10829
|
if (e.type) {
|
|
10802
10830
|
return {
|
|
10803
10831
|
accessorKey: e.name,
|
|
10804
10832
|
header: e.label || e.name,
|
|
10833
|
+
size: sizeMap[e.name] || 180,
|
|
10805
10834
|
widget: buildUiSchema(e)
|
|
10806
10835
|
};
|
|
10807
10836
|
}
|
|
10808
10837
|
return {
|
|
10809
10838
|
accessorKey: e.name,
|
|
10810
|
-
header: e.label || e.name
|
|
10839
|
+
header: e.label || e.name,
|
|
10840
|
+
size: sizeMap[e.name] || 180
|
|
10811
10841
|
};
|
|
10812
10842
|
});
|
|
10813
10843
|
} else if (config.type == "Array") {
|