@wavelengthusaf/components 4.4.3 → 4.5.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 +31 -27
- package/dist/cjs/index.d.cts +9 -11
- package/dist/esm/index.d.ts +9 -11
- package/dist/esm/index.js +165 -161
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -5857,34 +5857,38 @@ function WavelengthManyPlanes({ numberOfPlanes = 5, trailDir = "left", color: co
|
|
|
5857
5857
|
WavelengthManyPlanes.displayName = "WavelengthManyPlanes";
|
|
5858
5858
|
|
|
5859
5859
|
// src/components/separators/WavelengthPlaneTrail/WavelengthPlaneTrail.tsx
|
|
5860
|
-
var _Divider = require('@mui/material/Divider'); var _Divider2 = _interopRequireDefault(_Divider);
|
|
5861
5860
|
|
|
5862
5861
|
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5862
|
+
|
|
5863
|
+
var WavelengthPlaneTrail = ({
|
|
5864
|
+
trailDir,
|
|
5865
|
+
color: color2,
|
|
5866
|
+
id,
|
|
5867
|
+
children,
|
|
5868
|
+
// Style argument
|
|
5869
|
+
customStyle: customStyle2,
|
|
5870
|
+
...rest
|
|
5871
|
+
// This rest operator includes className, style, onClick, etc.
|
|
5872
|
+
}) => {
|
|
5873
|
+
const ref = _react.useRef.call(void 0, null);
|
|
5874
|
+
_react.useEffect.call(void 0, () => {
|
|
5875
|
+
const el = ref.current;
|
|
5876
|
+
if (!el) return;
|
|
5877
|
+
if (customStyle2 !== void 0) {
|
|
5878
|
+
el.customStyles = customStyle2;
|
|
5879
|
+
}
|
|
5880
|
+
if (trailDir !== void 0) {
|
|
5881
|
+
el.setAttribute("trailDir", trailDir);
|
|
5882
|
+
}
|
|
5883
|
+
if (color2 !== void 0) {
|
|
5884
|
+
el.setAttribute("color", color2);
|
|
5885
|
+
}
|
|
5886
|
+
if (id !== void 0) {
|
|
5887
|
+
el.setAttribute("id", id);
|
|
5888
|
+
}
|
|
5889
|
+
}, [trailDir]);
|
|
5890
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-planetrail", { ref, trailDir, color: color2, id, customStyle: customStyle2, ...rest, children });
|
|
5891
|
+
};
|
|
5888
5892
|
WavelengthPlaneTrail.displayName = "WavelengthPlaneTrail";
|
|
5889
5893
|
|
|
5890
5894
|
// src/components/modals/WavelengthConfirmationModal.tsx
|
|
@@ -5957,7 +5961,7 @@ var _Slide = require('@mui/material/Slide'); var _Slide2 = _interopRequireDefaul
|
|
|
5957
5961
|
|
|
5958
5962
|
|
|
5959
5963
|
|
|
5960
|
-
|
|
5964
|
+
var _Divider = require('@mui/material/Divider'); var _Divider2 = _interopRequireDefault(_Divider);
|
|
5961
5965
|
|
|
5962
5966
|
var customStyle = { marginLeft: 16, marginRight: 16, marginTop: 8, marginBottom: 8 };
|
|
5963
5967
|
var emailStyle = {
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ export { ChildDataTable as ChildDataTableElement, SampleComponent as SampleCompo
|
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { TextFieldVariants } from '@mui/material';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { Mark } from '@mui/material/Slider/useSlider.types';
|
|
8
7
|
import { CSSProperties } from 'styled-components';
|
|
8
|
+
import { Mark } from '@mui/material/Slider/useSlider.types';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Helper Functions
|
|
@@ -588,15 +588,17 @@ declare namespace WavelengthManyPlanes {
|
|
|
588
588
|
var displayName: string;
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
|
|
592
|
-
|
|
591
|
+
type StyleProp = {
|
|
592
|
+
[selector: string]: any;
|
|
593
|
+
} & CSSProperties;
|
|
594
|
+
|
|
595
|
+
interface WavelengthPlaneTrailProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
596
|
+
trailDir?: "left" | "right";
|
|
593
597
|
color?: string;
|
|
594
598
|
id?: string;
|
|
599
|
+
customStyle?: StyleProp;
|
|
595
600
|
}
|
|
596
|
-
declare
|
|
597
|
-
declare namespace WavelengthPlaneTrail {
|
|
598
|
-
var displayName: string;
|
|
599
|
-
}
|
|
601
|
+
declare const WavelengthPlaneTrail: React__default.FC<WavelengthPlaneTrailProps>;
|
|
600
602
|
|
|
601
603
|
type ThemeProperties = {
|
|
602
604
|
name?: string;
|
|
@@ -808,10 +810,6 @@ declare namespace WavelengthDefaultPagination {
|
|
|
808
810
|
var displayName: string;
|
|
809
811
|
}
|
|
810
812
|
|
|
811
|
-
type StyleProp = {
|
|
812
|
-
[selector: string]: any;
|
|
813
|
-
} & CSSProperties;
|
|
814
|
-
|
|
815
813
|
interface WavelengthInputProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
816
814
|
id?: string;
|
|
817
815
|
name?: string;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export { ChildDataTable as ChildDataTableElement, SampleComponent as SampleCompo
|
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { TextFieldVariants } from '@mui/material';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { Mark } from '@mui/material/Slider/useSlider.types';
|
|
8
7
|
import { CSSProperties } from 'styled-components';
|
|
8
|
+
import { Mark } from '@mui/material/Slider/useSlider.types';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Helper Functions
|
|
@@ -588,15 +588,17 @@ declare namespace WavelengthManyPlanes {
|
|
|
588
588
|
var displayName: string;
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
|
|
592
|
-
|
|
591
|
+
type StyleProp = {
|
|
592
|
+
[selector: string]: any;
|
|
593
|
+
} & CSSProperties;
|
|
594
|
+
|
|
595
|
+
interface WavelengthPlaneTrailProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
596
|
+
trailDir?: "left" | "right";
|
|
593
597
|
color?: string;
|
|
594
598
|
id?: string;
|
|
599
|
+
customStyle?: StyleProp;
|
|
595
600
|
}
|
|
596
|
-
declare
|
|
597
|
-
declare namespace WavelengthPlaneTrail {
|
|
598
|
-
var displayName: string;
|
|
599
|
-
}
|
|
601
|
+
declare const WavelengthPlaneTrail: React__default.FC<WavelengthPlaneTrailProps>;
|
|
600
602
|
|
|
601
603
|
type ThemeProperties = {
|
|
602
604
|
name?: string;
|
|
@@ -808,10 +810,6 @@ declare namespace WavelengthDefaultPagination {
|
|
|
808
810
|
var displayName: string;
|
|
809
811
|
}
|
|
810
812
|
|
|
811
|
-
type StyleProp = {
|
|
812
|
-
[selector: string]: any;
|
|
813
|
-
} & CSSProperties;
|
|
814
|
-
|
|
815
813
|
interface WavelengthInputProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
816
814
|
id?: string;
|
|
817
815
|
name?: string;
|
package/dist/esm/index.js
CHANGED
|
@@ -5857,45 +5857,49 @@ function WavelengthManyPlanes({ numberOfPlanes = 5, trailDir = "left", color: co
|
|
|
5857
5857
|
WavelengthManyPlanes.displayName = "WavelengthManyPlanes";
|
|
5858
5858
|
|
|
5859
5859
|
// src/components/separators/WavelengthPlaneTrail/WavelengthPlaneTrail.tsx
|
|
5860
|
-
import
|
|
5861
|
-
import
|
|
5862
|
-
import { jsx as jsx29
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
const
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5860
|
+
import { useRef as useRef9, useEffect as useEffect8 } from "react";
|
|
5861
|
+
import "@wavelengthusaf/web-components";
|
|
5862
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
5863
|
+
var WavelengthPlaneTrail = ({
|
|
5864
|
+
trailDir,
|
|
5865
|
+
color: color2,
|
|
5866
|
+
id,
|
|
5867
|
+
children,
|
|
5868
|
+
// Style argument
|
|
5869
|
+
customStyle: customStyle2,
|
|
5870
|
+
...rest
|
|
5871
|
+
// This rest operator includes className, style, onClick, etc.
|
|
5872
|
+
}) => {
|
|
5873
|
+
const ref = useRef9(null);
|
|
5874
|
+
useEffect8(() => {
|
|
5875
|
+
const el = ref.current;
|
|
5876
|
+
if (!el) return;
|
|
5877
|
+
if (customStyle2 !== void 0) {
|
|
5878
|
+
el.customStyles = customStyle2;
|
|
5879
|
+
}
|
|
5880
|
+
if (trailDir !== void 0) {
|
|
5881
|
+
el.setAttribute("trailDir", trailDir);
|
|
5882
|
+
}
|
|
5883
|
+
if (color2 !== void 0) {
|
|
5884
|
+
el.setAttribute("color", color2);
|
|
5885
|
+
}
|
|
5886
|
+
if (id !== void 0) {
|
|
5887
|
+
el.setAttribute("id", id);
|
|
5888
|
+
}
|
|
5889
|
+
}, [trailDir]);
|
|
5890
|
+
return /* @__PURE__ */ jsx29("wavelength-planetrail", { ref, trailDir, color: color2, id, customStyle: customStyle2, ...rest, children });
|
|
5891
|
+
};
|
|
5888
5892
|
WavelengthPlaneTrail.displayName = "WavelengthPlaneTrail";
|
|
5889
5893
|
|
|
5890
5894
|
// src/components/modals/WavelengthConfirmationModal.tsx
|
|
5891
5895
|
import { Modal, Box as Box2 } from "@mui/material";
|
|
5892
|
-
import { jsx as jsx30, jsxs as
|
|
5896
|
+
import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5893
5897
|
function WavelengthConfirmationModal(props) {
|
|
5894
5898
|
const { show, setShow, id, name } = props;
|
|
5895
5899
|
const handleClose = () => {
|
|
5896
5900
|
setShow(false);
|
|
5897
5901
|
};
|
|
5898
|
-
return /* @__PURE__ */ jsx30(Modal, { open: show, onClose: handleClose, children: /* @__PURE__ */
|
|
5902
|
+
return /* @__PURE__ */ jsx30(Modal, { open: show, onClose: handleClose, children: /* @__PURE__ */ jsxs18(
|
|
5899
5903
|
Box2,
|
|
5900
5904
|
{
|
|
5901
5905
|
sx: {
|
|
@@ -5918,7 +5922,7 @@ function WavelengthConfirmationModal(props) {
|
|
|
5918
5922
|
children: [
|
|
5919
5923
|
/* @__PURE__ */ jsx30("p", { style: { margin: "0px", fontSize: "28px", fontWeight: 500, padding: "0px", marginBottom: "16px", fontFamily: props.fontFamily }, children: props.textObj?.title }),
|
|
5920
5924
|
/* @__PURE__ */ jsx30("p", { style: { margin: "0px", fontSize: "16px", lineHeight: "19.2px", fontFamily: props.fontFamily, fontWeight: 400, height: "60px" }, children: props.textObj?.dialog }),
|
|
5921
|
-
/* @__PURE__ */
|
|
5925
|
+
/* @__PURE__ */ jsxs18("div", { style: { display: "flex", flexDirection: "row", justifyContent: "flex-end", marginTop: "40px", gap: "8px" }, children: [
|
|
5922
5926
|
props.cancelButton,
|
|
5923
5927
|
props.submitButton
|
|
5924
5928
|
] })
|
|
@@ -5931,14 +5935,14 @@ WavelengthConfirmationModal.displayName = "WavelengthConfirmationModal";
|
|
|
5931
5935
|
// src/components/modals/WavelengthContentModal.tsx
|
|
5932
5936
|
import { Button as Button3, Dialog, DialogActions, DialogTitle, DialogContent, Typography as Typography3, IconButton as IconButton4, Box as Box3 } from "@mui/material";
|
|
5933
5937
|
import CloseIcon from "@mui/icons-material/Close";
|
|
5934
|
-
import { jsx as jsx31, jsxs as
|
|
5938
|
+
import { jsx as jsx31, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5935
5939
|
function WavelengthContentModal(props) {
|
|
5936
5940
|
const { show, setShow, handleContentModalOnConfirmProp } = props;
|
|
5937
5941
|
const handleClose = () => {
|
|
5938
5942
|
setShow(false);
|
|
5939
5943
|
};
|
|
5940
|
-
return /* @__PURE__ */
|
|
5941
|
-
/* @__PURE__ */ jsx31(DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */
|
|
5944
|
+
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: [
|
|
5945
|
+
/* @__PURE__ */ jsx31(DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */ jsxs19(Box3, { display: "flex", alignItems: "center", children: [
|
|
5942
5946
|
/* @__PURE__ */ jsx31(Box3, { flexGrow: 1, children: props.textObj?.title }),
|
|
5943
5947
|
/* @__PURE__ */ jsx31(Box3, { children: /* @__PURE__ */ jsx31(IconButton4, { onClick: handleClose, children: /* @__PURE__ */ jsx31(CloseIcon, {}) }) })
|
|
5944
5948
|
] }) }),
|
|
@@ -5949,7 +5953,7 @@ function WavelengthContentModal(props) {
|
|
|
5949
5953
|
WavelengthContentModal.displayName = "WavelengthContentModal";
|
|
5950
5954
|
|
|
5951
5955
|
// src/components/modals/WavelengthPopUpMenu.tsx
|
|
5952
|
-
import
|
|
5956
|
+
import React11 from "react";
|
|
5953
5957
|
import Menu from "@mui/material/Menu";
|
|
5954
5958
|
import MenuItem from "@mui/material/MenuItem";
|
|
5955
5959
|
import Box4 from "@mui/material/Box";
|
|
@@ -5957,8 +5961,8 @@ import Slide from "@mui/material/Slide";
|
|
|
5957
5961
|
import { HelpOutline } from "@mui/icons-material";
|
|
5958
5962
|
import styled6 from "styled-components";
|
|
5959
5963
|
import IconButton5 from "@mui/material/IconButton";
|
|
5960
|
-
import
|
|
5961
|
-
import { Fragment as Fragment11, jsx as jsx32, jsxs as
|
|
5964
|
+
import Divider from "@mui/material/Divider";
|
|
5965
|
+
import { Fragment as Fragment11, jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5962
5966
|
var customStyle = { marginLeft: 16, marginRight: 16, marginTop: 8, marginBottom: 8 };
|
|
5963
5967
|
var emailStyle = {
|
|
5964
5968
|
marginLeft: 16,
|
|
@@ -5979,7 +5983,7 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
5979
5983
|
color: ${({ hoverColor }) => hoverColor || "inherit"};
|
|
5980
5984
|
}
|
|
5981
5985
|
`;
|
|
5982
|
-
const [anchorEl, setAnchorEl] =
|
|
5986
|
+
const [anchorEl, setAnchorEl] = React11.useState(null);
|
|
5983
5987
|
const open = Boolean(anchorEl);
|
|
5984
5988
|
let icon;
|
|
5985
5989
|
const handleClick = (event) => {
|
|
@@ -5995,9 +5999,9 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
5995
5999
|
}
|
|
5996
6000
|
const anchor = menuDirection === "top" || menuDirection === void 0 ? "top" : "bottom";
|
|
5997
6001
|
const transform = menuDirection === "top" || menuDirection === void 0 ? "bottom" : "top";
|
|
5998
|
-
return /* @__PURE__ */
|
|
6002
|
+
return /* @__PURE__ */ jsxs20(Fragment11, { children: [
|
|
5999
6003
|
/* @__PURE__ */ jsx32(IconButton5, { onClick: handleClick, children: icon }),
|
|
6000
|
-
/* @__PURE__ */
|
|
6004
|
+
/* @__PURE__ */ jsxs20(
|
|
6001
6005
|
Menu,
|
|
6002
6006
|
{
|
|
6003
6007
|
id,
|
|
@@ -6018,37 +6022,37 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
6018
6022
|
if (items.end === true) {
|
|
6019
6023
|
if (items.itemType === "header") {
|
|
6020
6024
|
if (items.link) {
|
|
6021
|
-
return /* @__PURE__ */
|
|
6025
|
+
return /* @__PURE__ */ jsxs20(Box4, { children: [
|
|
6022
6026
|
/* @__PURE__ */ jsx32(MenuItem, { children: /* @__PURE__ */ jsx32("a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: /* @__PURE__ */ jsx32("span", { style: { fontWeight: "bold" }, children: items.label }) }) }),
|
|
6023
|
-
/* @__PURE__ */ jsx32(
|
|
6027
|
+
/* @__PURE__ */ jsx32(Divider, {})
|
|
6024
6028
|
] }, index);
|
|
6025
6029
|
} else {
|
|
6026
|
-
return /* @__PURE__ */
|
|
6030
|
+
return /* @__PURE__ */ jsxs20(Box4, { children: [
|
|
6027
6031
|
/* @__PURE__ */ jsx32("p", { style: { marginLeft: 16, marginRight: 16, marginTop: 6, marginBottom: 6 }, children: /* @__PURE__ */ jsx32("span", { style: { fontWeight: "bold" }, children: items.label }) }),
|
|
6028
|
-
/* @__PURE__ */ jsx32(
|
|
6032
|
+
/* @__PURE__ */ jsx32(Divider, {})
|
|
6029
6033
|
] }, index);
|
|
6030
6034
|
}
|
|
6031
6035
|
} else if (items.itemType === "link") {
|
|
6032
|
-
return /* @__PURE__ */
|
|
6036
|
+
return /* @__PURE__ */ jsxs20(Box4, { children: [
|
|
6033
6037
|
/* @__PURE__ */ jsx32(MenuItem, { children: /* @__PURE__ */ jsx32(Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }, index) }),
|
|
6034
|
-
/* @__PURE__ */ jsx32(
|
|
6038
|
+
/* @__PURE__ */ jsx32(Divider, {})
|
|
6035
6039
|
] }, index);
|
|
6036
6040
|
} else {
|
|
6037
6041
|
if (items.link) {
|
|
6038
|
-
return /* @__PURE__ */
|
|
6042
|
+
return /* @__PURE__ */ jsxs20(Box4, { children: [
|
|
6039
6043
|
/* @__PURE__ */ jsx32(MenuItem, { children: /* @__PURE__ */ jsx32("a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: items.label }) }),
|
|
6040
|
-
/* @__PURE__ */ jsx32(
|
|
6044
|
+
/* @__PURE__ */ jsx32(Divider, {})
|
|
6041
6045
|
] }, index);
|
|
6042
6046
|
} else {
|
|
6043
6047
|
if (items.email) {
|
|
6044
|
-
return /* @__PURE__ */
|
|
6048
|
+
return /* @__PURE__ */ jsxs20(Box4, { children: [
|
|
6045
6049
|
/* @__PURE__ */ jsx32(Links, { href: items.email, style: emailStyle, children: items.label }),
|
|
6046
|
-
/* @__PURE__ */ jsx32(
|
|
6050
|
+
/* @__PURE__ */ jsx32(Divider, {})
|
|
6047
6051
|
] }, index);
|
|
6048
6052
|
} else {
|
|
6049
|
-
return /* @__PURE__ */
|
|
6053
|
+
return /* @__PURE__ */ jsxs20(Box4, { children: [
|
|
6050
6054
|
/* @__PURE__ */ jsx32("p", { style: customStyle, children: items.label }),
|
|
6051
|
-
/* @__PURE__ */ jsx32(
|
|
6055
|
+
/* @__PURE__ */ jsx32(Divider, {})
|
|
6052
6056
|
] }, index);
|
|
6053
6057
|
}
|
|
6054
6058
|
}
|
|
@@ -6083,13 +6087,13 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
6083
6087
|
WavelengthPopUpMenu.displayName = "WavelengthPopUpMenu";
|
|
6084
6088
|
|
|
6085
6089
|
// src/components/modals/WavelengthDropdown.tsx
|
|
6086
|
-
import { forwardRef, useEffect as
|
|
6090
|
+
import { forwardRef, useEffect as useEffect9, useImperativeHandle as useImperativeHandle2, useRef as useRef10 } from "react";
|
|
6087
6091
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
6088
6092
|
var WavelengthDropdown = forwardRef((props, ref) => {
|
|
6089
6093
|
const { options, defaultValue, value, fontSize, fontFamily, borderRadius: borderRadius2, width: width2, height: height2, textColor, arrowSize, popupRadius, popupAlign, popupSelectedColor, onChange, ...rest } = props;
|
|
6090
|
-
const elementRef =
|
|
6094
|
+
const elementRef = useRef10(null);
|
|
6091
6095
|
useImperativeHandle2(ref, () => elementRef.current);
|
|
6092
|
-
|
|
6096
|
+
useEffect9(() => {
|
|
6093
6097
|
const el = elementRef.current;
|
|
6094
6098
|
if (!el || !onChange) return;
|
|
6095
6099
|
const handler = (e) => {
|
|
@@ -6099,7 +6103,7 @@ var WavelengthDropdown = forwardRef((props, ref) => {
|
|
|
6099
6103
|
el.addEventListener("change", handler);
|
|
6100
6104
|
return () => el.removeEventListener("change", handler);
|
|
6101
6105
|
}, [onChange]);
|
|
6102
|
-
|
|
6106
|
+
useEffect9(() => {
|
|
6103
6107
|
if (value !== void 0 && elementRef.current) {
|
|
6104
6108
|
elementRef.current.value = value;
|
|
6105
6109
|
}
|
|
@@ -6131,7 +6135,7 @@ import Snackbar from "@mui/material/Snackbar";
|
|
|
6131
6135
|
import SnackbarContent from "@mui/material/SnackbarContent";
|
|
6132
6136
|
import CloseIcon2 from "@mui/icons-material/Close";
|
|
6133
6137
|
import { IconButton as IconButton6 } from "@mui/material";
|
|
6134
|
-
import { jsx as jsx34, jsxs as
|
|
6138
|
+
import { jsx as jsx34, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
6135
6139
|
function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor, textColor, horryAlign, vertyAlign, durationSb, width: width2, icon, id }) {
|
|
6136
6140
|
const handleClose = () => {
|
|
6137
6141
|
setShow(false);
|
|
@@ -6159,7 +6163,7 @@ function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor,
|
|
|
6159
6163
|
display: "flex",
|
|
6160
6164
|
width: width2
|
|
6161
6165
|
},
|
|
6162
|
-
message: /* @__PURE__ */
|
|
6166
|
+
message: /* @__PURE__ */ jsxs21("div", { children: [
|
|
6163
6167
|
/* @__PURE__ */ jsx34("span", { children: icon }),
|
|
6164
6168
|
/* @__PURE__ */ jsx34("span", { id: "snackbar", children: message ? message : "Insert Message Here" })
|
|
6165
6169
|
] }),
|
|
@@ -6174,7 +6178,7 @@ WavelengthSnackbar.displayName = "WavelengthSnackbar";
|
|
|
6174
6178
|
// src/components/snackbars/WavelengthStandardSnackbar.tsx
|
|
6175
6179
|
import Snackbar2 from "@mui/material/Snackbar";
|
|
6176
6180
|
import SnackbarContent2 from "@mui/material/SnackbarContent";
|
|
6177
|
-
import { jsx as jsx35, jsxs as
|
|
6181
|
+
import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
6178
6182
|
function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width: width2, message, customVertyAlign, toggleShow, closeIcon, id }) {
|
|
6179
6183
|
const handleClose = () => {
|
|
6180
6184
|
toggleShow(false);
|
|
@@ -6210,7 +6214,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
6210
6214
|
//color: props.textColor ? props.textColor : palette.secondary,
|
|
6211
6215
|
},
|
|
6212
6216
|
sx: { paddingTop: "0px", paddingBottom: "0px" },
|
|
6213
|
-
message: /* @__PURE__ */
|
|
6217
|
+
message: /* @__PURE__ */ jsxs22(
|
|
6214
6218
|
"div",
|
|
6215
6219
|
{
|
|
6216
6220
|
style: {
|
|
@@ -6219,7 +6223,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
6219
6223
|
width: width2
|
|
6220
6224
|
},
|
|
6221
6225
|
children: [
|
|
6222
|
-
/* @__PURE__ */
|
|
6226
|
+
/* @__PURE__ */ jsxs22("div", { style: { gridColumnStart: 2, gridColumnEnd: 5, textAlign: "center", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center" }, id: "snackbar", children: [
|
|
6223
6227
|
/* @__PURE__ */ jsx35("div", { style: { marginTop: "5px" }, children: sIcon }),
|
|
6224
6228
|
/* @__PURE__ */ jsx35("div", { style: { fontSize: "1rem", marginLeft: "10px" }, children: message ? message : "Insert Message Here" })
|
|
6225
6229
|
] }),
|
|
@@ -6237,11 +6241,11 @@ WavelengthStandardSnackbar.displayName = "WavelengthStandardSnackbar";
|
|
|
6237
6241
|
// src/components/snackbars/WavelengthTestSnackbar.tsx
|
|
6238
6242
|
import Box5 from "@mui/material/Box";
|
|
6239
6243
|
import Button4 from "@mui/material/Button";
|
|
6240
|
-
import { useEffect as
|
|
6241
|
-
import { Fragment as Fragment12, jsx as jsx36, jsxs as
|
|
6244
|
+
import { useEffect as useEffect10, useRef as useRef11 } from "react";
|
|
6245
|
+
import { Fragment as Fragment12, jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
6242
6246
|
var useOutsideClick = (callback) => {
|
|
6243
|
-
const ref =
|
|
6244
|
-
|
|
6247
|
+
const ref = useRef11(null);
|
|
6248
|
+
useEffect10(() => {
|
|
6245
6249
|
const handleClickOutside = (event) => {
|
|
6246
6250
|
if (ref.current && !ref.current.contains(event.target)) {
|
|
6247
6251
|
callback();
|
|
@@ -6268,7 +6272,7 @@ function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, custom
|
|
|
6268
6272
|
} else if (type === "disabled") {
|
|
6269
6273
|
bgColor = "#737373";
|
|
6270
6274
|
}
|
|
6271
|
-
return /* @__PURE__ */ jsx36(Fragment12, { children: isPopUpOpen && /* @__PURE__ */
|
|
6275
|
+
return /* @__PURE__ */ jsx36(Fragment12, { children: isPopUpOpen && /* @__PURE__ */ jsxs23(
|
|
6272
6276
|
Box5,
|
|
6273
6277
|
{
|
|
6274
6278
|
id,
|
|
@@ -6342,12 +6346,12 @@ import IconButton7 from "@mui/material/IconButton";
|
|
|
6342
6346
|
import NavigateBeforeIcon from "@mui/icons-material/NavigateBefore";
|
|
6343
6347
|
import NavigateNextIcon from "@mui/icons-material/NavigateNext";
|
|
6344
6348
|
import Typography4 from "@mui/material/Typography";
|
|
6345
|
-
import
|
|
6349
|
+
import Grid4 from "@mui/material/Grid";
|
|
6346
6350
|
import Card from "@mui/material/Card";
|
|
6347
6351
|
import CardContent from "@mui/material/CardContent";
|
|
6348
6352
|
import CardMedia from "@mui/material/CardMedia";
|
|
6349
6353
|
import CardActionArea from "@mui/material/CardActionArea";
|
|
6350
|
-
import { jsx as jsx38, jsxs as
|
|
6354
|
+
import { jsx as jsx38, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
6351
6355
|
var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight, cardWidth, id, name }) => {
|
|
6352
6356
|
const [currentIndex, setCurrentIndex] = useState4(0);
|
|
6353
6357
|
const adjustButtonSize = buttonSize !== void 0 ? buttonSize : 70;
|
|
@@ -6364,8 +6368,8 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
|
|
|
6364
6368
|
const handleClick = () => {
|
|
6365
6369
|
window.open(items[currentIndex].path, "_blank");
|
|
6366
6370
|
};
|
|
6367
|
-
return /* @__PURE__ */ jsx38("div", { children: /* @__PURE__ */ jsx38("div", { children: /* @__PURE__ */
|
|
6368
|
-
|
|
6371
|
+
return /* @__PURE__ */ jsx38("div", { children: /* @__PURE__ */ jsx38("div", { children: /* @__PURE__ */ jsxs24(
|
|
6372
|
+
Grid4,
|
|
6369
6373
|
{
|
|
6370
6374
|
container: true,
|
|
6371
6375
|
spacing: 1,
|
|
@@ -6381,9 +6385,9 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
|
|
|
6381
6385
|
maxWidth: adjustCardWidth,
|
|
6382
6386
|
maxHeight: adjustCardHeight
|
|
6383
6387
|
},
|
|
6384
|
-
children: /* @__PURE__ */
|
|
6388
|
+
children: /* @__PURE__ */ jsxs24(CardActionArea, { onClick: handleClick, children: [
|
|
6385
6389
|
/* @__PURE__ */ jsx38(CardMedia, { sx: { height: adjustImageHeight, width: adjustImageWidth }, image: items[currentIndex].image }),
|
|
6386
|
-
/* @__PURE__ */
|
|
6390
|
+
/* @__PURE__ */ jsxs24(CardContent, { children: [
|
|
6387
6391
|
/* @__PURE__ */ jsx38(Typography4, { variant: "h4", children: items[currentIndex].title }),
|
|
6388
6392
|
/* @__PURE__ */ jsx38(Typography4, { variant: "body1", children: items[currentIndex].description })
|
|
6389
6393
|
] })
|
|
@@ -6398,18 +6402,18 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
|
|
|
6398
6402
|
DefaultCarousel.displayName = "DefaultCarousel";
|
|
6399
6403
|
|
|
6400
6404
|
// src/components/carousels/WavelengthSliderCarousel.tsx
|
|
6401
|
-
import { useState as useState5, useEffect as
|
|
6402
|
-
import
|
|
6405
|
+
import { useState as useState5, useEffect as useEffect12 } from "react";
|
|
6406
|
+
import Grid5 from "@mui/material/Grid";
|
|
6403
6407
|
import Card2 from "@mui/material/Card";
|
|
6404
6408
|
import CardContent2 from "@mui/material/CardContent";
|
|
6405
6409
|
import CardMedia2 from "@mui/material/CardMedia";
|
|
6406
6410
|
import CardActionArea2 from "@mui/material/CardActionArea";
|
|
6407
|
-
import { jsx as jsx39, jsxs as
|
|
6411
|
+
import { jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6408
6412
|
var delay = 2500;
|
|
6409
6413
|
var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth }) => {
|
|
6410
6414
|
const [index, setIndex] = useState5(0);
|
|
6411
6415
|
const [isHovered, setIsHovered] = useState5(false);
|
|
6412
|
-
|
|
6416
|
+
useEffect12(() => {
|
|
6413
6417
|
setTimeout(() => setIndex((prevIndex) => prevIndex === items.length - 1 ? 0 : prevIndex + 1), delay);
|
|
6414
6418
|
return () => {
|
|
6415
6419
|
};
|
|
@@ -6448,7 +6452,7 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
|
|
|
6448
6452
|
}
|
|
6449
6453
|
};
|
|
6450
6454
|
return /* @__PURE__ */ jsx39("div", { style: styles.carouselcontainer, children: /* @__PURE__ */ jsx39("div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ jsx39(
|
|
6451
|
-
|
|
6455
|
+
Grid5,
|
|
6452
6456
|
{
|
|
6453
6457
|
sx: {
|
|
6454
6458
|
display: "flex",
|
|
@@ -6467,9 +6471,9 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
|
|
|
6467
6471
|
},
|
|
6468
6472
|
onMouseEnter: () => setIsHovered(true),
|
|
6469
6473
|
onMouseLeave: () => setIsHovered(false),
|
|
6470
|
-
children: /* @__PURE__ */
|
|
6474
|
+
children: /* @__PURE__ */ jsxs25(CardActionArea2, { href: card.path, children: [
|
|
6471
6475
|
/* @__PURE__ */ jsx39(CardMedia2, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
|
|
6472
|
-
/* @__PURE__ */
|
|
6476
|
+
/* @__PURE__ */ jsxs25(CardContent2, { children: [
|
|
6473
6477
|
/* @__PURE__ */ jsx39("h3", { children: card.title }),
|
|
6474
6478
|
/* @__PURE__ */ jsx39("p", { children: card.description })
|
|
6475
6479
|
] })
|
|
@@ -6490,7 +6494,7 @@ import Button5 from "@mui/material/Button";
|
|
|
6490
6494
|
import ArrowBackIosNewIcon from "@mui/icons-material/ArrowBackIosNew";
|
|
6491
6495
|
import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
|
|
6492
6496
|
import styled7 from "styled-components";
|
|
6493
|
-
import { jsx as jsx40, jsxs as
|
|
6497
|
+
import { jsx as jsx40, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6494
6498
|
var MyDroplistItems = styled7("li")`
|
|
6495
6499
|
background-color: white;
|
|
6496
6500
|
color: #000000;
|
|
@@ -6534,14 +6538,14 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
|
|
|
6534
6538
|
"&:disabled": { background: "rgb(226, 223, 223)" },
|
|
6535
6539
|
"&.active": { background: "#8FD8FF" }
|
|
6536
6540
|
};
|
|
6537
|
-
return /* @__PURE__ */
|
|
6541
|
+
return /* @__PURE__ */ jsxs26("div", { style: dropstyles.butPagCompDivStyle, id, children: [
|
|
6538
6542
|
/* @__PURE__ */ jsx40(Button5, { onClick: () => handleChangePage(current - 1), disabled: current === 1, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx40(ArrowBackIosNewIcon, {}) }),
|
|
6539
6543
|
/* @__PURE__ */ jsx40("section", { style: dropstyles.rangenumbers, children: itemList.map(
|
|
6540
6544
|
(item, index) => item === "..." && index === 1 ? (
|
|
6541
6545
|
//first half ellipse with first half dropdown
|
|
6542
6546
|
// dropdown
|
|
6543
6547
|
// eslint-disable-next-line react/jsx-key
|
|
6544
|
-
/* @__PURE__ */
|
|
6548
|
+
/* @__PURE__ */ jsxs26("div", { children: [
|
|
6545
6549
|
/* @__PURE__ */ jsx40(Button5, { onClick: () => toggleDropdown(1), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
|
|
6546
6550
|
isOpen && /* @__PURE__ */ jsx40("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx40("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx40(
|
|
6547
6551
|
MyDroplistItems,
|
|
@@ -6556,7 +6560,7 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
|
|
|
6556
6560
|
] })
|
|
6557
6561
|
) : item === "..." && index === 5 ? (
|
|
6558
6562
|
//second half ellipse with second half dropdown
|
|
6559
|
-
/* @__PURE__ */
|
|
6563
|
+
/* @__PURE__ */ jsxs26("div", { children: [
|
|
6560
6564
|
/* @__PURE__ */ jsx40(Button5, { onClick: () => toggleDropdown(5), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
|
|
6561
6565
|
isSecOpen && /* @__PURE__ */ jsx40("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx40("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx40(
|
|
6562
6566
|
MyDroplistItems,
|
|
@@ -6583,7 +6587,7 @@ import Button6 from "@mui/material/Button";
|
|
|
6583
6587
|
import ArrowBackIosNewIcon2 from "@mui/icons-material/ArrowBackIosNew";
|
|
6584
6588
|
import ArrowForwardIosIcon2 from "@mui/icons-material/ArrowForwardIos";
|
|
6585
6589
|
import styled8 from "styled-components";
|
|
6586
|
-
import { jsx as jsx41, jsxs as
|
|
6590
|
+
import { jsx as jsx41, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6587
6591
|
function WavelengthVariationPagination({ totalPages, current, variant, handleChangePage, itemList, firstEllipseList, secondEllipseList, id }) {
|
|
6588
6592
|
const [isOpen, setIsOpen] = useState7(false);
|
|
6589
6593
|
const [isSecOpen, setIsSecOpen] = useState7(false);
|
|
@@ -6625,13 +6629,13 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
|
|
|
6625
6629
|
setIsSecOpen(!isSecOpen);
|
|
6626
6630
|
}
|
|
6627
6631
|
};
|
|
6628
|
-
return /* @__PURE__ */
|
|
6632
|
+
return /* @__PURE__ */ jsxs27("div", { style: dropstyles.pagination, id, children: [
|
|
6629
6633
|
/* @__PURE__ */ jsx41(Button6, { onClick: () => handleChangePage(current - 1), variant, disabled: current === 1, children: /* @__PURE__ */ jsx41(ArrowBackIosNewIcon2, {}) }),
|
|
6630
6634
|
/* @__PURE__ */ jsx41("section", { style: dropstyles.rangenumbers, children: itemList.map(
|
|
6631
6635
|
(item, index) => item === "..." && index === 1 ? (
|
|
6632
6636
|
//first half ellipse with first half dropdown
|
|
6633
6637
|
// eslint-disable-next-line react/jsx-key
|
|
6634
|
-
/* @__PURE__ */
|
|
6638
|
+
/* @__PURE__ */ jsxs27("div", { children: [
|
|
6635
6639
|
/* @__PURE__ */ jsx41(Button6, { onClick: () => toggleDropdown(1), variant, className: current === index ? "active" : "", children: item }, index),
|
|
6636
6640
|
isOpen && /* @__PURE__ */ jsx41("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx41("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx41(
|
|
6637
6641
|
MyDroplistItems2,
|
|
@@ -6647,7 +6651,7 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
|
|
|
6647
6651
|
] })
|
|
6648
6652
|
) : item === "..." && index === 5 ? (
|
|
6649
6653
|
//second half ellipse with second half dropdown
|
|
6650
|
-
/* @__PURE__ */
|
|
6654
|
+
/* @__PURE__ */ jsxs27("div", { children: [
|
|
6651
6655
|
/* @__PURE__ */ jsx41(Button6, { onClick: () => toggleDropdown(5), variant, className: current === index ? "active" : "", children: item }, index),
|
|
6652
6656
|
isSecOpen && /* @__PURE__ */ jsx41("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx41("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx41(
|
|
6653
6657
|
MyDroplistItems2,
|
|
@@ -6781,7 +6785,7 @@ WavelengthDefaultPagination.displayName = "WavelengthDefaultPagination";
|
|
|
6781
6785
|
var WavelengthDefaultPagination_default = WavelengthDefaultPagination;
|
|
6782
6786
|
|
|
6783
6787
|
// src/components/TextField/WavelengthInput.tsx
|
|
6784
|
-
import { useRef as
|
|
6788
|
+
import { useRef as useRef12, useEffect as useEffect13, forwardRef as forwardRef2, useImperativeHandle as useImperativeHandle3 } from "react";
|
|
6785
6789
|
import "@wavelengthusaf/web-components";
|
|
6786
6790
|
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
6787
6791
|
var WavelengthInput = forwardRef2(
|
|
@@ -6820,12 +6824,12 @@ var WavelengthInput = forwardRef2(
|
|
|
6820
6824
|
onBlurCallback,
|
|
6821
6825
|
...rest
|
|
6822
6826
|
}, ref) => {
|
|
6823
|
-
const internalRef =
|
|
6827
|
+
const internalRef = useRef12(null);
|
|
6824
6828
|
useImperativeHandle3(ref, () => ({
|
|
6825
6829
|
...internalRef.current,
|
|
6826
6830
|
validate: () => internalRef.current?.validate?.(true)
|
|
6827
6831
|
}));
|
|
6828
|
-
|
|
6832
|
+
useEffect13(() => {
|
|
6829
6833
|
const el = internalRef.current;
|
|
6830
6834
|
if (!el) return;
|
|
6831
6835
|
const set = (attr, val) => {
|
|
@@ -6896,7 +6900,7 @@ var WavelengthInput = forwardRef2(
|
|
|
6896
6900
|
label,
|
|
6897
6901
|
disabled
|
|
6898
6902
|
]);
|
|
6899
|
-
|
|
6903
|
+
useEffect13(() => {
|
|
6900
6904
|
const el = internalRef.current;
|
|
6901
6905
|
if (!el || !onBlurCallback) return;
|
|
6902
6906
|
const handler = (e) => {
|
|
@@ -6908,7 +6912,7 @@ var WavelengthInput = forwardRef2(
|
|
|
6908
6912
|
el.addEventListener("blur", handler);
|
|
6909
6913
|
return () => el.removeEventListener("blur", handler);
|
|
6910
6914
|
}, [onBlurCallback]);
|
|
6911
|
-
|
|
6915
|
+
useEffect13(() => {
|
|
6912
6916
|
const el = internalRef.current;
|
|
6913
6917
|
if (!el || !onChange) return;
|
|
6914
6918
|
const handler = (e) => {
|
|
@@ -6938,9 +6942,9 @@ WavelengthInput.displayName = "WavelengthInput";
|
|
|
6938
6942
|
import { WavelengthInput as WavelengthInput2 } from "@wavelengthusaf/web-components";
|
|
6939
6943
|
|
|
6940
6944
|
// src/components/DataTable/WavelengthDataTable.tsx
|
|
6941
|
-
import { useEffect as
|
|
6945
|
+
import { useEffect as useEffect14, useRef as useRef13, useState as useState9 } from "react";
|
|
6942
6946
|
import styled9 from "styled-components";
|
|
6943
|
-
import { jsx as jsx44, jsxs as
|
|
6947
|
+
import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6944
6948
|
var ModalInputDiv = styled9.div`
|
|
6945
6949
|
display: flex;
|
|
6946
6950
|
flex-direction: column; /* Corrected this line */
|
|
@@ -7119,8 +7123,8 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7119
7123
|
const [currentPage, setCurrentPage] = useState9(1);
|
|
7120
7124
|
const [isOpen, setIsOpen] = useState9(false);
|
|
7121
7125
|
const [editingMenuKey, setEditingMenuKey] = useState9(null);
|
|
7122
|
-
const menuRef =
|
|
7123
|
-
const modalRef =
|
|
7126
|
+
const menuRef = useRef13(null);
|
|
7127
|
+
const modalRef = useRef13(null);
|
|
7124
7128
|
function isNumeric(value) {
|
|
7125
7129
|
return /^\d+$/.test(value);
|
|
7126
7130
|
}
|
|
@@ -7128,7 +7132,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7128
7132
|
setSelectedValue(event.target.value);
|
|
7129
7133
|
setLocalData(copiedArray);
|
|
7130
7134
|
};
|
|
7131
|
-
|
|
7135
|
+
useEffect14(() => {
|
|
7132
7136
|
if (!selectedValue || searchItem === "") {
|
|
7133
7137
|
setLocalData(copiedArray);
|
|
7134
7138
|
setNoRowsOpen(false);
|
|
@@ -7158,7 +7162,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7158
7162
|
const closeModal = () => {
|
|
7159
7163
|
setIsModalOpen(false);
|
|
7160
7164
|
};
|
|
7161
|
-
|
|
7165
|
+
useEffect14(() => {
|
|
7162
7166
|
const handleClickOutside = (event) => {
|
|
7163
7167
|
if (isModalOpen && modalRef.current && !modalRef.current.contains(event.target)) {
|
|
7164
7168
|
closeModal();
|
|
@@ -7215,9 +7219,9 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7215
7219
|
setEditingId(null);
|
|
7216
7220
|
};
|
|
7217
7221
|
const headers = columns.map((column, index) => {
|
|
7218
|
-
return /* @__PURE__ */
|
|
7222
|
+
return /* @__PURE__ */ jsxs28(TableHeadStyle, { children: [
|
|
7219
7223
|
column.title,
|
|
7220
|
-
/* @__PURE__ */
|
|
7224
|
+
/* @__PURE__ */ jsxs28(KebabMenu, { ref: menuRef, children: [
|
|
7221
7225
|
/* @__PURE__ */ jsx44(
|
|
7222
7226
|
KebabIcon,
|
|
7223
7227
|
{
|
|
@@ -7228,25 +7232,25 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7228
7232
|
children: "\u22EE"
|
|
7229
7233
|
}
|
|
7230
7234
|
),
|
|
7231
|
-
isOpen && editingMenuKey === column.key && /* @__PURE__ */
|
|
7232
|
-
sortOrder === "asc" ? /* @__PURE__ */
|
|
7235
|
+
isOpen && editingMenuKey === column.key && /* @__PURE__ */ jsxs28(MenuOptions, { children: [
|
|
7236
|
+
sortOrder === "asc" ? /* @__PURE__ */ jsxs28("li", { title: `MenuListASC-${index}`, onClick: () => handleSort(column.key, "asc"), children: [
|
|
7233
7237
|
/* @__PURE__ */ jsx44("span", { children: "\u2B06" }),
|
|
7234
7238
|
" Sort ASC"
|
|
7235
|
-
] }) : /* @__PURE__ */
|
|
7239
|
+
] }) : /* @__PURE__ */ jsxs28("li", { title: `MenuListDES-${index}`, onClick: () => handleSort(column.key, "desc"), children: [
|
|
7236
7240
|
/* @__PURE__ */ jsx44("span", { children: "\u2B07" }),
|
|
7237
7241
|
" Sort DESC"
|
|
7238
7242
|
] }),
|
|
7239
|
-
/* @__PURE__ */
|
|
7243
|
+
/* @__PURE__ */ jsxs28("li", { title: `MenuListFilterButton-${index}`, onClick: openModal, children: [
|
|
7240
7244
|
/* @__PURE__ */ jsx44("span", { children: "\u23F7" }),
|
|
7241
7245
|
" Filter"
|
|
7242
7246
|
] }),
|
|
7243
|
-
isModalOpen && /* @__PURE__ */ jsx44(ModalOverlay, { children: /* @__PURE__ */
|
|
7247
|
+
isModalOpen && /* @__PURE__ */ jsx44(ModalOverlay, { children: /* @__PURE__ */ jsxs28(ModalWrapper, { ref: modalRef, children: [
|
|
7244
7248
|
/* @__PURE__ */ jsx44(ModalClose, { title: `ModalClose-${index}`, onClick: closeModal, children: "\xD7" }),
|
|
7245
|
-
/* @__PURE__ */
|
|
7249
|
+
/* @__PURE__ */ jsxs28(ModalInputDiv, { children: [
|
|
7246
7250
|
/* @__PURE__ */ jsx44("label", { htmlFor: "filterSelectId", children: "Columns: " }),
|
|
7247
7251
|
/* @__PURE__ */ jsx44("select", { title: `filterSelect-${index}`, id: "filterSelectId", value: selectedValue, onChange: handleChange, children: columns.map((item) => /* @__PURE__ */ jsx44("option", { children: item.key }, item.key)) })
|
|
7248
7252
|
] }),
|
|
7249
|
-
/* @__PURE__ */
|
|
7253
|
+
/* @__PURE__ */ jsxs28(ModalInputDiv, { children: [
|
|
7250
7254
|
/* @__PURE__ */ jsx44("label", { htmlFor: "filterInputId", children: "Values: " }),
|
|
7251
7255
|
/* @__PURE__ */ jsx44(
|
|
7252
7256
|
"input",
|
|
@@ -7289,8 +7293,8 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7289
7293
|
}
|
|
7290
7294
|
) : /* @__PURE__ */ jsx44("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, onDoubleClick: () => handleEdit(item.id, item[column.key], column.key), children: item[column.key] }) }, index2);
|
|
7291
7295
|
}) }, item.id));
|
|
7292
|
-
return /* @__PURE__ */
|
|
7293
|
-
/* @__PURE__ */ jsx44(StyledBoxDiv, { title: "StyledBoxDiv", children: /* @__PURE__ */
|
|
7296
|
+
return /* @__PURE__ */ jsxs28("div", { id, children: [
|
|
7297
|
+
/* @__PURE__ */ jsx44(StyledBoxDiv, { title: "StyledBoxDiv", children: /* @__PURE__ */ jsxs28(StyledTableTwo, { title: "StyledTable", children: [
|
|
7294
7298
|
/* @__PURE__ */ jsx44("thead", { children: /* @__PURE__ */ jsx44("tr", { children: headers }) }),
|
|
7295
7299
|
/* @__PURE__ */ jsx44("tbody", { children: rows })
|
|
7296
7300
|
] }) }),
|
|
@@ -7302,7 +7306,7 @@ WavelengthDataTable.displayName = "WavelengthDataTable";
|
|
|
7302
7306
|
// src/components/DataTable/SubRowTable/ChildSubTable.tsx
|
|
7303
7307
|
import { useMemo as useMemo3, useState as useState10, Fragment as Fragment13 } from "react";
|
|
7304
7308
|
import styled10 from "styled-components";
|
|
7305
|
-
import { Fragment as Fragment14, jsx as jsx45, jsxs as
|
|
7309
|
+
import { Fragment as Fragment14, jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7306
7310
|
var TableContainer = styled10.div`
|
|
7307
7311
|
width: 1200px;
|
|
7308
7312
|
border-radius: 16px;
|
|
@@ -7539,15 +7543,15 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7539
7543
|
return result;
|
|
7540
7544
|
}, [data, sortKey, sortOrder, sortSubKey, sortSubOrder]);
|
|
7541
7545
|
const renderSortButton = (column, sortOrder2, sortKey2) => {
|
|
7542
|
-
return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */ jsx45(Fragment14, { children: /* @__PURE__ */
|
|
7546
|
+
return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */ jsx45(Fragment14, { children: /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
7543
7547
|
column.title,
|
|
7544
7548
|
" ",
|
|
7545
7549
|
/* @__PURE__ */ jsx45("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx45("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
7546
|
-
] }) }) : /* @__PURE__ */ jsx45(Fragment14, { children: /* @__PURE__ */
|
|
7550
|
+
] }) }) : /* @__PURE__ */ jsx45(Fragment14, { children: /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
7547
7551
|
column.title,
|
|
7548
7552
|
" ",
|
|
7549
7553
|
/* @__PURE__ */ jsx45("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx45("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
|
|
7550
|
-
] }) }) : /* @__PURE__ */ jsx45(Fragment14, { children: /* @__PURE__ */
|
|
7554
|
+
] }) }) : /* @__PURE__ */ jsx45(Fragment14, { children: /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
7551
7555
|
column.title,
|
|
7552
7556
|
" ",
|
|
7553
7557
|
/* @__PURE__ */ jsx45("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx45("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
@@ -7555,15 +7559,15 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7555
7559
|
};
|
|
7556
7560
|
const renderSortSubButton = (column, sortSubOrder2, sortSubKey2) => {
|
|
7557
7561
|
const columnKey = trimBeforePeriod2(column.key);
|
|
7558
|
-
return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */
|
|
7562
|
+
return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
7559
7563
|
column.title,
|
|
7560
7564
|
" ",
|
|
7561
7565
|
/* @__PURE__ */ jsx45("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx45("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
7562
|
-
] }) : /* @__PURE__ */
|
|
7566
|
+
] }) : /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
7563
7567
|
column.title,
|
|
7564
7568
|
" ",
|
|
7565
7569
|
/* @__PURE__ */ jsx45("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx45("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
|
|
7566
|
-
] }) : /* @__PURE__ */
|
|
7570
|
+
] }) : /* @__PURE__ */ jsxs29(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
7567
7571
|
column.title,
|
|
7568
7572
|
" ",
|
|
7569
7573
|
/* @__PURE__ */ jsx45("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx45("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
@@ -7576,7 +7580,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7576
7580
|
return /* @__PURE__ */ jsx45("th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
7577
7581
|
});
|
|
7578
7582
|
const subDataRows = (itemId) => {
|
|
7579
|
-
return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */ jsx45(Fragment13, { children: item.Details?.fileObjects.map((fileItem, index) => /* @__PURE__ */
|
|
7583
|
+
return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */ jsx45(Fragment13, { children: item.Details?.fileObjects.map((fileItem, index) => /* @__PURE__ */ jsxs29(SubDataTableBodyRowContainer, { children: [
|
|
7580
7584
|
/* @__PURE__ */ jsx45("td", { children: /* @__PURE__ */ jsx45(DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ jsx45("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx45(
|
|
7581
7585
|
"path",
|
|
7582
7586
|
{
|
|
@@ -7593,16 +7597,16 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7593
7597
|
})
|
|
7594
7598
|
] }, `${item}-${item.Details?.relationId}-${fileItem.id}-${index}`)) }, `SDR-${item.id}-${item.Details?.relationId}`));
|
|
7595
7599
|
};
|
|
7596
|
-
const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */
|
|
7600
|
+
const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */ jsxs29(BodyRowContainer, { children: [
|
|
7597
7601
|
/* @__PURE__ */ jsx45(TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ jsx45(TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
|
|
7598
|
-
/* @__PURE__ */
|
|
7602
|
+
/* @__PURE__ */ jsxs29(ButtonStylingRow, { children: [
|
|
7599
7603
|
/* @__PURE__ */ jsx45(DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
7600
7604
|
/* @__PURE__ */ jsx45(AddButton, { onClick: addFilesOnClick, children: "Add files" })
|
|
7601
7605
|
] }),
|
|
7602
7606
|
openRow !== item.id && /* @__PURE__ */ jsx45(BottomArrowBar, { onClick: () => toggleDropdown(item.id), children: /* @__PURE__ */ jsx45("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx45("path", { d: "M64 0L44 6L24 0H0L44 14L92 0H64Z", fill: "#7A7A7A" }) }) }),
|
|
7603
|
-
openRow === item.id && /* @__PURE__ */
|
|
7604
|
-
/* @__PURE__ */
|
|
7605
|
-
/* @__PURE__ */ jsx45(SubDataHeaderColumn, { children: /* @__PURE__ */
|
|
7607
|
+
openRow === item.id && /* @__PURE__ */ jsxs29("div", { children: [
|
|
7608
|
+
/* @__PURE__ */ jsxs29(SubDataTable, { children: [
|
|
7609
|
+
/* @__PURE__ */ jsx45(SubDataHeaderColumn, { children: /* @__PURE__ */ jsxs29(SubDataTableHeaderRow, { children: [
|
|
7606
7610
|
/* @__PURE__ */ jsx45("th", {}),
|
|
7607
7611
|
SubDataHeaders
|
|
7608
7612
|
] }) }),
|
|
@@ -7611,7 +7615,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7611
7615
|
/* @__PURE__ */ jsx45(BottomUpArrowBar, { onClick: () => toggleUpward(), children: /* @__PURE__ */ jsx45("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx45("path", { d: "M64 14L44 8L24 14H0L44 0L92 14H64Z", fill: "#7A7A7A" }) }) })
|
|
7612
7616
|
] })
|
|
7613
7617
|
] }, `Bodycontainer-${item.id}-${index}`));
|
|
7614
|
-
return /* @__PURE__ */
|
|
7618
|
+
return /* @__PURE__ */ jsxs29(TableContainer, { children: [
|
|
7615
7619
|
/* @__PURE__ */ jsx45(TablePrimaryRow, { $amountofColumns: HeadColumns.length, children: headers }),
|
|
7616
7620
|
/* @__PURE__ */ jsx45("div", { title: "tablebodies", children: dataRows })
|
|
7617
7621
|
] });
|
|
@@ -7619,14 +7623,14 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7619
7623
|
ChildDataTable.displayName = "ChildDataTable";
|
|
7620
7624
|
|
|
7621
7625
|
// src/components/DataTable/SubRowTable/ChildDataTable.tsx
|
|
7622
|
-
import { useRef as
|
|
7626
|
+
import { useRef as useRef14, useEffect as useEffect15 } from "react";
|
|
7623
7627
|
import "@wavelengthusaf/web-components";
|
|
7624
7628
|
import { createRoot } from "react-dom/client";
|
|
7625
7629
|
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
7626
7630
|
var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, ...rest }) => {
|
|
7627
|
-
const tableRef =
|
|
7628
|
-
const reactDropdownRoots =
|
|
7629
|
-
|
|
7631
|
+
const tableRef = useRef14(null);
|
|
7632
|
+
const reactDropdownRoots = useRef14(/* @__PURE__ */ new Map());
|
|
7633
|
+
useEffect15(() => {
|
|
7630
7634
|
const customChildDataTableElement = tableRef.current;
|
|
7631
7635
|
if (!customChildDataTableElement) return;
|
|
7632
7636
|
if (columns !== void 0) customChildDataTableElement.setColumns = columns;
|
|
@@ -7635,7 +7639,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
|
|
|
7635
7639
|
if (sortIcon !== void 0) customChildDataTableElement.setSortIcon = sortIcon;
|
|
7636
7640
|
if (dropdownButtonIcon !== void 0) customChildDataTableElement.setDropdownButtonIcon = dropdownButtonIcon;
|
|
7637
7641
|
}, [columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon]);
|
|
7638
|
-
|
|
7642
|
+
useEffect15(() => {
|
|
7639
7643
|
const el = tableRef.current;
|
|
7640
7644
|
if (!el) return;
|
|
7641
7645
|
const handleReactDropdown = (event) => {
|
|
@@ -7682,7 +7686,7 @@ import { ChildDataTable as ChildDataTable3 } from "@wavelengthusaf/web-component
|
|
|
7682
7686
|
// src/components/DataTable/NestedDataTable/NestedDataTable.tsx
|
|
7683
7687
|
import { useState as useState11 } from "react";
|
|
7684
7688
|
import styled11 from "styled-components";
|
|
7685
|
-
import { Fragment as Fragment15, jsx as jsx47, jsxs as
|
|
7689
|
+
import { Fragment as Fragment15, jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7686
7690
|
var TableStyle = styled11.table`
|
|
7687
7691
|
width: 100%;
|
|
7688
7692
|
height: 100%;
|
|
@@ -7782,12 +7786,12 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
7782
7786
|
return /* @__PURE__ */ jsx47("td", { children: /* @__PURE__ */ jsx47("span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
7783
7787
|
}
|
|
7784
7788
|
}) }, `Sub-${item.id}-${index}`) }));
|
|
7785
|
-
const childRows = /* @__PURE__ */
|
|
7789
|
+
const childRows = /* @__PURE__ */ jsxs30(SubTableStyle, { children: [
|
|
7786
7790
|
/* @__PURE__ */ jsx47("thead", { children: /* @__PURE__ */ jsx47("tr", { children: SubDataHeaders }) }),
|
|
7787
7791
|
/* @__PURE__ */ jsx47("tbody", { children: subDataRows })
|
|
7788
7792
|
] });
|
|
7789
|
-
const rows = !data?.length ? /* @__PURE__ */ jsx47("tr", { children: /* @__PURE__ */ jsx47("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : data?.map((item, index) => /* @__PURE__ */
|
|
7790
|
-
/* @__PURE__ */
|
|
7793
|
+
const rows = !data?.length ? /* @__PURE__ */ jsx47("tr", { children: /* @__PURE__ */ jsx47("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : data?.map((item, index) => /* @__PURE__ */ jsxs30(Fragment15, { children: [
|
|
7794
|
+
/* @__PURE__ */ jsxs30(PrimaryTrRows, { $index: index, children: [
|
|
7791
7795
|
/* @__PURE__ */ jsx47(DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ jsx47(Fragment15, { children: "\u2227" }) : /* @__PURE__ */ jsx47(Fragment15, { children: "\u2228" }) }),
|
|
7792
7796
|
HeadColumns.map((column, index2) => {
|
|
7793
7797
|
return /* @__PURE__ */ jsx47(PrimaryTdSpan, { children: /* @__PURE__ */ jsx47("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, children: item[column.key] }) }, `${item.id}-${index}=${index2}`);
|
|
@@ -7795,8 +7799,8 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
7795
7799
|
] }, index),
|
|
7796
7800
|
isOpen && primaryRowIndex === index && /* @__PURE__ */ jsx47(SubTrRows, { $index: index, children: /* @__PURE__ */ jsx47("td", { colSpan: HeadColumns.length + 1, children: childRows }) }, index)
|
|
7797
7801
|
] }));
|
|
7798
|
-
return /* @__PURE__ */ jsx47("div", { id, children: /* @__PURE__ */
|
|
7799
|
-
/* @__PURE__ */ jsx47("thead", { children: /* @__PURE__ */
|
|
7802
|
+
return /* @__PURE__ */ jsx47("div", { id, children: /* @__PURE__ */ jsxs30(TableStyle, { children: [
|
|
7803
|
+
/* @__PURE__ */ jsx47("thead", { children: /* @__PURE__ */ jsxs30("tr", { children: [
|
|
7800
7804
|
/* @__PURE__ */ jsx47("th", { title: "dropdownth" }),
|
|
7801
7805
|
headers
|
|
7802
7806
|
] }) }),
|
|
@@ -7806,9 +7810,9 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
7806
7810
|
NestedDataTable.displayName = "NestedDataTable";
|
|
7807
7811
|
|
|
7808
7812
|
// src/components/AutoComplete/WavelengthAutoComplete.tsx
|
|
7809
|
-
import { useEffect as
|
|
7813
|
+
import { useEffect as useEffect16, useRef as useRef16, useState as useState12 } from "react";
|
|
7810
7814
|
import styled12 from "styled-components";
|
|
7811
|
-
import { Fragment as Fragment16, jsx as jsx48, jsxs as
|
|
7815
|
+
import { Fragment as Fragment16, jsx as jsx48, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
7812
7816
|
var AutoContainer = styled12.div`
|
|
7813
7817
|
//position: relative;
|
|
7814
7818
|
position: relative;
|
|
@@ -7937,9 +7941,9 @@ var WavelengthAutoComplete = ({
|
|
|
7937
7941
|
placeholder,
|
|
7938
7942
|
onBlurCallback
|
|
7939
7943
|
}) => {
|
|
7940
|
-
const inputRef =
|
|
7941
|
-
const listRef =
|
|
7942
|
-
const noItemListRef =
|
|
7944
|
+
const inputRef = useRef16(null);
|
|
7945
|
+
const listRef = useRef16(null);
|
|
7946
|
+
const noItemListRef = useRef16(null);
|
|
7943
7947
|
const [inputValue, setInputValue] = useState12(placeholder ?? "");
|
|
7944
7948
|
const [suggestions, setSuggestions] = useState12([]);
|
|
7945
7949
|
const [isDropdownVisible, setIsDropdownVisible] = useState12(false);
|
|
@@ -7947,7 +7951,7 @@ var WavelengthAutoComplete = ({
|
|
|
7947
7951
|
const arrayLength = suggestions.length;
|
|
7948
7952
|
const [focusedIndex, setFocusedIndex] = useState12(0);
|
|
7949
7953
|
const idName = id ? id : "auto-comp";
|
|
7950
|
-
|
|
7954
|
+
useEffect16(() => {
|
|
7951
7955
|
const handleClickOutsideList = (event) => {
|
|
7952
7956
|
if (listRef.current && !listRef.current.contains(event.target)) {
|
|
7953
7957
|
setIsDropdownVisible(false);
|
|
@@ -7959,7 +7963,7 @@ var WavelengthAutoComplete = ({
|
|
|
7959
7963
|
};
|
|
7960
7964
|
}, [focusedIndex]);
|
|
7961
7965
|
if (onDataChange !== void 0) {
|
|
7962
|
-
|
|
7966
|
+
useEffect16(() => {
|
|
7963
7967
|
onDataChange(inputValue);
|
|
7964
7968
|
}, [inputValue]);
|
|
7965
7969
|
}
|
|
@@ -8025,8 +8029,8 @@ var WavelengthAutoComplete = ({
|
|
|
8025
8029
|
break;
|
|
8026
8030
|
}
|
|
8027
8031
|
};
|
|
8028
|
-
return /* @__PURE__ */ jsx48(Fragment16, { children: /* @__PURE__ */
|
|
8029
|
-
/* @__PURE__ */
|
|
8032
|
+
return /* @__PURE__ */ jsx48(Fragment16, { children: /* @__PURE__ */ jsxs31(AutoContainer, { $inputHeight: height2, $inputWidth: width2, children: [
|
|
8033
|
+
/* @__PURE__ */ jsxs31(InputWrapper, { id: `${idName}-input-wrapper`, $inputHeight: height2, $inputWidth: width2, children: [
|
|
8030
8034
|
/* @__PURE__ */ jsx48(
|
|
8031
8035
|
Input,
|
|
8032
8036
|
{
|
|
@@ -8079,9 +8083,9 @@ var WavelengthAutoComplete = ({
|
|
|
8079
8083
|
WavelengthAutoComplete.displayName = "WavelengthAutoComplete";
|
|
8080
8084
|
|
|
8081
8085
|
// src/components/inputs/WavelengthDatePicker.tsx
|
|
8082
|
-
import { useEffect as
|
|
8086
|
+
import { useEffect as useEffect17, useState as useState13 } from "react";
|
|
8083
8087
|
import styled13 from "styled-components";
|
|
8084
|
-
import { jsx as jsx49, jsxs as
|
|
8088
|
+
import { jsx as jsx49, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
8085
8089
|
var Label2 = styled13.label`
|
|
8086
8090
|
position: absolute;
|
|
8087
8091
|
top: 50%;
|
|
@@ -8153,7 +8157,7 @@ var WavelengthDatePicker = ({
|
|
|
8153
8157
|
const [minAdjusted, setMinAdjusted] = useState13("");
|
|
8154
8158
|
const [maxAdjusted, setMaxAdjusted] = useState13("");
|
|
8155
8159
|
const idName = id ? id : "WlDatePick";
|
|
8156
|
-
|
|
8160
|
+
useEffect17(() => {
|
|
8157
8161
|
const minDate = new Date(min || "");
|
|
8158
8162
|
const maxDate = new Date(max || "");
|
|
8159
8163
|
if (inputTimeType === "datetime-local") {
|
|
@@ -8192,7 +8196,7 @@ var WavelengthDatePicker = ({
|
|
|
8192
8196
|
setValue(dateString);
|
|
8193
8197
|
if (OnDataChange !== void 0) OnDataChange(new Date(dateString));
|
|
8194
8198
|
};
|
|
8195
|
-
return /* @__PURE__ */
|
|
8199
|
+
return /* @__PURE__ */ jsxs32(
|
|
8196
8200
|
InputWrapper2,
|
|
8197
8201
|
{
|
|
8198
8202
|
id: `${idName}-inputWrapper`,
|
|
@@ -8236,7 +8240,7 @@ WavelengthDatePicker.displayName = "WavelengthDatePicker";
|
|
|
8236
8240
|
import { WavelengthDatePicker as WavelengthDatePicker2 } from "@wavelengthusaf/web-components";
|
|
8237
8241
|
|
|
8238
8242
|
// src/components/inputs/WavelengthCheckbox.tsx
|
|
8239
|
-
import { useRef as
|
|
8243
|
+
import { useRef as useRef17, useEffect as useEffect18 } from "react";
|
|
8240
8244
|
import "@wavelengthusaf/web-components";
|
|
8241
8245
|
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
8242
8246
|
var WavelengthCheckbox = ({
|
|
@@ -8248,8 +8252,8 @@ var WavelengthCheckbox = ({
|
|
|
8248
8252
|
textSize,
|
|
8249
8253
|
...rest
|
|
8250
8254
|
}) => {
|
|
8251
|
-
const ref =
|
|
8252
|
-
|
|
8255
|
+
const ref = useRef17(null);
|
|
8256
|
+
useEffect18(() => {
|
|
8253
8257
|
const el = ref.current;
|
|
8254
8258
|
if (!el) return;
|
|
8255
8259
|
if (size !== void 0) {
|
|
@@ -8278,7 +8282,7 @@ var WavelengthCheckbox = ({
|
|
|
8278
8282
|
WavelengthCheckbox.displayName = "WavelengthCheckbox";
|
|
8279
8283
|
|
|
8280
8284
|
// src/components/samples/SampleComponent.tsx
|
|
8281
|
-
import { useRef as
|
|
8285
|
+
import { useRef as useRef18, useEffect as useEffect19 } from "react";
|
|
8282
8286
|
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
8283
8287
|
var SampleComponent = ({
|
|
8284
8288
|
testProp,
|
|
@@ -8288,8 +8292,8 @@ var SampleComponent = ({
|
|
|
8288
8292
|
...rest
|
|
8289
8293
|
// This rest operator includes className, style, onClick, etc.
|
|
8290
8294
|
}) => {
|
|
8291
|
-
const ref =
|
|
8292
|
-
|
|
8295
|
+
const ref = useRef18(null);
|
|
8296
|
+
useEffect19(() => {
|
|
8293
8297
|
const el = ref.current;
|
|
8294
8298
|
if (!el) return;
|
|
8295
8299
|
el.customStyles = customStyle2;
|
|
@@ -8302,7 +8306,7 @@ var SampleComponent = ({
|
|
|
8302
8306
|
SampleComponent.displayName = "SampleComponent";
|
|
8303
8307
|
|
|
8304
8308
|
// src/components/NotificationPanel/WavelengthNotificationPanel.tsx
|
|
8305
|
-
import { useRef as
|
|
8309
|
+
import { useRef as useRef19, useEffect as useEffect20 } from "react";
|
|
8306
8310
|
import "@wavelengthusaf/web-components";
|
|
8307
8311
|
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
8308
8312
|
var WavelengthNotificationPanel = ({
|
|
@@ -8313,8 +8317,8 @@ var WavelengthNotificationPanel = ({
|
|
|
8313
8317
|
...rest
|
|
8314
8318
|
// This rest operator includes className, style, onClick, etc.
|
|
8315
8319
|
}) => {
|
|
8316
|
-
const ref =
|
|
8317
|
-
|
|
8320
|
+
const ref = useRef19(null);
|
|
8321
|
+
useEffect20(() => {
|
|
8318
8322
|
const el = ref.current;
|
|
8319
8323
|
if (!el) return;
|
|
8320
8324
|
if (notifications !== void 0) {
|
|
@@ -8340,11 +8344,11 @@ var WavelengthNotificationPanel = ({
|
|
|
8340
8344
|
import { SampleComponent as SampleComponent2 } from "@wavelengthusaf/web-components";
|
|
8341
8345
|
|
|
8342
8346
|
// src/components/MultiSelect/WavelengthMultiSelectAutocomplete.tsx
|
|
8343
|
-
import { useEffect as
|
|
8347
|
+
import { useEffect as useEffect21, useRef as useRef20 } from "react";
|
|
8344
8348
|
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
8345
8349
|
var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Options", label, name, style: style3, onChange, value, disabled, ...rest }) => {
|
|
8346
|
-
const componentRef =
|
|
8347
|
-
|
|
8350
|
+
const componentRef = useRef20(null);
|
|
8351
|
+
useEffect21(() => {
|
|
8348
8352
|
const component = componentRef.current;
|
|
8349
8353
|
if (!component) return;
|
|
8350
8354
|
const handleValueChange = (event) => {
|
|
@@ -8357,7 +8361,7 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
8357
8361
|
component.removeEventListener("change", handleValueChange);
|
|
8358
8362
|
};
|
|
8359
8363
|
}, [onChange]);
|
|
8360
|
-
|
|
8364
|
+
useEffect21(() => {
|
|
8361
8365
|
const component = componentRef.current;
|
|
8362
8366
|
if (!component) return;
|
|
8363
8367
|
if (placeholder) component.setAttribute("placeholder", placeholder);
|
|
@@ -8367,7 +8371,7 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
8367
8371
|
if (options) component.autocompleteOptions = options;
|
|
8368
8372
|
if (style3) component.customStyles = style3;
|
|
8369
8373
|
}, [options, placeholder, name, label, style3]);
|
|
8370
|
-
|
|
8374
|
+
useEffect21(() => {
|
|
8371
8375
|
const component = componentRef.current;
|
|
8372
8376
|
if (component && value) {
|
|
8373
8377
|
component.value = value;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@wavelengthusaf/components",
|
|
3
3
|
"author": "563 EWS - Wavelength",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.5.0",
|
|
6
6
|
"description": "Common component library used by Wavelength developers",
|
|
7
7
|
"main": "/dist/cjs/index.cjs",
|
|
8
8
|
"module": "/dist/esm/index.js",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@emotion/styled": "^11.11.0",
|
|
72
72
|
"@mui/icons-material": "^5.16.5",
|
|
73
73
|
"@mui/material": "^5.15.7",
|
|
74
|
-
"@wavelengthusaf/web-components": "^1.
|
|
74
|
+
"@wavelengthusaf/web-components": "^1.7.0",
|
|
75
75
|
"react": "^18.2.0",
|
|
76
76
|
"react-router-dom": "^6.26.2",
|
|
77
77
|
"styled-components": "^6.1.12",
|