impaktapps-ui-builder 1.0.75 → 1.0.76

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.
@@ -64,22 +64,3 @@ export declare const uploadFileIcon: {
64
64
  widget: string;
65
65
  };
66
66
  };
67
- export declare const downloadFileIcon: {
68
- type: string;
69
- scope: string;
70
- config: {
71
- main: {
72
- onDownload: string;
73
- };
74
- style: {};
75
- layout: {
76
- xs: number;
77
- sm: number;
78
- md: number;
79
- lg: number;
80
- };
81
- };
82
- options: {
83
- widget: string;
84
- };
85
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -43,7 +43,6 @@ import { buildThoughtOfTheDay } from "./buildThoughtOfTheDay";
43
43
  import { buildHorizontalLayout } from "./buildHorizontalLayout";
44
44
  import { buildImage } from "./buildImage";
45
45
  import { buildUploadFileIcon } from "./buildUploadFileIcon";
46
- import { buildDownloadFileIcon } from "./buildDownloadFileIcon"
47
46
  import { buildDeleteFileIcon } from "./buildDeleteFileIcon"
48
47
  export let schema = {
49
48
  type: "object",
@@ -321,9 +320,6 @@ const buildUiSchema = (config: any, store?: any) => {
321
320
  case "UploadFileIcon":
322
321
  elements = buildUploadFileIcon(config, componentScope);
323
322
  break;
324
- case "DownloadFileIcon":
325
- elements = buildDownloadFileIcon(config, componentScope);
326
- break;
327
323
  case "DeleteFileIcon":
328
324
  elements = buildDeleteFileIcon(config, componentScope);
329
325
  break;
@@ -52,20 +52,4 @@ export const uploadFileIcon = {
52
52
  "options": {
53
53
  "widget": "UploadFileIcon"
54
54
  }
55
- };
56
-
57
-
58
- export const downloadFileIcon = {
59
- "type": "Control",
60
- "scope": "#/properties/downloadAttachment",
61
- "config": {
62
- "main": {
63
- "onDownload":"onFileDownload"
64
- },
65
- "style": {},
66
- layout: { xs: 6, sm: 6, md: 4, lg: 3 }
67
- },
68
- "options": {
69
- "widget": "DownloadFileIcon"
70
- }
71
- };
55
+ };
@@ -45,7 +45,6 @@ export const ComponentSchema: any = {
45
45
  { title: "Column Group", const: "ColumnGroup" },
46
46
  { title: "Thought of the day", const: "Thought" },
47
47
  { title: "File Upload Icon", const: "UploadFileIcon" },
48
- { title: "File Download Icon", const: "DownloadFileIcon" },
49
48
  { title: "File Delete Icon", const: "DeleteFileIcon" }
50
49
 
51
50
  ]
@@ -21,7 +21,6 @@ const sectionLabels = {
21
21
  card: ["Core", "Properties", "Events", "Style", "Validation"],
22
22
  UploadFile: ["Core", "Events", "Style", "Validation"],
23
23
  UploadFileIcon: ["Core", "Events", "Style"],
24
- DownloadFileIcon: ["Core", "Events", "Style"],
25
24
  DeleteFileIcon: ["Core", "Events", "Style"],
26
25
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
27
26
  DownloadFile: ["Core", "Events", "Style", "Validation"],
@@ -1 +0,0 @@
1
- export declare const buildDownloadFileIcon: (config: any, componentScope: any) => any;
@@ -1,22 +0,0 @@
1
- import _ from "lodash";
2
- import { downloadFileIcon } from "./uischema/file";
3
- import { createLayoutFormat } from "./buildConfig";
4
-
5
- export const buildDownloadFileIcon = (config,componentScope) => {
6
- const DownloadFile: any = _.cloneDeep(downloadFileIcon);
7
- DownloadFile.scope = componentScope;
8
- DownloadFile.config.main.label = config.label;
9
- if (config.layout) {
10
- DownloadFile.config.layout = config.layout;
11
- }
12
- if (config.style) {
13
- DownloadFile.config.style = config.style;
14
- }
15
- if(config.layout){
16
- DownloadFile.config.layout = createLayoutFormat(config.layout)
17
- }
18
- if (config.errorMessage) {
19
- DownloadFile.config.main.errorMessage = config.errorMessage;
20
- }
21
- return DownloadFile;
22
- }