impaktapps-ui-builder 1.0.74 → 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 +3 -39
- 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 +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -2
- 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
|
},
|
|
@@ -6276,7 +6275,8 @@ const ComponentSchema = {
|
|
|
6276
6275
|
oneOf: [
|
|
6277
6276
|
{ title: "Date Column", const: "date" },
|
|
6278
6277
|
{ title: "DateTime Column", const: "dateTime" },
|
|
6279
|
-
{ title: "Amount Column", const: "amount" }
|
|
6278
|
+
{ title: "Amount Column", const: "amount" },
|
|
6279
|
+
{ title: "Center Column", const: "action" }
|
|
6280
6280
|
]
|
|
6281
6281
|
},
|
|
6282
6282
|
variant: {
|
|
@@ -8388,10 +8388,9 @@ const sectionLabels = {
|
|
|
8388
8388
|
HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8389
8389
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8390
8390
|
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8391
|
-
card: ["Core", "Properties", "Events", "Validation"],
|
|
8391
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8392
8392
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8393
8393
|
UploadFileIcon: ["Core", "Events", "Style"],
|
|
8394
|
-
DownloadFileIcon: ["Core", "Events", "Style"],
|
|
8395
8394
|
DeleteFileIcon: ["Core", "Events", "Style"],
|
|
8396
8395
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8397
8396
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -11214,20 +11213,6 @@ const uploadFileIcon = {
|
|
|
11214
11213
|
"widget": "UploadFileIcon"
|
|
11215
11214
|
}
|
|
11216
11215
|
};
|
|
11217
|
-
const downloadFileIcon = {
|
|
11218
|
-
"type": "Control",
|
|
11219
|
-
"scope": "#/properties/downloadAttachment",
|
|
11220
|
-
"config": {
|
|
11221
|
-
"main": {
|
|
11222
|
-
"onDownload": "onFileDownload"
|
|
11223
|
-
},
|
|
11224
|
-
"style": {},
|
|
11225
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11226
|
-
},
|
|
11227
|
-
"options": {
|
|
11228
|
-
"widget": "DownloadFileIcon"
|
|
11229
|
-
}
|
|
11230
|
-
};
|
|
11231
11216
|
const buildUploadFile = (config2, componentScope2) => {
|
|
11232
11217
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
11233
11218
|
UploadFile.scope = componentScope2;
|
|
@@ -12268,24 +12253,6 @@ const buildUploadFileIcon = (config2, componentScope2) => {
|
|
|
12268
12253
|
UploadFileIcon.config.main.errorMessage = config2.errorMessage;
|
|
12269
12254
|
return UploadFileIcon;
|
|
12270
12255
|
};
|
|
12271
|
-
const buildDownloadFileIcon = (config2, componentScope2) => {
|
|
12272
|
-
const DownloadFile = _.cloneDeep(downloadFileIcon);
|
|
12273
|
-
DownloadFile.scope = componentScope2;
|
|
12274
|
-
DownloadFile.config.main.label = config2.label;
|
|
12275
|
-
if (config2.layout) {
|
|
12276
|
-
DownloadFile.config.layout = config2.layout;
|
|
12277
|
-
}
|
|
12278
|
-
if (config2.style) {
|
|
12279
|
-
DownloadFile.config.style = config2.style;
|
|
12280
|
-
}
|
|
12281
|
-
if (config2.layout) {
|
|
12282
|
-
DownloadFile.config.layout = createLayoutFormat(config2.layout);
|
|
12283
|
-
}
|
|
12284
|
-
if (config2.errorMessage) {
|
|
12285
|
-
DownloadFile.config.main.errorMessage = config2.errorMessage;
|
|
12286
|
-
}
|
|
12287
|
-
return DownloadFile;
|
|
12288
|
-
};
|
|
12289
12256
|
const deleteFileIcon = {
|
|
12290
12257
|
"type": "Control",
|
|
12291
12258
|
"scope": "#/properties/deleteFileIcon",
|
|
@@ -12575,9 +12542,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12575
12542
|
case "UploadFileIcon":
|
|
12576
12543
|
elements = buildUploadFileIcon(config2, componentScope2);
|
|
12577
12544
|
break;
|
|
12578
|
-
case "DownloadFileIcon":
|
|
12579
|
-
elements = buildDownloadFileIcon(config2, componentScope2);
|
|
12580
|
-
break;
|
|
12581
12545
|
case "DeleteFileIcon":
|
|
12582
12546
|
elements = buildDeleteFileIcon(config2, componentScope2);
|
|
12583
12547
|
break;
|