impaktapps-ui-builder 1.0.71-alpha.1 → 1.0.71-alpha.3
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 +11 -1
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +6 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -1
package/package.json
CHANGED
|
@@ -37,5 +37,8 @@ export const buildImage = (config, componentScope) => {
|
|
|
37
37
|
if (config.style) {
|
|
38
38
|
image.config.style = JSON.parse(config.style);
|
|
39
39
|
}
|
|
40
|
+
if (config.height) {
|
|
41
|
+
image.config.style.imageStyle = {...image.config.style.imageStyle, height: config.height}
|
|
42
|
+
}
|
|
40
43
|
return image;
|
|
41
44
|
};
|
|
@@ -539,6 +539,12 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
539
539
|
getTextArea("thought", "Today's thought", false),
|
|
540
540
|
]
|
|
541
541
|
break;
|
|
542
|
+
case "Image":
|
|
543
|
+
uiSchema.elements = [
|
|
544
|
+
getInputField("imageUrl", "Image URL"),
|
|
545
|
+
getInputField("height", "Image Height"),
|
|
546
|
+
]
|
|
547
|
+
break;
|
|
542
548
|
}
|
|
543
549
|
return uiSchema;
|
|
544
550
|
};
|
|
@@ -42,7 +42,8 @@ const sectionLabels = {
|
|
|
42
42
|
ColumnGroup: ["Core", "Components"],
|
|
43
43
|
Thought: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
44
44
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
45
|
-
DateTime: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
45
|
+
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
46
|
+
Image: ["Core", "Properties","Style"],
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export function refreshPage(type: string, store: any) {
|