impaktapps-ui-builder 1.0.290-hdb → 1.0.292-hdb
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 +46 -101
- 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/builder/build/uischema/tableSection.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +0 -3
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -7
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +0 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +0 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -8
- package/src/impaktapps-ui-builder/builder/services/component.ts +40 -10
- package/src/impaktapps-ui-builder/runtime/services/service.ts +0 -22
- package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +0 -22
- package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +0 -38
- package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +0 -13
|
@@ -6272,7 +6272,6 @@ const ComponentSchema = {
|
|
|
6272
6272
|
{ title: "Rank", const: "Rank" },
|
|
6273
6273
|
{ title: "Rank Card", const: "RankCard" },
|
|
6274
6274
|
{ title: "Metric Card", const: "MetricCard" },
|
|
6275
|
-
{ title: "Hierarchy Chart", const: "HierarchyChart" },
|
|
6276
6275
|
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6277
6276
|
{ title: "Table", const: "Table" },
|
|
6278
6277
|
{ title: "Tabs", const: "TabSection" },
|
|
@@ -6336,13 +6335,6 @@ const ComponentSchema = {
|
|
|
6336
6335
|
{ title: "Standard", const: "standard" }
|
|
6337
6336
|
]
|
|
6338
6337
|
},
|
|
6339
|
-
linkType: {
|
|
6340
|
-
oneOf: [
|
|
6341
|
-
{ title: "Step", const: "step" },
|
|
6342
|
-
{ title: "Diagonal", const: "diagonal" },
|
|
6343
|
-
{ title: "Line", const: "line" }
|
|
6344
|
-
]
|
|
6345
|
-
},
|
|
6346
6338
|
positionVertical: {
|
|
6347
6339
|
oneOf: [
|
|
6348
6340
|
{ title: "Top", const: "top" },
|
|
@@ -8160,18 +8152,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8160
8152
|
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
8161
8153
|
];
|
|
8162
8154
|
break;
|
|
8163
|
-
case "HierarchyChart":
|
|
8164
|
-
uiSchema.elements = [
|
|
8165
|
-
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8166
|
-
getSelectField("linkType", "Link Type"),
|
|
8167
|
-
getInputField("nodeWidth", "Node Width"),
|
|
8168
|
-
getInputField("nodeHeight", "Node Height"),
|
|
8169
|
-
getRadioInputField("isExpandAll", "Expand All", ["YES", "NO"]),
|
|
8170
|
-
getInputField("chartHeight", "Chart Height"),
|
|
8171
|
-
getInputField("stepPercent", "Link Bend Position"),
|
|
8172
|
-
emptyBox$1("HierarchyChart", { xs: 6, sm: 6, md: 0, lg: 3 })
|
|
8173
|
-
];
|
|
8174
|
-
break;
|
|
8175
8155
|
case "MetricCard":
|
|
8176
8156
|
uiSchema.elements = [
|
|
8177
8157
|
getInputField("url", "Image Url"),
|
|
@@ -8415,13 +8395,13 @@ const StyleSection = {
|
|
|
8415
8395
|
}
|
|
8416
8396
|
]
|
|
8417
8397
|
};
|
|
8418
|
-
const TableSection = (theme) => {
|
|
8398
|
+
const TableSection = (theme, scopeName = "elements") => {
|
|
8419
8399
|
const uiSchema = {
|
|
8420
8400
|
type: "HorizontalLayout",
|
|
8421
8401
|
elements: [
|
|
8422
8402
|
{
|
|
8423
8403
|
type: "Control",
|
|
8424
|
-
scope:
|
|
8404
|
+
scope: `#/properties/${scopeName}`,
|
|
8425
8405
|
options: {
|
|
8426
8406
|
widget: "Table"
|
|
8427
8407
|
},
|
|
@@ -8432,7 +8412,7 @@ const TableSection = (theme) => {
|
|
|
8432
8412
|
{
|
|
8433
8413
|
widget: {
|
|
8434
8414
|
type: "Control",
|
|
8435
|
-
scope:
|
|
8415
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
8436
8416
|
options: {
|
|
8437
8417
|
widget: "IconButton"
|
|
8438
8418
|
},
|
|
@@ -8459,7 +8439,7 @@ const TableSection = (theme) => {
|
|
|
8459
8439
|
{
|
|
8460
8440
|
widget: {
|
|
8461
8441
|
type: "Control",
|
|
8462
|
-
scope: "
|
|
8442
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
8463
8443
|
options: {
|
|
8464
8444
|
widget: "IconButton"
|
|
8465
8445
|
},
|
|
@@ -8524,7 +8504,7 @@ const TableSection = (theme) => {
|
|
|
8524
8504
|
},
|
|
8525
8505
|
{
|
|
8526
8506
|
type: "Control",
|
|
8527
|
-
scope: "
|
|
8507
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
8528
8508
|
options: {
|
|
8529
8509
|
widget: "Button"
|
|
8530
8510
|
},
|
|
@@ -8717,6 +8697,10 @@ var buildConfig = (FormData) => {
|
|
|
8717
8697
|
if (formData.events) {
|
|
8718
8698
|
delete formData.events;
|
|
8719
8699
|
}
|
|
8700
|
+
if (formData.tabLabelsElements) {
|
|
8701
|
+
component.tabLabelsElements = formData.tabLabelsElements || [];
|
|
8702
|
+
delete formData.tabLabelsElements;
|
|
8703
|
+
}
|
|
8720
8704
|
component = { ...formData, ...component };
|
|
8721
8705
|
return component;
|
|
8722
8706
|
};
|
|
@@ -8875,7 +8859,7 @@ const sectionLabels = {
|
|
|
8875
8859
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8876
8860
|
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8877
8861
|
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8878
|
-
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8862
|
+
TabSection: ["Core", "Components", "TabLebelComponet", "Properties", "Style", "Validation"],
|
|
8879
8863
|
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8880
8864
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8881
8865
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -8887,7 +8871,6 @@ const sectionLabels = {
|
|
|
8887
8871
|
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8888
8872
|
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8889
8873
|
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8890
|
-
HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8891
8874
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8892
8875
|
Timer: ["Core", "Events", "Style"],
|
|
8893
8876
|
Rank: ["Core", "Events", "Style"],
|
|
@@ -8924,6 +8907,7 @@ function refreshPage(type, store2) {
|
|
|
8924
8907
|
Style: StyleSection,
|
|
8925
8908
|
Events: EventSection(store2.theme.myTheme),
|
|
8926
8909
|
Components: TableSection(store2.theme.myTheme),
|
|
8910
|
+
TabLebelComponet: TableSection(store2.theme.myTheme, "tabLabelsElements"),
|
|
8927
8911
|
Properties: buildPropertiesSection(type),
|
|
8928
8912
|
Validation: ValidationSection
|
|
8929
8913
|
};
|
|
@@ -9121,8 +9105,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9121
9105
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9122
9106
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9123
9107
|
if (path) {
|
|
9124
|
-
|
|
9125
|
-
|
|
9108
|
+
let finalPath = `${path}`;
|
|
9109
|
+
if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabels")) {
|
|
9110
|
+
finalPath = `${finalPath}.tabLabelsElements[${rowId}]`;
|
|
9111
|
+
} else {
|
|
9112
|
+
finalPath = `${finalPath}.elements[${rowId}]`;
|
|
9113
|
+
}
|
|
9126
9114
|
store2.searchParams.set("path", finalPath);
|
|
9127
9115
|
store2.setSearchParams(store2.searchParams);
|
|
9128
9116
|
this.setPage();
|
|
@@ -9134,7 +9122,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9134
9122
|
var _a;
|
|
9135
9123
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9136
9124
|
const rowId = sessionStorage.getItem("rowId");
|
|
9137
|
-
|
|
9125
|
+
const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
|
|
9126
|
+
if (isTabLabelElements) {
|
|
9127
|
+
store2.formData.tabLabelsElements.splice(rowId, 1);
|
|
9128
|
+
} else {
|
|
9129
|
+
store2.formData.elements.splice(rowId, 1);
|
|
9130
|
+
}
|
|
9138
9131
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9139
9132
|
const data = path ? _.get(response, path) : response;
|
|
9140
9133
|
store2.setFormdata(data);
|
|
@@ -9142,6 +9135,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9142
9135
|
store2.updateDialog("popUpComponentSection");
|
|
9143
9136
|
}
|
|
9144
9137
|
sessionStorage.removeItem("rowId");
|
|
9138
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
9145
9139
|
},
|
|
9146
9140
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
9147
9141
|
var _a;
|
|
@@ -9162,9 +9156,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9162
9156
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9163
9157
|
store2.formData.elements = [];
|
|
9164
9158
|
}
|
|
9159
|
+
if (!Array.isArray(store2.formData.tabLabelsElements)) {
|
|
9160
|
+
store2.formData.tabLabelsElements = [];
|
|
9161
|
+
}
|
|
9165
9162
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9166
9163
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9167
|
-
|
|
9164
|
+
let finalPath = `${path}`;
|
|
9165
|
+
if (dynamicData2.path.startsWith("tabLabels")) {
|
|
9166
|
+
finalPath = `${finalPath}.tabLabelsElements[${store2.formData.tabLabelsElements.length}]`;
|
|
9167
|
+
} else {
|
|
9168
|
+
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9169
|
+
}
|
|
9168
9170
|
store2.searchParams.set("path", finalPath);
|
|
9169
9171
|
store2.setSearchParams(store2.searchParams);
|
|
9170
9172
|
this.setPage();
|
|
@@ -9199,6 +9201,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9199
9201
|
deletePopUpComponent: function() {
|
|
9200
9202
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9201
9203
|
sessionStorage.setItem("rowId", rowId);
|
|
9204
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabels") ? "true" : "false");
|
|
9202
9205
|
store2.updateDialog("popUpComponentSection");
|
|
9203
9206
|
},
|
|
9204
9207
|
deletePopUpEvent: function() {
|
|
@@ -9245,9 +9248,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9245
9248
|
if (!Array.isArray(store2.formData.events)) {
|
|
9246
9249
|
store2.formData.events = [];
|
|
9247
9250
|
}
|
|
9251
|
+
if (!Array.isArray(store2.formData.tabLabelsElements)) {
|
|
9252
|
+
store2.formData.tabLabelsElements = [];
|
|
9253
|
+
}
|
|
9248
9254
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
9249
9255
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
9250
|
-
const
|
|
9256
|
+
const currentLength = {
|
|
9257
|
+
"TabsComponent": formData.tabLabelsElements.length,
|
|
9258
|
+
"Component": formData.elements.length,
|
|
9259
|
+
"Events": formData.events.length
|
|
9260
|
+
};
|
|
9261
|
+
const insertElementIndex = currentLength[elementType] || 0;
|
|
9251
9262
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
9252
9263
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
9253
9264
|
const notificationMessages = {
|
|
@@ -9282,6 +9293,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9282
9293
|
if (elementType === "Component") {
|
|
9283
9294
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
9284
9295
|
}
|
|
9296
|
+
if (elementType === "TabsComponent") {
|
|
9297
|
+
return `${parentPath}.tabLabelsElements[${rowId}]`;
|
|
9298
|
+
}
|
|
9285
9299
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
9286
9300
|
},
|
|
9287
9301
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -10957,28 +10971,6 @@ var service = (funcParams) => {
|
|
|
10957
10971
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10958
10972
|
return response == null ? void 0 : response.data;
|
|
10959
10973
|
},
|
|
10960
|
-
onNodeExpandChange: async function(param) {
|
|
10961
|
-
const apiBody = [
|
|
10962
|
-
{ key: "expandedNodeId", value: param.expandedNodeId }
|
|
10963
|
-
];
|
|
10964
|
-
const response = await this.callExecuteEvents(param, apiBody, "onLoad");
|
|
10965
|
-
return response == null ? void 0 : response.data;
|
|
10966
|
-
},
|
|
10967
|
-
onNodeSearchChange: async function(param) {
|
|
10968
|
-
const apiBody = [
|
|
10969
|
-
{ key: "searchTerm", value: param.searchTerm }
|
|
10970
|
-
];
|
|
10971
|
-
const response = await this.callExecuteEvents(param, apiBody, "onLoad");
|
|
10972
|
-
return response == null ? void 0 : response.data;
|
|
10973
|
-
},
|
|
10974
|
-
onSearchNodeSelect: async function(param) {
|
|
10975
|
-
const apiBody = [
|
|
10976
|
-
{ key: "selectedNodeId", value: param.selectedNodeId },
|
|
10977
|
-
{ key: "uncollapsedIds", value: param.uncollapsedIds }
|
|
10978
|
-
];
|
|
10979
|
-
const response = await this.callExecuteEvents(param, apiBody, "onLoad");
|
|
10980
|
-
return response == null ? void 0 : response.data;
|
|
10981
|
-
},
|
|
10982
10974
|
getSelectOptions: async function(param) {
|
|
10983
10975
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10984
10976
|
const apiBody = [
|
|
@@ -13353,50 +13345,6 @@ const buildPdfViewer = (config2, componentScope2) => {
|
|
|
13353
13345
|
}
|
|
13354
13346
|
return PdfViewer;
|
|
13355
13347
|
};
|
|
13356
|
-
const HierarchyChart = {
|
|
13357
|
-
type: "Control",
|
|
13358
|
-
scope: "#/properties/HierarchyChart",
|
|
13359
|
-
options: {
|
|
13360
|
-
widget: "HierarchyChart"
|
|
13361
|
-
},
|
|
13362
|
-
config: {
|
|
13363
|
-
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13364
|
-
main: {},
|
|
13365
|
-
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
13366
|
-
}
|
|
13367
|
-
};
|
|
13368
|
-
const buildHierarchyChart = (config2, componentScope2, store2) => {
|
|
13369
|
-
const hierarchyChart = _.cloneDeep(HierarchyChart);
|
|
13370
|
-
hierarchyChart.scope = componentScope2;
|
|
13371
|
-
if (config2.style) {
|
|
13372
|
-
hierarchyChart.config.style = JSON.parse(config2.style);
|
|
13373
|
-
}
|
|
13374
|
-
if (config2.layout) {
|
|
13375
|
-
hierarchyChart.config.layout = createLayoutFormat(config2.layout);
|
|
13376
|
-
}
|
|
13377
|
-
if (config2.linkType) {
|
|
13378
|
-
hierarchyChart.config.main.linkType = config2.linkType;
|
|
13379
|
-
}
|
|
13380
|
-
if (config2.stepPercent) {
|
|
13381
|
-
hierarchyChart.config.main.stepPercent = config2.stepPercent;
|
|
13382
|
-
}
|
|
13383
|
-
if (config2.nodeWidth) {
|
|
13384
|
-
hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
|
|
13385
|
-
}
|
|
13386
|
-
if (config2.nodeHeight) {
|
|
13387
|
-
hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
|
|
13388
|
-
}
|
|
13389
|
-
if (config2.chartHeight) {
|
|
13390
|
-
hierarchyChart.config.main.chartHeight = config2.chartHeight;
|
|
13391
|
-
}
|
|
13392
|
-
if (config2.lazyLoading) {
|
|
13393
|
-
hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
13394
|
-
}
|
|
13395
|
-
if (config2.isExpandAll) {
|
|
13396
|
-
hierarchyChart.config.main.isExpandAll = config2.isExpandAll === "YES" ? true : false;
|
|
13397
|
-
}
|
|
13398
|
-
return hierarchyChart;
|
|
13399
|
-
};
|
|
13400
13348
|
let schema = {
|
|
13401
13349
|
type: "object",
|
|
13402
13350
|
properties: {},
|
|
@@ -13560,9 +13508,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13560
13508
|
case "MetricCard":
|
|
13561
13509
|
elements = buildMetricCard(config2, componentScope2);
|
|
13562
13510
|
break;
|
|
13563
|
-
case "HierarchyChart":
|
|
13564
|
-
elements = buildHierarchyChart(config2, componentScope2);
|
|
13565
|
-
break;
|
|
13566
13511
|
case "Graph":
|
|
13567
13512
|
switch (config2.graphType) {
|
|
13568
13513
|
case "BarGraph":
|