impaktapps-ui-builder 1.0.482 → 1.0.484
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 +67 -16
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- 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/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -7
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +5 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +4 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +11 -6
- package/src/impaktapps-ui-builder/builder/services/component.ts +40 -9
|
@@ -6711,7 +6711,12 @@ const ComponentSchema = {
|
|
|
6711
6711
|
{ title: "Clone Icon", const: "CloneIcon" },
|
|
6712
6712
|
{ title: "Detail Icon", const: "DetailIcon" },
|
|
6713
6713
|
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
6714
|
-
{ title: "Payout", const: "Payout" }
|
|
6714
|
+
{ title: "Payout", const: "Payout" },
|
|
6715
|
+
{ title: "Info Outlined", const: "InfoOutlinedIcon" },
|
|
6716
|
+
{ title: "Territory Add", const: "TerritoryAdd" },
|
|
6717
|
+
{ title: "Territory Edit", const: "TerritoryEdit" },
|
|
6718
|
+
{ title: "Territory Delete", const: "TerritoryDelete" },
|
|
6719
|
+
{ title: "Git Compare", const: "GitCompare" }
|
|
6715
6720
|
]
|
|
6716
6721
|
},
|
|
6717
6722
|
color: {
|
|
@@ -8160,7 +8165,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8160
8165
|
getInputField("description", "Description"),
|
|
8161
8166
|
getSelectField("growthRate", "Growth Rate"),
|
|
8162
8167
|
getInputField("color", "Card Color"),
|
|
8163
|
-
emptyBox$1("MetricEmpty1", { xs: 6, sm:
|
|
8168
|
+
emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
|
|
8164
8169
|
];
|
|
8165
8170
|
break;
|
|
8166
8171
|
case "Button":
|
|
@@ -8206,10 +8211,10 @@ const buildPropertiesSection = function(type) {
|
|
|
8206
8211
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8207
8212
|
getInputField("leftMargin", "Left Margin"),
|
|
8208
8213
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8214
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8209
8215
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8210
8216
|
getInputField("growthRateKey", "Growth Rate Key"),
|
|
8211
8217
|
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
8212
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
8213
8218
|
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
8214
8219
|
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
|
|
8215
8220
|
];
|
|
@@ -8286,7 +8291,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8286
8291
|
getSelectField("variant", "Variant"),
|
|
8287
8292
|
getInputField("toolTip", "Tooltip"),
|
|
8288
8293
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8289
|
-
getRadioInputField("grouping", "
|
|
8294
|
+
getRadioInputField("grouping", "Grouping", ["YES", "NO"]),
|
|
8290
8295
|
emptyBox$1("SelectEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8291
8296
|
];
|
|
8292
8297
|
break;
|
|
@@ -8296,7 +8301,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8296
8301
|
getSelectField("variant", "Variant"),
|
|
8297
8302
|
getInputField("toolTip", "Tooltip"),
|
|
8298
8303
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8299
|
-
getRadioInputField("grouping", "
|
|
8304
|
+
getRadioInputField("grouping", "Grouping", ["YES", "NO"]),
|
|
8300
8305
|
emptyBox$1("MultipleSelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8301
8306
|
];
|
|
8302
8307
|
break;
|
|
@@ -8398,13 +8403,13 @@ const StyleSection = {
|
|
|
8398
8403
|
}
|
|
8399
8404
|
]
|
|
8400
8405
|
};
|
|
8401
|
-
const TableSection = (theme) => {
|
|
8406
|
+
const TableSection = (theme, scopeName = "elements") => {
|
|
8402
8407
|
const uiSchema = {
|
|
8403
8408
|
type: "HorizontalLayout",
|
|
8404
8409
|
elements: [
|
|
8405
8410
|
{
|
|
8406
8411
|
type: "Control",
|
|
8407
|
-
scope:
|
|
8412
|
+
scope: `#/properties/${scopeName}`,
|
|
8408
8413
|
options: {
|
|
8409
8414
|
widget: "Table"
|
|
8410
8415
|
},
|
|
@@ -8415,7 +8420,7 @@ const TableSection = (theme) => {
|
|
|
8415
8420
|
{
|
|
8416
8421
|
widget: {
|
|
8417
8422
|
type: "Control",
|
|
8418
|
-
scope:
|
|
8423
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
8419
8424
|
options: {
|
|
8420
8425
|
widget: "IconButton"
|
|
8421
8426
|
},
|
|
@@ -8442,7 +8447,7 @@ const TableSection = (theme) => {
|
|
|
8442
8447
|
{
|
|
8443
8448
|
widget: {
|
|
8444
8449
|
type: "Control",
|
|
8445
|
-
scope: "
|
|
8450
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
8446
8451
|
options: {
|
|
8447
8452
|
widget: "IconButton"
|
|
8448
8453
|
},
|
|
@@ -8507,7 +8512,7 @@ const TableSection = (theme) => {
|
|
|
8507
8512
|
},
|
|
8508
8513
|
{
|
|
8509
8514
|
type: "Control",
|
|
8510
|
-
scope: "
|
|
8515
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
8511
8516
|
options: {
|
|
8512
8517
|
widget: "Button"
|
|
8513
8518
|
},
|
|
@@ -8700,6 +8705,10 @@ var buildConfig = (FormData) => {
|
|
|
8700
8705
|
if (formData.events) {
|
|
8701
8706
|
delete formData.events;
|
|
8702
8707
|
}
|
|
8708
|
+
if (formData.tabLabelElements) {
|
|
8709
|
+
component.tabLabelElements = formData.tabLabelElements || [];
|
|
8710
|
+
delete formData.tabLabelElements;
|
|
8711
|
+
}
|
|
8703
8712
|
component = { ...formData, ...component };
|
|
8704
8713
|
return component;
|
|
8705
8714
|
};
|
|
@@ -8858,7 +8867,7 @@ const sectionLabels = {
|
|
|
8858
8867
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8859
8868
|
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8860
8869
|
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8861
|
-
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8870
|
+
TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
|
|
8862
8871
|
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8863
8872
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8864
8873
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -8906,6 +8915,7 @@ function refreshPage(type, store2) {
|
|
|
8906
8915
|
Style: StyleSection,
|
|
8907
8916
|
Events: EventSection(store2.theme.myTheme),
|
|
8908
8917
|
Components: TableSection(store2.theme.myTheme),
|
|
8918
|
+
TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8909
8919
|
Properties: buildPropertiesSection(type),
|
|
8910
8920
|
Validation: ValidationSection
|
|
8911
8921
|
};
|
|
@@ -9103,8 +9113,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9103
9113
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9104
9114
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9105
9115
|
if (path) {
|
|
9106
|
-
|
|
9107
|
-
|
|
9116
|
+
let finalPath = `${path}`;
|
|
9117
|
+
if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
|
|
9118
|
+
finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
|
|
9119
|
+
} else {
|
|
9120
|
+
finalPath = `${finalPath}.elements[${rowId}]`;
|
|
9121
|
+
}
|
|
9108
9122
|
store2.searchParams.set("path", finalPath);
|
|
9109
9123
|
store2.setSearchParams(store2.searchParams);
|
|
9110
9124
|
this.setPage();
|
|
@@ -9116,7 +9130,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9116
9130
|
var _a;
|
|
9117
9131
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9118
9132
|
const rowId = sessionStorage.getItem("rowId");
|
|
9119
|
-
|
|
9133
|
+
const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
|
|
9134
|
+
if (isTabLabelElements) {
|
|
9135
|
+
store2.formData.tabLabelElements.splice(rowId, 1);
|
|
9136
|
+
} else {
|
|
9137
|
+
store2.formData.elements.splice(rowId, 1);
|
|
9138
|
+
}
|
|
9120
9139
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9121
9140
|
const data = path ? _.get(response, path) : response;
|
|
9122
9141
|
store2.setFormdata(data);
|
|
@@ -9124,6 +9143,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9124
9143
|
store2.updateDialog("popUpComponentSection");
|
|
9125
9144
|
}
|
|
9126
9145
|
sessionStorage.removeItem("rowId");
|
|
9146
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
9127
9147
|
},
|
|
9128
9148
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
9129
9149
|
var _a;
|
|
@@ -9144,9 +9164,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9144
9164
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9145
9165
|
store2.formData.elements = [];
|
|
9146
9166
|
}
|
|
9167
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9168
|
+
store2.formData.tabLabelElements = [];
|
|
9169
|
+
}
|
|
9147
9170
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9148
9171
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9149
|
-
|
|
9172
|
+
let finalPath = `${path}`;
|
|
9173
|
+
if (dynamicData2.path.startsWith("tabLabel")) {
|
|
9174
|
+
finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
|
|
9175
|
+
} else {
|
|
9176
|
+
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9177
|
+
}
|
|
9150
9178
|
store2.searchParams.set("path", finalPath);
|
|
9151
9179
|
store2.setSearchParams(store2.searchParams);
|
|
9152
9180
|
this.setPage();
|
|
@@ -9181,6 +9209,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9181
9209
|
deletePopUpComponent: function() {
|
|
9182
9210
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9183
9211
|
sessionStorage.setItem("rowId", rowId);
|
|
9212
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
|
|
9184
9213
|
store2.updateDialog("popUpComponentSection");
|
|
9185
9214
|
},
|
|
9186
9215
|
deletePopUpEvent: function() {
|
|
@@ -9227,9 +9256,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9227
9256
|
if (!Array.isArray(store2.formData.events)) {
|
|
9228
9257
|
store2.formData.events = [];
|
|
9229
9258
|
}
|
|
9259
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9260
|
+
store2.formData.tabLabelElements = [];
|
|
9261
|
+
}
|
|
9230
9262
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
9231
9263
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
9232
|
-
const
|
|
9264
|
+
const currentLength = {
|
|
9265
|
+
"TabsComponent": formData.tabLabelElements.length,
|
|
9266
|
+
"Component": formData.elements.length,
|
|
9267
|
+
"Events": formData.events.length
|
|
9268
|
+
};
|
|
9269
|
+
const insertElementIndex = currentLength[elementType] || 0;
|
|
9233
9270
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
9234
9271
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
9235
9272
|
const notificationMessages = {
|
|
@@ -9264,6 +9301,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9264
9301
|
if (elementType === "Component") {
|
|
9265
9302
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
9266
9303
|
}
|
|
9304
|
+
if (elementType === "TabsComponent") {
|
|
9305
|
+
return `${parentPath}.tabLabelElements[${rowId}]`;
|
|
9306
|
+
}
|
|
9267
9307
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
9268
9308
|
},
|
|
9269
9309
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -13046,6 +13086,9 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13046
13086
|
if (config2.yAxisTickCount) {
|
|
13047
13087
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13048
13088
|
}
|
|
13089
|
+
if (config2.xAxisTickCount) {
|
|
13090
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13091
|
+
}
|
|
13049
13092
|
if (config2.xAxisValue) {
|
|
13050
13093
|
AreaGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13051
13094
|
}
|
|
@@ -13099,6 +13142,9 @@ const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
|
13099
13142
|
if (config2.yAxisTickCount) {
|
|
13100
13143
|
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13101
13144
|
}
|
|
13145
|
+
if (config2.xAxisTickCount) {
|
|
13146
|
+
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13147
|
+
}
|
|
13102
13148
|
if (config2.xAxisValue) {
|
|
13103
13149
|
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13104
13150
|
}
|
|
@@ -13652,6 +13698,11 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13652
13698
|
});
|
|
13653
13699
|
}
|
|
13654
13700
|
}
|
|
13701
|
+
if (config2.tabLabelElements) {
|
|
13702
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13703
|
+
return buildUiSchema(e, store2);
|
|
13704
|
+
});
|
|
13705
|
+
}
|
|
13655
13706
|
return elements;
|
|
13656
13707
|
};
|
|
13657
13708
|
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|