impaktapps-ui-builder 1.0.76 → 1.0.77-test.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.
@@ -0,0 +1 @@
1
+ export declare const buildUploadArray: (config: any, componentScope: string) => any;
@@ -11,7 +11,9 @@ declare const Box: {
11
11
  md: number;
12
12
  lg: number;
13
13
  };
14
- main: {};
14
+ main: {
15
+ iconName: string;
16
+ };
15
17
  style: {};
16
18
  };
17
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.76",
3
+ "version": "1.0.77-test.2",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -9,6 +9,9 @@ export const buildLabel = (config,componentScope) => {
9
9
  if(config.layout){
10
10
  box.config.layout = createLayoutFormat(config.layout)
11
11
  }
12
+ if(config.iconName){
13
+ box.config.main.iconName = config.iconName
14
+ }
12
15
  if (config.style) {
13
16
  box.config.style = JSON.parse(config.style)
14
17
  }
@@ -44,6 +44,7 @@ import { buildHorizontalLayout } from "./buildHorizontalLayout";
44
44
  import { buildImage } from "./buildImage";
45
45
  import { buildUploadFileIcon } from "./buildUploadFileIcon";
46
46
  import { buildDeleteFileIcon } from "./buildDeleteFileIcon"
47
+ import { buildUploadArray } from "./buildUploadArray";
47
48
  export let schema = {
48
49
  type: "object",
49
50
  properties: {},
@@ -238,6 +239,9 @@ const buildUiSchema = (config: any, store?: any) => {
238
239
  case "Array":
239
240
  elements = buildArray(config, componentScope);
240
241
  break;
242
+ case "UploadArray":
243
+ elements = buildUploadArray(config, componentScope);
244
+ break;
241
245
  case "Box":
242
246
  elements = buildLabel(config, componentScope);
243
247
  break;
@@ -0,0 +1,23 @@
1
+ import _ from "lodash";
2
+
3
+ const UploadArrayUiSchema: any = {
4
+ type: "Control",
5
+ scope: "#/properties/uploadArray",
6
+ options: {
7
+ widget: "UploadArray"
8
+ },
9
+ layout: 12,
10
+ elements: [],
11
+ config: {
12
+ main: {}
13
+ }
14
+
15
+ }
16
+ export const buildUploadArray = (config: any, componentScope: string) => {
17
+ const array = _.cloneDeep(UploadArrayUiSchema);
18
+ if (config.style) {
19
+ array.config.style = JSON.parse(config.style)
20
+ }
21
+ array.scope = componentScope;
22
+ return array;
23
+ }
@@ -7,7 +7,9 @@
7
7
  },
8
8
 
9
9
  config: { layout: { xs: 6, sm: 6, md: 4, lg: 3 },
10
- main: {},
10
+ main: {
11
+ iconName: ""
12
+ },
11
13
  style:{
12
14
  // fontWeight:300
13
15
  }
@@ -411,6 +411,12 @@ export const buildPropertiesSection = function (type: String) {
411
411
  emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
412
412
  ];
413
413
  break;
414
+ case "Box":
415
+ uiSchema.elements = [
416
+ getSelectField("iconName", "Icon Name", []),
417
+ emptyBox("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
418
+ ];
419
+ break;
414
420
  case "Graph":
415
421
  uiSchema.elements = [
416
422
  getInputField("height", "Height"),
@@ -6,6 +6,7 @@ export const ComponentSchema: any = {
6
6
  oneOf: [
7
7
  { title: "Masked Aadhar Card", const: "AadharcardText" },
8
8
  { title: "Array", const: "Array" },
9
+ { title: "Upload Array", const: "UploadArray" },
9
10
  { title: "Button", const: "Button" },
10
11
  { title: "Data Card", const: "card" },
11
12
  { title: "Check Box", const: "CheckBox" },
@@ -24,7 +24,7 @@ const sectionLabels = {
24
24
  DeleteFileIcon: ["Core", "Events", "Style"],
25
25
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
26
26
  DownloadFile: ["Core", "Events", "Style", "Validation"],
27
- Box: ["Core", "Events", "Style", "Validation"],
27
+ Box: ["Core", "Properties" , "Events", "Style", "Validation"],
28
28
  Properties: ["Core", "Properties", "Events", "Style", "Validation"],
29
29
  ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
30
30
  RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -33,6 +33,7 @@ const sectionLabels = {
33
33
  Rank: ["Core", "Events", "Style", "Validation"],
34
34
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
35
35
  Array: ["Core", "Components", "Properties","Validation"],
36
+ UploadArray: ["Core", "Components","Validation"],
36
37
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
37
38
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
38
39
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],