impaktapps-ui-builder 0.0.390 → 0.0.392
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 +16 -6
- 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/dist/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +8 -6
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -2
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -2
|
@@ -11,7 +11,7 @@ interface funcParamsProps {
|
|
|
11
11
|
declare const _default: (funcParams: funcParamsProps) => {
|
|
12
12
|
setPage: () => Promise<void>;
|
|
13
13
|
onClick: () => Promise<void>;
|
|
14
|
-
|
|
14
|
+
onMount: () => Promise<void>;
|
|
15
15
|
onFileDownload: () => Promise<void>;
|
|
16
16
|
onFileUpload: () => Promise<void>;
|
|
17
17
|
onPaginationChange: (paginationValues: any) => Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import leaderBoard from "./uischema/leaderBoard";
|
|
2
|
-
import
|
|
2
|
+
import buildUiSchema from "./buildUiSchema";
|
|
3
3
|
import _ from "lodash";
|
|
4
|
+
import { createLayoutFormat } from "./buildConfig";
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
export const buildLeaderBoard = (config) => {
|
|
7
|
-
const LeaderBoard:any = _.cloneDeep(leaderBoard)
|
|
8
|
+
const LeaderBoard: any = _.cloneDeep(leaderBoard)
|
|
8
9
|
if (config.elements) {
|
|
9
10
|
const modifyColumns = config.elements.map((e, i) => {
|
|
10
11
|
if (!e.type) {
|
|
11
|
-
return {accessorKey: e.name, header: e.label||e.name, }
|
|
12
|
+
return { accessorKey: e.name, header: e.label || e.name, }
|
|
12
13
|
}
|
|
13
|
-
const widgetSchema = {widget:buildUiSchema(e), accessorKey: e.name,header: e.label||e.name, };
|
|
14
|
-
return {...widgetSchema };
|
|
14
|
+
const widgetSchema = { widget: buildUiSchema(e), accessorKey: e.name, header: e.label || e.name, };
|
|
15
|
+
return { ...widgetSchema };
|
|
15
16
|
})
|
|
16
17
|
LeaderBoard.elements[9].elements = modifyColumns;
|
|
17
18
|
}
|
|
19
|
+
LeaderBoard.config.main.label = config.label
|
|
18
20
|
if (config.name) {
|
|
19
21
|
LeaderBoard.elements[0].scope = `#/properties/${config.name}/properties/firstImage`;
|
|
20
22
|
LeaderBoard.elements[3].scope = `#/properties/${config.name}/properties/firstName`
|
|
@@ -34,7 +36,7 @@ export const buildLeaderBoard = (config) => {
|
|
|
34
36
|
LeaderBoard.elements[2].config.main.url = config.thirdImage;
|
|
35
37
|
}
|
|
36
38
|
if (config.layout) {
|
|
37
|
-
LeaderBoard.config.layout = config.layout;
|
|
39
|
+
LeaderBoard.config.layout = createLayoutFormat(config.layout);
|
|
38
40
|
}
|
|
39
41
|
return LeaderBoard
|
|
40
42
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import Tabsection from "./uischema/tabsection";
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
|
|
5
4
|
export const buildTabSection = (config:any,componentScope:string) => {
|
|
6
5
|
const tab: any = _.cloneDeep(Tabsection);
|
|
6
|
+
tab.scopeName = componentScope;
|
|
7
|
+
if(config.orientation){
|
|
8
|
+
tab.config.main.orientation = config.orientation === "YES" ?'vertical':'horizontal';
|
|
9
|
+
}
|
|
7
10
|
if (config.sectionLabels) {
|
|
8
11
|
tab.config.main.tabLabels = config.sectionLabels.map(e => e.label);
|
|
9
12
|
}
|
|
@@ -4,6 +4,7 @@ import _ from "lodash";
|
|
|
4
4
|
|
|
5
5
|
export const buildWrapperSection = (config,componentScope) =>{
|
|
6
6
|
const wrapper: any = _.cloneDeep(WrapperSection);
|
|
7
|
+
wrapper.scopeName = componentScope;
|
|
7
8
|
wrapper.config.main.label = config.label;
|
|
8
9
|
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
9
10
|
if (config.style) {
|
|
@@ -371,6 +371,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
371
371
|
|
|
372
372
|
case "TabSection":
|
|
373
373
|
uiSchema.elements = [
|
|
374
|
+
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),EmptyBox,
|
|
374
375
|
getArrayControl("sectionLabels", "label"),
|
|
375
376
|
]
|
|
376
377
|
break;
|
|
@@ -41,7 +41,7 @@ export const EventSchema = {
|
|
|
41
41
|
{ title: "Click Event", const: "onClick" },
|
|
42
42
|
{ title: "Load Event", const: "onLoad" },
|
|
43
43
|
{ title: "Change Event", const: "onChange" },
|
|
44
|
-
{ title: "
|
|
44
|
+
{ title: "Mount Event", const: "onMount" },
|
|
45
45
|
{ title: "Success", const: "Success" },
|
|
46
46
|
{ title: "onStart", const: "onStart" },
|
|
47
47
|
|
|
@@ -91,8 +91,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
91
91
|
onClick: async function () {
|
|
92
92
|
await this.callHandler("onClick")
|
|
93
93
|
},
|
|
94
|
-
|
|
95
|
-
await this.callHandler("
|
|
94
|
+
onMount: async function () {
|
|
95
|
+
await this.callHandler("onMount")
|
|
96
96
|
},
|
|
97
97
|
onFileDownload: async function () {
|
|
98
98
|
await this.callHandler("onDownload")
|