impaktapps-ui-builder 1.0.55 → 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 +22 -22
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- 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/buildButton.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +3 -1
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -5
|
@@ -8297,7 +8297,7 @@ var buildConfig = (FormData) => {
|
|
|
8297
8297
|
};
|
|
8298
8298
|
const createLayoutFormat = (layout, type) => {
|
|
8299
8299
|
if (_.isEmpty(layout)) {
|
|
8300
|
-
const fullLayoutComponents = ["
|
|
8300
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought"];
|
|
8301
8301
|
if (fullLayoutComponents.includes(type)) {
|
|
8302
8302
|
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8303
8303
|
} else if (type === "Graph") {
|
|
@@ -8966,14 +8966,14 @@ const EventSchema = {
|
|
|
8966
8966
|
{ title: "Start", const: "onStart" },
|
|
8967
8967
|
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8968
8968
|
{ title: "Upload", const: "onUpload" },
|
|
8969
|
+
{ title: "FileDelete", const: "onFileDelete" },
|
|
8970
|
+
{ title: "Download", const: "onDownload" },
|
|
8969
8971
|
{ title: "Back", const: "onBack" },
|
|
8970
8972
|
{ title: "Next", const: "onNext" },
|
|
8971
8973
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
8972
8974
|
{ title: "Download", const: "onDownload" },
|
|
8973
8975
|
{ title: "Fail", const: "Fail" },
|
|
8974
|
-
{ title: "Key Down", const: "onKeyDown" }
|
|
8975
|
-
{ title: "PopUP NO Event", const: "onDeletePopupNo" },
|
|
8976
|
-
{ title: "PopUP Yes Event", const: "onDeletePopupYes" }
|
|
8976
|
+
{ title: "Key Down", const: "onKeyDown" }
|
|
8977
8977
|
]
|
|
8978
8978
|
},
|
|
8979
8979
|
Handler: {
|
|
@@ -10500,11 +10500,8 @@ var service = (funcParams) => {
|
|
|
10500
10500
|
onKeyDown: function() {
|
|
10501
10501
|
this.callHandler("onKeyDown");
|
|
10502
10502
|
},
|
|
10503
|
-
|
|
10504
|
-
this.callHandler("
|
|
10505
|
-
},
|
|
10506
|
-
onDeletePopupYes: function() {
|
|
10507
|
-
this.callHandler("onDeletePopupYes");
|
|
10503
|
+
onFileDelete: function() {
|
|
10504
|
+
this.callHandler("onFileDelete");
|
|
10508
10505
|
},
|
|
10509
10506
|
onMount: function() {
|
|
10510
10507
|
this.callHandler("onMount");
|
|
@@ -10681,7 +10678,7 @@ const buildLeaderBoard = (config2) => {
|
|
|
10681
10678
|
LeaderBoard.config.main.scoreKey = config2.scoreKey;
|
|
10682
10679
|
}
|
|
10683
10680
|
if (config2.layout) {
|
|
10684
|
-
LeaderBoard.config.layout = createLayoutFormat(config2.layout);
|
|
10681
|
+
LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10685
10682
|
}
|
|
10686
10683
|
if (config2.style) {
|
|
10687
10684
|
LeaderBoard.config.style = JSON.parse(config2.style);
|
|
@@ -10808,7 +10805,7 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10808
10805
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
10809
10806
|
horizontalBarGraph.scope = componentScope2;
|
|
10810
10807
|
if (config2.layout) {
|
|
10811
|
-
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10808
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10812
10809
|
}
|
|
10813
10810
|
horizontalBarGraph.config.main.type = config2.graphType;
|
|
10814
10811
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -10940,7 +10937,7 @@ const buildSpeedoMeter = (config2, componentScope2) => {
|
|
|
10940
10937
|
const buildPieGraph = (config2, componentScope2) => {
|
|
10941
10938
|
const pieGraph = _.cloneDeep(PieGraph);
|
|
10942
10939
|
if (config2.layout) {
|
|
10943
|
-
pieGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10940
|
+
pieGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10944
10941
|
}
|
|
10945
10942
|
if (config2.height) {
|
|
10946
10943
|
pieGraph.config.style.containerStyle.height = config2.height;
|
|
@@ -10965,7 +10962,7 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
10965
10962
|
var _a;
|
|
10966
10963
|
const barGraph = _.cloneDeep(BarGraph);
|
|
10967
10964
|
if (config2.layout) {
|
|
10968
|
-
barGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10965
|
+
barGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10969
10966
|
}
|
|
10970
10967
|
if (config2.legendHide) {
|
|
10971
10968
|
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
@@ -11035,6 +11032,9 @@ var Tabsection = {
|
|
|
11035
11032
|
const buildTabSection = (config2, componentScope2) => {
|
|
11036
11033
|
const tab = _.cloneDeep(Tabsection);
|
|
11037
11034
|
tab.scope = componentScope2;
|
|
11035
|
+
if (config2.style) {
|
|
11036
|
+
tab.config.style = JSON.parse(config2.style);
|
|
11037
|
+
}
|
|
11038
11038
|
if (config2.lazyLoad) {
|
|
11039
11039
|
tab.config.main.lazyLoad = config2.lazyLoad === "YES" ? true : false;
|
|
11040
11040
|
}
|
|
@@ -11073,7 +11073,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11073
11073
|
wrapper.config.style = JSON.parse(config2.style);
|
|
11074
11074
|
}
|
|
11075
11075
|
if (config2.layout) {
|
|
11076
|
-
wrapper.config.layout = createLayoutFormat(config2.layout);
|
|
11076
|
+
wrapper.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11077
11077
|
}
|
|
11078
11078
|
return wrapper;
|
|
11079
11079
|
};
|
|
@@ -11177,7 +11177,7 @@ const buildButton = (config2, componentScope2) => {
|
|
|
11177
11177
|
config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
|
|
11178
11178
|
}
|
|
11179
11179
|
if (config2.layout) {
|
|
11180
|
-
button.config.layout = createLayoutFormat(config2.layout);
|
|
11180
|
+
button.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11181
11181
|
}
|
|
11182
11182
|
if (config2.tooltipMessage) {
|
|
11183
11183
|
button.config.main.tooltipMessage = config2.tooltipMessage;
|
|
@@ -11812,7 +11812,7 @@ const buildTextArea = (config2, componentScope2) => {
|
|
|
11812
11812
|
const textArea = _.cloneDeep(TextArea);
|
|
11813
11813
|
textArea.config.main.heading = config2.label;
|
|
11814
11814
|
if (config2.layout) {
|
|
11815
|
-
textArea.config.layout = createLayoutFormat(config2.layout);
|
|
11815
|
+
textArea.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11816
11816
|
}
|
|
11817
11817
|
if (config2.style) {
|
|
11818
11818
|
textArea.config.style = JSON.parse(config2.style);
|
|
@@ -11879,7 +11879,7 @@ const buildCheckbox = (config2, componentScope2) => {
|
|
|
11879
11879
|
const buildLineGraph = (config2, componentScope2) => {
|
|
11880
11880
|
const lineGraph = _.cloneDeep(LineGraph);
|
|
11881
11881
|
if (config2.layout) {
|
|
11882
|
-
lineGraph.config.layout = createLayoutFormat(config2.layout);
|
|
11882
|
+
lineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11883
11883
|
}
|
|
11884
11884
|
lineGraph.config.main.header = config2.heading;
|
|
11885
11885
|
if (config2.height) {
|
|
@@ -12148,7 +12148,7 @@ const buildPopUp = (config2, componentScope2) => {
|
|
|
12148
12148
|
popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
|
|
12149
12149
|
popup.config.main.maxWidth = config2.maxWidth || false;
|
|
12150
12150
|
if (config2.layout) {
|
|
12151
|
-
popup.config.layout = createLayoutFormat(config2.layout);
|
|
12151
|
+
popup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12152
12152
|
}
|
|
12153
12153
|
if (config2.style) {
|
|
12154
12154
|
PopUP.config.style = JSON.parse(config2.style);
|
|
@@ -12188,10 +12188,10 @@ const buildDataGrid = (config2, componentScope2) => {
|
|
|
12188
12188
|
DataGrid.config.main.label = config2.label;
|
|
12189
12189
|
}
|
|
12190
12190
|
if (config2.layout) {
|
|
12191
|
-
DataGrid.config.layout = createLayoutFormat(config2.layout);
|
|
12191
|
+
DataGrid.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12192
12192
|
}
|
|
12193
12193
|
if (config2.cardLayout) {
|
|
12194
|
-
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
|
|
12194
|
+
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout, config2.type);
|
|
12195
12195
|
}
|
|
12196
12196
|
if (config2.style) {
|
|
12197
12197
|
DataGrid.config.style = JSON.parse(config2.style);
|
|
@@ -12269,7 +12269,7 @@ const buildTreeMap = (config2, componentScope2) => {
|
|
|
12269
12269
|
treMap.config.main.header = config2.label;
|
|
12270
12270
|
}
|
|
12271
12271
|
if (config2.layout) {
|
|
12272
|
-
treMap.config.layout = createLayoutFormat(config2.layout);
|
|
12272
|
+
treMap.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12273
12273
|
}
|
|
12274
12274
|
if (config2.orientation) {
|
|
12275
12275
|
treMap.config.main.orientation = config2.orientation;
|
|
@@ -12312,7 +12312,7 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12312
12312
|
thought.config.main.thought = `${config2.thought}`;
|
|
12313
12313
|
}
|
|
12314
12314
|
if (config2.layout) {
|
|
12315
|
-
thought.config.layout = createLayoutFormat(config2.layout);
|
|
12315
|
+
thought.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12316
12316
|
}
|
|
12317
12317
|
if (config2.label) {
|
|
12318
12318
|
thought.config.main.label = config2.label;
|