impaktapps-ui-builder 1.0.56 → 1.0.57-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 +9 -9
- 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/buildTabSection.ts +3 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -3
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -2
- 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
|
@@ -4,7 +4,9 @@ import _ from "lodash";
|
|
|
4
4
|
export const buildTabSection = (config:any,componentScope:string) => {
|
|
5
5
|
const tab: any = _.cloneDeep(Tabsection);
|
|
6
6
|
tab.scope = componentScope;
|
|
7
|
-
|
|
7
|
+
if (config.style) {
|
|
8
|
+
tab.config.style = JSON.parse(config.style)
|
|
9
|
+
}
|
|
8
10
|
if(config.lazyLoad){
|
|
9
11
|
tab.config.main.lazyLoad = config.lazyLoad === "YES" ?true:false;
|
|
10
12
|
}
|
|
@@ -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
|
}
|
|
@@ -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: {
|
|
@@ -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")
|