sag_components 2.0.0-beta230 → 2.0.0-beta231

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 CHANGED
@@ -585,6 +585,24 @@ const PackageSendIcon = () => /*#__PURE__*/React__default["default"].createEleme
585
585
  fill: "#B1B1B1"
586
586
  }));
587
587
 
588
+ const MenuItemOpenIcon = _ref => {
589
+ let {
590
+ width = '16',
591
+ height = '16',
592
+ color = '#7E7E7E'
593
+ } = _ref;
594
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
595
+ width: width,
596
+ height: height,
597
+ viewBox: "0 0 16 10",
598
+ fill: "none",
599
+ xmlns: "http://www.w3.org/2000/svg"
600
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
601
+ d: "M7.40234 8.84766L0.652344 2.09766C0.300781 1.78125 0.300781 1.25391 0.652344 0.902344C0.96875 0.585938 1.49609 0.585938 1.84766 0.902344L8 7.08984L14.1523 0.9375C14.4688 0.585938 14.9961 0.585938 15.3477 0.9375C15.6641 1.25391 15.6641 1.78125 15.3477 2.09766L8.5625 8.84766C8.24609 9.19922 7.71875 9.19922 7.40234 8.84766Z",
602
+ fill: color
603
+ }));
604
+ };
605
+
588
606
  const ChervronRightIcon = _ref => {
589
607
  let {
590
608
  width = "8",
@@ -3191,24 +3209,6 @@ const IconWrapper$4 = styled__default["default"].div`
3191
3209
  align-content: center;
3192
3210
  `;
3193
3211
 
3194
- const MenuItemOpenIcon = _ref => {
3195
- let {
3196
- width = '16',
3197
- height = '16',
3198
- color = '#7E7E7E'
3199
- } = _ref;
3200
- return /*#__PURE__*/React__default["default"].createElement("svg", {
3201
- width: width,
3202
- height: height,
3203
- viewBox: "0 0 16 10",
3204
- fill: "none",
3205
- xmlns: "http://www.w3.org/2000/svg"
3206
- }, /*#__PURE__*/React__default["default"].createElement("path", {
3207
- d: "M7.40234 8.84766L0.652344 2.09766C0.300781 1.78125 0.300781 1.25391 0.652344 0.902344C0.96875 0.585938 1.49609 0.585938 1.84766 0.902344L8 7.08984L14.1523 0.9375C14.4688 0.585938 14.9961 0.585938 15.3477 0.9375C15.6641 1.25391 15.6641 1.78125 15.3477 2.09766L8.5625 8.84766C8.24609 9.19922 7.71875 9.19922 7.40234 8.84766Z",
3208
- fill: color
3209
- }));
3210
- };
3211
-
3212
3212
  const MenuItemRightIcon = _ref => {
3213
3213
  let {
3214
3214
  clicked,
@@ -35645,6 +35645,18 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35645
35645
  color: newColor,
35646
35646
  onClick: callBackOnClick
35647
35647
  }));
35648
+ case 'openicon':
35649
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35650
+ className: "MenuItemOpenIcon",
35651
+ pointer: pointer,
35652
+ disabled: disabled,
35653
+ onClick: callBackOnClick
35654
+ }, /*#__PURE__*/React__default["default"].createElement(MenuItemOpenIcon, {
35655
+ height: newIconHeight,
35656
+ width: newIconWidth,
35657
+ color: newColor,
35658
+ onClick: callBackOnClick
35659
+ }));
35648
35660
  default:
35649
35661
  return '';
35650
35662
  }
@@ -35836,6 +35848,7 @@ const Input$2 = _ref => {
35836
35848
  size,
35837
35849
  selectedValue,
35838
35850
  placeHolder,
35851
+ inputType = "text",
35839
35852
  onChange,
35840
35853
  onClick,
35841
35854
  onBlur,
@@ -36001,7 +36014,7 @@ const Input$2 = _ref => {
36001
36014
  }, "*")), /*#__PURE__*/React__default["default"].createElement(InputElement, {
36002
36015
  className: multiline ? "StyledTextarea" : "StyledInput",
36003
36016
  ref: inputRef,
36004
- type: password && !showPassword ? "password" : "text",
36017
+ type: password && !showPassword ? "password" : inputType,
36005
36018
  value: inputValue,
36006
36019
  onChange: handleInputChange,
36007
36020
  onClick: handleLabelClick,
@@ -39309,6 +39322,25 @@ const StatusCellCircle = styled__default["default"].div`
39309
39322
  border: 1px solid white;
39310
39323
  background-color: ${props => props.backgroundColor};
39311
39324
  `;
39325
+ const DotIndicatorWrapper = styled__default["default"].div`
39326
+ display: inline-flex;
39327
+ align-items: center;
39328
+ justify-content: center;
39329
+ width: 100%;
39330
+ height: 100%;
39331
+ position: relative;
39332
+
39333
+ ${tooltipStyles$1}
39334
+
39335
+ /* Override tooltip position */
39336
+ &[data-tooltip]:hover::before {
39337
+ top: calc(var(--tooltip-top, 0px) - var(--tooltip-offset, 60px) + 20px);
39338
+ }
39339
+
39340
+ &[data-tooltip]:hover::after {
39341
+ top: calc(var(--tooltip-top, 0px) - var(--tooltip-offset, 60px) + var(--tooltip-height, 50px) + 20px);
39342
+ }
39343
+ `;
39312
39344
 
39313
39345
  // NEW TAG STYLES
39314
39346
  const TagContainer = styled__default["default"].div`
@@ -40540,14 +40572,40 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
40540
40572
  if (!value || typeof value !== 'object') return null;
40541
40573
  const {
40542
40574
  show,
40543
- color
40575
+ color,
40576
+ tooltip
40544
40577
  } = value;
40545
40578
 
40546
40579
  // Only show the dot if show is true
40547
40580
  if (!show) return null;
40548
- return /*#__PURE__*/React__default["default"].createElement(StatusCellCircle, {
40581
+ return /*#__PURE__*/React__default["default"].createElement(DotIndicatorWrapper, {
40582
+ ref: el => {
40583
+ if (el && tooltip && tooltip.trim() !== "") {
40584
+ try {
40585
+ const rect = el.getBoundingClientRect();
40586
+ if (rect.width > 0 && rect.height > 0) {
40587
+ const tooltipInfo = calculateTooltipOffset(tooltip);
40588
+ if (tooltipInfo) {
40589
+ const {
40590
+ offset,
40591
+ height
40592
+ } = tooltipInfo;
40593
+ el.style.setProperty("--tooltip-top", `${rect.top}px`);
40594
+ el.style.setProperty("--tooltip-left", `${rect.left}px`);
40595
+ el.style.setProperty("--tooltip-width", `${rect.width}px`);
40596
+ el.style.setProperty("--tooltip-offset", `${offset}px`);
40597
+ el.style.setProperty("--tooltip-height", `${height}px`);
40598
+ el.setAttribute("data-tooltip", tooltip);
40599
+ }
40600
+ }
40601
+ } catch (e) {
40602
+ console.warn("Error applying dotIndicator tooltip:", e);
40603
+ }
40604
+ }
40605
+ }
40606
+ }, /*#__PURE__*/React__default["default"].createElement(StatusCellCircle, {
40549
40607
  backgroundColor: color
40550
- });
40608
+ }));
40551
40609
  } catch (e) {
40552
40610
  console.warn('Error formatting dotIndicator:', e);
40553
40611
  return null;
@@ -40559,7 +40617,7 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
40559
40617
  style: {
40560
40618
  color: isDefine ? "#8B8989" : "inherit"
40561
40619
  }
40562
- }, value ?? "Define"), /*#__PURE__*/React__default["default"].createElement(PencilButton, {
40620
+ }, value ? `$${value}` : "Define"), /*#__PURE__*/React__default["default"].createElement(PencilButton, {
40563
40621
  onClick: e => {
40564
40622
  e.stopPropagation();
40565
40623
  handleEditableClick(row, column.key, value, rowIndex);
@@ -40833,6 +40891,9 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
40833
40891
  case "checkbox":
40834
40892
  try {
40835
40893
  const isChecked = Boolean(value);
40894
+ // Check if this specific checkbox should be disabled
40895
+ // Format: checkboxDisabled_{columnKey} or checkboxDisabled (for backward compatibility)
40896
+ const isDisabled = row[`checkboxDisabled_${column.key}`] === true || column.key && row[`checkboxDisabled_${column.key}`] === true;
40836
40897
  return /*#__PURE__*/React__default["default"].createElement("div", {
40837
40898
  style: {
40838
40899
  display: "flex",
@@ -40844,13 +40905,15 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
40844
40905
  }, /*#__PURE__*/React__default["default"].createElement("input", {
40845
40906
  type: "checkbox",
40846
40907
  checked: isChecked,
40908
+ disabled: isDisabled,
40847
40909
  onChange: e => handleCheckboxClick(row, column.key, e),
40848
40910
  onClick: e => e.stopPropagation(),
40849
40911
  style: {
40850
40912
  width: "18px",
40851
40913
  height: "18px",
40852
- cursor: "pointer",
40853
- accentColor: buttonColor
40914
+ cursor: isDisabled ? "not-allowed" : "pointer",
40915
+ accentColor: buttonColor,
40916
+ opacity: isDisabled ? 0.5 : 1
40854
40917
  }
40855
40918
  }));
40856
40919
  } catch (e) {
@@ -44442,6 +44505,7 @@ const Table = props => {
44442
44505
  noEventsSubtitle = "Let's get started and create your first one!",
44443
44506
  noEventsButtonText = "New Event",
44444
44507
  noEventsButtonIcon = "Plus",
44508
+ disableNoEventsButton = false,
44445
44509
  showNoEventsButton = true,
44446
44510
  indexToShimmer = -1,
44447
44511
  resetFocusIndex,
@@ -44625,6 +44689,7 @@ const Table = props => {
44625
44689
  height: "45px",
44626
44690
  leftIcon: noEventsButtonIcon,
44627
44691
  text: noEventsButtonText,
44692
+ disabled: disableNoEventsButton,
44628
44693
  borderRadius: "12px",
44629
44694
  borderColor: buttonColor,
44630
44695
  hoverBorderColor: buttonHoverColor,
@@ -44668,7 +44733,7 @@ const TitleContainer = styled.styled.div`
44668
44733
  `;
44669
44734
  const SectionTitle$1 = styled.styled.div`
44670
44735
  color: #212121;
44671
- font-size: 18px;
44736
+ font-size: 14px;
44672
44737
  font-weight: 700;
44673
44738
  `;
44674
44739
  const SubtitleContainer = styled.styled.div`
@@ -44727,7 +44792,7 @@ const VendorList$2 = styled.styled.div`
44727
44792
  `;
44728
44793
  const VendorItem$1 = styled.styled.div`
44729
44794
  display: grid;
44730
- grid-template-columns: 15% 70% 15%;
44795
+ grid-template-columns: 10% 75% 15%;
44731
44796
  align-items: center;
44732
44797
  padding: 16px 8px;
44733
44798
  border-bottom: 1px solid #f2f2f2;
@@ -44746,7 +44811,7 @@ const VendorItem$1 = styled.styled.div`
44746
44811
  `;
44747
44812
  const VendorName$2 = styled.styled.div`
44748
44813
  color: #212121;
44749
- font-size: 16px;
44814
+ font-size: 14px;
44750
44815
  font-weight: 500;
44751
44816
  overflow: hidden;
44752
44817
  max-width: 90%;
@@ -54440,7 +54505,8 @@ const ItemManagerPanel = _ref => {
54440
54505
  buttonTooltipText = "Please fill out all forms before sending.",
54441
54506
  trashTooltipText = 'Vendor cannot be deleted since its packages <br/> have already been sent as a form.',
54442
54507
  maxVisibleVendors = 12,
54443
- componentText = "Scale"
54508
+ componentText = "Scale",
54509
+ SubTitleColor = "#8B8989"
54444
54510
  } = _ref;
54445
54511
  const [screen, setScreen] = React$1.useState("initial");
54446
54512
  const [selectedVendor, setSelectedVendor] = React$1.useState(null);
@@ -54691,7 +54757,9 @@ const ItemManagerPanel = _ref => {
54691
54757
  }
54692
54758
  }, /*#__PURE__*/React__default["default"].createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React__default["default"].createElement(VendorName$2, {
54693
54759
  title: item.name
54694
- }, item.name), packagesLength === 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, "No Packages"), packagesLength > 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, (() => {
54760
+ }, item.name), packagesLength === 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, "No Packages"), packagesLength > 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, {
54761
+ color: SubTitleColor
54762
+ }, (() => {
54695
54763
  const noPackagesSent = sentPackagesLength === 0;
54696
54764
  if (noPackagesSent) {
54697
54765
  return `0/${packagesLength} Packages Sent`;