logitude-dashboard-library 3.2.32 → 3.2.34
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/index.d.ts +1 -0
- package/dist/index.js +24 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +24 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/services/session.d.ts +1 -0
- package/dist/types/SeriesMeasure.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1558,15 +1558,33 @@ var TableChart = function TableChart(props) {
|
|
|
1558
1558
|
return "unset";
|
|
1559
1559
|
};
|
|
1560
1560
|
|
|
1561
|
-
var isClickableCell = function isClickableCell(fieldCode) {
|
|
1562
|
-
|
|
1561
|
+
var isClickableCell = function isClickableCell(fieldCode, rowDate) {
|
|
1562
|
+
if (rowDate === void 0) {
|
|
1563
|
+
rowDate = null;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
return fieldCode == "ShipmentNumber" && objectTableName == "Shipment" || IsShipmentMasterFieldClickable(fieldCode, rowDate) || fieldCode == "InvoiceNumber" && objectTableName == "APInvoice" || fieldCode == "InvoiceNumber" && objectTableName == "ARInvoice" || fieldCode == "ContainerNumber" && objectTableName == "Container" || fieldCode == "QuoteNumber" && objectTableName == "Quote" || fieldCode == "Subject" && objectTableName == "Opportunity" || fieldCode == "EnglishName" && objectTableName == "Customer" || fieldCode == "TaskNumber" && objectTableName == "Task" || fieldCode == "TicketNumber" && objectTableName == "Ticket";
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
var IsShipmentMasterFieldClickable = function IsShipmentMasterFieldClickable(fieldCode, rowData) {
|
|
1570
|
+
if (rowData === void 0) {
|
|
1571
|
+
rowData = null;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
if (Session.isMasterNumberClickable && objectTableName === "Shipment" && fieldCode === "Master" && Session.isMasterNumberClickable(rowData)) {
|
|
1575
|
+
return true;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
return false;
|
|
1563
1579
|
};
|
|
1564
1580
|
|
|
1565
1581
|
var tableCellClicked = function tableCellClicked(data, fieldCode) {
|
|
1566
|
-
if (!data || !data.Id || !isClickableCell(fieldCode) || props.customChartProps.isInEditMode) return;
|
|
1582
|
+
if (!data || !data.Id || !isClickableCell(fieldCode, data) || props.customChartProps.isInEditMode) return;
|
|
1567
1583
|
props.customChartProps.onSelectDataPoint({
|
|
1568
1584
|
ObjectTableName: objectTableName,
|
|
1569
|
-
TableRowEntityId: data.Id
|
|
1585
|
+
TableRowEntityId: data.Id,
|
|
1586
|
+
RowData: data,
|
|
1587
|
+
FieldCode: fieldCode
|
|
1570
1588
|
});
|
|
1571
1589
|
};
|
|
1572
1590
|
|
|
@@ -1621,7 +1639,7 @@ var TableChart = function TableChart(props) {
|
|
|
1621
1639
|
return tableCellClicked(data, column.FieldCode);
|
|
1622
1640
|
},
|
|
1623
1641
|
title: getCellValue(data, column),
|
|
1624
|
-
className: "table-cell " + (isClickableCell(column.FieldCode) ? 'table-link-cell' : ''),
|
|
1642
|
+
className: "table-cell " + (isClickableCell(column.FieldCode, data) ? 'table-link-cell' : ''),
|
|
1625
1643
|
style: {
|
|
1626
1644
|
color: getTableFormattingPropertyValue("TableCellFontColor"),
|
|
1627
1645
|
backgroundColor: getCellPropertyByRule(column, data[column.FieldCode], 'RuleBackgroundColor'),
|
|
@@ -4025,6 +4043,7 @@ var Dashboard = function Dashboard(props) {
|
|
|
4025
4043
|
Session.Tenant = props.tenant;
|
|
4026
4044
|
Session.Token = props === null || props === void 0 ? void 0 : props.token;
|
|
4027
4045
|
Session.NumberFormatCode = props === null || props === void 0 ? void 0 : props.numberFormatCode;
|
|
4046
|
+
Session.isMasterNumberClickable = props === null || props === void 0 ? void 0 : props.isMasterNumberClickable;
|
|
4028
4047
|
setIsPreviewModeActive(props.isPreviewMode);
|
|
4029
4048
|
props.dataBinding.onGetLayouts.subscribe(function (layouts) {
|
|
4030
4049
|
Widgetlayouts.current = layouts;
|