@wavelengthusaf/components 4.13.0 → 4.16.0

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/esm/index.js CHANGED
@@ -206,7 +206,7 @@ var require_react_is_development = __commonJS({
206
206
  var ContextProvider = REACT_PROVIDER_TYPE;
207
207
  var Element = REACT_ELEMENT_TYPE;
208
208
  var ForwardRef2 = REACT_FORWARD_REF_TYPE;
209
- var Fragment16 = REACT_FRAGMENT_TYPE;
209
+ var Fragment15 = REACT_FRAGMENT_TYPE;
210
210
  var Lazy = REACT_LAZY_TYPE;
211
211
  var Memo2 = REACT_MEMO_TYPE;
212
212
  var Portal = REACT_PORTAL_TYPE;
@@ -265,7 +265,7 @@ var require_react_is_development = __commonJS({
265
265
  exports.ContextProvider = ContextProvider;
266
266
  exports.Element = Element;
267
267
  exports.ForwardRef = ForwardRef2;
268
- exports.Fragment = Fragment16;
268
+ exports.Fragment = Fragment15;
269
269
  exports.Lazy = Lazy;
270
270
  exports.Memo = Memo2;
271
271
  exports.Portal = Portal;
@@ -3728,7 +3728,7 @@ WavelengthExampleComponent.displayName = "WavelengthExampleComponent";
3728
3728
  import { useRef as useRef2, useEffect as useEffect2 } from "react";
3729
3729
  import { jsx as jsx8 } from "react/jsx-runtime";
3730
3730
  var WavelengthSearch = ({
3731
- customStyle: customStyle2,
3731
+ customStyle,
3732
3732
  width: width2,
3733
3733
  mode,
3734
3734
  fontSize,
@@ -3761,7 +3761,7 @@ var WavelengthSearch = ({
3761
3761
  useEffect2(() => {
3762
3762
  const el = ref.current;
3763
3763
  if (!el) return;
3764
- el.customStyles = customStyle2;
3764
+ el.customStyles = customStyle;
3765
3765
  syncAttribute("width", width2);
3766
3766
  syncAttribute("mode", mode);
3767
3767
  syncAttribute("font-size", fontSize);
@@ -3779,7 +3779,7 @@ var WavelengthSearch = ({
3779
3779
  syncAttribute("input-color", inputColor);
3780
3780
  syncAttribute("input-font", inputFont);
3781
3781
  }, [
3782
- customStyle2,
3782
+ customStyle,
3783
3783
  width2,
3784
3784
  mode,
3785
3785
  fontSize,
@@ -5162,14 +5162,14 @@ var WavelengthBadge = ({
5162
5162
  textBoxHoverBorderColor,
5163
5163
  item,
5164
5164
  children,
5165
- customStyle: customStyle2,
5165
+ customStyle,
5166
5166
  ...rest
5167
5167
  }) => {
5168
5168
  const ref = useRef8(null);
5169
5169
  useEffect8(() => {
5170
5170
  const el = ref.current;
5171
5171
  if (!el) return;
5172
- el.customStyles = customStyle2;
5172
+ el.customStyles = customStyle;
5173
5173
  const updateAttribute = (attr, value) => {
5174
5174
  if (value !== void 0 && value !== null && value !== "") {
5175
5175
  el.setAttribute(attr, value.toString());
@@ -5213,7 +5213,7 @@ var WavelengthBadge = ({
5213
5213
  textBoxBorderRadius,
5214
5214
  textBoxHoverBorderColor,
5215
5215
  item,
5216
- customStyle2
5216
+ customStyle
5217
5217
  ]);
5218
5218
  return /* @__PURE__ */ jsxs15("wavelength-badge", { ref, ...rest, children: [
5219
5219
  badgeContent !== void 0 && /* @__PURE__ */ jsx25("span", { slot: "badge", children: badgeContent }),
@@ -5526,7 +5526,7 @@ var WavelengthPlaneTrail = ({
5526
5526
  id,
5527
5527
  children,
5528
5528
  // Style argument
5529
- customStyle: customStyle2,
5529
+ customStyle,
5530
5530
  ...rest
5531
5531
  // This rest operator includes className, style, onClick, etc.
5532
5532
  }) => {
@@ -5534,8 +5534,8 @@ var WavelengthPlaneTrail = ({
5534
5534
  useEffect13(() => {
5535
5535
  const el = ref.current;
5536
5536
  if (!el) return;
5537
- if (customStyle2 !== void 0) {
5538
- el.customStyles = customStyle2;
5537
+ if (customStyle !== void 0) {
5538
+ el.customStyles = customStyle;
5539
5539
  }
5540
5540
  if (trailDir !== void 0) {
5541
5541
  el.setAttribute("trailDir", trailDir);
@@ -5547,53 +5547,55 @@ var WavelengthPlaneTrail = ({
5547
5547
  el.setAttribute("id", id);
5548
5548
  }
5549
5549
  }, [trailDir]);
5550
- return /* @__PURE__ */ jsx32("wavelength-planetrail", { ref, trailDir, color: color2, id, customStyle: customStyle2, ...rest, children });
5550
+ return /* @__PURE__ */ jsx32("wavelength-planetrail", { ref, trailDir, color: color2, id, customStyle, ...rest, children });
5551
5551
  };
5552
5552
  WavelengthPlaneTrail.displayName = "WavelengthPlaneTrail";
5553
5553
 
5554
5554
  // src/components/modals/WavelengthConfirmationModal.tsx
5555
- import { Modal, Box as Box2 } from "@mui/material";
5555
+ import { useEffect as useEffect14, useRef as useRef14 } from "react";
5556
5556
  import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
5557
5557
  function WavelengthConfirmationModal(props) {
5558
5558
  const { show, setShow, id, name } = props;
5559
- const handleClose = () => {
5560
- setShow(false);
5561
- };
5562
- return /* @__PURE__ */ jsx33(Modal, { open: show, onClose: handleClose, children: /* @__PURE__ */ jsxs18(
5563
- Box2,
5559
+ const modalRef = useRef14(null);
5560
+ useEffect14(() => {
5561
+ const handleClose = () => {
5562
+ setShow(false);
5563
+ };
5564
+ const currentModal = modalRef.current;
5565
+ if (currentModal) {
5566
+ currentModal.addEventListener("close", handleClose);
5567
+ }
5568
+ return () => {
5569
+ if (currentModal) {
5570
+ currentModal.removeEventListener("close", handleClose);
5571
+ }
5572
+ };
5573
+ }, [setShow]);
5574
+ return /* @__PURE__ */ jsxs18(
5575
+ "wavelength-confirmation-modal",
5564
5576
  {
5565
- sx: {
5566
- position: "absolute",
5567
- top: "50%",
5568
- left: "50%",
5569
- transform: "translate(-50%, -50%)",
5570
- width: props.width || "451px",
5571
- // Custom width
5572
- height: props.height || "256px",
5573
- // Custom height
5574
- boxSizing: "border-box",
5575
- bgcolor: props.backgroundColor || "background.paper",
5576
- borderRadius: "16px",
5577
- color: props.textColor || "black",
5578
- boxShadow: 24,
5579
- padding: "32px",
5580
- overflow: "scroll"
5581
- },
5577
+ ref: modalRef,
5578
+ show: show ? "true" : void 0,
5579
+ "modal-id": id,
5580
+ "modal-name": name,
5581
+ width: props.width,
5582
+ height: props.height,
5583
+ "font-family": props.fontFamily,
5584
+ "text-color": props.textColor,
5585
+ "background-color": props.backgroundColor,
5586
+ "title-text": props.textObj?.title,
5587
+ "dialog-text": props.textObj?.dialog,
5582
5588
  children: [
5583
- /* @__PURE__ */ jsx33("p", { style: { margin: "0px", fontSize: "28px", fontWeight: 500, padding: "0px", marginBottom: "16px", fontFamily: props.fontFamily }, children: props.textObj?.title }),
5584
- /* @__PURE__ */ jsx33("p", { style: { margin: "0px", fontSize: "16px", lineHeight: "19.2px", fontFamily: props.fontFamily, fontWeight: 400, height: "60px" }, children: props.textObj?.dialog }),
5585
- /* @__PURE__ */ jsxs18("div", { style: { display: "flex", flexDirection: "row", justifyContent: "flex-end", marginTop: "40px", gap: "8px" }, children: [
5586
- props.cancelButton,
5587
- props.submitButton
5588
- ] })
5589
+ props.cancelButton && /* @__PURE__ */ jsx33("div", { slot: "cancel-button", style: { display: "contents" }, children: props.cancelButton }),
5590
+ props.submitButton && /* @__PURE__ */ jsx33("div", { slot: "submit-button", style: { display: "contents" }, children: props.submitButton })
5589
5591
  ]
5590
5592
  }
5591
- ) });
5593
+ );
5592
5594
  }
5593
5595
  WavelengthConfirmationModal.displayName = "WavelengthConfirmationModal";
5594
5596
 
5595
5597
  // src/components/modals/WavelengthContentModal.tsx
5596
- import { Button as Button3, Dialog, DialogActions, DialogTitle, DialogContent, Typography as Typography3, IconButton as IconButton3, Box as Box3 } from "@mui/material";
5598
+ import { Button as Button3, Dialog, DialogActions, DialogTitle, DialogContent, Typography as Typography3, IconButton as IconButton3, Box as Box2 } from "@mui/material";
5597
5599
  import CloseIcon from "@mui/icons-material/Close";
5598
5600
  import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
5599
5601
  function WavelengthContentModal(props) {
@@ -5602,9 +5604,9 @@ function WavelengthContentModal(props) {
5602
5604
  setShow(false);
5603
5605
  };
5604
5606
  return /* @__PURE__ */ jsxs19(Dialog, { "data-testid": "testId-WavelengthContentModal", open: show, onClose: handleClose, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description", id: props.id, children: [
5605
- /* @__PURE__ */ jsx34(DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */ jsxs19(Box3, { display: "flex", alignItems: "center", children: [
5606
- /* @__PURE__ */ jsx34(Box3, { flexGrow: 1, children: props.textObj?.title }),
5607
- /* @__PURE__ */ jsx34(Box3, { children: /* @__PURE__ */ jsx34(IconButton3, { onClick: handleClose, children: /* @__PURE__ */ jsx34(CloseIcon, {}) }) })
5607
+ /* @__PURE__ */ jsx34(DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */ jsxs19(Box2, { display: "flex", alignItems: "center", children: [
5608
+ /* @__PURE__ */ jsx34(Box2, { flexGrow: 1, children: props.textObj?.title }),
5609
+ /* @__PURE__ */ jsx34(Box2, { children: /* @__PURE__ */ jsx34(IconButton3, { onClick: handleClose, children: /* @__PURE__ */ jsx34(CloseIcon, {}) }) })
5608
5610
  ] }) }),
5609
5611
  /* @__PURE__ */ jsx34(DialogContent, { children: /* @__PURE__ */ jsx34(Typography3, { align: "center", children: props.textObj?.dialog }) }),
5610
5612
  /* @__PURE__ */ jsx34(DialogActions, { style: { justifyContent: `center` }, children: /* @__PURE__ */ jsx34(Button3, { "data-testid": "testId-WavelengthContentModalConfirmButton", onClick: handleContentModalOnConfirmProp, color: "primary", variant: "contained", autoFocus: true, children: props.textObj?.purpose }) })
@@ -5613,141 +5615,39 @@ function WavelengthContentModal(props) {
5613
5615
  WavelengthContentModal.displayName = "WavelengthContentModal";
5614
5616
 
5615
5617
  // src/components/modals/WavelengthPopUpMenu.tsx
5616
- import React16 from "react";
5617
- import Menu from "@mui/material/Menu";
5618
- import MenuItem from "@mui/material/MenuItem";
5619
- import Box4 from "@mui/material/Box";
5620
- import Slide from "@mui/material/Slide";
5621
- import { HelpOutline } from "@mui/icons-material";
5622
- import styled5 from "styled-components";
5623
- import IconButton4 from "@mui/material/IconButton";
5624
- import Divider from "@mui/material/Divider";
5625
- import { Fragment as Fragment10, jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
5626
- var customStyle = { marginLeft: 16, marginRight: 16, marginTop: 8, marginBottom: 8 };
5627
- var emailStyle = {
5628
- marginLeft: 16,
5629
- marginRight: 16,
5630
- marginTop: 8,
5631
- marginBottom: 8
5632
- };
5633
- function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2, id, border: border2 }) {
5634
- const Links = styled5.a`
5635
- color: inherit;
5636
- text-decoration: none;
5637
-
5638
- &:hover,
5639
- &:focus {
5640
- color: ${({ hoverColor }) => hoverColor || "inherit"};
5641
- }
5642
- &:active {
5643
- color: ${({ hoverColor }) => hoverColor || "inherit"};
5644
- }
5645
- `;
5646
- const [anchorEl, setAnchorEl] = React16.useState(null);
5647
- const open = Boolean(anchorEl);
5648
- let icon;
5649
- const handleClick = (event) => {
5650
- setAnchorEl(event.currentTarget);
5651
- };
5652
- const handleClose = () => {
5653
- setAnchorEl(null);
5654
- };
5655
- if (customIcon) {
5656
- icon = customIcon;
5657
- } else {
5658
- icon = /* @__PURE__ */ jsx35(HelpOutline, { fontSize: "medium", sx: { color: color2 } });
5659
- }
5660
- const anchor = menuDirection === "top" || menuDirection === void 0 ? "top" : "bottom";
5661
- const transform = menuDirection === "top" || menuDirection === void 0 ? "bottom" : "top";
5662
- return /* @__PURE__ */ jsxs20(Fragment10, { children: [
5663
- /* @__PURE__ */ jsx35(IconButton4, { onClick: handleClick, children: icon }),
5664
- /* @__PURE__ */ jsxs20(
5665
- Menu,
5666
- {
5667
- id,
5668
- open,
5669
- sx: {
5670
- width: width2,
5671
- "& .MuiPaper-root": {
5672
- border: border2
5673
- }
5674
- },
5675
- onClose: handleClose,
5676
- anchorEl,
5677
- TransitionComponent: Slide,
5678
- anchorOrigin: { vertical: anchor, horizontal: "center" },
5679
- transformOrigin: { vertical: transform, horizontal: "center" },
5680
- children: [
5681
- ...menuItems.map((items, index) => {
5682
- if (items.end === true) {
5683
- if (items.itemType === "header") {
5684
- if (items.link) {
5685
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5686
- /* @__PURE__ */ jsx35(MenuItem, { children: /* @__PURE__ */ jsx35("a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: /* @__PURE__ */ jsx35("span", { style: { fontWeight: "bold" }, children: items.label }) }) }),
5687
- /* @__PURE__ */ jsx35(Divider, {})
5688
- ] }, index);
5689
- } else {
5690
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5691
- /* @__PURE__ */ jsx35("p", { style: { marginLeft: 16, marginRight: 16, marginTop: 6, marginBottom: 6 }, children: /* @__PURE__ */ jsx35("span", { style: { fontWeight: "bold" }, children: items.label }) }),
5692
- /* @__PURE__ */ jsx35(Divider, {})
5693
- ] }, index);
5694
- }
5695
- } else if (items.itemType === "link") {
5696
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5697
- /* @__PURE__ */ jsx35(MenuItem, { children: /* @__PURE__ */ jsx35(Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }, index) }),
5698
- /* @__PURE__ */ jsx35(Divider, {})
5699
- ] }, index);
5700
- } else {
5701
- if (items.link) {
5702
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5703
- /* @__PURE__ */ jsx35(MenuItem, { children: /* @__PURE__ */ jsx35("a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: items.label }) }),
5704
- /* @__PURE__ */ jsx35(Divider, {})
5705
- ] }, index);
5706
- } else {
5707
- if (items.email) {
5708
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5709
- /* @__PURE__ */ jsx35(Links, { href: items.email, style: emailStyle, children: items.label }),
5710
- /* @__PURE__ */ jsx35(Divider, {})
5711
- ] }, index);
5712
- } else {
5713
- return /* @__PURE__ */ jsxs20(Box4, { children: [
5714
- /* @__PURE__ */ jsx35("p", { style: customStyle, children: items.label }),
5715
- /* @__PURE__ */ jsx35(Divider, {})
5716
- ] }, index);
5717
- }
5718
- }
5719
- }
5720
- } else if (items.end === void 0 || items.end === false || items.end === null) {
5721
- if (items.itemType === "header") {
5722
- if (items.link) {
5723
- return /* @__PURE__ */ jsx35(MenuItem, { children: /* @__PURE__ */ jsx35(Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }) }, index);
5724
- } else {
5725
- return /* @__PURE__ */ jsx35("p", { style: customStyle, children: items.label }, index);
5726
- }
5727
- } else if (items.itemType === "link") {
5728
- return /* @__PURE__ */ jsx35(MenuItem, { style: { textDecoration: "none" }, children: /* @__PURE__ */ jsx35(Links, { href: items.link, hoverColor: items.hoverColor || "", children: items.label }) }, index);
5729
- } else {
5730
- if (items.link) {
5731
- return /* @__PURE__ */ jsx35(MenuItem, { href: items.link, children: items.label }, index);
5732
- } else {
5733
- if (items.email) {
5734
- return /* @__PURE__ */ jsx35("p", { style: emailStyle, children: /* @__PURE__ */ jsx35(Links, { href: items.email, hoverColor: items.hoverColor || "blue", children: items.label }) }, index);
5735
- } else {
5736
- return /* @__PURE__ */ jsx35("p", { style: customStyle, children: items.label }, index);
5737
- }
5738
- }
5739
- }
5740
- }
5741
- })
5742
- ]
5618
+ import React17, { useRef as useRef15, useEffect as useEffect15 } from "react";
5619
+ import { jsx as jsx35 } from "react/jsx-runtime";
5620
+ var WavelengthPopUpMenu = React17.forwardRef(
5621
+ ({ children, customStyle = {}, variant, trigger, menuDirection, menuOffset, menuItems, badgeLabel, ...rest }, externalRef) => {
5622
+ const internalRef = useRef15(null);
5623
+ React17.useImperativeHandle(externalRef, () => internalRef.current);
5624
+ useEffect15(() => {
5625
+ const el = internalRef.current;
5626
+ if (!el) return;
5627
+ el.customStyles = customStyle;
5628
+ const set = (attr, value) => {
5629
+ if (value !== void 0 && value !== null && value !== "") {
5630
+ el.setAttribute(attr, value.toString());
5631
+ } else {
5632
+ el.removeAttribute(attr);
5633
+ }
5634
+ };
5635
+ set("variant", variant);
5636
+ set("trigger", trigger);
5637
+ set("menu-direction", menuDirection);
5638
+ set("menu-offset", menuOffset);
5639
+ set("badge-label", badgeLabel);
5640
+ if (menuItems !== void 0) {
5641
+ el.setAttribute("menu-items", JSON.stringify(menuItems));
5743
5642
  }
5744
- )
5745
- ] });
5746
- }
5643
+ }, [customStyle, variant, trigger, menuDirection, menuOffset, menuItems, badgeLabel]);
5644
+ return /* @__PURE__ */ jsx35("wavelength-popup-menu", { ref: internalRef, ...rest, children });
5645
+ }
5646
+ );
5747
5647
  WavelengthPopUpMenu.displayName = "WavelengthPopUpMenu";
5748
5648
 
5749
5649
  // src/components/modals/WavelengthDropdown.tsx
5750
- import { forwardRef, useEffect as useEffect14, useImperativeHandle as useImperativeHandle2, useRef as useRef14 } from "react";
5650
+ import { forwardRef, useEffect as useEffect16, useImperativeHandle as useImperativeHandle2, useRef as useRef16 } from "react";
5751
5651
  import { jsx as jsx36 } from "react/jsx-runtime";
5752
5652
  var WavelengthDropdown = forwardRef((props, ref) => {
5753
5653
  const {
@@ -5773,9 +5673,9 @@ var WavelengthDropdown = forwardRef((props, ref) => {
5773
5673
  onChange,
5774
5674
  ...rest
5775
5675
  } = props;
5776
- const elementRef = useRef14(null);
5676
+ const elementRef = useRef16(null);
5777
5677
  useImperativeHandle2(ref, () => elementRef.current);
5778
- useEffect14(() => {
5678
+ useEffect16(() => {
5779
5679
  const el = elementRef.current;
5780
5680
  if (!el || !onChange) return;
5781
5681
  const handler = (e) => {
@@ -5785,7 +5685,7 @@ var WavelengthDropdown = forwardRef((props, ref) => {
5785
5685
  el.addEventListener("change", handler);
5786
5686
  return () => el.removeEventListener("change", handler);
5787
5687
  }, [onChange]);
5788
- useEffect14(() => {
5688
+ useEffect16(() => {
5789
5689
  if (value !== void 0 && elementRef.current) {
5790
5690
  elementRef.current.value = value;
5791
5691
  }
@@ -5819,7 +5719,7 @@ var WavelengthDropdown = forwardRef((props, ref) => {
5819
5719
  WavelengthDropdown.displayName = "WavelengthDropdown";
5820
5720
 
5821
5721
  // src/components/modals/WavelengthMenu.tsx
5822
- import { useRef as useRef15, useEffect as useEffect15 } from "react";
5722
+ import { useRef as useRef17, useEffect as useEffect17 } from "react";
5823
5723
  import { jsx as jsx37 } from "react/jsx-runtime";
5824
5724
  var WavelengthMenu = ({
5825
5725
  backgroundColor: backgroundColor2,
@@ -5836,13 +5736,13 @@ var WavelengthMenu = ({
5836
5736
  ...rest
5837
5737
  // This rest operator includes className, style, onClick, etc.
5838
5738
  }) => {
5839
- const ref = useRef15(null);
5739
+ const ref = useRef17(null);
5840
5740
  const syncAttribute = (attribute, value) => {
5841
5741
  const el = ref.current;
5842
5742
  if (!el) return;
5843
5743
  el.setAttribute(attribute, value);
5844
5744
  };
5845
- useEffect15(() => {
5745
+ useEffect17(() => {
5846
5746
  const el = ref.current;
5847
5747
  if (!el) return;
5848
5748
  syncAttribute("background-color", backgroundColor2 || "");
@@ -5884,11 +5784,11 @@ var WavelengthMenu = ({
5884
5784
  WavelengthMenu.displayName = "WavelengthMenu";
5885
5785
 
5886
5786
  // src/components/modals/WavelengthSwitch.tsx
5887
- import { useRef as useRef16, useEffect as useEffect16 } from "react";
5787
+ import { useRef as useRef18, useEffect as useEffect18 } from "react";
5888
5788
  import { jsx as jsx38 } from "react/jsx-runtime";
5889
- var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2, labelFont, checked, value, onWavelengthSwitchChange, customStyle: customStyle2, ...rest }) => {
5890
- const ref = useRef16(null);
5891
- useEffect16(() => {
5789
+ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2, labelFont, checked, value, onWavelengthSwitchChange, customStyle, ...rest }) => {
5790
+ const ref = useRef18(null);
5791
+ useEffect18(() => {
5892
5792
  const el = ref.current;
5893
5793
  if (!el) return;
5894
5794
  const syncAttribute = (attr, val, isBool = false) => {
@@ -5898,7 +5798,7 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2,
5898
5798
  el.setAttribute(attr, isBool ? "" : val.toString());
5899
5799
  }
5900
5800
  };
5901
- el.customStyles = customStyle2;
5801
+ el.customStyles = customStyle;
5902
5802
  syncAttribute("checked", checked, true);
5903
5803
  syncAttribute("disabled", disabled, true);
5904
5804
  syncAttribute("label", label);
@@ -5907,8 +5807,8 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2,
5907
5807
  syncAttribute("color", color2);
5908
5808
  syncAttribute("label-font", labelFont);
5909
5809
  syncAttribute("value", value);
5910
- }, [checked, label, labelPlacement, size, disabled, color2, labelFont, value, customStyle2]);
5911
- useEffect16(() => {
5810
+ }, [checked, label, labelPlacement, size, disabled, color2, labelFont, value, customStyle]);
5811
+ useEffect18(() => {
5912
5812
  const el = ref.current;
5913
5813
  if (!el || !onWavelengthSwitchChange) return;
5914
5814
  const handleEvent = (e) => {
@@ -5921,14 +5821,110 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2,
5921
5821
  };
5922
5822
  WavelengthSwitch.displayName = "WavelengthSwitch";
5923
5823
 
5924
- // src/components/modals/WavelengthPagination.tsx
5925
- import { useRef as useRef17, useEffect as useEffect17 } from "react";
5824
+ // src/components/modals/WavelengthDialog.tsx
5825
+ import { useRef as useRef19, useEffect as useEffect19 } from "react";
5926
5826
  import { jsx as jsx39 } from "react/jsx-runtime";
5827
+ var WavelengthDialog = ({
5828
+ children,
5829
+ customStyle,
5830
+ dialogTitle,
5831
+ leftBtnLabel,
5832
+ rightBtnLabel,
5833
+ boxColor,
5834
+ maxWidth: maxWidth2,
5835
+ maxHeight: maxHeight2,
5836
+ shadow,
5837
+ borderRadius: borderRadius2,
5838
+ borderColor: borderColor2,
5839
+ textColor,
5840
+ leftBtnBg,
5841
+ leftBtnColor,
5842
+ rightBtnBg,
5843
+ rightBtnColor,
5844
+ overlay,
5845
+ fontFamily,
5846
+ open,
5847
+ onWlLeftBtnClick,
5848
+ onWlRightBtnClick,
5849
+ ...rest
5850
+ }) => {
5851
+ const ref = useRef19(null);
5852
+ useEffect19(() => {
5853
+ const el = ref.current;
5854
+ if (!el) return;
5855
+ if (open) el.setAttribute("open", "");
5856
+ else el.removeAttribute("open");
5857
+ }, [open]);
5858
+ useEffect19(() => {
5859
+ const el = ref.current;
5860
+ if (!el) return;
5861
+ if (overlay) el.setAttribute("overlay", "");
5862
+ else el.removeAttribute("overlay");
5863
+ }, [overlay]);
5864
+ useEffect19(() => {
5865
+ const el = ref.current;
5866
+ if (!el) return;
5867
+ const handleLeft = (e) => onWlLeftBtnClick?.(e);
5868
+ const handleRight = (e) => onWlRightBtnClick?.(e);
5869
+ el.addEventListener("wl-left-btn-click", handleLeft);
5870
+ el.addEventListener("wl-right-btn-click", handleRight);
5871
+ return () => {
5872
+ el.removeEventListener("wl-left-btn-click", handleLeft);
5873
+ el.removeEventListener("wl-right-btn-click", handleRight);
5874
+ };
5875
+ }, [onWlLeftBtnClick, onWlRightBtnClick]);
5876
+ useEffect19(() => {
5877
+ const el = ref.current;
5878
+ if (!el) return;
5879
+ if (customStyle !== void 0) el.customStyles = customStyle;
5880
+ const setAttr = (attr, value) => {
5881
+ if (value !== void 0) el.setAttribute(attr, value);
5882
+ };
5883
+ setAttr("dialog-title", dialogTitle);
5884
+ setAttr("left-btn-label", leftBtnLabel);
5885
+ setAttr("right-btn-label", rightBtnLabel);
5886
+ setAttr("box-color", boxColor);
5887
+ setAttr("max-width", maxWidth2);
5888
+ setAttr("max-height", maxHeight2);
5889
+ setAttr("shadow", shadow);
5890
+ setAttr("border-radius", borderRadius2);
5891
+ setAttr("border-color", borderColor2);
5892
+ setAttr("text-color", textColor);
5893
+ setAttr("left-btn-bg", leftBtnBg);
5894
+ setAttr("left-btn-color", leftBtnColor);
5895
+ setAttr("right-btn-bg", rightBtnBg);
5896
+ setAttr("right-btn-color", rightBtnColor);
5897
+ setAttr("font-family", fontFamily);
5898
+ }, [
5899
+ customStyle,
5900
+ dialogTitle,
5901
+ leftBtnLabel,
5902
+ rightBtnLabel,
5903
+ boxColor,
5904
+ maxWidth2,
5905
+ maxHeight2,
5906
+ shadow,
5907
+ borderRadius2,
5908
+ borderColor2,
5909
+ textColor,
5910
+ leftBtnBg,
5911
+ leftBtnColor,
5912
+ rightBtnBg,
5913
+ rightBtnColor,
5914
+ fontFamily
5915
+ ]);
5916
+ return /* @__PURE__ */ jsx39("wavelength-dialog", { ref, ...rest, children });
5917
+ };
5918
+ WavelengthDialog.displayName = "WavelengthDialog";
5919
+
5920
+ // src/components/modals/WavelengthPagination.tsx
5921
+ import { useRef as useRef20, useEffect as useEffect20 } from "react";
5922
+ import { jsx as jsx40 } from "react/jsx-runtime";
5927
5923
  var WavelengthPagination = ({
5928
5924
  testProp,
5929
5925
  children,
5930
5926
  // Style argument
5931
- customStyle: customStyle2,
5927
+ customStyle,
5932
5928
  variant,
5933
5929
  textColor,
5934
5930
  font,
@@ -5946,16 +5942,16 @@ var WavelengthPagination = ({
5946
5942
  ...rest
5947
5943
  // This rest operator includes className, style, onClick, etc.
5948
5944
  }) => {
5949
- const ref = useRef17(null);
5945
+ const ref = useRef20(null);
5950
5946
  const syncAttribute = (attribute, value) => {
5951
5947
  const el = ref.current;
5952
5948
  if (!el) return;
5953
5949
  el.setAttribute(attribute, value);
5954
5950
  };
5955
- useEffect17(() => {
5951
+ useEffect20(() => {
5956
5952
  const el = ref.current;
5957
5953
  if (!el) return;
5958
- el.customStyles = customStyle2;
5954
+ el.customStyles = customStyle;
5959
5955
  syncAttribute("variant", variant || "");
5960
5956
  syncAttribute("text-color", textColor || "");
5961
5957
  syncAttribute("font", font || "");
@@ -5979,7 +5975,7 @@ var WavelengthPagination = ({
5979
5975
  el.removeEventListener("page-change", handlePageChange);
5980
5976
  };
5981
5977
  }, [testProp, textColor, font, fontSize, border2, borderRadius2, padding2, variant, totalPages, currentPage, activeColor, activeTextColor, backgroundColor2, disabledColor, onPageChange]);
5982
- return /* @__PURE__ */ jsx39("wavelength-pagination", { ref, variant, "total-pages": totalPages, "current-page": currentPage, ...rest });
5978
+ return /* @__PURE__ */ jsx40("wavelength-pagination", { ref, variant, "total-pages": totalPages, "current-page": currentPage, ...rest });
5983
5979
  };
5984
5980
  WavelengthPagination.displayName = "WavelengthPagination";
5985
5981
 
@@ -5994,9 +5990,9 @@ import { useState as useState4 } from "react";
5994
5990
  import Button4 from "@mui/material/Button";
5995
5991
  import ArrowBackIosNewIcon from "@mui/icons-material/ArrowBackIosNew";
5996
5992
  import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
5997
- import styled6 from "styled-components";
5998
- import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
5999
- var MyDroplistItems = styled6("li")`
5993
+ import styled5 from "styled-components";
5994
+ import { jsx as jsx41, jsxs as jsxs20 } from "react/jsx-runtime";
5995
+ var MyDroplistItems = styled5("li")`
6000
5996
  background-color: white;
6001
5997
  color: #000000;
6002
5998
  padding: 10px 30px;
@@ -6039,16 +6035,16 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
6039
6035
  "&:disabled": { background: "rgb(226, 223, 223)" },
6040
6036
  "&.active": { background: "#8FD8FF" }
6041
6037
  };
6042
- return /* @__PURE__ */ jsxs21("div", { style: dropstyles.butPagCompDivStyle, id, children: [
6043
- /* @__PURE__ */ jsx40(Button4, { onClick: () => handleChangePage(current - 1), disabled: current === 1, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx40(ArrowBackIosNewIcon, {}) }),
6044
- /* @__PURE__ */ jsx40("section", { style: dropstyles.rangenumbers, children: itemList.map(
6038
+ return /* @__PURE__ */ jsxs20("div", { style: dropstyles.butPagCompDivStyle, id, children: [
6039
+ /* @__PURE__ */ jsx41(Button4, { onClick: () => handleChangePage(current - 1), disabled: current === 1, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx41(ArrowBackIosNewIcon, {}) }),
6040
+ /* @__PURE__ */ jsx41("section", { style: dropstyles.rangenumbers, children: itemList.map(
6045
6041
  (item, index) => item === "..." && index === 1 ? (
6046
6042
  //first half ellipse with first half dropdown
6047
6043
  // dropdown
6048
6044
  // eslint-disable-next-line react/jsx-key
6049
- /* @__PURE__ */ jsxs21("div", { children: [
6050
- /* @__PURE__ */ jsx40(Button4, { onClick: () => toggleDropdown(1), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
6051
- isOpen && /* @__PURE__ */ jsx40("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx40("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx40(
6045
+ /* @__PURE__ */ jsxs20("div", { children: [
6046
+ /* @__PURE__ */ jsx41(Button4, { onClick: () => toggleDropdown(1), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
6047
+ isOpen && /* @__PURE__ */ jsx41("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx41("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx41(
6052
6048
  MyDroplistItems,
6053
6049
  {
6054
6050
  onClick: () => {
@@ -6061,9 +6057,9 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
6061
6057
  ] })
6062
6058
  ) : item === "..." && index === 5 ? (
6063
6059
  //second half ellipse with second half dropdown
6064
- /* @__PURE__ */ jsxs21("div", { children: [
6065
- /* @__PURE__ */ jsx40(Button4, { onClick: () => toggleDropdown(5), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
6066
- isSecOpen && /* @__PURE__ */ jsx40("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx40("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx40(
6060
+ /* @__PURE__ */ jsxs20("div", { children: [
6061
+ /* @__PURE__ */ jsx41(Button4, { onClick: () => toggleDropdown(5), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
6062
+ isSecOpen && /* @__PURE__ */ jsx41("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx41("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx41(
6067
6063
  MyDroplistItems,
6068
6064
  {
6069
6065
  onClick: () => {
@@ -6074,9 +6070,9 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
6074
6070
  item2
6075
6071
  )) }) })
6076
6072
  ] })
6077
- ) : /* @__PURE__ */ jsx40(Button4, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", sx: WLButtonPagStyle, children: item }, index)
6073
+ ) : /* @__PURE__ */ jsx41(Button4, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", sx: WLButtonPagStyle, children: item }, index)
6078
6074
  ) }),
6079
- /* @__PURE__ */ jsx40(Button4, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx40(ArrowForwardIosIcon, {}) })
6075
+ /* @__PURE__ */ jsx41(Button4, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx41(ArrowForwardIosIcon, {}) })
6080
6076
  ] });
6081
6077
  }
6082
6078
  WavelengthButtonPagination.displayName = "WavelengthButtonPagination";
@@ -6087,12 +6083,12 @@ import { useState as useState5 } from "react";
6087
6083
  import Button5 from "@mui/material/Button";
6088
6084
  import ArrowBackIosNewIcon2 from "@mui/icons-material/ArrowBackIosNew";
6089
6085
  import ArrowForwardIosIcon2 from "@mui/icons-material/ArrowForwardIos";
6090
- import styled7 from "styled-components";
6091
- import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
6086
+ import styled6 from "styled-components";
6087
+ import { jsx as jsx42, jsxs as jsxs21 } from "react/jsx-runtime";
6092
6088
  function WavelengthVariationPagination({ totalPages, current, variant, handleChangePage, itemList, firstEllipseList, secondEllipseList, id }) {
6093
6089
  const [isOpen, setIsOpen] = useState5(false);
6094
6090
  const [isSecOpen, setIsSecOpen] = useState5(false);
6095
- const MyDroplistItems2 = styled7("li")`
6091
+ const MyDroplistItems2 = styled6("li")`
6096
6092
  background-color: white;
6097
6093
  color: #000000;
6098
6094
  padding: 10px 30px;
@@ -6130,15 +6126,15 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
6130
6126
  setIsSecOpen(!isSecOpen);
6131
6127
  }
6132
6128
  };
6133
- return /* @__PURE__ */ jsxs22("div", { style: dropstyles.pagination, id, children: [
6134
- /* @__PURE__ */ jsx41(Button5, { onClick: () => handleChangePage(current - 1), variant, disabled: current === 1, children: /* @__PURE__ */ jsx41(ArrowBackIosNewIcon2, {}) }),
6135
- /* @__PURE__ */ jsx41("section", { style: dropstyles.rangenumbers, children: itemList.map(
6129
+ return /* @__PURE__ */ jsxs21("div", { style: dropstyles.pagination, id, children: [
6130
+ /* @__PURE__ */ jsx42(Button5, { onClick: () => handleChangePage(current - 1), variant, disabled: current === 1, children: /* @__PURE__ */ jsx42(ArrowBackIosNewIcon2, {}) }),
6131
+ /* @__PURE__ */ jsx42("section", { style: dropstyles.rangenumbers, children: itemList.map(
6136
6132
  (item, index) => item === "..." && index === 1 ? (
6137
6133
  //first half ellipse with first half dropdown
6138
6134
  // eslint-disable-next-line react/jsx-key
6139
- /* @__PURE__ */ jsxs22("div", { children: [
6140
- /* @__PURE__ */ jsx41(Button5, { onClick: () => toggleDropdown(1), variant, className: current === index ? "active" : "", children: item }, index),
6141
- isOpen && /* @__PURE__ */ jsx41("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx41("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx41(
6135
+ /* @__PURE__ */ jsxs21("div", { children: [
6136
+ /* @__PURE__ */ jsx42(Button5, { onClick: () => toggleDropdown(1), variant, className: current === index ? "active" : "", children: item }, index),
6137
+ isOpen && /* @__PURE__ */ jsx42("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx42("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx42(
6142
6138
  MyDroplistItems2,
6143
6139
  {
6144
6140
  style: dropstyles.mydroplist,
@@ -6152,9 +6148,9 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
6152
6148
  ] })
6153
6149
  ) : item === "..." && index === 5 ? (
6154
6150
  //second half ellipse with second half dropdown
6155
- /* @__PURE__ */ jsxs22("div", { children: [
6156
- /* @__PURE__ */ jsx41(Button5, { onClick: () => toggleDropdown(5), variant, className: current === index ? "active" : "", children: item }, index),
6157
- isSecOpen && /* @__PURE__ */ jsx41("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx41("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx41(
6151
+ /* @__PURE__ */ jsxs21("div", { children: [
6152
+ /* @__PURE__ */ jsx42(Button5, { onClick: () => toggleDropdown(5), variant, className: current === index ? "active" : "", children: item }, index),
6153
+ isSecOpen && /* @__PURE__ */ jsx42("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx42("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx42(
6158
6154
  MyDroplistItems2,
6159
6155
  {
6160
6156
  style: dropstyles.mydroplist,
@@ -6166,16 +6162,16 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
6166
6162
  item2
6167
6163
  )) }) })
6168
6164
  ] })
6169
- ) : /* @__PURE__ */ jsx41(Button5, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", variant, children: item }, index)
6165
+ ) : /* @__PURE__ */ jsx42(Button5, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", variant, children: item }, index)
6170
6166
  ) }),
6171
- /* @__PURE__ */ jsx41(Button5, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, variant, children: /* @__PURE__ */ jsx41(ArrowForwardIosIcon2, {}) })
6167
+ /* @__PURE__ */ jsx42(Button5, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, variant, children: /* @__PURE__ */ jsx42(ArrowForwardIosIcon2, {}) })
6172
6168
  ] });
6173
6169
  }
6174
6170
  WavelengthVariationPagination.displayName = "WavelengthVariationPagination";
6175
6171
  var WavelengthVariationPagination_default = WavelengthVariationPagination;
6176
6172
 
6177
6173
  // src/components/pagination/WavelengthDefaultPagination.tsx
6178
- import { jsx as jsx42 } from "react/jsx-runtime";
6174
+ import { jsx as jsx43 } from "react/jsx-runtime";
6179
6175
  var range = (start, end) => {
6180
6176
  const length = end - start + 1;
6181
6177
  return Array.from({ length }, (_, i) => start + i);
@@ -6213,7 +6209,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6213
6209
  }
6214
6210
  };
6215
6211
  if (style3 === "circular") {
6216
- return /* @__PURE__ */ jsx42(
6212
+ return /* @__PURE__ */ jsx43(
6217
6213
  WavelengthButtonPagination_default,
6218
6214
  {
6219
6215
  id,
@@ -6226,7 +6222,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6226
6222
  }
6227
6223
  );
6228
6224
  } else if (style3 === "text") {
6229
- return /* @__PURE__ */ jsx42(
6225
+ return /* @__PURE__ */ jsx43(
6230
6226
  WavelengthVariationPagination_default,
6231
6227
  {
6232
6228
  id,
@@ -6240,7 +6236,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6240
6236
  }
6241
6237
  );
6242
6238
  } else if (style3 === "outlined") {
6243
- return /* @__PURE__ */ jsx42(
6239
+ return /* @__PURE__ */ jsx43(
6244
6240
  WavelengthVariationPagination_default,
6245
6241
  {
6246
6242
  id,
@@ -6254,7 +6250,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6254
6250
  }
6255
6251
  );
6256
6252
  } else if (style3 === "contained") {
6257
- return /* @__PURE__ */ jsx42(
6253
+ return /* @__PURE__ */ jsx43(
6258
6254
  WavelengthVariationPagination_default,
6259
6255
  {
6260
6256
  id,
@@ -6268,7 +6264,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
6268
6264
  }
6269
6265
  );
6270
6266
  } else {
6271
- return /* @__PURE__ */ jsx42(
6267
+ return /* @__PURE__ */ jsx43(
6272
6268
  WavelengthVariationPagination_default,
6273
6269
  {
6274
6270
  id,
@@ -6289,16 +6285,16 @@ var WavelengthDefaultPagination_default = WavelengthDefaultPagination;
6289
6285
  import Snackbar from "@mui/material/Snackbar";
6290
6286
  import SnackbarContent from "@mui/material/SnackbarContent";
6291
6287
  import CloseIcon2 from "@mui/icons-material/Close";
6292
- import { IconButton as IconButton5 } from "@mui/material";
6293
- import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
6288
+ import { IconButton as IconButton4 } from "@mui/material";
6289
+ import { jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
6294
6290
  function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor, textColor, horryAlign, vertyAlign, durationSb, width: width2, icon, id }) {
6295
6291
  const handleClose = () => {
6296
6292
  setShow(false);
6297
6293
  };
6298
- const defaultIcon = /* @__PURE__ */ jsx43(IconButton5, { size: "small", "aria-label": "close", color: "inherit", children: /* @__PURE__ */ jsx43(CloseIcon2, { fontSize: "small" }) });
6294
+ const defaultIcon = /* @__PURE__ */ jsx44(IconButton4, { size: "small", "aria-label": "close", color: "inherit", children: /* @__PURE__ */ jsx44(CloseIcon2, { fontSize: "small" }) });
6299
6295
  const palette2 = getPalette();
6300
6296
  const durationMs = durationSb ? durationSb * 1e3 : 4e3;
6301
- return /* @__PURE__ */ jsx43(
6297
+ return /* @__PURE__ */ jsx44(
6302
6298
  Snackbar,
6303
6299
  {
6304
6300
  id,
@@ -6309,7 +6305,7 @@ function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor,
6309
6305
  vertical: vertyAlign ? vertyAlign : "bottom",
6310
6306
  horizontal: horryAlign ? horryAlign : "center"
6311
6307
  },
6312
- children: /* @__PURE__ */ jsx43(
6308
+ children: /* @__PURE__ */ jsx44(
6313
6309
  SnackbarContent,
6314
6310
  {
6315
6311
  style: {
@@ -6318,11 +6314,11 @@ function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor,
6318
6314
  display: "flex",
6319
6315
  width: width2
6320
6316
  },
6321
- message: /* @__PURE__ */ jsxs23("div", { children: [
6322
- /* @__PURE__ */ jsx43("span", { children: icon }),
6323
- /* @__PURE__ */ jsx43("span", { id: "snackbar", children: message ? message : "Insert Message Here" })
6317
+ message: /* @__PURE__ */ jsxs22("div", { children: [
6318
+ /* @__PURE__ */ jsx44("span", { children: icon }),
6319
+ /* @__PURE__ */ jsx44("span", { id: "snackbar", children: message ? message : "Insert Message Here" })
6324
6320
  ] }),
6325
- action: /* @__PURE__ */ jsx43("div", { style: { display: "flex", justifyContent: "center" }, onClick: handleClose, children: closeIcon ? closeIcon : defaultIcon })
6321
+ action: /* @__PURE__ */ jsx44("div", { style: { display: "flex", justifyContent: "center" }, onClick: handleClose, children: closeIcon ? closeIcon : defaultIcon })
6326
6322
  }
6327
6323
  )
6328
6324
  }
@@ -6333,7 +6329,7 @@ WavelengthSnackbar.displayName = "WavelengthSnackbar";
6333
6329
  // src/components/snackbars/WavelengthStandardSnackbar.tsx
6334
6330
  import Snackbar2 from "@mui/material/Snackbar";
6335
6331
  import SnackbarContent2 from "@mui/material/SnackbarContent";
6336
- import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
6332
+ import { jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
6337
6333
  function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width: width2, message, customVertyAlign, toggleShow, closeIcon, id }) {
6338
6334
  const handleClose = () => {
6339
6335
  toggleShow(false);
@@ -6348,7 +6344,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
6348
6344
  bgColor = "#737373";
6349
6345
  }
6350
6346
  const sIcon = icon ? icon : "";
6351
- return /* @__PURE__ */ jsx44(
6347
+ return /* @__PURE__ */ jsx45(
6352
6348
  Snackbar2,
6353
6349
  {
6354
6350
  id,
@@ -6360,7 +6356,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
6360
6356
  vertical: vertyAlign ? vertyAlign : "top",
6361
6357
  horizontal: horryAlign ? horryAlign : "center"
6362
6358
  },
6363
- children: /* @__PURE__ */ jsx44(
6359
+ children: /* @__PURE__ */ jsx45(
6364
6360
  SnackbarContent2,
6365
6361
  {
6366
6362
  style: {
@@ -6369,7 +6365,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
6369
6365
  //color: props.textColor ? props.textColor : palette.secondary,
6370
6366
  },
6371
6367
  sx: { paddingTop: "0px", paddingBottom: "0px" },
6372
- message: /* @__PURE__ */ jsxs24(
6368
+ message: /* @__PURE__ */ jsxs23(
6373
6369
  "div",
6374
6370
  {
6375
6371
  style: {
@@ -6378,11 +6374,11 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
6378
6374
  width: width2
6379
6375
  },
6380
6376
  children: [
6381
- /* @__PURE__ */ jsxs24("div", { style: { gridColumnStart: 2, gridColumnEnd: 5, textAlign: "center", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center" }, id: "snackbar", children: [
6382
- /* @__PURE__ */ jsx44("div", { style: { marginTop: "5px" }, children: sIcon }),
6383
- /* @__PURE__ */ jsx44("div", { style: { fontSize: "1rem", marginLeft: "10px" }, children: message ? message : "Insert Message Here" })
6377
+ /* @__PURE__ */ jsxs23("div", { style: { gridColumnStart: 2, gridColumnEnd: 5, textAlign: "center", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center" }, id: "snackbar", children: [
6378
+ /* @__PURE__ */ jsx45("div", { style: { marginTop: "5px" }, children: sIcon }),
6379
+ /* @__PURE__ */ jsx45("div", { style: { fontSize: "1rem", marginLeft: "10px" }, children: message ? message : "Insert Message Here" })
6384
6380
  ] }),
6385
- /* @__PURE__ */ jsx44("div", { style: { gridColumnStart: 6 }, onClick: handleClose, children: closeIcon })
6381
+ /* @__PURE__ */ jsx45("div", { style: { gridColumnStart: 6 }, onClick: handleClose, children: closeIcon })
6386
6382
  ]
6387
6383
  }
6388
6384
  )
@@ -6394,13 +6390,13 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
6394
6390
  WavelengthStandardSnackbar.displayName = "WavelengthStandardSnackbar";
6395
6391
 
6396
6392
  // src/components/snackbars/WavelengthTestSnackbar.tsx
6397
- import Box5 from "@mui/material/Box";
6393
+ import Box3 from "@mui/material/Box";
6398
6394
  import Button6 from "@mui/material/Button";
6399
- import { useEffect as useEffect18, useRef as useRef18 } from "react";
6400
- import { Fragment as Fragment11, jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
6395
+ import { useEffect as useEffect21, useRef as useRef21 } from "react";
6396
+ import { Fragment as Fragment10, jsx as jsx46, jsxs as jsxs24 } from "react/jsx-runtime";
6401
6397
  var useOutsideClick = (callback) => {
6402
- const ref = useRef18(null);
6403
- useEffect18(() => {
6398
+ const ref = useRef21(null);
6399
+ useEffect21(() => {
6404
6400
  const handleClickOutside = (event) => {
6405
6401
  if (ref.current && !ref.current.contains(event.target)) {
6406
6402
  callback();
@@ -6427,8 +6423,8 @@ function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, custom
6427
6423
  } else if (type === "disabled") {
6428
6424
  bgColor = "#737373";
6429
6425
  }
6430
- return /* @__PURE__ */ jsx45(Fragment11, { children: isPopUpOpen && /* @__PURE__ */ jsxs25(
6431
- Box5,
6426
+ return /* @__PURE__ */ jsx46(Fragment10, { children: isPopUpOpen && /* @__PURE__ */ jsxs24(
6427
+ Box3,
6432
6428
  {
6433
6429
  id,
6434
6430
  sx: { position: "fixed", right: "auto", top: "24px", left: "50%", transform: "translateX(-50%)" },
@@ -6447,9 +6443,9 @@ function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, custom
6447
6443
  marginTop: customVertyAlign ? `${customVertyAlign}` : ""
6448
6444
  },
6449
6445
  children: [
6450
- /* @__PURE__ */ jsx45("div", { style: { backgroundColor: "red" } }),
6451
- /* @__PURE__ */ jsx45("div", { style: { color: "white", fontSize: "1rem" }, children: message }),
6452
- /* @__PURE__ */ jsx45(
6446
+ /* @__PURE__ */ jsx46("div", { style: { backgroundColor: "red" } }),
6447
+ /* @__PURE__ */ jsx46("div", { style: { color: "white", fontSize: "1rem" }, children: message }),
6448
+ /* @__PURE__ */ jsx46(
6453
6449
  Button6,
6454
6450
  {
6455
6451
  variant: "text",
@@ -6466,38 +6462,42 @@ function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, custom
6466
6462
  WavelengthTestSnackbar.displayName = "WavelengthTestSnackbar";
6467
6463
 
6468
6464
  // src/components/sliders/WavelengthSlider.tsx
6469
- import Box6 from "@mui/material/Box";
6470
- import Slider from "@mui/material/Slider";
6471
- import { jsx as jsx46 } from "react/jsx-runtime";
6472
- function WavelengthSlider({ width: width2 = "300px", color: color2, valueDisplayed, marks, labelColor, value, id, maxVal = 100, minVal, step = 1, labelFunc, handleChange }) {
6473
- const on = valueDisplayed ? "on" : "off";
6474
- return /* @__PURE__ */ jsx46(Box6, { sx: { width: width2 }, children: /* @__PURE__ */ jsx46(
6475
- Slider,
6476
- {
6477
- id,
6478
- "aria-label": "Custom marks",
6465
+ import { useRef as useRef22, useEffect as useEffect22 } from "react";
6466
+ import { jsx as jsx47 } from "react/jsx-runtime";
6467
+ var WavelengthSlider = ({ children, customStyle, value, maxVal, minVal, step, handleChange, labelFunc, valueDisplayed, marks, color: color2, width: width2, ...rest }) => {
6468
+ const ref = useRef22(null);
6469
+ useEffect22(() => {
6470
+ const el = ref.current;
6471
+ if (!el) return;
6472
+ el.customStyles = customStyle;
6473
+ const attrs = {
6479
6474
  value,
6480
- getAriaValueText: labelFunc,
6475
+ "max-val": maxVal,
6476
+ "min-val": minVal,
6481
6477
  step,
6482
- marks,
6483
- valueLabelDisplay: on,
6484
- max: maxVal,
6485
- min: minVal,
6486
- onChange: handleChange,
6487
- sx: {
6488
- color: color2,
6489
- "& .MuiSlider-markLabel": {
6490
- color: labelColor
6491
- }
6492
- }
6493
- }
6494
- ) });
6495
- }
6478
+ marks: marks ? JSON.stringify(marks) : void 0,
6479
+ color: color2,
6480
+ width: width2,
6481
+ "value-displayed": valueDisplayed ?? (labelFunc && value !== void 0 ? labelFunc(value) : void 0)
6482
+ };
6483
+ Object.entries(attrs).forEach(([key, val]) => {
6484
+ if (val !== void 0) el.setAttribute(key, val.toString());
6485
+ });
6486
+ }, [value, maxVal, minVal, step, marks, customStyle, color2, width2, valueDisplayed, labelFunc]);
6487
+ useEffect22(() => {
6488
+ const el = ref.current;
6489
+ if (!el || !handleChange) return;
6490
+ const onSliderChange = (e) => handleChange(e, e.detail.value);
6491
+ el.addEventListener("slider-change", onSliderChange);
6492
+ return () => el.removeEventListener("slider-change", onSliderChange);
6493
+ }, [handleChange]);
6494
+ return /* @__PURE__ */ jsx47("wavelength-slider", { ref, ...rest, children });
6495
+ };
6496
6496
  WavelengthSlider.displayName = "WavelengthSlider";
6497
6497
 
6498
6498
  // src/components/carousels/WavelengthDefaultCarousel.tsx
6499
6499
  import { useState as useState7 } from "react";
6500
- import IconButton6 from "@mui/material/IconButton";
6500
+ import IconButton5 from "@mui/material/IconButton";
6501
6501
  import NavigateBeforeIcon from "@mui/icons-material/NavigateBefore";
6502
6502
  import NavigateNextIcon from "@mui/icons-material/NavigateNext";
6503
6503
  import Typography4 from "@mui/material/Typography";
@@ -6506,7 +6506,7 @@ import Card from "@mui/material/Card";
6506
6506
  import CardContent from "@mui/material/CardContent";
6507
6507
  import CardMedia from "@mui/material/CardMedia";
6508
6508
  import CardActionArea from "@mui/material/CardActionArea";
6509
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
6509
+ import { jsx as jsx48, jsxs as jsxs25 } from "react/jsx-runtime";
6510
6510
  var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight, cardWidth, id, name }) => {
6511
6511
  const [currentIndex, setCurrentIndex] = useState7(0);
6512
6512
  const adjustButtonSize = buttonSize !== void 0 ? buttonSize : 70;
@@ -6523,7 +6523,7 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
6523
6523
  const handleClick = () => {
6524
6524
  window.open(items[currentIndex].path, "_blank");
6525
6525
  };
6526
- return /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsxs26(
6526
+ return /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsxs25(
6527
6527
  Grid3,
6528
6528
  {
6529
6529
  container: true,
@@ -6532,24 +6532,24 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
6532
6532
  alignItems: "center"
6533
6533
  },
6534
6534
  children: [
6535
- /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47(IconButton6, { onClick: handlePrev, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx47(NavigateBeforeIcon, { style: { fontSize: adjustButtonSize } }) }) }),
6536
- /* @__PURE__ */ jsx47(
6535
+ /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsx48(IconButton5, { onClick: handlePrev, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx48(NavigateBeforeIcon, { style: { fontSize: adjustButtonSize } }) }) }),
6536
+ /* @__PURE__ */ jsx48(
6537
6537
  Card,
6538
6538
  {
6539
6539
  sx: {
6540
6540
  maxWidth: adjustCardWidth,
6541
6541
  maxHeight: adjustCardHeight
6542
6542
  },
6543
- children: /* @__PURE__ */ jsxs26(CardActionArea, { onClick: handleClick, children: [
6544
- /* @__PURE__ */ jsx47(CardMedia, { sx: { height: adjustImageHeight, width: adjustImageWidth }, image: items[currentIndex].image }),
6545
- /* @__PURE__ */ jsxs26(CardContent, { children: [
6546
- /* @__PURE__ */ jsx47(Typography4, { variant: "h4", children: items[currentIndex].title }),
6547
- /* @__PURE__ */ jsx47(Typography4, { variant: "body1", children: items[currentIndex].description })
6543
+ children: /* @__PURE__ */ jsxs25(CardActionArea, { onClick: handleClick, children: [
6544
+ /* @__PURE__ */ jsx48(CardMedia, { sx: { height: adjustImageHeight, width: adjustImageWidth }, image: items[currentIndex].image }),
6545
+ /* @__PURE__ */ jsxs25(CardContent, { children: [
6546
+ /* @__PURE__ */ jsx48(Typography4, { variant: "h4", children: items[currentIndex].title }),
6547
+ /* @__PURE__ */ jsx48(Typography4, { variant: "body1", children: items[currentIndex].description })
6548
6548
  ] })
6549
6549
  ] })
6550
6550
  }
6551
6551
  ),
6552
- /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47(IconButton6, { onClick: handleNext, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx47(NavigateNextIcon, { style: { fontSize: adjustButtonSize } }) }) })
6552
+ /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsx48(IconButton5, { onClick: handleNext, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx48(NavigateNextIcon, { style: { fontSize: adjustButtonSize } }) }) })
6553
6553
  ]
6554
6554
  }
6555
6555
  ) }) });
@@ -6557,18 +6557,18 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
6557
6557
  DefaultCarousel.displayName = "DefaultCarousel";
6558
6558
 
6559
6559
  // src/components/carousels/WavelengthSliderCarousel.tsx
6560
- import { useState as useState8, useEffect as useEffect20 } from "react";
6560
+ import { useState as useState8, useEffect as useEffect24 } from "react";
6561
6561
  import Grid4 from "@mui/material/Grid";
6562
6562
  import Card2 from "@mui/material/Card";
6563
6563
  import CardContent2 from "@mui/material/CardContent";
6564
6564
  import CardMedia2 from "@mui/material/CardMedia";
6565
6565
  import CardActionArea2 from "@mui/material/CardActionArea";
6566
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
6566
+ import { jsx as jsx49, jsxs as jsxs26 } from "react/jsx-runtime";
6567
6567
  var delay = 2500;
6568
6568
  var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth }) => {
6569
6569
  const [index, setIndex] = useState8(0);
6570
6570
  const [isHovered, setIsHovered] = useState8(false);
6571
- useEffect20(() => {
6571
+ useEffect24(() => {
6572
6572
  setTimeout(() => setIndex((prevIndex) => prevIndex === items.length - 1 ? 0 : prevIndex + 1), delay);
6573
6573
  return () => {
6574
6574
  };
@@ -6606,7 +6606,7 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
6606
6606
  boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
6607
6607
  }
6608
6608
  };
6609
- return /* @__PURE__ */ jsx48("div", { style: styles.carouselcontainer, children: /* @__PURE__ */ jsx48("div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ jsx48(
6609
+ return /* @__PURE__ */ jsx49("div", { style: styles.carouselcontainer, children: /* @__PURE__ */ jsx49("div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ jsx49(
6610
6610
  Grid4,
6611
6611
  {
6612
6612
  sx: {
@@ -6616,7 +6616,7 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
6616
6616
  },
6617
6617
  container: true,
6618
6618
  spacing: 0.5,
6619
- children: items.map((card) => /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsx48(
6619
+ children: items.map((card) => /* @__PURE__ */ jsx49("div", { children: /* @__PURE__ */ jsx49(
6620
6620
  Card2,
6621
6621
  {
6622
6622
  sx: {
@@ -6626,11 +6626,11 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
6626
6626
  },
6627
6627
  onMouseEnter: () => setIsHovered(true),
6628
6628
  onMouseLeave: () => setIsHovered(false),
6629
- children: /* @__PURE__ */ jsxs27(CardActionArea2, { href: card.path, children: [
6630
- /* @__PURE__ */ jsx48(CardMedia2, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
6631
- /* @__PURE__ */ jsxs27(CardContent2, { children: [
6632
- /* @__PURE__ */ jsx48("h3", { children: card.title }),
6633
- /* @__PURE__ */ jsx48("p", { children: card.description })
6629
+ children: /* @__PURE__ */ jsxs26(CardActionArea2, { href: card.path, children: [
6630
+ /* @__PURE__ */ jsx49(CardMedia2, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
6631
+ /* @__PURE__ */ jsxs26(CardContent2, { children: [
6632
+ /* @__PURE__ */ jsx49("h3", { children: card.title }),
6633
+ /* @__PURE__ */ jsx49("p", { children: card.description })
6634
6634
  ] })
6635
6635
  ] })
6636
6636
  }
@@ -6641,9 +6641,9 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
6641
6641
  SliderCardCarousel.displayName = "SliderCardCarousel";
6642
6642
 
6643
6643
  // src/components/TextField/WavelengthInput.tsx
6644
- import { useRef as useRef19, useEffect as useEffect21, forwardRef as forwardRef2, useImperativeHandle as useImperativeHandle3 } from "react";
6644
+ import { useRef as useRef23, useEffect as useEffect25, forwardRef as forwardRef2, useImperativeHandle as useImperativeHandle3 } from "react";
6645
6645
  import "@wavelengthusaf/web-components";
6646
- import { jsx as jsx49 } from "react/jsx-runtime";
6646
+ import { jsx as jsx50 } from "react/jsx-runtime";
6647
6647
  var WavelengthInput = forwardRef2(
6648
6648
  ({
6649
6649
  id,
@@ -6681,12 +6681,12 @@ var WavelengthInput = forwardRef2(
6681
6681
  onBlurCallback,
6682
6682
  ...rest
6683
6683
  }, ref) => {
6684
- const internalRef = useRef19(null);
6684
+ const internalRef = useRef23(null);
6685
6685
  useImperativeHandle3(ref, () => ({
6686
6686
  ...internalRef.current,
6687
6687
  validate: () => internalRef.current?.validate?.(true)
6688
6688
  }));
6689
- useEffect21(() => {
6689
+ useEffect25(() => {
6690
6690
  const el = internalRef.current;
6691
6691
  if (!el) return;
6692
6692
  const set = (attr, val) => {
@@ -6759,7 +6759,7 @@ var WavelengthInput = forwardRef2(
6759
6759
  disabled,
6760
6760
  multiLine
6761
6761
  ]);
6762
- useEffect21(() => {
6762
+ useEffect25(() => {
6763
6763
  const el = internalRef.current;
6764
6764
  if (!el || !onBlurCallback) return;
6765
6765
  const handler = (e) => {
@@ -6771,7 +6771,7 @@ var WavelengthInput = forwardRef2(
6771
6771
  el.addEventListener("blur", handler);
6772
6772
  return () => el.removeEventListener("blur", handler);
6773
6773
  }, [onBlurCallback]);
6774
- useEffect21(() => {
6774
+ useEffect25(() => {
6775
6775
  const el = internalRef.current;
6776
6776
  if (!el || !onChange) return;
6777
6777
  const handler = (e) => {
@@ -6792,7 +6792,7 @@ var WavelengthInput = forwardRef2(
6792
6792
  ...style3,
6793
6793
  ...backgroundColor2 ? { ["--wavelength-label-background"]: backgroundColor2 } : {}
6794
6794
  };
6795
- return /* @__PURE__ */ jsx49("wavelength-input", { ref: internalRef, style: combinedStyle, ...rest });
6795
+ return /* @__PURE__ */ jsx50("wavelength-input", { ref: internalRef, style: combinedStyle, ...rest });
6796
6796
  }
6797
6797
  );
6798
6798
  WavelengthInput.displayName = "WavelengthInput";
@@ -6801,10 +6801,10 @@ WavelengthInput.displayName = "WavelengthInput";
6801
6801
  import { WavelengthInput as WavelengthInput2 } from "@wavelengthusaf/web-components";
6802
6802
 
6803
6803
  // src/components/DataTable/WavelengthDataTable.tsx
6804
- import { useEffect as useEffect22, useRef as useRef20, useState as useState9 } from "react";
6805
- import styled8 from "styled-components";
6806
- import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
6807
- var ModalInputDiv = styled8.div`
6804
+ import { useEffect as useEffect26, useRef as useRef24, useState as useState9 } from "react";
6805
+ import styled7 from "styled-components";
6806
+ import { jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
6807
+ var ModalInputDiv = styled7.div`
6808
6808
  display: flex;
6809
6809
  flex-direction: column; /* Corrected this line */
6810
6810
  gap: 3px;
@@ -6834,7 +6834,7 @@ var ModalInputDiv = styled8.div`
6834
6834
  }
6835
6835
  }
6836
6836
  `;
6837
- var ModalOverlay = styled8.div`
6837
+ var ModalOverlay = styled7.div`
6838
6838
  position: fixed;
6839
6839
  bottom: 19%;
6840
6840
  right: 15%;
@@ -6846,7 +6846,7 @@ var ModalOverlay = styled8.div`
6846
6846
  align-items: center;
6847
6847
  z-index: 1;
6848
6848
  `;
6849
- var ModalWrapper = styled8.div`
6849
+ var ModalWrapper = styled7.div`
6850
6850
  background-color: white;
6851
6851
  border-radius: 8px;
6852
6852
  padding: 20px;
@@ -6857,7 +6857,7 @@ var ModalWrapper = styled8.div`
6857
6857
  display: flex;
6858
6858
  align-items: center;
6859
6859
  `;
6860
- var ModalClose = styled8.button`
6860
+ var ModalClose = styled7.button`
6861
6861
  position: absolute;
6862
6862
  top: 10px;
6863
6863
  right: 10px;
@@ -6867,16 +6867,16 @@ var ModalClose = styled8.button`
6867
6867
  background: none;
6868
6868
  z-index: 2;
6869
6869
  `;
6870
- var TableHeadStyle = styled8.th`
6870
+ var TableHeadStyle = styled7.th`
6871
6871
  position: relative;
6872
6872
  `;
6873
- var KebabMenu = styled8.div`
6873
+ var KebabMenu = styled7.div`
6874
6874
  display: inline-block;
6875
6875
  position: absolute;
6876
6876
  right: 0;
6877
6877
  top: 2px;
6878
6878
  `;
6879
- var KebabIcon = styled8.div`
6879
+ var KebabIcon = styled7.div`
6880
6880
  cursor: pointer;
6881
6881
  font-size: 20px;
6882
6882
  padding: 5px;
@@ -6889,7 +6889,7 @@ var KebabIcon = styled8.div`
6889
6889
  color: #8fd8ff;
6890
6890
  }
6891
6891
  `;
6892
- var MenuOptions = styled8.ul`
6892
+ var MenuOptions = styled7.ul`
6893
6893
  position: absolute;
6894
6894
  right: 0;
6895
6895
  top: 100%;
@@ -6912,7 +6912,7 @@ var MenuOptions = styled8.ul`
6912
6912
  }
6913
6913
  }
6914
6914
  `;
6915
- var StyledBoxDiv = styled8.div`
6915
+ var StyledBoxDiv = styled7.div`
6916
6916
  background-color: white;
6917
6917
  width: 700px;
6918
6918
  height: 480px;
@@ -6920,7 +6920,7 @@ var StyledBoxDiv = styled8.div`
6920
6920
  border-top-left-radius: 10px;
6921
6921
  border-top-right-radius: 10px;
6922
6922
  `;
6923
- var StyledNavBoxDiv = styled8.div`
6923
+ var StyledNavBoxDiv = styled7.div`
6924
6924
  background-color: white;
6925
6925
  width: 700px;
6926
6926
  display: flex; /* Make parent a flex-container */
@@ -6930,13 +6930,13 @@ var StyledNavBoxDiv = styled8.div`
6930
6930
 
6931
6931
  box-shadow: 0.5px 3px 5px black;
6932
6932
  `;
6933
- var StyledTd = styled8.td`
6933
+ var StyledTd = styled7.td`
6934
6934
  border-top: 1px solid #c6c7cc;
6935
6935
  border-bottom: 1px solid #c6c7cc;
6936
6936
  padding: 10px 15px;
6937
6937
  vertical-align: middle;
6938
6938
  `;
6939
- var StyledTableTwo = styled8.table`
6939
+ var StyledTableTwo = styled7.table`
6940
6940
  width: 95%;
6941
6941
  height: 95%;
6942
6942
  border-collapse: collapse;
@@ -6962,7 +6962,7 @@ var StyledTableTwo = styled8.table`
6962
6962
  }
6963
6963
  }
6964
6964
  `;
6965
- var StyledInput = styled8.input`
6965
+ var StyledInput = styled7.input`
6966
6966
  height: 100%;
6967
6967
  width: 100%;
6968
6968
  outline: none;
@@ -6982,8 +6982,8 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
6982
6982
  const [currentPage, setCurrentPage] = useState9(1);
6983
6983
  const [isOpen, setIsOpen] = useState9(false);
6984
6984
  const [editingMenuKey, setEditingMenuKey] = useState9(null);
6985
- const menuRef = useRef20(null);
6986
- const modalRef = useRef20(null);
6985
+ const menuRef = useRef24(null);
6986
+ const modalRef = useRef24(null);
6987
6987
  function isNumeric(value) {
6988
6988
  return /^\d+$/.test(value);
6989
6989
  }
@@ -6991,7 +6991,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
6991
6991
  setSelectedValue(event.target.value);
6992
6992
  setLocalData(copiedArray);
6993
6993
  };
6994
- useEffect22(() => {
6994
+ useEffect26(() => {
6995
6995
  if (!selectedValue || searchItem === "") {
6996
6996
  setLocalData(copiedArray);
6997
6997
  setNoRowsOpen(false);
@@ -7021,7 +7021,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7021
7021
  const closeModal = () => {
7022
7022
  setIsModalOpen(false);
7023
7023
  };
7024
- useEffect22(() => {
7024
+ useEffect26(() => {
7025
7025
  const handleClickOutside = (event) => {
7026
7026
  if (isModalOpen && modalRef.current && !modalRef.current.contains(event.target)) {
7027
7027
  closeModal();
@@ -7078,10 +7078,10 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7078
7078
  setEditingId(null);
7079
7079
  };
7080
7080
  const headers = columns.map((column, index) => {
7081
- return /* @__PURE__ */ jsxs28(TableHeadStyle, { children: [
7081
+ return /* @__PURE__ */ jsxs27(TableHeadStyle, { children: [
7082
7082
  column.title,
7083
- /* @__PURE__ */ jsxs28(KebabMenu, { ref: menuRef, children: [
7084
- /* @__PURE__ */ jsx50(
7083
+ /* @__PURE__ */ jsxs27(KebabMenu, { ref: menuRef, children: [
7084
+ /* @__PURE__ */ jsx51(
7085
7085
  KebabIcon,
7086
7086
  {
7087
7087
  title: `KebabIcon-${index}`,
@@ -7091,27 +7091,27 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7091
7091
  children: "\u22EE"
7092
7092
  }
7093
7093
  ),
7094
- isOpen && editingMenuKey === column.key && /* @__PURE__ */ jsxs28(MenuOptions, { children: [
7095
- sortOrder === "asc" ? /* @__PURE__ */ jsxs28("li", { title: `MenuListASC-${index}`, onClick: () => handleSort(column.key, "asc"), children: [
7096
- /* @__PURE__ */ jsx50("span", { children: "\u2B06" }),
7094
+ isOpen && editingMenuKey === column.key && /* @__PURE__ */ jsxs27(MenuOptions, { children: [
7095
+ sortOrder === "asc" ? /* @__PURE__ */ jsxs27("li", { title: `MenuListASC-${index}`, onClick: () => handleSort(column.key, "asc"), children: [
7096
+ /* @__PURE__ */ jsx51("span", { children: "\u2B06" }),
7097
7097
  " Sort ASC"
7098
- ] }) : /* @__PURE__ */ jsxs28("li", { title: `MenuListDES-${index}`, onClick: () => handleSort(column.key, "desc"), children: [
7099
- /* @__PURE__ */ jsx50("span", { children: "\u2B07" }),
7098
+ ] }) : /* @__PURE__ */ jsxs27("li", { title: `MenuListDES-${index}`, onClick: () => handleSort(column.key, "desc"), children: [
7099
+ /* @__PURE__ */ jsx51("span", { children: "\u2B07" }),
7100
7100
  " Sort DESC"
7101
7101
  ] }),
7102
- /* @__PURE__ */ jsxs28("li", { title: `MenuListFilterButton-${index}`, onClick: openModal, children: [
7103
- /* @__PURE__ */ jsx50("span", { children: "\u23F7" }),
7102
+ /* @__PURE__ */ jsxs27("li", { title: `MenuListFilterButton-${index}`, onClick: openModal, children: [
7103
+ /* @__PURE__ */ jsx51("span", { children: "\u23F7" }),
7104
7104
  " Filter"
7105
7105
  ] }),
7106
- isModalOpen && /* @__PURE__ */ jsx50(ModalOverlay, { children: /* @__PURE__ */ jsxs28(ModalWrapper, { ref: modalRef, children: [
7107
- /* @__PURE__ */ jsx50(ModalClose, { title: `ModalClose-${index}`, onClick: closeModal, children: "\xD7" }),
7108
- /* @__PURE__ */ jsxs28(ModalInputDiv, { children: [
7109
- /* @__PURE__ */ jsx50("label", { htmlFor: "filterSelectId", children: "Columns: " }),
7110
- /* @__PURE__ */ jsx50("select", { title: `filterSelect-${index}`, id: "filterSelectId", value: selectedValue, onChange: handleChange, children: columns.map((item) => /* @__PURE__ */ jsx50("option", { children: item.key }, item.key)) })
7106
+ isModalOpen && /* @__PURE__ */ jsx51(ModalOverlay, { children: /* @__PURE__ */ jsxs27(ModalWrapper, { ref: modalRef, children: [
7107
+ /* @__PURE__ */ jsx51(ModalClose, { title: `ModalClose-${index}`, onClick: closeModal, children: "\xD7" }),
7108
+ /* @__PURE__ */ jsxs27(ModalInputDiv, { children: [
7109
+ /* @__PURE__ */ jsx51("label", { htmlFor: "filterSelectId", children: "Columns: " }),
7110
+ /* @__PURE__ */ jsx51("select", { title: `filterSelect-${index}`, id: "filterSelectId", value: selectedValue, onChange: handleChange, children: columns.map((item) => /* @__PURE__ */ jsx51("option", { children: item.key }, item.key)) })
7111
7111
  ] }),
7112
- /* @__PURE__ */ jsxs28(ModalInputDiv, { children: [
7113
- /* @__PURE__ */ jsx50("label", { htmlFor: "filterInputId", children: "Values: " }),
7114
- /* @__PURE__ */ jsx50(
7112
+ /* @__PURE__ */ jsxs27(ModalInputDiv, { children: [
7113
+ /* @__PURE__ */ jsx51("label", { htmlFor: "filterInputId", children: "Values: " }),
7114
+ /* @__PURE__ */ jsx51(
7115
7115
  "input",
7116
7116
  {
7117
7117
  title: `Inputfiltertest-${index}`,
@@ -7132,8 +7132,8 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7132
7132
  ] }, index)
7133
7133
  ] }, `headCell-${index}`);
7134
7134
  });
7135
- const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */ jsx50("tr", { children: /* @__PURE__ */ jsx50("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : currentPageData?.map((item) => /* @__PURE__ */ jsx50("tr", { children: columns.map((column, index2) => {
7136
- return /* @__PURE__ */ jsx50(StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ jsx50(
7135
+ const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */ jsx51("tr", { children: /* @__PURE__ */ jsx51("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : currentPageData?.map((item) => /* @__PURE__ */ jsx51("tr", { children: columns.map((column, index2) => {
7136
+ return /* @__PURE__ */ jsx51(StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ jsx51(
7137
7137
  StyledInput,
7138
7138
  {
7139
7139
  title: `styledRow-${item.id}-${column.key}-${index2}`,
@@ -7150,42 +7150,42 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7150
7150
  },
7151
7151
  autoFocus: true
7152
7152
  }
7153
- ) : /* @__PURE__ */ jsx50("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, onDoubleClick: () => handleEdit(item.id, item[column.key], column.key), children: item[column.key] }) }, index2);
7153
+ ) : /* @__PURE__ */ jsx51("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, onDoubleClick: () => handleEdit(item.id, item[column.key], column.key), children: item[column.key] }) }, index2);
7154
7154
  }) }, item.id));
7155
- return /* @__PURE__ */ jsxs28("div", { id, children: [
7156
- /* @__PURE__ */ jsx50(StyledBoxDiv, { title: "StyledBoxDiv", children: /* @__PURE__ */ jsxs28(StyledTableTwo, { title: "StyledTable", children: [
7157
- /* @__PURE__ */ jsx50("thead", { children: /* @__PURE__ */ jsx50("tr", { children: headers }) }),
7158
- /* @__PURE__ */ jsx50("tbody", { children: rows })
7155
+ return /* @__PURE__ */ jsxs27("div", { id, children: [
7156
+ /* @__PURE__ */ jsx51(StyledBoxDiv, { title: "StyledBoxDiv", children: /* @__PURE__ */ jsxs27(StyledTableTwo, { title: "StyledTable", children: [
7157
+ /* @__PURE__ */ jsx51("thead", { children: /* @__PURE__ */ jsx51("tr", { children: headers }) }),
7158
+ /* @__PURE__ */ jsx51("tbody", { children: rows })
7159
7159
  ] }) }),
7160
- /* @__PURE__ */ jsx50(StyledNavBoxDiv, { children: /* @__PURE__ */ jsx50(WavelengthDefaultPagination_default, { totalPages, currentPageNumber: currentPage, onPageChange: setCurrentPage, style: "circular" }) })
7160
+ /* @__PURE__ */ jsx51(StyledNavBoxDiv, { children: /* @__PURE__ */ jsx51(WavelengthDefaultPagination_default, { totalPages, currentPageNumber: currentPage, onPageChange: setCurrentPage, style: "circular" }) })
7161
7161
  ] });
7162
7162
  };
7163
7163
  WavelengthDataTable.displayName = "WavelengthDataTable";
7164
7164
 
7165
7165
  // src/components/DataTable/SubRowTable/ChildSubTable.tsx
7166
- import { useMemo as useMemo3, useState as useState10, Fragment as Fragment12 } from "react";
7167
- import styled9 from "styled-components";
7168
- import { Fragment as Fragment13, jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
7169
- var TableContainer = styled9.div`
7166
+ import { useMemo as useMemo3, useState as useState10, Fragment as Fragment11 } from "react";
7167
+ import styled8 from "styled-components";
7168
+ import { Fragment as Fragment12, jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
7169
+ var TableContainer = styled8.div`
7170
7170
  width: 1200px;
7171
7171
  border-radius: 16px;
7172
7172
  `;
7173
- var TableRow = styled9.div`
7173
+ var TableRow = styled8.div`
7174
7174
  display: grid;
7175
7175
  grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
7176
7176
  `;
7177
- var TablePrimaryRow = styled9.div`
7177
+ var TablePrimaryRow = styled8.div`
7178
7178
  display: grid;
7179
7179
  grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
7180
7180
  `;
7181
- var BodyRowContainer = styled9.div`
7181
+ var BodyRowContainer = styled8.div`
7182
7182
  border: 1px solid black;
7183
7183
  background-color: white;
7184
7184
  border-radius: 16px;
7185
7185
  overflow: hidden;
7186
7186
  margin-bottom: 10px;
7187
7187
  `;
7188
- var TableHeaderCell = styled9.div`
7188
+ var TableHeaderCell = styled8.div`
7189
7189
  padding-left: 12px;
7190
7190
  padding-right: 25px;
7191
7191
  height: 60px;
@@ -7193,7 +7193,7 @@ var TableHeaderCell = styled9.div`
7193
7193
  display: flex;
7194
7194
  align-items: center;
7195
7195
  `;
7196
- var TableBodyCell = styled9.div`
7196
+ var TableBodyCell = styled8.div`
7197
7197
  background-color: #fff;
7198
7198
  color: black;
7199
7199
  position: relative;
@@ -7202,27 +7202,27 @@ var TableBodyCell = styled9.div`
7202
7202
  font-size: ${(props) => props.$primaryBoldState ? "24px" : "16px"};
7203
7203
  font-weight: ${(props) => props.$primaryBoldState ? "bold" : "normal"};
7204
7204
  `;
7205
- var ButtonStylingRow = styled9.div`
7205
+ var ButtonStylingRow = styled8.div`
7206
7206
  display: flex;
7207
7207
  flex-direction: row;
7208
7208
  `;
7209
- var BottomArrowBar = styled9.div`
7209
+ var BottomArrowBar = styled8.div`
7210
7210
  background-color: #e9e9e9;
7211
7211
  text-align: center;
7212
7212
  `;
7213
- var BottomUpArrowBar = styled9.div`
7213
+ var BottomUpArrowBar = styled8.div`
7214
7214
  background-color: #e9e9e9;
7215
7215
  text-align: center;
7216
7216
  position: relative;
7217
7217
  `;
7218
- var SubDataTable = styled9.table`
7218
+ var SubDataTable = styled8.table`
7219
7219
  background-color: white;
7220
7220
  color: black;
7221
7221
  width: 100%;
7222
7222
  border-collapse: collapse;
7223
7223
  line-height: 1.2;
7224
7224
  `;
7225
- var SubDataTableHeaderRow = styled9.tr`
7225
+ var SubDataTableHeaderRow = styled8.tr`
7226
7226
  height: 50px;
7227
7227
  background-color: #304359;
7228
7228
  color: white;
@@ -7233,10 +7233,10 @@ var SubDataTableHeaderRow = styled9.tr`
7233
7233
  white-space: nowrap;
7234
7234
  }
7235
7235
  `;
7236
- var SubDataTableBodyRow = styled9.tbody`
7236
+ var SubDataTableBodyRow = styled8.tbody`
7237
7237
  font-size: 14px;
7238
7238
  `;
7239
- var SubDataTableBodyRowContainer = styled9.tr`
7239
+ var SubDataTableBodyRowContainer = styled8.tr`
7240
7240
  td {
7241
7241
  padding: 10px 0;
7242
7242
  max-width: 100px;
@@ -7246,13 +7246,13 @@ var SubDataTableBodyRowContainer = styled9.tr`
7246
7246
  background-color: #96e0e5;
7247
7247
  }
7248
7248
  `;
7249
- var SubDataTableCell = styled9.td`
7249
+ var SubDataTableCell = styled8.td`
7250
7250
  text-align: center;
7251
7251
  `;
7252
- var SubDataHeaderColumn = styled9.thead`
7252
+ var SubDataHeaderColumn = styled8.thead`
7253
7253
  background-color: #304359;
7254
7254
  `;
7255
- var SortButton = styled9.button`
7255
+ var SortButton = styled8.button`
7256
7256
  font-size: 16px;
7257
7257
  font-weight: bold;
7258
7258
  color: white;
@@ -7260,7 +7260,7 @@ var SortButton = styled9.button`
7260
7260
  border: none;
7261
7261
  white-space: nowrap;
7262
7262
  `;
7263
- var DownloadMissionButton = styled9.button`
7263
+ var DownloadMissionButton = styled8.button`
7264
7264
  width: 217px;
7265
7265
  height: 45px;
7266
7266
  padding: 12px 32px 12px 32px;
@@ -7289,7 +7289,7 @@ var DownloadMissionButton = styled9.button`
7289
7289
  transition: background-color 0.2s ease;
7290
7290
  }
7291
7291
  `;
7292
- var AddButton = styled9.button`
7292
+ var AddButton = styled8.button`
7293
7293
  width: 130px;
7294
7294
  height: 45px;
7295
7295
  border: 1px solid #1a8083;
@@ -7319,7 +7319,7 @@ var AddButton = styled9.button`
7319
7319
  transition: background-color 0.2s ease;
7320
7320
  }
7321
7321
  `;
7322
- var DownloadArrow = styled9.button`
7322
+ var DownloadArrow = styled8.button`
7323
7323
  background-color: transparent;
7324
7324
  border: none;
7325
7325
 
@@ -7402,45 +7402,45 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
7402
7402
  return result;
7403
7403
  }, [data, sortKey, sortOrder, sortSubKey, sortSubOrder]);
7404
7404
  const renderSortButton = (column, sortOrder2, sortKey2) => {
7405
- return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */ jsx51(Fragment13, { children: /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7405
+ return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */ jsx52(Fragment12, { children: /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7406
7406
  column.title,
7407
7407
  " ",
7408
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7409
- ] }) }) : /* @__PURE__ */ jsx51(Fragment13, { children: /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7408
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7409
+ ] }) }) : /* @__PURE__ */ jsx52(Fragment12, { children: /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7410
7410
  column.title,
7411
7411
  " ",
7412
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
7413
- ] }) }) : /* @__PURE__ */ jsx51(Fragment13, { children: /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7412
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
7413
+ ] }) }) : /* @__PURE__ */ jsx52(Fragment12, { children: /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
7414
7414
  column.title,
7415
7415
  " ",
7416
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7416
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7417
7417
  ] }) });
7418
7418
  };
7419
7419
  const renderSortSubButton = (column, sortSubOrder2, sortSubKey2) => {
7420
7420
  const columnKey = trimBeforePeriod2(column.key);
7421
- return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7421
+ return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7422
7422
  column.title,
7423
7423
  " ",
7424
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7425
- ] }) : /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7424
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7425
+ ] }) : /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7426
7426
  column.title,
7427
7427
  " ",
7428
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
7429
- ] }) : /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7428
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
7429
+ ] }) : /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
7430
7430
  column.title,
7431
7431
  " ",
7432
- /* @__PURE__ */ jsx51("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7432
+ /* @__PURE__ */ jsx52("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
7433
7433
  ] });
7434
7434
  };
7435
7435
  const headers = HeadColumns.map((column) => {
7436
- return /* @__PURE__ */ jsx51(TableHeaderCell, { children: renderSortButton(column, sortOrder, sortKey) }, `HeaderCell-${column.key}`);
7436
+ return /* @__PURE__ */ jsx52(TableHeaderCell, { children: renderSortButton(column, sortOrder, sortKey) }, `HeaderCell-${column.key}`);
7437
7437
  });
7438
7438
  const SubDataHeaders = SubDataColumns.map((column, index) => {
7439
- return /* @__PURE__ */ jsx51("th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
7439
+ return /* @__PURE__ */ jsx52("th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
7440
7440
  });
7441
7441
  const subDataRows = (itemId) => {
7442
- return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */ jsx51(Fragment12, { children: item.Details?.fileObjects.map((fileItem, index) => /* @__PURE__ */ jsxs29(SubDataTableBodyRowContainer, { children: [
7443
- /* @__PURE__ */ jsx51("td", { children: /* @__PURE__ */ jsx51(DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ jsx51("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51(
7442
+ return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */ jsx52(Fragment11, { children: item.Details?.fileObjects.map((fileItem, index) => /* @__PURE__ */ jsxs28(SubDataTableBodyRowContainer, { children: [
7443
+ /* @__PURE__ */ jsx52("td", { children: /* @__PURE__ */ jsx52(DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ jsx52("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52(
7444
7444
  "path",
7445
7445
  {
7446
7446
  d: "M8.5 12L3.5 7L4.9 5.55L7.5 8.15V0H9.5V8.15L12.1 5.55L13.5 7L8.5 12ZM2.5 16C1.95 16 1.47917 15.8042 1.0875 15.4125C0.695833 15.0208 0.5 14.55 0.5 14V11H2.5V14H14.5V11H16.5V14C16.5 14.55 16.3042 15.0208 15.9125 15.4125C15.5208 15.8042 15.05 16 14.5 16H2.5Z",
@@ -7451,45 +7451,45 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
7451
7451
  const columnKey = trimBeforePeriod2(column.key);
7452
7452
  const value = fileItem[columnKey];
7453
7453
  if (value !== void 0) {
7454
- return /* @__PURE__ */ jsx51(SubDataTableCell, { children: /* @__PURE__ */ jsx51("span", { children: value }, `span-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`);
7454
+ return /* @__PURE__ */ jsx52(SubDataTableCell, { children: /* @__PURE__ */ jsx52("span", { children: value }, `span-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`);
7455
7455
  }
7456
7456
  })
7457
7457
  ] }, `${item}-${item.Details?.relationId}-${fileItem.id}-${index}`)) }, `SDR-${item.id}-${item.Details?.relationId}`));
7458
7458
  };
7459
- const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */ jsxs29(BodyRowContainer, { children: [
7460
- /* @__PURE__ */ jsx51(TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ jsx51(TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
7461
- /* @__PURE__ */ jsxs29(ButtonStylingRow, { children: [
7462
- /* @__PURE__ */ jsx51(DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
7463
- /* @__PURE__ */ jsx51(AddButton, { onClick: addFilesOnClick, children: "Add files" })
7459
+ const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */ jsxs28(BodyRowContainer, { children: [
7460
+ /* @__PURE__ */ jsx52(TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ jsx52(TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
7461
+ /* @__PURE__ */ jsxs28(ButtonStylingRow, { children: [
7462
+ /* @__PURE__ */ jsx52(DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
7463
+ /* @__PURE__ */ jsx52(AddButton, { onClick: addFilesOnClick, children: "Add files" })
7464
7464
  ] }),
7465
- openRow !== item.id && /* @__PURE__ */ jsx51(BottomArrowBar, { onClick: () => toggleDropdown(item.id), children: /* @__PURE__ */ jsx51("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M64 0L44 6L24 0H0L44 14L92 0H64Z", fill: "#7A7A7A" }) }) }),
7466
- openRow === item.id && /* @__PURE__ */ jsxs29("div", { children: [
7467
- /* @__PURE__ */ jsxs29(SubDataTable, { children: [
7468
- /* @__PURE__ */ jsx51(SubDataHeaderColumn, { children: /* @__PURE__ */ jsxs29(SubDataTableHeaderRow, { children: [
7469
- /* @__PURE__ */ jsx51("th", {}),
7465
+ openRow !== item.id && /* @__PURE__ */ jsx52(BottomArrowBar, { onClick: () => toggleDropdown(item.id), children: /* @__PURE__ */ jsx52("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M64 0L44 6L24 0H0L44 14L92 0H64Z", fill: "#7A7A7A" }) }) }),
7466
+ openRow === item.id && /* @__PURE__ */ jsxs28("div", { children: [
7467
+ /* @__PURE__ */ jsxs28(SubDataTable, { children: [
7468
+ /* @__PURE__ */ jsx52(SubDataHeaderColumn, { children: /* @__PURE__ */ jsxs28(SubDataTableHeaderRow, { children: [
7469
+ /* @__PURE__ */ jsx52("th", {}),
7470
7470
  SubDataHeaders
7471
7471
  ] }) }),
7472
- /* @__PURE__ */ jsx51(SubDataTableBodyRow, { children: subDataRows(item.id) })
7472
+ /* @__PURE__ */ jsx52(SubDataTableBodyRow, { children: subDataRows(item.id) })
7473
7473
  ] }),
7474
- /* @__PURE__ */ jsx51(BottomUpArrowBar, { onClick: () => toggleUpward(), children: /* @__PURE__ */ jsx51("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx51("path", { d: "M64 14L44 8L24 14H0L44 0L92 14H64Z", fill: "#7A7A7A" }) }) })
7474
+ /* @__PURE__ */ jsx52(BottomUpArrowBar, { onClick: () => toggleUpward(), children: /* @__PURE__ */ jsx52("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx52("path", { d: "M64 14L44 8L24 14H0L44 0L92 14H64Z", fill: "#7A7A7A" }) }) })
7475
7475
  ] })
7476
7476
  ] }, `Bodycontainer-${item.id}-${index}`));
7477
- return /* @__PURE__ */ jsxs29(TableContainer, { children: [
7478
- /* @__PURE__ */ jsx51(TablePrimaryRow, { $amountofColumns: HeadColumns.length, children: headers }),
7479
- /* @__PURE__ */ jsx51("div", { title: "tablebodies", children: dataRows })
7477
+ return /* @__PURE__ */ jsxs28(TableContainer, { children: [
7478
+ /* @__PURE__ */ jsx52(TablePrimaryRow, { $amountofColumns: HeadColumns.length, children: headers }),
7479
+ /* @__PURE__ */ jsx52("div", { title: "tablebodies", children: dataRows })
7480
7480
  ] });
7481
7481
  };
7482
7482
  ChildDataTable.displayName = "ChildDataTable";
7483
7483
 
7484
7484
  // src/components/DataTable/SubRowTable/ChildDataTable.tsx
7485
- import { useRef as useRef21, useEffect as useEffect23 } from "react";
7485
+ import { useRef as useRef25, useEffect as useEffect27 } from "react";
7486
7486
  import "@wavelengthusaf/web-components";
7487
7487
  import { createRoot } from "react-dom/client";
7488
- import { jsx as jsx52 } from "react/jsx-runtime";
7488
+ import { jsx as jsx53 } from "react/jsx-runtime";
7489
7489
  var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, ...rest }) => {
7490
- const tableRef = useRef21(null);
7491
- const reactDropdownRoots = useRef21(/* @__PURE__ */ new Map());
7492
- useEffect23(() => {
7490
+ const tableRef = useRef25(null);
7491
+ const reactDropdownRoots = useRef25(/* @__PURE__ */ new Map());
7492
+ useEffect27(() => {
7493
7493
  const customChildDataTableElement = tableRef.current;
7494
7494
  if (!customChildDataTableElement) return;
7495
7495
  if (columns !== void 0) customChildDataTableElement.setColumns = columns;
@@ -7498,7 +7498,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
7498
7498
  if (sortIcon !== void 0) customChildDataTableElement.setSortIcon = sortIcon;
7499
7499
  if (dropdownButtonIcon !== void 0) customChildDataTableElement.setDropdownButtonIcon = dropdownButtonIcon;
7500
7500
  }, [columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon]);
7501
- useEffect23(() => {
7501
+ useEffect27(() => {
7502
7502
  const el = tableRef.current;
7503
7503
  if (!el) return;
7504
7504
  const handleReactDropdown = (event) => {
@@ -7535,7 +7535,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
7535
7535
  el.removeEventListener("cleanupDropdown", handleCleanupDropdown);
7536
7536
  };
7537
7537
  }, [data]);
7538
- return /* @__PURE__ */ jsx52("wavelength-child-data-table", { ref: tableRef, ...rest });
7538
+ return /* @__PURE__ */ jsx53("wavelength-child-data-table", { ref: tableRef, ...rest });
7539
7539
  };
7540
7540
  ChildDataTable2.displayName = "ChildDataTable";
7541
7541
 
@@ -7544,9 +7544,9 @@ import { ChildDataTable as ChildDataTable3 } from "@wavelengthusaf/web-component
7544
7544
 
7545
7545
  // src/components/DataTable/NestedDataTable/NestedDataTable.tsx
7546
7546
  import { useState as useState11 } from "react";
7547
- import styled10 from "styled-components";
7548
- import { Fragment as Fragment14, jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
7549
- var TableStyle = styled10.table`
7547
+ import styled9 from "styled-components";
7548
+ import { Fragment as Fragment13, jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
7549
+ var TableStyle = styled9.table`
7550
7550
  width: 100%;
7551
7551
  height: 100%;
7552
7552
  border-collapse: collapse;
@@ -7562,26 +7562,26 @@ var TableStyle = styled10.table`
7562
7562
  margin-right: auto;
7563
7563
  position: absolute;
7564
7564
  `;
7565
- var MainThHeaders = styled10.th`
7565
+ var MainThHeaders = styled9.th`
7566
7566
  &:not(:last-child) {
7567
7567
  border-right: 1px solid #c6c7cc;
7568
7568
  }
7569
7569
  `;
7570
- var SubDataTr = styled10.tr`
7570
+ var SubDataTr = styled9.tr`
7571
7571
  background-color: white;
7572
7572
 
7573
7573
  &:nth-child(even) {
7574
7574
  background-color: #e0ffff;
7575
7575
  }
7576
7576
  `;
7577
- var PrimaryTrRows = styled10.tr`
7577
+ var PrimaryTrRows = styled9.tr`
7578
7578
  background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
7579
7579
  `;
7580
- var SubTrRows = styled10.tr`
7580
+ var SubTrRows = styled9.tr`
7581
7581
  background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
7582
7582
  height: 120px;
7583
7583
  `;
7584
- var SubTableStyle = styled10.table`
7584
+ var SubTableStyle = styled9.table`
7585
7585
  width: 95%;
7586
7586
  border-collapse: collapse;
7587
7587
  margin-top: -15px;
@@ -7601,7 +7601,7 @@ var SubTableStyle = styled10.table`
7601
7601
  }
7602
7602
  }
7603
7603
  `;
7604
- var DropdownButton = styled10.button`
7604
+ var DropdownButton = styled9.button`
7605
7605
  background-color: transparent;
7606
7606
  background-repeat: no-repeat;
7607
7607
  border: none;
@@ -7611,7 +7611,7 @@ var DropdownButton = styled10.button`
7611
7611
  font-weight: bold; /* This makes the UTF symbols bold */
7612
7612
  font-size: 20px;
7613
7613
  `;
7614
- var PrimaryTdSpan = styled10.td`
7614
+ var PrimaryTdSpan = styled9.td`
7615
7615
  &:not(:last-child) {
7616
7616
  border-right: 1px solid black;
7617
7617
  }
@@ -7632,57 +7632,57 @@ var NestedDataTable = ({ data, columns, id }) => {
7632
7632
  setPrimaryRowIndex(rowIndex);
7633
7633
  };
7634
7634
  const headers = HeadColumns.map((column, index) => {
7635
- return /* @__PURE__ */ jsx53(MainThHeaders, { children: column.title }, `headCell-${index}`);
7635
+ return /* @__PURE__ */ jsx54(MainThHeaders, { children: column.title }, `headCell-${index}`);
7636
7636
  });
7637
7637
  const SubDataHeaders = SubDataColumns.map((column, index) => {
7638
- return /* @__PURE__ */ jsx53("th", { children: column.title }, `SubHeadCell-${index}`);
7638
+ return /* @__PURE__ */ jsx54("th", { children: column.title }, `SubHeadCell-${index}`);
7639
7639
  });
7640
- const subDataRows = !data?.length ? /* @__PURE__ */ jsx53("tr", { children: /* @__PURE__ */ jsx53("td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ jsx53(Fragment14, { children: /* @__PURE__ */ jsx53(SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
7640
+ const subDataRows = !data?.length ? /* @__PURE__ */ jsx54("tr", { children: /* @__PURE__ */ jsx54("td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ jsx54(Fragment13, { children: /* @__PURE__ */ jsx54(SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
7641
7641
  const columnKey = trimBeforePeriod(column.key);
7642
7642
  const value = item.Details?.[columnKey];
7643
7643
  console.log("value: ", value);
7644
7644
  if (value !== void 0) {
7645
- return /* @__PURE__ */ jsx53("td", { children: /* @__PURE__ */ jsx53("span", { children: value }) }, `Span-${item.id}-${colIndex}`);
7645
+ return /* @__PURE__ */ jsx54("td", { children: /* @__PURE__ */ jsx54("span", { children: value }) }, `Span-${item.id}-${colIndex}`);
7646
7646
  }
7647
7647
  }) }, `Sub-${item.id}-${index}`) }));
7648
- const childRows = /* @__PURE__ */ jsxs30(SubTableStyle, { children: [
7649
- /* @__PURE__ */ jsx53("thead", { children: /* @__PURE__ */ jsx53("tr", { children: SubDataHeaders }) }),
7650
- /* @__PURE__ */ jsx53("tbody", { children: subDataRows })
7648
+ const childRows = /* @__PURE__ */ jsxs29(SubTableStyle, { children: [
7649
+ /* @__PURE__ */ jsx54("thead", { children: /* @__PURE__ */ jsx54("tr", { children: SubDataHeaders }) }),
7650
+ /* @__PURE__ */ jsx54("tbody", { children: subDataRows })
7651
7651
  ] });
7652
- const rows = !data?.length ? /* @__PURE__ */ jsx53("tr", { children: /* @__PURE__ */ jsx53("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : data?.map((item, index) => /* @__PURE__ */ jsxs30(Fragment14, { children: [
7653
- /* @__PURE__ */ jsxs30(PrimaryTrRows, { $index: index, children: [
7654
- /* @__PURE__ */ jsx53(DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ jsx53(Fragment14, { children: "\u2227" }) : /* @__PURE__ */ jsx53(Fragment14, { children: "\u2228" }) }),
7652
+ const rows = !data?.length ? /* @__PURE__ */ jsx54("tr", { children: /* @__PURE__ */ jsx54("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : data?.map((item, index) => /* @__PURE__ */ jsxs29(Fragment13, { children: [
7653
+ /* @__PURE__ */ jsxs29(PrimaryTrRows, { $index: index, children: [
7654
+ /* @__PURE__ */ jsx54(DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ jsx54(Fragment13, { children: "\u2227" }) : /* @__PURE__ */ jsx54(Fragment13, { children: "\u2228" }) }),
7655
7655
  HeadColumns.map((column, index2) => {
7656
- return /* @__PURE__ */ jsx53(PrimaryTdSpan, { children: /* @__PURE__ */ jsx53("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, children: item[column.key] }) }, `${item.id}-${index}=${index2}`);
7656
+ return /* @__PURE__ */ jsx54(PrimaryTdSpan, { children: /* @__PURE__ */ jsx54("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, children: item[column.key] }) }, `${item.id}-${index}=${index2}`);
7657
7657
  })
7658
7658
  ] }, index),
7659
- isOpen && primaryRowIndex === index && /* @__PURE__ */ jsx53(SubTrRows, { $index: index, children: /* @__PURE__ */ jsx53("td", { colSpan: HeadColumns.length + 1, children: childRows }) }, index)
7659
+ isOpen && primaryRowIndex === index && /* @__PURE__ */ jsx54(SubTrRows, { $index: index, children: /* @__PURE__ */ jsx54("td", { colSpan: HeadColumns.length + 1, children: childRows }) }, index)
7660
7660
  ] }));
7661
- return /* @__PURE__ */ jsx53("div", { id, children: /* @__PURE__ */ jsxs30(TableStyle, { children: [
7662
- /* @__PURE__ */ jsx53("thead", { children: /* @__PURE__ */ jsxs30("tr", { children: [
7663
- /* @__PURE__ */ jsx53("th", { title: "dropdownth" }),
7661
+ return /* @__PURE__ */ jsx54("div", { id, children: /* @__PURE__ */ jsxs29(TableStyle, { children: [
7662
+ /* @__PURE__ */ jsx54("thead", { children: /* @__PURE__ */ jsxs29("tr", { children: [
7663
+ /* @__PURE__ */ jsx54("th", { title: "dropdownth" }),
7664
7664
  headers
7665
7665
  ] }) }),
7666
- /* @__PURE__ */ jsx53("tbody", { children: rows })
7666
+ /* @__PURE__ */ jsx54("tbody", { children: rows })
7667
7667
  ] }) });
7668
7668
  };
7669
7669
  NestedDataTable.displayName = "NestedDataTable";
7670
7670
 
7671
7671
  // src/components/AutoComplete/WavelengthAutoComplete.tsx
7672
- import { useEffect as useEffect24, useRef as useRef23, useState as useState12 } from "react";
7673
- import styled11 from "styled-components";
7674
- import { Fragment as Fragment15, jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
7675
- var AutoContainer = styled11.div`
7672
+ import { useEffect as useEffect28, useRef as useRef27, useState as useState12 } from "react";
7673
+ import styled10 from "styled-components";
7674
+ import { Fragment as Fragment14, jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
7675
+ var AutoContainer = styled10.div`
7676
7676
  //position: relative;
7677
7677
  position: relative;
7678
7678
  width: ${(props) => props.$inputWidth || "320px"};
7679
7679
  height: ${(props) => props.$inputHeight || "51px"};
7680
7680
  `;
7681
- var InputWrapper = styled11.div`
7681
+ var InputWrapper = styled10.div`
7682
7682
  width: 100%;
7683
7683
  height: 100%;
7684
7684
  `;
7685
- var Label = styled11.label`
7685
+ var Label = styled10.label`
7686
7686
  position: absolute;
7687
7687
  top: 50%;
7688
7688
  left: 10px;
@@ -7694,7 +7694,7 @@ var Label = styled11.label`
7694
7694
  padding: 0 5px;
7695
7695
  background-color: transparent;
7696
7696
  `;
7697
- var Input = styled11.input`
7697
+ var Input = styled10.input`
7698
7698
  width: 100%; //this must be 100%, as width inherit inherits the literal expression, not the value
7699
7699
  height: 100%;
7700
7700
  padding: 0.5rem 0.75rem;
@@ -7736,7 +7736,7 @@ var Input = styled11.input`
7736
7736
  color: ${(props) => props.$defaultLabelColor || "#ccc"};
7737
7737
  }
7738
7738
  `;
7739
- var DropDownList = styled11.ul`
7739
+ var DropDownList = styled10.ul`
7740
7740
  position: absolute;
7741
7741
  z-index: 5;
7742
7742
  width: 100%;
@@ -7750,7 +7750,7 @@ var DropDownList = styled11.ul`
7750
7750
  overflow: scroll; //necessary for limiting scroll options
7751
7751
  max-height: 390px; //necessary for limiting scroll options, limit to 10 per view
7752
7752
  `;
7753
- var ActiveListItem = styled11.li`
7753
+ var ActiveListItem = styled10.li`
7754
7754
  position: relative;
7755
7755
  width: 100%;
7756
7756
  z-index: 9999;
@@ -7767,7 +7767,7 @@ var ActiveListItem = styled11.li`
7767
7767
  background-color: #d8d8d8;
7768
7768
  }
7769
7769
  `;
7770
- var NoHoverListItem = styled11.li`
7770
+ var NoHoverListItem = styled10.li`
7771
7771
  position: relative;
7772
7772
  z-index: 9999;
7773
7773
  padding: 10px;
@@ -7800,9 +7800,9 @@ var WavelengthAutoComplete = ({
7800
7800
  placeholder,
7801
7801
  onBlurCallback
7802
7802
  }) => {
7803
- const inputRef = useRef23(null);
7804
- const listRef = useRef23(null);
7805
- const noItemListRef = useRef23(null);
7803
+ const inputRef = useRef27(null);
7804
+ const listRef = useRef27(null);
7805
+ const noItemListRef = useRef27(null);
7806
7806
  const [inputValue, setInputValue] = useState12(placeholder ?? "");
7807
7807
  const [suggestions, setSuggestions] = useState12([]);
7808
7808
  const [isDropdownVisible, setIsDropdownVisible] = useState12(false);
@@ -7810,7 +7810,7 @@ var WavelengthAutoComplete = ({
7810
7810
  const arrayLength = suggestions.length;
7811
7811
  const [focusedIndex, setFocusedIndex] = useState12(0);
7812
7812
  const idName = id ? id : "auto-comp";
7813
- useEffect24(() => {
7813
+ useEffect28(() => {
7814
7814
  const handleClickOutsideList = (event) => {
7815
7815
  if (listRef.current && !listRef.current.contains(event.target)) {
7816
7816
  setIsDropdownVisible(false);
@@ -7822,7 +7822,7 @@ var WavelengthAutoComplete = ({
7822
7822
  };
7823
7823
  }, [focusedIndex]);
7824
7824
  if (onDataChange !== void 0) {
7825
- useEffect24(() => {
7825
+ useEffect28(() => {
7826
7826
  onDataChange(inputValue);
7827
7827
  }, [inputValue]);
7828
7828
  }
@@ -7888,9 +7888,9 @@ var WavelengthAutoComplete = ({
7888
7888
  break;
7889
7889
  }
7890
7890
  };
7891
- return /* @__PURE__ */ jsx54(Fragment15, { children: /* @__PURE__ */ jsxs31(AutoContainer, { $inputHeight: height2, $inputWidth: width2, children: [
7892
- /* @__PURE__ */ jsxs31(InputWrapper, { id: `${idName}-input-wrapper`, $inputHeight: height2, $inputWidth: width2, children: [
7893
- /* @__PURE__ */ jsx54(
7891
+ return /* @__PURE__ */ jsx55(Fragment14, { children: /* @__PURE__ */ jsxs30(AutoContainer, { $inputHeight: height2, $inputWidth: width2, children: [
7892
+ /* @__PURE__ */ jsxs30(InputWrapper, { id: `${idName}-input-wrapper`, $inputHeight: height2, $inputWidth: width2, children: [
7893
+ /* @__PURE__ */ jsx55(
7894
7894
  Input,
7895
7895
  {
7896
7896
  id: idName,
@@ -7919,11 +7919,11 @@ var WavelengthAutoComplete = ({
7919
7919
  autoComplete: "off"
7920
7920
  }
7921
7921
  ),
7922
- /* @__PURE__ */ jsx54(Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
7922
+ /* @__PURE__ */ jsx55(Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
7923
7923
  ] }),
7924
- isDropdownVisible && /* @__PURE__ */ jsx54(DropDownList, { id: `${idName}-drop-list`, ref: listRef, $inputWidth: width2, "data-testid": "InputSearchOptionsList", children: suggestHasItems ? (
7924
+ isDropdownVisible && /* @__PURE__ */ jsx55(DropDownList, { id: `${idName}-drop-list`, ref: listRef, $inputWidth: width2, "data-testid": "InputSearchOptionsList", children: suggestHasItems ? (
7925
7925
  //suggestions length controls showing the suggestions
7926
- suggestions.map((item, index) => /* @__PURE__ */ jsx54(
7926
+ suggestions.map((item, index) => /* @__PURE__ */ jsx55(
7927
7927
  ActiveListItem,
7928
7928
  {
7929
7929
  "data-testid": `${idName}-input-search-list-${index + 1}`,
@@ -7936,16 +7936,16 @@ var WavelengthAutoComplete = ({
7936
7936
  },
7937
7937
  `active-list-item-${item}-${index}`
7938
7938
  ))
7939
- ) : /* @__PURE__ */ jsx54(NoHoverListItem, { "data-testid": "NoOptionsListitem", ref: noItemListRef, id: "No-Option-List-item", onMouseDown: (e) => e.preventDefault(), children: "No Options found" }) })
7939
+ ) : /* @__PURE__ */ jsx55(NoHoverListItem, { "data-testid": "NoOptionsListitem", ref: noItemListRef, id: "No-Option-List-item", onMouseDown: (e) => e.preventDefault(), children: "No Options found" }) })
7940
7940
  ] }) });
7941
7941
  };
7942
7942
  WavelengthAutoComplete.displayName = "WavelengthAutoComplete";
7943
7943
 
7944
7944
  // src/components/inputs/WavelengthDatePicker.tsx
7945
- import { useEffect as useEffect25, useState as useState13 } from "react";
7946
- import styled12 from "styled-components";
7947
- import { jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
7948
- var Label2 = styled12.label`
7945
+ import { useEffect as useEffect29, useState as useState13 } from "react";
7946
+ import styled11 from "styled-components";
7947
+ import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
7948
+ var Label2 = styled11.label`
7949
7949
  position: absolute;
7950
7950
  top: 50%;
7951
7951
  left: 10px;
@@ -7957,7 +7957,7 @@ var Label2 = styled12.label`
7957
7957
  padding: 0 5px;
7958
7958
  background-color: transparent;
7959
7959
  `;
7960
- var InputWrapper2 = styled12.div`
7960
+ var InputWrapper2 = styled11.div`
7961
7961
  position: relative;
7962
7962
  width: ${(props) => props.$inputWidth || "320px"};
7963
7963
  height: ${(props) => props.$inputHeight || "51px"};
@@ -8016,7 +8016,7 @@ var WavelengthDatePicker = ({
8016
8016
  const [minAdjusted, setMinAdjusted] = useState13("");
8017
8017
  const [maxAdjusted, setMaxAdjusted] = useState13("");
8018
8018
  const idName = id ? id : "WlDatePick";
8019
- useEffect25(() => {
8019
+ useEffect29(() => {
8020
8020
  const minDate = new Date(min || "");
8021
8021
  const maxDate = new Date(max || "");
8022
8022
  if (inputTimeType === "datetime-local") {
@@ -8055,7 +8055,7 @@ var WavelengthDatePicker = ({
8055
8055
  setValue(dateString);
8056
8056
  if (OnDataChange !== void 0) OnDataChange(new Date(dateString));
8057
8057
  };
8058
- return /* @__PURE__ */ jsxs32(
8058
+ return /* @__PURE__ */ jsxs31(
8059
8059
  InputWrapper2,
8060
8060
  {
8061
8061
  id: `${idName}-inputWrapper`,
@@ -8067,7 +8067,7 @@ var WavelengthDatePicker = ({
8067
8067
  $FocusLabelColor: FocusLabelColor,
8068
8068
  $inputBackGroundColor: backgroundColor2,
8069
8069
  children: [
8070
- /* @__PURE__ */ jsx55(
8070
+ /* @__PURE__ */ jsx56(
8071
8071
  "input",
8072
8072
  {
8073
8073
  type: inputType,
@@ -8088,7 +8088,7 @@ var WavelengthDatePicker = ({
8088
8088
  max: maxAdjusted
8089
8089
  }
8090
8090
  ),
8091
- /* @__PURE__ */ jsx55(Label2, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
8091
+ /* @__PURE__ */ jsx56(Label2, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
8092
8092
  ]
8093
8093
  }
8094
8094
  );
@@ -8099,9 +8099,9 @@ WavelengthDatePicker.displayName = "WavelengthDatePicker";
8099
8099
  import { WavelengthDatePicker as WavelengthDatePicker2 } from "@wavelengthusaf/web-components";
8100
8100
 
8101
8101
  // src/components/inputs/WavelengthCheckbox.tsx
8102
- import { useRef as useRef24, useEffect as useEffect26 } from "react";
8102
+ import { useRef as useRef28, useEffect as useEffect30 } from "react";
8103
8103
  import "@wavelengthusaf/web-components";
8104
- import { jsx as jsx56 } from "react/jsx-runtime";
8104
+ import { jsx as jsx57 } from "react/jsx-runtime";
8105
8105
  var WavelengthCheckbox = ({
8106
8106
  size,
8107
8107
  color: color2,
@@ -8111,8 +8111,8 @@ var WavelengthCheckbox = ({
8111
8111
  textSize,
8112
8112
  ...rest
8113
8113
  }) => {
8114
- const ref = useRef24(null);
8115
- useEffect26(() => {
8114
+ const ref = useRef28(null);
8115
+ useEffect30(() => {
8116
8116
  const el = ref.current;
8117
8117
  if (!el) return;
8118
8118
  if (size !== void 0) {
@@ -8136,38 +8136,38 @@ var WavelengthCheckbox = ({
8136
8136
  el.setAttribute("text-size", textSize);
8137
8137
  }
8138
8138
  }, [size, color2, theme, disabled, text, textSize]);
8139
- return /* @__PURE__ */ jsx56("wavelength-checkbox", { ref, ...rest });
8139
+ return /* @__PURE__ */ jsx57("wavelength-checkbox", { ref, ...rest });
8140
8140
  };
8141
8141
  WavelengthCheckbox.displayName = "WavelengthCheckbox";
8142
8142
 
8143
8143
  // src/components/samples/SampleComponent.tsx
8144
- import { useRef as useRef25, useEffect as useEffect27 } from "react";
8145
- import { jsx as jsx57 } from "react/jsx-runtime";
8144
+ import { useRef as useRef29, useEffect as useEffect31 } from "react";
8145
+ import { jsx as jsx58 } from "react/jsx-runtime";
8146
8146
  var SampleComponent = ({
8147
8147
  testProp,
8148
8148
  children,
8149
8149
  // Style argument
8150
- customStyle: customStyle2,
8150
+ customStyle,
8151
8151
  ...rest
8152
8152
  // This rest operator includes className, style, onClick, etc.
8153
8153
  }) => {
8154
- const ref = useRef25(null);
8155
- useEffect27(() => {
8154
+ const ref = useRef29(null);
8155
+ useEffect31(() => {
8156
8156
  const el = ref.current;
8157
8157
  if (!el) return;
8158
- el.customStyles = customStyle2;
8158
+ el.customStyles = customStyle;
8159
8159
  if (testProp !== void 0) {
8160
8160
  el.setAttribute("test-prop", testProp);
8161
8161
  }
8162
8162
  }, [testProp]);
8163
- return /* @__PURE__ */ jsx57("sample-component", { ref, ...rest, children });
8163
+ return /* @__PURE__ */ jsx58("sample-component", { ref, ...rest, children });
8164
8164
  };
8165
8165
  SampleComponent.displayName = "SampleComponent";
8166
8166
 
8167
8167
  // src/components/NotificationPanel/WavelengthNotificationPanel.tsx
8168
- import { useRef as useRef26, useEffect as useEffect28 } from "react";
8168
+ import { useRef as useRef30, useEffect as useEffect32 } from "react";
8169
8169
  import "@wavelengthusaf/web-components";
8170
- import { jsx as jsx58 } from "react/jsx-runtime";
8170
+ import { jsx as jsx59 } from "react/jsx-runtime";
8171
8171
  var WavelengthNotificationPanel = ({
8172
8172
  notifications,
8173
8173
  darkMode,
@@ -8176,8 +8176,8 @@ var WavelengthNotificationPanel = ({
8176
8176
  ...rest
8177
8177
  // This rest operator includes className, style, onClick, etc.
8178
8178
  }) => {
8179
- const ref = useRef26(null);
8180
- useEffect28(() => {
8179
+ const ref = useRef30(null);
8180
+ useEffect32(() => {
8181
8181
  const el = ref.current;
8182
8182
  if (!el) return;
8183
8183
  if (notifications !== void 0) {
@@ -8196,18 +8196,18 @@ var WavelengthNotificationPanel = ({
8196
8196
  el.accountLink = accountLink;
8197
8197
  }
8198
8198
  }, [notifications, darkMode, rest.onMarkAsRead, rest.onSignOut, accountLink]);
8199
- return /* @__PURE__ */ jsx58("wavelength-notification-panel", { ref, ...rest, children });
8199
+ return /* @__PURE__ */ jsx59("wavelength-notification-panel", { ref, ...rest, children });
8200
8200
  };
8201
8201
 
8202
8202
  // src/index.ts
8203
8203
  import { SampleComponent as SampleComponent2 } from "@wavelengthusaf/web-components";
8204
8204
 
8205
8205
  // src/components/MultiSelect/WavelengthMultiSelectAutocomplete.tsx
8206
- import { useEffect as useEffect29, useRef as useRef27 } from "react";
8207
- import { jsx as jsx59 } from "react/jsx-runtime";
8206
+ import { useEffect as useEffect33, useRef as useRef31 } from "react";
8207
+ import { jsx as jsx60 } from "react/jsx-runtime";
8208
8208
  var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Options", label, name, style: style3, onChange, value, disabled, ...rest }) => {
8209
- const componentRef = useRef27(null);
8210
- useEffect29(() => {
8209
+ const componentRef = useRef31(null);
8210
+ useEffect33(() => {
8211
8211
  const component = componentRef.current;
8212
8212
  if (!component) return;
8213
8213
  const handleValueChange = (event) => {
@@ -8220,7 +8220,7 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
8220
8220
  component.removeEventListener("change", handleValueChange);
8221
8221
  };
8222
8222
  }, [onChange]);
8223
- useEffect29(() => {
8223
+ useEffect33(() => {
8224
8224
  const component = componentRef.current;
8225
8225
  if (!component) return;
8226
8226
  if (placeholder) component.setAttribute("placeholder", placeholder);
@@ -8230,13 +8230,13 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
8230
8230
  if (options) component.autocompleteOptions = options;
8231
8231
  if (style3) component.customStyles = style3;
8232
8232
  }, [options, placeholder, name, label, style3]);
8233
- useEffect29(() => {
8233
+ useEffect33(() => {
8234
8234
  const component = componentRef.current;
8235
8235
  if (component && value) {
8236
8236
  component.value = value;
8237
8237
  }
8238
8238
  }, [value]);
8239
- return /* @__PURE__ */ jsx59("wavelength-multi-select-autocomplete", { ref: componentRef, ...rest });
8239
+ return /* @__PURE__ */ jsx60("wavelength-multi-select-autocomplete", { ref: componentRef, ...rest });
8240
8240
  };
8241
8241
 
8242
8242
  // src/index.ts
@@ -8273,6 +8273,7 @@ export {
8273
8273
  WavelengthDatePicker2 as WavelengthDatePickerElement,
8274
8274
  WavelengthDefaultIcon,
8275
8275
  WavelengthDefaultPagination,
8276
+ WavelengthDialog,
8276
8277
  WavelengthDragAndDrop,
8277
8278
  WavelengthDropdown,
8278
8279
  WavelengthDropdownButton,