impaktapps-ui-builder 1.0.66-alpha1 → 1.0.67-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 +81 -80
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +19 -7
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +59 -71
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
|
@@ -217,7 +217,66 @@ const PageMasterUiSchema = (theme) => {
|
|
|
217
217
|
},
|
|
218
218
|
disableAction: true,
|
|
219
219
|
disableSelection: true,
|
|
220
|
-
enableDrag: true
|
|
220
|
+
enableDrag: true,
|
|
221
|
+
action: [
|
|
222
|
+
{
|
|
223
|
+
type: "Control",
|
|
224
|
+
scope: "#/properties/RejectButton",
|
|
225
|
+
options: {
|
|
226
|
+
widget: "Button"
|
|
227
|
+
},
|
|
228
|
+
config: {
|
|
229
|
+
main: {
|
|
230
|
+
startIcon: "EditIcon",
|
|
231
|
+
onClick: "Edit_Components",
|
|
232
|
+
tooltipMessage: "Edit This Record",
|
|
233
|
+
name: "Edit"
|
|
234
|
+
},
|
|
235
|
+
style: {
|
|
236
|
+
fill: theme.palette.primary.main,
|
|
237
|
+
"& :hover": {
|
|
238
|
+
fill: theme.palette.primary.dark
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
type: "Control",
|
|
245
|
+
scope: "#/properties/RejectButton",
|
|
246
|
+
options: {
|
|
247
|
+
widget: "Button"
|
|
248
|
+
},
|
|
249
|
+
config: {
|
|
250
|
+
main: {
|
|
251
|
+
startIcon: "Bin",
|
|
252
|
+
onClick: "deletePopUpComponent",
|
|
253
|
+
tooltipMessage: "Reject This Record",
|
|
254
|
+
name: "Delete"
|
|
255
|
+
},
|
|
256
|
+
style: {
|
|
257
|
+
fill: theme.palette.primary.main,
|
|
258
|
+
"& :hover": {
|
|
259
|
+
fill: theme.palette.primary.dark
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
type: "Control",
|
|
266
|
+
scope: "#/properties/Copy_Component",
|
|
267
|
+
options: {
|
|
268
|
+
widget: "IconButton"
|
|
269
|
+
},
|
|
270
|
+
config: {
|
|
271
|
+
main: {
|
|
272
|
+
startIcon: "FileCopyIcon",
|
|
273
|
+
onClick: "copyPasteElement",
|
|
274
|
+
styleDefault: true,
|
|
275
|
+
name: "Copy"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
]
|
|
221
280
|
}
|
|
222
281
|
},
|
|
223
282
|
elements: [
|
|
@@ -232,77 +291,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
232
291
|
header: "Type",
|
|
233
292
|
size: 300,
|
|
234
293
|
type: "string"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
header: "Edit",
|
|
238
|
-
field: "Reject_Records",
|
|
239
|
-
size: 150,
|
|
240
|
-
type: "action",
|
|
241
|
-
widget: {
|
|
242
|
-
type: "Control",
|
|
243
|
-
scope: "#/properties/RejectButton",
|
|
244
|
-
options: {
|
|
245
|
-
widget: "IconButton"
|
|
246
|
-
},
|
|
247
|
-
config: {
|
|
248
|
-
main: {
|
|
249
|
-
icon: "TableEditIcon",
|
|
250
|
-
onClick: "Edit_Components",
|
|
251
|
-
tooltipMessage: "Edit This Record"
|
|
252
|
-
},
|
|
253
|
-
style: {
|
|
254
|
-
fill: theme.palette.primary.main,
|
|
255
|
-
"& :hover": {
|
|
256
|
-
fill: theme.palette.primary.dark
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
header: "Delete",
|
|
264
|
-
field: "Reject_Records",
|
|
265
|
-
size: 150,
|
|
266
|
-
type: "action",
|
|
267
|
-
widget: {
|
|
268
|
-
type: "Control",
|
|
269
|
-
scope: "#/properties/RejectButton",
|
|
270
|
-
options: {
|
|
271
|
-
widget: "IconButton"
|
|
272
|
-
},
|
|
273
|
-
config: {
|
|
274
|
-
main: {
|
|
275
|
-
icon: "Bin",
|
|
276
|
-
onClick: "deletePopUpComponent",
|
|
277
|
-
tooltipMessage: "Reject This Record"
|
|
278
|
-
},
|
|
279
|
-
style: {
|
|
280
|
-
fill: theme.palette.primary.main,
|
|
281
|
-
"& :hover": {
|
|
282
|
-
fill: theme.palette.primary.dark
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
header: "Copy",
|
|
290
|
-
field: "Copy_Component",
|
|
291
|
-
flex: 1,
|
|
292
|
-
widget: {
|
|
293
|
-
type: "Control",
|
|
294
|
-
scope: "#/properties/Copy_Component",
|
|
295
|
-
options: {
|
|
296
|
-
widget: "IconButton"
|
|
297
|
-
},
|
|
298
|
-
config: {
|
|
299
|
-
main: {
|
|
300
|
-
icon: "FileCopyIcon",
|
|
301
|
-
onClick: "copyPasteElement",
|
|
302
|
-
styleDefault: true
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
294
|
}
|
|
307
295
|
]
|
|
308
296
|
},
|
|
@@ -8518,7 +8506,7 @@ function refreshPage(type, store2) {
|
|
|
8518
8506
|
const lastDotIndex = path.lastIndexOf(".");
|
|
8519
8507
|
const parentPath = path.slice(0, lastDotIndex);
|
|
8520
8508
|
const parentObj = _.get(currentConfig, parentPath);
|
|
8521
|
-
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8509
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
|
|
8522
8510
|
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8523
8511
|
type: "Control",
|
|
8524
8512
|
scope: "#/properties/columnFormat",
|
|
@@ -10372,7 +10360,7 @@ var service = (funcParams) => {
|
|
|
10372
10360
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10373
10361
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10374
10362
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10375
|
-
detail: { pageName: config2.label
|
|
10363
|
+
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10376
10364
|
});
|
|
10377
10365
|
window.dispatchEvent(event2);
|
|
10378
10366
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -12572,13 +12560,26 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12572
12560
|
});
|
|
12573
12561
|
}
|
|
12574
12562
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12575
|
-
|
|
12563
|
+
const commonProperties = {
|
|
12576
12564
|
accessorKey: cellElem.name,
|
|
12565
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12577
12566
|
header: cellElem.label || cellElem.name,
|
|
12578
12567
|
size: sizeMap[cellElem.name] || 180,
|
|
12579
|
-
|
|
12580
|
-
|
|
12568
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12569
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12570
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12571
|
+
columnKey: cellElem.columnKey
|
|
12581
12572
|
};
|
|
12573
|
+
if (cellElem.type) {
|
|
12574
|
+
const tableElem = {
|
|
12575
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12576
|
+
...commonProperties,
|
|
12577
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12578
|
+
};
|
|
12579
|
+
return tableElem;
|
|
12580
|
+
} else {
|
|
12581
|
+
return { ...commonProperties };
|
|
12582
|
+
}
|
|
12582
12583
|
});
|
|
12583
12584
|
} else if (config2.type == "Table") {
|
|
12584
12585
|
const sizeMap = {};
|
|
@@ -12593,7 +12594,7 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12593
12594
|
config2.elements.filter((cellElem, elemInd) => {
|
|
12594
12595
|
const commonProperties = {
|
|
12595
12596
|
accessorKey: cellElem.name,
|
|
12596
|
-
type: cellElem.columnFormat,
|
|
12597
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12597
12598
|
header: cellElem.label || cellElem.name,
|
|
12598
12599
|
size: sizeMap[cellElem.name] || 180,
|
|
12599
12600
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
@@ -12614,8 +12615,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12614
12615
|
}
|
|
12615
12616
|
const tableElem = {
|
|
12616
12617
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12617
|
-
|
|
12618
|
-
...
|
|
12618
|
+
...commonProperties,
|
|
12619
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12619
12620
|
};
|
|
12620
12621
|
rowElements.push(tableElem);
|
|
12621
12622
|
} else {
|