impaktapps-ui-builder 1.0.72-flickering.4 → 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 +77 -8
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- 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/uischema/DeleteFileIcon.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +20 -2
- 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/buildUiSchema.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildUploadFileIcon.ts +2 -5
- package/src/impaktapps-ui-builder/builder/build/uischema/DeleteFileIcon.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +17 -7
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +4 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +6 -2
|
@@ -6260,7 +6260,9 @@ const ComponentSchema = {
|
|
|
6260
6260
|
{ title: "Tree ", const: "TreeMap" },
|
|
6261
6261
|
{ title: "Column Group", const: "ColumnGroup" },
|
|
6262
6262
|
{ title: "Thought of the day", const: "Thought" },
|
|
6263
|
-
{ title: "
|
|
6263
|
+
{ title: "File Upload Icon", const: "UploadFileIcon" },
|
|
6264
|
+
{ title: "File Download Icon", const: "DownloadFileIcon" },
|
|
6265
|
+
{ title: "File Delete Icon", const: "DeleteFileIcon" }
|
|
6264
6266
|
]
|
|
6265
6267
|
},
|
|
6266
6268
|
elementType: {
|
|
@@ -6274,7 +6276,8 @@ const ComponentSchema = {
|
|
|
6274
6276
|
oneOf: [
|
|
6275
6277
|
{ title: "Date Column", const: "date" },
|
|
6276
6278
|
{ title: "DateTime Column", const: "dateTime" },
|
|
6277
|
-
{ title: "Amount Column", const: "amount" }
|
|
6279
|
+
{ title: "Amount Column", const: "amount" },
|
|
6280
|
+
{ title: "Center Column", const: "action" }
|
|
6278
6281
|
]
|
|
6279
6282
|
},
|
|
6280
6283
|
variant: {
|
|
@@ -8386,9 +8389,11 @@ const sectionLabels = {
|
|
|
8386
8389
|
HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8387
8390
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8388
8391
|
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8389
|
-
card: ["Core", "Properties", "Events", "Validation"],
|
|
8392
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8390
8393
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8391
|
-
UploadFileIcon: ["Core", "Events", "Style"
|
|
8394
|
+
UploadFileIcon: ["Core", "Events", "Style"],
|
|
8395
|
+
DownloadFileIcon: ["Core", "Events", "Style"],
|
|
8396
|
+
DeleteFileIcon: ["Core", "Events", "Style"],
|
|
8392
8397
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8393
8398
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8394
8399
|
Box: ["Core", "Events", "Style", "Validation"],
|
|
@@ -11200,17 +11205,30 @@ const uploadFileIcon = {
|
|
|
11200
11205
|
"scope": "#/properties/uploadFileIcon",
|
|
11201
11206
|
"config": {
|
|
11202
11207
|
"main": {
|
|
11203
|
-
"label": "AttachmentFile",
|
|
11204
11208
|
"onUpload": "onFileUpload",
|
|
11205
|
-
"required": true,
|
|
11206
11209
|
"errorMessage": "Attachment File is not uploaded"
|
|
11207
11210
|
},
|
|
11211
|
+
"style": {},
|
|
11208
11212
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11209
11213
|
},
|
|
11210
11214
|
"options": {
|
|
11211
11215
|
"widget": "UploadFileIcon"
|
|
11212
11216
|
}
|
|
11213
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
|
+
};
|
|
11214
11232
|
const buildUploadFile = (config2, componentScope2) => {
|
|
11215
11233
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
11216
11234
|
UploadFile.scope = componentScope2;
|
|
@@ -12245,12 +12263,56 @@ const buildUploadFileIcon = (config2, componentScope2) => {
|
|
|
12245
12263
|
if (config2.layout) {
|
|
12246
12264
|
UploadFileIcon.config.layout = createLayoutFormat(config2.layout);
|
|
12247
12265
|
}
|
|
12248
|
-
if (config2.
|
|
12249
|
-
UploadFileIcon.config.
|
|
12266
|
+
if (config2.style) {
|
|
12267
|
+
UploadFileIcon.config.style = JSON.parse(config2.style);
|
|
12250
12268
|
}
|
|
12251
12269
|
UploadFileIcon.config.main.errorMessage = config2.errorMessage;
|
|
12252
12270
|
return UploadFileIcon;
|
|
12253
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
|
+
};
|
|
12254
12316
|
let schema = {
|
|
12255
12317
|
type: "object",
|
|
12256
12318
|
properties: {},
|
|
@@ -12513,6 +12575,13 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12513
12575
|
break;
|
|
12514
12576
|
case "UploadFileIcon":
|
|
12515
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;
|
|
12516
12585
|
default:
|
|
12517
12586
|
schema = {
|
|
12518
12587
|
type: "object",
|