impaktapps-ui-builder 1.0.56 → 1.0.57-alpha.100
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 +8 -11
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +5 -4
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -2
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -5
|
@@ -12,8 +12,7 @@ declare const _default: (funcParams: funcParamsProps) => {
|
|
|
12
12
|
onCellRenderer: (cellParams: any) => {};
|
|
13
13
|
onClick: () => void;
|
|
14
14
|
onKeyDown: () => void;
|
|
15
|
-
|
|
16
|
-
onDeletePopupYes: () => void;
|
|
15
|
+
onFileDelete: () => void;
|
|
17
16
|
onMount: () => void;
|
|
18
17
|
onFileDownload: () => void;
|
|
19
18
|
onFileUpload: () => void;
|
package/package.json
CHANGED
|
@@ -45,6 +45,7 @@ export let schema = {
|
|
|
45
45
|
properties: {},
|
|
46
46
|
required: []
|
|
47
47
|
};
|
|
48
|
+
//MultipleSelect
|
|
48
49
|
function buildRule(configObj: any, tableName?: string, arrayHolderName?: boolean) {
|
|
49
50
|
if (arrayHolderName) {
|
|
50
51
|
if (schema.properties?.[tableName]?.items?.properties) {
|
|
@@ -140,7 +141,7 @@ function buildRule(configObj: any, tableName?: string, arrayHolderName?: boolean
|
|
|
140
141
|
export const buildSchema = (config: any, tableName?: string, isArrayType?: boolean) => {
|
|
141
142
|
buildRule(config, tableName, isArrayType);
|
|
142
143
|
if (config?.elements) {
|
|
143
|
-
if (config.type == "Array") {
|
|
144
|
+
if ( config.type == "Array") {
|
|
144
145
|
if (!schema.properties[config.name]) {
|
|
145
146
|
schema.properties[config.name] = {
|
|
146
147
|
type: "array",
|
|
@@ -157,7 +158,7 @@ export const buildSchema = (config: any, tableName?: string, isArrayType?: boole
|
|
|
157
158
|
}
|
|
158
159
|
else {
|
|
159
160
|
config.elements.map((e, elemInd) => {
|
|
160
|
-
buildSchema(e
|
|
161
|
+
buildSchema(e)
|
|
161
162
|
})
|
|
162
163
|
}
|
|
163
164
|
}
|
|
@@ -350,7 +351,7 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
350
351
|
config.elements.filter((cellElem, elemInd) => {
|
|
351
352
|
const commonProperties = {
|
|
352
353
|
accessorKey: cellElem.name,
|
|
353
|
-
type: cellElem.columnFormat,
|
|
354
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
354
355
|
header: cellElem.label || cellElem.name,
|
|
355
356
|
size: sizeMap[cellElem.name] || 180,
|
|
356
357
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
@@ -366,7 +367,7 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
366
367
|
}
|
|
367
368
|
if (cellElem.elementType == "tableHeader") {
|
|
368
369
|
const headerElem = buildUiSchema(cellElem, store);
|
|
369
|
-
tableHeaderElements.push({
|
|
370
|
+
tableHeaderElements.push({widget:headerElem});
|
|
370
371
|
return false;
|
|
371
372
|
}
|
|
372
373
|
const tableElem = {
|
|
@@ -46,14 +46,16 @@ export const EventSchema = {
|
|
|
46
46
|
{ title: "Start", const: "onStart" },
|
|
47
47
|
{ title: "Cell Render", const: "onCellRenderer" },
|
|
48
48
|
{ title: "Upload", const: "onUpload" },
|
|
49
|
+
{ title: "FileDelete", const: "onFileDelete" },
|
|
50
|
+
{ title: "Download", const: "onDownload" },
|
|
49
51
|
{ title: "Back", const: "onBack" },
|
|
50
52
|
{ title: "Next", const: "onNext" },
|
|
51
53
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
52
54
|
{ title: "Download", const: "onDownload" },
|
|
53
55
|
{ title: "Fail", const: "Fail" },
|
|
54
56
|
{ title: "Key Down", const: "onKeyDown" },
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
|
|
58
|
+
|
|
57
59
|
]
|
|
58
60
|
},
|
|
59
61
|
Handler: {
|
|
@@ -67,7 +67,7 @@ export function refreshPage(type: string, store: any) {
|
|
|
67
67
|
|
|
68
68
|
const parentObj = _.get(currentConfig, parentPath)
|
|
69
69
|
|
|
70
|
-
if(parentObj?.type === "Table"){
|
|
70
|
+
if(parentObj?.type === "Table" || "ColumnGroup"){
|
|
71
71
|
UiSchema.elements[0].elements[0].elements[4] =
|
|
72
72
|
{
|
|
73
73
|
type: "Control",
|
|
@@ -236,11 +236,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
236
236
|
onKeyDown: function () {
|
|
237
237
|
this.callHandler("onKeyDown")
|
|
238
238
|
},
|
|
239
|
-
|
|
240
|
-
this.callHandler("
|
|
241
|
-
},
|
|
242
|
-
onDeletePopupYes: function () {
|
|
243
|
-
this.callHandler("onDeletePopupYes")
|
|
239
|
+
onFileDelete: function () {
|
|
240
|
+
this.callHandler("onFileDelete")
|
|
244
241
|
},
|
|
245
242
|
onMount: function () {
|
|
246
243
|
this.callHandler("onMount")
|