impaktapps-ui-builder 1.0.85 → 1.0.87-test.0
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 +10 -9
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +6 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +3 -3
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -0
package/package.json
CHANGED
|
@@ -34,14 +34,14 @@ const FileInput = {
|
|
|
34
34
|
if (config.variant) {
|
|
35
35
|
box.config.main.variant = config.variant
|
|
36
36
|
}
|
|
37
|
-
if(config.
|
|
38
|
-
box.config.main.
|
|
37
|
+
if(config.hideUpload){
|
|
38
|
+
box.config.main.hideUpload = config.hideUpload === "YES" ? true : false;
|
|
39
39
|
}
|
|
40
|
-
if(config.
|
|
41
|
-
box.config.main.
|
|
40
|
+
if(config.hideDownload){
|
|
41
|
+
box.config.main.hideDownload = config.hideDownload === "YES" ? true : false;
|
|
42
42
|
}
|
|
43
|
-
if(config.
|
|
44
|
-
box.config.main.
|
|
43
|
+
if(config.hideDelete){
|
|
44
|
+
box.config.main.hideDelete = config.hideDelete === "YES" ? true : false;
|
|
45
45
|
}
|
|
46
46
|
return box;
|
|
47
47
|
}
|
|
@@ -555,9 +555,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
555
555
|
case "FileInput":
|
|
556
556
|
uiSchema.elements = [
|
|
557
557
|
getRadioInputField("variant", "Variant", ["Input", "Button"]),
|
|
558
|
-
getRadioInputField("
|
|
559
|
-
getRadioInputField("
|
|
560
|
-
getRadioInputField("
|
|
558
|
+
getRadioInputField("hideUpload", "Hide Upload", ["YES", "NO"]),
|
|
559
|
+
getRadioInputField("hideDelete", "Hide Delete", ["YES", "NO"]),
|
|
560
|
+
getRadioInputField("hideDownload", "Hide Download", ["YES", "NO"])
|
|
561
561
|
]
|
|
562
562
|
break;
|
|
563
563
|
}
|
|
@@ -46,6 +46,7 @@ export const EventSchema = {
|
|
|
46
46
|
{ title: "Start", const: "onStart" },
|
|
47
47
|
{ title: "Cell Render", const: "onCellRenderer" },
|
|
48
48
|
{ title: "Upload", const: "onUpload" },
|
|
49
|
+
{ title: "FileDelete", const: "onFileDelete" },
|
|
49
50
|
{ title: "Download", const: "onDownload" },
|
|
50
51
|
{ title: "Back", const: "onBack" },
|
|
51
52
|
{ title: "Next", const: "onNext" },
|