@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/cjs/index.cjs +219 -218
- package/dist/cjs/index.d.cts +56 -41
- package/dist/esm/index.d.ts +56 -41
- package/dist/esm/index.js +500 -499
- package/package.json +2 -2
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
|
|
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 =
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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
|
|
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 (
|
|
5538
|
-
el.customStyles =
|
|
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
|
|
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 {
|
|
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
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
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
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
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("
|
|
5584
|
-
/* @__PURE__ */ jsx33("
|
|
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
|
|
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(
|
|
5606
|
-
/* @__PURE__ */ jsx34(
|
|
5607
|
-
/* @__PURE__ */ jsx34(
|
|
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
|
|
5617
|
-
import
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
};
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
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
|
|
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 =
|
|
5676
|
+
const elementRef = useRef16(null);
|
|
5777
5677
|
useImperativeHandle2(ref, () => elementRef.current);
|
|
5778
|
-
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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
|
|
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
|
|
5890
|
-
const ref =
|
|
5891
|
-
|
|
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 =
|
|
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,
|
|
5911
|
-
|
|
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/
|
|
5925
|
-
import { useRef as
|
|
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
|
|
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 =
|
|
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
|
-
|
|
5951
|
+
useEffect20(() => {
|
|
5956
5952
|
const el = ref.current;
|
|
5957
5953
|
if (!el) return;
|
|
5958
|
-
el.customStyles =
|
|
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__ */
|
|
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
|
|
5998
|
-
import { jsx as
|
|
5999
|
-
var MyDroplistItems =
|
|
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__ */
|
|
6043
|
-
/* @__PURE__ */
|
|
6044
|
-
/* @__PURE__ */
|
|
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__ */
|
|
6050
|
-
/* @__PURE__ */
|
|
6051
|
-
isOpen && /* @__PURE__ */
|
|
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__ */
|
|
6065
|
-
/* @__PURE__ */
|
|
6066
|
-
isSecOpen && /* @__PURE__ */
|
|
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__ */
|
|
6073
|
+
) : /* @__PURE__ */ jsx41(Button4, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", sx: WLButtonPagStyle, children: item }, index)
|
|
6078
6074
|
) }),
|
|
6079
|
-
/* @__PURE__ */
|
|
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
|
|
6091
|
-
import { jsx as
|
|
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 =
|
|
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__ */
|
|
6134
|
-
/* @__PURE__ */
|
|
6135
|
-
/* @__PURE__ */
|
|
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__ */
|
|
6140
|
-
/* @__PURE__ */
|
|
6141
|
-
isOpen && /* @__PURE__ */
|
|
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__ */
|
|
6156
|
-
/* @__PURE__ */
|
|
6157
|
-
isSecOpen && /* @__PURE__ */
|
|
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__ */
|
|
6165
|
+
) : /* @__PURE__ */ jsx42(Button5, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", variant, children: item }, index)
|
|
6170
6166
|
) }),
|
|
6171
|
-
/* @__PURE__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
6293
|
-
import { jsx as
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
6322
|
-
/* @__PURE__ */
|
|
6323
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
6382
|
-
/* @__PURE__ */
|
|
6383
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
|
6393
|
+
import Box3 from "@mui/material/Box";
|
|
6398
6394
|
import Button6 from "@mui/material/Button";
|
|
6399
|
-
import { useEffect as
|
|
6400
|
-
import { Fragment as
|
|
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 =
|
|
6403
|
-
|
|
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__ */
|
|
6431
|
-
|
|
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__ */
|
|
6451
|
-
/* @__PURE__ */
|
|
6452
|
-
/* @__PURE__ */
|
|
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
|
|
6470
|
-
import
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
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
|
-
|
|
6475
|
+
"max-val": maxVal,
|
|
6476
|
+
"min-val": minVal,
|
|
6481
6477
|
step,
|
|
6482
|
-
marks,
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
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
|
|
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
|
|
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__ */
|
|
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__ */
|
|
6536
|
-
/* @__PURE__ */
|
|
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__ */
|
|
6544
|
-
/* @__PURE__ */
|
|
6545
|
-
/* @__PURE__ */
|
|
6546
|
-
/* @__PURE__ */
|
|
6547
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
|
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
|
|
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
|
-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
6630
|
-
/* @__PURE__ */
|
|
6631
|
-
/* @__PURE__ */
|
|
6632
|
-
/* @__PURE__ */
|
|
6633
|
-
/* @__PURE__ */
|
|
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
|
|
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
|
|
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 =
|
|
6684
|
+
const internalRef = useRef23(null);
|
|
6685
6685
|
useImperativeHandle3(ref, () => ({
|
|
6686
6686
|
...internalRef.current,
|
|
6687
6687
|
validate: () => internalRef.current?.validate?.(true)
|
|
6688
6688
|
}));
|
|
6689
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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__ */
|
|
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
|
|
6805
|
-
import
|
|
6806
|
-
import { jsx as
|
|
6807
|
-
var ModalInputDiv =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
6870
|
+
var TableHeadStyle = styled7.th`
|
|
6871
6871
|
position: relative;
|
|
6872
6872
|
`;
|
|
6873
|
-
var KebabMenu =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
6986
|
-
const modalRef =
|
|
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
|
-
|
|
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
|
-
|
|
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__ */
|
|
7081
|
+
return /* @__PURE__ */ jsxs27(TableHeadStyle, { children: [
|
|
7082
7082
|
column.title,
|
|
7083
|
-
/* @__PURE__ */
|
|
7084
|
-
/* @__PURE__ */
|
|
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__ */
|
|
7095
|
-
sortOrder === "asc" ? /* @__PURE__ */
|
|
7096
|
-
/* @__PURE__ */
|
|
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__ */
|
|
7099
|
-
/* @__PURE__ */
|
|
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__ */
|
|
7103
|
-
/* @__PURE__ */
|
|
7102
|
+
/* @__PURE__ */ jsxs27("li", { title: `MenuListFilterButton-${index}`, onClick: openModal, children: [
|
|
7103
|
+
/* @__PURE__ */ jsx51("span", { children: "\u23F7" }),
|
|
7104
7104
|
" Filter"
|
|
7105
7105
|
] }),
|
|
7106
|
-
isModalOpen && /* @__PURE__ */
|
|
7107
|
-
/* @__PURE__ */
|
|
7108
|
-
/* @__PURE__ */
|
|
7109
|
-
/* @__PURE__ */
|
|
7110
|
-
/* @__PURE__ */
|
|
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__ */
|
|
7113
|
-
/* @__PURE__ */
|
|
7114
|
-
/* @__PURE__ */
|
|
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__ */
|
|
7136
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
7156
|
-
/* @__PURE__ */
|
|
7157
|
-
/* @__PURE__ */
|
|
7158
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
|
7167
|
-
import
|
|
7168
|
-
import { Fragment as
|
|
7169
|
-
var TableContainer =
|
|
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 =
|
|
7173
|
+
var TableRow = styled8.div`
|
|
7174
7174
|
display: grid;
|
|
7175
7175
|
grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
|
|
7176
7176
|
`;
|
|
7177
|
-
var TablePrimaryRow =
|
|
7177
|
+
var TablePrimaryRow = styled8.div`
|
|
7178
7178
|
display: grid;
|
|
7179
7179
|
grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
|
|
7180
7180
|
`;
|
|
7181
|
-
var BodyRowContainer =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
7205
|
+
var ButtonStylingRow = styled8.div`
|
|
7206
7206
|
display: flex;
|
|
7207
7207
|
flex-direction: row;
|
|
7208
7208
|
`;
|
|
7209
|
-
var BottomArrowBar =
|
|
7209
|
+
var BottomArrowBar = styled8.div`
|
|
7210
7210
|
background-color: #e9e9e9;
|
|
7211
7211
|
text-align: center;
|
|
7212
7212
|
`;
|
|
7213
|
-
var BottomUpArrowBar =
|
|
7213
|
+
var BottomUpArrowBar = styled8.div`
|
|
7214
7214
|
background-color: #e9e9e9;
|
|
7215
7215
|
text-align: center;
|
|
7216
7216
|
position: relative;
|
|
7217
7217
|
`;
|
|
7218
|
-
var SubDataTable =
|
|
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 =
|
|
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 =
|
|
7236
|
+
var SubDataTableBodyRow = styled8.tbody`
|
|
7237
7237
|
font-size: 14px;
|
|
7238
7238
|
`;
|
|
7239
|
-
var SubDataTableBodyRowContainer =
|
|
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 =
|
|
7249
|
+
var SubDataTableCell = styled8.td`
|
|
7250
7250
|
text-align: center;
|
|
7251
7251
|
`;
|
|
7252
|
-
var SubDataHeaderColumn =
|
|
7252
|
+
var SubDataHeaderColumn = styled8.thead`
|
|
7253
7253
|
background-color: #304359;
|
|
7254
7254
|
`;
|
|
7255
|
-
var SortButton =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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__ */
|
|
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__ */
|
|
7409
|
-
] }) }) : /* @__PURE__ */
|
|
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__ */
|
|
7413
|
-
] }) }) : /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
7421
|
+
return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
7422
7422
|
column.title,
|
|
7423
7423
|
" ",
|
|
7424
|
-
/* @__PURE__ */
|
|
7425
|
-
] }) : /* @__PURE__ */
|
|
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__ */
|
|
7429
|
-
] }) : /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
7443
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
7460
|
-
/* @__PURE__ */
|
|
7461
|
-
/* @__PURE__ */
|
|
7462
|
-
/* @__PURE__ */
|
|
7463
|
-
/* @__PURE__ */
|
|
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__ */
|
|
7466
|
-
openRow === item.id && /* @__PURE__ */
|
|
7467
|
-
/* @__PURE__ */
|
|
7468
|
-
/* @__PURE__ */
|
|
7469
|
-
/* @__PURE__ */
|
|
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__ */
|
|
7472
|
+
/* @__PURE__ */ jsx52(SubDataTableBodyRow, { children: subDataRows(item.id) })
|
|
7473
7473
|
] }),
|
|
7474
|
-
/* @__PURE__ */
|
|
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__ */
|
|
7478
|
-
/* @__PURE__ */
|
|
7479
|
-
/* @__PURE__ */
|
|
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
|
|
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
|
|
7488
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
7489
7489
|
var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, ...rest }) => {
|
|
7490
|
-
const tableRef =
|
|
7491
|
-
const reactDropdownRoots =
|
|
7492
|
-
|
|
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
|
-
|
|
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__ */
|
|
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
|
|
7548
|
-
import { Fragment as
|
|
7549
|
-
var TableStyle =
|
|
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 =
|
|
7565
|
+
var MainThHeaders = styled9.th`
|
|
7566
7566
|
&:not(:last-child) {
|
|
7567
7567
|
border-right: 1px solid #c6c7cc;
|
|
7568
7568
|
}
|
|
7569
7569
|
`;
|
|
7570
|
-
var SubDataTr =
|
|
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 =
|
|
7577
|
+
var PrimaryTrRows = styled9.tr`
|
|
7578
7578
|
background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
|
|
7579
7579
|
`;
|
|
7580
|
-
var SubTrRows =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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__ */
|
|
7635
|
+
return /* @__PURE__ */ jsx54(MainThHeaders, { children: column.title }, `headCell-${index}`);
|
|
7636
7636
|
});
|
|
7637
7637
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
7638
|
-
return /* @__PURE__ */
|
|
7638
|
+
return /* @__PURE__ */ jsx54("th", { children: column.title }, `SubHeadCell-${index}`);
|
|
7639
7639
|
});
|
|
7640
|
-
const subDataRows = !data?.length ? /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
7649
|
-
/* @__PURE__ */
|
|
7650
|
-
/* @__PURE__ */
|
|
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__ */
|
|
7653
|
-
/* @__PURE__ */
|
|
7654
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
7662
|
-
/* @__PURE__ */
|
|
7663
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
|
7673
|
-
import
|
|
7674
|
-
import { Fragment as
|
|
7675
|
-
var AutoContainer =
|
|
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 =
|
|
7681
|
+
var InputWrapper = styled10.div`
|
|
7682
7682
|
width: 100%;
|
|
7683
7683
|
height: 100%;
|
|
7684
7684
|
`;
|
|
7685
|
-
var 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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
7804
|
-
const listRef =
|
|
7805
|
-
const noItemListRef =
|
|
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
|
-
|
|
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
|
-
|
|
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__ */
|
|
7892
|
-
/* @__PURE__ */
|
|
7893
|
-
/* @__PURE__ */
|
|
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__ */
|
|
7922
|
+
/* @__PURE__ */ jsx55(Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
|
|
7923
7923
|
] }),
|
|
7924
|
-
isDropdownVisible && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
7946
|
-
import
|
|
7947
|
-
import { jsx as
|
|
7948
|
-
var Label2 =
|
|
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 =
|
|
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
|
-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
8102
|
+
import { useRef as useRef28, useEffect as useEffect30 } from "react";
|
|
8103
8103
|
import "@wavelengthusaf/web-components";
|
|
8104
|
-
import { jsx as
|
|
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 =
|
|
8115
|
-
|
|
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__ */
|
|
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
|
|
8145
|
-
import { jsx as
|
|
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
|
|
8150
|
+
customStyle,
|
|
8151
8151
|
...rest
|
|
8152
8152
|
// This rest operator includes className, style, onClick, etc.
|
|
8153
8153
|
}) => {
|
|
8154
|
-
const ref =
|
|
8155
|
-
|
|
8154
|
+
const ref = useRef29(null);
|
|
8155
|
+
useEffect31(() => {
|
|
8156
8156
|
const el = ref.current;
|
|
8157
8157
|
if (!el) return;
|
|
8158
|
-
el.customStyles =
|
|
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__ */
|
|
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
|
|
8168
|
+
import { useRef as useRef30, useEffect as useEffect32 } from "react";
|
|
8169
8169
|
import "@wavelengthusaf/web-components";
|
|
8170
|
-
import { jsx as
|
|
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 =
|
|
8180
|
-
|
|
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__ */
|
|
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
|
|
8207
|
-
import { jsx as
|
|
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 =
|
|
8210
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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__ */
|
|
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,
|