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.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1562,15 +1562,33 @@ var TableChart = function TableChart(props) {
|
|
|
1562
1562
|
return "unset";
|
|
1563
1563
|
};
|
|
1564
1564
|
|
|
1565
|
-
var isClickableCell = function isClickableCell(fieldCode) {
|
|
1566
|
-
|
|
1565
|
+
var isClickableCell = function isClickableCell(fieldCode, rowDate) {
|
|
1566
|
+
if (rowDate === void 0) {
|
|
1567
|
+
rowDate = null;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
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";
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1573
|
+
var IsShipmentMasterFieldClickable = function IsShipmentMasterFieldClickable(fieldCode, rowData) {
|
|
1574
|
+
if (rowData === void 0) {
|
|
1575
|
+
rowData = null;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
if (Session.isMasterNumberClickable && objectTableName === "Shipment" && fieldCode === "Master" && Session.isMasterNumberClickable(rowData)) {
|
|
1579
|
+
return true;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
return false;
|
|
1567
1583
|
};
|
|
1568
1584
|
|
|
1569
1585
|
var tableCellClicked = function tableCellClicked(data, fieldCode) {
|
|
1570
|
-
if (!data || !data.Id || !isClickableCell(fieldCode) || props.customChartProps.isInEditMode) return;
|
|
1586
|
+
if (!data || !data.Id || !isClickableCell(fieldCode, data) || props.customChartProps.isInEditMode) return;
|
|
1571
1587
|
props.customChartProps.onSelectDataPoint({
|
|
1572
1588
|
ObjectTableName: objectTableName,
|
|
1573
|
-
TableRowEntityId: data.Id
|
|
1589
|
+
TableRowEntityId: data.Id,
|
|
1590
|
+
RowData: data,
|
|
1591
|
+
FieldCode: fieldCode
|
|
1574
1592
|
});
|
|
1575
1593
|
};
|
|
1576
1594
|
|
|
@@ -1625,7 +1643,7 @@ var TableChart = function TableChart(props) {
|
|
|
1625
1643
|
return tableCellClicked(data, column.FieldCode);
|
|
1626
1644
|
},
|
|
1627
1645
|
title: getCellValue(data, column),
|
|
1628
|
-
className: "table-cell " + (isClickableCell(column.FieldCode) ? 'table-link-cell' : ''),
|
|
1646
|
+
className: "table-cell " + (isClickableCell(column.FieldCode, data) ? 'table-link-cell' : ''),
|
|
1629
1647
|
style: {
|
|
1630
1648
|
color: getTableFormattingPropertyValue("TableCellFontColor"),
|
|
1631
1649
|
backgroundColor: getCellPropertyByRule(column, data[column.FieldCode], 'RuleBackgroundColor'),
|
|
@@ -4029,6 +4047,7 @@ var Dashboard = function Dashboard(props) {
|
|
|
4029
4047
|
Session.Tenant = props.tenant;
|
|
4030
4048
|
Session.Token = props === null || props === void 0 ? void 0 : props.token;
|
|
4031
4049
|
Session.NumberFormatCode = props === null || props === void 0 ? void 0 : props.numberFormatCode;
|
|
4050
|
+
Session.isMasterNumberClickable = props === null || props === void 0 ? void 0 : props.isMasterNumberClickable;
|
|
4032
4051
|
setIsPreviewModeActive(props.isPreviewMode);
|
|
4033
4052
|
props.dataBinding.onGetLayouts.subscribe(function (layouts) {
|
|
4034
4053
|
Widgetlayouts.current = layouts;
|