logitude-dashboard-library 3.1.130 → 3.1.132
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/assets/styles/dl-dashboard.scss +2 -1
- package/dist/index.js +12 -21
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -21
- package/dist/index.modern.js.map +1 -1
- package/dist/styles/dl-dashboard.scss +2 -1
- package/package.json +1 -1
|
@@ -1327,6 +1327,7 @@ $dark-grey: #717585;
|
|
|
1327
1327
|
gap: 4px;
|
|
1328
1328
|
z-index: 1000;
|
|
1329
1329
|
white-space: nowrap;
|
|
1330
|
+
width: calc(100% - 16px);
|
|
1330
1331
|
max-width: calc(100% - 16px);
|
|
1331
1332
|
animation: widgetCopiedFadeIn 0.2s ease;
|
|
1332
1333
|
|
|
@@ -1340,7 +1341,7 @@ $dark-grey: #717585;
|
|
|
1340
1341
|
font-weight: 600;
|
|
1341
1342
|
font-size: 12px;
|
|
1342
1343
|
line-height: 16px;
|
|
1343
|
-
max-width:
|
|
1344
|
+
max-width: calc(100% - 50px);
|
|
1344
1345
|
overflow: hidden;
|
|
1345
1346
|
text-overflow: ellipsis;
|
|
1346
1347
|
}
|
package/dist/index.js
CHANGED
|
@@ -1845,7 +1845,7 @@ var TableChart = function TableChart(props) {
|
|
|
1845
1845
|
rowDate = null;
|
|
1846
1846
|
}
|
|
1847
1847
|
|
|
1848
|
-
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 == "Subject" && objectTableName == "Activity" || fieldCode == "TicketNumber" && objectTableName == "Ticket";
|
|
1848
|
+
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 == "Subject" && objectTableName == "Activity" || fieldCode == "TicketNumber" && objectTableName == "Ticket" || fieldCode == "ReleaseNumber" && objectTableName == "WarehouseRelease";
|
|
1849
1849
|
};
|
|
1850
1850
|
|
|
1851
1851
|
var IsShipmentMasterFieldClickable = function IsShipmentMasterFieldClickable(fieldCode, rowData) {
|
|
@@ -4120,10 +4120,7 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
4120
4120
|
showCopiedNotification = _useState5[0],
|
|
4121
4121
|
setShowCopiedNotification = _useState5[1];
|
|
4122
4122
|
|
|
4123
|
-
var
|
|
4124
|
-
copyMenuOpen = _useState6[0],
|
|
4125
|
-
setCopyMenuOpen = _useState6[1];
|
|
4126
|
-
|
|
4123
|
+
var copyPopupRef = React.useRef(null);
|
|
4127
4124
|
var copiedNotificationTimer = React.useRef(null);
|
|
4128
4125
|
|
|
4129
4126
|
var editWidget = function editWidget() {
|
|
@@ -4131,8 +4128,6 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
4131
4128
|
};
|
|
4132
4129
|
|
|
4133
4130
|
var duplicateWidget = function duplicateWidget() {
|
|
4134
|
-
setCopyMenuOpen(false);
|
|
4135
|
-
|
|
4136
4131
|
if (props && props.duplicateBtnClicked) {
|
|
4137
4132
|
var _widget$current;
|
|
4138
4133
|
|
|
@@ -4145,8 +4140,6 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
4145
4140
|
};
|
|
4146
4141
|
|
|
4147
4142
|
var copyWidgetToClipboard = function copyWidgetToClipboard() {
|
|
4148
|
-
setCopyMenuOpen(false);
|
|
4149
|
-
|
|
4150
4143
|
if (props && props.copyToClipboardBtnClicked && widget.current) {
|
|
4151
4144
|
var _widget$current3;
|
|
4152
4145
|
|
|
@@ -4370,17 +4363,11 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
4370
4363
|
return editWidget();
|
|
4371
4364
|
}
|
|
4372
4365
|
}), " "), React__default.createElement(Popup, {
|
|
4366
|
+
ref: copyPopupRef,
|
|
4373
4367
|
className: "widget-copy-dropdown-container",
|
|
4374
4368
|
trigger: React__default.createElement("div", null, React__default.createElement(SvgCopyIcon, {
|
|
4375
|
-
className: "widget-card-copy-icon"
|
|
4376
|
-
onClick: function onClick() {
|
|
4377
|
-
return setCopyMenuOpen(true);
|
|
4378
|
-
}
|
|
4369
|
+
className: "widget-card-copy-icon"
|
|
4379
4370
|
})),
|
|
4380
|
-
open: copyMenuOpen,
|
|
4381
|
-
onClose: function onClose() {
|
|
4382
|
-
return setCopyMenuOpen(false);
|
|
4383
|
-
},
|
|
4384
4371
|
position: ['bottom left', 'bottom center'],
|
|
4385
4372
|
closeOnDocumentClick: true,
|
|
4386
4373
|
closeOnEscape: true,
|
|
@@ -4390,14 +4377,18 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
4390
4377
|
className: "widget-copy-dropdown-menu"
|
|
4391
4378
|
}, React__default.createElement("div", {
|
|
4392
4379
|
className: "widget-copy-dropdown-item",
|
|
4393
|
-
onClick: function onClick(
|
|
4394
|
-
|
|
4380
|
+
onClick: function onClick() {
|
|
4381
|
+
var _copyPopupRef$current;
|
|
4382
|
+
|
|
4383
|
+
(_copyPopupRef$current = copyPopupRef.current) === null || _copyPopupRef$current === void 0 ? void 0 : _copyPopupRef$current.close();
|
|
4395
4384
|
duplicateWidget();
|
|
4396
4385
|
}
|
|
4397
4386
|
}, "Duplicate"), React__default.createElement("div", {
|
|
4398
4387
|
className: "widget-copy-dropdown-item",
|
|
4399
|
-
onClick: function onClick(
|
|
4400
|
-
|
|
4388
|
+
onClick: function onClick() {
|
|
4389
|
+
var _copyPopupRef$current2;
|
|
4390
|
+
|
|
4391
|
+
(_copyPopupRef$current2 = copyPopupRef.current) === null || _copyPopupRef$current2 === void 0 ? void 0 : _copyPopupRef$current2.close();
|
|
4401
4392
|
copyWidgetToClipboard();
|
|
4402
4393
|
}
|
|
4403
4394
|
}, "Copy"))), React__default.createElement("div", null, " ", React__default.createElement(SvgDeleteIcon, {
|