impaktapps-ui-builder 0.0.962 → 0.0.963-CopyComponent.10

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.
Files changed (25) hide show
  1. package/dist/impaktapps-ui-builder.es.js +308 -8
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +4 -1
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +47 -2
  8. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -0
  9. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -0
  10. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +4 -0
  11. package/package.json +1 -1
  12. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +43 -38
  13. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +9 -0
  14. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +9 -0
  15. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +2 -0
  16. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +47 -0
  17. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +2 -2
  18. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +48 -1
  19. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +5 -1
  20. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +25 -3
  21. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +94 -1
  22. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +45 -0
  23. package/src/impaktapps-ui-builder/builder/services/component.ts +150 -1
  24. package/src/impaktapps-ui-builder/builder/services/event.ts +26 -2
  25. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +38 -0
@@ -9,7 +9,7 @@ export declare const EventSection: (theme: any) => {
9
9
  config: {
10
10
  main: {
11
11
  headerIcons: {
12
- elements: {
12
+ elements: ({
13
13
  widget: {
14
14
  type: string;
15
15
  scope: string;
@@ -30,7 +30,28 @@ export declare const EventSection: (theme: any) => {
30
30
  };
31
31
  };
32
32
  };
33
- }[];
33
+ } | {
34
+ widget: {
35
+ type: string;
36
+ scope: string;
37
+ options: {
38
+ widget: string;
39
+ };
40
+ config: {
41
+ main: {
42
+ onClick: string;
43
+ size: string;
44
+ icon: string;
45
+ iconLabel: string;
46
+ styleDefault: boolean;
47
+ color?: undefined;
48
+ };
49
+ style: {
50
+ mt: string;
51
+ };
52
+ };
53
+ };
54
+ })[];
34
55
  };
35
56
  disableAction: boolean;
36
57
  disableSelection: boolean;
@@ -41,6 +62,8 @@ export declare const EventSection: (theme: any) => {
41
62
  accessorKey: string;
42
63
  header: string;
43
64
  widget?: undefined;
65
+ field?: undefined;
66
+ flex?: undefined;
44
67
  } | {
45
68
  accessorKey: string;
46
69
  header: string;
@@ -57,6 +80,7 @@ export declare const EventSection: (theme: any) => {
57
80
  icon: string;
58
81
  tooltipMessage: string;
59
82
  onClick: string;
83
+ styleDefault?: undefined;
60
84
  };
61
85
  style: {
62
86
  color: any;
@@ -64,6 +88,8 @@ export declare const EventSection: (theme: any) => {
64
88
  };
65
89
  accessorKeyName?: undefined;
66
90
  };
91
+ field?: undefined;
92
+ flex?: undefined;
67
93
  } | {
68
94
  accessorKey: string;
69
95
  header: string;
@@ -81,10 +107,37 @@ export declare const EventSection: (theme: any) => {
81
107
  tooltipMessage: string;
82
108
  onClick: string;
83
109
  size?: undefined;
110
+ styleDefault?: undefined;
84
111
  };
85
112
  style?: undefined;
86
113
  };
87
114
  };
115
+ field?: undefined;
116
+ flex?: undefined;
117
+ } | {
118
+ header: string;
119
+ field: string;
120
+ flex: number;
121
+ widget: {
122
+ type: string;
123
+ scope: string;
124
+ options: {
125
+ widget: string;
126
+ };
127
+ config: {
128
+ main: {
129
+ icon: string;
130
+ onClick: string;
131
+ tooltipMessage: string;
132
+ styleDefault: boolean;
133
+ color?: undefined;
134
+ size?: undefined;
135
+ };
136
+ style?: undefined;
137
+ };
138
+ accessorKeyName?: undefined;
139
+ };
140
+ accessorKey?: undefined;
88
141
  })[];
89
142
  }[];
90
143
  };
@@ -8,6 +8,7 @@ export declare const BarGraph: {
8
8
  main: {};
9
9
  style: {
10
10
  containerStyle: {};
11
+ labelStyle: {};
11
12
  };
12
13
  };
13
14
  };
@@ -69,6 +70,8 @@ export declare const HorizontalBarGraph: {
69
70
  main: {
70
71
  type: string;
71
72
  };
72
- style: {};
73
+ style: {
74
+ labelStyle: {};
75
+ };
73
76
  };
74
77
  };
@@ -9,7 +9,7 @@ export declare const TableSection: (theme: any) => {
9
9
  config: {
10
10
  main: {
11
11
  headerIcons: {
12
- elements: {
12
+ elements: ({
13
13
  widget: {
14
14
  type: string;
15
15
  scope: string;
@@ -30,7 +30,28 @@ export declare const TableSection: (theme: any) => {
30
30
  };
31
31
  };
32
32
  };
33
- }[];
33
+ } | {
34
+ widget: {
35
+ type: string;
36
+ scope: string;
37
+ options: {
38
+ widget: string;
39
+ };
40
+ config: {
41
+ main: {
42
+ onClick: string;
43
+ size: string;
44
+ icon: string;
45
+ iconLabel: string;
46
+ styleDefault: boolean;
47
+ color?: undefined;
48
+ };
49
+ style: {
50
+ mt: string;
51
+ };
52
+ };
53
+ };
54
+ })[];
34
55
  };
35
56
  disableAction: boolean;
36
57
  disableSelection: boolean;
@@ -59,6 +80,7 @@ export declare const TableSection: (theme: any) => {
59
80
  color: string;
60
81
  onClick: string;
61
82
  tooltipMessage: string;
83
+ styleDefault?: undefined;
62
84
  };
63
85
  style: {
64
86
  color: any;
@@ -82,6 +104,29 @@ export declare const TableSection: (theme: any) => {
82
104
  color: string;
83
105
  onClick: string;
84
106
  tooltipMessage: string;
107
+ styleDefault?: undefined;
108
+ };
109
+ style?: undefined;
110
+ };
111
+ };
112
+ accessorKey?: undefined;
113
+ } | {
114
+ header: string;
115
+ field: string;
116
+ flex: number;
117
+ widget: {
118
+ type: string;
119
+ scope: string;
120
+ options: {
121
+ widget: string;
122
+ };
123
+ config: {
124
+ main: {
125
+ icon: string;
126
+ onClick: string;
127
+ styleDefault: boolean;
128
+ color?: undefined;
129
+ tooltipMessage?: undefined;
85
130
  };
86
131
  style?: undefined;
87
132
  };
@@ -16,5 +16,9 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
16
16
  backHandler: () => void;
17
17
  deletePopUpComponent: () => void;
18
18
  deletePopUpEvent: () => void;
19
+ CopyComponent: () => void;
20
+ PasteComponent: () => void;
21
+ CopyEvent: () => void;
22
+ PasteEvent: () => void;
19
23
  };
20
24
  export default _default;
@@ -87,5 +87,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
87
87
  deleteEvent: () => Promise<void>;
88
88
  backHandler: () => void;
89
89
  deletePopUpEvent: () => void;
90
+ CopyEvent: () => void;
91
+ PasteEvent: () => void;
90
92
  };
91
93
  export default _default;
@@ -63,5 +63,9 @@ declare const _default: (funcParams: funcParamsProps) => {
63
63
  deleteEvent: () => void;
64
64
  deletePopUpComponent: () => void;
65
65
  deletePopUpEvent: () => void;
66
+ CopyComponent: () => void;
67
+ PasteComponent: () => void;
68
+ CopyEvent: () => void;
69
+ PasteEvent: () => void;
66
70
  };
67
71
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.962",
3
+ "version": "0.0.963-CopyComponent.10",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -2,43 +2,48 @@ import { createLayoutFormat } from "./buildConfig";
2
2
  import { HorizontalBarGraph } from "./uischema/graph";
3
3
  import _ from "lodash";
4
4
 
5
-
6
- const buildHorizontalBarGraph = (config:any,componentScope:string) => {
7
- const horizontalBarGraph: any = _.cloneDeep(HorizontalBarGraph);
8
- horizontalBarGraph.scope = componentScope;
9
- if (config.layout) {
10
- horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
11
- }
12
- horizontalBarGraph.config.main.type = config.graphType;
13
- horizontalBarGraph.scope = componentScope;
14
- horizontalBarGraph.config.main.header = config.heading;
15
- if (config.barColor) {
16
- horizontalBarGraph.config.barStyle.color = config.barColor;
17
- }
18
- if (config.xAxisValue) {
19
- horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
20
- }
21
- if (config.containerBackground) {
22
- horizontalBarGraph.config.containerStyle.background =
23
- config.containerBackground;
24
- }
25
- if (config.height) {
26
- horizontalBarGraph.config.style =
27
- {
5
+ const buildHorizontalBarGraph = (config: any, componentScope: string) => {
6
+ const horizontalBarGraph: any = _.cloneDeep(HorizontalBarGraph);
7
+ horizontalBarGraph.scope = componentScope;
8
+ if (config.layout) {
9
+ horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
10
+ }
11
+ horizontalBarGraph.config.main.type = config.graphType;
12
+ horizontalBarGraph.scope = componentScope;
13
+ horizontalBarGraph.config.main.header = config.heading;
14
+ if (config.barColor) {
15
+ horizontalBarGraph.config.barStyle.color = config.barColor;
16
+ }
17
+ if (config.xAxisValue) {
18
+ horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
19
+ }
20
+ if (config.containerBackground) {
21
+ horizontalBarGraph.config.containerStyle.background =
22
+ config.containerBackground;
23
+ }
24
+ if (config.height) {
25
+ horizontalBarGraph.config.style = {
28
26
  containerStyle: {
29
- height: config.height
30
- }
31
- }
32
-
33
- }
34
- if (config.bottomLabel) {
35
- horizontalBarGraph.config.main.bottomLabel =
36
- config.bottomLabel;
37
- }
38
- if (config.leftLabel) {
39
- horizontalBarGraph.config.main.leftLabel = config.leftLabel;
40
- }
41
- return horizontalBarGraph
42
- }
27
+ height: config.height,
28
+ },
29
+ };
30
+ }
31
+ if (config.bottomLabel) {
32
+ horizontalBarGraph.config.main.bottomLabel = config.bottomLabel;
33
+ }
34
+ if (config.leftLabel) {
35
+ horizontalBarGraph.config.main.leftLabel = config.leftLabel;
36
+ }
37
+ if (config.leftLabelMargin) {
38
+ horizontalBarGraph.config.style.labelStyle.margin = {
39
+ left: config.leftLabelMargin,
40
+ };
41
+ }
42
+ if (config.leftLabelOffset) {
43
+ horizontalBarGraph.config.style.labelStyle.leftLabelOffset =
44
+ config.leftLabelOffset;
45
+ }
46
+ return horizontalBarGraph;
47
+ };
43
48
 
44
- export default buildHorizontalBarGraph
49
+ export default buildHorizontalBarGraph;
@@ -33,6 +33,15 @@ export const buildLineGraph = (config, componentScope) => {
33
33
  if (config.pieArcColors) {
34
34
  lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
35
35
  }
36
+ if (config.leftLabelMargin) {
37
+ lineGraph.config.style.labelStyle.margin = {
38
+ left: config.leftLabelMargin,
39
+ };
40
+ }
41
+ if (config.leftLabelOffset) {
42
+ lineGraph.config.style.labelStyle.leftLabelOffset =
43
+ config.leftLabelOffset;
44
+ }
36
45
  lineGraph.scope = componentScope;
37
46
  return lineGraph;
38
47
  }
@@ -27,6 +27,15 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
27
27
  if (config.leftLabel) {
28
28
  barGraph.config.main.leftLabel = config.leftLabel;
29
29
  }
30
+ if (config.leftLabelMargin) {
31
+ barGraph.config.style.labelStyle.margin = {
32
+ left: config.leftLabelMargin,
33
+ };
34
+ }
35
+ if (config.leftLabelOffset) {
36
+ barGraph.config.style.labelStyle.leftLabelOffset =
37
+ config.leftLabelOffset;
38
+ }
30
39
  barGraph.scope = componentScope;
31
40
  return barGraph;
32
41
  }
@@ -407,6 +407,8 @@ export const buildPropertiesSection = function (type: String) {
407
407
  ]),
408
408
  getInputField("leftLabel", "Left Label"),
409
409
  getInputField("bottomLabel", "Bottom Label"),
410
+ getInputField("leftLabelMargin", "Left Label Margin"),
411
+ getInputField("leftLabelOffset", "Left Label Offset"),
410
412
  emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 0, lg: 0 }),
411
413
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
412
414
  getInputField("yAxisValue", "Y-AxisValue"),
@@ -35,6 +35,30 @@ export const EventSection = (theme)=>{
35
35
  },
36
36
  }
37
37
  },
38
+
39
+ {
40
+ widget: {
41
+ type: "Control",
42
+ scope: "#/properties/Paste_Icon",
43
+
44
+ options: {
45
+ widget: "IconButton",
46
+ },
47
+ config: {
48
+ main: {
49
+ // color: "info",
50
+ onClick: "PasteEvent",
51
+ size: "small",
52
+ icon: "SendIcon",
53
+ iconLabel: "Paste",
54
+ styleDefault: true,
55
+ },
56
+ style: {
57
+ mt: "6px",
58
+ },
59
+ },
60
+ }
61
+ },
38
62
  ]
39
63
  },
40
64
  disableAction: true,
@@ -98,6 +122,29 @@ export const EventSection = (theme)=>{
98
122
  },
99
123
  },
100
124
  },
125
+
126
+
127
+ {
128
+ header: "Copy",
129
+ field: "Copy_Event",
130
+ flex: 1,
131
+ widget: {
132
+ type: "Control",
133
+ scope: "#/properties/CopyEvent",
134
+ options: {
135
+ widget: "IconButton",
136
+ },
137
+ config: {
138
+ main: {
139
+ icon: "FileCopyIcon",
140
+ // color: "error",
141
+ onClick: "CopyEvent",
142
+ tooltipMessage: "Reject This Record",
143
+ styleDefault: true,
144
+ },
145
+ },
146
+ },
147
+ },
101
148
  ]
102
149
  }]}
103
150
  return uiSchema
@@ -8,7 +8,7 @@ export const BarGraph = {
8
8
  config: {
9
9
  main: {
10
10
  },
11
- style: { containerStyle: {} }
11
+ style: { containerStyle: {},labelStyle:{} }
12
12
  },
13
13
  };
14
14
 
@@ -72,7 +72,7 @@ export const HorizontalBarGraph = {
72
72
  type: "HorizontalBarGraph",
73
73
  },
74
74
  style:{
75
-
75
+ labelStyle:{}
76
76
  }
77
77
  },
78
78
  };
@@ -35,6 +35,31 @@ export const TableSection = (theme) => {
35
35
  },
36
36
  }
37
37
  },
38
+
39
+
40
+ {
41
+ widget: {
42
+ type: "Control",
43
+ scope: "#/properties/Paste_Icon",
44
+
45
+ options: {
46
+ widget: "IconButton",
47
+ },
48
+ config: {
49
+ main: {
50
+ // color: "info",
51
+ onClick: "PasteComponent",
52
+ size: "small",
53
+ icon: "SendIcon",
54
+ iconLabel: "Paste",
55
+ styleDefault: true,
56
+ },
57
+ style: {
58
+ mt: "6px",
59
+ },
60
+ },
61
+ }
62
+ },
38
63
  ]
39
64
  },
40
65
  disableAction: true,
@@ -95,7 +120,29 @@ export const TableSection = (theme) => {
95
120
  },
96
121
  },
97
122
  },
98
- }
123
+ },
124
+
125
+
126
+ {
127
+ header: "Copy",
128
+ field: "Copy_Component",
129
+ flex: 1,
130
+ widget: {
131
+ type: "Control",
132
+ scope: "#/properties/CopyComponent",
133
+ options: {
134
+ widget: "IconButton",
135
+ },
136
+ config: {
137
+ main: {
138
+ icon: "FileCopyIcon",
139
+ // color: "error",
140
+ onClick: "CopyComponent",
141
+ styleDefault: true,
142
+ },
143
+ },
144
+ },
145
+ },
99
146
  ]
100
147
  }]
101
148
  }
@@ -341,7 +341,11 @@ export const ComponentSchema: any = {
341
341
  name: {
342
342
  type: "string",
343
343
  },
344
- label: { type: 'string' }
344
+ label: { type: 'string' },
345
+
346
+ CopyComponent:{
347
+ disabled: false,
348
+ }
345
349
  },
346
350
 
347
351
  required: ["name",]
@@ -363,17 +363,39 @@ export const componentBasicUiSchema: any = (theme)=>{
363
363
  },
364
364
  },
365
365
  ]
366
- },
366
+ },
367
+
368
+
369
+
367
370
  {
368
371
  type: "Control",
369
- scope: "#/properties/EmptyBox",
372
+ scope: "#/properties/copiedElementDetails",
373
+
370
374
  options: {
371
- widget: "EmptyBox",
375
+ widget: "Box",
372
376
  },
373
377
  config: {
374
378
  layout: { xs: 4, sm: 8 },
379
+ main: {
380
+ heading: "",
381
+ },
382
+ style: {
383
+ float: "left"
384
+ }
375
385
  },
376
386
  },
387
+
388
+
389
+ // {
390
+ // type: "Control",
391
+ // scope: "#/properties/EmptyBox",
392
+ // options: {
393
+ // widget: "EmptyBox",
394
+ // },
395
+ // config: {
396
+ // layout: { xs: 4, sm: 8 },
397
+ // },
398
+ // },
377
399
  {
378
400
  type: "Control",
379
401
  scope: "#/properties/btn",