impaktapps-ui-builder 1.0.72-flickering.1 → 1.0.72-flickering.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 +40 -1
- 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/buildUploadFileIcon.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +24 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +3 -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 +1 -0
|
@@ -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: {
|
|
@@ -8387,6 +8388,7 @@ const sectionLabels = {
|
|
|
8387
8388
|
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8388
8389
|
card: ["Core", "Properties", "Events", "Style", "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"],
|
|
@@ -11198,6 +11200,25 @@ const downloadFile = {
|
|
|
11198
11200
|
"widget": "DownloadFile"
|
|
11199
11201
|
}
|
|
11200
11202
|
};
|
|
11203
|
+
const uploadFileIcon = {
|
|
11204
|
+
"type": "Control",
|
|
11205
|
+
"scope": "#/properties/uploadFileIcon",
|
|
11206
|
+
"config": {
|
|
11207
|
+
"main": {
|
|
11208
|
+
"label": "AttachmentFile",
|
|
11209
|
+
"onUpload": "onFileUpload",
|
|
11210
|
+
"required": true,
|
|
11211
|
+
"errorMessage": "Attachment File is not uploaded"
|
|
11212
|
+
},
|
|
11213
|
+
"style": {
|
|
11214
|
+
"backgroundColor": "none"
|
|
11215
|
+
},
|
|
11216
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11217
|
+
},
|
|
11218
|
+
"options": {
|
|
11219
|
+
"widget": "UploadFileIcon"
|
|
11220
|
+
}
|
|
11221
|
+
};
|
|
11201
11222
|
const buildUploadFile = (config2, componentScope2) => {
|
|
11202
11223
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
11203
11224
|
UploadFile.scope = componentScope2;
|
|
@@ -12225,6 +12246,22 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12225
12246
|
}
|
|
12226
12247
|
return image;
|
|
12227
12248
|
};
|
|
12249
|
+
const buildUploadFileIcon = (config2, componentScope2) => {
|
|
12250
|
+
const UploadFileIcon = _.cloneDeep(uploadFileIcon);
|
|
12251
|
+
UploadFileIcon.scope = componentScope2;
|
|
12252
|
+
UploadFileIcon.config.main.label = config2.label;
|
|
12253
|
+
if (config2.layout) {
|
|
12254
|
+
UploadFileIcon.config.layout = createLayoutFormat(config2.layout);
|
|
12255
|
+
}
|
|
12256
|
+
if (config2.style) {
|
|
12257
|
+
UploadFileIcon.config.style = config2.style;
|
|
12258
|
+
}
|
|
12259
|
+
if (config2.required) {
|
|
12260
|
+
UploadFileIcon.config.main.required = true;
|
|
12261
|
+
}
|
|
12262
|
+
UploadFileIcon.config.main.errorMessage = config2.errorMessage;
|
|
12263
|
+
return UploadFileIcon;
|
|
12264
|
+
};
|
|
12228
12265
|
let schema = {
|
|
12229
12266
|
type: "object",
|
|
12230
12267
|
properties: {},
|
|
@@ -12485,6 +12522,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12485
12522
|
case "Image":
|
|
12486
12523
|
elements = buildImage(config2, componentScope2);
|
|
12487
12524
|
break;
|
|
12525
|
+
case "UploadFileIcon":
|
|
12526
|
+
elements = buildUploadFileIcon(config2, componentScope2);
|
|
12488
12527
|
default:
|
|
12489
12528
|
schema = {
|
|
12490
12529
|
type: "object",
|