impaktapps-ui-builder 0.0.365 → 0.0.368
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 +24 -3
- 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/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +42 -0
- package/src/impaktapps-ui-builder/builder/build/buildStepper.ts +4 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +11 -4
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -0
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +11 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +3 -2
|
@@ -5871,6 +5871,7 @@ const ComponentSchema = {
|
|
|
5871
5871
|
{ title: "Card", const: "card" },
|
|
5872
5872
|
{ title: "CheckBox", const: "CheckBox" },
|
|
5873
5873
|
{ title: "Container", const: "WrapperSection" },
|
|
5874
|
+
{ title: "DataGrid", const: "DataGrid" },
|
|
5874
5875
|
{ title: "Date", const: "Date" },
|
|
5875
5876
|
{ title: "Download File", const: "DownloadFile" },
|
|
5876
5877
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
@@ -6814,13 +6815,19 @@ const GraphSection = {
|
|
|
6814
6815
|
const buildPropertiesSection = function(type) {
|
|
6815
6816
|
let uiSchema = _.cloneDeep(GraphSection);
|
|
6816
6817
|
switch (type) {
|
|
6818
|
+
case "DataGrid":
|
|
6819
|
+
uiSchema.elements = [
|
|
6820
|
+
getRadioInputField("useWrapper", "use Item Wrapper", ["YES", "NO"]),
|
|
6821
|
+
getInputField("elevation", "Item Wrapper Elevation")
|
|
6822
|
+
];
|
|
6823
|
+
break;
|
|
6817
6824
|
case "Stepper":
|
|
6818
6825
|
uiSchema.elements = [
|
|
6819
6826
|
getRadioInputField("resetButton", "Reset Button", ["YES", "NO"]),
|
|
6827
|
+
getRadioInputField("defaultButtonAvailable", "Use Default Buttons ", ["YES", "NO"]),
|
|
6820
6828
|
getInputField("resetText", "Reset Text"),
|
|
6821
6829
|
getInputField("completeText", "Complete Text"),
|
|
6822
6830
|
getSelectField("orientation", "Orientation Type"),
|
|
6823
|
-
EmptyBox,
|
|
6824
6831
|
getArrayControl("sectionLabels", "label")
|
|
6825
6832
|
];
|
|
6826
6833
|
break;
|
|
@@ -7387,7 +7394,8 @@ const sectionLabels = {
|
|
|
7387
7394
|
Text: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7388
7395
|
TextArea: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7389
7396
|
PopUp: ["Core", "Components", "Properties", "style"],
|
|
7390
|
-
Stepper: ["Core", "Components", "Properties", "Event", "style"]
|
|
7397
|
+
Stepper: ["Core", "Components", "Properties", "Event", "style"],
|
|
7398
|
+
DataGrid: ["Core", "Components", "Properties", "Event", "style"]
|
|
7391
7399
|
};
|
|
7392
7400
|
const refreshPage = (type, store2) => {
|
|
7393
7401
|
var _a;
|
|
@@ -8233,6 +8241,15 @@ const downloadFile$1 = (obj) => {
|
|
|
8233
8241
|
URL.revokeObjectURL(url);
|
|
8234
8242
|
document.body.removeChild(link);
|
|
8235
8243
|
};
|
|
8244
|
+
const downloadBlobFile = (response2) => {
|
|
8245
|
+
const url = window.URL.createObjectURL(new Blob([response2.data]));
|
|
8246
|
+
const link = document.createElement("a");
|
|
8247
|
+
link.href = url;
|
|
8248
|
+
link.setAttribute("download", `${response2.headers.data}`);
|
|
8249
|
+
document.body.appendChild(link);
|
|
8250
|
+
link.click();
|
|
8251
|
+
link.parentNode.removeChild(link);
|
|
8252
|
+
};
|
|
8236
8253
|
const executeEvents = async (params2) => {
|
|
8237
8254
|
var _a, _b, _c;
|
|
8238
8255
|
let nextEvent = [];
|
|
@@ -8647,7 +8664,8 @@ var service = (funcParams) => {
|
|
|
8647
8664
|
}
|
|
8648
8665
|
}
|
|
8649
8666
|
},
|
|
8650
|
-
downloadFile: downloadFile$1
|
|
8667
|
+
downloadFile: downloadFile$1,
|
|
8668
|
+
downloadBlobFile
|
|
8651
8669
|
};
|
|
8652
8670
|
};
|
|
8653
8671
|
var leaderBoard = {
|
|
@@ -10378,6 +10396,9 @@ const buildStepper = (config, componentScope) => {
|
|
|
10378
10396
|
const stepper = _.cloneDeep(Stepper);
|
|
10379
10397
|
stepper.scope = componentScope;
|
|
10380
10398
|
stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
|
|
10399
|
+
if (config.defaultButtonAvailable) {
|
|
10400
|
+
stepper.config.main.defaultButtonAvailable = config.defaultButtonAvailable === "YES" ? true : false;
|
|
10401
|
+
}
|
|
10381
10402
|
stepper.config.main.resetText = config.resetText || "ResetData";
|
|
10382
10403
|
stepper.config.main.completeText = config.completeText || "Complete Text";
|
|
10383
10404
|
stepper.config.main.orientation = config.orientation || "horizontal";
|