impaktapps-ui-builder 1.0.130 → 1.0.131-alpha.1
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 +101 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +5 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +75 -19
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +8 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +16 -0
package/package.json
CHANGED
|
@@ -77,5 +77,8 @@ export const buildTable = (config: any, componentScope: string) => {
|
|
|
77
77
|
if (config.maxPageSize) {
|
|
78
78
|
table.config.main.maxPageSize = config.maxPageSize
|
|
79
79
|
}
|
|
80
|
+
if(config.initialDensity){
|
|
81
|
+
table.config.main.initialDensity = config.initialDensity
|
|
82
|
+
}
|
|
80
83
|
return table;
|
|
81
84
|
};
|
|
@@ -292,7 +292,8 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
292
292
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
293
293
|
columnFilterModeOptions: cellElem.filteringOptions,
|
|
294
294
|
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
295
|
-
columnKey: cellElem.columnKey
|
|
295
|
+
columnKey: cellElem.columnKey,
|
|
296
|
+
dateFormat: cellElem.dateFormat,
|
|
296
297
|
}
|
|
297
298
|
if (cellElem.type) {
|
|
298
299
|
const tableElem = {
|
|
@@ -325,7 +326,8 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
325
326
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
326
327
|
columnFilterModeOptions: cellElem.filteringOptions,
|
|
327
328
|
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
328
|
-
columnKey: cellElem.columnKey
|
|
329
|
+
columnKey: cellElem.columnKey,
|
|
330
|
+
dateFormat: cellElem.dateFormat,
|
|
329
331
|
}
|
|
330
332
|
if (cellElem.type) {
|
|
331
333
|
if (cellElem.elementType == "action") {
|
|
@@ -487,6 +487,11 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
487
487
|
{ label: "100", value: 100 },
|
|
488
488
|
{ label: "500", value: 500 }
|
|
489
489
|
]),
|
|
490
|
+
getSelectField("initialDensity", "Initial Toggle Density", [
|
|
491
|
+
{ label: "Compact", value: "compact" },
|
|
492
|
+
{ label: "Comfortable", value: "comfortable" },
|
|
493
|
+
{ label: "Spacious", value: "spacious" }
|
|
494
|
+
]),
|
|
490
495
|
buildWrapper("Tree Table Properties", [
|
|
491
496
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
492
497
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
@@ -62,20 +62,76 @@ export const CoreSection = {
|
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
65
|
+
{
|
|
66
|
+
type: "Control",
|
|
67
|
+
scope: "#/properties/proc5",
|
|
68
|
+
config: {
|
|
69
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
70
|
+
},
|
|
71
|
+
options: {
|
|
72
|
+
widget: "EmptyBox",
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
type: "Control",
|
|
77
|
+
scope: "#/properties/proc6",
|
|
78
|
+
config: {
|
|
79
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
80
|
+
},
|
|
81
|
+
options: {
|
|
82
|
+
widget: "EmptyBox",
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
type: "Control",
|
|
87
|
+
scope: "#/properties/proc7",
|
|
88
|
+
config: {
|
|
89
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
90
|
+
},
|
|
91
|
+
options: {
|
|
92
|
+
widget: "EmptyBox",
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: "Control",
|
|
97
|
+
scope: "#/properties/proc8",
|
|
98
|
+
config: {
|
|
99
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
100
|
+
},
|
|
101
|
+
options: {
|
|
102
|
+
widget: "EmptyBox",
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
type: "Control",
|
|
107
|
+
scope: "#/properties/proc9",
|
|
108
|
+
config: {
|
|
109
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
110
|
+
},
|
|
111
|
+
options: {
|
|
112
|
+
widget: "EmptyBox",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: "Control",
|
|
117
|
+
scope: "#/properties/proc10",
|
|
118
|
+
config: {
|
|
119
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
120
|
+
},
|
|
121
|
+
options: {
|
|
122
|
+
widget: "EmptyBox",
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
type: "Control",
|
|
127
|
+
scope: "#/properties/proc11",
|
|
128
|
+
config: {
|
|
129
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
130
|
+
},
|
|
131
|
+
options: {
|
|
132
|
+
widget: "EmptyBox",
|
|
133
|
+
},
|
|
134
|
+
},
|
|
79
135
|
{
|
|
80
136
|
type: "Control",
|
|
81
137
|
scope: "#/properties/proc",
|
|
@@ -117,7 +173,7 @@ export const CoreSection = {
|
|
|
117
173
|
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
118
174
|
main: {
|
|
119
175
|
label: "Screen Size",
|
|
120
|
-
|
|
176
|
+
|
|
121
177
|
},
|
|
122
178
|
},
|
|
123
179
|
},
|
|
@@ -132,11 +188,11 @@ export const CoreSection = {
|
|
|
132
188
|
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
133
189
|
main: {
|
|
134
190
|
label: "Value",
|
|
135
|
-
type:"number",
|
|
191
|
+
type: "number",
|
|
136
192
|
// freeSolo:true,
|
|
137
|
-
helperText:'Number should be in range of 0 to 12',
|
|
138
|
-
errorMessage:"Number Can't be greater than 12 and can't be less than 0.",
|
|
139
|
-
|
|
193
|
+
helperText: 'Number should be in range of 0 to 12',
|
|
194
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
|
|
195
|
+
|
|
140
196
|
},
|
|
141
197
|
},
|
|
142
198
|
},
|
|
@@ -94,6 +94,14 @@ export const ComponentSchema: any = {
|
|
|
94
94
|
{ title: "500", const: 500 }
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
|
+
initialDensity:{
|
|
98
|
+
type: "string",
|
|
99
|
+
oneOf: [
|
|
100
|
+
{ title: "Compact", const: "compact" },
|
|
101
|
+
{ title: "Comfortable", const: "comfortable" },
|
|
102
|
+
{ title: "Spacious", const: "spacious" }
|
|
103
|
+
]
|
|
104
|
+
},
|
|
97
105
|
layout: {
|
|
98
106
|
type: "array",
|
|
99
107
|
items: {
|
|
@@ -162,6 +162,22 @@ export function refreshPage(type: string, store: any) {
|
|
|
162
162
|
},
|
|
163
163
|
},
|
|
164
164
|
}
|
|
165
|
+
|
|
166
|
+
if(store.formData.columnFormat === 'DateTimeFormat') {
|
|
167
|
+
UiSchema.elements[0].elements[0].elements[10] = {
|
|
168
|
+
type: "Control",
|
|
169
|
+
scope: "#/properties/dateFormat",
|
|
170
|
+
options: {
|
|
171
|
+
widget: "SelectInputField",
|
|
172
|
+
},
|
|
173
|
+
config: {
|
|
174
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
175
|
+
main: {
|
|
176
|
+
label: "Date Time Format",
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
}
|
|
180
|
+
}
|
|
165
181
|
}
|
|
166
182
|
|
|
167
183
|
if (sessionStorage.getItem("copiedConfig") ) {
|