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.
- package/dist/impaktapps-ui-builder.es.js +0 -37
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +0 -19
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +0 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +1 -17
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildDownloadFileIcon.d.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFileIcon.ts +0 -22
|
@@ -6261,7 +6261,6 @@ const ComponentSchema = {
|
|
|
6261
6261
|
{ title: "Column Group", const: "ColumnGroup" },
|
|
6262
6262
|
{ title: "Thought of the day", const: "Thought" },
|
|
6263
6263
|
{ title: "File Upload Icon", const: "UploadFileIcon" },
|
|
6264
|
-
{ title: "File Download Icon", const: "DownloadFileIcon" },
|
|
6265
6264
|
{ title: "File Delete Icon", const: "DeleteFileIcon" }
|
|
6266
6265
|
]
|
|
6267
6266
|
},
|
|
@@ -8392,7 +8391,6 @@ const sectionLabels = {
|
|
|
8392
8391
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8393
8392
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8394
8393
|
UploadFileIcon: ["Core", "Events", "Style"],
|
|
8395
|
-
DownloadFileIcon: ["Core", "Events", "Style"],
|
|
8396
8394
|
DeleteFileIcon: ["Core", "Events", "Style"],
|
|
8397
8395
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8398
8396
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -11215,20 +11213,6 @@ const uploadFileIcon = {
|
|
|
11215
11213
|
"widget": "UploadFileIcon"
|
|
11216
11214
|
}
|
|
11217
11215
|
};
|
|
11218
|
-
const downloadFileIcon = {
|
|
11219
|
-
"type": "Control",
|
|
11220
|
-
"scope": "#/properties/downloadAttachment",
|
|
11221
|
-
"config": {
|
|
11222
|
-
"main": {
|
|
11223
|
-
"onDownload": "onFileDownload"
|
|
11224
|
-
},
|
|
11225
|
-
"style": {},
|
|
11226
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11227
|
-
},
|
|
11228
|
-
"options": {
|
|
11229
|
-
"widget": "DownloadFileIcon"
|
|
11230
|
-
}
|
|
11231
|
-
};
|
|
11232
11216
|
const buildUploadFile = (config2, componentScope2) => {
|
|
11233
11217
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
11234
11218
|
UploadFile.scope = componentScope2;
|
|
@@ -12269,24 +12253,6 @@ const buildUploadFileIcon = (config2, componentScope2) => {
|
|
|
12269
12253
|
UploadFileIcon.config.main.errorMessage = config2.errorMessage;
|
|
12270
12254
|
return UploadFileIcon;
|
|
12271
12255
|
};
|
|
12272
|
-
const buildDownloadFileIcon = (config2, componentScope2) => {
|
|
12273
|
-
const DownloadFile = _.cloneDeep(downloadFileIcon);
|
|
12274
|
-
DownloadFile.scope = componentScope2;
|
|
12275
|
-
DownloadFile.config.main.label = config2.label;
|
|
12276
|
-
if (config2.layout) {
|
|
12277
|
-
DownloadFile.config.layout = config2.layout;
|
|
12278
|
-
}
|
|
12279
|
-
if (config2.style) {
|
|
12280
|
-
DownloadFile.config.style = config2.style;
|
|
12281
|
-
}
|
|
12282
|
-
if (config2.layout) {
|
|
12283
|
-
DownloadFile.config.layout = createLayoutFormat(config2.layout);
|
|
12284
|
-
}
|
|
12285
|
-
if (config2.errorMessage) {
|
|
12286
|
-
DownloadFile.config.main.errorMessage = config2.errorMessage;
|
|
12287
|
-
}
|
|
12288
|
-
return DownloadFile;
|
|
12289
|
-
};
|
|
12290
12256
|
const deleteFileIcon = {
|
|
12291
12257
|
"type": "Control",
|
|
12292
12258
|
"scope": "#/properties/deleteFileIcon",
|
|
@@ -12576,9 +12542,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12576
12542
|
case "UploadFileIcon":
|
|
12577
12543
|
elements = buildUploadFileIcon(config2, componentScope2);
|
|
12578
12544
|
break;
|
|
12579
|
-
case "DownloadFileIcon":
|
|
12580
|
-
elements = buildDownloadFileIcon(config2, componentScope2);
|
|
12581
|
-
break;
|
|
12582
12545
|
case "DeleteFileIcon":
|
|
12583
12546
|
elements = buildDeleteFileIcon(config2, componentScope2);
|
|
12584
12547
|
break;
|