sag_components 2.0.0-beta124 → 2.0.0-beta126
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.esm.js +72 -28
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +72 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -23897,22 +23897,21 @@ const DeleteIcon = styled.div`
|
|
|
23897
23897
|
position: absolute;
|
|
23898
23898
|
`;
|
|
23899
23899
|
|
|
23900
|
-
const QuickFilterDropdownSingle =
|
|
23901
|
-
|
|
23902
|
-
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
|
|
23906
|
-
|
|
23907
|
-
|
|
23908
|
-
|
|
23909
|
-
|
|
23910
|
-
|
|
23911
|
-
|
|
23912
|
-
|
|
23913
|
-
|
|
23914
|
-
|
|
23915
|
-
} = _ref;
|
|
23900
|
+
const QuickFilterDropdownSingle = ({
|
|
23901
|
+
label,
|
|
23902
|
+
hoverColor,
|
|
23903
|
+
options,
|
|
23904
|
+
selectedValue,
|
|
23905
|
+
placeHolder,
|
|
23906
|
+
onChange,
|
|
23907
|
+
disabled,
|
|
23908
|
+
width,
|
|
23909
|
+
error,
|
|
23910
|
+
errorMessage,
|
|
23911
|
+
xIconShow,
|
|
23912
|
+
labelColor,
|
|
23913
|
+
showLabelOnTop
|
|
23914
|
+
}) => {
|
|
23916
23915
|
const [isFocused, setIsFocused] = useState(false);
|
|
23917
23916
|
const [showOptions, setShowOptions] = useState(false);
|
|
23918
23917
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -37599,11 +37598,22 @@ const TableRow = styled.tr`
|
|
|
37599
37598
|
border-bottom: 1px solid #F2F2F2;
|
|
37600
37599
|
transition: background-color 0.2s;
|
|
37601
37600
|
font-family: 'Poppins', sans-serif;
|
|
37601
|
+
cursor: pointer;
|
|
37602
37602
|
|
|
37603
37603
|
&:hover {
|
|
37604
37604
|
background-color: #E6F0F0;
|
|
37605
37605
|
}
|
|
37606
37606
|
|
|
37607
|
+
/* Focus state - persistent until another row is clicked */
|
|
37608
|
+
${props => props.$isFocused && css`
|
|
37609
|
+
background-color: #D1E7E7;
|
|
37610
|
+
border-left: 3px solid #066768;
|
|
37611
|
+
|
|
37612
|
+
&:hover {
|
|
37613
|
+
background-color: #C1D7D7;
|
|
37614
|
+
}
|
|
37615
|
+
`}
|
|
37616
|
+
|
|
37607
37617
|
&:last-child {
|
|
37608
37618
|
border-bottom: none;
|
|
37609
37619
|
}
|
|
@@ -37887,6 +37897,15 @@ const TableBody = ({
|
|
|
37887
37897
|
onDeleteClick
|
|
37888
37898
|
}) => {
|
|
37889
37899
|
const [hoveredRowIndex, setHoveredRowIndex] = useState(null);
|
|
37900
|
+
const [focusedRowIndex, setFocusedRowIndex] = useState(null);
|
|
37901
|
+
|
|
37902
|
+
// Handle row click for focus state
|
|
37903
|
+
const handleRowClick = (row, rowIndex) => {
|
|
37904
|
+
setFocusedRowIndex(rowIndex);
|
|
37905
|
+
if (onRowClick) {
|
|
37906
|
+
onRowClick(row);
|
|
37907
|
+
}
|
|
37908
|
+
};
|
|
37890
37909
|
|
|
37891
37910
|
// Function to calculate tooltip height based on text length
|
|
37892
37911
|
const calculateTooltipOffset = (text, isRegularCell = false) => {
|
|
@@ -37986,7 +38005,7 @@ const TableBody = ({
|
|
|
37986
38005
|
hoverBackgroundColor: "#E6F0F0",
|
|
37987
38006
|
hoverBorderColor: "#D9D9D9",
|
|
37988
38007
|
disabledTextColor: "#B1B1B1",
|
|
37989
|
-
disabledBackgroundColor: hoveredRowIndex === rowIndex ? "#E6F0F0" : "#FFF",
|
|
38008
|
+
disabledBackgroundColor: focusedRowIndex === rowIndex ? "#D1E7E7" : hoveredRowIndex === rowIndex ? "#E6F0F0" : "#FFF",
|
|
37990
38009
|
disabledBorderColor: "#D9D9D9",
|
|
37991
38010
|
width: "100px",
|
|
37992
38011
|
height: "32px",
|
|
@@ -37999,7 +38018,7 @@ const TableBody = ({
|
|
|
37999
38018
|
leftIcon: "Fly",
|
|
38000
38019
|
text: "Send",
|
|
38001
38020
|
borderRadius: "8px",
|
|
38002
|
-
backgroundColor: hoveredRowIndex === rowIndex ? "#E6F0F0" : "#FFF",
|
|
38021
|
+
backgroundColor: focusedRowIndex === rowIndex ? "#D1E7E7" : hoveredRowIndex === rowIndex ? "#E6F0F0" : "#FFF",
|
|
38003
38022
|
textColor: buttonColor,
|
|
38004
38023
|
borderColor: buttonColor,
|
|
38005
38024
|
hoverTextColor: buttonColor,
|
|
@@ -38089,8 +38108,10 @@ const TableBody = ({
|
|
|
38089
38108
|
return /*#__PURE__*/React$1.createElement(StyledTableBody, null, data.map((row, rowIndex) => /*#__PURE__*/React$1.createElement(TableRow, {
|
|
38090
38109
|
key: rowIndex,
|
|
38091
38110
|
"data-row-index": rowIndex,
|
|
38111
|
+
$isFocused: focusedRowIndex === rowIndex,
|
|
38092
38112
|
onMouseEnter: () => setHoveredRowIndex(rowIndex),
|
|
38093
|
-
onMouseLeave: () => setHoveredRowIndex(null)
|
|
38113
|
+
onMouseLeave: () => setHoveredRowIndex(null),
|
|
38114
|
+
onClick: () => handleRowClick(row, rowIndex)
|
|
38094
38115
|
}, columns.map(column => {
|
|
38095
38116
|
const value = row[column.key];
|
|
38096
38117
|
const formattedValue = formatValue(value, column, row, rowIndex);
|
|
@@ -38114,8 +38135,7 @@ const TableBody = ({
|
|
|
38114
38135
|
$fieldType: column.fieldType?.toLowerCase(),
|
|
38115
38136
|
$color: column.color,
|
|
38116
38137
|
$minWidth: column.minWidth,
|
|
38117
|
-
$maxWidth: column.maxWidth
|
|
38118
|
-
onClick: onRowClick ? () => onRowClick(row) : undefined
|
|
38138
|
+
$maxWidth: column.maxWidth
|
|
38119
38139
|
}, formattedValue);
|
|
38120
38140
|
}))));
|
|
38121
38141
|
};
|
|
@@ -41688,6 +41708,7 @@ const VendorPackages = styled.div`
|
|
|
41688
41708
|
color: #8b8989;
|
|
41689
41709
|
font-size: 14px;
|
|
41690
41710
|
font-weight: 400;
|
|
41711
|
+
text-align: left;
|
|
41691
41712
|
`;
|
|
41692
41713
|
const VendorChevron = styled.div`
|
|
41693
41714
|
font-size: 22px;
|
|
@@ -42168,7 +42189,11 @@ const NewSubitem = ({
|
|
|
42168
42189
|
size: "small",
|
|
42169
42190
|
text: "Cancel",
|
|
42170
42191
|
type: "secondary",
|
|
42171
|
-
borderRadius: "8px"
|
|
42192
|
+
borderRadius: "8px",
|
|
42193
|
+
borderColor: "#D3D3D3",
|
|
42194
|
+
hoverTextColor: "#212121",
|
|
42195
|
+
hoverBackgroundColor: "#E6F0F0",
|
|
42196
|
+
hoverBorderColor: "#D3D3D3"
|
|
42172
42197
|
}), /*#__PURE__*/React$1.createElement(Button$1, {
|
|
42173
42198
|
leftIcon: "none",
|
|
42174
42199
|
onClick: () => {
|
|
@@ -42314,7 +42339,12 @@ const ConfirmationDialog = ({
|
|
|
42314
42339
|
rightIcon: "none",
|
|
42315
42340
|
size: "",
|
|
42316
42341
|
text: "Cancel",
|
|
42317
|
-
type: "secondary"
|
|
42342
|
+
type: "secondary",
|
|
42343
|
+
borderRadius: "8px",
|
|
42344
|
+
borderColor: "#D3D3D3",
|
|
42345
|
+
hoverTextColor: "#212121",
|
|
42346
|
+
hoverBackgroundColor: "#E6F0F0",
|
|
42347
|
+
hoverBorderColor: "#D3D3D3"
|
|
42318
42348
|
}), /*#__PURE__*/React$1.createElement(Button$1, {
|
|
42319
42349
|
leftIcon: "none",
|
|
42320
42350
|
onClick: onConfirm,
|
|
@@ -42322,9 +42352,11 @@ const ConfirmationDialog = ({
|
|
|
42322
42352
|
size: "",
|
|
42323
42353
|
text: "Confirm & Send",
|
|
42324
42354
|
type: "primary",
|
|
42355
|
+
borderRadius: "8px",
|
|
42325
42356
|
borderColor: linkColor,
|
|
42326
42357
|
backgroundColor: linkColor,
|
|
42327
|
-
|
|
42358
|
+
hoverBackgroundColor: "#388586",
|
|
42359
|
+
hoverBorderColor: "#388586"
|
|
42328
42360
|
}))), /*#__PURE__*/React$1.createElement(Dialog, null, vendors.map((vendor, idx) => /*#__PURE__*/React$1.createElement(VendorSection, {
|
|
42329
42361
|
key: vendor.name
|
|
42330
42362
|
}, /*#__PURE__*/React$1.createElement(VendorHeader, null, /*#__PURE__*/React$1.createElement(VendorName, null, vendor.name), /*#__PURE__*/React$1.createElement(NewBadge, null, vendor.newPackages.length, " New")), /*#__PURE__*/React$1.createElement(PackageList, null, vendor.newPackages.map((pkg, i) => /*#__PURE__*/React$1.createElement(Item, {
|
|
@@ -51035,7 +51067,10 @@ const ItemManagerPanel = _ref => {
|
|
|
51035
51067
|
type: "secondary",
|
|
51036
51068
|
borderRadius: "8px",
|
|
51037
51069
|
borderColor: linkColor,
|
|
51038
|
-
textColor: linkColor
|
|
51070
|
+
textColor: linkColor,
|
|
51071
|
+
hoverTextColor: "#ffffff",
|
|
51072
|
+
hoverBackgroundColor: linkColor,
|
|
51073
|
+
hoverBorderColor: linkColor
|
|
51039
51074
|
})), /*#__PURE__*/React$1.createElement(Subtitle$1, {
|
|
51040
51075
|
color: actuallyAllFormsSent ? "#90CE9C" : "#8b8989"
|
|
51041
51076
|
}, actuallyAllFormsSent ? '✔ All Forms Sent' : itemAndPackage.filter(item => item.packages !== null).length > 0 ? `${itemAndPackage.filter(item => item.packages !== null).length.toString()} New Forms` : ''))), /*#__PURE__*/React$1.createElement(AddButtonContainer$1, null, /*#__PURE__*/React$1.createElement(LinkButton, {
|
|
@@ -51055,9 +51090,18 @@ const ItemManagerPanel = _ref => {
|
|
|
51055
51090
|
onClick: e => {
|
|
51056
51091
|
handleVendorClick(item);
|
|
51057
51092
|
}
|
|
51058
|
-
}, /*#__PURE__*/React$1.createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React$1.createElement(VendorName$2, null, item.name), item.packages.length === 0 && /*#__PURE__*/React$1.createElement(Subtitle$1, null, "No Packages"), item.packages.length > 0 && /*#__PURE__*/React$1.createElement(Subtitle$1, null,
|
|
51059
|
-
|
|
51060
|
-
|
|
51093
|
+
}, /*#__PURE__*/React$1.createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React$1.createElement(VendorName$2, null, item.name), item.packages.length === 0 && /*#__PURE__*/React$1.createElement(Subtitle$1, null, "No Packages"), item.packages.length > 0 && /*#__PURE__*/React$1.createElement(Subtitle$1, null, (() => {
|
|
51094
|
+
const packagesWithStatus = item.packages.filter(pkg => pkg.hasOwnProperty('status') && pkg.status != null && pkg.status !== undefined && pkg.status !== '');
|
|
51095
|
+
const allHaveStatus = packagesWithStatus.length === item.packages.length;
|
|
51096
|
+
const noneHaveStatus = packagesWithStatus.length === 0;
|
|
51097
|
+
if (noneHaveStatus) {
|
|
51098
|
+
return 'No Packages sent';
|
|
51099
|
+
} else if (allHaveStatus) {
|
|
51100
|
+
return `${item.packages.length} Package${item.packages.length !== 1 ? 's' : ''} Sent`;
|
|
51101
|
+
} else {
|
|
51102
|
+
return `${item.packages.length} Package${item.packages.length !== 1 ? 's' : ''}`;
|
|
51103
|
+
}
|
|
51104
|
+
})())), /*#__PURE__*/React$1.createElement(VendorChevron$1, null, /*#__PURE__*/React$1.createElement(ArrowRightFullIcon, null))), /*#__PURE__*/React$1.createElement(Trash$1, {
|
|
51061
51105
|
className: "trash-icon",
|
|
51062
51106
|
onClick: () => {
|
|
51063
51107
|
onDeleteVendor(item);
|