impaktapps-ui-builder 1.0.72-alpha.20 → 1.0.72-fileUplaod.2
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 +37 -3
- 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/buildUploadFileIcon.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +21 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildUploadFileIcon.ts +21 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +24 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +3 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
|
@@ -6259,7 +6259,8 @@ 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: "Upload File Icon", const: "UploadFileIcon" }
|
|
6263
6264
|
]
|
|
6264
6265
|
},
|
|
6265
6266
|
elementType: {
|
|
@@ -8385,8 +8386,9 @@ const sectionLabels = {
|
|
|
8385
8386
|
HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8386
8387
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8387
8388
|
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8388
|
-
card: ["Core", "Properties", "Events", "
|
|
8389
|
+
card: ["Core", "Properties", "Events", "Validation"],
|
|
8389
8390
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8391
|
+
UploadFileIcon: ["Core", "Events", "Style", "Validation"],
|
|
8390
8392
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8391
8393
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8392
8394
|
Box: ["Core", "Events", "Style", "Validation"],
|
|
@@ -10257,7 +10259,7 @@ var service = (funcParams) => {
|
|
|
10257
10259
|
setPage: async function() {
|
|
10258
10260
|
var _a, _b, _c;
|
|
10259
10261
|
funcParams.store.setAdditionalErrors([]);
|
|
10260
|
-
funcParams.store.setFormdata((
|
|
10262
|
+
funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
|
|
10261
10263
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
10262
10264
|
funcParams.store.newData = {};
|
|
10263
10265
|
eventGroups = {};
|
|
@@ -11193,6 +11195,22 @@ const downloadFile = {
|
|
|
11193
11195
|
"widget": "DownloadFile"
|
|
11194
11196
|
}
|
|
11195
11197
|
};
|
|
11198
|
+
const uploadFileIcon = {
|
|
11199
|
+
"type": "Control",
|
|
11200
|
+
"scope": "#/properties/uploadFileIcon",
|
|
11201
|
+
"config": {
|
|
11202
|
+
"main": {
|
|
11203
|
+
"label": "AttachmentFile",
|
|
11204
|
+
"onUpload": "onFileUpload",
|
|
11205
|
+
"required": true,
|
|
11206
|
+
"errorMessage": "Attachment File is not uploaded"
|
|
11207
|
+
},
|
|
11208
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11209
|
+
},
|
|
11210
|
+
"options": {
|
|
11211
|
+
"widget": "UploadFileIcon"
|
|
11212
|
+
}
|
|
11213
|
+
};
|
|
11196
11214
|
const buildUploadFile = (config2, componentScope2) => {
|
|
11197
11215
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
11198
11216
|
UploadFile.scope = componentScope2;
|
|
@@ -12220,6 +12238,19 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12220
12238
|
}
|
|
12221
12239
|
return image;
|
|
12222
12240
|
};
|
|
12241
|
+
const buildUploadFileIcon = (config2, componentScope2) => {
|
|
12242
|
+
const UploadFileIcon = _.cloneDeep(uploadFileIcon);
|
|
12243
|
+
UploadFileIcon.scope = componentScope2;
|
|
12244
|
+
UploadFileIcon.config.main.label = config2.label;
|
|
12245
|
+
if (config2.layout) {
|
|
12246
|
+
UploadFileIcon.config.layout = createLayoutFormat(config2.layout);
|
|
12247
|
+
}
|
|
12248
|
+
if (config2.required) {
|
|
12249
|
+
UploadFileIcon.config.main.required = true;
|
|
12250
|
+
}
|
|
12251
|
+
UploadFileIcon.config.main.errorMessage = config2.errorMessage;
|
|
12252
|
+
return UploadFileIcon;
|
|
12253
|
+
};
|
|
12223
12254
|
let schema = {
|
|
12224
12255
|
type: "object",
|
|
12225
12256
|
properties: {},
|
|
@@ -12480,6 +12511,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12480
12511
|
case "Image":
|
|
12481
12512
|
elements = buildImage(config2, componentScope2);
|
|
12482
12513
|
break;
|
|
12514
|
+
case "UploadFileIcon":
|
|
12515
|
+
elements = buildUploadFileIcon(config2, componentScope2);
|
|
12516
|
+
break;
|
|
12483
12517
|
default:
|
|
12484
12518
|
schema = {
|
|
12485
12519
|
type: "object",
|