impaktapps-ui-builder 1.0.71 → 1.0.72-alpha.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.
@@ -6234,6 +6234,7 @@ const ComponentSchema = {
6234
6234
  { title: "Empty Box", const: "EmptyBox" },
6235
6235
  { title: "File Handler", const: "FileInput" },
6236
6236
  { title: "Graph", const: "Graph" },
6237
+ { title: "Image", const: "Image" },
6237
6238
  { title: "Input Slider", const: "InputSlider" },
6238
6239
  { title: "Label", const: "Box" },
6239
6240
  { title: "Leaderboard", const: "LeaderBoard" },
@@ -7898,6 +7899,13 @@ const buildPropertiesSection = function(type) {
7898
7899
  getTextArea("thought", "Today's thought", false)
7899
7900
  ];
7900
7901
  break;
7902
+ case "Image":
7903
+ uiSchema.elements = [
7904
+ getInputField("imageUrl", "Image URL"),
7905
+ getInputField("height", "Image Height"),
7906
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
7907
+ ];
7908
+ break;
7901
7909
  }
7902
7910
  return uiSchema;
7903
7911
  };
@@ -8401,7 +8409,8 @@ const sectionLabels = {
8401
8409
  ColumnGroup: ["Core", "Components"],
8402
8410
  Thought: ["Core", "Properties", "Events", "Style", "Validation"],
8403
8411
  Date: ["Core", "Properties", "Events", "Style", "Validation"],
8404
- DateTime: ["Core", "Properties", "Events", "Style", "Validation"]
8412
+ DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8413
+ Image: ["Core", "Properties", "Style"]
8405
8414
  };
8406
8415
  function refreshPage(type, store2) {
8407
8416
  var _a, _b;
@@ -12182,6 +12191,35 @@ const buildHorizontalLayout = (config2, componentScope2) => {
12182
12191
  }
12183
12192
  return horizontal;
12184
12193
  };
12194
+ const imageUiSchema = {
12195
+ type: "Control",
12196
+ scope: "#/properties/Logo",
12197
+ options: {
12198
+ widget: "Image"
12199
+ },
12200
+ config: {
12201
+ layout: 3,
12202
+ main: {
12203
+ url: ""
12204
+ },
12205
+ style: {}
12206
+ }
12207
+ };
12208
+ const buildImage = (config2, componentScope2) => {
12209
+ const image = _.cloneDeep(imageUiSchema);
12210
+ image.scope = componentScope2;
12211
+ image.config.main.url = config2.imageUrl;
12212
+ if (config2.layout) {
12213
+ image.config.layout = createLayoutFormat(config2.layout);
12214
+ }
12215
+ if (config2.style) {
12216
+ image.config.style = JSON.parse(config2.style);
12217
+ }
12218
+ if (config2.height) {
12219
+ image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
12220
+ }
12221
+ return image;
12222
+ };
12185
12223
  let schema = {
12186
12224
  type: "object",
12187
12225
  properties: {},
@@ -12439,6 +12477,9 @@ const buildUiSchema = (config2, store2) => {
12439
12477
  case "Thought":
12440
12478
  elements = buildThoughtOfTheDay(config2, componentScope2);
12441
12479
  break;
12480
+ case "Image":
12481
+ elements = buildImage(config2, componentScope2);
12482
+ break;
12442
12483
  default:
12443
12484
  schema = {
12444
12485
  type: "object",