impaktapps-ui-builder 1.0.95 → 1.0.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.95",
3
+ "version": "1.0.96",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -2,47 +2,46 @@ import _ from "lodash";
2
2
  import { createLayoutFormat } from "./buildConfig";
3
3
 
4
4
  const FileInput = {
5
- type: "Control",
6
- scope: "#/properties/docAggrementCopy",
7
- options: {
8
- widget: "FileInputField",
9
- },
10
- config: {
11
- layout: { xs: 12, sm: 6, md: 4, lg: 3 },
12
- main: {
13
- required: false,
14
- onUpload: "onFileUpload",
5
+ type: "Control",
6
+ scope: "#/properties/docAggrementCopy",
7
+ options: {
8
+ widget: "FileInputField",
9
+ },
10
+ config: {
11
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
12
+ main: {
13
+ required: false,
14
+ onUpload: "onFileUpload",
15
15
  onDownload:"onFileDownload",
16
16
  label:"Aggrement Copy"
17
- // iconStyleDefault:true,
18
- },
19
- style: {
20
- backgroundColor: "none",
17
+ // iconStyleDefault:true,
18
+ },
19
+ style: {
20
+ backgroundColor: "none",
21
+ },
21
22
  },
22
- },
23
- };
23
+ };
24
24
  export const buildFileInput = (config,componentScope) => {
25
- const box: any = _.cloneDeep(FileInput);
26
- box.scope = componentScope;
27
- box.config.main.label = config.label
25
+ const box: any = _.cloneDeep(FileInput);
26
+ box.scope = componentScope;
27
+ box.config.main.label = config.label
28
28
  if(config.layout){
29
- box.config.layout = createLayoutFormat(config.layout)
30
- }
31
- if (config.style) {
32
- box.config.style = JSON.parse(config.style)
33
- }
34
- if (config.variant) {
35
- box.config.main.variant = config.variant
36
- }
37
- if (config.disableUpload) {
29
+ box.config.layout = createLayoutFormat(config.layout)
30
+ }
31
+ if (config.style) {
32
+ box.config.style = JSON.parse(config.style)
33
+ }
34
+ if (config.variant) {
35
+ box.config.main.variant = config.variant
36
+ }
37
+ if (config.disableUpload) {
38
38
  box.config.main.disableUpload = config.disableUpload === "YES" ? true : false;
39
- }
40
- if (config.disableDownload) {
41
- box.config.main.disableDownload = config.disableDownload === "YES" ? true : false;
42
- }
43
- if (config.disableDelete) {
44
- box.config.main.disableDelete = config.disableDelete === "YES" ? true : false;
45
- }
46
-
47
- return box;
39
+ }
40
+ if (config.disableDownload) {
41
+ box.config.main.disableDownload = config.disableDownload === "YES" ? true : false;
42
+ }
43
+ if (config.disableDelete) {
44
+ box.config.main.disableDelete = config.disableDelete === "YES" ? true : false;
45
+ }
46
+ return box;
48
47
  }