impaktapps-ui-builder 1.0.4 → 1.0.5

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 (122) hide show
  1. package/dist/impaktapps-ui-builder.es.js +2272 -1158
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildArray.d.ts +1 -11
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +2 -1
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildImage.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +2 -1
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +1 -3
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +10 -2
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +6 -1
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -171
  24. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +82 -72
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +18 -50
  26. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
  27. package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
  28. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  29. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  30. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  31. package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +0 -3
  32. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  33. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
  34. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +15 -66
  35. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +48 -38
  36. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +0 -3
  37. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +4 -1
  38. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
  39. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -0
  40. package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +5 -2
  41. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +10 -4
  42. package/package.json +1 -1
  43. package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -2
  44. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +35 -15
  46. package/src/impaktapps-ui-builder/builder/build/buildButton.ts +1 -1
  47. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
  49. package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +1 -1
  50. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +34 -16
  51. package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +2 -2
  52. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +35 -13
  53. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +7 -0
  54. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +1 -0
  55. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -28
  56. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  57. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +10 -4
  58. package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
  59. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +38 -0
  60. package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
  61. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +4 -1
  62. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -4
  63. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  64. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +12 -0
  65. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  66. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  67. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +7 -4
  68. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +3 -2
  69. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  70. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
  71. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +11 -3
  72. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +12 -0
  73. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +10 -4
  74. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  75. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -0
  76. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +21 -8
  77. package/src/impaktapps-ui-builder/builder/build/buildText.ts +15 -0
  78. package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +2 -2
  79. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +1 -1
  80. package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +2 -1
  81. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +140 -130
  82. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  83. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +8 -3
  84. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +0 -6
  85. package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +1 -1
  86. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +5 -2
  87. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +397 -141
  88. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
  89. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  90. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
  91. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +127 -133
  92. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +2 -2
  93. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  94. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
  95. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +3 -3
  96. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
  97. package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
  98. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  99. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +4 -2
  100. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  101. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +0 -3
  102. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +3 -1
  103. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
  104. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +34 -60
  105. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
  106. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +58 -113
  107. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -3
  108. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +4 -1
  109. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +228 -59
  110. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +121 -119
  111. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  112. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +94 -106
  113. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +11 -5
  114. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
  115. package/src/impaktapps-ui-builder/builder/services/component.ts +173 -86
  116. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  117. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -15
  118. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  119. package/src/impaktapps-ui-builder/lib/index.ts +10 -9
  120. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +33 -18
  121. package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
  122. package/src/impaktapps-ui-builder/runtime/services/service.ts +121 -162
@@ -74,95 +74,71 @@ export const EventSection = (theme)=>{
74
74
  enableDrag: true,
75
75
 
76
76
  },
77
- },
78
- elements: [
79
-
80
- {
81
- accessorKey: "eventType",
82
- header: "Event's Type",
83
- type: "string",
84
- size: 300,
85
- },
86
- {
87
- accessorKey: "Handler",
88
- header: "Handler",
89
- type: "string",
90
- size: 200,
91
- },
92
- {
93
- accessorKey: "Edit_Approve_Records",
94
- header: "Edit",
95
- size: 150,
96
- type: "action",
97
- widget: {
77
+ action: [
78
+ {
98
79
  type: "Control",
99
80
  scope: "#/properties/Edit_Records",
100
81
  options: {
101
- widget: "IconButton",
82
+ widget: "Button",
102
83
  },
103
84
  config: {
104
85
  main: {
105
86
  size: "small",
106
- icon: "TableEditIcon",
87
+ startIcon: "EditIcon",
107
88
  tooltipMessage: "Edit This Record",
108
89
  onClick: "eventEditHandler",
109
- },
110
- style: {
111
- fill: theme.palette.primary.main,
112
- "& :hover": {
113
- fill: theme.palette.primary.dark,
114
- },
90
+ name: "Edit"
115
91
  },
116
92
  },
117
93
  },
118
- },
119
- {
120
- accessorKey: "Reject_Records",
121
- header: "Delete",
122
- size: 150,
123
- type: "action",
124
- widget: {
94
+ {
125
95
  type: "Control",
126
96
  scope: "#/properties/RejectButton",
127
97
  accessorKeyName: "Reject_Records",
128
98
  options: {
129
- widget: "IconButton",
99
+ widget: "Button",
130
100
  },
131
101
  config: {
132
102
  main: {
133
- icon: "Bin",
103
+ startIcon: "Bin",
134
104
  tooltipMessage: "Reject This Record",
135
105
  onClick: "deletePopUpEvent",
136
- },
137
- style: {
138
- fill: theme.palette.primary.main,
139
- "& :hover": {
140
- fill: theme.palette.primary.dark,
141
- },
106
+ name: "Delete",
107
+ size: "small"
142
108
  },
143
109
  },
144
110
  },
145
- },
146
- {
147
- header: "Copy",
148
- field: "Copy_Event",
149
- size: 150,
150
- type: "action",
151
- widget: {
111
+ {
152
112
  type: "Control",
153
113
  scope: "#/properties/Copy_Event",
154
114
  options: {
155
- widget: "IconButton",
115
+ widget: "Button",
156
116
  },
157
117
  config: {
158
118
  main: {
159
- icon: "FileCopyIcon",
119
+ startIcon: "FileCopyIcon",
160
120
  onClick: "copyPasteElement",
161
121
  tooltipMessage: "Reject This Record",
162
- styleDefault: true,
122
+ styleDefault: false,
123
+ name: "Copy"
163
124
  },
164
125
  },
165
126
  },
127
+ ]
128
+ },
129
+ elements: [
130
+
131
+ {
132
+ accessorKey: "eventType",
133
+ header: "Event's Type",
134
+ type: "string",
135
+ size: 300,
136
+ },
137
+ {
138
+ accessorKey: "Handler",
139
+ header: "Handler",
140
+ type: "string",
141
+ size: 200,
166
142
  },
167
143
  ]
168
144
  }]}
@@ -13,7 +13,7 @@ export const uploadFile = {
13
13
  "style": {
14
14
  "backgroundColor": "none"
15
15
  },
16
- layout: { xs: 6, sm: 6, md: 4, lg: 4 }
16
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
17
17
  },
18
18
  "options": {
19
19
  "widget": "UploadFile"
@@ -30,9 +30,9 @@ export const downloadFile = {
30
30
  "style": {
31
31
  "backgroundColor": "none"
32
32
  },
33
- layout: { xs: 12, sm: 6, md: 4, lg: 4 }
33
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
34
34
  },
35
35
  "options": {
36
36
  "widget": "DownloadFile"
37
37
  }
38
- };
38
+ };
@@ -11,7 +11,7 @@ export const BarGraph = {
11
11
  type: "BarGraph",
12
12
  legendLabels: null
13
13
  },
14
- style: { containerStyle: {},labelStyle:{margin:{}} ,barStyle:{} }
14
+ style: { containerStyle: {},labelStyle:{margin:{}}}
15
15
  },
16
16
  };
17
17
 
@@ -27,7 +27,7 @@ export const PieGraph = {
27
27
  type: "PieGraph",
28
28
  legendLabels: null
29
29
  },
30
- style:{ containerStyle: {},labelStyle:{margin:{}} ,pieStyle:{} }
30
+ style:{ containerStyle: {},labelStyle:{margin:{}}}
31
31
  },
32
32
  };
33
33
  export const LineGraph = {
@@ -42,7 +42,7 @@ export const LineGraph = {
42
42
  type: "LineGraph",
43
43
  legendLabels: null
44
44
  },
45
- style: { containerStyle: {},labelStyle:{margin:{}} ,lineStyle:{} },
45
+ style: { containerStyle: {},labelStyle:{margin:{}}},
46
46
  },
47
47
  };
48
48
 
@@ -58,6 +58,39 @@ export const HorizontalBarGraph = {
58
58
  type: "HorizontalBarGraph",
59
59
  legendLabels: null
60
60
  },
61
- style:{ containerStyle: {},labelStyle:{margin:{}} ,barStyle:{} }
61
+ style:{ containerStyle: {},labelStyle:{margin:{}} }
62
62
  },
63
63
  };
64
+
65
+ export const AreaBarGraph = {
66
+ type: "Control",
67
+ scope: "#/properties/graph",
68
+ options: {
69
+ widget: "Graph",
70
+ },
71
+ config: {
72
+ layout: {xs :12,sm:12,md:12,lg:12},
73
+ main: {
74
+ type: "AreaGraph",
75
+ legendLabels: null
76
+ },
77
+ style:{ containerStyle: {},labelStyle:{margin:{}} }
78
+ },
79
+ };
80
+
81
+ export const StackBarLineG = {
82
+ type: "Control",
83
+ scope: "#/properties/graph",
84
+ options: {
85
+ widget: "Graph",
86
+ },
87
+ config: {
88
+ layout: {xs :12,sm:12,md:12,lg:12},
89
+ main: {
90
+ type: "StackBarLineGraph",
91
+ legendLabels: null
92
+ },
93
+ style:{ containerStyle: {},labelStyle:{margin:{}} }
94
+ },
95
+ };
96
+
@@ -0,0 +1,11 @@
1
+ export default {
2
+ type: "HorizontalLayout",
3
+ config: {
4
+ layout: 12,
5
+ main: {
6
+ rowSpacing: 3,
7
+ divider: false,
8
+ },
9
+ defaultStyle: true,
10
+ },
11
+ elements: []}
@@ -0,0 +1,13 @@
1
+ export default {
2
+ type: "Control",
3
+ scope: "#/properties/metricpath",
4
+
5
+ options: {
6
+ widget: "MetricCard",
7
+ },
8
+ config: {
9
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
10
+ main: {
11
+ },
12
+ },
13
+ };
@@ -6,13 +6,15 @@ export default {
6
6
  widget: "MultipleSelect",
7
7
  },
8
8
  config: {
9
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
10
10
  main: {
11
11
  label: "",
12
12
  type: "text",
13
13
  multiple: true,
14
- variant: "standard",
14
+ variant: "outlined",
15
15
  options: [],
16
16
  },
17
+ style: {
18
+ }
17
19
  },
18
20
  };
@@ -0,0 +1,18 @@
1
+ export default {
2
+ type: "Control",
3
+ scope: "#/properties/pdfviewer",
4
+ options: {
5
+ widget: "PdfViewer",
6
+ },
7
+ config: {
8
+ layout: {
9
+ xs: 12,
10
+ sm: 12,
11
+ md: 12,
12
+ lg: 12,
13
+ },
14
+ main: {
15
+ title: "PDF"
16
+ },
17
+ },
18
+ }
@@ -6,9 +6,6 @@ export const refreshSectionUiSchema = {
6
6
  {
7
7
  type: "Control",
8
8
  scope: "#/properties/refreshElements",
9
- options: {
10
- widget: "Array",
11
- },
12
9
  config: {
13
10
  layout: 12,
14
11
  main: {
@@ -6,11 +6,13 @@ export default {
6
6
  widget: "SelectInputField",
7
7
  },
8
8
  config: {
9
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
9
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
10
10
  main: {
11
11
  label: "",
12
12
  type: "text",
13
13
  freeSole:false
14
14
  },
15
+ style: {
16
+ },
15
17
  },
16
18
  };
@@ -6,6 +6,7 @@ export default {
6
6
  },
7
7
  elements: [],
8
8
  config: {
9
+ layout: 12,
9
10
  main: {
10
11
  onMount: "onMount",
11
12
  enableExpandAll: true,
@@ -1,10 +1,10 @@
1
- export const TableSection = (theme) => {
1
+ export const TableSection = (theme,scopeName="elements") => {
2
2
  const uiSchema = {
3
3
  type: "HorizontalLayout",
4
4
  elements: [
5
5
  {
6
6
  type: "Control",
7
- scope: "#/properties/elements",
7
+ scope: `#/properties/${scopeName}`,
8
8
  options: {
9
9
  widget: "Table",
10
10
  },
@@ -15,8 +15,7 @@ export const TableSection = (theme) => {
15
15
  {
16
16
  widget: {
17
17
  type: "Control",
18
- scope: "#/properties/New_Record",
19
-
18
+ scope: `#/properties/${scopeName}_New_Record`,
20
19
  options: {
21
20
  widget: "IconButton",
22
21
  },
@@ -43,7 +42,7 @@ export const TableSection = (theme) => {
43
42
  {
44
43
  widget: {
45
44
  type: "Control",
46
- scope: "#/properties/Paste_Component",
45
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
47
46
  options: {
48
47
  widget: "IconButton",
49
48
  },
@@ -74,93 +73,68 @@ export const TableSection = (theme) => {
74
73
  enableDrag: true,
75
74
 
76
75
  },
77
- },
78
- elements: [
79
- {
80
- accessorKey: "name",
81
- header: "Name",
82
- type: "string",
83
- size: 300,
84
- },
85
- {
86
- accessorKey: "type",
87
- header: "Type",
88
- type: "string",
89
- size: 200,
90
- },
91
- {
92
- header: "Edit Record",
93
- field: "Reject_Records",
94
- size: 150,
95
- type: "action",
96
- widget: {
76
+ action: [
77
+ {
97
78
  type: "Control",
98
79
  scope: "#/properties/RejectButton",
99
80
  options: {
100
- widget: "IconButton",
81
+ widget: "Button",
101
82
  },
102
83
  config: {
103
84
  main: {
104
- icon: "TableEditIcon",
85
+ startIcon: "EditIcon",
105
86
  size: "small",
106
87
  onClick: "editComponents",
107
88
  tooltipMessage: "Reject This Record",
108
- },
109
- style: {
110
- fill: theme.palette.primary.main,
111
- "& :hover": {
112
- fill: theme.palette.primary.dark,
113
- },
89
+ name: "Edit"
114
90
  },
115
91
  },
116
92
  },
117
- },
118
- {
119
- header: "Delete",
120
- field: "Reject_Records",
121
- size: 150,
122
- type: "action",
123
- widget: {
93
+ {
124
94
  type: "Control",
125
95
  scope: "#/properties/RejectButton",
126
96
  options: {
127
- widget: "IconButton",
97
+ widget: "Button",
128
98
  },
129
99
  config: {
130
100
  main: {
131
- icon: "Bin",
101
+ startIcon: "Bin",
132
102
  onClick: "deletePopUpComponent",
133
103
  tooltipMessage: "Reject This Record",
134
- },
135
- style: {
136
- fill: theme.palette.primary.main,
137
- "& :hover": {
138
- fill: theme.palette.primary.dark,
139
- },
104
+ name: "Delete",
105
+ size: "small"
140
106
  },
141
107
  },
142
108
  },
143
- },
144
- {
145
- header: "Copy",
146
- field: "Copy_Component",
147
- size: 150,
148
- type: "action",
149
- widget: {
109
+ {
150
110
  type: "Control",
151
- scope: "#/properties/Copy_Component",
111
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
152
112
  options: {
153
- widget: "IconButton",
113
+ widget: "Button",
154
114
  },
155
115
  config: {
156
116
  main: {
157
- icon: "FileCopyIcon",
117
+ startIcon: "FileCopyIcon",
158
118
  onClick: "copyPasteElement",
159
- styleDefault: true,
160
- disabled: false
119
+ styleDefault: false,
120
+ name: "Copy"
161
121
  },
162
122
  },
163
123
  },
124
+ ]
125
+ },
126
+ elements: [
127
+ {
128
+ accessorKey: "name",
129
+ header: "Name",
130
+ type: "string",
131
+ size: 300,
132
+ },
133
+ {
134
+ accessorKey: "type",
135
+ header: "Type",
136
+ type: "string",
137
+ size: 200,
164
138
  },
165
139
  ]
166
140
  }]
@@ -6,7 +6,7 @@ export default {
6
6
  widget: "InputField",
7
7
  },
8
8
  config: {
9
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
9
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
10
10
  main: {
11
11
  label: "",
12
12
  },
@@ -7,122 +7,67 @@ export const ValidationSection = {
7
7
  }
8
8
  },
9
9
  elements: [
10
- {
11
- type: "Control",
12
- scope: "#/properties/validation",
13
- layout: 11.5,
14
- options: {
15
- "elementLabelProp": "validationType",
16
- detail: {
17
- type: "HorizontalLayout",
18
- elements: [
19
- {
20
- type: "Control",
21
- scope: "#/properties/validationType",
22
-
23
- options: {
24
- widget: "SelectInputField",
25
- },
26
- config: {
27
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
28
- main: {
29
- label: "Validation Type",
30
- },
31
- },
32
- },
33
- {
34
- type: "Control",
35
- scope: "#/properties/validationValue",
36
-
37
- options: {
38
- widget: "InputField",
39
- },
40
- config: {
41
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
42
- main: {
43
- label: "Validation Value",
44
- },
45
- },
46
- },
47
- {
48
- type: "Control",
49
- scope: "#/properties/emptyBox",
50
- options: {
51
- widget: "EmptyBox"
52
- },
53
- config: {
54
- layout: {xs: 0, sm: 0, md: 4}
55
- }
56
- }
57
- ],
58
- },
10
+
11
+ {
12
+ type: "Control",
13
+ scope: "#/properties/validation",
14
+ config: {
15
+ layout: 12,
16
+ main: {
17
+ label: "Validation",
18
+ childElementLabel: "Validation",
59
19
  },
60
-
20
+ style: {
21
+ marginLeft: "-24px",
22
+ marginBottom: "24px !important",
23
+ labelStyle: {
24
+ marginLeft: "24px",
25
+ },
26
+ detailsStyle: {
27
+ marginLeft: "24px",
28
+ }
29
+ }
61
30
  },
31
+ elements: [
32
+ {
33
+ type: "Control",
34
+ scope: "#/properties/validationType",
35
+ options: {
36
+ widget: "SelectInputField",
37
+ },
38
+ config: {
39
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
40
+ main: {
41
+ label: "Validation Type",
42
+ },
43
+ },
44
+ },
45
+ {
46
+ type: "Control",
47
+ scope: "#/properties/validationValue",
62
48
 
63
- // {
64
- // type: "Control",
65
- // scope: "#/properties/validation",
66
- // options: {
67
- // widget: "Array",
68
- // },
69
- // config: {
70
- // layout: 12,
71
- // main: {
72
- // label: "Validation",
73
- // childElementLabel: "Validation",
74
- // },
75
- // style: {
76
- // marginLeft: "-24px",
77
- // marginBottom: "24px !important",
78
- // labelStyle: {
79
- // marginLeft: "24px",
80
- // },
81
- // detailsStyle: {
82
- // marginLeft: "24px",
83
- // }
84
- // }
85
- // },
86
- // elements: [
87
- // {
88
- // type: "Control",
89
- // scope: "#/properties/validationType",
90
- // options: {
91
- // widget: "SelectInputField",
92
- // },
93
- // config: {
94
- // layout: { xs: 6, sm: 6, md: 4, lg: 4 },
95
- // main: {
96
- // label: "Validation Type",
97
- // },
98
- // },
99
- // },
100
- // {
101
- // type: "Control",
102
- // scope: "#/properties/validationValue",
103
-
104
- // options: {
105
- // widget: "InputField",
106
- // },
107
- // config: {
108
- // layout: { xs: 6, sm: 6, md: 4, lg: 4 },
109
- // main: {
110
- // label: "Validation Value",
111
- // },
112
- // },
113
- // },
114
- // {
115
- // type: "Control",
116
- // scope: "#/properties/emptyBox",
117
- // options: {
118
- // widget: "EmptyBox"
119
- // },
120
- // config: {
121
- // layout: {xs: 0, sm: 0, md: 4, lg: 4}
122
- // }
123
- // }
124
- // ],
125
- // },
49
+ options: {
50
+ widget: "InputField",
51
+ },
52
+ config: {
53
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
54
+ main: {
55
+ label: "Validation Value",
56
+ },
57
+ },
58
+ },
59
+ {
60
+ type: "Control",
61
+ scope: "#/properties/emptyBox",
62
+ options: {
63
+ widget: "EmptyBox"
64
+ },
65
+ config: {
66
+ layout: {xs: 0, sm: 0, md: 4, lg: 4}
67
+ }
68
+ }
69
+ ],
70
+ },
126
71
 
127
72
  ]
128
73
  };
@@ -10,9 +10,6 @@ export const ValueTab = {
10
10
  {
11
11
  type: "Control",
12
12
  scope: "#/properties/value",
13
- options: {
14
- widget: "Array",
15
- },
16
13
  config: {
17
14
  layout: 12,
18
15
  main: {
@@ -1,10 +1,13 @@
1
1
  export default {
2
2
  type: "WrapperLayout",
3
3
  config: {
4
+ layout: 12,
4
5
  main: {
5
- rowSpacing: 3,
6
6
  divider: true,
7
7
  label: "Default Label",
8
+ rowSpacing: 2,
9
+ columnSpacing:2,
10
+ spacing:2,
8
11
  },
9
12
  defaultStyle: true,
10
13
  },