impaktapps-ui-builder 1.0.75 → 1.0.77
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 +13 -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/box.d.ts +3 -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/buildLabel.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +0 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +3 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +1 -17
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -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
|
},
|
|
@@ -7798,6 +7797,12 @@ const buildPropertiesSection = function(type) {
|
|
|
7798
7797
|
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7799
7798
|
];
|
|
7800
7799
|
break;
|
|
7800
|
+
case "Box":
|
|
7801
|
+
uiSchema.elements = [
|
|
7802
|
+
getSelectField("iconName", "Icon Name"),
|
|
7803
|
+
emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
|
|
7804
|
+
];
|
|
7805
|
+
break;
|
|
7801
7806
|
case "Graph":
|
|
7802
7807
|
uiSchema.elements = [
|
|
7803
7808
|
getInputField("height", "Height"),
|
|
@@ -8392,11 +8397,10 @@ const sectionLabels = {
|
|
|
8392
8397
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8393
8398
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8394
8399
|
UploadFileIcon: ["Core", "Events", "Style"],
|
|
8395
|
-
DownloadFileIcon: ["Core", "Events", "Style"],
|
|
8396
8400
|
DeleteFileIcon: ["Core", "Events", "Style"],
|
|
8397
8401
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8398
8402
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8399
|
-
Box: ["Core", "Events", "Style", "Validation"],
|
|
8403
|
+
Box: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8400
8404
|
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8401
8405
|
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8402
8406
|
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -11148,7 +11152,9 @@ const Box = {
|
|
|
11148
11152
|
},
|
|
11149
11153
|
config: {
|
|
11150
11154
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11151
|
-
main: {
|
|
11155
|
+
main: {
|
|
11156
|
+
iconName: ""
|
|
11157
|
+
},
|
|
11152
11158
|
style: {}
|
|
11153
11159
|
}
|
|
11154
11160
|
};
|
|
@@ -11159,6 +11165,9 @@ const buildLabel = (config2, componentScope2) => {
|
|
|
11159
11165
|
if (config2.layout) {
|
|
11160
11166
|
box.config.layout = createLayoutFormat(config2.layout);
|
|
11161
11167
|
}
|
|
11168
|
+
if (config2.iconName) {
|
|
11169
|
+
box.config.main.iconName = config2.iconName;
|
|
11170
|
+
}
|
|
11162
11171
|
if (config2.style) {
|
|
11163
11172
|
box.config.style = JSON.parse(config2.style);
|
|
11164
11173
|
}
|
|
@@ -11215,20 +11224,6 @@ const uploadFileIcon = {
|
|
|
11215
11224
|
"widget": "UploadFileIcon"
|
|
11216
11225
|
}
|
|
11217
11226
|
};
|
|
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
|
-
};
|
|
11232
11227
|
const buildUploadFile = (config2, componentScope2) => {
|
|
11233
11228
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
11234
11229
|
UploadFile.scope = componentScope2;
|
|
@@ -12269,24 +12264,6 @@ const buildUploadFileIcon = (config2, componentScope2) => {
|
|
|
12269
12264
|
UploadFileIcon.config.main.errorMessage = config2.errorMessage;
|
|
12270
12265
|
return UploadFileIcon;
|
|
12271
12266
|
};
|
|
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
12267
|
const deleteFileIcon = {
|
|
12291
12268
|
"type": "Control",
|
|
12292
12269
|
"scope": "#/properties/deleteFileIcon",
|
|
@@ -12576,9 +12553,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12576
12553
|
case "UploadFileIcon":
|
|
12577
12554
|
elements = buildUploadFileIcon(config2, componentScope2);
|
|
12578
12555
|
break;
|
|
12579
|
-
case "DownloadFileIcon":
|
|
12580
|
-
elements = buildDownloadFileIcon(config2, componentScope2);
|
|
12581
|
-
break;
|
|
12582
12556
|
case "DeleteFileIcon":
|
|
12583
12557
|
elements = buildDeleteFileIcon(config2, componentScope2);
|
|
12584
12558
|
break;
|