logitude-dashboard-library 3.1.136 → 3.1.138
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.js +33 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +33 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/services/ApiServices.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -153,12 +153,18 @@ var ApiServices = /*#__PURE__*/function () {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
var token = this.getTokenFromStorage();
|
|
156
|
+
var requestHeaders = {
|
|
157
|
+
'Content-Type': 'application/json',
|
|
158
|
+
'Token': token
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
if (this.isDashboardClickHouseActive()) {
|
|
162
|
+
requestHeaders['Dashboard-Clickhouse'] = "True";
|
|
163
|
+
}
|
|
164
|
+
|
|
156
165
|
var apiURL = "" + this._apiUrl + api;
|
|
157
166
|
return axios.post(apiURL, date, {
|
|
158
|
-
headers:
|
|
159
|
-
'Content-Type': 'application/json',
|
|
160
|
-
'Token': token
|
|
161
|
-
},
|
|
167
|
+
headers: requestHeaders,
|
|
162
168
|
signal: requestSignal
|
|
163
169
|
});
|
|
164
170
|
};
|
|
@@ -167,6 +173,12 @@ var ApiServices = /*#__PURE__*/function () {
|
|
|
167
173
|
return Session.Token || '';
|
|
168
174
|
};
|
|
169
175
|
|
|
176
|
+
_proto.isDashboardClickHouseActive = function isDashboardClickHouseActive() {
|
|
177
|
+
var _window;
|
|
178
|
+
|
|
179
|
+
return ((_window = window) === null || _window === void 0 ? void 0 : _window.IsDashboardClickHouseActive) === true;
|
|
180
|
+
};
|
|
181
|
+
|
|
170
182
|
_proto.ConcatFiltersToURL = function ConcatFiltersToURL(filters, urlparameters) {
|
|
171
183
|
var mykeys = Object.keys(filters);
|
|
172
184
|
var addtionalFiltersValues = null;
|
|
@@ -1840,12 +1852,25 @@ var TableChart = function TableChart(props) {
|
|
|
1840
1852
|
return "unset";
|
|
1841
1853
|
};
|
|
1842
1854
|
|
|
1843
|
-
var
|
|
1844
|
-
if (
|
|
1845
|
-
|
|
1855
|
+
var isRowTenantMatched = function isRowTenantMatched(rowData) {
|
|
1856
|
+
if (rowData === void 0) {
|
|
1857
|
+
rowData = null;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
if (!rowData) return true;
|
|
1861
|
+
return Number(rowData.Tenant) === Number(Session.Tenant);
|
|
1862
|
+
};
|
|
1863
|
+
|
|
1864
|
+
var isClickableCell = function isClickableCell(fieldCode, rowData) {
|
|
1865
|
+
if (rowData === void 0) {
|
|
1866
|
+
rowData = null;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
if (!isRowTenantMatched(rowData)) {
|
|
1870
|
+
return false;
|
|
1846
1871
|
}
|
|
1847
1872
|
|
|
1848
|
-
return fieldCode == "ShipmentNumber" && objectTableName == "Shipment" || IsShipmentMasterFieldClickable(fieldCode,
|
|
1873
|
+
return fieldCode == "ShipmentNumber" && objectTableName == "Shipment" || IsShipmentMasterFieldClickable(fieldCode, rowData) || 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 == "Subject" && objectTableName == "Activity" || fieldCode == "TicketNumber" && objectTableName == "Ticket" || fieldCode == "ReleaseNumber" && objectTableName == "WarehouseRelease" || fieldCode == "EntryNumber" && objectTableName == "WarehouseEntry";
|
|
1849
1874
|
};
|
|
1850
1875
|
|
|
1851
1876
|
var IsShipmentMasterFieldClickable = function IsShipmentMasterFieldClickable(fieldCode, rowData) {
|