impaktapps-ui-builder 1.0.72 → 1.0.74-centerElement.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 +104 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildDeleteFileIcon.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildDownloadFileIcon.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildUploadFileIcon.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/DeleteFileIcon.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +39 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDeleteFileIcon.ts +17 -0
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFileIcon.ts +22 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +0 -9
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +12 -0
- package/src/impaktapps-ui-builder/builder/build/buildUploadFileIcon.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/DeleteFileIcon.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +34 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +6 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +5 -0
|
@@ -6259,7 +6259,10 @@ const ComponentSchema = {
|
|
|
6259
6259
|
{ title: "Upload", const: "UploadFile" },
|
|
6260
6260
|
{ title: "Tree ", const: "TreeMap" },
|
|
6261
6261
|
{ title: "Column Group", const: "ColumnGroup" },
|
|
6262
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
6262
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6263
|
+
{ title: "File Upload Icon", const: "UploadFileIcon" },
|
|
6264
|
+
{ title: "File Download Icon", const: "DownloadFileIcon" },
|
|
6265
|
+
{ title: "File Delete Icon", const: "DeleteFileIcon" }
|
|
6263
6266
|
]
|
|
6264
6267
|
},
|
|
6265
6268
|
elementType: {
|
|
@@ -6273,7 +6276,8 @@ const ComponentSchema = {
|
|
|
6273
6276
|
oneOf: [
|
|
6274
6277
|
{ title: "Date Column", const: "date" },
|
|
6275
6278
|
{ title: "DateTime Column", const: "dateTime" },
|
|
6276
|
-
{ title: "Amount Column", const: "amount" }
|
|
6279
|
+
{ title: "Amount Column", const: "amount" },
|
|
6280
|
+
{ title: "Center Column", const: "action" }
|
|
6277
6281
|
]
|
|
6278
6282
|
},
|
|
6279
6283
|
variant: {
|
|
@@ -8387,6 +8391,9 @@ const sectionLabels = {
|
|
|
8387
8391
|
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8388
8392
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8389
8393
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8394
|
+
UploadFileIcon: ["Core", "Events", "Style"],
|
|
8395
|
+
DownloadFileIcon: ["Core", "Events", "Style"],
|
|
8396
|
+
DeleteFileIcon: ["Core", "Events", "Style"],
|
|
8390
8397
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8391
8398
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8392
8399
|
Box: ["Core", "Events", "Style", "Validation"],
|
|
@@ -11193,6 +11200,35 @@ const downloadFile = {
|
|
|
11193
11200
|
"widget": "DownloadFile"
|
|
11194
11201
|
}
|
|
11195
11202
|
};
|
|
11203
|
+
const uploadFileIcon = {
|
|
11204
|
+
"type": "Control",
|
|
11205
|
+
"scope": "#/properties/uploadFileIcon",
|
|
11206
|
+
"config": {
|
|
11207
|
+
"main": {
|
|
11208
|
+
"onUpload": "onFileUpload",
|
|
11209
|
+
"errorMessage": "Attachment File is not uploaded"
|
|
11210
|
+
},
|
|
11211
|
+
"style": {},
|
|
11212
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11213
|
+
},
|
|
11214
|
+
"options": {
|
|
11215
|
+
"widget": "UploadFileIcon"
|
|
11216
|
+
}
|
|
11217
|
+
};
|
|
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
|
+
};
|
|
11196
11232
|
const buildUploadFile = (config2, componentScope2) => {
|
|
11197
11233
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
11198
11234
|
UploadFile.scope = componentScope2;
|
|
@@ -12220,6 +12256,63 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12220
12256
|
}
|
|
12221
12257
|
return image;
|
|
12222
12258
|
};
|
|
12259
|
+
const buildUploadFileIcon = (config2, componentScope2) => {
|
|
12260
|
+
const UploadFileIcon = _.cloneDeep(uploadFileIcon);
|
|
12261
|
+
UploadFileIcon.scope = componentScope2;
|
|
12262
|
+
UploadFileIcon.config.main.label = config2.label;
|
|
12263
|
+
if (config2.layout) {
|
|
12264
|
+
UploadFileIcon.config.layout = createLayoutFormat(config2.layout);
|
|
12265
|
+
}
|
|
12266
|
+
if (config2.style) {
|
|
12267
|
+
UploadFileIcon.config.style = JSON.parse(config2.style);
|
|
12268
|
+
}
|
|
12269
|
+
UploadFileIcon.config.main.errorMessage = config2.errorMessage;
|
|
12270
|
+
return UploadFileIcon;
|
|
12271
|
+
};
|
|
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
|
+
const deleteFileIcon = {
|
|
12291
|
+
"type": "Control",
|
|
12292
|
+
"scope": "#/properties/deleteFileIcon",
|
|
12293
|
+
"config": {
|
|
12294
|
+
"main": {
|
|
12295
|
+
"onFileDelete": "onFileDelete"
|
|
12296
|
+
},
|
|
12297
|
+
"style": {},
|
|
12298
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
12299
|
+
},
|
|
12300
|
+
"options": {
|
|
12301
|
+
"widget": "DeleteFileIcon"
|
|
12302
|
+
}
|
|
12303
|
+
};
|
|
12304
|
+
const buildDeleteFileIcon = (config2, componentScope2) => {
|
|
12305
|
+
const DeleteFileIcon = _.cloneDeep(deleteFileIcon);
|
|
12306
|
+
DeleteFileIcon.scope = componentScope2;
|
|
12307
|
+
DeleteFileIcon.config.main.label = config2.label;
|
|
12308
|
+
if (config2.layout) {
|
|
12309
|
+
DeleteFileIcon.config.layout = createLayoutFormat(config2.layout);
|
|
12310
|
+
}
|
|
12311
|
+
if (config2.style) {
|
|
12312
|
+
DeleteFileIcon.config.style = JSON.parse(config2.style);
|
|
12313
|
+
}
|
|
12314
|
+
return DeleteFileIcon;
|
|
12315
|
+
};
|
|
12223
12316
|
let schema = {
|
|
12224
12317
|
type: "object",
|
|
12225
12318
|
properties: {},
|
|
@@ -12480,6 +12573,15 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12480
12573
|
case "Image":
|
|
12481
12574
|
elements = buildImage(config2, componentScope2);
|
|
12482
12575
|
break;
|
|
12576
|
+
case "UploadFileIcon":
|
|
12577
|
+
elements = buildUploadFileIcon(config2, componentScope2);
|
|
12578
|
+
break;
|
|
12579
|
+
case "DownloadFileIcon":
|
|
12580
|
+
elements = buildDownloadFileIcon(config2, componentScope2);
|
|
12581
|
+
break;
|
|
12582
|
+
case "DeleteFileIcon":
|
|
12583
|
+
elements = buildDeleteFileIcon(config2, componentScope2);
|
|
12584
|
+
break;
|
|
12483
12585
|
default:
|
|
12484
12586
|
schema = {
|
|
12485
12587
|
type: "object",
|